/* N0W1D Telegram Mini App - Modern Glassmorphism Dashboard */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --secondary-light: #a78bfa;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;
    --danger-light: #f87171;
    --info: #3b82f6;
    --info-light: #60a5fa;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --pink: #ec4899;
    --pink-light: #f472b6;
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --orange: #f97316;
    --orange-light: #fb923c;
    --bg-base: #0f172a;
    --bg-elevated: #1e293b;
    --bg-surface: #334155;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-solid: #1e293b;
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.7);
    --shadow-glow-primary: 0 10px 30px rgba(99, 102, 241, 0.4);
    --shadow-glow-success: 0 10px 30px rgba(16, 185, 129, 0.4);
    --shadow-glow-danger: 0 10px 30px rgba(239, 68, 68, 0.4);
    --shadow-primary: 0 10px 30px rgba(99, 102, 241, 0.4);
    --shadow-primary-lg: 0 15px 40px rgba(99, 102, 241, 0.5);
    --primary-color: #6366f1;
    --error: #ef4444;
    --error-color: #ef4444;
    --error-light: rgba(239, 68, 68, 0.2);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-modal: 200;
    --z-popover: 300;
    --z-tooltip: 400;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-elevated: #ffffff;
    --bg-surface: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-solid: #ffffff;
    --bg-color: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --border-glass: rgba(0, 0, 0, 0.1);
    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-strong: rgba(0, 0, 0, 0.15);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { width: 100%; height: 100%; overscroll-behavior: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
body { width: 100%; min-height: 100vh; min-height: 100dvh; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-primary); background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); background-attachment: fixed; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
[data-theme="light"] body { background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 50%, #e2e8f0 100%); }
body.theme-transition, body.theme-transition * { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important; }

.glass { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); }
[data-theme="light"] .glass { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 0, 0, 0.1); }

