/* ============================================
   ZoeNumbers - Mobile-First Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ---- CSS Custom Properties (Light Mode) ---- */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --secondary: #8b5cf6;
    --secondary-light: #a78bfa;
    --secondary-dark: #7c3aed;
    --secondary-rgb: 139, 92, 246;

    --bg-body: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --bg-hover: rgba(99, 102, 241, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.7);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #3b82f6;
    --info-bg: #eff6ff;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.03);
    --shadow-md: 0 6px 16px -4px rgba(0,0,0,0.08), 0 2px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 28px -6px rgba(0,0,0,0.1), 0 4px 8px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12), 0 8px 16px -6px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 24px rgba(var(--primary-rgb), 0.18);
    --shadow-glow-lg: 0 0 40px rgba(var(--primary-rgb), 0.25);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --sidebar-width: 260px;
    --navbar-height: 60px;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --transition-fast: 150ms var(--ease-smooth);
    --transition: 250ms var(--ease-smooth);
    --transition-slow: 400ms var(--ease-smooth);
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
    --bg-body: #0c0e16;
    --bg-sidebar: #12141f;
    --bg-card: #161825;
    --bg-input: #1c1f2e;
    --bg-navbar: rgba(18, 20, 31, 0.92);
    --bg-hover: rgba(99, 102, 241, 0.06);
    --bg-glass: rgba(22, 24, 37, 0.85);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(148, 163, 184, 0.1);
    --border-light: rgba(148, 163, 184, 0.06);

    --success-bg: rgba(16, 185, 129, 0.1);
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info-bg: rgba(59, 130, 246, 0.1);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.5);
}

/* ---- Base Body ---- */
body {
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ============================================
   ANIMATIONS (Global)
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animate elements on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s var(--ease-out) forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 60ms; }
.stagger-children > *:nth-child(3) { animation-delay: 120ms; }
.stagger-children > *:nth-child(4) { animation-delay: 180ms; }
.stagger-children > *:nth-child(5) { animation-delay: 240ms; }
.stagger-children > *:nth-child(6) { animation-delay: 300ms; }
.stagger-children > *:nth-child(7) { animation-delay: 360ms; }
.stagger-children > *:nth-child(8) { animation-delay: 420ms; }

/* ============================================
   LAYOUT — Mobile First
   ============================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---- Sidebar (Hidden on mobile by default) ---- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden !important;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease-smooth);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-brand img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.sidebar-brand-text {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 12px 10px;
    flex: 1;
    overflow-x: hidden !important;
}

.sidebar-section { margin-bottom: 6px; }

.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 10px 12px 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 0 4px 4px 0;
    transition: height 0.25s var(--ease-spring);
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(2px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--secondary-rgb), 0.04));
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link.active::before { height: 60%; }

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity var(--transition-fast), transform 0.25s var(--ease-spring);
}

.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
    opacity: 1;
    transform: scale(1.05);
}
.sidebar-link.active .sidebar-icon { color: var(--primary); }

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* ---- Navbar ---- */
.navbar {
    height: var(--navbar-height);
    background: var(--bg-navbar);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    animation: fadeInDown 0.4s var(--ease-out);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.navbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.navbar-balance {
    display: none;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.03));
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    transition: all var(--transition);
}

.navbar-balance:hover { border-color: rgba(var(--primary-rgb), 0.3); }
.navbar-balance svg { width: 14px; height: 14px; }

.navbar-user {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.navbar-user:hover { background: var(--bg-hover); }

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring);
}

.navbar-avatar:hover { transform: scale(1.08); }

.navbar-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.hamburger:hover { background: var(--bg-hover); }
.hamburger:active { transform: scale(0.92); }
.hamburger svg { width: 22px; height: 22px; }

/* ---- Page Content ---- */
.page-content {
    flex: 1;
    padding: 16px;
    max-width: 1400px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    animation: fadeInUp 0.4s var(--ease-out);
}

.page-header {
    margin-bottom: 20px;
    animation: fadeInUp 0.4s var(--ease-out);
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   COMPONENTS — Mobile First
   ============================================ */

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition-fast);
}

.btn:active::after { background: rgba(255,255,255,0.15); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 2px 10px rgba(var(--secondary-rgb), 0.25);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(var(--primary-rgb), 0.3);
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
}

.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    animation: fadeInUp 0.4s var(--ease-out) both;
}

.card:hover { box-shadow: var(--shadow); }

.card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body { padding: 16px; }
.card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s var(--ease-out) both;
}

.stat-card:nth-child(1) { animation-delay: 0ms; }
.stat-card:nth-child(2) { animation-delay: 60ms; }
.stat-card:nth-child(3) { animation-delay: 120ms; }
.stat-card:nth-child(4) { animation-delay: 180ms; }

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::after { opacity: 1; }

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-spring);
}

