/* HS23 — React Bits LightPillar uyumlu cam panel + mor / turuncu palet */
:root {
    --pillar-top: #4a1f99;
    --pillar-bottom: #7a3a10;
    --bg: #0c0d12;
    --bg-subtle: #12131a;
    --card: rgba(22, 23, 32, 0.82);
    --card-solid: #1a1b24;
    --card-hover: rgba(28, 29, 40, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --text: #f4f4f8;
    --text-secondary: #c8c8d4;
    --muted: #9a9aac;
    --accent: #c2410c;
    --accent-hover: #ea580c;
    --accent-deep: #9a3412;
    --accent-glow: rgba(194, 65, 12, 0.22);
    --accent-glow-strong: rgba(194, 65, 12, 0.32);
    --glow-purple: rgba(124, 58, 237, 0.12);
    --danger: #ef4444;
    --danger-hover: #f87171;
    --ok: #22c55e;
    --ok-hover: #4ade80;
    --input-bg: rgba(12, 12, 18, 0.92);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(194, 65, 12, 0.38);
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --alert-ok-bg: rgba(34, 197, 94, 0.1);
    --alert-err-bg: rgba(239, 68, 68, 0.1);
    --text-on-accent: #fff;
    --focus-ring: rgba(194, 65, 12, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(194, 65, 12, 0.12);
    --link: #fdba74;
    --link-hover: #fed7aa;
    --link-subtle: rgba(253, 186, 116, 0.35);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arka plan: Three.js LightPillar (React Bits vanilla port) */
.hs23-app {
    position: relative;
    background: var(--bg);
    min-height: 100vh;
}
.hs23-light-pillar {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
}
/* Işık sütununu yumuşatıp genel alanı karartır */
.hs23-light-pillar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(10, 11, 18, 0.48) 0%,
        rgba(10, 11, 18, 0.38) 45%,
        rgba(10, 11, 18, 0.46) 100%
    );
}
.hs23-light-pillar canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    position: relative;
    z-index: 0;
    opacity: 1;
}
.hs23-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ── Header / Navigation ── */
header {
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    min-height: 4.25rem;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.2);
    background: linear-gradient(180deg, rgba(18, 19, 28, 0.82) 0%, rgba(14, 15, 22, 0.78) 100%);
    box-shadow: 0 1px 0 var(--glass-highlight);
}
.brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}
.brand-block {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    text-decoration: none;
    color: inherit;
    line-height: 1.05;
    transition: opacity var(--transition), filter var(--transition);
}
.brand-block:hover {
    opacity: 0.92;
    filter: brightness(1.06);
}
.brand-mark {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.045em;
    background: linear-gradient(115deg, #c4b5fd 0%, #7c3aed 28%, var(--accent) 72%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 32px rgba(124, 58, 237, 0.15);
}
.brand-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.brand-credit {
    text-transform: none;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--muted);
    opacity: 0.88;
    margin: 0;
    padding-left: 0.06rem;
}
.brand-muted {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}
header nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    margin-left: 0;
}
header nav a:hover {
    color: var(--text);
    background: linear-gradient(135deg, var(--glow-purple), var(--accent-glow));
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12);
}
header nav a:last-child {
    color: var(--muted);
    margin-left: 0.5rem;
}
header nav a:last-child:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* ── Main Content ── */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    width: 100%;
}
main a:not(.btn):not(.page-nav-link) { color: var(--link); text-decoration: none; transition: color var(--transition); }
main a:not(.btn):not(.page-nav-link):visited { color: var(--link); }
main a:not(.btn):not(.page-nav-link):hover { color: var(--link-hover); }

/* ── Typography ── */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text);
}
.muted { color: var(--muted); font-size: 0.875rem; }

.inline-link {
    color: var(--link) !important;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--link-subtle);
    transition: all var(--transition);
}
.inline-link:hover { color: var(--link-hover) !important; border-bottom-color: var(--accent); }

.page-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.55rem 1rem 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition);
}
.page-nav-link:hover {
    color: var(--link-hover);
    background: var(--accent-glow);
    border-color: rgba(249, 115, 22, 0.15);
}
.page-nav-link .page-nav-link__arr { opacity: 0.85; font-size: 1.05em; }
.admin-page-lede {
    margin: -0.5rem 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 52rem;
}
.admin-page-nav { margin: 1rem 0 0; }
.admin-page-nav .page-nav-link { margin-top: 0; }