.icon-container { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; transition: all var(--transition-normal); }
.icon-primary { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.icon-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.icon-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.icon-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.icon-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.icon-pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.icon-cyan { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.icon-orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
[data-theme="light"] .icon-primary { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
[data-theme="light"] .icon-success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
[data-theme="light"] .icon-warning { background: rgba(245, 158, 11, 0.15); color: #d97706; }
[data-theme="light"] .icon-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
[data-theme="light"] .icon-info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
[data-theme="light"] .icon-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
[data-theme="light"] .icon-pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
[data-theme="light"] .icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); } 50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.4s var(--transition-bounce) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; } .delay-6 { animation-delay: 0.6s; } .delay-7 { animation-delay: 0.7s; } .delay-8 { animation-delay: 0.8s; }

.screen { display: none; width: 100%; min-height: 100vh; opacity: 0; transition: opacity var(--transition-slow); }
.screen.active { display: flex; opacity: 1; }

#loading-screen { flex-direction: column; align-items: center; justify-content: center; padding: var(--spacing-xl); background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); position: relative; overflow: hidden; }
#loading-screen::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%); animation: pulse 4s ease-in-out infinite; }
.logo-container { margin-bottom: var(--spacing-2xl); animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; z-index: 1; }
.logo, .logo-text { max-width: 200px; height: auto; color: white; font-size: 52px; font-weight: 900; text-align: center; letter-spacing: -1px; text-shadow: 0 4px 20px rgba(99, 102, 241, 0.5); }
.welcome-text { font-size: 26px; font-weight: 700; color: white; margin-bottom: var(--spacing-xl); animation: fadeInUp 0.6s ease 0.2s both; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); text-align: center; max-width: 90%; position: relative; z-index: 1; word-wrap: break-word; }
.progress-container { width: 100%; max-width: 400px; animation: fadeInUp 0.6s ease 0.4s both; position: relative; z-index: 1; }
.progress-bar { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); overflow: hidden; margin-bottom: var(--spacing-md); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }
.progress-fill { height: 100%; background: var(--gradient-primary); border-radius: var(--radius-full); transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 0%; box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
.progress-percentage { text-align: center; font-size: 18px; font-weight: 600; color: var(--text-secondary); }

#app-container { position: relative; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#app-container::before { display: none; }

.app-header { position: sticky; top: 0; left: 0; right: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 0 var(--spacing-lg); z-index: var(--z-sticky); animation: fadeInDown 0.5s ease; }
[data-theme="light"] .app-header { background: rgba(255, 255, 255, 0.8); border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.header-left { flex: 1; display: flex; align-items: center; gap: var(--spacing-sm); }
.header-center { flex: 0 0 auto; display: flex; align-items: center; }
.header-right { flex: 1; display: flex; justify-content: flex-end; gap: var(--spacing-sm); }
.back-button { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); color: var(--text-primary); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); transition: all var(--transition-normal); }
.back-button:hover { background: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.3); transform: translateX(-2px); }
.back-button:active { transform: scale(0.95); }
.header-logo, .header-logo-text { height: 48px; transition: transform var(--transition-bounce); filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3)); }
.header-logo-text { font-size: 24px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.5px; }
.home-button { width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-normal); color: var(--text-primary); font-size: 18px; margin-right: 8px; }
.home-button:hover { background: var(--gradient-primary); border-color: transparent; color: white; box-shadow: var(--shadow-glow-primary); }
.home-button:active { transform: scale(0.95); }
.theme-toggle { width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-normal); position: relative; overflow: hidden; }
.theme-toggle:hover { background: var(--gradient-primary); border-color: transparent; box-shadow: var(--shadow-glow-primary); }
.theme-toggle:hover i { color: white; }
.theme-toggle:active { transform: scale(0.95); }
.theme-toggle i { font-size: 18px; color: var(--text-primary); transition: all var(--transition-normal); }
.theme-icon-sun, .theme-icon-moon { position: absolute; transition: all var(--transition-normal); }
.theme-icon-sun { transform: scale(1) rotate(0deg); opacity: 1; }
.theme-icon-moon { transform: scale(0) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-icon-sun { transform: scale(0) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-icon-moon { transform: scale(1) rotate(0deg); opacity: 1; }

.main-content { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: var(--spacing-xl) var(--spacing-lg); padding-bottom: 120px; animation: fadeIn 0.5s ease; }

.welcome-hero { position: relative; padding: var(--spacing-2xl) var(--spacing-xl); margin: calc(var(--spacing-lg) * -1); margin-bottom: var(--spacing-xl); background: var(--gradient-primary); border-radius: 0 0 var(--radius-2xl) var(--radius-2xl); overflow: hidden; }
.welcome-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%); z-index: 0; }
.welcome-hero::after { content: ''; position: absolute; top: -100px; right: -100px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); z-index: 0; }
.welcome-hero > * { position: relative; z-index: 1; }
.welcome-title { font-size: 32px; font-weight: 800; color: white; margin-bottom: var(--spacing-sm); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); animation: fadeInUp 0.6s ease; }
.welcome-subtitle { font-size: 16px; color: rgba(255, 255, 255, 0.9); margin-bottom: var(--spacing-sm); animation: fadeInUp 0.6s ease 0.1s both; }
.welcome-user { font-size: 18px; font-weight: 600; color: white; animation: fadeInUp 0.6s ease 0.2s both; }

.card { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-xl); padding: var(--spacing-xl); position: relative; transition: all var(--transition-normal); animation: fadeInUp 0.5s ease forwards; }
.card:nth-child(1) { animation-delay: 0.1s; } .card:nth-child(2) { animation-delay: 0.2s; } .card:nth-child(3) { animation-delay: 0.3s; }
.card-accent-primary::before { content: ''; position: absolute; top: 0; left: var(--spacing-lg); right: var(--spacing-lg); height: 3px; background: var(--gradient-primary); border-radius: 0 0 3px 3px; }
.card-accent-success::before { content: ''; position: absolute; top: 0; left: var(--spacing-lg); right: var(--spacing-lg); height: 3px; background: var(--gradient-success); border-radius: 0 0 3px 3px; }
.card-accent-warning::before { content: ''; position: absolute; top: 0; left: var(--spacing-lg); right: var(--spacing-lg); height: 3px; background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); border-radius: 0 0 3px 3px; }
.card-accent-danger::before { content: ''; position: absolute; top: 0; left: var(--spacing-lg); right: var(--spacing-lg); height: 3px; background: var(--gradient-danger); border-radius: 0 0 3px 3px; }
[data-theme="light"] .card { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: var(--shadow-md); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-clickable { cursor: pointer; }
.card-clickable:active { transform: translateY(-2px) scale(0.98); }
.card-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--spacing-sm); letter-spacing: -0.3px; }
.card-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--spacing-lg); }

