/* ============================================================
   gotomyn.com — Design System (ground-up rebuild)
   Premium, minimal, technical. Inspired by Linear / Vercel /
   Resend / Stripe. Light theme, near-black ink, single indigo
   accent, hairline borders, soft layered shadows, restrained motion.
   ============================================================ */

/* ---- Tokens (Linear Dark) ---- */
:root {
    color-scheme: dark;

    /* Surfaces */
    --bg: #0b0c0e;
    --bg-subtle: #101216;
    --bg-sunken: #0e0f12;
    --surface: #16181d;
    --surface-raised: #1c1f26;

    /* Ink */
    --ink: #f3f4f6;
    --ink-soft: #c7ccd4;
    --ink-muted: #9ba1ac;
    --ink-faint: #6b7280;

    /* Lines */
    --line: #21242b;
    --line-strong: #2c2f38;

    /* Brand / accent */
    --accent: #ffc94d;
    --accent-hover: #ffd66b;
    --accent-soft: rgba(255, 201, 77, 0.16);
    --accent-ink: #1a1505;

    /* Feedback */
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.14);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.14);

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 999px;

    /* Shadow (deeper on dark; depth comes from borders + glow) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
    --ring: 0 0 0 3px rgba(255, 201, 77, 0.45);

    /* Type */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Motion */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --t-fast: 130ms;
    --t-base: 200ms;
    --t-slow: 320ms;

    /* Layout */
    --maxw: 1120px;
    --gutter: 24px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.08;
}

p { margin: 0; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--accent-hover); }

img, svg { display: block; max-width: 100%; }

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--r-sm);
}

/* ---- Layout helpers ---- */
.gm-container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.gm-section { padding: 96px 0; }
.gm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.gm-eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-soft);
}

.gm-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.gm-section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
}
.gm-section-head p {
    margin-top: 14px;
    color: var(--ink-muted);
    font-size: 17px;
}

/* ---- Buttons ---- */
.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    padding: 12px 20px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out);
}
.gm-btn:active { transform: scale(0.975); }

.gm-btn--primary {
    background: var(--ink);
    color: #0b0c0e;
    box-shadow: var(--shadow-sm);
}
.gm-btn--primary:hover { background: #ffffff; color: #0b0c0e; box-shadow: var(--shadow-md); }

.gm-btn--accent {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 1px 2px rgba(255,201,77,0.3), var(--shadow-sm);
}
.gm-btn--accent:hover { background: var(--accent-hover); color: #fff; }

.gm-btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-xs);
}
.gm-btn--ghost:hover { background: var(--bg-subtle); border-color: var(--ink-faint); color: var(--ink); }

.gm-btn--lg { padding: 15px 26px; font-size: 16px; }
.gm-btn--block { width: 100%; }
.gm-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.gm-btn .bi { font-size: 1.05em; transition: transform var(--t-base) var(--ease-out); }
.gm-btn:hover .bi-arrow-right { transform: translateX(3px); }

/* ---- Top navigation ---- */
.gm-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 12, 14, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.gm-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.gm-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.gm-brand:hover { color: var(--ink); }
.gm-brand__mark {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffc94d, #ffb020);
    color: #fff;
    display: grid; place-items: center;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(255,201,77,0.35);
}
.gm-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.gm-nav__links a {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
}
.gm-nav__links a:hover { color: var(--ink); }
.gm-nav__actions { display: flex; align-items: center; gap: 12px; }

/* ---- Hero ---- */
.gm-hero {
    position: relative;
    text-align: center;
    padding: 92px 0 72px;
    overflow: hidden;
}
.gm-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(55% 50% at 50% -8%, rgba(255, 201, 77, 0.20), transparent 70%),
        radial-gradient(40% 40% at 82% 8%, rgba(255, 201, 77, 0.10), transparent 70%);
}
.gm-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 0%, #000, transparent 75%);
    mask-image: radial-gradient(60% 60% at 50% 0%, #000, transparent 75%);
    opacity: 0.5;
}
.gm-hero h1 {
    font-size: clamp(40px, 6.4vw, 68px);
    max-width: 880px;
    margin: 22px auto 0;
}
.gm-hero h1 .accent {
    background: linear-gradient(120deg, #ffc94d, #ffe39a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gm-hero__sub {
    max-width: 560px;
    margin: 22px auto 0;
    font-size: 19px;
    color: var(--ink-muted);
}
.gm-hero__cta {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* trust strip */
.gm-trust {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    color: var(--ink-muted);
    font-size: 14px;
    font-weight: 500;
}
.gm-trust span { display: inline-flex; align-items: center; gap: 7px; }
.gm-trust .bi { color: var(--success); font-size: 1.05em; }

/* ---- Shortener product card (hero centerpiece) ---- */
.gm-shortener {
    max-width: 720px;
    margin: 48px auto 0;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    text-align: left;
    overflow: hidden;
}
.gm-shortener__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-subtle);
}
.gm-shortener__bar i { color: var(--ink-faint); }
.gm-shortener__bar .title { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.gm-shortener__body { padding: 22px; }

.gm-field { display: block; margin-bottom: 16px; }
.gm-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 7px;
}
.gm-input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 13px 14px;
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.gm-input::placeholder { color: var(--ink-faint); }
.gm-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.gm-input:disabled { background: var(--bg-sunken); color: var(--ink-muted); cursor: not-allowed; }
.gm-input.input-error { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }

