/* ============================================
   HEYBA INSIDERS - Main Styles (Premium)
   Shared design system for the full product experience
   ============================================ */

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 🎨 Color System */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #60a5fa;
    --color-secondary: #7c3aed;
    --color-gold: #d4af37;
    --color-gold-light: #f5d77a;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* 🌓 Theme Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-quaternary: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-inverse: #ffffff;
    
    /* 🎯 Borders & Shadows */
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.15);
    
    /* 📐 Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* ⏱ Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* 📝 Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Tajawal', 'Noto Naskh Arabic', sans-serif;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(124,58,237,0.06), transparent 24%),
        var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html, body {
    min-width: 320px;
    overflow-x: hidden;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    min-height: 44px;
    touch-action: manipulation;
    font: inherit;
}

.table-container, .table-card, .panel, .card, .card-flat {
    overflow-x: auto;
}

@media (max-width: 900px) {
    .container {
        width: min(100%, calc(100vw - 24px));
        padding: 16px;
    }
}

/* ========== DARK THEME ========== */
[data-theme="dark"] {
    --bg-primary: #020817;
    --bg-secondary: #0f172a;
    --bg-tertiary: #111c31;
    --bg-quaternary: #17253e;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #92a0b7;
    
    --border-color: #22324d;
    --border-color-hover: #2d4267;
    
    --shadow-sm: 0 10px 35px rgba(2,6,23,0.26);
    --shadow-md: 0 20px 50px rgba(2,6,23,0.32);
    --shadow-lg: 0 28px 70px rgba(2,6,23,0.38);
    --shadow-xl: 0 34px 90px rgba(2,6,23,0.44);
}

/* ========== RTL SUPPORT ========== */
[data-lang="ar"] {
    direction: rtl;
    font-family: var(--font-arabic);
}

[data-lang="en"] {
    direction: ltr;
    font-family: var(--font-primary);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    transform: scale(1.1);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    50% { box-shadow: 0 0 0 20px rgba(37,99,235,0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textReveal {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rotate3d {
    0% { transform: perspective(800px) rotateY(0deg); }
    100% { transform: perspective(800px) rotateY(360deg); }
}

/* ========== BUTTONS ========== */
.btn,
button,
input[type="submit"],
input[type="button"] {
    font-family: inherit;
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
}

.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary,
.btn-success,
.btn-danger,
.login-btn,
.copy-btn {
    color: var(--text-inverse);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 16px 36px rgba(37,99,235,0.18);
}

.btn-secondary,
.secondary-btn,
.social-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn:disabled,
button:disabled,
input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========== CARDS ========== */
.card,
.card-flat,
.stat-card,
.admin-panel,
.referral-section,
.activity-box,
.leaderboard-box,
.reward-card,
.quick-action-card,
.panel,
.panel-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.95));
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-flat,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .admin-panel,
[data-theme="dark"] .referral-section,
[data-theme="dark"] .activity-box,
[data-theme="dark"] .leaderboard-box,
[data-theme="dark"] .reward-card,
[data-theme="dark"] .quick-action-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .panel-card {
    background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(30,41,59,0.96));
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 16px 44px rgba(2,6,23,0.28);
}

/* ========== INPUTS ========== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    background: var(--bg-secondary);
}

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

thead th {
    background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

tbody td {
    border-top: 1px solid rgba(226,232,240,0.72);
}

tbody tr:hover {
    background: rgba(37,99,235,0.04);
}

/* ========== UTILITY CLASSES ========== */
.animate-fadeIn { animation: fadeIn 0.6s ease both; }
.animate-slideUp { animation: slideUp 0.6s ease both; }
.animate-slideDown { animation: slideDown 0.5s ease both; }
.animate-slideLeft { animation: slideInLeft 0.5s ease both; }
.animate-slideRight { animation: slideInRight 0.5s ease both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-pulseGlow { animation: pulseGlow 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-heartbeat { animation: heartbeat 1.5s ease-in-out infinite; }
.animate-bounceIn { animation: bounceIn 0.6s ease both; }
.animate-gradient { background-size: 200% 200%; animation: gradientShift 3s ease infinite; }

/* ========== GLASSMORPHISM ========== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

/* ========== BUTTONS ========== */
button, a, label, [role="button"], [role="link"], .btn, input, textarea, select {
    pointer-events: auto !important;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(37,99,235,0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

.btn-success {
    background: linear-gradient(135deg, #059669, var(--color-success));
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, var(--color-error));
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(37,99,235,0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ========== CARDS ========== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none !important;
    z-index: 0;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(37,99,235,0.02));
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none !important;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 1;
}

/* Ensure all buttons, inputs, and links work within cards */
.card button, .card input, .card textarea, .card select, .card a, .card label {
    pointer-events: auto !important;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.card:hover::after {
    opacity: 1;
}


.card-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .card-glass {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

/* ========== INPUTS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-normal);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
    background: var(--bg-secondary);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

.form-input.success {
    border-color: var(--color-success);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: rgba(37,99,235,0.15); color: var(--color-primary); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--color-success); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--color-error); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--color-warning); }
.badge-gold { background: rgba(212,175,55,0.15); color: var(--color-gold); }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }

/* ========== PROGRESS BAR ========== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-bar-fill.gold {
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    min-width: min(320px, calc(100vw - 24px));
    max-width: min(560px, calc(100vw - 24px));
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    z-index: 9999;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .toast {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-error); }
.toast-warning { border-left: 4px solid var(--color-warning); }
.toast-info { border-left: 4px solid var(--color-primary); }

/* ========== TABLE ========== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 16px 18px;
    text-align: left;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody td {
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

tbody tr {
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: var(--bg-tertiary);
}

/* ========== LOADING ========== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.loading-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0; }

/* ========== PREMIUM PAGE SHELL ========== */
.page-shell {
    max-width: 1250px;
    margin: 0 auto;
    padding: 28px 24px 96px;
    display: grid;
    gap: 22px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.86));
    border: 1px solid rgba(226,232,240,0.9);
    box-shadow: 0 24px 60px rgba(15,23,42,0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

[data-theme="dark"] .page-header {
    background: rgba(15,23,42,0.7);
    border-color: rgba(255,255,255,0.06);
}

.page-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.page-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(37,99,235,0.12);
    color: var(--color-primary);
}

.badge-pill.badge-gold {
    background: rgba(212,175,55,0.16);
    color: var(--color-gold);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.card-flat {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(226,232,240,0.9);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    display: grid;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.empty-state {
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed rgba(148,163,184,0.38);
    background: linear-gradient(180deg, rgba(248,250,252,0.8), rgba(241,245,249,0.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

[data-theme="dark"] .empty-state {
    background: rgba(15,23,42,0.55);
}

.form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-row > * {
    min-width: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .page-shell {
        padding: 16px 12px 90px;
    }

    .page-header {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .card {
        padding: 18px;
    }
    
    .table-container {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .page-shell {
        padding: 12px 8px 96px;
    }

    .page-header {
        padding: 16px;
        gap: 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .toast {
        top: 12px;
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .toast {
        top: 12px;
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 14px;
    }

    .page-shell {
        padding: 12px 8px 90px;
    }

    .page-header {
        padding: 16px;
        gap: 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .card-flat {
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}