/* ==========================================================
   BitIT - Design System & Modern Glassmorphic Stylesheet
   Palette: Dark Obsidian, Electric Violet, Cyber Cyan, Neon Emerald
   ========================================================== */

:root {
    --bg-main: #090d16;
    --bg-surface: rgba(18, 24, 38, 0.75);
    --bg-surface-solid: #121826;
    --bg-surface-elevated: rgba(28, 36, 56, 0.8);
    --bg-input: rgba(13, 17, 28, 0.9);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(139, 92, 246, 0.6);
    --border-glow: rgba(139, 92, 246, 0.25);

    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
    --shadow-glow: 0 0 35px -5px rgba(139, 92, 246, 0.35);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Luminous Ambience Background */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.background-glow::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.background-glow::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 70%);
    filter: blur(90px);
    border-radius: 50%;
    animation: floatGlowReverse 16s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.15); }
}

@keyframes floatGlowReverse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-70px, -50px) scale(1.1); }
}

/* Typography & Accent Text */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.accent-text, .brand-accent {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Header */
.site-header {
    width: 100%;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 13, 22, 0.8);
}

.header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.logo-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    border-radius: var(--radius-pill);
}

.header-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Layout Containers */
.main-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    width: 100%;
    flex: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Shortener Form Card */
.shortener-card {
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.shortener-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4, transparent);
}

.input-group-hero {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: var(--bg-input);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group-hero:focus-within {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow);
}

.input-icon-holder {
    padding-left: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: var(--font-body);
    padding: 0.5rem 0.25rem;
    min-width: 0;
}

.url-input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.55);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Options Accordion / Collapsible */
.options-toggle-wrapper {
    margin-top: 1.25rem;
}

.btn-options-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.btn-options-toggle:hover {
    color: var(--text-primary);
}

.btn-options-toggle svg {
    transition: transform 0.25s ease;
}

.btn-options-toggle.open svg {
    transform: rotate(180deg);
}

.options-drawer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.options-drawer.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 1.25rem;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(13, 17, 28, 0.6);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.option-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.custom-alias-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
}

.alias-prefix {
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
}

.sub-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    padding-left: 0.25rem;
    width: 100%;
}

.date-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.6rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Result Box */
.result-container {
    margin-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.75rem;
    animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

.result-card-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: rgba(13, 17, 28, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.result-url-display {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.result-short-url {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #38bdf8;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.result-short-url:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.result-original-url {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 450px;
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-copy {
    background: var(--primary-gradient);
    color: #ffffff;
}

.btn-copy.copied {
    background: #10b981;
}

/* QR Code Section inside Result */
.qr-modal-wrapper {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: rgba(9, 13, 22, 0.8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.qr-canvas-holder {
    background: #ffffff;
    padding: 0.6rem;
    border-radius: 10px;
    display: inline-flex;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.qr-canvas-holder canvas, .qr-canvas-holder img {
    display: block;
    max-width: 100%;
}

.qr-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qr-meta-title {
    font-size: 1rem;
    font-weight: 700;
}

.qr-meta-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Recent Links Section */
.recent-section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear-history {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-clear-history:hover {
    color: var(--accent-rose);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, transform 0.2s;
}

.recent-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

.recent-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.recent-short-link {
    font-weight: 700;
    font-size: 0.98rem;
    color: #38bdf8;
    text-decoration: none;
}

.recent-target-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.recent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 100;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    background: #1e293b;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
}

.toast-error {
    border-color: rgba(244, 63, 94, 0.4);
}

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

/* Stats Page Specific Styles */
.stats-hero {
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.stats-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.link-detail-item .detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.detail-value-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.short-link-anchor {
    font-size: 1.35rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
}

.copy-btn-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}

.copy-btn-mini:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.long-link-anchor {
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.long-link-anchor:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.link-meta-row {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.total-clicks-counter {
    background: rgba(13, 17, 28, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.counter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.1;
    margin: 0.3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-sub {
    font-size: 0.75rem;
    color: var(--accent-emerald);
}

/* Stats Panels Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.stat-panel {
    padding: 1.5rem;
}

.panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

/* Bars visualization */
.bars-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.bar-name {
    color: var(--text-secondary);
}

.bar-val {
    font-weight: 600;
    color: var(--text-primary);
}

.bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Referrers list */
.referrer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.referrer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.ref-source {
    color: var(--text-secondary);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ref-count {
    font-weight: 600;
    color: var(--text-primary);
}

/* Browser chips */
.browser-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.browser-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
}

.browser-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 600;
}

/* QR Code on stats panel */
.qr-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.empty-stat {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    padding: 1rem 0;
}

/* Error page styles */
.error-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.error-container {
    max-width: 500px;
    width: 100%;
    padding: 1.5rem;
}

.error-card {
    text-align: center;
    padding: 3rem 2rem;
}

.error-icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.error-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .stats-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .total-clicks-counter {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .result-card-inner {
        grid-template-columns: 1fr;
    }

    .qr-modal-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .input-group-hero {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }

    .input-icon-holder {
        display: none;
    }

    .url-input {
        width: 100%;
        background: var(--bg-input);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 0.85rem 1rem;
    }

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