.gm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.gm-field-row .lock { color: var(--ink-faint); font-size: 0.85em; }

.gm-result {
    margin-top: 4px;
    padding: 16px;
    background: var(--success-soft);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: var(--r-md);
}

/* ---- Feature grid ---- */
.gm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gm-feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.gm-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.gm-feature__icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 21px;
    margin-bottom: 16px;
}
.gm-feature h3 { font-size: 17px; letter-spacing: -0.01em; }
.gm-feature p { margin-top: 8px; color: var(--ink-muted); font-size: 15px; }

/* ---- Pricing ---- */
.gm-pricing { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gm-toggles { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.gm-seg {
    display: inline-flex;
    padding: 4px;
    background: var(--bg-sunken);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
}
.gm-seg button {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-muted);
    padding: 8px 18px;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.gm-seg button.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.gm-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
.gm-plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.gm-plan--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}
.gm-plan__badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-sm);
}
.gm-plan__name { font-size: 15px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.gm-plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.gm-plan__price .amt { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gm-plan__price .per { color: var(--ink-muted); font-size: 15px; }
.gm-plan__cta { margin-top: 22px; }
.gm-plan__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.gm-plan__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 15px; }
.gm-plan__list .bi { color: var(--accent); margin-top: 2px; }
.gm-plan__divider { height: 1px; background: var(--line); margin: 22px 0 0; }

/* ---- Footer ---- */
.gm-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.gm-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.gm-footer__brand { max-width: 280px; }
.gm-footer__brand p { margin-top: 12px; color: var(--ink-muted); font-size: 14px; }
.gm-footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.gm-footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); font-weight: 600; margin-bottom: 14px; }
.gm-footer__col a { display: block; color: var(--ink-soft); font-size: 14px; font-weight: 500; margin-bottom: 9px; }
.gm-footer__col a:hover { color: var(--ink); }
.gm-footer__bottom {
    margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    color: var(--ink-faint); font-size: 13px;
}
.gm-footer__bottom a { color: var(--ink-muted); }

/* ---- Modal polish (Bootstrap structure preserved, dark-themed) ---- */
.modal-content {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.modal-content .modal-header { border-bottom: 1px solid var(--line); padding: 20px 24px; }
.modal-content .modal-title { font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); }
.modal-content .modal-body { padding: 24px; }
.modal-content .modal-footer { border-top: 1px solid var(--line); padding: 16px 24px; }
.modal-content .btn-close { filter: invert(1) grayscale(1) brightness(1.6); opacity: 0.7; }
.modal-content .btn-close:hover { opacity: 1; }
.modal-backdrop.show { opacity: 0.7; }
.gm-auth-stack { display: flex; flex-direction: column; gap: 12px; }
.gm-divider-or {
    display: flex; align-items: center; gap: 12px;
    color: var(--ink-faint); font-size: 13px; font-weight: 500;
    margin: 4px 0;
}
.gm-divider-or::before, .gm-divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   APP / DASHBOARD
   ============================================================ */
.gm-btn--sm { padding: 8px 12px; font-size: 13px; border-radius: var(--r-sm); }

