/* Import Local Cairo Fonts */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-VariableFont_slnt,wght.ttf') format('truetype-variations');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/static/Cairo-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Ensure Font Awesome icons use their proper font family */
.fa, .fas, .far, .fab, .fal, .fad, .fat, [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1 !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Specific Font Awesome icon classes */
.fa-envelope, .fa-lock, .fa-user, .fa-eye, .fa-eye-slash {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Universal font family override - excluding Font Awesome icons */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Better text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
}

*, html, body, html *, body * {
    font-family: 'Cairo', sans-serif !important;
}

/* Additional specificity for text elements */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, label, li, td, th {
    font-family: 'Cairo', sans-serif !important;
}

/* Preserve Font Awesome fonts for icons */
.fa, .fas, .far, .fab, .fal, .fad, .fat, [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Modern Purple/Blue Theme - mmiz.cc Style */
:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #141428;
    --bg-tertiary: #1c1c35;
    --bg-card: rgba(25, 25, 45, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #b8b9d4;
    --text-muted: #7a7b9d;
    --accent-primary: #8b5cf6;
    --accent-secondary: #6366f1;
    --accent-tertiary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #ec4899 100%);
    --accent-gradient-hover: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #f472b6 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border: rgba(139, 92, 246, 0.15);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 12px 40px rgba(139, 92, 246, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.4);
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.2s ease;
    --font-family: 'Cairo', sans-serif;
    
    /* Responsive spacing variables */
    --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 1vw, 1rem);
    --spacing-md: clamp(1rem, 2vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 3vw, 2.5rem);
    --spacing-xl: clamp(2rem, 4vw, 4rem);
    
    /* Fluid typography */
    --font-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --font-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-lg: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    --font-xl: clamp(1.5rem, 1.25rem + 1vw, 2.5rem);
    --font-2xl: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    --font-3xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
    
    /* Container widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* Gradient Premium Theme (Alternative) */
[data-theme="premium"] {
    --bg-primary: #141B2D;
    --bg-secondary: #1F2A40;
    --bg-tertiary: #2A3A52;
    --text-primary: #e0e0e0;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent-primary: #00D9FF;
    --accent-secondary: #00B8D4;
    --accent-tertiary: #0891B2;
    --success: #00ff88;
    --warning: #fbbf24;
    --error: #ef4444;
    --border: rgba(0, 217, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 8px 32px rgba(0, 217, 255, 0.25);
    --radius: 12px;
    --transition: all 0.2s ease;
    --font-family: 'Cairo', sans-serif;
}

/* Premium Theme Background Gradient */
[data-theme="premium"] body {
    background: linear-gradient(135deg, #141B2D 0%, #1a2332 50%, #1F2A40 100%);
    background-attachment: fixed;
}

/* Premium Theme Accent Glow Effects */
[data-theme="premium"] .btn-primary,
[data-theme="premium"] .dash-btn.primary,
[data-theme="premium"] .stat-box:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

[data-theme="premium"] .service-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 40px rgba(0, 217, 255, 0.2);
}


body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    transition: background-color 0.05s ease, color 0.05s ease;
    font-size: var(--font-base);
    min-height: 100vh;
    /* Enable momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

/* Smooth transition for themed elements - but not for layout */
body, .stat-box, .service-card, .menu-item, .btn, button, a {
    transition: background-color 0.05s ease, border-color 0.05s ease, color 0.05s ease, box-shadow 0.05s ease;
}

/* Improve touch interactions */
@media (hover: none) and (pointer: coarse) {
    button, a, .clickable {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Better container responsiveness */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Global Select Styling */
select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: #ffffff;
    padding: 12px 36px 12px 16px;
    font-size: 14px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='%23ffd700' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

select:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px;
}

/* RTL Support for Select Dropdown Icon */
[dir="rtl"] select {
    background-position: left 12px center;
    padding-left: 36px;
    padding-right: 16px;
}

/* Admin Select Specific Styling */
.admin-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.admin-select:hover {
    border-color: rgba(255, 215, 0, 0.4);
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.15) 0%,
        var(--bg-primary) 70%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
    overflow: hidden;
}

/* Loading animated background particles */
.loading-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: particleFloat 8s ease-in-out infinite;
}

/* Animated gradient overlay */
.loading-screen::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(139, 92, 246, 0.05) 25%,
        transparent 50%,
        rgba(99, 102, 241, 0.05) 75%,
        transparent 100%
    );
    animation: rotateGlow 10s linear infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.8; }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: contentFadeIn 0.2s ease-out;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-logo .logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #ec4899);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    animation: logoFloat 3s ease-in-out infinite, gradientShift 4s ease infinite;
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(99, 102, 241, 0.3),
        inset 0 -10px 30px rgba(0, 0, 0, 0.3),
        inset 0 5px 20px rgba(255, 255, 255, 0.2);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Glowing ring effect */
.loading-logo .logo-circle::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(139, 92, 246, 0.6);
    border-right-color: rgba(99, 102, 241, 0.4);
    animation: ringRotate 2s linear infinite;
}

/* Outer glow ring */
.loading-logo .logo-circle::after {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: rgba(236, 72, 153, 0.4);
    border-left-color: rgba(139, 92, 246, 0.3);
    animation: ringRotate 3s linear infinite reverse;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, textPulse 2s ease-in-out infinite;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.loading-bar {
    width: 280px;
    height: 6px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2);
}

/* Animated shimmer effect on bar */
.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #ec4899, #8b5cf6);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressMove 2.5s ease-in-out infinite, gradientFlow 3s linear infinite;
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.8),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
    position: relative;
}

/* Glowing dots on progress bar */
.loading-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: dotPulse 0.2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateY(-50%) scale(1.3); }
}

@keyframes progressMove {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 100%; }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.loading-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    animation: subtitleFade 2s ease-in-out infinite;
    text-transform: none;
    letter-spacing: 1px;
}

@keyframes subtitleFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* SPA Page Transition Styles */
.app-container {
    min-height: 100vh;
    will-change: opacity, transform;
    position: relative;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Page Transition Loader (Content Only) */
.page-transition {
    position: fixed;
    top: var(--safe-top, 60px);
    left: 0;
    right: 0;
    bottom: var(--safe-bottom, 70px);
    background: rgba(10, 10, 20, 0.92);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: all;
}

.page-transition.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Animated Spinner */
.transition-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spinRing 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #8b5cf6;
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    border-top-color: #6366f1;
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    border-top-color: #ec4899;
    animation-delay: -0.15s;
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.page-transitioning {
    pointer-events: none;
}

/* Smooth content transitions */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-primary);
    font-size: 18px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100vw, 350px);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-overlay.show .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
}

.mobile-nav-links {
    flex: 1;
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--text-primary);
    border-left-color: var(--accent-primary);
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.mobile-user-coins {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 14px;
}

.mobile-guest-info {
    text-align: center;
    margin-bottom: 16px;
}

.mobile-guest-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.coin-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--accent-primary);
    transition: var(--transition);
}

.coin-display:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}

.guest-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-login {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-login:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.btn-register {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

.btn-register:hover {
    transform: translateY(-2px);
}

/* User Menu & Enhanced Dropdown */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffb000);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    color: #0a0a0a;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10000;
    overflow: hidden;
    display: none;
    pointer-events: none;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    pointer-events: auto;
}

.dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 176, 0, 0.05));
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffb000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0a;
    font-size: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.dropdown-user-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dropdown-user-name {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffd700, #ffb000);
    color: #0a0a0a;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

.dropdown-user-role i {
    font-size: 9px;
}

.dropdown-user-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.balance-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    color: #ffd700;
}

.balance-value i {
    font-size: 16px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 215, 0, 0.1);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffffff;
    padding-left: 24px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #ffd700;
    font-size: 16px;
}

.dropdown-item.logout-item {
    color: #ff4444;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.dropdown-item.logout-item:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff6666;
}

.dropdown-item.logout-item i {
    color: #ff4444;
}