/* ── Cards (cam panel) ── */
.card {
    background: var(--card);
    backdrop-filter: blur(20px) saturate(1.15);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.85rem;
    margin-bottom: 1.35rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--glass-highlight) inset;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    border-color: rgba(249, 115, 22, 0.15);
    box-shadow: var(--shadow-md), 0 0 40px rgba(95, 40, 191, 0.06);
}
.card h2 {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* ── Forms ── */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-width: 100%;
}
.form-field label {
    display: block;
    margin: 0 0 0.45rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.form-field input[type=text],
.form-field input[type=url],
.form-field input[type=password],
.form-field select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all var(--transition);
}
.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.form-field input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
.checkbox-row:hover { border-color: var(--border-light); }
.checkbox-row input[type=checkbox] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.checkbox-row .checkbox-label {
    margin: 0;
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
}
.form-actions { margin-top: 0.25rem; }
.form-actions .btn {
    min-height: 46px;
    padding: 0.62rem 1.55rem;
    font-weight: 600;
    border-radius: 999px;
}

/* ── Filter Toolbar ── */
.filter-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 1rem 1.25rem;
    align-items: end;
}
@media (max-width: 768px) { .filter-toolbar { grid-template-columns: 1fr; } }
.filter-toolbar .form-field { margin: 0; }
.filter-toolbar .form-field input { width: 100%; max-width: 100%; }
.filter-toolbar .filter-actions {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1px;
}
.filter-toolbar .filter-actions .btn {
    min-height: 46px;
    padding: 0.62rem 1.4rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.links-list-card .links-list-toolbar {
    margin: -0.15rem 0 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--border-light);
}

/* ── Buttons (koyu turuncu, cam gölgeli, modern) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(165deg, #d97706 0%, var(--accent) 38%, var(--accent-deep) 100%);
    color: var(--text-on-accent);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
    gap: 0.4rem;
    letter-spacing: 0.02em;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 4px 14px rgba(154, 52, 18, 0.45),
        0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn:hover {
    background: linear-gradient(165deg, #f59e0b 0%, #ea580c 42%, #c2410c 100%);
    filter: brightness(1.03);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 6px 22px rgba(234, 88, 12, 0.42),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
.btn:focus-visible {
    outline: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 4px 14px rgba(154, 52, 18, 0.45),
        0 0 0 3px var(--focus-ring);
}
.btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35) inset,
        0 1px 2px rgba(0, 0, 0, 0.25);
}
.btn-danger {
    background: linear-gradient(165deg, #f87171 0%, #dc2626 45%, #991b1b 100%);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 4px 14px rgba(185, 28, 28, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn-danger:hover {
    background: linear-gradient(165deg, #fca5a5 0%, #ef4444 40%, #b91c1c 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 6px 22px rgba(239, 68, 68, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.28);
    filter: brightness(1.02);
    transform: translateY(-2px);
}
.btn-danger:active {
    transform: translateY(0);
}
.btn-edit {
    background: rgba(194, 65, 12, 0.12);
    color: #fdba74;
    border: 1.5px solid rgba(194, 65, 12, 0.55);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.btn-edit:hover {
    background: linear-gradient(165deg, rgba(234, 88, 12, 0.22), rgba(194, 65, 12, 0.14));
    border-color: #ea580c;
    color: #ffedd5;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 4px 16px rgba(194, 65, 12, 0.25);
    transform: translateY(-2px);
}
.btn-edit:active {
    transform: translateY(0);
}
.btn-outline {
    background: rgba(194, 65, 12, 0.08);
    color: #fdba74;
    border: 1.5px solid rgba(194, 65, 12, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.btn-outline:hover {
    background: linear-gradient(165deg, rgba(234, 88, 12, 0.2), rgba(194, 65, 12, 0.1));
    border-color: #f97316;
    color: #ffedd5;
    box-shadow: 0 4px 16px rgba(194, 65, 12, 0.22);
    transform: translateY(-2px);
}
.btn-outline:active {
    transform: translateY(0);
}
.btn-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.col-actions {
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.col-actions .btn-edit {
    margin-right: 0;
}

/* ── Tables ── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
}
table.links-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 0.84rem;
    table-layout: auto;
}
table.links-table thead tr th {
    padding: 0.65rem 1rem 0.85rem;
    text-align: left;
    border: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    background: transparent;
    vertical-align: bottom;
}
table.links-table:not(.links-table--cards) tbody tr td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-secondary);
    transition: color var(--transition), background var(--transition);
}
table.links-table:not(.links-table--cards) tbody tr:hover td {
    color: var(--text);
    background: rgba(249, 115, 22, 0.04);
}

/* Sabit sütun genişlikleri: satır yüksekliği tek çizgi, URL taşarsa hücre içi kaydırma */
table.links-table--cards {
    table-layout: fixed;
    width: 100%;
}
table.links-table--cards col.col-id { width: 3.25rem; }
table.links-table--cards col.col-title { width: 11%; }
table.links-table--cards col.col-owner { width: 10%; }
table.links-table--cards col.col-url-original { width: 27%; }
table.links-table--cards col.col-url-short { width: 28%; }
table.links-table--cards.links-table--admin col.col-owner { width: 14%; }
table.links-table--cards.links-table--admin col.col-title { width: 8%; }
table.links-table--cards.links-table--admin col.col-url-original { width: 19%; }
table.links-table--cards.links-table--admin col.col-url-short { width: 30%; }
table.links-table--cards col.col-clicks { width: 4.25rem; }
table.links-table--cards col.col-date { width: 6rem; }
table.links-table--cards col.col-act-wide { width: 12.5rem; }

