/* ============================================
   shorto. — URL Shortener
   Aesthetic: editorial / warm brutalist
   Fonts: Instrument Serif (display), Satoshi (body), DM Mono (code)
   ============================================ */

:root {
    --bg: #0B0D14;
    --surface: #141722;
    --surface-2: #1C2030;
    --surface-3: #262B3D;
    --border: #2A3045;
    --border-light: #3A4158;
    --text: #F0F2F8;
    --text-dim: #9CA3B8;
    --text-faint: #636B82;
    --accent: #FF6B2C;
    --accent-dim: #E05A1F;
    --accent-glow: rgba(255, 107, 44, 0.12);
    --accent-2: #38BDF8;
    --danger: #F87171;
    --danger-dim: rgba(248, 113, 113, 0.15);
    --success: #34D399;
    --kpi-blue: #3B82F6;
    --kpi-amber: #F59E0B;
    --kpi-green: #22C55E;
    --kpi-purple: #A855F7;
    --radius: 10px;
    --radius-lg: 16px;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --transition: 180ms ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* ---- BUTTONS ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
}
.btn--primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn--ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text-dim); color: var(--text); }

.btn--danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid transparent;
}
.btn--danger:hover { background: var(--danger); color: #fff; }

.btn--full { width: 100%; }

.btn--small { padding: 6px 14px; font-size: 12px; }

/* ---- NAV ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav__logo-mark {
    color: var(--accent);
    font-size: 14px;
    vertical-align: 2px;
    margin-right: 2px;
}

.nav__right { display: flex; align-items: center; gap: 16px; }

.nav__links { display: flex; gap: 4px; }

.nav__link {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: all var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link--active { color: var(--accent); background: var(--accent-glow); }

.nav__divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.nav__user {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}

.nav__logout {
    font-size: 12px;
    color: var(--text-faint);
    background: none;
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition);
}
.nav__logout:hover { color: var(--text); border-color: var(--text-dim); }

/* Language picker dropdown */

.lang-picker {
    position: relative;
}

.lang-picker__btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition);
}
.lang-picker__btn:hover { color: var(--text); border-color: var(--text-dim); }

.lang-picker__flag { font-size: 14px; line-height: 1; }
.lang-picker__code { letter-spacing: 0.04em; }
.lang-picker__arrow { font-size: 8px; color: var(--text-faint); margin-left: 2px; }

.lang-picker__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
    animation: menuIn 0.15s ease-out;
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--text-dim);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}
.lang-picker__item:hover { background: var(--surface-2); color: var(--text); }
.lang-picker__item--active { color: var(--text); }

.lang-picker__check {
    margin-left: auto;
    color: var(--accent);
    font-size: 13px;
}

#app { margin-top: 60px; }

/* ---- BUTTON SIZES ---- */

.btn--lg { padding: 14px 32px; font-size: 16px; }

/* ============================================
   HOME VIEW (public landing)
   ============================================ */

.home {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home__hero {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    width: 100%;
    padding: 40px 24px 80px;
    animation: fadeInUp 0.6s ease-out;
}

.home__title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 12px;
}

.home__diamond {
    color: var(--accent);
    font-size: 42px;
    vertical-align: 6px;
    margin-right: 4px;
    display: inline-block;
    animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 8px var(--accent-glow)); }
}

.home__tagline {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 48px;
}

.home .shorten--hero { text-align: left; margin-bottom: 0; }
.home .shorten--hero .shorten__form { display: flex; gap: 12px; }

.home .shorten--hero .shorten__input {
    font-size: 16px;
    padding: 16px 16px 16px 48px;
    background: var(--surface);
    border: 1px solid var(--border-light);
}

.home .shorten--hero .shorten__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.home__cta {
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-faint);
}

.home__cta a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.home__cta a:hover { text-decoration: underline; }

/* ---- Background with animated demo ---- */

.home__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.home__bg::before {
    content: '';
    position: absolute;
    top: 25%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.6;
}

/* Shared demo mockup base */
.home__demo {
    position: absolute;
    opacity: 0;
    animation: mockReveal 1s ease-out forwards;
}

/* Shorten demo — upper right */
.home__demo--shorten {
    top: 12%;
    right: 3%;
    transform: perspective(1000px) rotateY(-12deg) rotateX(3deg);
    animation-delay: 0.3s;
}

/* Dashboard preview — left */
.home__demo--dash {
    top: 18%;
    left: 2%;
    transform: perspective(1000px) rotateY(10deg) rotateX(2deg);
    animation-delay: 0.6s;
}

/* API preview — bottom right */
.home__demo--api {
    bottom: 6%;
    right: 6%;
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    animation-delay: 0.9s;
}

