/* DM Flow - customer panel.
   ManyChat's structure (sidebar, Home, wizard with a live phone), our own look:
   ink and paper, one emerald accent, generous space. */
:root {
  --ink: #0b0d0c; --ink-2: #2b2f2d; --ink-3: #5c625f; --ink-4: #8c928f;
  --line: #e7e9e8; --line-2: #d6dad8; --paper: #ffffff; --bg: #f5f6f5; --bg-2: #eef0ef;
  --green: #0fbf73; --green-ink: #04291a; --green-soft: #e3f8ee; --green-dim: #0a8f56;
  --red: #e5484d; --red-soft: #fdecec; --amber: #b7791f; --amber-soft: #fdf3e3;
  --r: 14px; --r-sm: 10px; --r-xs: 8px;
  --shadow: 0 1px 2px rgba(11,13,12,.04), 0 6px 24px rgba(11,13,12,.05);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
       border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
       font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.btn-green:hover { background: #12cf7e; border-color: #12cf7e; }
.btn-danger { color: var(--red); border-color: #f3c7c8; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg-2); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.link { color: var(--green-dim); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--paper);
        border-right: 1px solid var(--line); padding: 18px 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px;
         letter-spacing: -.02em; padding: 4px 8px 16px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--green);
              display: grid; place-items: center; flex: none; }
.acct { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm);
        background: var(--bg); margin-bottom: 14px; min-height: 54px; }
.acct img, .acct .ph { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.acct .ph { display: grid; place-items: center; color: var(--ink-4); }
.acct b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct span { display: block; font-size: 12px; color: var(--ink-3); }
.acct .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 5px; }
.acct.off .dot { background: var(--ink-4); }
.acct > div { min-width: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r-sm);
         color: var(--ink-3); font-weight: 600; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.nav a.on svg { color: var(--green); }
