:root{--bg:#111318;--surface:#1b1e26;--ink:#f1f2f6;--muted:#a3adbe;--line:#343945;--gold:#e9b963;color-scheme:dark}body{background:#111318;color:#f1f2f6;font:14px/1.55 Inter,system-ui,Segoe UI,sans-serif}.portal-header{position:sticky;top:0;z-index:80;display:flex;align-items:center;gap:22px;width:100%;max-width:none!important;height:77px;min-height:77px;padding:14px 28px!important;background:#191c24!important;border-bottom:1px solid #343945}.portal-header .brand{gap:11px;min-width:210px;max-width:260px;font-size:19px;letter-spacing:1px;line-height:1.1}.portal-header .brand b{color:#f1c67c}.portal-header .brand small{font-size:8px;letter-spacing:1.6px;color:#a7b1c1;margin-top:6px}.portal-logo{width:42px;height:42px;display:block;flex:0 0 42px}.portal-logo img{width:42px;height:42px;object-fit:contain;border-radius:50%;display:block}.portal-breadcrumb{font-size:12px;display:flex;gap:10px;color:#929eb1;flex:1;align-items:center}.portal-breadcrumb strong{font-weight:500;color:#dfe5ee}.portal-breadcrumb b{color:#57647b}.portal-header-actions{display:flex;gap:10px;align-items:center;margin-left:auto}.portal-header-actions button,.portal-header-actions a{font-size:12px;background:#222734;color:#d6deeb;border:1px solid #414a5c;border-radius:8px;padding:9px 13px;box-shadow:none;white-space:nowrap}.portal-user{width:35px;height:35px;display:grid;place-items:center;background:#eab65b22;color:#f1cd89;border:1px solid #a2834a;border-radius:50%;font-weight:650}.portal-icon-button{background:transparent;color:#e7cf9f;border:1px solid #3d485c;border-radius:9px;width:40px;height:40px;padding:8px;display:none}.portal-icon-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}main.portal,.admin-portal main.portal{max-width:1720px;padding:0!important;display:grid;grid-template-columns:260px minmax(0,1fr);gap:0;min-height:calc(100dvh - 77px);margin:auto}.portal #sidebar,.admin-portal .portal #sidebar{width:260px;background:#171a22;border:none;border-right:1px solid #343945;border-radius:0;padding:24px 15px;position:sticky;top:77px;height:calc(100dvh - 77px);overflow:auto;align-self:start;display:block}.portal #sidebar[hidden]{display:none}.portal:has(#sidebar[hidden]){display:block;max-width:1200px}.portal-sidebar-title{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#e5bd78;padding:0 13px 20px}.portal-nav-search{display:flex;align-items:center;gap:8px;background:#222733;border:1px solid #384255;border-radius:8px;padding:0 9px;margin:0 5px 24px}.portal-nav-search svg{width:17px;height:17px;flex-shrink:0;color:#8c9cb5}.portal-nav-search input{border:0!important;box-shadow:none!important;background:transparent!important;padding:10px 0!important;min-height:38px;font-size:12px!important}.portal #sidebar nav{display:flex;flex-direction:column;gap:22px}.portal-nav-group h2{font-size:10px!important;text-transform:uppercase;letter-spacing:1px;color:#8190a8!important;padding:0 13px;margin:0 0 7px;font-weight:650}.portal #sidebar button,.admin-portal .portal #sidebar button{display:flex;align-items:center;gap:12px;min-height:42px;white-space:normal;line-height:1.35;padding:11px 13px;font-size:13px;letter-spacing:0;font-weight:450;width:100%;background:transparent;color:#aab5c7;border:0;border-radius:8px;text-align:left;margin:3px 0;box-shadow:none}.portal #sidebar button svg{width:19px;height:19px;flex-shrink:0}.portal #sidebar button.selected,.portal #sidebar button[aria-current=page],.admin-portal .portal #sidebar button.selected{background:#e9b96319;color:#f4ce8a;box-shadow:none}.portal #sidebar button:hover{background:#242c3b;color:#f0e9da}.portal-sidebar-status{display:flex;gap:10px;align-items:center;border-top:1px solid #333d4d;padding:22px 10px 5px;margin-top:25px}.portal-sidebar-status i{width:7px;height:7px;flex-shrink:0;background:#6bcea3;border-radius:50%}.portal-sidebar-status b{display:block;font-size:12px;color:#dbe4f2}.portal-sidebar-status small{display:block;font-size:10px;color:#8e9eb7;margin-top:4px}.portal .workspace,.admin-portal .portal .workspace{padding:30px 36px!important;min-width:0;max-width:100%}.workspace h1,.admin-portal .workspace h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;font-weight:650;color:#f0f3f9}.workspace h2,.admin-portal .workspace h2{font-size:20px;font-weight:600;letter-spacing:-.3px;margin:24px 0 16px}.workspace h3{font-size:15px;font-weight:600}.workspace p{color:#aab7cd}.workspace .eyebrow{font-size:10px;letter-spacing:1.4px;color:#e9bd75}.workspace .panel,.workspace .metric,.admin-portal .workspace .panel,.admin-portal .workspace .metric{background:#1b1f29!important;border:1px solid #354052;border-radius:11px!important;padding:23px;box-shadow:0 1px 2px #0002}.workspace .metric span{color:#a5b3ca;font-size:12px}.workspace .metric strong{font-size:30px;letter-spacing:-1px;margin-top:10px;color:#f0ca83}.workspace .metrics{gap:15px;margin:26px 0}.workspace .toolbar{margin:20px 0;gap:13px}.workspace .toolbar h1{margin:0}.workspace .button,.admin-portal .workspace .button{background:#e8bb6c;color:#241d12;border:1px solid #f4cd88;border-radius:8px;box-shadow:none;padding:11px 17px;font-weight:650;min-height:42px;font-size:13px}.workspace .subtle,.workspace .filter-bar button,.workspace .toolbar button:not(.button){background:#263246;border:1px solid #45566f;color:#d2deef;border-radius:8px;min-height:38px}.workspace input,.workspace select,.workspace textarea{background:#131b29;border:1px solid #42516a;border-radius:8px;font-size:14px;color:#e8eef8;min-height:42px;padding:11px 13px}.workspace input::placeholder{color:#7d8da6}.workspace input[type=checkbox],.workspace input[type=radio]{width:19px;min-height:19px;height:19px;flex-shrink:0}.workspace .field{gap:8px;color:#bec9da;font-size:12px}.workspace .form-grid{gap:18px}.workspace .table-wrap{border:1px solid #354357;border-radius:10px;margin:20px 0;max-width:100%;overflow:auto}.workspace table{font-size:12px;min-width:600px}.workspace th,.admin-portal .workspace th{background:#243046;color:#aabbd4;font-size:11px;font-weight:600;text-transform:none;letter-spacing:0;padding:13px 16px;border-bottom:1px solid #41516b}.workspace td,.admin-portal .workspace td{background:#1b2433;color:#d8e2f1;font-size:12px;padding:14px 16px;border-bottom:1px solid #344258}.workspace tr:hover td{background:#243248}.workspace td button{border-radius:7px;background:#304159;color:#e1eafa;font-size:11px;border:1px solid #4d6483;min-height:33px;padding:7px 11px}.workspace .status{border-radius:6px;font-size:10px;padding:5px 8px;background:#34425b;color:#dccba6}.workspace .status.completed{background:#214a3f;color:#9fe0c3}.workspace .status.review{background:#594728;color:#f6dba3}.workspace .dashboard-banner{background:#1d293b!important;min-height:140px;border:1px solid #40516b;border-radius:11px;padding:24px;margin:0 0 20px}.workspace .dashboard-banner h2{font-size:26px;margin:5px 0;color:#f0e7d5}.workspace .dashboard-banner p{font-size:12px;max-width:600px}.workspace .dashboard-orb{display:none}.workspace .quick-actions button{background:#202d41;border:1px solid #3e516c;border-radius:9px;padding:17px;color:#cbdaf0;box-shadow:none}.workspace .account-hero{border:1px solid #3e5169;border-radius:12px;padding:26px;background:#1c2b40!important;margin-bottom:22px}.workspace .account-hero h1{font-size:27px}.workspace .account-meta span{border:1px solid #415775;background:#253c57;color:#d7c79f}.workspace .account-avatar{background:#ead09a;color:#211a0f}.workspace .details{gap:13px}.workspace .details>div{background:#172437;border:1px solid #384b66;border-radius:9px;padding:16px}.workspace .delivery{padding:19px;background:#111d2e;border:1px solid #3d5271;border-radius:10px;white-space:pre-wrap;word-break:break-word;font-size:13px;color:#d3e5fa}.workspace .ticket-grid{gap:15px}.workspace .ticket-card{background:#1c2a3e;border:1px solid #405471;border-radius:11px;padding:23px;box-shadow:none}.workspace .ticket-card:hover{transform:translateY(-2px)}.workspace .auth{max-width:500px;background:#1c2535;border:1px solid #42516a;border-radius:16px;padding:34px;box-shadow:0 20px 70px #0003}.workspace .auth h1{font-size:29px}.workspace .auth .unified-tg{width:100%;padding:13px;border-radius:9px;font-size:13px}.workspace .auth:before{width:70px;height:70px}.workspace .profile-grid{gap:20px}.workspace .profile-grid>.panel h2{margin-top:0}.workspace .telegram-banner{border-radius:10px;background:#20334d;border-color:#4e698c}.workspace .unified-tg{background:#eabf75;color:#241d11;border:1px solid #f0cc8f}.workspace .domain-tabs{border-bottom:1px solid #3c4b61;padding-bottom:12px;margin:25px 0}.workspace .domain-tabs button{background:transparent;color:#9fb0c9;border:1px solid transparent;border-radius:7px;padding:10px 15px;min-height:40px;font-size:12px}.workspace .domain-tabs button.active{background:#edc27819;border-color:#a78548;color:#f1cf95}.workspace .automation-status{border-left:3px solid #e7bd78;border-radius:0 8px 8px 0;background:#21334d;color:#bacde7;font-size:12px;padding:15px 18px}.workspace .empty-state{padding:30px;border:1px dashed #49617f;border-radius:10px;background:#1a283b}.workspace-loading{min-height:270px;display:flex;align-items:center;justify-content:center;gap:16px;color:#a3b7d3}.workspace-loading>span{width:25px;height:25px;border-radius:50%;border:2px solid #3c506e;border-top-color:#f1c67d;animation:portal-spin .7s linear infinite}.giftcards-module .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.giftcards-module .card{background:#1b293d;border:1px solid #3d5270;border-radius:11px;padding:20px;overflow:hidden;display:flex;flex-direction:column;gap:12px;color:#dee7f3}.giftcards-module .card>img{width:100%;height:115px;object-fit:contain;background:#132035;border-radius:9px}.giftcards-module .card h3{font-size:16px;color:#f1e9d7}.giftcards-module .card p{font-size:12px;margin:0}.giftcards-module .card button{margin-top:auto;min-height:39px;font-size:12px;background:#2d405d;color:#e6d7b5;border:1px solid #526d92;border-radius:8px;padding:10px}.giftcards-module .toolbar{display:flex;gap:9px;flex-wrap:wrap}.giftcards-module .toolbar button{font-size:12px;padding:10px 15px}.giftcards-module .toolbar button.selected{background:#b99145;color:#21190c}.giftcards-module .filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;background:#1c293b;border:1px solid #3c4f6b;padding:18px;border-radius:10px}.giftcards-module .filters>*{flex:1;min-width:140px}.giftcards-module .filters label{font-size:11px;color:#a3b6d0;max-width:170px}.giftcards-module .filters button{min-height:42px;border-radius:8px;background:#2d405d;color:#ecdbb8;border:1px solid #4f688b}.giftcards-module #pages{display:flex;align-items:center;gap:13px;margin:24px 0}.giftcards-module #pages button{padding:9px 14px;background:#2d405d;color:#ded2b8;border:1px solid #4f6686;border-radius:8px}.giftcards-module #crumb{margin:22px 0;font-size:12px;color:#c1cfe4}.giftcards-module .stats{display:flex;gap:15px;flex-wrap:wrap;font-size:12px}.giftcards-module .stats strong{display:block;color:#efcf94}.giftcards-module .wide{grid-column:1/-1;overflow:auto}.giftcards-module .small{font-size:11px}.giftcards-module #gift-editor{width:min(720px,94vw);background:#19283d;color:#edf2f9;padding:27px;border:1px solid #536d91;border-radius:13px}.giftcards-module #editform{display:grid;gap:15px}.giftcards-module #editform label{display:grid;gap:8px;font-size:12px;color:#b8c9e2}.giftcards-module #editform input,.giftcards-module #editform textarea{width:100%;background:#111f34;border:1px solid #496387;border-radius:8px;padding:11px;color:#e4edf9;font:inherit}.giftcards-module #editform .check{display:flex;align-items:center;gap:10px}.giftcards-module #editform .check input{width:20px}.giftcards-module .cols{display:grid;grid-template-columns:1fr 1fr;gap:15px}.giftcards-module .dialoghead,.giftcards-module .preview,.giftcards-module .price{display:flex;gap:20px;justify-content:space-between;align-items:center}.giftcards-module .preview img{width:105px;height:105px;object-fit:contain}.giftcards-module .price{background:#243a58;border-radius:10px;padding:18px}.giftcards-module .price strong{display:block;font-size:24px;color:#f6d594}.giftcards-module #save{padding:13px;background:#eac17a;color:#201a10;border:1px solid #f5d497;border-radius:9px}.portal #notice:empty{display:none}.portal #notice:not(:empty){background:#1b3e36;border-color:#3c7b68;font-size:12px}.portal #notice.error{background:#472c37!important;border-color:#90556b!important}.customer-portal .portal-header{background:#19243a!important}.customer-portal .portal #sidebar{background:#162136}.customer-portal .portal .workspace{background:radial-gradient(ellipse at 100% 0,#2d548318,transparent 50%),#111823}.customer-portal .workspace .card{background:#1d304a;border-color:#455f82}.customer-portal .workspace .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-portal .workspace .card-image{height:150px}.customer-portal .workspace .card h3{font-size:16px}.customer-portal .workspace .card .button{font-size:12px}.portal-header #portal-menu{display:none}#portal-backdrop{display:none}body:not(.admin-portal):not(.customer-portal) main.portal{display:block;max-width:1100px}body:not(.admin-portal):not(.customer-portal) .portal-breadcrumb{display:none}@keyframes portal-spin{to{transform:rotate(360deg)}}@media(max-width:1150px){main.portal,.admin-portal main.portal{grid-template-columns:230px minmax(0,1fr)}.portal #sidebar,.admin-portal .portal #sidebar{width:230px}.portal .workspace,.admin-portal .portal .workspace{padding:25px!important}.giftcards-module .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-header .brand{min-width:185px}.portal-breadcrumb{font-size:11px}.portal-header{padding:14px 20px!important}.customer-portal .workspace .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.portal-header{height:70px;min-height:70px;padding:12px 15px!important;gap:11px}.portal-header .brand{min-width:0;font-size:15px;gap:8px}.portal-header .brand small{font-size:7px;letter-spacing:.8px}.portal-logo,.portal-logo img{width:35px;height:35px;flex-basis:35px}.portal-header .brand-icon,.portal-header .brand-icon img{width:35px!important;height:35px!important;max-width:35px!important;flex-basis:35px!important}.portal-header-actions{gap:7px}.portal-header-actions a{display:none!important}.portal-header-actions button{font-size:11px;padding:9px;min-height:36px}.portal-header-actions .portal-user{display:none}.portal-breadcrumb{display:none}.admin-portal .portal-header #portal-menu,.customer-portal .portal-header #portal-menu{display:grid;place-items:center;flex-shrink:0}.portal-header #portal-menu svg{width:21px;height:21px}main.portal,.admin-portal main.portal{display:block;width:100%;min-height:calc(100dvh - 70px)}.portal #sidebar,.admin-portal .portal #sidebar{display:block;position:fixed;top:0;left:0;width:min(310px,86vw);height:100dvh;z-index:150;transform:translateX(-110%);transition:transform .2s ease;border-right:1px solid #59718f;box-shadow:10px 0 60px #0007;padding:28px 15px}.portal-menu-open .portal #sidebar{transform:translateX(0)}.portal #sidebar nav{display:flex;flex-direction:column}.portal #sidebar button,.admin-portal .portal #sidebar button{min-height:45px;font-size:13px}.portal-menu-open #portal-backdrop{display:block;position:fixed;inset:0;z-index:140;background:#030911b5;border:0;border-radius:0;width:100%;height:100dvh;backdrop-filter:blur(4px)}.portal-menu-open #portal-menu{position:relative;z-index:160}.portal .workspace,.admin-portal .portal .workspace{padding:22px 16px!important;width:100%;min-width:0}.workspace h1,.admin-portal .workspace h1{font-size:26px}.workspace .metrics{grid-template-columns:1fr 1fr;gap:10px}.workspace .metric{padding:17px!important}.workspace .metric:last-child{grid-column:1/-1}.workspace .metric strong{font-size:27px}.workspace .toolbar{align-items:stretch}.workspace .toolbar .action-group{width:100%;margin-top:0}.workspace .toolbar .action-group button{flex:1}.workspace .filter-bar{display:flex;flex-direction:column;align-items:stretch}.workspace .filter-bar input,.workspace .filter-bar select{width:100%;max-width:none}.workspace input,.workspace select,.workspace textarea{font-size:16px;min-height:45px}.workspace .panel{padding:19px!important}.workspace .details,.workspace .form-grid,.workspace .profile-grid{grid-template-columns:1fr!important}.workspace .quick-actions{grid-template-columns:1fr}.workspace .quick-actions button{padding:15px;font-size:12px}.workspace .account-hero{gap:14px;padding:22px}.workspace .account-hero h1{font-size:23px}.workspace .account-avatar{width:45px;height:45px}.workspace .account-meta{gap:6px;font-size:10px}.workspace .auth{padding:25px!important}.workspace .domain-tabs{gap:5px;display:grid;grid-template-columns:1fr 1fr}.workspace .domain-tabs button{padding:10px 7px;font-size:11px}.giftcards-module .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.giftcards-module .card{padding:13px}.giftcards-module .card>img{height:90px}.giftcards-module .card h3{font-size:14px}.giftcards-module .card button{font-size:11px}.giftcards-module .filters>*{width:100%;max-width:none!important;flex-basis:100%}.giftcards-module .cols{grid-template-columns:1fr}.giftcards-module .price{flex-wrap:wrap}.giftcards-module .preview img{width:75px;height:75px}.workspace .order-table{min-width:0;display:block}.workspace .order-table thead{display:none}.workspace .order-table tbody{display:block}.workspace .order-table tr{display:grid;grid-template-columns:1fr 1fr;padding:15px;border-bottom:1px solid #3a4c67;gap:10px;background:#1c2b41}.workspace .order-table td{display:block;padding:0!important;border:0;min-width:0;white-space:normal;background:transparent!important}.workspace .order-table td:before{content:attr(data-label);display:block;color:#8099bb;font-size:10px;margin-bottom:3px}.workspace .order-table td.wrap{min-width:0;grid-column:1/-1}.workspace .order-table td:last-child{grid-column:1/-1;padding-top:7px!important}.workspace .order-table td:last-child button{width:100%;min-height:41px}.workspace .order-table td:last-child:before{display:none}.workspace .order-table td[colspan]{grid-column:1/-1}.customer-portal .workspace .cards{grid-template-columns:1fr 1fr}.workspace .auth h1{font-size:27px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}



[hidden]{display:none!important}





body main.portal #sidebar nav{align-items:stretch;justify-content:flex-start;width:100%;min-width:0}

body main.portal #sidebar .portal-nav-group{display:block;width:100%;min-width:0;max-width:none;padding:0;margin:0}

body main.portal #sidebar .portal-nav-group h2{text-align:left;padding:0 13px;margin:0 0 8px}

body main.portal #sidebar button[data-tab]{width:100%;max-width:none;min-width:0;justify-content:flex-start;align-items:center;padding:11px 13px;transform:none;font-size:13px;line-height:1.4}

body main.portal #sidebar button[data-tab]>span{display:block;flex:1 1 auto;width:auto;min-width:0;text-align:left;font:inherit;line-height:1.4;color:inherit;white-space:normal;overflow-wrap:normal;word-break:normal}

body main.portal #sidebar button[data-tab]>svg{display:block;flex:0 0 19px;width:19px;height:19px}

body main.portal #sidebar .portal-nav-search{width:auto;min-width:0}

body main.portal #sidebar .portal-nav-search input{width:100%;min-width:0}

@media(min-width:801px){body main.portal #sidebar button[data-tab]>span{white-space:nowrap}body main.portal #sidebar{overflow-x:hidden}}