/* Satırlar arası boşluk + tam URL (React Bits tarzı kart şeritleri) */
table.links-table--cards tbody tr:not(.links-table__empty) td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    color: var(--text-secondary);
    background: linear-gradient(180deg, rgba(22, 22, 30, 0.88) 0%, rgba(18, 19, 28, 0.9) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-left: 0;
    border-right: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
table.links-table--cards tbody tr:not(.links-table__empty):hover td {
    border-color: rgba(249, 115, 22, 0.22);
    color: var(--text);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(249, 115, 22, 0.08) inset;
}
table.links-table--cards tbody tr:not(.links-table__empty) td:first-child {
    border-left: 1px solid var(--glass-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
table.links-table--cards tbody tr:not(.links-table__empty) td:last-child {
    border-right: 1px solid var(--glass-border);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
table.links-table--cards tbody tr.links-table__empty td {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    color: inherit;
}
/* Owner column (admin): keep one line — avoids row height jump when "user · role" wraps */
table.links-table--cards td.cell-owner {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    min-width: 0;
}
/* URL tek satır, sütuna sığdır — taşan kısım … (tam metin: title / link title) */
table.links-table td.cell-url {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.35;
    max-width: 100%;
}
/* Short link column: show full URL (wrap); destination URL stays single-line + ellipsis */
table.links-table td.cell-url:not(.cell-url--mono) {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 12.5rem;
}
table.links-table td.cell-url a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
table.links-table td.cell-url:not(.cell-url--mono) a {
    display: inline;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: none;
}
table.links-table td.cell-url--mono {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.78rem;
}
table.links-table td.cell-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}
table.links-table tbody tr.links-table__empty td,
table.links-table tbody tr.links-table__empty:hover td {
    box-shadow: none;
    background: transparent;
    border: none;
}
table.links-table td.col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text);
}
table.links-table td a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}
table.links-table td a:hover {
    color: var(--link-hover);
}
table.links-table col.col-id { width: 52px; }
table.links-table col.col-clicks { width: 72px; }
table.links-table col.col-act { width: 90px; }
table.links-table col.col-act-wide { width: 200px; }
table.links-table col.col-date { width: 7.25rem; }
table.links-table col.col-qr-thumb { width: 76px; }
table.links-table col.col-qr-file { width: 108px; }
table.links-table col.col-qr-date { width: 150px; }
table.links-table td.qr-thumb-cell { vertical-align: middle; }
table.links-table .btn {
    padding: 0.4rem 0.82rem;
    font-size: 0.76rem;
    border-radius: 999px;
    min-height: auto;
}
.empty-table-msg {
    padding: 2.5rem 1rem !important;
    text-align: center;
    color: var(--muted) !important;
    font-size: 0.9rem;
}