.dropdown-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 13px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 215, 0, 0.05);
    margin: 8px 0;
}

.dropdown-section-title i {
    font-size: 14px;
}

.dropdown-admin-section {
    border-left: 3px solid #ffd700;
    background: rgba(255, 215, 0, 0.02);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-container {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

.page {
    display: none;
    min-height: calc(100vh - 70px);
}

.page.active {
    display: block;
}

.hidden {
    display: none !important;
}

.guest-only {
    display: flex;
}

.user-only {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(40px, 8vh, 80px) 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: center;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

.typing-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.hero-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary);
    margin-bottom: clamp(24px, 3vw, 32px);
    line-height: 1.6;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    margin-bottom: clamp(32px, 4vw, 48px);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(14px, 2vw, 16px) clamp(24px, 4vw, 32px);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: clamp(15px, 2vw, 16px);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.08s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    margin-top: clamp(24px, 4vw, 40px);
    padding-top: clamp(24px, 4vw, 40px);
    border-top: 1px solid var(--border);
    align-items: stretch;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-item:nth-child(1) { animation-delay: 0s; }
.stat-item:nth-child(2) { animation-delay: 0s; }
.stat-item:nth-child(3) { animation-delay: 0s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: block;
    animation: countUp 2s ease-out;
    background-size: 200% 200%;
}

.hero-stats .stat-number {
    background: none;
    color: rgba(255, 255, 255, 0.82);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.82);
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-label {
    color: var(--text-secondary);
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.35;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-left: clamp(0px, 4vw, 40px);
}

.phone-mockup {
    width: clamp(260px, 30vw, 320px);
    height: clamp(520px, 60vw, 640px);
    position: relative;
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: phoneFloat 8s ease-in-out infinite;
    overflow: visible;
    filter: drop-shadow(0 30px 62px rgba(0, 0, 0, 0.42)) drop-shadow(0 8px 22px rgba(139, 92, 246, 0.12));
}

/* Ambient glow effect around phone */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    right: -30%;
    bottom: -30%;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.4) 0%,
        rgba(99, 102, 241, 0.3) 25%,
        rgba(236, 72, 153, 0.2) 50%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -1;
    animation: ambientPulse 4s ease-in-out infinite;
    filter: blur(40px);
}

/* Screen glow effect */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    right: 5%;
    bottom: 15%;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.3),
        rgba(99, 102, 241, 0.2),
        rgba(236, 72, 153, 0.2)
    );
    border-radius: 40px;
    z-index: -1;
    filter: blur(30px);
    opacity: 0.6;
    animation: screenGlow 3s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes screenGlow {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.phone-mockup:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.05);
    filter: drop-shadow(0 50px 100px rgba(139, 92, 246, 0.4));
}

/* iPhone Frame */
.iphone-frame {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(160deg, #3a3a4e 0%, #24243a 26%, #19192c 58%, #141424 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 40px 85px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(139, 92, 246, 0.16),
        0 0 0 3px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -2px 6px rgba(0, 0, 0, 0.65),
        inset 2px 0 5px rgba(255, 255, 255, 0.06),
        inset -2px 0 5px rgba(0, 0, 0, 0.45),
        inset 0 0 24px rgba(139, 92, 246, 0.12);
    position: relative;
    overflow: visible;
}

/* Metallic shine effect on frame */
.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 45%,
        transparent 100%
    );
    border-radius: 50px 50px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Animated reflection on frame */
.iphone-frame::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(42deg, transparent 34%, rgba(255, 255, 255, 0.12) 50%, transparent 66%);
    animation: frameReflection 8s linear infinite;
    pointer-events: none;
    border-radius: 50px;
    z-index: 2;
    opacity: 0.75;
}

@keyframes frameReflection {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* iPhone Side Buttons */
.phone-button {
    position: absolute;
    background: linear-gradient(90deg, #3e3e50 0%, #252538 45%, #1d1d2f 55%, #3a3a4b 100%);
    box-shadow: 
        inset 1px 0 2px rgba(0, 0, 0, 0.6),
        inset -1px 0 2px rgba(255, 255, 255, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

/* Mute Switch (left side, top) */
.phone-button-mute {
    left: -4px;
    top: 110px;
    width: 8px;
    height: 35px;
    border-radius: 4px 0 0 4px;
}

/* Volume Up (left side, middle) */
.phone-button-volume-up {
    left: -4px;
    top: 180px;
    width: 8px;
    height: 55px;
    border-radius: 4px 0 0 4px;
}

/* Volume Down (left side, below volume up) */
.phone-button-volume-down {
    left: -4px;
    top: 245px;
    width: 8px;
    height: 55px;
    border-radius: 4px 0 0 4px;
}

/* Power Button (right side) */
.phone-button-power {
    right: -4px;
    top: 180px;
    width: 8px;
    height: 90px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(-90deg, #2a2a3a, #1e1e2e, #2a2a3a);
    box-shadow: 
        inset -1px 0 2px rgba(0, 0, 0, 0.5),
        inset 1px 0 2px rgba(255, 255, 255, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.3);
}



/* iPhone Notch */
.iphone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 32px;
    background: linear-gradient(180deg, #101014 0%, #050507 100%);
    border-radius: 0 0 18px 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid rgba(139, 92, 246, 0.18);
    box-shadow: 
        inset 0 -2px 6px rgba(0, 0, 0, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.45);
}

.notch-speaker {
    width: 48px;
    height: 6px;
    background: linear-gradient(90deg, rgba(92, 92, 112, 0.35), rgba(55, 55, 72, 0.7), rgba(92, 92, 112, 0.35));
    border-radius: 3px;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.65),
        0 0 4px rgba(139, 92, 246, 0.14);
}

.notch-camera {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #6b6b84 0%, #2a2a3d 35%, #111118 65%, #000 100%);
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 
        inset 0 1px 2px rgba(139, 92, 246, 0.24),
        inset 0 -1px 2px rgba(0, 0, 0, 0.65),
        0 0 8px rgba(99, 102, 241, 0.26),
        0 2px 5px rgba(0, 0, 0, 0.58);
    position: relative;
}

/* Camera lens reflection effect */
.notch-camera::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    animation: cameraGlow 2s ease-in-out infinite;
}

@keyframes cameraGlow {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 2px rgba(139, 92, 246, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 6px rgba(139, 92, 246, 0.8); }
}

@keyframes phoneFloat {
    0%, 100% { 
        transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(-15px) rotateZ(1deg);
    }
    50% { 
        transform: perspective(1200px) rotateY(-5deg) rotateX(1deg) translateY(-20px) rotateZ(0deg);
    }
    75% {
        transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(-15px) rotateZ(-1deg);
    }
}

.phone-screen {
    width: 100%;
    height: calc(100% - 40px);
    background:
        radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, #19192b 0%, #0d0d1a 100%);
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    margin-top: 25px;
    border: 1px solid rgba(139, 92, 246, 0.18);
    box-shadow: 
        inset 0 0 50px rgba(139, 92, 246, 0.1),
        inset 0 2px 10px rgba(0, 0, 0, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* Screen reflection overlay */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 58%;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.05) 34%,
        rgba(255, 255, 255, 0.02) 58%,
        transparent 100%
    );
    border-radius: 42px 42px 0 0;
    pointer-events: none;
    z-index: 100;
}

/* Animated screen shimmer */
.phone-screen::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent 32%, rgba(255, 255, 255, 0.06) 50%, transparent 68%);
    animation: screenShimmer 10s linear infinite;
    pointer-events: none;
    z-index: 99;
}

@keyframes screenShimmer {
    0% { transform: translateX(-50%) translateY(-50%); }
    100% { transform: translateX(50%) translateY(50%); }
}

/* Status Bar */
.status-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 40, 0.95) 0%,
        rgba(10, 10, 30, 0.9) 100%
    );
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.status-left .time {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Cairo', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
}