@keyframes mockReveal {
    from { opacity: 0; }
    to { opacity: 0.45; }
}

.home__demo-window {
    width: 460px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}

.home__demo-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.home__demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}

.home__demo-bar-title {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.home__demo--dash .home__demo-window { width: 400px; }
.home__demo--api .home__demo-window { width: 380px; }

.home__demo-body { padding: 20px; }

.home__demo-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.home__demo-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.home__demo-url-text {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    border-right: 2px solid var(--accent);
    animation: demoType 9s ease-in-out infinite;
}

.home__demo-btn {
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    background: var(--surface-3);
    color: var(--text-faint);
    border: 1px solid var(--border);
    animation: demoBtnPulse 9s ease-in-out infinite;
}

.home__demo-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(6px);
    animation: demoResult 9s ease-in-out infinite;
}

.home__demo-check {
    color: var(--success);
    font-size: 14px;
    font-weight: 700;
}

.home__demo-result-url {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.home__demo-copied {
    margin-left: auto;
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: demoCopied 9s ease-in-out infinite;
}

/* Demo animation cycle — 9s loop */

@keyframes demoType {
    0%, 5% { width: 0; border-right-color: var(--accent); }
    30% { width: 100%; border-right-color: var(--accent); }
    35%, 85% { width: 100%; border-right-color: transparent; }
    95%, 100% { width: 0; border-right-color: transparent; opacity: 0; }
}

@keyframes demoBtnPulse {
    0%, 28% { background: var(--surface-3); color: var(--text-faint); border-color: var(--border); }
    33% { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: scale(0.95); }
    38%, 100% { background: var(--surface-3); color: var(--text-faint); border-color: var(--border); transform: scale(1); }
}

@keyframes demoResult {
    0%, 35% { opacity: 0; transform: translateY(6px); }
    42%, 85% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; transform: translateY(6px); }
}

@keyframes demoCopied {
    0%, 48% { opacity: 0; }
    55%, 85% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

/* ---- Dashboard mockup content ---- */

.home__mock-stats {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.home__mock-stat {
    flex: 1;
    padding: 8px 10px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    animation: mockItemIn 0.5s ease-out forwards;
}

.home__mock-stat:nth-child(1) { animation-delay: 0.9s; }
.home__mock-stat:nth-child(2) { animation-delay: 1.1s; }
.home__mock-stat:nth-child(3) { animation-delay: 1.3s; }

.home__mock-stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text);
    line-height: 1.2;
}

.home__mock-stat-lbl {
    font-size: 9px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.home__mock-links { display: flex; flex-direction: column; gap: 5px; }

.home__mock-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    opacity: 0;
    animation: mockItemIn 0.4s ease-out forwards;
}

.home__mock-link:nth-child(1) { animation-delay: 1.5s; }
.home__mock-link:nth-child(2) { animation-delay: 1.7s; }
.home__mock-link:nth-child(3) { animation-delay: 1.9s; }

.home__mock-link-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    white-space: nowrap;
}

.home__mock-link-bar {
    flex: 1;
    height: 4px;
    background: var(--surface-2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.home__mock-link-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--w);
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: barGrow 0.8s ease-out forwards;
    animation-delay: 2.2s;
}

.home__mock-link-clicks {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* Mini bar chart in dashboard mockup */
.home__mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.home__mock-chart-bar {
    flex: 1;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    opacity: 0.6;
    height: var(--h);
    transform: scaleY(0);
    transform-origin: bottom;
    animation: barGrow 0.6s ease-out forwards;
    animation-delay: 2.5s;
}

.home__mock-chart-bar:nth-child(2) { animation-delay: 2.6s; }
.home__mock-chart-bar:nth-child(3) { animation-delay: 2.7s; }
.home__mock-chart-bar:nth-child(4) { animation-delay: 2.8s; }
.home__mock-chart-bar:nth-child(5) { animation-delay: 2.9s; }
.home__mock-chart-bar:nth-child(6) { animation-delay: 3.0s; }
.home__mock-chart-bar:nth-child(7) { animation-delay: 3.1s; }

@keyframes barGrow { to { transform: scaleX(1); } }

@keyframes mockItemIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- API mockup content ---- */

.home__mock-endpoint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    opacity: 0;
    animation: mockItemIn 0.5s ease-out 1.2s forwards;
}