.stat-card:hover .stat-card-icon { transform: scale(1.1) rotate(5deg); }
.stat-card-icon svg { width: 18px; height: 18px; }

.stat-card-icon.purple { background: rgba(var(--primary-rgb), 0.08); color: var(--primary); }
.stat-card-icon.green { background: rgba(16, 185, 129, 0.08); color: var(--success); }
.stat-card-icon.blue { background: rgba(59, 130, 246, 0.08); color: var(--info); }
.stat-card-icon.orange { background: rgba(245, 158, 11, 0.08); color: var(--warning); }

.stat-card-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: countUp 0.6s var(--ease-out) both;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary), #6d28d9);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    border: none;
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -25%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.balance-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.balance-label {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
    margin-bottom: 6px;
}

.balance-amount {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    animation: countUp 0.6s var(--ease-out);
}

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px; /* Prevents zoom on iOS */
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
    background: var(--bg-card);
}

.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-input.error { border-color: var(--danger); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-section { margin-bottom: 24px; }

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

input[type="color"] {
    width: 44px;
    height: 36px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
}

/* ---- Tables (scrollable on mobile) ---- */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    animation: fadeInUp 0.4s var(--ease-out);
}

.table { width: 100%; min-width: 540px; border-collapse: collapse; }

.table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.table td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-fast);
}
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:last-child td { border-bottom: none; }

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-primary { background: rgba(var(--primary-rgb), 0.08); color: var(--primary); }

.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

/* ---- Alerts ---- */
.alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInDown 0.35s var(--ease-out);
    position: relative;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.alert-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    font-size: 16px;
    color: inherit;
    padding: 4px;
    line-height: 1;
    transition: opacity var(--transition-fast);
}