.status-right i {
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.battery {
    width: 24px;
    height: 12px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 3px;
    position: relative;
    margin-left: 4px;
    background: rgba(20, 20, 40, 0.6);
}

.battery::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 3px;
    width: 3px;
    height: 6px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.8));
    border-radius: 0 2px 2px 0;
}

.battery-level {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #ec4899);
    background-size: 200% 100%;
    border-radius: 1px;
    animation: batteryCharge 3s linear infinite;
    box-shadow: 
        0 0 8px rgba(139, 92, 246, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes batteryCharge {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: linear-gradient(
        90deg,
        rgba(139, 92, 246, 0.4),
        rgba(255, 255, 255, 0.5),
        rgba(139, 92, 246, 0.4)
    );
    border-radius: 3px;
    box-shadow: 
        0 2px 8px rgba(139, 92, 246, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: indicatorPulse 3s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.screen-content {
    padding: 15px 20px 20px 20px;
    height: calc(100% - 44px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow-y: auto;
    background: transparent;
}

/* Custom scrollbar for screen content */
.screen-content::-webkit-scrollbar {
    width: 4px;
}

.screen-content::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.screen-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 10px;
}

.screen-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #4f46e5);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.4) 50%,
        transparent 100%
    ) 1;
    margin-top: 10px;
    position: relative;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.6) 50%,
        transparent 100%
    );
    animation: headerGlow 2s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.app-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.notification-badge {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #ec4899);
    background-size: 200% 200%;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.5),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: badgePulse 2s ease-in-out infinite, gradientShift 4s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tell-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tell-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(
        135deg,
        rgba(42, 42, 60, 0.7),
        rgba(32, 32, 50, 0.6)
    );
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tellItemSlideIn 0.25s ease-out;
    animation-delay: 0s;
}

.tell-item:nth-child(1) { --item-index: 1; }
.tell-item:nth-child(2) { --item-index: 2; }
.tell-item:nth-child(3) { --item-index: 3; }

@keyframes tellItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tell-item:hover {
    transform: translateX(5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.tell-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #ec4899);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: gradientShift 4s ease infinite;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.tell-avatar::before {
    content: '👤';
    font-size: 20px;
    color: #000;
}

.tell-content {
    flex: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.notification-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tell-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.tell-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--transition);
    animation: slideInUp 0.3s ease-out;
}

.tell-item:nth-child(1) { animation-delay: 0s; }
.tell-item:nth-child(2) { animation-delay: 0s; }
.tell-item:nth-child(3) { animation-delay: 0s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

@keyframes sparkle {
    0% { transform: translateY(0px); opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.auth-visual {
    position: relative;
    padding: 60px 40px;
    text-align: center;
}

.auth-background {
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 45, 0.4);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.auth-background::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg at 50% 50%, 
        rgba(139, 92, 246, 0.3) 0deg,
        transparent 90deg,
        transparent 180deg,
        rgba(236, 72, 153, 0.3) 270deg,
        rgba(139, 92, 246, 0.3) 360deg);
    animation: rotate360 15s linear infinite;
    opacity: 0.4;
}

.floating-icons {
    display: none !important;
}

.floating-icons .icon {
    display: none !important;
}

.floating-icons .icon:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-icons .icon:nth-child(2) {
    top: 15%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-icons .icon:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 3s;
}

.floating-icons .icon:nth-child(4) {
    bottom: 20%;
    right: 15%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.auth-visual h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.auth-visual p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

.auth-form {
    background: rgba(25, 25, 45, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: clamp(30px, 5vw, 50px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    animation: slideRight 3s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    51% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

.auth-form::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 180deg at 50% 50%, 
        rgba(139, 92, 246, 0.1) 0deg,
        transparent 60deg,
        transparent 180deg,
        rgba(236, 72, 153, 0.1) 240deg,
        transparent 300deg);
    animation: rotate360 10s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-form:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.6); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.9), 0 0 40px rgba(236, 72, 153, 0.6); }
}

.form-header h1 {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-rendering: optimizeLegibility;
    animation: gradientShift 5s ease infinite;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    animation: slideInUp 0.3s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0s; }
.form-group:nth-child(2) { animation-delay: 0s; }
.form-group:nth-child(3) { animation-delay: 0s; }
.form-group:nth-child(4) { animation-delay: 0s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-rendering: optimizeLegibility;
}

.form-group input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(20, 20, 35, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Add extra padding for password inputs to accommodate toggle button */
.form-group input[type="password"] {
    padding-right: 60px;
}

/* Also add padding when password is revealed (type changes to text) */
.password-field input[type="text"] {
    padding-right: 60px !important;
}

/* Hide default browser password reveal button */
.form-group input[type="password"]::-ms-reveal {
    display: none;
}

.form-group input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.form-group input[type="password"]::-webkit-strong-password-auto-fill-button {
    display: none !important;
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.15),
        0 8px 32px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2);
    background: rgba(20, 20, 35, 0.8);
    transform: translateY(-3px) scale(1.01);
}

/* Form Row for Side-by-Side Inputs */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--strength, 0%);
    background: var(--strength-color, linear-gradient(90deg, #ef4444, #f59e0b));
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px var(--strength-glow, rgba(239, 68, 68, 0.5));
}

.password-strength.weak {
    --strength: 33%;
    --strength-color: linear-gradient(90deg, #ef4444, #f97316);
    --strength-glow: rgba(239, 68, 68, 0.6);
}

.password-strength.medium {
    --strength: 66%;
    --strength-color: linear-gradient(90deg, #f59e0b, #eab308);
    --strength-glow: rgba(245, 158, 11, 0.6);
}

.password-strength.strong {
    --strength: 100%;
    --strength-color: linear-gradient(90deg, #10b981, #059669);
    --strength-glow: rgba(16, 185, 129, 0.6);
}

.password-strength::after {
    content: attr(data-label);
    position: absolute;
    top: -26px;
    right: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--strength-text, var(--text-muted));
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-strength.weak::after {
    --strength-text: #ef4444;
}

.password-strength.medium::after {
    --strength-text: #f59e0b;
}

.password-strength.strong::after {
    --strength-text: #10b981;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 92, 246, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-top: 14px;
}

.password-toggle:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
    border-color: #8b5cf6;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.toggle-icon {
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    background: rgba(20, 20, 35, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 700;
}

.checkbox-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.forgot-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.forgot-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.05s ease;
}

.forgot-link:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.forgot-link:hover::before {
    width: 100%;
}

.btn-submit {
    position: relative;
    width: 100%;
    padding: 22px 40px;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 12px 35px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: gradientShift 5s ease infinite;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.08s ease, height 0.08s ease;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.btn-submit:hover::after {
    transform: translateX(100%);
}

.btn-submit:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.2) 20%, 
        rgba(139, 92, 246, 0.5) 50%, 
        rgba(139, 92, 246, 0.2) 80%, 
        transparent);
}

.form-divider span {
    background: rgba(25, 25, 45, 0.95);
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.btn-social {
    width: 100%;
    padding: 18px 24px;
    background: rgba(20, 20, 35, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-social::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.06s ease;
}

.btn-social:hover {
    border-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3), 0 0 30px rgba(139, 92, 246, 0.2);
}

.btn-social:hover::before {
    opacity: 0.1;
}

.social-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.btn-social:hover .social-icon {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    transform: scale(1.1) rotate(5deg);
}

.form-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px solid rgba(139, 92, 246, 0.1);
    position: relative;
}

.form-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
    filter: blur(2px);
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.form-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.05s ease;
}

.form-footer a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.form-footer a:hover::after {
    width: 100%;
}

/* Dashboard Section */
.dashboard-section {
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="%23ffd700" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23ffb000" opacity="0.12"/><circle cx="60" cy="30" r="1.2" fill="%23ff8c00" opacity="0.08"/><circle cx="30" cy="70" r="1" fill="%23ffd700" opacity="0.15"/><circle cx="90" cy="20" r="0.8" fill="%23ffb000" opacity="0.1"/></svg>') repeat;
    animation: sparkleServices 25s linear infinite;
    pointer-events: none;
}