.nav svg { width: 19px; height: 19px; flex: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.meter { padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.meter-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.meter-top b { color: var(--ink); }
.meter-bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; width: 0; transition: width .4s; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.me .av { width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-dim);
          display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.me b { font-size: 13px; display: block; }
.me span { font-size: 12px; color: var(--ink-4); }
.me > div { flex: 1; min-width: 0; }
.me .btn { padding: 0 8px; }

.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 36px; border-bottom: 1px solid var(--line);
       background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.top .sp { flex: 1; }
.menu-btn { display: none; }
.view { padding: 36px; max-width: 1180px; margin: 0 auto; }

/* ------------------------------------------------------------- blocks */
.hello { font-family: var(--display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.035em;
         margin: 4px 0 6px; line-height: 1.05; }
.sub { color: var(--ink-3); margin: 0 0 28px; }
.sub a { margin-left: 12px; }
.h2 { font-size: 20px; letter-spacing: -.015em; margin: 36px 0 14px; display: flex; align-items: center; gap: 12px; }
.h2 .sp { flex: 1; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tpl { padding: 20px; display: flex; flex-direction: column; gap: 22px; min-height: 128px; text-align: left; border: 1px solid var(--line);
       background: var(--paper); border-radius: var(--r); transition: border-color .15s, transform .15s, box-shadow .15s; }
.tpl:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(11,13,12,.08); }
.tpl b { font-size: 15.5px; }
.tpl p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.tpl-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px;
        font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--bg-2); color: var(--ink-3); }
.pill.green { background: var(--green-soft); color: var(--green-dim); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.ink { background: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 20px 22px; }
.tile span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.tile b { display: block; font-family: var(--display); font-size: 34px; letter-spacing: -.03em; margin: 6px 0 2px; }
.tile small { color: var(--ink-3); font-size: 12.5px; }

/* connect hero */
.connect { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; }
.connect-body { padding: 34px; }
.connect h2 { font-size: 26px; letter-spacing: -.025em; margin: 0 0 8px; }
.connect p { color: var(--ink-3); margin: 0 0 20px; }
.connect ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.connect li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.connect li svg { flex: none; color: var(--green); margin-top: 2px; }
.connect-art { background: var(--ink); display: grid; place-items: center; padding: 30px; }
.ig-badge { width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; color: #fff;
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* account strip */
.acct-strip { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.acct-strip img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.acct-strip b { font-size: 16px; }
.acct-strip .meta { color: var(--ink-3); font-size: 13px; }
.acct-strip .sp { flex: 1; }

/* activity */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); align-items: start; }
.feed li:first-child { border-top: 0; }
.feed .when { color: var(--ink-4); font-size: 12.5px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.feed .what b { font-weight: 700; }
.feed .what p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.empty { padding: 44px 22px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* automations list */
.flows { list-style: none; margin: 0; padding: 0; }
.flow { display: grid; grid-template-columns: 56px 1fr auto auto auto; gap: 18px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.flow:first-child { border-top: 0; }
.flow .th { width: 56px; height: 56px; border-radius: var(--r-xs); background: var(--bg-2) center/cover no-repeat; display: grid; place-items: center; color: var(--ink-4); }
.flow b { font-size: 15px; display: block; }
.flow .meta { color: var(--ink-3); font-size: 13px; }
.flow .num { text-align: right; font-size: 12.5px; color: var(--ink-3); min-width: 74px; }
.flow .num b { font-size: 17px; color: var(--ink); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.kebab { position: relative; }
.pop { position: absolute; right: 0; top: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
       box-shadow: 0 12px 30px rgba(0,0,0,.1); padding: 6px; min-width: 150px; z-index: 20; }
.pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 7px; font-weight: 600; }
.pop button:hover { background: var(--bg); }
.pop button.danger { color: var(--red); }

/* contacts */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.input { height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); width: 100%; outline: none; }
.input:focus, .area:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,191,115,.18); }
.area { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); width: 100%; resize: vertical; min-height: 110px; outline: none; line-height: 1.5; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); font-weight: 700; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.t td { padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.t tr:last-child td { border-bottom: 0; }

/* settings */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.set-card h3 { margin: 0 0 4px; font-size: 16px; }
.set-card > p { margin: 0 0 18px; color: var(--ink-3); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field small { color: var(--ink-4); font-size: 12px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; margin: 16px 0 20px; }
.kv dt { color: var(--ink-4); }
.kv dd { margin: 0; font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------- wizard */
.wiz { position: fixed; inset: 0; background: var(--paper); z-index: 50; overflow-y: auto; }
.wiz-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 28px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.wiz-top .x { justify-self: end; }
.steps { display: flex; gap: 8px; }
.steps i { width: 34px; height: 4px; border-radius: 99px; background: var(--line); transition: background .2s; }
.steps i.on { background: var(--green); }
.wiz-head { text-align: center; margin: 6px 0 28px; padding: 0 20px; }
.wiz-head h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; margin: 0 0 6px; }
.wiz-head p { color: var(--ink-3); margin: 0; }
.wiz-body { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 560px); justify-content: center; max-width: 1040px;
            margin: 0 auto 60px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.wiz-form { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.wiz-form h3 { margin: 0 0 4px; font-size: 18px; }
.wiz-prev { background: var(--bg); padding: 26px; display: flex; flex-direction: column; }
.wiz-prev > span { color: var(--ink-4); font-size: 13px; margin-bottom: 16px; }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 8px; gap: 10px; }
.opt { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); padding: 14px; transition: border-color .15s, background .15s; }
.opt.on { border-color: var(--ink); background: var(--paper); }
.opt > label { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.opt > label .pill { margin-left: auto; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-4); flex: none; display: grid; place-items: center; }
.opt.on .radio { border-color: var(--green); }
.opt.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.opt-body { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.media { aspect-ratio: 1; border-radius: 8px; background: var(--bg-2) center/cover no-repeat; border: 2px solid transparent; position: relative; cursor: pointer; padding: 0; }
.media.on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.media .tag { position: absolute; left: 4px; bottom: 4px; font-size: 9.5px; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; padding: 1px 5px; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); min-height: 44px; }
.chips input { border: 0; outline: 0; flex: 1; min-width: 120px; height: 28px; padding: 0 4px; background: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 11px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.chip button { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; padding: 0; font-size: 12px; line-height: 1; }
.tog { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.tog .switch { margin-left: auto; }
.hint { color: var(--ink-3); font-size: 12.5px; }
.why { font-size: 12.5px; color: var(--green-dim); font-weight: 600; }
.errbox { background: var(--red-soft); color: var(--red); border-radius: var(--r-xs); padding: 10px 12px; font-size: 13px; font-weight: 600; }
.count { font-size: 11.5px; color: var(--ink-4); text-align: right; margin-top: -4px; }

/* phone preview */
.phone { width: 300px; height: 600px; margin: 0 auto; border-radius: 46px; background: #0d0f0e; padding: 11px; box-shadow: 0 30px 60px rgba(11,13,12,.18); }
.screen { height: 100%; border-radius: 36px; background: #000; color: #f5f5f5; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px; font-weight: 700; font-size: 12px; }
.sbar i { width: 70px; height: 20px; background: #000; border-radius: 99px; display: block; }
.p-head { display: flex; align-items: center; gap: 9px; padding: 8px 14px 10px; border-bottom: 1px solid #222; }
.p-av { width: 28px; height: 28px; border-radius: 50%; background: #333 center/cover no-repeat; flex: none; }
.p-head b { font-size: 12.5px; }
.p-post { height: 230px; background: #1c1c1c center/cover no-repeat; display: grid; place-items: center; color: #555; }
.p-comments { flex: 1; background: #1c1c1e; border-radius: 16px 16px 0 0; margin-top: -14px; position: relative; padding: 10px 12px; display: flex; flex-direction: column; gap: 12px; }
.p-comments h5 { margin: 0; text-align: center; font-size: 12px; }
.p-comments h5::before { content: ""; display: block; width: 34px; height: 4px; background: #444; border-radius: 9px; margin: 0 auto 8px; }
.p-c { display: flex; gap: 8px; }
.p-c .p-av { width: 24px; height: 24px; }
.p-c b { font-size: 11px; }
.p-c p { margin: 1px 0 0; font-size: 11.5px; }
.p-c small { color: #888; font-size: 10px; }
.p-c.reply { margin-left: 30px; }
.p-dm { flex: 1; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
/* Newest at the bottom, oldest scrolls off the top - like a real chat. */
.b-in { align-self: flex-start; max-width: 82%; background: #262628; border-radius: 16px 16px 16px 4px; padding: 9px 11px; white-space: pre-wrap; line-height: 1.4; }
.b-in .b-btn { margin-top: 8px; background: #3a3a3c; border-radius: 9px; padding: 7px; text-align: center; font-weight: 700; }
.b-out { align-self: flex-end; max-width: 75%; background: #7c4dff; border-radius: 16px 16px 4px 16px; padding: 8px 11px; font-weight: 600; }
.b-note { align-self: center; color: #777; font-size: 10.5px; padding: 2px 0; }
.p-input { margin: 8px 10px 12px; height: 34px; border-radius: 99px; background: #1c1c1e; color: #777; display: flex; align-items: center; padding: 0 14px; font-size: 11.5px; }

/* toast + modal */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
         padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 13.5px; opacity: 0; transition: .2s; z-index: 99; max-width: 92vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }
.modal-bg { position: fixed; inset: 0; background: rgba(11,13,12,.45); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal { background: var(--paper); border-radius: 18px; width: 100%; max-width: 460px; padding: 26px; }
.modal h3 { margin: 0 0 8px; font-size: 19px; }
.modal p { color: var(--ink-3); margin: 0 0 14px; }
.modal ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.modal .row { justify-content: flex-end; }

/* message page */
.msg-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.msg-box { max-width: 520px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.msg-ring { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 18px; background: var(--c); opacity: .9; }
.msg-box h1 { font-size: 22px; margin: 0 0 10px; }
.msg-box p { color: var(--ink-3); margin: 0 0 22px; line-height: 1.6; word-break: break-word; }
.msg-box code { background: var(--bg-2); padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .wiz-body { grid-template-columns: 1fr; max-width: 560px; margin: 0 16px 40px; }
  .wiz-prev { order: -1; }
  .grid3, .tiles { grid-template-columns: 1fr 1fr; }
  .connect { grid-template-columns: 1fr; }
  .connect-art { display: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 264px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .top { padding: 0 16px; }
  .view { padding: 22px 16px; }
  .set-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 48px 1fr auto; }
  .flow .num { display: none; }
  .flow .th { width: 48px; height: 48px; }
  .feed li { grid-template-columns: 1fr auto; }
  .feed .when { grid-column: 1 / -1; order: -1; }
  .t th:nth-child(n+3), .t td:nth-child(n+3) { display: none; }
  .wiz-top { padding: 14px 16px; }
}
@media (max-width: 560px) {
  .grid3, .tiles { grid-template-columns: 1fr; }
  .phone { transform: scale(.86); transform-origin: top center; margin-bottom: -84px; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- billing */
.bill-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 18px; }
.bill-head h2 { margin: 2px 0 2px; font-family: var(--display); font-size: 26px; letter-spacing: -.03em; }
.bill-head .meta { color: var(--ink-3); font-size: 13.5px; }
.cycle { display: inline-flex; background: var(--bg-2); border-radius: 99px; padding: 4px; gap: 2px; }
.cycle button { border: 0; background: none; padding: 8px 16px; border-radius: 99px; font: inherit; font-weight: 700; font-size: 13px; color: var(--ink-3); cursor: pointer; }
.cycle button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(11,13,12,.12); }
.cycle em { font-style: normal; color: var(--green-dim); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0 22px; }
.plan { padding: 22px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.hi { border-color: var(--ink); box-shadow: 0 10px 30px rgba(11,13,12,.08); }
.plan.cur { border-color: var(--green); }
.plan h3 { margin: 0; font-size: 17px; }
.plan .tag { color: var(--ink-3); font-size: 13px; min-height: 20px; }
.plan .amt { font-family: var(--display); font-size: 32px; letter-spacing: -.03em; margin: 8px 0 0; }
.plan .amt span { font-family: var(--font); font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.plan .gst { font-size: 12px; color: var(--ink-4); margin-bottom: 8px; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 16px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--green-dim); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan .badge { position: absolute; top: 14px; right: 14px; }
.coupon { display: flex; gap: 8px; max-width: 420px; }
.plan.secret { border: 2px solid var(--green, #12c27a); box-shadow: 0 10px 30px rgba(18, 194, 122, .18); }
.coupon .input { text-transform: uppercase; }
.sum { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; }
.sum td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sum td:last-child { text-align: right; font-weight: 600; }
.sum tr.total td { border-bottom: 0; font-weight: 800; font-size: 17px; padding-top: 12px; }
.sum tr.off td { color: var(--green-dim); }
.secure { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--ink-4); font-size: 12px; margin-top: 12px; }
@media (max-width: 760px) { .bill-head { padding: 18px; } .coupon { max-width: none; } }
.bill-head .sp { flex: 1; }
.bill-table { overflow-x: auto; }
.bill-table .t { min-width: 520px; }

/* email confirmation banner + preference switches */
.verify-banner { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 24px -6px; padding: 12px 16px; background: var(--amber-soft); color: var(--amber); border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.verify-banner b { color: #7a4f10; }
.pref { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pref:first-of-type { border-top: 0; }
.pref input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.pref span { font-size: 13px; color: var(--ink-3); }
.pref b { display: block; color: var(--ink); font-size: 14px; }
@media (max-width: 760px) { .verify-banner { margin: 12px 14px -4px; } }

.support-line { margin: 10px 0 0; font-size: 13px; }
.support-line a { font-weight: 600; }

.brand .brand-logo { display: block; height: 42px; width: auto; }

.founder-card { padding: 18px 22px; margin-bottom: 16px; background: var(--ink, #0b0c0c); color: #fff; border: 0; }
.founder-card h3 { margin: 10px 0 4px; font-size: 20px; letter-spacing: -.02em; }
.founder-card h3 s { color: #9da3a0; font-weight: 600; font-size: 15px; }
.founder-card p { margin: 0; color: #c9cecb; font-size: 13.5px; line-height: 1.55; }
.founder-card p b { color: #fff; }
.plan .gst s { color: var(--ink-4, #7b827f); }

.acct-switch { display: flex; flex-direction: column; gap: 2px; margin: -4px 0 10px; }
.acct-switch button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 10px; border-radius: var(--r-sm); font: inherit; font-size: 12.5px; color: var(--ink-3); cursor: pointer; text-align: left; }
.acct-switch button:hover { background: var(--bg-2); color: var(--ink); }
.acct-switch img, .acct-switch .ph { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); display: grid; place-items: center; font-size: 11px; }
.acct-switch button span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-switch .add { padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--green-dim, #0a8f56); text-decoration: none; }
.acct-switch .add.up { color: var(--ink-4); font-weight: 600; }
.acct-switch .add:hover { text-decoration: underline; }