/* Generic tables */
table:not(.links-table) { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table:not(.links-table) th, table:not(.links-table) td {
    padding: 0.65rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}
table:not(.links-table) th { color: var(--muted); font-weight: 500; }

/* ── Global Inputs ── */
input, select {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.9rem;
    transition: all var(--transition);
}
input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
label {
    display: block;
    margin: 0.5rem 0 0.3rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ── Stats Grid ── */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat {
    background: var(--card);
    backdrop-filter: blur(16px) saturate(1.1);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 1px var(--glass-highlight) inset;
    transition: all var(--transition);
}
.stat:hover {
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: var(--shadow-glow), 0 0 0 1px var(--glass-highlight) inset;
}
.stat b {
    font-size: 1.75rem;
    display: block;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.stats--dash { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
/* Dashboard: KPI strip doğrudan başlığın altında */
.stats--dash-first {
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

/* ── Dashboard ── */
.dash-info p { margin: 0.4rem 0; line-height: 1.5; }
.dash-info code { font-size: 0.8125rem; word-break: break-all; }
.dash-hint { margin: 0.85rem 0 0; color: var(--muted); }
.dash-hint small { font-size: 0.8rem; line-height: 1.5; }
.dash-migrate-notice {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.55;
}
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.dash-section h2 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}
.dash-table td, .dash-table th { vertical-align: middle; }
.dash-code { color: var(--muted); font-size: 0.82em; }
.dash-empty { color: var(--muted); margin: 0; font-size: 0.875rem; }

/* Dashboard Bars */
.dash-bars { display: flex; flex-direction: column; gap: 0.65rem; }
.dash-bar-row {
    display: grid;
    grid-template-columns: 5.75rem 1fr 2.75rem;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.85rem;
}
.dash-bar-label { color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 99px;
    overflow: hidden;
    border: none;
}
.dash-bar-fill {
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 99px;
    transition: width 0.5s ease;
}
.dash-bar-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

/* Dashboard Charts */
.dash-chart-card--daybars .dash-bars--in-grid {
    min-height: 260px;
    justify-content: center;
    padding: 0.35rem 0;
}
.dash-chart-card--daybars .dash-footnote { margin: 0.75rem 0 0; padding: 0; border: none; }
.dash-footnote { margin: 0.85rem 0 0; }
.dash-ref { max-width: 100%; word-break: break-word; }
.dash-charts-intro { margin: 1.5rem 0 0.75rem; }
.dash-charts-title { margin: 0 0 0.35rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.dash-charts-sub { margin: 0; font-size: 0.85rem; color: var(--muted); }
.dash-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 960px) {
    .dash-charts-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-chart-card--span-2 { grid-column: span 2; }
}
.dash-chart-card { padding: 1.25rem 1.5rem; }
.dash-chart-h { margin: 0 0 0.65rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.dash-chart-wrap { position: relative; height: 220px; width: 100%; }
.dash-chart-wrap--doughnut { height: 260px; }
.dash-chart-wrap--tall { height: 280px; }
.dash-chart-source { margin: 0 0 0.5rem; font-size: 0.75rem; color: var(--muted); }
.dash-chart-empty { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.dash-chart-na { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.dash-chart-card--muted .dash-chart-na code { font-size: 0.8rem; }
@media (max-width: 520px) {
    .dash-bar-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .dash-bar-num { text-align: left; }
}

/* ── Alerts ── */
small { color: var(--muted); }
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-ok {
    background: var(--alert-ok-bg);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--ok);
}
.alert-err {
    background: var(--alert-err-bg);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--danger);
}
nav a { margin-right: 0; }

/* ── Landing ── */
body.hs23-app.landing {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.hs23-landing-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}
.landing-inner { width: 100%; max-width: 26rem; }
.landing-card {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    background: var(--card);
    backdrop-filter: blur(20px) saturate(1.15);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow), 0 0 0 1px var(--glass-highlight) inset;
}
.landing-brand {
    margin: 0 0 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}
.landing-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}
.landing-title .brand-mark {
    font-size: inherit;
    display: inline-block;
}
.landing-title-deck {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.landing-credit-line {
    text-transform: none;
    margin: 0.65rem 0 0;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--muted);
    opacity: 0.88;
}
.landing-title-sub {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.landing-notice {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.landing-credit {
    text-transform: none;
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.625rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    opacity: 0.6;
}

/* ── QR Section ── */
.qr-intro {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--input-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
}
.qr-intro a { color: var(--link); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--link-subtle); }
.qr-intro a:hover { color: var(--link-hover); border-bottom-color: var(--accent); }
.form-actions.qr-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem 1.25rem;
    margin-top: 0.35rem;
}
.form-actions.qr-toolbar-actions .btn {
    min-height: 46px;
    padding: 0.62rem 1.35rem;
    font-weight: 600;
    border-radius: 999px;
}
.form-actions.qr-toolbar-actions .btn-outline:disabled { opacity: 0.4; }
.qr-save-msg {
    font-size: 0.85rem;
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--ok);
}
.qr-save-msg.qr-save-msg--err { background: var(--alert-err-bg); border: 1px solid rgba(239, 68, 68, 0.25); color: var(--danger); }
.qr-error { color: var(--danger); font-size: 0.85rem; margin: 0.75rem 0 0; padding: 0.55rem 0.85rem; background: var(--alert-err-bg); border-radius: var(--radius-sm); border: 1px solid rgba(239, 68, 68, 0.25); }
.qr-thumb-cell { width: 72px; }
.qr-thumb-img { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.qr-thumb-link { display: inline-block; border-radius: 8px; transition: box-shadow var(--transition); }
.qr-thumb-link:hover { box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3); }
.qr-thumb-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qr-canvas-wrap {
    margin: 1.25rem 0 0;
    max-width: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
    width: fit-content;
}
.qr-target-inner { display: flex; justify-content: center; align-items: center; min-height: 1px; }
.qr-target-inner img { display: block; margin: 0 auto; max-width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 520px) {
    .form-actions.qr-toolbar-actions { flex-direction: column; align-items: stretch; }
    .form-actions.qr-toolbar-actions .btn { width: 100%; }
}

/* ── Login + landing (LightPillar ile aynı gövde) ── */
body.hs23-app.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.hs23-login-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}
.login-page form {
    background: var(--card);
    backdrop-filter: blur(20px) saturate(1.15);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    min-width: 340px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-highlight) inset;
}
.login-page form .btn {
    margin-top: 1.5rem;
    width: 100%;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 700;
}
.login-page label { display: block; margin-top: 1.15rem; color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500; }
.login-page input { width: 100%; padding: 0.6rem 0.85rem; margin-top: 0.35rem; border-radius: var(--radius-sm); border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); }
.login-page .err { background: var(--alert-err-bg); border: 1px solid rgba(239,68,68,0.25); padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.875rem; color: var(--danger); }
.login-page h1 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    text-align: center;
}
.login-page h1 .brand-mark {
    font-size: 1.15em;
    vertical-align: -0.04em;
    margin-right: 0.15em;
}
.login-page h1 .login-title-shortener {
    font-size: 0.95em;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
}
.login-role-label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.75rem;
}
.login-brand-credit {
    text-transform: none;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin: -0.2rem 0 1rem;
    opacity: 0.88;
}