@keyframes sparkleServices {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    padding: 8px 24px;
    margin-bottom: 24px;
    animation: fadeInUp 0.3s ease-out;
}

.badge-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-badge span:last-child {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.3s ease-out;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.section-description {
    color: var(--text-secondary);
    font-size: 20px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.3s ease-out;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(25, 25, 45, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: cardSlideIn 0.35s ease-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0s; }
.service-card:nth-child(3) { animation-delay: 0s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: shimmerCard 4s infinite;
}

@keyframes shimmerCard {
    0% { left: -100%; }
    100% { left: 100%; }
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 50px rgba(255, 215, 0, 0.2);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 320px;
    padding: 16px 20px;
    background: rgba(25, 25, 45, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-primary);
}

.toast.success::before {
    background: var(--success);
}

.toast.warning::before {
    background: var(--warning);
}

.toast.error::before {
    background: var(--error);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Better dashboard layout */
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Improve table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better modal positioning */
    .modal {
        max-width: 90%;
    }
    
    /* Phone mockup adjustments */
    .phone-mockup {
        transform: scale(0.8);
    }
}

/* Profile Page Styles */
.profile-section {
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.profile-avatar {
    position: relative;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--bg-primary);
    margin-bottom: 10px;
}

.avatar-edit {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-edit:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.profile-info h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 4px;
}

.profile-stat .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: calc(var(--radius) - 4px);
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.tab-panel {
    display: none;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
}

.tab-panel.active {
    display: block;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-form input,
.profile-form select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.profile-form input:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Orders Page Styles */
.orders-section {
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.orders-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.orders-grid {
    display: grid;
    gap: 20px;
}

.order-card {
    background: rgba(25, 25, 45, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-id {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.order-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.completed {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.order-status.processing {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning);
}

.order-status.pending {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.order-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.service-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Removed old small service icon style - replaced with larger version below */

.service-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-quantity {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-coins {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 16px;
}

.order-progress {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-actions {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-sm:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Admin Page Styles */
.admin-section {
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.admin-header {
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.admin-header p {
    color: var(--text-secondary);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: rgba(25, 25, 45, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.admin-stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.admin-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-primary);
}

.admin-stat-card .stat-content .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.admin-stat-card .stat-content .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.neutral {
    color: var(--text-secondary);
}

.admin-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--text-secondary);
    font-size: 14px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.status-badge.processing {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning);
}

.status-badge.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }
    
    .nav-container {
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .hero-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-stats .stat-item {
        padding: 12px 8px;
    }

    .hero-stats .stat-number {
        font-size: clamp(18px, 5.4vw, 24px);
        line-height: 1.1;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    
    .auth-form {
        padding: clamp(1rem, 5vw, 1.5rem);
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
    }
    
    .toast {
        min-width: auto;
width: 100%;
    }
    
    /* Make tables scrollable on mobile */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    /* Better card layouts */
    .services-grid,
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Profile header mobile */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* Modal improvements */
    .modal {
        width: 95%;
        padding: 20px;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    /* Better button sizing for touch */
    .btn-primary,
    .btn-secondary,
    .dash-btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    /* Form inputs for better touch interaction */
    input, select, textarea, button {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px;
    }
}

/* Extra small devices (phones, less than 640px) */
@media (max-width: 640px) {
    :root {
        --radius: 10px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .order-card {
        padding: 16px;
    }
    
    /* Stack order content vertically */
    .order-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .order-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .order-actions .btn-sm {
        flex: 1;
    }
}

/* Small tablets and large phones (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .services-grid,
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Large tablets and small desktops (1025px to 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: var(--container-lg);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large screens (1281px and up) */
@media (min-width: 1281px) {
    .container {
        max-width: var(--container-xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 16px;
    }
    
    .hero-description {
        margin-bottom: 20px;
    }
    
    .hero-actions {
        margin-bottom: 24px;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(25, 25, 45, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.08s ease;
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Refill Code Modal */
.refill-code-modal {
    max-width: 550px;
}

.refill-code-modal h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffd700;
}

.refill-code-info {
    margin-bottom: 24px;
}

.info-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.info-card i {
    color: #ffd700;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.refill-form .form-group {
    margin-bottom: 20px;
}

.refill-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 15px;
}

.refill-form label i {
    color: #ffd700;
}

.refill-form input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.2s ease;
}

.refill-form input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.input-help {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.refill-example {
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.example-codes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-codes code {
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #ffd700;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn-refill-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffd700, #ffb000);
    border: none;
    border-radius: 12px;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    margin-top: 24px;
}

.btn-refill-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-refill-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.refill-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
}

.refill-footer p {
    margin: 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.refill-footer i {
    color: #ffd700;
}

.refill-footer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.refill-footer a:hover {
    text-decoration: underline;
}

/* Order Modal */
.order-modal {
    /* Removed max-width to allow custom modal styles in dashboard-enhanced.css */
}

.order-modal h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffd700;
}

.order-form .form-group {
    margin-bottom: 20px;
}

.order-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 15px;
}

.order-form label i {
    color: #ffd700;
}

.order-form input,
.order-form select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.2s ease;
}

.order-form select {
    cursor: pointer;
}

.order-form input:focus,
.order-form select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.quantity-presets {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.qty-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-1px);
}

.order-summary {
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #ffffff;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 215, 0, 0.2);
    margin: 12px 0;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    padding-top: 12px;
}

.summary-row.total span {
    color: #ffd700;
}

.summary-row.balance {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.summary-row.remaining {
    font-weight: 600;
}

.btn-order-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffd700, #ffb000);
    border: none;
    border-radius: 12px;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.btn-order-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-order-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auth Section Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }

    .auth-visual {
        order: 2;
        padding: 40px 20px;
    }

    .auth-visual h2 {
        font-size: 24px;
    }

    .auth-form {
        order: 1;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .form-group input {
        padding: 16px 20px;
        font-size: 16px;
    }

    .btn-submit {
        padding: 18px;
        font-size: 16px;
    }

    .floating-icons {
        display: none;
    }

    .auth-section::before {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 20px 15px;
    }

    .form-header h1 {
        font-size: 20px;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 16px;
        font-size: 14px;
    }

    .checkbox-text {
        font-size: 12px;
    }

    .form-footer p {
        font-size: 12px;
    }
}

.modal-body {
    margin-bottom: 20px;
}

/* Recharge System */
.recharge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.recharge-option {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.recharge-option:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.recharge-option.selected {
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.05);
}

.recharge-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.recharge-option.selected::before {
    transform: scaleX(1);
}

.coin-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.coin-price {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.coin-bonus {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}

.recharge-option:hover .coin-bonus,
.recharge-option.selected .coin-bonus {
    opacity: 1;
}

.recharge-summary {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    color: var(--accent-primary);
}

.btn-recharge {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-recharge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-recharge:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.processing {
    pointer-events: none;
}

.processing .btn-recharge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        margin: 20px;
        padding: 20px;
    }
    
    .recharge-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-title {
        font-size: 20px;
    }
}

/* Nav */
.nav{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg, rgba(0,0,0,.9), rgba(10,10,10,.85));
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:0 1px 20px rgba(0,0,0,.3);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 0}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text)}
.brand .logo{display:grid; place-items:center; width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#000; font-weight:800}
.brand .name{font-weight:800; letter-spacing:.4px}

.nav ul{display:flex; gap:18px; list-style:none; margin:0; padding:0}
.nav a{color:var(--muted); text-decoration:none; padding:10px 12px; border-radius:10px; font-weight:600}
.nav a:hover,.nav a.active{color:var(--text); background:rgba(255,255,255,.06)}
.menu-btn{display:none}

@media (max-width:900px){
  .menu-btn{display:inline-flex; align-items:center; gap:8px; color:var(--muted); background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:10px; padding:8px 10px}
  .nav ul{display:none}
  .nav.open ul{display:flex; flex-direction:column; position:absolute; left:16px; right:16px; top:64px; padding:14px; border:1px solid rgba(255,255,255,.08); background:rgba(17,24,39,.95); border-radius:14px; box-shadow:var(--shadow-lg)}
}

/* Hero */
.hero{display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:center}
@media (max-width:900px){.hero{grid-template-columns:1fr; text-align:center}}

.kicker{display:inline-flex; align-items:center; gap:10px; color:var(--muted); font-weight:700; letter-spacing:.12em; text-transform:uppercase}
.kicker .dot{width:8px; height:8px; border-radius:999px; background:radial-gradient(circle at 35% 35%, #fff, var(--accent))}

h1{font-size:clamp(34px,6vw,56px); line-height:1.1; margin:10px 0 12px; font-weight:900}
.gradient{background:linear-gradient(90deg, #fff, var(--accent), var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent}
.subtitle{color:var(--muted); font-size:clamp(16px,2.5vw,19px)}

.cta{display:flex; gap:14px; margin-top:26px}
@media (max-width:900px){.cta{justify-content:center; flex-wrap:wrap}}
.btn{display:inline-flex; align-items:center; gap:10px; padding:12px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.12); text-decoration:none; font-weight:700; letter-spacing:.2px; transition:transform .15s ease, box-shadow .15s ease}
.btn.primary{background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#0b0f17; border-color:transparent}
.btn.ghost{background:rgba(255,255,255,.04); color:var(--text)}
.btn:hover{transform:translateY(-1px); box-shadow:0 10px 24px rgba(128,20,35,.25)}

.hero-visual{position:relative}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow-lg)
}
.avatar{
  width:min(100%,420px); aspect-ratio:1/1; border-radius:24px; margin-inline:auto; display:grid; place-items:center; overflow:hidden;
  background:
    radial-gradient(220px 220px at 70% 20%, rgba(128,20,35,.25), transparent 60%),
    radial-gradient(250px 250px at 10% 80%, rgba(160,27,46,.20), transparent 60%),
    linear-gradient(135deg, #111111, #000000);
  border:1px solid rgba(255,255,255,.12)
}
.avatar svg{width:72%; height:auto; filter:drop-shadow(0 20px 40px rgba(34,211,238,.2))}

/* Sections */
.section-title{font-size:28px; font-weight:800; margin:0 0 16px}
.section-desc{color:var(--muted); margin-bottom:22px}

.grid{display:grid; gap:16px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){
  .grid.cols-3{grid-template-columns:1fr}
  .grid.cols-2{grid-template-columns:1fr}
}

.pill{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.06); color:var(--text); border:1px solid rgba(255,255,255,.08); font-weight:600}
.tag{display:inline-flex; padding:6px 10px; border-radius:999px; background:rgba(128,20,35,.15); border:1px solid rgba(128,20,35,.35); color:#ff9999; font-weight:700; letter-spacing:.2px; text-transform:uppercase; font-size:12px}

.skill-card .title{font-weight:800}
.skill-list{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.skill-list .skill{padding:8px 12px; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); color:var(--text); font-weight:600}

.project{display:flex; flex-direction:column; gap:12px}
.project .thumb{height:160px; border-radius:12px; background:
  linear-gradient(135deg, rgba(128,20,35,.20), rgba(160,27,46,.15)),
  url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22400%22 height=%22300%22 viewBox=%220 0 400 300%22><defs><linearGradient id=%22g%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%221%22><stop offset=%220%25%22 stop-color=%22%23222222%22/><stop offset=%22100%25%22 stop-color=%22%23000000%22/></linearGradient></defs><rect width=%22400%22 height=%22300%22 fill=%22url(%23g)%22/><g fill=%22%23ffffff15%22><circle cx=%2280%22 cy=%2230%22 r=%2212%22/><circle cx=%2250%22 cy=%2280%22 r=%228%22/><circle cx=%2220%22 cy=%2240%22 r=%225%22/></g></svg>') center/cover;
  border:1px solid rgba(255,255,255,.15)
}
.project .meta{display:flex; align-items:center; gap:10px; justify-content:space-between}
.project a{color:var(--text); text-decoration:none}
.project a:hover{color:#ff9999}

/* Contact */
.contact-info-card{
  width:100%; 
  margin:0; 
  padding:30px; 
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
}
@media (max-width:600px){
  .contact-info-card{padding:20px}
}
.input{background:#111111; border:1px solid rgba(255,255,255,.15); border-radius:12px; padding:12px 14px; color:var(--text)}
.input:focus{outline:none; box-shadow:var(--ring); border-color:rgba(128,20,35,.6)}
.textarea{min-height:120px; resize:vertical}
.contact-links{display:flex; flex-direction:column; gap:18px; padding:10px 0}
.contact-item{display:flex; align-items:flex-start; gap:16px; padding:18px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); transition:all .3s ease}
.contact-item:hover{background:rgba(128,20,35,.08); border-color:rgba(128,20,35,.25); transform:translateY(-2px); box-shadow:0 8px 25px rgba(128,20,35,.15)}
.contact-icon{font-size:22px; min-width:26px; text-align:center; color:var(--accent); margin-top:2px}
.contact-info{display:flex; flex-direction:column; gap:6px; flex:1; min-width:0}
.contact-label{font-weight:700; color:var(--text); font-size:15px; text-transform:uppercase; letter-spacing:.5px}
.contact-item a{color:var(--muted); text-decoration:none; font-weight:500; word-break:break-all; transition:color .2s ease; font-size:15px}
.contact-item:hover a{color:#ff9999}
@media (max-width:600px){
  .contact-links{gap:16px}
  .contact-item{padding:16px; gap:14px}
  .contact-icon{font-size:20px; min-width:24px}
  .contact-info{gap:4px}
  .contact-label{font-size:14px}
  .contact-item a{font-size:14px}
}

/* Footer */
footer{padding:26px 0 40px; color:var(--muted); border-top:1px solid rgba(255,255,255,.06)}
footer .foot{display:flex; align-items:center; justify-content:space-between}
@media (max-width:900px){footer .foot{flex-direction:column; gap:12px; text-align:center}}
footer a{color:#ff9999; text-decoration:none}

/* Custom Scrollbar */
::-webkit-scrollbar{width:12px; height:12px}
::-webkit-scrollbar-track{background: var(--bg-primary); border-radius:0}
::-webkit-scrollbar-thumb{background: var(--accent-primary); border-radius:6px; border:2px solid var(--bg-primary)}
::-webkit-scrollbar-thumb:hover{background: var(--accent-secondary)}
::-webkit-scrollbar-thumb:active{background: var(--accent-tertiary)}
::-webkit-scrollbar-corner{background: var(--bg-primary)}
/* Firefox scrollbar */
html{scrollbar-width:thin; scrollbar-color: var(--accent-primary) var(--bg-primary)}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 90px; /* Below navbar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.95));
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    min-width: 320px;
    max-width: 500px;
    pointer-events: auto;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    animation: toastSlideIn 0.3s ease-out;
}

.toast.hide {
    transform: translateY(-100px);
    opacity: 0;
    animation: toastSlideOut 0.2s ease-in;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    font-size: 24px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.toast-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Cairo', sans-serif;
}

.toast-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

.toast-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.toast-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Toast Animations */
@keyframes toastSlideIn {
    0% {
        transform: translateY(-100px);
        opacity: 0;
        scale: 0.8;
    }
    50% {
        scale: 1.05;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        scale: 1;
    }
}

@keyframes toastSlideOut {
    0% {
        transform: translateY(0);
        opacity: 1;
        scale: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
        scale: 0.8;
    }
}

/* Responsive Toast */
@media (max-width: 576px) {
    .toast-container {
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Utilities */
.muted{color:var(--muted)}
.divider{height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); margin:40px 0}
.hidden{display:none}

/* Back to top button */
.back-to-top{
  position:fixed; 
  bottom:30px; 
  right:30px; 
  width:50px; 
  height:50px; 
  border-radius:50%; 
  background:linear-gradient(135deg, var(--accent), var(--accent-2)); 
  border:none; 
  color:#ffffff; 
  font-size:18px; 
  cursor:pointer; 
  opacity:0; 
  visibility:hidden; 
  transform:translateY(20px); 
  transition:all .3s ease; 
  z-index:100; 
  box-shadow:0 8px 25px rgba(128,20,35,.25);
  display:flex; 
  align-items:center; 
  justify-content:center;
}
.back-to-top.show{
  opacity:1; 
  visibility:visible; 
  transform:translateY(0);
}
.back-to-top:hover{
  transform:translateY(-3px); 
  box-shadow:0 12px 30px rgba(128,20,35,.4);
}
@media (max-width:600px){
  .back-to-top{
    bottom:20px; 
    right:20px; 
    width:45px; 
    height:45px; 
    font-size:16px;
  }
}

/* Mobile Sidebar */
.overlay{position:fixed; inset:0; background:rgba(0,0,0,.55); opacity:0; pointer-events:none; transition:opacity .06s ease; z-index:80}
.sidebar{position:fixed; top:0; right:0; bottom:0; width:min(86vw, 360px); background:var(--bg-primary); border-left:1px solid rgba(255,255,255,.12); transform:translateX(100%); transition:transform .08s ease; z-index:90; display:flex; flex-direction:column; box-shadow:var(--shadow-lg)}
.sidebar-head{display:flex; align-items:center; justify-content:space-between; padding:16px; border-bottom:1px solid rgba(255,255,255,.06)}
.icon-btn{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:var(--text); font-weight:800}
.sidebar-nav{list-style:none; margin:0; padding:12px}
.sidebar-nav a{display:block; padding:12px 14px; border-radius:10px; color:var(--text); text-decoration:none}
.sidebar-nav a:hover{background:rgba(255,255,255,.06)}
.sidebar-nav a.active{background:rgba(255,255,255,.12); color:#ff9999}
body.menu-open{overflow:hidden}
body.menu-open .overlay{opacity:1; pointer-events:auto}
body.menu-open .sidebar{transform:none}

/* Reveal on scroll */
.reveal{opacity:0; transform:translateY(14px) scale(.98); transition:opacity .1s ease, transform .1s ease}
.reveal.show{opacity:1; transform:none}

/* Stagger for projects */
.projects-grid > .reveal{will-change:transform,opacity}
.projects-grid > .reveal:nth-child(1){transition-delay:0s}
.projects-grid > .reveal:nth-child(2){transition-delay:0s}
.projects-grid > .reveal:nth-child(3){transition-delay:0s}
.projects-grid > .reveal:nth-child(4){transition-delay:0s}
.projects-grid > .reveal:nth-child(5){transition-delay:0s}
.projects-grid > .reveal:nth-child(6){transition-delay:0s}

/* Preloader */
.preloader{position:fixed; inset:0; display:grid; place-items:center; background:radial-gradient(800px 600px at 80% -10%, rgba(128,20,35,.08), transparent 60%), radial-gradient(700px 600px at -10% 20%, rgba(160,27,46,.06), transparent 60%), linear-gradient(180deg, var(--bg), #050505 60%); z-index:200; transition:opacity .1s ease, visibility .1s ease}
.preloader.hidden{opacity:0; visibility:hidden}
.preloader-inner{display:flex; flex-direction:column; align-items:center; gap:16px}
.preloader-logo{display:grid; place-items:center; width:64px; height:64px; border-radius:16px; background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#0b0f17; font-weight:900; letter-spacing:.5px}
.preloader-spinner{width:28px; height:28px; border-radius:50%; border:3px solid rgba(255,255,255,.2); border-top-color:#ff9999; animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Form status + loading button */
.form-status{min-height:22px; margin-top:10px; font-weight:600}
.form-status.success{color:#86efac}
.form-status.error{color:#fca5a5}
.btn.loading{position:relative; pointer-events:none; opacity:.85}
.btn.loading::after{content:""; width:16px; height:16px; border-radius:50%; border:3px solid rgba(0,0,0,.25); border-top-color:#0b0f17; animation:spin .8s linear infinite; display:inline-block}
.btn.primary.loading::after{border-color:rgba(0,0,0,.25); border-top-color:#0b0f17}



/* Font Awesome Icon Styling for Form Labels */
.form-group label i {
    margin-right: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    font-size: 18px;
    min-width: 22px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.form-group label i::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.06s ease;
    z-index: -1;
}

.form-group label:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.form-group label:hover i::before {
    opacity: 1;
}

.form-group:focus-within label i {
    animation: pulseGlow 2s ease-in-out infinite;
    transform: scale(1.1);
}

/* Enhanced Font Rendering for All Interactive Elements */
.btn-social, .password-toggle, .toggle-icon, button, input, label {
    font-family: 'Cairo', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Force Cairo font on all text elements */
h1, h2, h3, h4, h5, h6, p, span, div, a {
    font-family: 'Cairo', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Service Card Components */
.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.service-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 20px 32px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 
        0 10px 28px rgba(139, 92, 246, 0.35),
        0 0 0 1px rgba(139, 92, 246, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: iconPulse 3s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: iconShimmer 3s infinite;
}

@keyframes iconShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 10px 28px rgba(139, 92, 246, 0.35),
            0 0 0 1px rgba(139, 92, 246, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 
            0 14px 38px rgba(139, 92, 246, 0.48),
            0 0 0 1px rgba(236, 72, 153, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 30px rgba(236, 72, 153, 0.24);
    }
}

.service-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

.service-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.service-badge.trending {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.service-badge.hot {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

@keyframes badgeGlow {
    0% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5); }
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-features {
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.feature::before {
    content: '\u2713';
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.service-pricing {
    margin-bottom: 24px;
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.price-option:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(5px);
}

.price-option .amount {
    font-weight: 600;
    color: var(--text-primary);
}

.price-option .price {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 16px;
}

.price-option .discount {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-service {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
    border-radius: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.btn-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.08s ease;
}

.btn-service:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4), 0 5px 15px rgba(255, 215, 0, 0.2);
}

.btn-service:hover::before {
    left: 100%;
}

.btn-service:active {
    transform: translateY(-1px) scale(1.01);
}

/* Responsive Design for Services */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-description {
        font-size: 18px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .price-option {
        padding: 12px 16px;
    }
    
    .btn-service {
        padding: 16px 20px;
        font-size: 14px;
    }
}
/* Pricing Page Styles */
.pricing-section {
    padding: 80px 0;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="15" cy="15" r="1" fill="%23ffd700" opacity="0.1"/><circle cx="85" cy="85" r="1.5" fill="%23ffb000" opacity="0.12"/><circle cx="50" cy="20" r="0.8" fill="%23ff8c00" opacity="0.08"/></svg>') repeat;
    animation: sparkleCoins 20s linear infinite;
    pointer-events: none;
}

@keyframes sparkleCoins {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(180deg); opacity: 0; }
}

/* Balance Section */
.balance-section {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

.balance-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: balanceGlow 4s ease-in-out infinite alternate;
}

@keyframes balanceGlow {
    0% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 215, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 30px rgba(255, 215, 0, 0.2); }
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.balance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 24px;
    animation: iconRotate 6s linear infinite;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.balance-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.coins-count {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coins-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.balance-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-refresh, .btn-history {
    padding: 12px 24px;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh:hover, .btn-history:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.package-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: packageSlideIn 0.35s ease-out;
}

.package-card:nth-child(1) { animation-delay: 0s; }
.package-card:nth-child(2) { animation-delay: 0s; }
.package-card:nth-child(3) { animation-delay: 0s; }
.package-card:nth-child(4) { animation-delay: 0s; }

@keyframes packageSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.package-card.popular {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 50px rgba(255, 215, 0, 0.2);
}

.package-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 50px rgba(255, 215, 0, 0.2);
}

.package-card.popular:hover {
    transform: translateY(-10px) scale(1.08);
}

.package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.package-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-card.popular .package-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.package-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 20px;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.package-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-amount {
    text-align: center;
    margin-bottom: 20px;
}

.coins-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.coins-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-price {
    text-align: center;
    margin-bottom: 24px;
}

.price-amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.price-per-coin {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.savings {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    animation: savingsPulse 2s ease-in-out infinite;
}

@keyframes savingsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.package-features {
    margin-bottom: 32px;
}

.package-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.package-features .feature::before {
    content: '✓';
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.btn-purchase {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
    border-radius: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-purchase.featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-purchase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.08s ease;
}

.btn-purchase:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4), 0 5px 15px rgba(255, 215, 0, 0.2);
}

.btn-purchase.featured:hover {
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5), 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-purchase:hover::before {
    left: 100%;
}

/* Payment Methods */
.payment-section {
    text-align: center;
    margin: 60px 0;
}

.payment-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    transition: var(--transition);
    min-width: 100px;
}

.payment-method:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-2px);
}

.payment-method i {
    font-size: 28px;
    color: var(--accent-primary);
}

.payment-method span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Usage Guide */
.usage-guide {
    margin: 60px 0;
}

.guide-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.usage-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.usage-item:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-5px);
}

.usage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--bg-primary);
    font-size: 24px;
}

.usage-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.usage-item p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.usage-cost {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Responsive Design for Pricing */
@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .package-card.popular {
        transform: none;
    }
    
    .package-card:hover {
        transform: translateY(-5px);
    }
    
    .package-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .balance-card {
        padding: 30px 20px;
    }
    
    .payment-methods {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .balance-header {
        flex-direction: column;
        text-align: center;
    }
    
    .balance-actions {
        flex-direction: column;
    }
    
    .package-card {
        padding: 24px 16px;
    }
    
    .coins-number {
        font-size: 36px;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .usage-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-primary);
    font-size: 18px;
}

.footer-logo .brand-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    padding: 4px 0;
    position: relative;
}

.footer-link:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.05s ease;
}

.footer-link:hover::before {
    width: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.footer-powered {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-powered svg {
    color: #ef4444;
    flex-shrink: 0;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.footer-badge i {
    color: var(--accent-primary);
    font-size: 14px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

/* Floating Action Button (FAB) Styles */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    box-shadow: 
        0 6px 16px rgba(139, 92, 246, 0.38),
        0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    pointer-events: none;
}

.fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
    0 10px 24px rgba(236, 72, 153, 0.36),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.fab:active {
    transform: translateY(0) scale(0.95);
}

.fab i {
    font-size: 20px;
    color: var(--bg-primary);
    transition: var(--transition);
}

.fab:hover i {
    transform: translateY(-2px);
}

/* FAB Mobile Responsive */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab {
        width: 48px;
        height: 48px;
    }
    
    .fab-icon {
        font-size: 20px;
    }
}

/* ===================================
   BOTTOM NAVBAR ADDITIONAL STYLES
   =================================== */

/* Additional Bottom Navbar Enhancements */
.bottom-navbar {
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Smooth transition for nav items */
.bottom-nav-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Icon pulse animation for active state */
.bottom-nav-item.active .bottom-nav-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Badge animation */
.bottom-nav-badge {
    animation: badgePop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* User avatar styling in bottom nav */
.bottom-user-avatar {
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover .bottom-user-avatar {
    transform: scale(1.1) rotate(5deg);
}

/* Ensure proper spacing for content with bottom navbar */
.app-container {
    padding-bottom: 80px;
}

.footer {
    margin-bottom: 70px;
}

/* Adjust scroll-to-top button when bottom nav is visible */
.fab-container {
    bottom: 90px;
}

/* Improved visibility for bottom nav items */
.bottom-nav-item .bottom-nav-icon i {
    font-size: 22px;
    display: block;
}

/* Bottom navbar always visible on all screen sizes */
.bottom-navbar {
    display: block !important;
}

/* Top navbar always hidden on all screen sizes */
.navbar {
    display: none !important;
}

/* ===================================
   ENHANCED RESPONSIVE ANIMATIONS & SMOOTH INTERACTIONS
   =================================== */

/* Smooth fade-in animations for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to elements */
.hero-content > * {
    animation: fadeInUp 0.3s ease-out;
}

.hero-content > *:nth-child(1) { animation-delay: 0s; }
.hero-content > *:nth-child(2) { animation-delay: 0s; }
.hero-content > *:nth-child(3) { animation-delay: 0s; }
.hero-content > *:nth-child(4) { animation-delay: 0s; }
.hero-content > *:nth-child(5) { animation-delay: 0s; }

.service-card,
.order-card,
.stat-box,
.admin-stat-card {
    animation: fadeInUp 0.3s ease-out;
}

/* Stagger animation for grid items */
.services-grid > *:nth-child(1) { animation-delay: 0s; }
.services-grid > *:nth-child(2) { animation-delay: 0s; }
.services-grid > *:nth-child(3) { animation-delay: 0s; }
.services-grid > *:nth-child(4) { animation-delay: 0s; }
.services-grid > *:nth-child(5) { animation-delay: 0s; }
.services-grid > *:nth-child(6) { animation-delay: 0s; }

/* Smooth hover transitions */
.service-card,
.stat-box,
.admin-stat-card,
.btn-primary,
.btn-secondary,
.dash-btn {
    transition: all 0.2s ease;
    will-change: transform;
}

.service-card:hover,
.order-card:hover,
.stat-box:hover,
.admin-stat-card:hover {
    transform: translateY(-4px);
}

/* Button hover effects */
.btn-primary:hover,
.btn-secondary:hover,
.dash-btn:hover {
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active,
.dash-btn:active {
    transform: translateY(0);
}

/* Smooth loading animation for images */
img {
    transition: opacity 0.05s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth scroll padding for fixed headers */
html {
    scroll-padding-top: 80px;
}

/* Improved focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.08s, height 0.08s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Smooth page transitions */
.page-transition {
    animation: fadeIn 0.2s ease-in-out;
}

/* Enhanced modal animations */
.modal-overlay.show .modal {
    animation: modalSlideIn 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Toast slide-in animation */
.toast {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Pulsing dot for live indicators */
@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-indicator {
    animation: pulseDot 2s ease-in-out infinite;
}

/* Number counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.3s ease-out;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Hover lift effect for interactive cards */
.interactive-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Smooth gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* Hardware acceleration for smooth animations */
.service-card,
.order-card,
.stat-box,
.btn-primary,
.btn-secondary,
.modal,
.toast {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize rendering */
.hero-background,
.phone-mockup {
    will-change: transform;
}

/* Lazy load images */
img[loading="lazy"] {
    content-visibility: auto;
}

/* ===================================
   RESPONSIVE UTILITY CLASSES
   =================================== */

/* Display utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing-md) !important; }
.mt-3 { margin-top: var(--spacing-lg) !important; }
.mt-4 { margin-top: var(--spacing-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing-md) !important; }
.mb-3 { margin-bottom: var(--spacing-lg) !important; }
.mb-4 { margin-bottom: var(--spacing-xl) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-sm) !important; }
.p-2 { padding: var(--spacing-md) !important; }
.p-3 { padding: var(--spacing-lg) !important; }
.p-4 { padding: var(--spacing-xl) !important; }

/* Text utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

@media (max-width: 768px) {
    .text-center-mobile { text-align: center !important; }
}

/* Flexbox utilities */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-1 { gap: var(--spacing-sm) !important; }
.gap-2 { gap: var(--spacing-md) !important; }
.gap-3 { gap: var(--spacing-lg) !important; }

/* Grid utilities */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

@media (max-width: 768px) {
    .grid-cols-1-mobile { grid-template-columns: repeat(1, 1fr) !important; }
    .grid-cols-2-mobile { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Width utilities */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.max-w-full { max-width: 100% !important; }

/* ===================================
   ENHANCED TOUCH INTERACTIONS
   =================================== */

/* Better tap targets for mobile */
@media (max-width: 768px) {
    /* Ensure all clickable elements have minimum 44x44px tap target */
    button,
    a,
    input[type="button"],
    input[type="submit"],
    input[type="checkbox"],
    input[type="radio"],
    select,
    .clickable {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing between interactive elements */
    button + button,
    a + a {
        margin-left: 8px;
    }
    
    /* Larger touch targets for navigation */
    .nav-link,
    .bottom-nav-item {
        padding: 12px;
    }
}

/* Touch feedback */
.touch-feedback {
    position: relative;
    overflow: hidden;
}

.touch-feedback::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.05s, height 0.05s;
}

.touch-feedback:active::before {
    width: 200%;
    height: 200%;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .service-card:hover,
    .order-card:hover,
    .stat-box:hover {
        transform: none;
    }
    
    /* Instead use active state */
    .service-card:active,
    .order-card:active,
    .stat-box:active {
        transform: scale(0.98);
    }
}

/* Swipe indicators for mobile carousels */
.swipe-indicator {
    display: none;
}

@media (max-width: 768px) {
    .swipe-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
    
    .swipe-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border);
        transition: all 0.2s ease;
    }
    
    .swipe-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--accent-primary);
    }
}

/* Pull-to-refresh hint */
.pull-refresh-hint {
    display: none;
    text-align: center;
    padding: 8px;
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

@media (max-width: 768px) {
    .pull-refresh-hint {
        display: block;
    }
}

/* Sticky scroll sections on mobile */
@media (max-width: 768px) {
    .sticky-mobile {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg-primary);
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
}

/* Improved scrollbar for touch devices */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Hide scrollbar on mobile for cleaner look */
@media (max-width: 768px) {
    .hide-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .safe-bottom {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .safe-top {
        padding-top: calc(20px + env(safe-area-inset-top));
    }
}

/* Performance: keep mobile animations smooth without forcing ultra-fast timing */
@media (prefers-reduced-motion: no-preference) and (max-width: 768px) {
    .phone-mockup {
        animation-duration: 10s !important;
    }

    .phone-mockup::before {
        animation-duration: 6s !important;
    }

    .phone-mockup::after {
        animation-duration: 5s !important;
    }

    .floating-icons .icon {
        animation-duration: 10s !important;
    }
}

/* ===================================
   GLOBAL TOAST NOTIFICATION SYSTEM
   =================================== */

.gtoast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999999;
    width: 320px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    transition: none;
}

.gtoast-enter {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gtoast-exit {
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

/* Icon */
.gtoast-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.gtoast-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Body */
.gtoast-body {
    flex: 1;
    min-width: 0;
}

.gtoast-msg {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    word-wrap: break-word;
    margin: 0;
}

/* Close button */
.gtoast-close {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 0;
}

.gtoast-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gtoast-close svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* ── Success Variant ── */
.gtoast-success {
    border-color: #065f46;
    background: #064e3b;
}
.gtoast-success .gtoast-icon {
    color: #10b981;
}
.gtoast-success .gtoast-msg {
    color: #a7f3d0;
}
.gtoast-success .gtoast-close {
    color: #6ee7b7;
}

/* ── Error Variant ── */
.gtoast-error {
    border-color: #991b1b;
    background: #7f1d1d;
}
.gtoast-error .gtoast-icon {
    color: #ef4444;
}
.gtoast-error .gtoast-msg {
    color: #fecaca;
}
.gtoast-error .gtoast-close {
    color: #fca5a5;
}

/* ── Warning Variant ── */
.gtoast-warning {
    border-color: #92400e;
    background: #78350f;
}
.gtoast-warning .gtoast-icon {
    color: #f59e0b;
}
.gtoast-warning .gtoast-msg {
    color: #fde68a;
}
.gtoast-warning .gtoast-close {
    color: #fcd34d;
}

/* ── Info Variant ── */
.gtoast-info {
    border-color: #1e40af;
    background: #1e3a8a;
}
.gtoast-info .gtoast-icon {
    color: #3b82f6;
}
.gtoast-info .gtoast-msg {
    color: #bfdbfe;
}
.gtoast-info .gtoast-close {
    color: #93c5fd;
}

/* Mobile */
@media (max-width: 640px) {
    .gtoast {
        right: 12px;
        left: 12px;
        width: auto;
        top: 12px;
    }
}

/* RTL Support */
html[dir="rtl"] .gtoast {
    right: auto;
    left: 16px;
    direction: rtl;
    transform: translateX(-50px) scale(0.8);
}

html[dir="rtl"] .gtoast.gtoast-enter {
    transform: translateX(0) scale(1);
}

html[dir="rtl"] .gtoast.gtoast-exit {
    transform: translateX(-50px) scale(0.8);
}

@media (max-width: 640px) {
    html[dir="rtl"] .gtoast {
        right: 12px;
        left: 12px;
        transform: translateX(0) scale(0.8);
    }
    html[dir="rtl"] .gtoast.gtoast-enter {
        transform: translateX(0) scale(1);
    }
    html[dir="rtl"] .gtoast.gtoast-exit {
        transform: translateX(0) scale(0.8);
    }
}

/* Global mobile motion tuning - removed: was forcing 0.6s/1.2s on ALL elements */

/* ===================================
   GLOBAL CONFIRM / ALERT DIALOG
   =================================== */

.gdialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.gdialog-overlay.gdialog-visible {
    opacity: 1;
}

.gdialog {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
                opacity 0.2s ease;
    opacity: 0;
}

.gdialog-visible .gdialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gdialog-overlay.gdialog-exit {
    opacity: 0;
}

.gdialog-overlay.gdialog-exit .gdialog {
    transform: translateY(8px) scale(0.97);
    opacity: 0;
}

/* Header: icon + title inline */
.gdialog-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gdialog-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gdialog-title-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdialog-title-icon svg {
    width: 20px;
    height: 20px;
}

.gdialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.gdialog-message {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Variant icon colors */
.gdialog-danger .gdialog-title-icon {
    color: #f87171;
}

.gdialog-warning .gdialog-title-icon {
    color: #fbbf24;
}

.gdialog-info .gdialog-title-icon {
    color: #a78bfa;
}

.gdialog-success .gdialog-title-icon {
    color: #34d399;
}

/* Footer: buttons row aligned right */
.gdialog-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 20px;
}

@media (min-width: 480px) {
    .gdialog-footer {
        flex-direction: row;
        justify-content: flex-end;
    }
}

.gdialog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.gdialog-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

.gdialog-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.gdialog-btn-confirm {
    color: #fff;
    font-weight: 600;
}

.gdialog-btn-confirm:hover {
    filter: brightness(1.1);
}

/* Confirm button variant colors */
.gdialog-danger .gdialog-btn-confirm {
    background: #ef4444;
}
.gdialog-danger .gdialog-btn-confirm:hover {
    background: #dc2626;
}

.gdialog-warning .gdialog-btn-confirm {
    background: #f59e0b;
}
.gdialog-warning .gdialog-btn-confirm:hover {
    background: #d97706;
}

.gdialog-info .gdialog-btn-confirm {
    background: #8b5cf6;
}
.gdialog-info .gdialog-btn-confirm:hover {
    background: #7c3aed;
}

.gdialog-success .gdialog-btn-confirm {
    background: #10b981;
}
.gdialog-success .gdialog-btn-confirm:hover {
    background: #059669;
}

/* Mobile */
@media (max-width: 480px) {
    .gdialog {
        max-width: 100%;
        padding: 20px;
        border-radius: 14px;
    }

    .gdialog-title {
        font-size: 16px;
    }

    .gdialog-btn {
        width: 100%;
        padding: 12px 18px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    /* Hide non-essential elements when printing */
    .navbar,
    .bottom-navbar,
    .fab-container,
    .toast-container,
    .modal-overlay,
    button,
    .hero-visual {
        display: none !important;
    }
    
    /* Optimize for printing */
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Break pages properly */
    .service-card,
    .order-card,
    .stat-box {
        page-break-inside: avoid;
    }
}