/* ==========================================
   MENU GRID & MENU ITEMS
   ========================================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.menu-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    animation: fadeInUp 0.5s ease-out both;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.menu-item:active {
    transform: translateY(-2px) scale(0.98);
}

.menu-item .icon-container {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.menu-item:hover .icon-container {
    transform: scale(1.1);
}

.menu-item .item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.menu-item .item-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Menu item accent variants */
.menu-item.accent-primary::before { background: var(--gradient-primary); }
.menu-item.accent-success::before { background: var(--gradient-success); }
.menu-item.accent-warning::before { background: var(--gradient-warning); }
.menu-item.accent-danger::before { background: var(--gradient-danger); }
.menu-item.accent-info::before { background: var(--gradient-info); }
.menu-item.accent-purple::before { background: var(--gradient-purple); }
.menu-item.accent-pink::before { background: var(--gradient-pink); }
.menu-item.accent-cyan::before { background: var(--gradient-cyan); }

/* Stagger animation for menu items */
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }
.menu-item:nth-child(7) { animation-delay: 0.4s; }
.menu-item:nth-child(8) { animation-delay: 0.45s; }

/* Menu item label */
.menu-item-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Menu item notification badge - red circle */
.menu-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}


/* ==========================================
   PROFILE PICTURE (PFP) - FAB STYLE
   ========================================== */

.pfp-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--bg-base);
    background: var(--gradient-primary);
    animation: scaleIn 0.4s ease-out 0.5s both;
}

.pfp-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pfp-container:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.pfp-container:hover::before {
    opacity: 0.4;
    animation: pulse 1.5s ease-in-out infinite;
}

.pfp-container:active {
    transform: scale(0.95);
}

.pfp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.pfp-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    overflow: hidden;
    border-radius: 50%;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--gradient-danger);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-base);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.notification-dot {
    position: relative;
    top: auto;
    right: auto;
    width: 10px;
    height: 10px;
    min-width: 10px;
    padding: 0;
    border: none;
    margin-left: auto;
    flex-shrink: 0;
}

#pfp-notification {
    width: 12px;
    height: 12px;
    top: -2px;
    right: -2px;
    border: 2px solid var(--bg-base);
}

/* ==========================================
   CART ICON (FAB STYLE)
   ========================================== */

.cart-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-success);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    animation: scaleIn 0.4s ease-out 0.6s both;
}

.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.cart-btn:active {
    transform: scale(0.95);
}

.cart-btn .icon {
    font-size: 1.25rem;
    color: white;
}

.cart-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--bg-base);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.2; }
}


/* ==========================================
   BUTTONS WITH GLOW EFFECTS
   ========================================== */

/* Base button styles - apply to .btn AND all button variants */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-success,
.btn-warning,
.btn-danger,
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 100px;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-glass:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 14px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================
   SECONDARY BUTTON STYLE
   ========================================== */

