/* i3 WhatsApp Panel — hand-written CSS, no build step */
:root {
  --bg: #f8f6f4;
  --card: #ffffff;
  --ink: #231a14;
  --ink-2: #5b4d43;
  --ink-3: #968679;
  --line: #ece4dd;
  --line-2: #f4efea;
  --brand: #ea6a12;
  --brand-2: #c4560b;
  --brand-soft: #fff0e4;
  --accent: #ff9a3c;
  --side: #24160d;
  --side-2: #3a2416;
  --side-ink: #e8d3c3;
  --blue: #2563eb; --blue-soft: #e6eefe;
  --amber: #b7791f; --amber-soft: #fdf3e1;
  --red: #c2413b; --red-soft: #fdeceb;
  --green: #138a52; --green-soft: #e3f6ec;
  --grey: #7a6b60; --grey-soft: #f3eeea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(60, 35, 15, .05), 0 4px 16px rgba(60, 35, 15, .05);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --chat: #efeae2;
  --bubble-out: #d9fdd3;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 .75rem; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--grey-soft); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
small, .muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* ── Shell ───────────────────────────── */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px; padding: 6px 8px 14px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #ea6a12); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; color: #fff; }
.logo small { display: block; color: var(--side-ink); font-weight: 500; font-size: 11px; }
.side-status { background: var(--side-2); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 12px; display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none !important; }
.side-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #f5a524; flex: none; box-shadow: 0 0 0 4px rgba(245,165,36,.18); }
.side-status.ok .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,154,60,.22); }
.side-status span { display: block; color: var(--side-ink); font-size: 11px; }
.nav-group { margin: 6px 0; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #b08b70; padding: 10px 10px 4px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--side-ink); border-radius: 8px; font-weight: 500; text-decoration: none !important; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: var(--brand); color: #fff; }
.nav a .count { margin-left: auto; background: var(--accent); color: #3a1c06; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--side-2); font-size: 12px; }
.side-foot a { color: var(--side-ink); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: 17px; margin: 0; }
.top .sp { flex: 1; }
.trial-pill { font-size: 12px; background: var(--amber-soft); color: var(--amber); padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.icon-btn { position: relative; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; font-weight: 700; }
.user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-chip .who { font-size: 12.5px; line-height: 1.2; }
.user-chip .who small { display: block; }
.dropdown { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; display: none; z-index: 40; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; color: var(--ink); font: inherit; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.dropdown a:hover, .dropdown button:hover { background: var(--grey-soft); }
.content { padding: 24px; max-width: 1360px; width: 100%; }
.impersonate { background: #7c3aed; color: #fff; text-align: center; padding: 6px; font-size: 13px; }
.impersonate a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ── Cards & layout ──────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-b { padding: 18px 20px; }
.card-h { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; }
.card-h .sp { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row .sp { flex: 1; }
.stack > * + * { margin-top: 16px; }
.page-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sp { flex: 1; }
.page-head p { color: var(--ink-2); margin: 2px 0 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }

/* ── Stats ───────────────────────────── */
.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.stat .s { font-size: 12px; color: var(--ink-2); }
.bar { height: 7px; background: var(--grey-soft); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* ── Buttons & forms ─────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: #e0cfc2; background: #fffaf6; }
.btn svg { width: 16px; height: 16px; }
.btn-p { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-p:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-d { color: var(--red); }
.btn-d:hover { background: var(--red-soft); border-color: #f2c9c6; }
.btn-fb { background: #1877f2; border-color: #1877f2; color: #fff; height: 42px; padding: 0 20px; font-size: 14px; }
.btn-fb:hover { background: #1464cf; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.link-btn.red { color: var(--red); }
label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 5px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid #e2d6cc; border-radius: 9px; background: #fff; font: 14px var(--font); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 90px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234, 106, 18, .16); }
input[type=file] { font: 13px var(--font); }
select[multiple] { height: auto; min-height: 90px; padding: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; margin: 0; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #e0d2c7; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; cursor: pointer; background: #fff; font-weight: 500; }
.chip-check input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-2); font-weight: 600; }

/* ── Tables ──────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fffaf6; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fffaf6; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .actions { text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty svg { width: 42px; height: 42px; color: #d8c3b4; margin-bottom: 8px; }
.empty h3 { color: var(--ink); }

/* ── Badges, alerts ──────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-green { background: var(--green-soft); color: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-blue { background: var(--blue-soft); color: var(--blue); }
.b-grey { background: var(--grey-soft); color: var(--grey); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--grey-soft); color: var(--ink-2); margin: 1px 2px 1px 0; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.flash-ok { background: var(--green-soft); color: #0d5e37; border-color: #bfe8d2; }
.flash-err { background: var(--red-soft); color: #8f2a25; border-color: #f4cbc8; }
.flash-info { background: var(--blue-soft); color: #1e40af; border-color: #c8d8fb; }
.flash-warn { background: var(--amber-soft); color: #8a5a12; border-color: #f2dcb2; }
.flash ul { margin: 4px 0 0 18px; padding: 0; }
.note { background: #fdf8f4; border: 1px dashed #e8d6c8; border-radius: 10px; padding: 12px 14px; color: var(--ink-2); font-size: 13px; }
.note ol, .note ul { margin: 6px 0 0 18px; padding: 0; }

/* ── Checklist ───────────────────────── */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border: 0; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #e3d2c5; flex: none; display: grid; place-items: center; }
.checklist .done .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.checklist .done .tick svg { width: 13px; height: 13px; }
.checklist .done a { color: var(--ink-3); text-decoration: line-through; }

/* ── WhatsApp preview ────────────────── */
.wa-preview { background: var(--chat) url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='5' r='1.2' fill='%23d6cfc4'/%3E%3C/svg%3E"); border-radius: var(--radius); padding: 18px; min-height: 220px; }
.wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 7px 9px 6px; max-width: 320px; box-shadow: 0 1px .5px rgba(0,0,0,.13); font-size: 13.5px; white-space: pre-wrap; word-wrap: break-word; }
.wa-bubble .h { font-weight: 700; margin-bottom: 3px; }
.wa-bubble .media { background: #d7dbdd; border-radius: 7px; height: 130px; display: grid; place-items: center; color: #7a8790; margin-bottom: 6px; font-size: 12px; overflow: hidden; }
.wa-bubble .media img { width: 100%; height: 100%; object-fit: cover; }
.wa-bubble .f { color: #8696a0; font-size: 12px; margin-top: 3px; }
.wa-bubble .t { color: #8696a0; font-size: 11px; text-align: right; }
.wa-btns { max-width: 320px; }
.wa-btns div { background: #fff; margin-top: 2px; border-radius: 8px; text-align: center; color: #0a7cff; padding: 8px; font-size: 13.5px; font-weight: 500; box-shadow: 0 1px .5px rgba(0,0,0,.13); }

/* ── Inbox ───────────────────────────── */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 280px; height: calc(100vh - 60px); margin: -24px; }
.inbox-list { border-right: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; min-height: 0; }
.inbox-list .filters { padding: 12px; border-bottom: 1px solid var(--line); }
.inbox-list .items { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.conv:hover { background: #fff8f2; }
.conv.on { background: var(--brand-soft); }
.conv .meta { min-width: 0; flex: 1; }
.conv .nm { font-weight: 700; display: flex; gap: 6px; }
.conv .nm small { margin-left: auto; font-weight: 500; }
.conv .last { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .unread { background: var(--accent); color: #3a1c06; font-size: 11px; border-radius: 99px; padding: 0 7px; font-weight: 800; align-self: center; }
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--chat); }
.chat-h { background: var(--card); padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 6%; }
.msg { display: flex; margin: 4px 0; }
.msg.out { justify-content: flex-end; }
.msg .bub { max-width: 68%; background: #fff; border-radius: 9px; padding: 6px 9px 5px; box-shadow: 0 1px .5px rgba(0,0,0,.13); white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; }
.msg.out .bub { background: var(--bubble-out); }
.msg .bub .tm { font-size: 10.5px; color: #667781; text-align: right; margin-top: 2px; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.msg .bub .by { font-size: 11px; color: var(--brand); font-weight: 700; }
.msg .bub.failed { border: 1px solid #f0b4b0; }
.ticks { font-size: 12px; letter-spacing: -3px; color: #8696a0; }
.ticks.read { color: #53bdeb; }
.chat-day { text-align: center; margin: 10px 0; }
.chat-day span { background: #fff; font-size: 11.5px; padding: 3px 10px; border-radius: 7px; color: #54656f; box-shadow: 0 1px .5px rgba(0,0,0,.1); }
.composer { background: #f0f2f5; padding: 10px 14px; display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line); }
.composer textarea { min-height: 42px; max-height: 160px; border-radius: 10px; }
.window-warn { background: var(--amber-soft); color: #7a4f10; font-size: 12.5px; padding: 8px 14px; border-top: 1px solid #f1dcb1; }
.inbox-side { border-left: 1px solid var(--line); background: var(--card); padding: 16px; overflow-y: auto; }
.qr-pop { position: absolute; bottom: 64px; left: 14px; right: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; display: none; z-index: 5; }
.qr-pop div { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.qr-pop div:hover { background: var(--brand-soft); }

/* ── Modal ───────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(35, 20, 10, .45); display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 100; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: var(--card); border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-box.wide { max-width: 820px; }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-h h3 { margin: 0; flex: 1; }
.modal-b { padding: 18px 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink-3); line-height: 1; }

/* ── Steps (wizard) ──────────────────── */
.steps { display: flex; gap: 0; margin-bottom: 18px; counter-reset: s; }
.steps div { flex: 1; padding: 10px 12px; border-bottom: 3px solid var(--line); color: var(--ink-3); font-weight: 600; font-size: 13px; }
.steps div.on { border-color: var(--brand); color: var(--brand); }
.steps div.done { border-color: #f6c39b; color: var(--ink-2); }
.section { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section h3 { display: flex; align-items: center; gap: 8px; }
.section h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* ── Chart ───────────────────────────── */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart .bars i { width: 42%; max-width: 16px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .bars i.in { background: #fdc597; }
.chart .bars i.rd { background: #53bdeb; }
.chart .lbl { font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ── Pagination ──────────────────────── */
.pager { display: flex; gap: 4px; padding: 12px 14px; align-items: center; flex-wrap: wrap; }
.pager a, .pager span { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; display: inline-grid; place-items: center; font-size: 13px; color: var(--ink); text-decoration: none !important; }
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .dis { color: var(--ink-3); }
.pager .info { border: 0; color: var(--ink-3); margin-right: auto; }

/* ── Auth & public ───────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: radial-gradient(1200px 600px at 10% 10%, #a8480c 0, var(--side) 60%); color: #fbeee4; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h2 { font-size: 30px; color: #fff; max-width: 440px; }
.auth-art ul { list-style: none; padding: 0; margin: 20px 0 0; }
.auth-art li { padding: 6px 0 6px 28px; position: relative; }
.auth-art li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,154,60,.28); color: var(--accent); display: grid; place-items: center; font-size: 12px; top: 7px; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-form .box { width: 100%; max-width: 420px; }
.pub-nav { display: flex; align-items: center; padding: 18px 6vw; gap: 16px; }
.hero { padding: 60px 6vw 40px; text-align: center; }
.hero h1 { font-size: 44px; max-width: 820px; margin: 0 auto 14px; letter-spacing: -.03em; }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 640px; margin: 0 auto 26px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 10px 6vw 60px; max-width: 1200px; margin: 0 auto; }
.price { padding: 24px; position: relative; }
.price.pop { border: 2px solid var(--brand); }
.price .amt { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.price li { padding: 5px 0 5px 24px; position: relative; color: var(--ink-2); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price li.no { color: var(--ink-3); text-decoration: line-through; }
.price li.no::before { content: "–"; color: var(--ink-3); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 6vw 40px; max-width: 1200px; margin: 0 auto; }
.feat { padding: 20px; }
.feat svg { width: 26px; height: 26px; color: var(--brand); }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 290px minmax(0, 1fr); }
  .inbox-side { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: -260px; width: 248px; z-index: 60; transition: left .2s; }
  .side.open { left: 0; }
  .menu-btn { display: grid !important; }
  .g2, .g3, .g4, .price-grid, .feat-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .content { padding: 16px; }
  .top { padding: 0 16px; }
  .user-chip .who { display: none; }
  .inbox { grid-template-columns: 1fr; margin: -16px; }
  .inbox.has-chat .inbox-list { display: none; }
  .inbox:not(.has-chat) .chat { display: none; }
  .hero h1 { font-size: 30px; }
}
.menu-btn { display: none !important; }
h1 svg, h2 svg, h3 svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--brand); flex: none; }
.card-h h2 { display: flex; align-items: center; gap: 8px; }

/* ── Auth (login / signup / OTP) ─────── */
.auth2 { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--bg); }
.auth2-art { position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; gap: 32px;
  background: linear-gradient(150deg, #c4560b 0%, #ea6a12 45%, #ff9a3c 100%); background-size: 180% 180%; animation: authShift 14s ease-in-out infinite alternate; }
.auth2-art::before, .auth2-art::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
.auth2-art::before { width: 520px; height: 520px; right: -200px; top: -160px; animation: spinSlow 40s linear infinite; }
.auth2-art::after { width: 340px; height: 340px; left: -120px; bottom: -140px; }
.auth2-copy { margin-top: auto; max-width: 440px; position: relative; z-index: 1; }
.auth2-copy h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; line-height: 1.15; margin-bottom: 12px; }
.auth2-copy p { opacity: .9; font-size: 15.5px; line-height: 1.6; }
.auth2-chat { display: grid; gap: 10px; max-width: 360px; position: relative; z-index: 1; margin-bottom: auto; }
.ab { background: #fff; color: #231a14; border-radius: 4px 14px 14px 14px; padding: 10px 13px; font-size: 13.5px; line-height: 1.45; justify-self: start; max-width: 88%;
  box-shadow: 0 14px 30px -14px rgba(60,20,0,.45); opacity: 0; transform: translateY(14px); animation: abIn .7s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(.4s + var(--d) * .9s); }
.ab.me { justify-self: end; background: #d9fdd3; border-radius: 14px 4px 14px 14px; }
.ab.stat { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; font-weight: 600; backdrop-filter: blur(8px); }
.ab.stat span { color: #bff0ff; letter-spacing: -2px; margin-right: 6px; }
.auth2-foot { opacity: .7; position: relative; z-index: 1; }
.auth2-form { display: grid; place-items: center; padding: 40px 24px; }
.auth2-form .box { width: 100%; max-width: 440px; animation: abIn .8s cubic-bezier(.16,1,.3,1) both; }
.auth2-form h1 { font-size: 28px; letter-spacing: -.02em; }
.auth2-form .btn-lg { height: 48px; border-radius: 12px; font-size: 15px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 22px 0 18px; }
.otp input { height: 58px; text-align: center; font-size: 24px; font-weight: 800; border-radius: 12px; padding: 0; transition: transform .15s, border-color .2s, box-shadow .2s; }
.otp input:focus { transform: translateY(-2px); }
.otp.shake { animation: shake .4s; }
.resend { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-3); cursor: pointer; font: 600 12px var(--font); }
.strength { height: 4px; border-radius: 4px; background: var(--grey-soft); margin-top: 6px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s, background .3s; }
@keyframes authShift { to { background-position: 100% 100%; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes abIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 860px) { .auth2 { grid-template-columns: 1fr; } .auth2-art { display: none; } }

/* ══ Panel redesign v2: warm orange, softer surfaces, purposeful motion ══ */
:root { --radius: 16px; --shadow: 0 1px 2px rgba(60,35,15,.04), 0 8px 24px -12px rgba(60,35,15,.12); --ease: cubic-bezier(.16,1,.3,1); }
body { background: radial-gradient(900px 500px at 100% -10%, #fff1e6 0, rgba(255,241,230,0) 60%), var(--bg); background-attachment: fixed; }

/* sidebar */
.side { background: linear-gradient(180deg, #2b1a0f 0%, #1e130b 100%); border-right: 1px solid #3a2416; }
.side .logo-mark { box-shadow: 0 8px 20px -8px rgba(234,106,18,.8); }
.side-status { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); transition: background .3s; }
.side-status:hover { background: rgba(255,255,255,.09); }
.side-status.ok .dot, .side-status .dot { animation: pulse 2.4s ease-out infinite; }
.nav a { position: relative; transition: background .25s, color .25s, transform .25s var(--ease); }
.nav a:hover { transform: translateX(3px); background: rgba(255,255,255,.06); }
.nav a.on { background: linear-gradient(90deg, #ea6a12, #f08a3c); box-shadow: 0 8px 22px -10px rgba(234,106,18,.9); transform: none; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #ffb46e; }
.nav-label { color: #9a7a62; }
.side-foot { border-color: rgba(255,255,255,.08); }

/* top bar */
.top { background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-color: rgba(236,228,221,.8); }
.trial-pill { background: #fff0e4; color: #c4560b; }
.icon-btn { transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { transform: translateY(-1px); border-color: #e0cfc2; }
.avatar { background: linear-gradient(135deg, #ffd2ad, #ffb46e); color: #7a3608; }

/* entrance: content blocks rise in, staggered */
.content > * { animation: rise .6s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .05s; } .content > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(4) { animation-delay: .15s; } .content > *:nth-child(5) { animation-delay: .2s; } .content > *:nth-child(n+6) { animation-delay: .25s; }
.grid > .card { animation: rise .6s var(--ease) both; }
.grid > .card:nth-child(2) { animation-delay: .06s; } .grid > .card:nth-child(3) { animation-delay: .12s; } .grid > .card:nth-child(4) { animation-delay: .18s; } .grid > .card:nth-child(n+5) { animation-delay: .24s; }

/* cards */
.card { border-color: #efe6de; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.card.stat:hover, .price:hover, .feat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(60,35,15,.35); }
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(255,154,60,.18), rgba(255,154,60,0) 70%); }
.stat .v { background: linear-gradient(90deg, #231a14, #5b3a22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-h { border-color: #f3ebe4; }
.bar > i { background: linear-gradient(90deg, #ea6a12, #ff9a3c); transition: width 1s var(--ease); }
.chart .bars i { background: linear-gradient(180deg, #ff9a3c, #ea6a12); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.chart .col:nth-child(odd) .bars i { animation-delay: .05s; } .chart .col:nth-child(3n) .bars i { animation-delay: .1s; }

/* buttons */
.btn { border-radius: 10px; transition: transform .18s var(--ease), box-shadow .25s, background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-p { background: linear-gradient(180deg, #f07a26, #ea6a12); border-color: #e2620d; box-shadow: 0 6px 16px -8px rgba(234,106,18,.75), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-p:hover { background: linear-gradient(180deg, #ea6a12, #d85d0c); box-shadow: 0 10px 22px -10px rgba(234,106,18,.85); transform: translateY(-1px); }

/* inputs */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input[type=tel], select, textarea { border-radius: 10px; background: #fffdfb; }

/* tables */
.tbl th { background: #fcf8f4; }
.tbl tr { transition: background .2s; }
.tbl tr:hover td { background: #fff8f2; }

/* modals & dropdowns */
.modal { backdrop-filter: blur(3px); }
.modal.open .modal-box { animation: popIn .35s var(--ease) both; }
.modal-box { border-radius: 18px; }
.dropdown.open { animation: dropIn .22s var(--ease) both; }
.flash { animation: slideDown .5s var(--ease) both; border-radius: 12px; }

/* chips, tabs, badges */
.chip-check span { transition: all .2s var(--ease); }
.chip-check span:hover { border-color: #f1c9a8; }
.tabs a { transition: color .2s, border-color .3s; }
.badge.b-amber { background: #fff0e4; color: #c4560b; }

/* page header */
.page-head h1 { font-size: 26px; letter-spacing: -.02em; }

/* dashboard hero */
.dash-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; margin-bottom: 18px; color: #fff;
  background: linear-gradient(120deg, #c4560b 0%, #ea6a12 50%, #ff9a3c 100%); background-size: 180% 180%; animation: authShift 16s ease-in-out infinite alternate; }
.dash-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -150px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.dash-hero h2 { color: #fff; font-size: 24px; margin: 0 0 6px; position: relative; z-index: 1; }
.dash-hero p { opacity: .92; margin: 0; position: relative; z-index: 1; }
.dash-hero .row { position: relative; z-index: 1; margin-top: 16px; }
.dash-hero .btn { background: #fff; border-color: #fff; color: #c4560b; box-shadow: 0 8px 20px -10px rgba(60,20,0,.5); }
.dash-hero .btn.ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; box-shadow: none; }
.stat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff0e4; color: #ea6a12; margin-bottom: 10px; }
.stat .ic svg { width: 19px; height: 19px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,154,60,.5); } 70% { box-shadow: 0 0 0 8px rgba(255,154,60,0); } 100% { box-shadow: 0 0 0 0 rgba(255,154,60,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ab, .auth2-form .box { opacity: 1 !important; transform: none !important; }
}
.trial-pill { white-space: nowrap; }
@media (max-width: 640px) { .trial-pill { display: none; } .top h1 { font-size: 15px; } }

/* i3 brand logo */
.logo-mark.logo-img { background: none; padding: 0; object-fit: contain; border-radius: 50%; box-shadow: 0 6px 16px -8px rgba(234,106,18,.9); }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px 14px; align-self: flex-start; position: relative; z-index: 1; text-decoration: none !important; box-shadow: 0 10px 24px -12px rgba(60,20,0,.5); }
.auth-logo img { height: 34px; width: auto; display: block; }
.auth-logo span { font-weight: 800; color: #c4560b; font-size: 13px; border-left: 1px solid #eadfd6; padding-left: 10px; }