.home__mock-method {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.home__mock-method--post { background: var(--accent-glow); color: var(--accent); }
.home__mock-method--get { background: rgba(52, 211, 153, 0.15); color: #34d399; }

.home__mock-path {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
}

.home__mock-code {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    line-height: 1.5;
    overflow: hidden;
    margin: 0;
    white-space: pre;
    opacity: 0;
    animation: mockItemIn 0.6s ease-out 1.5s forwards;
}

.home__mock-resp { margin-top: 8px; }

.home__mock-resp-lbl {
    display: block;
    font-size: 9px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0;
    animation: mockItemIn 0.4s ease-out 1.8s forwards;
}

.home__mock-code--resp {
    animation-delay: 2.0s;
    border-left: 2px solid var(--success);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   AUTH VIEW
   ============================================ */

.auth {
    display: grid;
    grid-template-columns: 480px 1fr;
    min-height: calc(100vh - 60px);
}

.auth__card {
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth__header { margin-bottom: 40px; }

.auth__brand {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 8px;
}

.auth__diamond {
    color: var(--accent);
    font-size: 28px;
    vertical-align: 4px;
}

.auth__tagline {
    font-size: 15px;
    color: var(--text-dim);
    font-weight: 400;
    font-family: var(--font-body);
}

.auth__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.auth__tab {
    flex: 1;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-faint);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: -1px;
}
.auth__tab:hover { color: var(--text-dim); }
.auth__tab--active { color: var(--accent); border-bottom-color: var(--accent); }

.auth__fields { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.field__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}
.field__input:focus { border-color: var(--accent); }
.field__input::placeholder { color: var(--text-faint); }

.auth__error {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--danger);
    background: var(--danger-dim);
    border-radius: var(--radius);
    margin-top: 4px;
}

.auth__form .btn { margin-top: 8px; }

.auth__footer {
    margin-top: 32px;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}

/* Decorative grid on right side */
.auth__decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-left: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.auth__grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 16px;
    transform: rotate(12deg);
}

.auth__grid-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    animation: gridPulse 4s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.3s);
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
}

/* ============================================
   DASHBOARD VIEW — Bitly Premium
   ============================================ */

.dash {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.dash__header { margin-bottom: 28px; }

.dash__title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dash__subtitle {
    font-size: 15px;
    color: var(--text-dim);
    margin-top: 4px;
}


/* Shorten form */

.shorten { margin-bottom: 28px; }

.shorten__form { display: flex; gap: 12px; }

.shorten__input-wrap { flex: 1; position: relative; }

.shorten__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-faint);
}

.shorten__input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}
.shorten__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.shorten__input::placeholder { color: var(--text-faint); }

.shorten__result {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius);
    animation: slideUp 0.25s ease-out;
}

.shorten__result code {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--accent);
    font-weight: 500;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KPI Bar */

.kpi-bar {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    margin-bottom: 24px;
}

.kpi-bar__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
}

.kpi-bar__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-bar__item--links .kpi-bar__icon  { background: rgba(59,130,246,0.15); color: var(--kpi-blue); }
.kpi-bar__item--clicks .kpi-bar__icon { background: rgba(255,107,44,0.15); color: var(--accent); }
.kpi-bar__item--avg .kpi-bar__icon    { background: rgba(34,197,94,0.15); color: var(--kpi-green); }
.kpi-bar__item--today .kpi-bar__icon  { background: rgba(168,85,247,0.15); color: var(--kpi-purple); }

.kpi-bar__value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.kpi-bar__label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 500;
}

.kpi-bar__divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* Hero area chart */

.dash__hero-chart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.dash__hero-chart::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.dash__hero-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.dash__area-chart {
    width: 100%;
    height: 220px;
    position: relative;
    z-index: 1;
}

.dash__area-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }

.dash__area-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-faint);
    font-size: 14px;
}

/* Two-column panels */

.dash__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dash__panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.dash__panel--full { margin-bottom: 16px; }

.dash__section-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* Top performing links */

.dash__top-list { display: flex; flex-direction: column; gap: 14px; }

.dash__top-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-faint);
    font-size: 14px;
}

.top-link {
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    animation: slideUp 0.3s ease-out both;
    animation-delay: calc(var(--i) * 60ms);
}
.top-link:hover { transform: translateX(4px); }

.top-link__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.top-link__rank {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent-glow);
    border: 1px solid rgba(255,107,44,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-link__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.top-link__code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-2);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-link__clicks {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 12px;
}

.top-link__bar-track {
    height: 5px;
    background: var(--surface-3);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 34px;
}

.top-link__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #FF9F43);
    border-radius: 3px;
    transition: width 0.6s ease-out;
}
.top-link:hover .top-link__bar { box-shadow: 0 0 8px var(--accent-glow); }

/* Donut chart (devices) */

.dash__donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 8px;
}

.dash__donut {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 30px rgba(255,107,44,0.08);
}