.btn-secondary {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-secondary > * {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

[data-theme="light"] .btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 1) 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================
   BUTTON MODIFIERS
   ========================================== */

.btn-full-width {
    width: 100%;
    justify-content: center;
}

/* Tab Buttons */
.btn-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Extra Small Button */
.btn-xs {
    padding: 4px 10px !important;
    font-size: 11px !important;
    min-height: 28px !important;
    border-radius: 12px !important;
}

/* Small Button */
.btn-sm {
    padding: 8px 14px !important;
    font-size: 13px !important;
    min-height: 36px !important;
    border-radius: 14px !important;
}

/* Large Button */
.btn-lg {
    padding: 16px 28px !important;
    font-size: 16px !important;
    min-height: 54px !important;
    border-radius: 16px !important;
}

/* Icon Button (small, transparent) */
.btn-icon {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: auto;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Mobile Touch Targets */
@media (pointer: coarse) {
    .btn, .menu-item, .drawer-item, .quantity-btn, select, .btn-outline {
        min-height: 48px;
    }

    .btn-sm {
        min-height: 40px !important;
    }

    .btn-xs {
        min-height: 32px !important;
    }
}

/* ==========================================
   FLOATING CART ICON
   ========================================== */

.cart-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cart-icon:active {
    transform: scale(0.95);
}

.cart-icon-symbol {
    font-size: 24px;
    color: white;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-color);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

/* ==========================================
   FORM FIELD STYLES (ENHANCED)
   ========================================== */

.input-field,
.textarea-field,
.select-field {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--border-glass);
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-height: 48px;
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
    outline: none;
}

.input-field:focus,
.textarea-field:focus,
.select-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.textarea-field {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.select-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

[data-theme="light"] .input-field,
[data-theme="light"] .textarea-field,
[data-theme="light"] .select-field {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}


/* ==========================================
   BADGES
   ========================================== */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-light);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-light);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-light);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-light);
}

.badge-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

/* ==========================================
   INPUT FIELDS WITH GLASS EFFECT
   ========================================== */

.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon .input,
.input-icon input {
    padding-left: 2.75rem;
}

/* Search input */
.search-input {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.75rem 1.25rem 0.75rem 2.75rem;
}


/* ==========================================
   SERVICES GRID
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.service-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    border: 1px solid var(--glass-border);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease-out both;
}

.service-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-item .icon-container {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.service-item .title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   LIST ITEMS / TRANSACTION LIST
   ========================================== */

.list-group {
    padding: 0 1rem;
}

.list-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out both;
}

.list-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
}

.list-item .icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-item .content {
    flex: 1;
    min-width: 0;
}

