:root {
    --ink: #0B0B0D;
    --ink-2: #2a1c16;
    --chocolate: #4B241C;
    --chocolate-2: #6b3d2d;
    --gold: #D4AF37;
    --gold-2: #f2c858;
    --cream: #fffaf0;
    --paper: #ffffff;
    --canvas: #f5f2ed;
    --muted: #756d67;
    --line: #e7dfd6;
    --green: #17745a;
    --green-soft: #e9f7f1;
    --red: #b13b3b;
    --red-soft: #fff0ef;
    --blue: #356ca3;
    --blue-soft: #edf5ff;
    --success-text: #135f49;
    --error-text: #8c2727;
    --info-text: #275c8e;
    --muted-badge-text: #645d58;
    --muted-badge-bg: #eeeae7;
    --badge-text: #514941;
    --badge-bg: #eee9e3;
    --warning-badge-text: #755200;
    --warning-badge-bg: #fff5d5;
    --link: #6b3d2d;
    --label: #4e4540;
    --field-border: #d9d0c8;
    --surface-soft: #f6f2ed;
    --surface-softer: #fbfaf8;
    --topbar-bg: rgba(255,255,255,.92);
    --footer-bg: rgba(255,255,255,.55);
    --card-footer-bg: #fcfbf9;
    --row-hover: #fffdf7;
    --guide-start: #fffaf0;
    --guide-end: #fffdf7;
    --guide-text: #65584f;
    --guide-line: #eedca8;
    --guide-hover: rgba(212,175,55,.1);
    --tab-active-bg: #fff6d9;
    --glass-card: rgba(255,255,255,.94);
    --warning-bg: #fff8df;
    --warning-text: #6c4a00;
    --warning-line: #efd58d;
    --code-bg: #fffaf0;
    --code-text: #443a34;
    --code-line: #cdbf9f;
    --guest-start: #f9f5ed;
    --guest-middle: #ffffff;
    --guest-end: #efe6db;
    --shadow: 0 18px 50px rgba(42, 28, 22, .08);
    --sidebar: 270px;
    --radius: 18px;
    color-scheme: light;
}
html[data-theme="dark"] {
    --ink: #f8efe6;
    --ink-2: #f1e2d9;
    --cream: #241915;
    --paper: #211816;
    --canvas: #160f0d;
    --muted: #c5b7ae;
    --line: #44332d;
    --green: #54b995;
    --green-soft: #163a2e;
    --red: #e17272;
    --red-soft: #422323;
    --blue: #78a9dc;
    --blue-soft: #1c3045;
    --success-text: #9fe0c7;
    --error-text: #ffb0aa;
    --info-text: #add3f5;
    --muted-badge-text: #d0c3bb;
    --muted-badge-bg: #382d29;
    --badge-text: #ddd0c7;
    --badge-bg: #382d29;
    --warning-badge-text: #f2d98b;
    --warning-badge-bg: #3a3017;
    --link: #e0bd4f;
    --label: #ded0c8;
    --field-border: #5b443b;
    --surface-soft: #2b201d;
    --surface-softer: #281d1a;
    --topbar-bg: rgba(22,15,13,.93);
    --footer-bg: rgba(33,24,22,.68);
    --card-footer-bg: #281d1a;
    --row-hover: #2b211d;
    --guide-start: #2b2417;
    --guide-end: #241c16;
    --guide-text: #d8c9bf;
    --guide-line: #74602a;
    --guide-hover: rgba(212,175,55,.1);
    --tab-active-bg: #3a3017;
    --glass-card: rgba(33,24,22,.95);
    --warning-bg: #352b14;
    --warning-text: #f2d98b;
    --warning-line: #74602a;
    --code-bg: #2b2417;
    --code-text: #f2dfb4;
    --code-line: #806c35;
    --guest-start: #1b120f;
    --guest-middle: #160f0d;
    --guest-end: #261813;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; color: #fff; background: linear-gradient(175deg, #0B0B0D 0%, #271711 55%, #4B241C 135%); box-shadow: 16px 0 45px rgba(11, 11, 13, .15); transition: transform .24s ease; }
.brand { min-height: 84px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 24px rgba(216, 166, 47, .25); }
.logo-fallback { color: #0B0B0D; font-size: 25px; font-weight: 900; }
.project-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; color: #fff; }
.brand-copy strong { font-size: 17px; letter-spacing: .01em; }
.brand-copy span { color: rgba(255,255,255,.58); font-size: 11px; }
.sidebar-close { margin-left: auto; display: none; color: #fff; background: rgba(255,255,255,.08); }
.main-nav { padding: 16px 12px; overflow-y: auto; scrollbar-width: thin; }
.nav-link { min-height: 46px; display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 9px 12px; border-radius: 12px; color: rgba(255,255,255,.7); transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-link.active { color: #0B0B0D; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 9px 25px rgba(216, 166, 47, .18); }
.nav-icon { flex: 0 0 26px; width: 26px; text-align: center; font-size: 17px; font-weight: 800; }
.nav-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: var(--red); font-size: 11px; font-weight: 800; }
.nav-divider { margin: 13px 8px; border-top: 1px solid rgba(255,255,255,.1); }
.owner-link { color: var(--gold-2); }
.sidebar-footer { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.mini-profile { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.profile-copy { min-width: 0; display: flex; flex-direction: column; }
.profile-copy strong, .profile-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-copy strong { color: #fff; font-size: 13px; }
.profile-copy small { color: rgba(255,255,255,.53); font-size: 10px; }
.account-return { min-height: 58px; margin-bottom: 9px; padding: 8px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid rgba(212,175,55,.36); border-radius: 12px; color: #fff; background: linear-gradient(120deg, rgba(212,175,55,.18), rgba(255,255,255,.06)), rgba(0,0,0,.18); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.account-return:hover { color: #fff; border-color: rgba(212,175,55,.75); box-shadow: 0 10px 25px rgba(0,0,0,.2); transform: translateY(-1px); }
.account-return-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #24140f; background: linear-gradient(145deg, #f7e3a7, var(--gold)); font-family: Georgia, serif; font-weight: 900; }
.account-return-copy { min-width: 0; display: grid; }
.account-return-copy strong, .account-return-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-return-copy strong { font-size: 12px; }
.account-return-copy small { color: #cdbcb3; font-size: 9px; }
.account-return-arrow { color: var(--gold-2); font-weight: 900; transition: transform .18s ease; }
.account-return:hover .account-return-arrow { transform: translate(2px,-2px); }
.main-column { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; transition: margin-left .24s ease; }
.sidebar-collapsed .sidebar { transform: translateX(-102%); }
.sidebar-collapsed .main-column { margin-left: 0; }
.topbar { position: sticky; z-index: 40; top: 0; min-height: 74px; display: flex; align-items: center; gap: 14px; padding: 10px clamp(16px, 3vw, 36px); background: var(--topbar-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.icon-button { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: var(--surface-soft); }
.icon-button:hover { color: #0B0B0D; background: var(--gold-2); }
.menu-toggle { padding: 10px; gap: 4px; align-content: center; }
.menu-toggle span { width: 20px; height: 2px; display: block; border-radius: 5px; background: currentColor; }
.topbar-title { min-width: 0; display: flex; flex-direction: column; }
.topbar-title > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 800; font-size: 17px; }
.topbar-title small { color: var(--muted); font-size: 11px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle { border: 1px solid var(--line); }
.avatar { position: relative; width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: var(--chocolate); font-size: 12px; font-weight: 850; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 38px; height: 38px; flex-basis: 38px; }
.content-area { width: 100%; max-width: 1640px; margin: 0 auto; padding: clamp(18px, 3vw, 38px); flex: 1; }
.site-footer { padding: 20px 24px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; font-size: 12px; background: var(--footer-bg); }
.sidebar-backdrop { display: none; }
.page-heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-heading h1 { margin: 0; font-size: clamp(25px, 4vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.guide-card { margin: 0 0 22px; overflow: hidden; border: 1px solid var(--guide-line); border-radius: 16px; background: linear-gradient(135deg, var(--guide-start), var(--guide-end)); box-shadow: 0 8px 30px rgba(216,166,47,.07); }
.guide-card summary { min-height: 64px; padding: 12px 16px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary:hover { background: var(--guide-hover); }
.guide-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--chocolate); font-family: Georgia, serif; font-weight: 800; }
.guide-summary { min-width: 0; display: grid; }
.guide-summary strong { font-size: 14px; }
.guide-summary small { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.guide-toggle { display: flex; align-items: center; gap: 8px; color: var(--link); font-size: 11px; font-weight: 850; white-space: nowrap; }
.guide-toggle i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-soft); transition: transform .25s ease; }
.guide-toggle i::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); }
.guide-card[open] .guide-toggle i { transform: rotate(180deg); }
.guide-reveal { border-top: 1px dashed var(--line); }
.guide-card p { margin: 0; padding: 14px 18px 16px 60px; color: var(--guide-text); font-size: 13px; }
.alert { margin: 0 0 20px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; border-radius: 14px; border: 1px solid; box-shadow: 0 10px 35px rgba(0,0,0,.04); }
.alert > span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.alert > div { flex: 1; padding-top: 1px; }
.alert button { border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 19px; }
.alert-success { color: var(--success-text); border-color: #a8dfcc; background: var(--green-soft); }
.alert-success > span { color: #fff; background: var(--green); }
.alert-error { color: var(--error-text); border-color: #f0b5b0; background: var(--red-soft); }
.alert-error > span { color: #fff; background: var(--red); }
.alert-warning { color: var(--warning-text); border-color: var(--warning-line); background: var(--warning-bg); }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { position: relative; min-height: 138px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -30px; bottom: -30px; border-radius: 50%; background: rgba(216,166,47,.12); }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--chocolate); background: #faf0cf; font-weight: 900; }
.metric-value { margin-top: 13px; font-size: clamp(22px, 2.4vw, 31px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.metric-label { margin-top: 7px; color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); }
.card { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.card-header { min-height: 65px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; font-size: 16px; }
.card-body { padding: 19px; }
.card-footer { padding: 14px 19px; border-top: 1px solid var(--line); background: var(--card-footer-bg); border-radius: 0 0 var(--radius) var(--radius); }
.stack { display: grid; gap: 14px; }
.section-stack { display: grid; gap: 22px; }
.requirement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.requirement-item { min-width: 0; padding: 12px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.requirement-item .badge { grid-row: 1 / 3; }
.requirement-item strong { font-size: 12px; }
.requirement-item small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-span { grid-column: 1 / -1; }
.field label, .label { color: var(--label); font-size: 12px; font-weight: 750; }
.field small, .help { color: var(--muted); font-size: 11px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--field-border); border-radius: 11px; outline: none; background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216,166,47,.14); }
input[type="file"] { padding: 7px; }
.check { display: flex; align-items: flex-start; gap: 9px; color: var(--label); font-size: 13px; }
.check input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; accent-color: var(--chocolate); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.button { min-height: 41px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 760; font-size: 13px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--chocolate-2), #0B0B0D); box-shadow: 0 8px 20px rgba(42,28,22,.15); }
.button-gold { color: #0B0B0D; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface-soft); }
.button-danger { color: #fff; background: var(--red); }
.button-ghost { color: inherit; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.button-block { width: 100%; }
.button-small { min-height: 32px; padding: 5px 9px; border-radius: 8px; font-size: 11px; }
.button[disabled] { opacity: .5; pointer-events: none; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: var(--surface-softer); font-size: 10px; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--row-hover); }
.table-message { min-width: 240px; max-width: 440px; white-space: normal; word-break: break-word; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.strong { font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 8px; border-radius: 99px; color: var(--badge-text); background: var(--badge-bg); font-size: 10px; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.badge-success, .badge-delivered, .badge-active, .badge-completed, .badge-published { color: var(--success-text); background: var(--green-soft); }
.badge-error, .badge-failed, .badge-rejected, .badge-blocked, .badge-suspended, .badge-revoked { color: var(--error-text); background: var(--red-soft); }
.badge-warning, .badge-pending, .badge-scheduled, .badge-processing, .badge-degraded, .badge-more_info { color: var(--warning-badge-text); background: var(--warning-badge-bg); }
.badge-info, .badge-submitted, .badge-sent, .badge-provider_review { color: var(--info-text); background: var(--blue-soft); }
.badge-muted, .badge-expired, .badge-cancelled, .badge-hidden { color: var(--muted-badge-text); background: var(--muted-badge-bg); }
.list { display: grid; gap: 0; }
.list-item { padding: 13px 0; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-dot { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 6px; border-radius: 50%; background: var(--gold); }
.list-copy { min-width: 0; flex: 1; }
.list-copy strong, .list-copy span { display: block; }
.list-copy span { color: var(--muted); font-size: 11px; }
.empty { padding: 30px 18px; color: var(--muted); text-align: center; }
.price { font-size: 23px; font-weight: 900; letter-spacing: -.025em; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer { position: relative; min-width: 0; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.offer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold), var(--chocolate)); }
.offer h3 { margin: 0 0 5px; }
.offer p { min-height: 42px; color: var(--muted); font-size: 12px; }
.offer-features { margin: 15px 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--label); font-size: 12px; }
.offer-features li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }
.sms-estimate { margin-bottom: 4px; padding: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border: 1px solid var(--guide-line); border-radius: 13px; background: linear-gradient(135deg, var(--guide-start), var(--surface-softer)); }
.sms-estimate > div { min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.sms-estimate span, .package-total span { display: block; color: var(--muted); font-size: 10px; }
.sms-estimate strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; font-size: 15px; white-space: nowrap; }
.package-total { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--guide-line); border-radius: 12px; background: var(--guide-start); }
.package-total strong { color: var(--ink); font-size: 18px; }
.price small { color: var(--muted); font-size: 11px; font-weight: 700; }
.package-tier .field input[type="number"] { font-size: 17px; font-weight: 800; }
.multi-select { min-height: 150px; padding: 7px; }
.sender-details-form { min-width: min(430px, 72vw); margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-softer); }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.inline-form input, .inline-form select { width: auto; min-width: 130px; }
.toolbar { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.toolbar form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; }
.tabs { margin: 0 0 20px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.tab { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--paper); font-size: 12px; font-weight: 780; }
.tab.active { color: var(--ink); border-color: var(--gold); background: var(--tab-active-bg); }
.counter { padding: 7px 10px; border-radius: 9px; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 750; }
.code-box { min-height: 44px; padding: 10px 12px; overflow-wrap: anywhere; border: 1px dashed var(--code-line); border-radius: 10px; color: var(--code-text); background: var(--code-bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.code-box-grow { min-width: 0; flex: 1; }
.webhook-explainer { padding: 15px; border: 1px solid var(--guide-line); border-radius: 13px; background: var(--guide-start); }
.webhook-explainer strong { display: block; margin-bottom: 5px; }
.webhook-explainer p { margin: 0; color: var(--guide-text); font-size: 12px; }
.webhook-explainer ol { margin: 10px 0 0; padding-left: 20px; color: var(--guide-text); font-size: 12px; }
.webhook-explainer li + li { margin-top: 5px; }
.status-row { display: flex; flex-wrap: wrap; gap: 7px; }
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.progress > span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--chocolate)); }
.quick-compose-card { width: min(920px, 100%); margin-inline: auto; }
.timezone-strip { min-height: 42px; padding: 10px 12px; display: flex; flex-flow: row wrap; align-items: center; gap: 5px; border: 1px solid var(--guide-line); border-radius: 11px; color: var(--guide-text); background: var(--guide-start); font-size: 11px; }
.timezone-strip strong { color: var(--ink); }
.modal-open { overflow: hidden; }
.confirm-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 18px; }
.confirm-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(9, 6, 5, .72); backdrop-filter: blur(5px); cursor: default; }
.confirm-modal-panel { position: relative; width: min(460px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 35px 100px rgba(0,0,0,.38); }
.confirm-modal-brand { padding: 16px 18px; display: flex; align-items: center; gap: 11px; color: #fff; background: linear-gradient(135deg, #0B0B0D, var(--chocolate)); }
.confirm-modal-brand > span:last-child { min-width: 0; display: grid; }
.confirm-modal-brand strong { font-size: 16px; }
.confirm-modal-brand small { color: rgba(255,255,255,.64); font-size: 10px; }
.confirm-modal-logo { position: relative; width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, var(--gold-2), var(--gold)); }
.confirm-modal-body { padding: 22px 20px 15px; }
.confirm-modal-body h2 { margin: 0 0 8px; font-size: 20px; }
.confirm-modal-body p { margin: 0; color: var(--muted); white-space: pre-line; }
.confirm-modal-actions { padding: 14px 20px 20px; display: flex; justify-content: flex-end; gap: 9px; }
.guest-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 10% 10%, rgba(216,166,47,.18), transparent 35%), linear-gradient(150deg, var(--guest-start), var(--guest-middle) 48%, var(--guest-end)); }
.guest-brand { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guest-brand-copy { min-width: 0; display: flex; align-items: center; gap: 12px; }
.guest-brand-copy > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.guest-brand strong { font-size: 18px; }
.guest-brand-copy > div:last-child span { color: var(--muted); font-size: 11px; }
.guest-main { width: min(1120px, calc(100% - 32px)); margin: auto; padding: 24px 0 48px; }
.auth-card { width: min(460px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 44px); text-align: center; border: 1px solid var(--line); border-radius: 26px; background: var(--glass-card); box-shadow: 0 35px 90px rgba(42,28,22,.12); }
.auth-card h1 { margin: 0 0 10px; font-size: clamp(28px, 6vw, 42px); letter-spacing: -.04em; }
.auth-card p { margin: 0 0 24px; color: var(--muted); }
.install-card { width: min(920px, 100%); margin: 0 auto; border: 1px solid var(--line); border-radius: 26px; background: var(--glass-card); box-shadow: 0 35px 90px rgba(42,28,22,.12); }
.install-head { padding: 28px; color: #fff; border-radius: 26px 26px 0 0; background: linear-gradient(135deg, #0B0B0D, var(--chocolate)); }
.install-head h1 { margin: 0; }
.install-head p { margin: 8px 0 0; color: rgba(255,255,255,.65); }
.install-body { padding: clamp(20px, 4vw, 34px); }
@media (max-width: 1380px) {
    .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
    .sidebar { transform: translateX(-102%); width: min(310px, 88vw); }
    .main-column { margin-left: 0; }
    .sidebar-mobile-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 55; inset: 0; border: 0; background: rgba(15,10,8,.56); backdrop-filter: blur(3px); }
    .sidebar-mobile-open .sidebar-backdrop { display: block; }
    .sidebar-close { display: grid; }
}
@media (max-width: 900px) {
    .grid-main, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .offer-grid { grid-template-columns: 1fr 1fr; }
    .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .requirement-list { grid-template-columns: 1fr; }
    body { font-size: 14px; }
    .topbar { min-height: 65px; padding: 8px 12px; }
    .topbar-title small { display: none; }
    .content-area { padding: 16px 12px 28px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .metric-card { min-height: 120px; padding: 14px; }
    .offer-grid, .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .card-header, .card-body { padding-left: 14px; padding-right: 14px; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .toolbar form { align-items: stretch; flex-direction: column; }
    .toolbar input, .toolbar select, .inline-form input, .inline-form select { width: 100%; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .button-mobile-block { width: 100%; }
    .sms-estimate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sender-details-form { min-width: 0; width: 100%; }
    .confirm-modal { padding: 12px; align-items: end; }
    .confirm-modal-panel { border-radius: 20px 20px 14px 14px; }
    .confirm-modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .confirm-modal-actions .button { width: 100%; }
    .guide-card summary { padding: 11px 12px; grid-template-columns: 30px minmax(0,1fr) auto; gap: 9px; }
    .guide-card p { padding: 13px 13px 15px 51px; }
    th, td { padding: 10px; }
    .card details form { min-width: 0 !important; max-width: calc(100vw - 54px); }
}
@media (max-width: 390px) {
    .metrics { grid-template-columns: 1fr; }
    .metric-card { min-height: auto; }
    .topbar-title > span { max-width: 145px; }
    .guide-toggle > span { display: none; }
    .guide-card p { padding-left: 13px; }
    .sms-estimate { grid-template-columns: 1fr 1fr; padding: 8px; }
    .guest-brand { width: min(100% - 24px, 1120px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
