:root {
    --navy-950: #071a33;
    --navy-900: #0b2343;
    --navy-800: #123a68;
    --blue-700: #1457d9;
    --blue-600: #1967e8;
    --blue-500: #2d7ff0;
    --cyan-500: #08a9c7;
    --green-600: #0b996e;
    --orange-600: #d66a12;
    --red-600: #cc3f4a;
    --ink: #13233b;
    --muted: #64748b;
    --line: #dce6f2;
    --soft-line: #eaf0f7;
    --surface: #ffffff;
    --canvas: #f3f7fc;
    --shadow: 0 18px 50px rgba(23, 54, 93, .10);
    --shadow-sm: 0 7px 24px rgba(23, 54, 93, .08);
    --radius: 18px;
    --radius-sm: 11px;
    --sidebar: 266px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.018em; }

.app-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); padding: 24px 16px;
    display: flex; flex-direction: column; overflow-y: auto; color: #fff;
    background:
        radial-gradient(circle at 10% 0, rgba(45, 127, 240, .4), transparent 34%),
        linear-gradient(165deg, var(--navy-800), var(--navy-950) 62%);
    box-shadow: 18px 0 45px rgba(6, 25, 52, .14);
}
.app-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.app-brand:hover { color: inherit; }
.brand-mark {
    flex: 0 0 45px; height: 45px; display: grid; place-items: center; border-radius: 14px;
    color: #fff; font-weight: 850; letter-spacing: -.04em;
    background: linear-gradient(145deg, #318bff, #08a9c7); box-shadow: 0 10px 24px rgba(0, 161, 220, .27);
}
.app-brand > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.app-brand strong { overflow: hidden; font-size: 14px; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.app-brand small { margin-top: 3px; color: #82c6ff; font-size: 8px; font-weight: 800; letter-spacing: .19em; }
.app-nav { display: grid; gap: 7px; margin-top: 35px; }
.app-nav a { position: relative; display: flex; align-items: center; gap: 13px; min-height: 47px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; color: #c7d8ed; font-size: 13px; font-weight: 680; transition: .2s ease; }
.app-nav a i { width: 20px; color: #77aee8; text-align: center; }
.app-nav a:hover { border-color: rgba(255,255,255,.11); color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.app-nav a.active { color: #fff; border-color: rgba(127, 203, 255, .22); background: linear-gradient(90deg, rgba(41,130,243,.32), rgba(255,255,255,.08)); box-shadow: inset 3px 0 #40c7ec; }
.app-nav a.active i { color: #62d9f5; }
.sidebar-license { margin-top: auto; display: flex; gap: 11px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: #d9e8f7; background: rgba(255,255,255,.06); }
.sidebar-license i { color: #52d6ac; font-size: 18px; }
.sidebar-license span { min-width: 0; display: flex; flex-direction: column; }
.sidebar-license strong { font-size: 12px; }
.sidebar-license small { margin-top: 3px; overflow: hidden; color: #8eabc9; font-size: 10px; text-overflow: ellipsis; }

.app-shell { min-height: 100vh; margin-left: var(--sidebar); }
.app-header { position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 34px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid rgba(211,223,237,.9); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.header-title { min-width: 0; display: flex; flex-direction: column; }
.header-title span { color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.header-title strong { margin-top: 2px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }
.icon-btn { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #4f6480; background: #fff; cursor: pointer; transition: .18s ease; }
.icon-btn:hover { color: var(--blue-600); border-color: #b9d1f2; background: #f5f9ff; box-shadow: var(--shadow-sm); }
.menu-toggle { display: none; }
.account-chip { display: flex; align-items: center; gap: 10px; padding: 5px 13px 5px 5px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.account-chip > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 800; background: linear-gradient(145deg, var(--blue-600), var(--cyan-500)); }
.account-chip div { display: flex; flex-direction: column; }
.account-chip strong { max-width: 150px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-chip small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.app-main { width: min(1500px, 100%); margin: 0 auto; padding: 35px 34px 60px; }
.app-footer { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); color: #94a2b4; font-size: 9px; text-align: center; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-heading h1 { margin: 5px 0 6px; font-size: clamp(27px, 3vw, 39px); line-height: 1.05; color: #10233d; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { display: block; color: var(--blue-600); font-size: 10px; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.heading-actions { display: flex; gap: 10px; }

.btn { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 750; cursor: pointer; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; border-color: var(--blue-600); background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); box-shadow: 0 9px 22px rgba(25,103,232,.22); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(25,103,232,.3); }
.btn-secondary { color: #294364; border-color: #cad9e9; background: #fff; }
.btn-secondary:hover { color: var(--blue-700); border-color: #9fc0ea; background: #f5f9ff; }
.btn-light { color: var(--navy-800); background: #fff; box-shadow: 0 10px 27px rgba(10,38,73,.13); }
.btn-small { min-height: 34px; padding-inline: 12px; font-size: 11px; }
.btn-wide { width: 100%; }

.card, .product-card, .service-manage-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-head { min-height: 78px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--soft-line); }
.card-head h2 { margin: 2px 0 4px; color: #172941; font-size: 17px; }
.card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.card-head > a { font-size: 11px; font-weight: 750; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; margin-bottom: 20px; }
.stat-card { position: relative; min-height: 144px; padding: 23px; display: flex; align-items: flex-start; gap: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -38px; top: -42px; border-radius: 50%; background: currentColor; opacity: .07; }
.stat-icon { flex: 0 0 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-size: 17px; background: currentColor; }
.stat-card > div { display: flex; flex-direction: column; }
.stat-card small { color: var(--muted); font-size: 11px; font-weight: 670; }
.stat-card strong { margin: 4px 0 3px; color: #10233d; font-size: 26px; }
.stat-card div span { color: #8a9aaf; font-size: 10px; }
.stat-card.blue { color: var(--blue-600); }
.stat-card.cyan { color: var(--cyan-500); }
.stat-card.orange { color: var(--orange-600); }
.stat-card.green { color: var(--green-600); }
.stat-card.blue .stat-icon { background: var(--blue-600); }
.stat-card.cyan .stat-icon { background: var(--cyan-500); }
.stat-card.orange .stat-icon { background: var(--orange-600); }
.stat-card.green .stat-icon { background: var(--green-600); }
a.stat-card { color: inherit; }
a.stat-card:hover { color: inherit; border-color: #bfd2e9; transform: translateY(-3px); box-shadow: var(--shadow); }
a.stat-card:focus-visible { outline: 3px solid rgba(25,103,232,.2); outline-offset: 3px; }
.stat-card div span i { margin-left: 5px; font-size: 8px; transition: transform .18s ease; }
a.stat-card:hover div span i { transform: translateX(3px); }
.dashboard-grid, .client-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap: 20px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 19px; border-bottom: 1px solid var(--soft-line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: #75869d; background: #f8fafd; font-size: 9px; font-weight: 820; letter-spacing: .085em; text-transform: uppercase; }
td { color: #42546d; font-size: 12px; }
tbody tr { transition: .16s ease; }
tbody tr:hover { background: #f8fbff; }
tbody tr:last-child td { border-bottom: 0; }
.empty-cell { padding: 38px 18px; color: #8898ac; text-align: center; }
.identity-cell { display: flex; align-items: center; gap: 11px; }
.identity-cell > span, .service-avatar { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--blue-700); font-weight: 820; background: #eaf3ff; }
.identity-cell div { display: flex; flex-direction: column; }
.identity-cell small, .subline { display: block; margin-top: 3px; color: #8a99ad; font-size: 10px; }
.compact-form { margin: 0; }
.table-search { position: relative; width: min(230px, 100%); }
.table-search i { position: absolute; top: 50%; left: 13px; color: #8da0b8; font-size: 11px; transform: translateY(-50%); }
.table-search input { padding-left: 36px; }

.service-list { padding: 5px 20px; }
.service-row { min-height: 68px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--soft-line); }
.service-list a.service-row { color: inherit; }
.service-list a.service-row:hover { margin-inline: -10px; padding-inline: 10px; color: inherit; border-radius: 11px; background: #f3f8ff; }
.service-row:last-child { border: 0; }
.service-row > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.service-row strong { overflow: hidden; color: #20344f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.service-row small { margin-top: 3px; color: #8292a7; font-size: 10px; }

.badge, .status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 9px; border: 1px solid transparent; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.badge-active, .badge-paid, .badge-answered { color: #087a58; border-color: #bce9d8; background: #eaf9f3; }
.badge-pending, .badge-unpaid, .badge-customer_reply, .badge-lead { color: #a24a07; border-color: #f3d1ad; background: #fff5e9; }
.badge-overdue, .badge-expired, .badge-cancelled, .badge-closed, .badge-suspended { color: #aa3340; border-color: #f1c2c8; background: #fff0f1; }
.badge-open, .badge-hidden, .badge-draft { color: #1759b7; border-color: #c7ddfb; background: #edf5ff; }

.product-grid, .service-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card, .service-manage-card { padding: 21px; transition: .2s ease; }
.product-card:hover, .service-manage-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card-top, .service-manage-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.product-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; color: var(--blue-700); background: #eaf3ff; }
.type-iptv { color: #0d8ea8; background: #e8fbff; }
.type-hosting { color: #1265d4; background: #eaf3ff; }
.type-server { color: #0d9167; background: #e9faf3; }
.type-digital { color: #bd5d13; background: #fff3e7; }
.product-card h2, .service-manage-card h2 { margin: 7px 0 8px; color: #152a46; font-size: 18px; }
.product-card p { min-height: 40px; margin-bottom: 23px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-card footer { padding-top: 15px; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--soft-line); }
.product-card footer strong { color: var(--blue-700); font-size: 19px; }
.product-card footer small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.service-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 18px 0; border: 1px solid var(--soft-line); border-radius: 12px; background: var(--soft-line); }
.service-meta > span { min-width: 0; padding: 13px; display: flex; flex-direction: column; background: #fafdff; }
.service-meta small { color: #8293a8; font-size: 9px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.service-meta strong { margin-top: 5px; overflow: hidden; color: #2e4562; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inline-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.inline-edit .btn { grid-column: 1 / -1; }

label { display: block; margin-bottom: 7px; color: #415670; font-size: 11px; font-weight: 720; }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #cedbea; border-radius: 10px; outline: 0; color: #213750; background: #fff; transition: .16s ease; }
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a1adbd; }
input:focus, select:focus, textarea:focus { border-color: #6ba5ef; box-shadow: 0 0 0 3px rgba(37,119,232,.11); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 20, 42, .65); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(610px,100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid rgba(255,255,255,.8); border-radius: 21px; background: #fff; box-shadow: 0 30px 90px rgba(6,26,53,.35); }
.modal-large { width: min(760px,100%); }
.modal-card > header { padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--soft-line); }
.modal-card h2 { margin: 4px 0 0; font-size: 20px; }
.modal-form { padding: 22px 23px; }
.modal-form footer, .settings-form > footer { margin-top: 22px; display: flex; justify-content: flex-end; gap: 9px; }
body.modal-open { overflow: hidden; }

.settings-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 20px; }
.settings-form .form-grid { padding: 23px; }
.settings-form > footer { padding: 0 23px 23px; }
.color-field { display: grid; grid-template-columns: 56px 1fr; gap: 0 10px; align-items: center; }
.color-field label { grid-column: 1 / -1; }
.color-field input[type="color"] { width: 56px; min-height: 43px; padding: 4px; cursor: pointer; }
.color-field span { color: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.license-summary { padding: 28px; }
.license-state-icon { width: 56px; height: 56px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 16px; color: #087f5d; font-size: 23px; background: #e7f8f1; }
.license-summary h2 { margin: 7px 0 9px; }
.license-summary p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.license-meta { display: flex; gap: 1px; overflow: hidden; margin-top: 19px; border: 1px solid var(--soft-line); border-radius: 12px; background: var(--soft-line); }
.license-meta.vertical { flex-direction: column; }
.license-meta > span { flex: 1; min-width: 0; padding: 13px; display: flex; flex-direction: column; background: #f8fbff; }
.license-meta small { color: #8796a9; font-size: 9px; text-transform: uppercase; }
.license-meta strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 11px; }

.ticket-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; }
.ticket-workspace { display: grid; grid-template-columns: minmax(300px,.68fr) minmax(420px,1.32fr); gap: 20px; align-items: start; }
.ticket-list { overflow: hidden; }
.ticket-row { min-height: 76px; padding: 15px 21px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--soft-line); }
.ticket-row { color: inherit; }
.ticket-row:hover, .ticket-row.selected { color: inherit; background: #f2f7ff; }
.ticket-row.selected { box-shadow: inset 3px 0 var(--blue-600); }
.ticket-row:last-child { border: 0; }
.ticket-row > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ticket-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.priority-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #91a0b4; }
.priority-high { background: #ec8d24; }
.priority-urgent { background: #d63b49; box-shadow: 0 0 0 4px #ffe9eb; }
.priority-low { background: #28a879; }
.support-note { padding: 27px; color: #dbeaff; border-color: #173c69; background: linear-gradient(145deg,var(--navy-800),var(--navy-950)); }
.support-note-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: rgba(52,153,255,.24); }
.support-note h2 { margin: 22px 0 8px; color: #fff; }
.support-note p, .support-note li { color: #afc6df; font-size: 12px; line-height: 1.65; }
.support-note ul { padding-left: 17px; }
.conversation-card { overflow: hidden; }
.conversation-head { padding: 21px 23px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--soft-line); }
.conversation-head h2 { margin: 5px 0; font-size: 17px; }
.conversation-head p { margin: 0; color: var(--muted); font-size: 10px; }
.conversation-messages { max-height: 490px; padding: 22px; overflow-y: auto; background: #f7faff; }
.message { width: min(82%, 620px); margin-bottom: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px 14px 14px; background: #fff; }
.message.from-admin { margin-left: auto; border-color: #b9d6fb; border-radius: 14px 4px 14px 14px; background: #edf5ff; }
.message header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.message header strong { color: #24405f; font-size: 10px; }
.message header small { color: #899aaf; font-size: 9px; }
.message p { margin: 7px 0 0; color: #435872; font-size: 12px; line-height: 1.6; }
.reply-form { padding: 19px 22px; border-top: 1px solid var(--soft-line); }
.reply-form textarea { min-height: 82px; }
.reply-form footer { margin-top: 10px; display: flex; justify-content: flex-end; }
.close-ticket-form { padding: 0 22px 19px; text-align: right; }
.service-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.service-actions form { margin: 0; }
.service-actions .btn { width: 100%; }
.service-actions form:only-child { grid-column: 1 / -1; }

.client-welcome { position: relative; margin-bottom: 20px; padding: 29px 31px; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; border-radius: 21px; color: #dcecff; background: linear-gradient(120deg,#103a70,#1268cf 65%,#05a5c1); box-shadow: var(--shadow); }
.client-welcome::after { content: ""; position: absolute; width: 210px; height: 210px; right: 19%; top: -155px; border: 35px solid rgba(255,255,255,.1); border-radius: 50%; }
.client-welcome > * { position: relative; z-index: 1; }
.client-welcome .eyebrow { color: #78def7; }
.client-welcome h1 { margin: 6px 0; color: #fff; font-size: 28px; }
.client-welcome p { margin: 0; color: #c3dcf5; font-size: 13px; }
.client-service { border-top: 4px solid var(--blue-600); }

.catalog-card { display: flex; min-height: 330px; flex-direction: column; }
.catalog-card > p { flex: 1; }
.catalog-card footer > div { display: flex; flex-direction: column; }
.catalog-type { padding: 6px 9px; border-radius: 999px; color: #385675; background: #edf4fb; font-size: 9px; font-weight: 780; text-transform: uppercase; }
.catalog-empty { grid-column: 1 / -1; }
.product-not-found { min-height: 390px; gap: 10px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr); gap: 20px; align-items: start; }
.product-detail-main { padding: 34px; }
.product-detail-main .product-icon { margin-bottom: 25px; width: 58px; height: 58px; font-size: 20px; }
.product-detail-main h2 { margin: 8px 0 13px; font-size: 28px; }
.product-detail-main > p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.detail-benefits { margin-top: 28px; padding-top: 22px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border-top: 1px solid var(--soft-line); }
.detail-benefits span { padding: 13px; display: flex; align-items: center; gap: 8px; border-radius: 11px; color: #39526e; background: #f5f9fd; font-size: 10px; font-weight: 680; }
.detail-benefits i { color: var(--blue-600); }
.checkout-card { position: sticky; top: 96px; padding: 28px; }
.checkout-price { margin: 17px 0 21px; display: flex; flex-direction: column; }
.checkout-price strong { color: var(--blue-700); font-size: 31px; }
.checkout-price span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.checkout-card ul { margin: 0 0 23px; padding: 0; display: grid; gap: 11px; list-style: none; }
.checkout-card li { display: flex; gap: 9px; color: #52677f; font-size: 11px; }
.checkout-card li i { color: var(--green-600); }
.checkout-card > small { display: block; margin-top: 14px; color: #8a99ab; font-size: 9px; line-height: 1.55; text-align: center; }
.service-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.8fr); gap: 20px; align-items: start; }
.service-detail-hero { padding: 28px; }
.service-detail-title { display: flex; align-items: center; gap: 14px; }
.service-detail-title > div { min-width: 0; flex: 1; }
.service-detail-title h2 { margin: 5px 0 0; font-size: 23px; }
.service-detail-hero > p { margin: 23px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-detail-meta { margin-bottom: 0; }
.access-card { overflow: hidden; }
.access-card .card-head > i { color: var(--green-600); }
.access-fields { padding: 20px; display: grid; gap: 10px; }
.access-fields > span { padding: 13px 14px; display: flex; flex-direction: column; border: 1px solid var(--soft-line); border-radius: 11px; background: #f9fbfe; }
.access-fields small { color: #8293a8; font-size: 9px; font-weight: 720; text-transform: uppercase; }
.access-fields strong { margin-top: 5px; color: #2e4562; font-size: 11px; overflow-wrap: anywhere; }
.access-fields details { margin-top: 5px; }
.access-fields summary { color: var(--blue-600); font-size: 10px; font-weight: 720; cursor: pointer; }
.access-fields code { display: block; margin-top: 8px; padding: 9px; border-radius: 8px; color: #243a56; background: #edf4fb; overflow-wrap: anywhere; }
.renewal-panel { margin-top: 20px; padding: 23px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.renewal-panel h2 { margin: 4px 0; font-size: 18px; }
.renewal-panel p { margin: 0; color: var(--muted); font-size: 11px; }

.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8b9bad; text-align: center; }
.empty-state i { margin-bottom: 12px; color: #b8c7d7; font-size: 25px; }
.empty-state strong { color: #4d6078; font-size: 13px; }
.empty-state span { margin-top: 5px; font-size: 10px; }
.alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 12px; }
.alert-success { color: #087653; border-color: #bde8d8; background: #edfaf5; }
.alert-danger { color: #a83441; border-color: #efc3c8; background: #fff1f2; }

.login-page { background: #eef4fb; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(440px, .95fr); }
.login-visual { position: relative; padding: clamp(40px,7vw,90px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(29,161,224,.5), transparent 28%), linear-gradient(145deg,#092343,#0d437c 55%,#087f9c); }
.login-visual::after { content: ""; position: absolute; width: 430px; height: 430px; right: -210px; bottom: -220px; border: 72px solid rgba(255,255,255,.06); border-radius: 50%; }
.login-visual > * { position: relative; z-index: 1; }
.login-visual .eyebrow { color: #62d9f5; }
.login-visual h1 { max-width: 650px; margin: 14px 0 18px; color: #fff; font-size: clamp(39px,5vw,68px); line-height: .99; }
.login-visual p { max-width: 580px; color: #b9d0e8; font-size: 15px; line-height: 1.7; }
.visual-trust { display: flex; gap: 22px; color: #cbe0f3; font-size: 11px; }
.visual-trust i { margin-right: 7px; color: #5edbb9; }
.login-panel { padding: 40px; display: grid; place-items: center; }
.login-card { width: min(430px,100%); padding: clamp(28px,4vw,44px); border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow); }
.login-card h2 { margin: 8px 0; font-size: 29px; }
.login-card > p { margin-bottom: 26px; color: var(--muted); font-size: 12px; }
.login-card label { margin-top: 15px; }
.login-card .btn { margin-top: 21px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; top: 50%; left: 14px; color: #8495aa; transform: translateY(-50%); }
.input-icon input { padding-left: 40px; }
.login-help { display: block; margin-top: 17px; color: #8898ac; font-size: 10px; text-align: center; }

.install-page { min-height: 100vh; padding: 45px 18px; background: radial-gradient(circle at 10% 0,#d9ebff,transparent 31%), var(--canvas); }
.install-shell { width: min(980px,100%); margin: auto; }
.install-brand { margin-bottom: 20px; color: var(--navy-800); }
.install-card { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow); }
.install-heading { padding: 33px; color: #dcecff; background: linear-gradient(155deg,var(--navy-800),var(--navy-950)); }
.install-heading > .eyebrow { margin-top: 24px; color: #62d9f5; }
.install-heading h1 { margin: 18px 0 10px; color: #fff; }
.install-heading p { color: #adc5df; font-size: 12px; line-height: 1.65; }
.install-icon { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 15px; color: #fff; font-size: 20px; background: linear-gradient(145deg,var(--blue-500),var(--cyan-500)); }
.requirements { margin-top: 30px; display: grid; gap: 10px; }
.requirements span { padding: 9px 11px; display: flex; align-items: center; gap: 8px; border-radius: 9px; color: #bfd2e7; font-size: 10px; background: rgba(255,255,255,.06); }
.requirements .ok i { color: #53d6ae; }
.requirements .bad i { color: #ff8790; }
.install-form { padding: 33px; }
.install-form h2 { margin-bottom: 5px; }
.install-form > p { color: var(--muted); font-size: 12px; }
.install-form h3 { margin: 26px 0 13px; padding-bottom: 9px; border-bottom: 1px solid var(--soft-line); color: #27405f; font-size: 13px; }
.install-form fieldset { margin: 0 0 23px; padding: 0; border: 0; }
.install-form legend { width: 100%; margin-bottom: 15px; padding-bottom: 9px; border-bottom: 1px solid var(--soft-line); color: #27405f; font-size: 12px; font-weight: 780; }
.install-success { display: block; padding: 46px; text-align: center; }
.install-success .install-icon { margin: 0 auto 18px; }

.license-page-card { padding: 35px; display: flex; gap: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.license-page-card.invalid { border-color: #eec3c8; }
.license-page-card.invalid .license-state-icon { color: #bd3946; background: #fff0f1; }
.status-pill { color: #087a58; background: #eaf9f3; }
.license-page-card.invalid .status-pill { color: #a93440; background: #fff0f1; }
.license-page-card h2 { margin: 11px 0 3px; }

@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-grid, .service-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid, .client-overview-grid { grid-template-columns: 1fr; }
    .product-detail-layout, .service-detail-layout { grid-template-columns: 1fr; }
    .checkout-card { position: static; }
}
@media (max-width: 860px) {
    .app-sidebar { transform: translateX(-105%); transition: transform .24s ease; }
    .app-sidebar.open { transform: translateX(0); }
    .app-shell { margin-left: 0; }
    .menu-toggle { display: inline-grid; }
    .app-header { padding: 0 18px; }
    .app-main { padding: 25px 18px 50px; }
    .settings-grid, .ticket-grid, .ticket-workspace { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 390px; padding: 45px 30px; }
    .login-panel { padding: 35px 18px; }
    .install-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .account-chip { display: none; }
    .header-title span { display: none; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading .btn { width: 100%; }
    .stat-grid, .product-grid, .service-card-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .card-head { align-items: flex-start; flex-direction: column; }
    .table-search { width: 100%; }
    .service-meta { grid-template-columns: 1fr; }
    .client-welcome { align-items: flex-start; flex-direction: column; }
    .client-welcome .btn { width: 100%; }
    .client-welcome .heading-actions { width: 100%; flex-direction: column; }
    .detail-benefits { grid-template-columns: 1fr; }
    .renewal-panel { align-items: stretch; flex-direction: column; }
    .license-page-card { flex-direction: column; }
    .license-meta { flex-direction: column; }
    .visual-trust { align-items: flex-start; flex-direction: column; gap: 9px; }
}