.list-item .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.list-item .subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.list-item .amount {
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.list-item .amount.positive {
    color: var(--success-light);
}

.list-item .amount.negative {
    color: var(--danger-light);
}


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

/* Text utilities */
.text-primary { color: var(--primary-light) !important; }
.text-success { color: var(--success-light) !important; }
.text-warning { color: var(--warning-light) !important; }
.text-danger { color: var(--danger-light) !important; }
.text-info { color: var(--info-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* Font weights */
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

/* Spacing utilities */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }
.mt-md { margin-top: var(--spacing-md) !important; }
.mt-lg { margin-top: var(--spacing-lg) !important; }
.mt-xl { margin-top: var(--spacing-xl) !important; }
.my-md { margin-top: var(--spacing-md) !important; margin-bottom: var(--spacing-md) !important; }
.my-lg { margin-top: var(--spacing-lg) !important; margin-bottom: var(--spacing-lg) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox utilities */
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Width utilities */
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Border radius */
.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 12px !important; }
.rounded-xl { border-radius: 16px !important; }
.rounded-full { border-radius: 9999px !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }

/* Z-index */
.z-10 { z-index: 10 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Opacity */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-100 { opacity: 1 !important; }


/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

/* WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary, #6366f1);
    border-radius: 3px;
    min-height: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover, #818cf8);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #6366f1) var(--bg-tertiary, rgba(255, 255, 255, 0.05));
}

/* Ensure scrollable containers have proper styling */
html,
body,
#app-container,
#main-content,
.main-content,
#people-list,
#all-clients-list,
.modal-body,
.drawer-body,
[style*="overflow-y: auto"],
[style*="overflow-y:auto"],
[style*="overflow: auto"],
[style*="overflow:auto"] {
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #6366f1) var(--bg-tertiary, rgba(255, 255, 255, 0.05));
}

/* Apply webkit scrollbar to specific containers */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
#app-container::-webkit-scrollbar,
#main-content::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
#app-container::-webkit-scrollbar-thumb,
#main-content::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: var(--primary, #6366f1);
    border-radius: 3px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
#app-container::-webkit-scrollbar-track,
#main-content::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
}

/* ==========================================
   MODAL / DIALOG
   ========================================== */

/* Modal Container - The root element with flex centering */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

/* Modal Overlay - Background dimmer */
.modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Modal Content - The actual dialog box */
.modal .modal-content {
    position: relative;
    z-index: 1;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-light);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Modal footer buttons - ensure consistent styling */
.modal-footer .btn,
.modal-footer .btn-primary,
.modal-footer .btn-secondary,
.modal-footer button {
    flex: 1;
    min-height: 44px;
    border-radius: 14px;
    font-weight: 600;
    padding: 12px 20px;
}

/* ==========================================
   TOAST / NOTIFICATION
   ========================================== */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    min-width: 280px;
    max-width: 360px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success .toast-icon { color: var(--success-light); }
.toast.warning .toast-icon { color: var(--warning-light); }
.toast.danger .toast-icon { color: var(--danger-light); }
.toast.info .toast-icon { color: var(--info-light); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}


/* ==========================================
   RESPONSIVE - TABLET (768px+)
   ========================================== */

@media (min-width: 768px) {
    .app-container {
        max-width: 720px;
        margin: 0 auto;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        padding: 0 1.5rem;
    }
    
    .menu-item {
        padding: 1.5rem;
    }
    
    .menu-item .icon-container {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .welcome-hero {
        padding: 2rem 1.5rem;
    }
    
    .welcome-hero h1 {
        font-size: 1.75rem;
    }
    
    .profile-btn {
        width: 64px;
        height: 64px;
        right: 32px;
        bottom: 32px;
    }
    
    .cart-btn {
        width: 60px;
        height: 60px;
        left: 32px;
        bottom: 32px;
    }
}

/* ==========================================
   RESPONSIVE - DESKTOP (1024px+)
   ========================================== */

@media (min-width: 1024px) {
    .app-container {
        max-width: 960px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .menu-item {
        padding: 1.75rem;
        border-radius: 20px;
    }
    
    .menu-item .icon-container {
        width: 72px;
        height: 72px;
        font-size: 2rem;
        border-radius: 18px;
    }
    
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .app-header {
        padding: 1.25rem 2rem;
    }
    
    .card {
        border-radius: 20px;
    }
    
    .welcome-hero {
        padding: 2.5rem 2rem;
        border-radius: 24px;
    }
    
    .welcome-hero h1 {
        font-size: 2rem;
    }
}

/* ==========================================
   RESPONSIVE - LARGE DESKTOP (1280px+)
   ========================================== */

@media (min-width: 1280px) {
    .app-container {
        max-width: 1200px;
    }
    
    .menu-grid {
        gap: 1.75rem;
    }
    
    .menu-item {
        padding: 2rem;
    }
    
    .menu-item .icon-container {
        width: 80px;
        height: 80px;
        font-size: 2.25rem;
    }
    
    .menu-item .item-title {
        font-size: 1.05rem;
    }
    
    .welcome-hero h1 {
        font-size: 2.25rem;
    }
}

/* ==========================================
   RESPONSIVE - ULTRA WIDE (1600px+)
   ========================================== */

@media (min-width: 1600px) {
    .app-container {
        max-width: 1400px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}


/* ==========================================
   HOVER STATES (DESKTOP ONLY)
   ========================================== */

@media (hover: hover) and (pointer: fine) {
    .menu-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    }
    
    .menu-item:hover .icon-container {
        transform: scale(1.15) rotate(5deg);
    }
    
    .card:hover {
        border-color: rgba(99, 102, 241, 0.25);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }
    
    .service-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    }
    
    .service-item:hover .icon-container {
        transform: scale(1.1);
    }
    
    .list-item:hover {
        transform: translateX(8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .btn:hover {
        transform: translateY(-3px);
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .menu-item,
    .card,
    .service-item,
    .list-item,
    .btn {
        transform: none !important;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .app-header,
    .profile-btn,
    .cart-btn,
    .loading-screen {
        display: none !important;
    }
    
    .card,
    .menu-item,
    .list-item {
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ==========================================
   SAFE AREA INSETS (iOS)
   ========================================== */

@supports (padding: max(0px)) {
    .app-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .app-header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    
    .profile-btn {
        right: max(24px, calc(env(safe-area-inset-right) + 16px));
        bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    }
    
    .cart-btn {
        left: max(24px, calc(env(safe-area-inset-left) + 16px));
        bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    }
}

/* ==========================================
   END OF MAIN.CSS
   ========================================== */