.alert-close:hover { opacity: 1; }
.alert-success { background: var(--success-bg); color: #065f46; border-left: 3px solid var(--success); }
.alert-error { background: var(--danger-bg); color: #991b1b; border-left: 3px solid var(--danger); }
.alert-warning { background: var(--warning-bg); color: #92400e; border-left: 3px solid var(--warning); }
.alert-info { background: var(--info-bg); color: #1e40af; border-left: 3px solid var(--info); }

[data-theme="dark"] .alert-success { color: #6ee7b7; }
[data-theme="dark"] .alert-error { color: #fca5a5; }
[data-theme="dark"] .alert-warning { color: #fcd34d; }
[data-theme="dark"] .alert-info { color: #93c5fd; }

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 24px);
    max-width: 380px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.35s var(--ease-out);
    pointer-events: auto;
}

.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error { border-left: 3px solid var(--danger); }
.toast.toast-warning { border-left: 3px solid var(--warning); }
.toast.toast-info { border-left: 3px solid var(--info); }
.toast.toast-out { animation: slideOutRight 0.3s var(--ease-smooth) forwards; }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-smooth);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 17px; font-weight: 700; }

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.modal-close:hover { background: var(--border-color); }
.modal-body { padding: 20px; }
.modal-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.pagination .active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled span { opacity: 0.3; }

/* ---- Countdown Timer ---- */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.03));
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.countdown-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.countdown-time {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.countdown.expired { border-color: rgba(239, 68, 68, 0.2); background: var(--danger-bg); }
.countdown.expired .countdown-time { color: var(--danger); animation: pulse 1.5s ease-in-out infinite; }
.countdown.expired .countdown-label { color: var(--danger); }

/* ---- Loading / Spinner ---- */
.spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm { width: 14px; height: 14px; border-width: 2px; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 5;
    animation: fadeIn 0.2s;
}

[data-theme="dark"] .loading-overlay { background: rgba(12, 14, 22, 0.85); }

.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* ---- Dark Mode Toggle ---- */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(15deg);
}

.theme-toggle:active { transform: rotate(30deg) scale(0.9); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    animation: fadeInUp 0.5s var(--ease-out);
}

.empty-state svg {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

.empty-state-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state-text {
    font-size: 13px;
    margin-bottom: 16px;
}

/* ---- Service Cards ---- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s var(--ease-out) both;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.service-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.service-card-price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.service-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---- SMS Messages ---- */
.sms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sms-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px;
    animation: fadeInUp 0.35s var(--ease-out);
    transition: all var(--transition);
}

.sms-item:hover { border-color: rgba(var(--primary-rgb), 0.2); }

.sms-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sms-sender {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sms-time {
    font-size: 11px;
    color: var(--text-muted);
}

.sms-message {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.copy-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.copy-btn.copied { background: var(--success); color: white; border-color: var(--success); }
.copy-btn svg { width: 13px; height: 13px; }

/* ---- Search/Filter ---- */
.search-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-input-wrapper .form-input {
    padding-left: 40px;
}

/* ---- Dropdown ---- */
.dropdown { position: relative; display: inline-block; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transition: all 0.2s var(--ease-smooth);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
}

.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }

/* ============================================
   GUEST / AUTH LAYOUT — Mobile First
   ============================================ */

.guest-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), #6d28d9);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.guest-layout::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -150px;
    right: -80px;
    animation: float 12s ease-in-out infinite;
}

.guest-layout::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -100px;
    left: -60px;
    animation: float 10s ease-in-out infinite reverse;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 28px 20px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s var(--ease-out);
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand img {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: var(--radius);
    animation: float 4s ease-in-out infinite;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.auth-title {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.auth-footer a:hover { color: var(--primary-dark); }

/* ============================================
   LANDING PAGE — Mobile First
   ============================================ */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    animation: fadeInDown 0.5s var(--ease-out);
}

.landing-nav-brand {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav-link {
    padding: 7px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.landing-nav-link:hover { color: white; background: rgba(255,255,255,0.1); }

.landing-nav-link.filled {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.landing-nav-link.filled:hover { opacity: 0.9; transform: translateY(-1px); }

/* Hide non-filled links on small mobile */
.landing-nav-link:not(.filled) { display: none; }

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 20px 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), #6d28d9);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -200px;
    right: -100px;
    animation: float 16s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    bottom: -100px;
    left: -50px;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    animation: fadeInUp 0.7s var(--ease-out);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    animation: fadeInDown 0.6s var(--ease-out) 0.2s both;
}

.hero h1 {
    font-size: clamp(28px, 7vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.6;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s var(--ease-out) 0.5s both;
}

.hero-btn-primary {
    padding: 13px 28px;
    background: white;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.hero-btn-primary:active { transform: scale(0.97); }

.hero-btn-secondary {
    padding: 13px 28px;
    background: transparent;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.hero-btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.08); }

.features-section {
    padding: 60px 16px;
    background: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    transition: all 0.35s var(--ease-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }
.feature-icon svg { width: 24px; height: 24px; }

.feature-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.steps-section {
    padding: 60px 16px;
    background: var(--bg-card);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card { text-align: center; }

.step-number {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin: 0 auto 14px;
    transition: transform 0.4s var(--ease-spring);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25);
}

.step-card:hover .step-number { transform: scale(1.12); }

.step-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-footer {
    padding: 32px 16px;
    text-align: center;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mr-2 { margin-right: 8px; }
.ml-auto { margin-left: auto; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================
   RESPONSIVE — Tablet (>= 640px)
   ============================================ */

@media (min-width: 640px) {
    .page-content { padding: 20px; }
    .page-title { font-size: 22px; }
    .card-header { padding: 18px 20px; }
    .card-body { padding: 20px; }
    .auth-card { padding: 36px 32px; }
    .form-row { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .search-bar { flex-direction: row; }
    .balance-amount { font-size: 34px; }
    .balance-card { padding: 28px; }
    .stat-card-value { font-size: 26px; }
    .stat-card { padding: 20px; }
    .navbar-balance { display: flex; }
    .landing-nav-link:not(.filled) { display: inline-flex; }
    .hero { padding: 100px 24px 70px; }
    .features-section, .steps-section { padding: 80px 24px; }
    .landing-nav { padding: 14px 24px; }

    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
    .modal {
        border-radius: var(--radius-xl);
        max-width: 480px;
    }
}

/* ============================================
   RESPONSIVE — Desktop (>= 1024px)
   ============================================ */

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay { display: none !important; }

    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }

    .hamburger { display: none; }

    .page-content { padding: 28px; }
    .page-title { font-size: 24px; }
    .card-header { padding: 20px 24px; }
    .card-body { padding: 24px; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .features-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

    .navbar { padding: 0 28px; }
    .navbar-title { font-size: 18px; }
    .navbar-user { display: flex; }

    .stat-card-value { font-size: 28px; }
    .balance-amount { font-size: 38px; }
    .balance-card { padding: 32px; }

    .hero { padding: 120px 32px 80px; }
    .features-section, .steps-section { padding: 100px 32px; }
    .landing-nav { padding: 16px 32px; }
}

/* ============================================
   RESPONSIVE — Large Desktop (>= 1280px)
   ============================================ */

@media (min-width: 1280px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Touch Device Optimizations ---- */
@media (hover: none) and (pointer: coarse) {
    .btn:hover { transform: none; box-shadow: inherit; }
    .stat-card:hover { transform: none; }
    .service-card:hover { transform: none; }
    .feature-card:hover { transform: none; }
}

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