/* ── Edit Modal ── */
.edit-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}
.edit-modal {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: hs23ModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.edit-modal h2 {
    margin: 0 0 1.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
@keyframes hs23ModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    header {
        padding: 0 1rem;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    header nav {
        flex-wrap: wrap;
        gap: 0.15rem;
    }
    header nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    main {
        padding: 1.25rem 1rem 2rem;
    }
    .card {
        padding: 1.15rem 1.25rem;
        border-radius: var(--radius-md);
    }
    h1 { font-size: 1.3rem; }
    .edit-modal {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Selection ── */
::selection { background: rgba(249, 115, 22, 0.25); color: var(--text); }

/* ── Details/Summary (şifre sıfırla) ── */
details summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}
details summary:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--bg-subtle);
}
details[open] summary {
    color: var(--accent);
    border-color: rgba(249, 115, 22, 0.3);
}

/* ── Dashboard analytics (tables + combo charts) ── */
.analytics-intro { margin-top: 0.5rem; }
.analytics-grid:empty { margin: 0; }
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: start;
}
.analytics-card {
    padding: 1.25rem 1.5rem;
}
.analytics-card--wide {
    grid-column: 1 / -1;
}
@media (min-width: 960px) {
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .analytics-card--wide {
        grid-column: 1;
    }
}
.analytics-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.analytics-card-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}
.analytics-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}
.analytics-total-label { margin-right: 0.35rem; }
.analytics-total-value { color: var(--text); font-size: 1.05rem; }
.analytics-total-value--single-link {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0.3rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.analytics-code {
    margin-left: 0.35rem;
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--link);
}
#analytics-link-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.45rem;
    max-width: 100%;
}
#analytics-link-meta-line .analytics-code {
    margin-left: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Custom analytics selects (Link / Range) — tema + yumuşak açılış */
