/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Enhanced Color System */
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #3730a3;
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;
    
    --success-500: #10b981;
    --error-500: #ef4444;
    --warning-500: #f59e0b;
    
    /* Glass Morphism System */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-shadow-strong: 0 16px 64px rgba(0, 0, 0, 0.16);
    
    /* Background System */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a26;
    --bg-gradient: radial-gradient(ellipse at top, #1e1b4b 0%, #0f0f23 50%, #000000 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-inverse: #1e293b;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    filter: blur(1px);
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: -8s;
    animation-duration: 30s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: -15s;
    animation-duration: 20s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 10%;
    animation-delay: -20s;
    animation-duration: 35s;
}

.orb-5 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 60%;
    animation-delay: -12s;
    animation-duration: 15s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translateY(20px) translateX(-15px) rotate(180deg) scale(0.9);
    }
    75% { 
        transform: translateY(-10px) translateX(25px) rotate(270deg) scale(1.05);
    }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: var(--space-6) 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.logo-icon i {
    font-size: var(--text-2xl);
    color: white;
    z-index: 2;
    animation: iconPulse 3s ease-in-out infinite;
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-xl);
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.logo-text h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-top: var(--space-1);
}

.theme-toggle {
    position: relative;
}

.theme-btn {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--glass-shadow-strong);
}

.theme-icon {
    z-index: 2;
    transition: var(--transition-normal);
}

.theme-icon i {
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-full);
    opacity: 0;
    transition: var(--transition-normal);
}

.theme-btn:hover .btn-glow {
    opacity: 0.2;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) 0;
}

/* Main Card */
.main-card {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    box-shadow: var(--glass-shadow-strong);
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500), var(--accent-500));
    background-size: 200% 100%;
    animation: gradientFlow 3s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Card Header */
.card-header {
    padding: var(--space-8) var(--space-8) var(--space-6);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.card-title i {
    font-size: var(--text-2xl);
    color: var(--primary-500);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.card-title h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: var(--text-lg);
    margin: 0;
    font-weight: 400;
}

/* Form Section */
.form-section {
    padding: var(--space-8);
}

.form-group {
    margin-bottom: var(--space-6);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-1);
    transition: var(--transition-normal);
    overflow: hidden;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.input-wrapper:focus-within::before {
    left: 100%;
}

.input-wrapper:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.input-icon i {
    font-size: var(--text-lg);
    color: var(--primary-500);
}

.form-input {
    width: 100%;
    padding: var(--space-5) var(--space-16) var(--space-5) var(--space-12);
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-weight: 500;
}

.form-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.input-action {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-500);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.input-action:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.input-action i {
    color: white;
    font-size: var(--text-base);
    z-index: 2;
}

.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-action:hover .tooltip {
    opacity: 1;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.input-hint i {
    color: var(--primary-500);
    font-size: var(--text-xs);
}

/* Generate Button */
.generate-btn {
    width: 100%;
    height: 60px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-6);
    transition: var(--transition-bounce);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.generate-btn:hover .btn-bg {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    height: 100%;
    color: white;
    font-size: var(--text-lg);
    font-weight: 600;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 3;
}

.generate-btn:hover .btn-shine {
    left: 100%;
}

.generate-btn:hover {
    transform: translateY(-3px);
}

.generate-btn:active {
    transform: translateY(-1px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-500);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.feature-icon i {
    color: white;
    font-size: var(--text-lg);
}

.feature-item span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* Result Section */
.result-section {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    animation: resultSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.result-header h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-500);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.status-indicator span {
    font-size: var(--text-sm);
    color: var(--success-500);
    font-weight: 500;
}

/* OTP Container */
.otp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    gap: var(--space-6);
}

.otp-display {
    position: relative;
    flex: 1;
}

.otp-code {
    font-size: var(--text-5xl);
    font-weight: 800;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: var(--text-primary);
    letter-spacing: var(--space-2);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: codeGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.otp-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: var(--radius-xl);
    /* animation: glowRotate 3s linear infinite; */
    z-index: 1;
}

@keyframes codeGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
        transform: scale(1);
    }
    to {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
        transform: scale(1.02);
    }
}

@keyframes glowRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Timer Container */
.timer-container {
    flex-shrink: 0;
}

.timer-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 4;
}

.timer-progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-text {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.timer-unit {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Copy Button */
.copy-btn {
    width: 100%;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 500;
}

.copy-btn:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.copy-icon {
    transition: var(--transition-normal);
}

.copy-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.copy-btn:active .copy-ripple {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* Additional Elements */
.footer-credit {
    margin: 0;
}

.copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon i {
    font-size: var(--text-base);
}

/* Footer */
.footer {
    padding: var(--space-6) 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-align: center;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
}

.footer-divider {
    width: 1px;
    height: 16px;
    background: var(--glass-border);
}

.highlight {
    color: var(--primary-500);
    font-weight: 600;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-500);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--secondary-500);
    animation-delay: -0.5s;
    animation-duration: 1s;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--accent-500);
    animation-delay: -1s;
    animation-duration: 0.8s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 500;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 1001;
}

.toast {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px);
    color: var(--text-primary);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow-strong);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary-500);
    margin-bottom: var(--space-4);
    transform: translateX(100%);
    transition: var(--transition-spring);
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: toastShine 2s ease-in-out;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success-500);
}

.toast.error {
    border-left-color: var(--error-500);
}

.toast.warning {
    border-left-color: var(--warning-500);
}

@keyframes toastShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .header {
        padding: var(--space-4) 0;
    }
    
    .logo {
        gap: var(--space-3);
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: var(--text-xl);
    }
    
    .logo-text h1 {
        font-size: var(--text-xl);
    }
    
    .main-content {
        padding: var(--space-4) 0;
    }
    
    .card-header {
        padding: var(--space-6) var(--space-4) var(--space-4);
    }
    
    .card-title h2 {
        font-size: var(--text-2xl);
    }
    
    .card-subtitle {
        font-size: var(--text-base);
    }
    
    .form-section {
        padding: var(--space-6) var(--space-4);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .otp-container {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .otp-code {
        font-size: var(--text-4xl);
        letter-spacing: var(--space-1);
    }
    
    .timer-circle {
        width: 60px;
        height: 60px;
    }
    
    .timer-text {
        font-size: var(--text-xl);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .footer-divider {
        display: none;
    }
    
    .toast-container {
        top: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
    }
    
    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .main-card {
        margin: var(--space-4) 0;
    }
    
    .card-header {
        padding: var(--space-4);
    }
    
    .card-title {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .card-title h2 {
        font-size: var(--text-xl);
    }
    
    .form-section {
        padding: var(--space-4);
    }
    
    .form-input {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-12) var(--space-4) var(--space-10);
    }
    
    .otp-code {
        font-size: var(--text-3xl);
    }
    
    .generate-btn {
        height: 50px;
    }
    
    .btn-content {
        font-size: var(--text-base);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .feature-item {
        padding: var(--space-3);
    }
    
    .footer-content {
        font-size: var(--text-xs);
    }
}

/* Selection styles */
::selection {
    background: var(--primary-500);
    color: white;
}

::-moz-selection {
    background: var(--primary-500);
    color: white;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}