/* Topbar */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 12, 14, 0.8);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.app-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 16px;
}
.app-nav { display: flex; align-items: center; gap: 6px; }
.app-nav a {
    color: var(--ink-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.app-nav a:hover { color: var(--ink); background: var(--surface); }
.app-iconbtn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.app-iconbtn:hover { background: var(--surface-raised); color: var(--ink); }

/* Sidebar layout (Resend / Bitly style) */
.app-layout { display: flex; align-items: stretch; min-height: 100vh; }
.app-sidebar {
    width: 248px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-subtle);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
}
.app-sidebar__brand {
    display: inline-flex;
    align-items: center;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    padding: 6px 10px 16px;
}
.app-sidebar__brand:hover { color: var(--ink); }
.app-navgroup { margin-bottom: 16px; }
.app-navgroup__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-faint);
    font-weight: 600;
    padding: 0 10px;
    margin-bottom: 6px;
}
.app-navitem {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    color: var(--ink-muted);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.app-navitem i { font-size: 16px; width: 18px; text-align: center; color: var(--ink-faint); transition: color var(--t-fast) var(--ease-out); }
.app-navitem:hover { background: var(--surface); color: var(--ink); }
.app-navitem:hover i { color: var(--ink-soft); }
.app-navitem.active { background: var(--surface); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.app-navitem.active i { color: var(--accent); }
.app-sidebar__footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-main__inner { flex: 1; padding: 28px 32px 56px; max-width: 1160px; width: 100%; }

@media (max-width: 900px) {
    .app-layout { flex-direction: column; }
    .app-sidebar {
        width: 100%; height: auto; position: sticky; top: 0; z-index: 40;
        flex-direction: row; align-items: center; gap: 4px;
        border-right: 0; border-bottom: 1px solid var(--line);
        overflow-x: auto; padding: 10px 12px;
        background: rgba(11,12,14,0.9);
        backdrop-filter: saturate(180%) blur(12px);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
    }
    .app-sidebar__brand { padding: 6px 8px; white-space: nowrap; }
    .app-navgroup { display: flex; align-items: center; gap: 4px; margin-bottom: 0; }
    .app-navgroup__label { display: none; }
    .app-navitem { white-space: nowrap; padding: 8px 11px; }
    .app-navitem.active { box-shadow: inset 0 -2px 0 var(--accent); }
    .app-sidebar__footer { margin-top: 0; padding-top: 0; border-top: 0; border-left: 1px solid var(--line); padding-left: 6px; margin-left: 4px; }
    .app-main__inner { padding: 22px 18px 48px; }
}

/* App shell (legacy single-column; kept for any other app page) */
.app-shell { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 80px; }
.app-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.app-head h1 { font-size: 26px; letter-spacing: -0.025em; }
.app-head p { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}
.stat-card__top { display: flex; align-items: center; justify-content: space-between; }
.stat-card__label { font-size: 13px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card__icon { color: var(--accent); font-size: 16px; }
.stat-card__value { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat-card__sub { font-size: 13px; color: var(--ink-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.gm-progress {
    height: 8px;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    overflow: hidden;
    margin-top: 14px;
}
.gm-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffc94d, #ffb020);
    border-radius: var(--r-pill);
    transition: width 420ms var(--ease-in-out);
}

/* Panel + table */
.gm-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.gm-panel__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--line); gap: 12px;
}
.gm-panel__head h2 { font-size: 16px; letter-spacing: -0.01em; }
.gm-table-wrap { width: 100%; overflow-x: auto; }
.gm-table { width: 100%; border-collapse: collapse; }
.gm-table thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    padding: 12px 20px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.gm-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-soft);
    vertical-align: middle;
}
.gm-table tbody tr { transition: background var(--t-fast) var(--ease-out); }
.gm-table tbody tr:hover { background: var(--surface-raised); }
.gm-table tbody tr:last-child td { border-bottom: 0; }
.gm-table td[data-label="Original URL"] { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-tlink { color: var(--ink) !important; font-weight: 500; text-decoration: none !important; }
.gm-tlink:hover { color: var(--accent) !important; }
.gm-iconbtn {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.gm-iconbtn:hover { background: var(--surface-raised); color: var(--ink); border-color: var(--ink-faint); }

/* Skeleton rows (dark shimmer) */
.link-skeleton-row .placeholder {
    display: inline-block;
    height: 12px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--surface-raised) 25%, #2a2e37 37%, var(--surface-raised) 63%);
    background-size: 400% 100%;
    animation: gm-shimmer 1.3s ease-in-out infinite;
    opacity: 1;
}
.link-skeleton-row .col-4 { width: 40%; }
.link-skeleton-row .col-6 { width: 60%; }
.link-skeleton-row .col-8 { width: 80%; }
.link-skeleton-row .col-10 { width: 92%; }
@keyframes gm-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Empty state */
.gm-empty { text-align: center; padding: 56px 20px; }
.gm-empty__icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    display: grid; place-items: center;
    border-radius: var(--r-lg);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 24px;
}
.gm-empty h3 { font-size: 17px; }
.gm-empty p { color: var(--ink-muted); font-size: 14px; margin-top: 6px; }

/* Toast */
.toast-stack {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 1080;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.app-toast {
    pointer-events: auto;
    min-width: 240px; max-width: 360px;
    padding: 13px 16px;
    background: var(--surface-raised);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--ink-faint);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    font-size: 14px; font-weight: 500;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.app-toast--show { opacity: 1; transform: translateY(0) scale(1); }
.app-toast--hide { opacity: 0; transform: translateY(8px) scale(0.98); transition-duration: 150ms; }
.app-toast--success { border-left-color: var(--success); }
.app-toast--error { border-left-color: var(--danger); }

/* Setup-password banner (Bootstrap alert, dark-friendly) */
#setup-password-banner.alert {
    background: var(--accent-soft);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    border-radius: var(--r-md);
}

/* Bootstrap form-control fallback inside app modals -> token styling */
.modal-content .form-control {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 12px 14px;
}
.modal-content .form-control:focus {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--accent);
    box-shadow: var(--ring);
}
.modal-content .form-control:disabled { background: var(--bg-sunken); color: var(--ink-muted); }
.modal-content label { color: var(--ink-soft); font-weight: 600; font-size: 13px; }
.modal-content .input-group-text { background: var(--bg-sunken); border-color: var(--line-strong); color: var(--ink-muted); }

