:root{--ink:#162521;--muted:#6d7c78;--green:#176b57;--green2:#0f4d40;--mint:#e7f4ef;--paper:#fff;--bg:#f2f5f2;--line:#dfe7e2;--amber:#c77d20;--shadow:0 16px 50px rgba(21,48,41,.09)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);font-size:14px}.app-shell{min-height:100vh;display:grid;grid-template-columns:310px 1fr}.sidebar{background:#102a26;color:#fff;padding:26px 20px 18px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;gap:12px;align-items:center;margin:0 6px 26px}.brand-mark{width:42px;height:42px;border-radius:13px;background:#52bd91;display:grid;place-items:center;font:800 22px Georgia}.brand strong{display:block;font-size:19px}.brand span{display:block;color:#9ebbb4;font-size:12px;margin-top:2px}.primary,.secondary{border:0;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer;font-size:13px}.primary{color:#fff;background:var(--green);box-shadow:0 5px 16px rgba(23,107,87,.2)}.sidebar .primary{background:#4dba8c;color:#0b2821}.full{width:100%}.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.search{height:42px;border:1px solid #31504a;background:#193630;border-radius:10px;margin:14px 0 10px;display:flex;align-items:center;padding:0 12px;color:#87aaa2}.search input{border:0;outline:0;background:transparent;color:#fff;width:100%;padding:0 8px}.search input::placeholder{color:#789790}.filters{border-bottom:1px solid #29453f;padding-bottom:13px}.filter{width:100%;border:0;background:transparent;color:#bad0cb;border-radius:9px;padding:10px 11px;display:flex;justify-content:space-between;cursor:pointer}.filter:hover,.filter.active{background:#1e4038;color:#fff}.filter b{background:#2d5149;border-radius:20px;padding:2px 8px;font-size:11px}.filter b.warn{background:#6b4b26;color:#ffce82}.section-title{display:flex;justify-content:space-between;color:#7fa29a;font-size:10px;font-weight:800;letter-spacing:1.3px;padding:20px 9px 9px}.customer-list{overflow:auto;max-height:calc(100vh - 350px)}.customer{border:0;background:transparent;color:#d8e7e3;width:100%;padding:10px 8px;border-radius:10px;display:grid;grid-template-columns:39px 1fr auto;gap:10px;text-align:left;cursor:pointer;margin-bottom:3px}.customer:hover,.customer.active{background:#1d4038}.avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#dceee8;color:#175f4e;font-weight:800}.customer .avatar{background:#31534c;color:#d9eee7}.customer strong,.customer small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer strong{font-size:13px;margin:2px 0 5px}.customer small{color:#83a49c;font-size:11px;max-width:150px}.badge{min-width:20px;height:20px;border-radius:20px;padding:0 6px;display:grid;place-items:center;background:#4dba8c;color:#0b2821;font-size:10px;font-weight:800;margin-top:8px}.unknown .avatar{background:#634925;color:#ffd99c}.sidebar-foot{margin-top:auto;border-top:1px solid #29453f;padding:17px 8px 0;color:#8fafA8;font-size:11px;display:flex;gap:8px;align-items:center}.sidebar-foot i{width:8px;height:8px;border-radius:50%;background:#51c694;box-shadow:0 0 0 4px rgba(81,198,148,.1)}.main{padding:30px 34px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.topbar h1{font-family:Georgia,serif;font-size:30px;margin:0 0 5px}.topbar p,.modal-head p{margin:0;color:var(--muted)}.top-actions{display:flex;gap:9px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:18px}.stat{background:#fff;border:1px solid var(--line);padding:16px 18px;border-radius:13px;display:flex;justify-content:space-between;align-items:center}.stat span{display:block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.stat strong{font:700 26px Georgia;display:block;margin-top:5px}.stat-icon{font-size:20px;background:var(--mint);width:38px;height:38px;border-radius:11px;display:grid;place-items:center}.workspace{height:calc(100vh - 192px);min-height:460px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.empty-state{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}.empty-icon{font-size:29px;color:var(--green);background:var(--mint);width:70px;height:70px;border-radius:22px;display:grid;place-items:center}.empty-state h2{font:700 23px Georgia;margin:18px 0 8px}.empty-state p{color:var(--muted);max-width:410px;line-height:1.6}.conversation{height:100%;display:flex;flex-direction:column}.conversation-head{padding:17px 21px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center}.conversation-head h2{margin:0 0 4px;font:700 19px Georgia}.conversation-head p{margin:0;color:var(--muted);font-size:12px}.pill{background:var(--mint);color:var(--green);padding:7px 11px;border-radius:20px;font-size:11px;font-weight:700}.pill.unknown{background:#fff3de;color:#9b611a}.message-area{flex:1;overflow:auto;padding:25px;background:linear-gradient(rgba(247,249,247,.94),rgba(247,249,247,.94)),radial-gradient(#bfd1ca 1px,transparent 1px);background-size:auto,18px 18px}.day{text-align:center;color:#82908c;font-size:10px;font-weight:700;margin:5px 0 18px}.message{max-width:620px;background:#fff;border:1px solid var(--line);border-radius:5px 15px 15px 15px;padding:13px 15px;margin:0 0 13px;box-shadow:0 5px 18px rgba(20,43,37,.05)}.message-meta{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#87938f;margin-bottom:7px}.message p{white-space:pre-wrap;line-height:1.5;margin:0}.attachment{display:flex;align-items:center;gap:11px;margin-top:10px;padding:11px;background:#f1f6f3;border-radius:10px;color:var(--ink);text-decoration:none}.attachment-icon{font-size:21px}.attachment strong,.attachment small{display:block}.attachment small{color:var(--muted);margin-top:3px}.assign{margin-top:10px;display:flex;gap:7px}.assign select{border:1px solid var(--line);border-radius:8px;padding:7px;min-width:190px}.assign button{padding:7px 10px}.modal{position:fixed;inset:0;background:rgba(8,25,21,.55);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px;z-index:20}.modal-card{width:min(520px,100%);background:#fff;border-radius:18px;padding:24px;box-shadow:0 25px 80px rgba(0,0,0,.22)}.modal-head{display:flex;justify-content:space-between;margin-bottom:20px}.modal-head h2{font:700 23px Georgia;margin:0 0 5px}.icon-btn{border:0;background:#eff3f0;width:34px;height:34px;border-radius:9px;font-size:22px;cursor:pointer}form label{display:block;font-size:12px;font-weight:700;margin:0 0 14px}form label small{color:var(--muted);font-weight:400}input,textarea,select{font:inherit}form input,form textarea{display:block;width:100%;border:1px solid #d9e2dd;border-radius:9px;padding:11px 12px;margin-top:7px;outline:none}form input:focus,form textarea:focus{border-color:#4ba987;box-shadow:0 0 0 3px rgba(75,169,135,.12)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.file-picker input{padding:0;border:0}.file-picker span{display:block;color:var(--muted);background:#f4f7f5;border:1px dashed #bdcbc5;border-radius:9px;padding:11px;margin-top:7px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:25px;bottom:25px;background:#102a26;color:#fff;padding:12px 17px;border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s;z-index:30}.toast.show{opacity:1;transform:none}.hidden{display:none!important}
@media(max-width:850px){.app-shell{grid-template-columns:250px 1fr}.main{padding:20px}.stats{grid-template-columns:repeat(2,1fr)}.workspace{height:calc(100vh - 240px)}}
@media(max-width:650px){.app-shell{display:block}.sidebar{min-height:auto;height:320px}.customer-list{max-height:120px}.sidebar-foot{display:none}.main{padding:16px}.topbar{align-items:flex-start}.topbar p{display:none}.top-actions .secondary{display:none}.stats{grid-template-columns:repeat(2,1fr)}.stat{padding:12px}.workspace{height:65vh}.two-col{grid-template-columns:1fr}}

/* Kovan kimliği, kullanıcı girişi ve yönetim paneli */
.hive-logo{position:relative;width:44px;height:47px;flex:0 0 44px}.hive-logo span{position:absolute;width:16px;height:14px;background:#e6ad36;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}.hive-logo span:nth-child(1){left:14px;top:0}.hive-logo span:nth-child(2){left:1px;top:8px}.hive-logo span:nth-child(3){left:27px;top:8px}.hive-logo span:nth-child(4){left:14px;top:16px}.hive-logo span:nth-child(5){left:1px;top:24px}.hive-logo span:nth-child(6){left:27px;top:24px}.hive-logo span:nth-child(7){left:14px;top:32px}.hive-logo.large{transform:scale(1.65);margin:15px auto 27px}.user-chip{border:0;background:transparent;display:flex;align-items:center;gap:7px;padding:4px 8px;cursor:pointer;color:var(--ink)}.user-chip span{width:32px;height:32px;border-radius:10px;background:#dceee8;color:var(--green);display:grid;place-items:center;font-weight:800}.user-chip b{font-size:12px}.modal-card.wide{width:min(760px,100%);max-height:90vh;overflow:auto}form input,form textarea,form select{display:block;width:100%;border:1px solid #d9e2dd;border-radius:9px;padding:11px 12px;margin-top:7px;outline:none;background:#fff}.auth-screen{position:fixed;inset:0;z-index:100;background:#102a26;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:7vw}.auth-brand{text-align:center;color:#fff}.auth-brand h1{font:700 52px Georgia;margin:0}.auth-brand p{color:#9ebbb4;font-size:16px}.auth-card{width:min(430px,100%);justify-self:center;background:#fff;padding:34px;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.3)}.auth-card h2{font:700 29px Georgia;margin:7px 0}.auth-card>div>p{color:var(--muted);margin:0 0 24px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:var(--green)}.auth-note{text-align:center;color:var(--muted);font-size:11px;margin:18px 0 0}.tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:20px}.tab{border:0;background:transparent;padding:11px 14px;font-weight:700;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}.tab.active{color:var(--green);border-color:var(--green)}.connection-state{display:flex;gap:12px;align-items:center;background:#f2f7f4;border:1px solid var(--line);padding:13px;border-radius:11px;margin-bottom:18px}.connection-state strong,.connection-state small{display:block}.connection-state small{color:var(--muted);margin-top:3px}.wa-dot{width:12px;height:12px;border-radius:50%;background:#d29a36;box-shadow:0 0 0 5px rgba(210,154,54,.12)}.wa-dot.connected{background:#31a876;box-shadow:0 0 0 5px rgba(49,168,118,.12)}.user-list{border:1px solid var(--line);border-radius:11px;overflow:hidden}.user-row{display:grid;grid-template-columns:40px 1fr auto;gap:11px;align-items:center;padding:11px 13px;border-bottom:1px solid var(--line)}.user-row:last-child{border-bottom:0}.user-row .avatar{width:36px;height:36px}.user-row strong,.user-row small{display:block}.user-row small{color:var(--muted);margin-top:3px}.role{font-size:10px;background:var(--mint);color:var(--green);padding:5px 8px;border-radius:15px;font-weight:800}.user-form{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.user-form h3{font:700 18px Georgia;margin:0 0 15px}.account-pop{position:fixed;right:205px;top:77px;z-index:40;background:#fff;border:1px solid var(--line);border-radius:11px;padding:13px;box-shadow:var(--shadow);min-width:170px}.account-pop strong,.account-pop small{display:block}.account-pop small{color:var(--muted);margin:4px 0 11px}.account-pop button{border:0;background:#f1f4f2;color:#9d392f;width:100%;padding:8px;border-radius:7px;cursor:pointer;font-weight:700}
@media(max-width:650px){.auth-screen{grid-template-columns:1fr;padding:25px}.auth-brand{display:none}.top-actions .user-chip{display:flex}.user-chip b{display:none}.account-pop{right:15px;top:65px}}

.brand-copy{display:flex;flex-direction:column;align-items:flex-start}.brand-copy small{color:#9ebbb4;font-size:11px;margin:3px 0 0 2px}.brand-lockup{display:flex;align-items:center;gap:1px;color:#fff}.brand-lockup b{font:700 23px Georgia,serif;letter-spacing:-.6px;margin-right:2px}.brand-lockup span{width:26px;height:30px;background:#e6ad36;color:#102a26;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);display:grid;place-items:center;font:800 16px Georgia,serif}.brand-lockup span+span{margin-left:-2px;background:#f1c35d}.brand-lockup.large{justify-content:center;margin:0 auto 22px}.brand-lockup.large b{font-size:51px;margin-right:6px}.brand-lockup.large span{width:49px;height:56px;font-size:28px}.auth-brand>.brand-lockup.large+p{margin-top:0}.brand{min-height:48px}
.auth-brand>.hive-logo.large{transform:scale(1.8);margin:0 auto 48px}.brand>.hive-logo{margin-right:2px}.brand .brand-lockup b{font-size:21px}.brand .brand-lockup span{width:24px;height:28px;font-size:15px}

/* Marka geometrisi: bütün petekler aynı düzenli altıgen ölçüsündedir. */
.hive-logo span{width:16px;height:13.856px;background:#e6ad36}
.brand-lockup b{margin-right:4px}
.brand-lockup span,.brand .brand-lockup span{width:16px;height:13.856px;background:#e6ad36;color:#102a26;font-family:"Arial Black","Trebuchet MS",sans-serif;font-size:9px;font-weight:900;font-style:italic;line-height:1;letter-spacing:-.7px;text-indent:-1px}
.brand-lockup span+span{margin-left:-1px;background:#e6ad36}
.brand-lockup.large b{font-size:42px;margin-right:8px}
.brand-lockup.large span{width:32px;height:27.713px;font-size:18px}
.auth-brand>.hive-logo.large{transform:scale(2);margin-bottom:48px}

/* Logotype ölçeği: Vergi ile k·o harfleri aynı görsel puntodadır. */
.hive-logo{width:65px;height:68px;flex-basis:65px}
.hive-logo span{width:26px;height:22.517px}
.hive-logo span:nth-child(1){left:19.5px;top:0}
.hive-logo span:nth-child(2){left:0;top:11.258px}
.hive-logo span:nth-child(3){left:39px;top:11.258px}
.hive-logo span:nth-child(4){left:19.5px;top:22.517px}
.hive-logo span:nth-child(5){left:0;top:33.775px}
.hive-logo span:nth-child(6){left:39px;top:33.775px}
.hive-logo span:nth-child(7){left:19.5px;top:45.034px}
.brand-lockup span,.brand .brand-lockup span{width:26px;height:22.517px;font-size:21px;letter-spacing:-1.5px;text-indent:-1.5px}
.brand .brand-lockup b{font-size:21px}
.brand-lockup.large b{font-size:42px}
.brand-lockup.large span{width:52px;height:45.034px;font-size:42px;letter-spacing:-2.5px;text-indent:-2px}
.brand{min-height:68px;margin-bottom:20px}
.auth-brand>.hive-logo.large{transform:scale(2);margin-bottom:78px}

/* Onaylanan görsel marka varlığı */
.brand-art{position:relative}.brand-art img{display:block;width:100%;height:auto}.brand-art.hero{width:min(590px,96%);margin:0 auto 22px}.brand-art.compact{width:238px;margin:0 auto}.brand-art.compact small{display:block;color:#a9c4bd;text-align:center;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;margin-top:5px}.brand:has(.brand-art){display:block;min-height:82px;margin-bottom:20px}

/* Müşteri ve cari hesap çalışma alanı */
.customer-workspace{height:100%;display:flex;flex-direction:column;min-height:0}.customer-head{padding:15px 20px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;min-height:72px}.customer-title{min-width:0;margin-right:auto}.customer-title h2{margin:0 0 4px;font:700 20px Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-title p{margin:0;color:var(--muted);font-size:13px}.avatar.large{width:44px;height:44px;border-radius:13px;flex:0 0 44px}.customer-tabs{display:flex;gap:24px;padding:0 20px;border-bottom:1px solid var(--line);background:#fff}.customer-tab{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font-weight:750;padding:14px 2px 12px;cursor:pointer;font-size:13px}.customer-tab:hover,.customer-tab.active{color:var(--green);border-color:var(--green)}.customer-tab span{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;margin-left:5px;background:#edf3f0;border-radius:20px;font-size:10px}.customer-body{flex:1;overflow:auto;padding:20px;background:#f5f7f5}.customer-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 16px;border-top:3px solid #cbdad4}.metric-1{border-top-color:#2c8c70}.metric-2{border-top-color:#d2973f}.metric-3{border-top-color:#e6ad36}.metric span,.metric small{display:block;color:var(--muted)}.metric span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.35px}.metric strong{display:block;font:700 22px Georgia,serif;margin:9px 0 6px}.metric small{font-size:11px}.profile-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.panel-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.payments-card{grid-column:1/-1}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.panel-head h3{font:700 19px Georgia,serif;margin:4px 0 0}.kicker{font-size:10px;font-weight:800;color:#8a9994;letter-spacing:1px}.balance-lines{display:grid;grid-template-columns:1fr 1fr;gap:12px}.balance-lines>div{background:#f5f8f6;border-radius:11px;padding:14px}.balance-lines span,.balance-lines small{display:block;color:var(--muted);font-size:11px}.balance-lines strong{display:block;font-size:18px;margin:7px 0}.detail-card dl{margin:0}.detail-card dl>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #edf1ef}.detail-card dl>div:last-child{border:0}.detail-card dt{color:var(--muted);font-size:12px}.detail-card dd{margin:0;text-align:right;font-weight:700;font-size:12px}.detail-card .note-row{display:block}.detail-card .note-row dd{text-align:left;margin-top:6px;line-height:1.5;font-weight:500}.payment-list{display:grid;gap:0}.payment-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #edf1ef}.payment-row:last-child{border:0}.payment-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--mint);color:var(--green);font-weight:900}.payment-row strong,.payment-row small{display:block}.payment-row small{color:var(--muted);font-size:11px;margin-top:3px}.payment-row time{color:var(--muted);font-size:12px}.panel-empty,.list-empty{color:#789790;text-align:center;padding:24px 8px;font-size:12px}.check-row{display:flex!important;align-items:center;gap:9px;padding:11px 12px;background:#f4f7f5;border-radius:9px}.check-row input{display:inline-block;width:17px;height:17px;margin:0;accent-color:var(--green)}.check-row span{font-weight:600}.compact-modal{width:min(440px,100%)}.customer-workspace>.message-area{min-height:0}.empty-state.inner{min-height:300px}.list-time{align-self:center}.stat.positive .stat-icon{color:#19755d}.stat.negative .stat-icon{background:#fff3df;color:#a86a17}.stat.gold .stat-icon{background:#fff0c9;color:#9a6712}

@media(max-width:1100px){.customer-metrics{grid-template-columns:repeat(2,1fr)}.profile-grid{grid-template-columns:1fr}.payments-card{grid-column:auto}.stat strong{font-size:20px}}
@media(max-width:650px){body{font-size:14px}.customer-head{padding:12px;flex-wrap:wrap}.customer-head .pill{display:none}.customer-title{max-width:calc(100% - 60px)}.customer-head .secondary,.customer-head .primary{margin-left:56px}.customer-tabs{padding:0 12px;gap:18px}.customer-body{padding:12px}.customer-metrics{grid-template-columns:1fr 1fr}.metric{padding:12px}.metric strong{font-size:17px}.balance-lines{grid-template-columns:1fr}.profile-grid{gap:10px}.panel-card{padding:14px}}