.dash__donut-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.3);
}

.dash__donut-total {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.dash__donut-lbl {
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 2px;
}

.dash__donut-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
}

.dash__donut-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.dash__donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.dash__donut-legend-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    margin-left: 2px;
}

/* Hourly heatmap */

.dash__heatmap {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
}

.dash__heatmap-cell {
    aspect-ratio: 1;
    border-radius: 5px;
    background: var(--surface-2);
    position: relative;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 28px;
}
.dash__heatmap-cell:hover { transform: scale(1.2); z-index: 2; }

.dash__heatmap-cell--l1 { background: rgba(255,107,44,0.12); }
.dash__heatmap-cell--l2 { background: rgba(255,107,44,0.25); }
.dash__heatmap-cell--l3 { background: rgba(255,107,44,0.42); }
.dash__heatmap-cell--l4 { background: rgba(255,107,44,0.65); box-shadow: 0 0 8px rgba(255,107,44,0.2); }
.dash__heatmap-cell--l5 { background: var(--accent); box-shadow: 0 0 12px rgba(255,107,44,0.3); }

.dash__heatmap-label {
    font-size: 9px;
    color: var(--text-faint);
    text-align: center;
    padding-top: 4px;
    font-family: var(--font-mono);
}

/* Links list */

.links { margin-top: 8px; }

.links__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.links__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.links__count {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255,107,44,0.15);
}

.links__list { display: flex; flex-direction: column; gap: 8px; }

.link-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    animation: slideUp 0.3s ease-out both;
    animation-delay: calc(var(--i) * 40ms);
}
.link-row:hover {
    border-color: var(--accent-dim);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.link-row__info { min-width: 0; }

.link-row__code {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 3px;
}

.link-row__original {
    font-size: 13px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-row__clicks {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    text-align: right;
    min-width: 48px;
}

.link-row__clicks-label {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.link-row__date {
    font-size: 12px;
    color: var(--text-faint);
    min-width: 80px;
    text-align: right;
}

.links__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-faint);
}

.links__empty-icon {
    display: block;
    font-size: 32px;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 12px;
}

/* Bulk modal */

.bulk-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.bulk-modal__card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.bulk-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bulk-modal__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.bulk-modal__close {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all var(--transition);
}
.bulk-modal__close:hover { color: var(--text); background: var(--surface-2); }

.bulk-modal__textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    resize: vertical;
    line-height: 1.6;
    transition: border-color var(--transition);
}
.bulk-modal__textarea:focus { border-color: var(--accent); }
.bulk-modal__textarea::placeholder { color: var(--text-faint); }

.bulk-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.bulk-modal__results {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.bulk-modal__result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 4px;
}

.bulk-modal__result-item--ok {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.15);
}

.bulk-modal__result-item--err {
    background: var(--danger-dim);
    border: 1px solid rgba(248,113,113,0.15);
    color: var(--danger);
}