.hs23-custom-select {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.hs23-custom-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.hs23-custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 0.52rem 2.35rem 0.52rem 0.85rem;
    margin: 0;
    text-align: left;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.hs23-custom-select__trigger::after {
    content: '';
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.28rem;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition);
    pointer-events: none;
}
.hs23-custom-select--open .hs23-custom-select__trigger::after {
    margin-top: -0.08rem;
    transform: rotate(225deg);
    border-color: var(--accent-hover);
}
.hs23-custom-select__trigger:hover {
    border-color: var(--border-light);
    background: var(--card-hover);
}
.hs23-custom-select--open .hs23-custom-select__trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.hs23-custom-select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 120;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    max-height: min(280px, 48vh);
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(26, 27, 36, 0.98) 0%, rgba(18, 19, 28, 0.99) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-highlight) inset, 0 0 40px rgba(194, 65, 12, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.22s;
}
.hs23-custom-select--open .hs23-custom-select__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.hs23-custom-select__option {
    margin: 0;
    padding: 0.58rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    word-break: break-word;
}
.hs23-custom-select__option:hover {
    color: var(--text);
    background: rgba(194, 65, 12, 0.12);
}
.hs23-custom-select__option--active,
.hs23-custom-select__option[aria-selected='true'] {
    color: var(--text-on-accent);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 55%, #ea580c 100%);
    box-shadow: 0 2px 10px var(--accent-glow);
}
.hs23-custom-select__option--active:hover,
.hs23-custom-select__option[aria-selected='true']:hover {
    color: var(--text-on-accent);
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-hover) 60%, #fb923c 100%);
}
.hs23-custom-select__list::-webkit-scrollbar {
    width: 7px;
}
.hs23-custom-select__list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}
.hs23-custom-select__list::-webkit-scrollbar-thumb {
    background: rgba(194, 65, 12, 0.4);
    border-radius: 4px;
}

.analytics-pills,
.analytics-range-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.analytics-range-nav {
    margin: 0.75rem 0 0.5rem;
}
.analytics-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.analytics-pill:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.06);
}
.analytics-pill--active {
    color: var(--text-on-accent);
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 55%, #ea580c 100%);
    border-color: transparent;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.analytics-chart-caption {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.analytics-chart-caption code {
    font-size: 0.74rem;
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}
.analytics-chart-wrap {
    height: 260px;
}
.analytics-chart-wrap--link {
    height: 280px;
}
.analytics-table-wrap {
    max-height: 320px;
    overflow: auto;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.analytics-table-wrap--detail {
    max-height: 240px;
    margin-top: 1rem;
}
.analytics-period-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.analytics-period-strip--below-chart {
    margin-bottom: 0;
}
.analytics-period-tile {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(165deg, rgba(234, 88, 12, 0.09) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    padding: 0.85rem 0.75rem;
    text-align: center;
    min-width: 0;
}
.analytics-period-tile__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}
.analytics-period-tile__value {
    display: block;
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .analytics-period-strip {
        grid-template-columns: 1fr;
    }
}
.analytics-table th,
.analytics-table td {
    font-size: 0.8125rem;
}
.analytics-week-hint {
    margin: 0 0 0.5rem;
    color: var(--muted);
}
.analytics-filter-form {
    margin: 0.75rem 0 0.25rem;
}
.analytics-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.analytics-filter-grid--with-refresh {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
}
.analytics-field-refresh {
    min-width: 0;
}
.analytics-field-refresh .analytics-refresh-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.analytics-refresh-btn {
    min-width: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 1.05rem;
    line-height: 1;
    border-radius: var(--radius-sm);
}
button.analytics-pill {
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}
button.analytics-pill.analytics-pill--active {
    border-color: transparent;
}
.analytics-link-ajax-loading .analytics-chart-wrap--link {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
@media (max-width: 560px) {
    .analytics-filter-grid {
        grid-template-columns: 1fr;
    }
    .analytics-filter-grid--with-refresh {
        grid-template-columns: 1fr;
    }
}
.analytics-empty {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}
.analytics-invalid {
    margin: 0 0 0.75rem;
    color: var(--danger);
    font-size: 0.875rem;
}