@media (max-width: 900px) {
    .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .app-nav .app-nav__label { display: none; }
}

/* ============================================================
   SEO LANDING PAGES
   ============================================================ */
.seo-main { padding: 52px 0 72px; }
.seo-wrap { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.seo-h1 {
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.025em;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.seo-h1 .bi { color: var(--accent); }
.gm-lead { font-size: 18px; color: var(--ink-muted); margin-top: 16px; line-height: 1.6; }
.seo-section { margin-top: 34px; }
.seo-section h2 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 10px; }
.seo-section p { color: var(--ink-soft); }
.seo-section p + p { margin-top: 12px; }
.seo-section a { color: var(--accent); }
.seo-section a:hover { color: var(--accent-hover); }
.seo-divider { height: 1px; background: var(--line); margin: 36px 0; border: 0; }
.seo-footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; margin-top: 56px; }
.seo-footer .gm-brand { justify-content: center; }
.seo-footer__links { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.seo-footer__links a { color: var(--ink-soft); }
.seo-footer__links a:hover { color: var(--ink); }
.seo-footer__copy { margin-top: 8px; font-size: 13px; color: var(--ink-faint); }
.seo-tool {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-top: 28px;
    box-shadow: var(--shadow-sm);
}
.seo-tool h2 { font-size: 19px; }
.seo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.seo-grid .gm-feature { padding: 22px; }
@media (max-width: 720px) { .seo-grid { grid-template-columns: 1fr; } }

/* Comparison table (bitly-alternative) */
.seo-table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seo-table th, .seo-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.seo-table thead th { background: var(--bg-subtle); color: var(--ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
.seo-table tbody tr:last-child td { border-bottom: 0; }
.seo-table td:first-child { color: var(--ink-soft); font-weight: 500; }
.seo-table .yes { color: var(--success); }
.seo-table .no { color: var(--ink-faint); }
.seo-faq { margin-top: 12px; }
.seo-faq details {
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px 16px; margin-bottom: 10px; background: var(--surface);
}
.seo-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.seo-faq details p { margin-top: 10px; color: var(--ink-muted); }

/* ============================================================
   BOOTSTRAP DARK BRIDGE
   Re-themes the few Bootstrap classes still used by tool-injected
   markup on converted pages so they match the dark system.
   ============================================================ */
.lead { color: var(--ink-muted); }
.text-muted { color: var(--ink-muted) !important; }
.form-control {
    background: var(--bg-sunken);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
}
.form-control:focus { background: var(--surface); color: var(--ink); border-color: var(--accent); box-shadow: var(--ring); }
.form-control::placeholder { color: var(--ink-faint); }
.input-group-text { background: var(--bg-sunken); color: var(--ink-muted); border-color: var(--line-strong); }
.btn-dark { background: var(--ink); color: #0b0c0e; border: 0; }
.btn-dark:hover { background: #fff; color: #0b0c0e; }
.btn-outline-dark { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline-dark:hover { background: var(--surface-raised); color: var(--ink); border-color: var(--ink-faint); }
.card { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }

/* ---- Animations ---- */
@keyframes gm-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.gm-rise { animation: gm-rise var(--t-slow) var(--ease-out) both; }
.gm-rise-1 { animation-delay: 60ms; }
.gm-rise-2 { animation-delay: 120ms; }
.gm-rise-3 { animation-delay: 180ms; }
.gm-rise-4 { animation-delay: 240ms; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .gm-grid { grid-template-columns: repeat(2, 1fr); }
    .gm-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .gm-plan--featured { order: -1; }
}
@media (max-width: 720px) {
    .gm-section { padding: 64px 0; }
    .gm-hero { padding: 64px 0 52px; }
    .gm-nav__links { display: none; }
    .gm-grid { grid-template-columns: 1fr; }
    .gm-field-row { grid-template-columns: 1fr; }
    .gm-footer__top { flex-direction: column; }
    .gm-hero__cta .gm-btn { flex: 1; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