.bulk-modal__result-url {
    font-family: var(--font-mono);
    color: var(--accent-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.bulk-modal__result-short {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 500;
}

.bulk-modal__summary {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.bulk-modal__summary-ok { color: var(--success); }
.bulk-modal__summary-err { color: var(--danger); }

/* ============================================
   DETAIL VIEW
   ============================================ */

.detail {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.detail__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.detail__back:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

.detail__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.detail__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.detail__code {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.detail__original {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    margin-top: 6px;
    word-break: break-all;
}
.detail__original:hover { color: var(--text); text-decoration: underline; }

.detail__original-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.detail__original-row .detail__original { margin-top: 0; }

.detail__edit-btn {
    padding: 2px 8px;
    font-size: 14px;
    line-height: 1;
    color: var(--text-faint);
    opacity: 0;
    transition: opacity 0.15s;
}
.detail__top:hover .detail__edit-btn { opacity: 1; }
.detail__edit-btn:hover { color: var(--accent); opacity: 1; }

.detail__edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.detail__edit-input {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

.detail__clicks-big {
    text-align: right;
}

.detail__clicks-num {
    display: block;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.detail__clicks-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.detail__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.detail__meta-label {
    display: block;
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail__meta-value {
    font-size: 14px;
    color: var(--text);
}

.detail__meta-value code,
code.detail__meta-value {
    font-family: var(--font-mono);
    font-size: 13px;
}

/* Chart */

.detail__chart-wrap {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.detail__chart-title {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.detail__chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--accent);
    min-height: 4px;
    transition: height 0.4s ease-out;
    position: relative;
    opacity: 0.7;
}
.chart-bar:hover { opacity: 1; }
.chart-bar--zero { background: var(--border); }

.detail__actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================
   CLICK ANALYTICS
   ============================================ */

.analytics { margin-top: 28px; }

.analytics__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.analytics__card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.analytics__card--wide {
    margin-bottom: 16px;
}

.analytics__card-title {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Horizontal bar charts */

.analytics__bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.analytics__bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics__bar-label {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analytics__bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface-3);
    border-radius: 4px;
    overflow: hidden;
}

.analytics__bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #FF6B2C, #FF9F43);
    transition: width 0.5s ease-out;
}

.analytics__bar-fill--device { background: linear-gradient(90deg, #A855F7, #C084FC); }
.analytics__bar-fill--browser { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.analytics__bar-fill--os { background: linear-gradient(90deg, #22C55E, #4ADE80); }

.analytics__bar-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    min-width: 32px;
    text-align: right;
}

/* Hourly chart */

.analytics__hour-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 80px;
    padding-top: 4px;
}

.analytics__hour-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    min-height: 2px;
    opacity: 0.6;
    transition: height 0.4s ease-out, opacity 0.2s;
    position: relative;
    cursor: default;
}
.analytics__hour-bar:hover { opacity: 1; }
.analytics__hour-bar--zero { background: var(--border); opacity: 0.3; }

/* Clicks table */

.analytics__table-wrap {
    overflow-x: auto;
}

.analytics__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.analytics__table th {
    text-align: left;
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.analytics__table td {
    padding: 8px 10px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.analytics__table tr:last-child td {
    border-bottom: none;
}

.analytics__table tr:hover td {
    background: var(--surface-3);
}

.analytics__table .td-ip {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text);
}

.analytics__empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-faint);
    font-size: 14px;
}

@media (max-width: 768px) {
    .analytics__grid { grid-template-columns: 1fr; }
    .analytics__table { font-size: 11px; }
    .analytics__bar-label { min-width: 60px; }
}

/* ============================================
   API REFERENCE PAGE
   ============================================ */

.api-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.api-page__header { margin-bottom: 36px; }

.api-page__title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.api-page__subtitle {
    font-size: 15px;
    color: var(--text-dim);
    margin-top: 4px;
}

.api-page__section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* API cards */

.api-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.api-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.api-card__desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.5;
}

.api-card__desc code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
}

.api-card__endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.api-card__path {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.api-card__section { margin-top: 16px; }

.api-card__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.api-card__pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-dim);
    white-space: pre;
}

.api-card__pre code {
    font-family: inherit;
    font-size: inherit;
}

/* Token display */

.api-card__token-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.api-card__token-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    word-break: break-all;
}

/* Example tabs */

.api-card__tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.api-card__tab {
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    transition: all var(--transition);
}
.api-card__tab:hover { color: var(--text-dim); }
.api-card__tab--active {
    color: var(--accent);
    background: var(--surface-2);
    border-color: var(--border);
}

/* Method badges */

.api-method {
    display: inline-block;
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.api-method--get { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.api-method--post { background: var(--accent-glow); color: var(--accent); }
.api-method--delete { background: var(--danger-dim); color: var(--danger); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .home__demo--dash,
    .home__demo--api { display: none; }
}

@media (max-width: 768px) {
    .home__title { font-size: 42px; }
    .home__diamond { font-size: 28px; }
    .home__tagline { font-size: 18px; margin-bottom: 32px; }
    .home .shorten--hero .shorten__form { flex-direction: column; }
    .home__demo { display: none; }
    .home__bg::before { display: none; }
    .nav__links { gap: 0; }
    .nav__divider { margin: 0 2px; }
    .api-card__endpoint-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .api-card__token-row { flex-direction: column; align-items: stretch; }
    .auth { grid-template-columns: 1fr; }
    .auth__decoration { display: none; }
    .auth__card { padding: 40px 24px; }
    .kpi-bar { flex-wrap: wrap; padding: 14px 20px; gap: 8px; }
    .kpi-bar__divider { display: none; }
    .kpi-bar__item { min-width: calc(50% - 8px); }
    .dash__two-col { grid-template-columns: 1fr; }
    .dash__heatmap { grid-template-columns: repeat(12, 1fr); gap: 3px; }
    .dash__area-chart { height: 160px; }
    .link-row { grid-template-columns: 1fr auto; }
    .link-row__date { display: none; }
    .detail__top { flex-direction: column; gap: 20px; }
    .detail__clicks-big { text-align: left; }
    .detail__meta { grid-template-columns: 1fr; }
    .shorten__form { flex-direction: column; }
}

/* ---- TOAST ---- */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2s forwards;
    z-index: 200;
}

@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(12px); } }
