/* ============================================
   CSS Variables - Ocean Blue & Teal Theme 🌊
   Enhanced for Better Visibility & Beauty
   ============================================ */
:root {
    /* Light Premium Colors - Enhanced Contrast */
    --bg-primary: #F0F9FF;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E0F2FE;

    /* Ocean Blue & Teal Accent Colors - More Vibrant */
    --accent-teal: #06B6D4;
    --accent-blue: #0EA5E9;
    --accent-cyan: #22D3EE;
    --accent-emerald: #10B981;

    /* Ocean Gradients - Enhanced */
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    /* Text Colors - Higher Contrast */
    --text-primary: #0C4A6E;
    --text-secondary: #075985;
    --text-tertiary: #0284C7;
    --text-light: #7DD3FC;

    /* Borders & Shadows - Enhanced Depth */
    --border-light: #BAE6FD;
    --border-medium: #7DD3FC;
    --shadow-sm: 0 2px 4px rgba(6, 182, 212, 0.15);
    --shadow-md: 0 6px 16px rgba(14, 165, 233, 0.2);
    --shadow-lg: 0 12px 32px rgba(6, 182, 212, 0.25);
    --shadow-xl: 0 20px 60px rgba(14, 165, 233, 0.3);
}

/* ============================================
   Dark Theme Variables 🌙
   ============================================ */
body.dark-theme {
    /* Dark Soft Colors */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;

    /* Dark Ocean Blue & Teal Accent Colors */
    --accent-teal: #22D3EE;
    --accent-blue: #38BDF8;
    --accent-cyan: #67E8F9;
    --accent-emerald: #34D399;

    /* Dark Ocean Gradients */
    --gradient-primary: linear-gradient(135deg, #38BDF8 0%, #22D3EE 100%);
    --gradient-success: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    --gradient-warning: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);

    /* Dark Text Colors */
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --text-light: #64748B;

    /* Dark Borders & Shadows */
    --border-light: #334155;
    --border-medium: #475569;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Use system default font stack */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ============================================
   Background - Colorful Animated Gradient
   ============================================ */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #10B981 100%),
        url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    background-blend-mode: overlay;
}

/* Pattern overlay với hiệu ứng đẹp mắt */
.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.18) 0%, transparent 45%);
}

/* Dark Theme Background */
body.dark-theme .gradient-bg {
    background:
        linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%),
        url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.02" fill-rule="evenodd"/%3E%3C/svg%3E');
    background-blend-mode: overlay;
}

body.dark-theme .gradient-bg::before {
    background-image:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(52, 211, 153, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.12) 0%, transparent 45%);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatBubbles {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* ============================================
   Header Styles - Premium Floating Card
   ============================================ */
header {
    text-align: center;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #E0F2FE 50%, #CFFAFE 100%);
    padding: 2rem 2.5rem;
    border-radius: 28px;
    border: 5px solid transparent;
    box-shadow:
        0 0 50px rgba(6, 182, 212, 0.45),
        0 0 100px rgba(14, 165, 233, 0.35),
        0 12px 40px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: visible;
    background-image:
        linear-gradient(145deg, #ffffff 0%, #E0F2FE 50%, #CFFAFE 100%),
        linear-gradient(135deg,
            #06B6D4 0%,
            #0EA5E9 25%,
            #22D3EE 50%,
            #10B981 75%,
            #06B6D4 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 60px rgba(6, 182, 212, 0.6),
        0 0 120px rgba(14, 165, 233, 0.45),
        0 16px 50px rgba(16, 185, 129, 0.35);
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hiệu ứng sparkle cho header sáng */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Dark Theme Header */
body.dark-theme header {
    background: #1E293B;
    border: 5px solid transparent;
    box-shadow:
        0 0 40px rgba(34, 211, 238, 0.3),
        0 0 80px rgba(56, 189, 248, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.5);
    background-image:
        linear-gradient(145deg, #1E293B 0%, #334155 50%, #1E293B 100%),
        linear-gradient(135deg,
            #22D3EE 0%,
            #38BDF8 25%,
            #67E8F9 50%,
            #34D399 75%,
            #22D3EE 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.dark-theme header:hover {
    box-shadow:
        0 0 50px rgba(34, 211, 238, 0.4),
        0 0 100px rgba(56, 189, 248, 0.3),
        0 12px 40px rgba(0, 0, 0, 0.6);
}

body.dark-theme header::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 40%);
}


header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(6, 182, 212, 0.4));
}

.subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.625rem);
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 50%, #EF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-top: 0.75rem;
    text-transform: uppercase;
    text-shadow: none;
    filter: drop-shadow(0 3px 6px rgba(249, 115, 22, 0.4));
    position: relative;
    z-index: 1;
}

/* ============================================
   Theme Toggle Switch 🌓
   ============================================ */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    position: relative;
    z-index: 1;
}

.theme-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle input:checked+.theme-slider {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.theme-toggle input:checked+.theme-slider:before {
    transform: translateX(30px);
    background-color: #F1F5F9;
}

.theme-slider:hover {
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

body.dark-theme .theme-slider:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Main Grid Layout
   ============================================ */
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   University Switcher Dropdown
   ============================================ */
.university-switcher {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 100;
}

.uni-btn {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Geologica', sans-serif;
    border: 2.5px solid #E5E7EB;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    color: #6B7280;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    outline: none;
}

.uni-btn:hover {
    border-color: #3B82F6;
    color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.uni-btn.active {
    border-color: #3B82F6;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.uni-btn.active:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Theme University Buttons */
body.dark-theme .uni-btn {
    background: linear-gradient(145deg, #1E293B 0%, #334155 100%);
    border-color: #475569;
    color: #94A3B8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .uni-btn:hover {
    border-color: #3B82F6;
    color: #60A5FA;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

body.dark-theme .uni-btn.active {
    border-color: #3B82F6;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

body.dark-theme .uni-btn.active:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* University Form Toggle */
.university-form {
    display: none;
}

.university-form.active {
    display: block;
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Premium Card - Clean White with Shadow
   ============================================ */
.glass-card {
    background: linear-gradient(145deg, #ffffff 0%, #F0F9FF 50%, #E0F2FE 100%);
    border-radius: 24px;
    border: 5px solid transparent;
    padding: 2rem;
    box-shadow:
        0 0 40px rgba(6, 182, 212, 0.35),
        0 0 80px rgba(14, 165, 233, 0.3),
        0 12px 50px rgba(16, 185, 129, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-image:
        linear-gradient(145deg, #ffffff 0%, #F0F9FF 50%, #E0F2FE 100%),
        linear-gradient(135deg,
            #06B6D4 0%,
            #0EA5E9 25%,
            #22D3EE 50%,
            #10B981 75%,
            #06B6D4 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-panel {
    animation-delay: 0.5s;
}

.preview-panel {
    animation-delay: 0.7s;
}

/* Canvas stage and layout overlay for drag handles */
.canvas-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.canvas-stage {
    position: relative;
    /* Keep canvas centered and responsive */
    max-width: 100%;
    display: inline-block;
}
#card-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: optimizeQuality;
}
.layout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* disabled by default */
}
.layout-overlay[data-hidden="true"] {
    display: none;
}
.layout-overlay[data-hidden="false"] {
    display: block;
}
.canvas-stage.layout-edit-mode .layout-overlay,
.layout-overlay[data-hidden="false"] {
    pointer-events: auto;
}
.layout-handle {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    cursor: grab;
    user-select: none;
    touch-action: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.layout-handle:active {
    cursor: grabbing;
}
.layout-handle span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Removed animated border for better performance */

/* Removed ::after for better performance */

/* All content above the background */
.glass-card>* {
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 50px rgba(6, 182, 212, 0.5),
        0 0 100px rgba(14, 165, 233, 0.4),
        0 18px 60px rgba(16, 185, 129, 0.3);
}

/* Dark Theme Glass Card */
body.dark-theme .glass-card {
    background: #1E293B;
    border: 5px solid transparent;
    box-shadow:
        0 0 30px rgba(34, 211, 238, 0.2),
        0 0 60px rgba(56, 189, 248, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.5);
    background-image:
        linear-gradient(145deg, #1E293B 0%, #334155 50%, #1E293B 100%),
        linear-gradient(135deg,
            #22D3EE 0%,
            #38BDF8 25%,
            #67E8F9 50%,
            #34D399 75%,
            #22D3EE 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.dark-theme .glass-card:hover {
    box-shadow:
        0 0 40px rgba(34, 211, 238, 0.4),
        0 0 80px rgba(56, 189, 248, 0.25),
        0 15px 50px rgba(0, 0, 0, 0.6);
}

/* Simplified hover effect */

/* Removed rotate-border animation for better performance */

/* ============================================
   Form Panel Styles
   ============================================ */
.form-panel h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 30%, #10B981 60%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.4));
    position: relative;
    padding: 0.75rem 0;
}

/* Đã bỏ thanh gạch dưới tiêu đề form */
/* .form-panel h2::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #06B6D4 20%,
        #0EA5E9 50%,
        #10B981 80%,
        transparent 100%);
    border-radius: 2px;
} */

/* Form Row Layout */
.form-row-single,
.form-row-triple {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

/* Hide MSSV, Major, Class row (Student CA) */
.form-row-triple {
    display: none !important;
}

/* Form Group with Border Container */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* Label Styles (for hidden fields only) */
.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

/* Field labels in form-field-row use .field-label class instead */

/* Input Field Styles - Clean Inline Design */
input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0 18px;
    background: #FFFFFF;
    border: 2.5px solid #D1D5DB;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: default;
    position: relative;
    height: 60px;
}

/* Input inside form-field-row */
.form-field-row input[type="text"],
.form-field-row input[type="email"] {
    height: 100%;
}

input[type="text"]:hover,
input[type="email"]:hover {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #06B6D4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Readonly/Disabled Styles */
input[type="text"][readonly],
input[type="email"][readonly],
select[disabled] {
    cursor: default;
    background: #F9FAFB;
    opacity: 0.9;
}

/* Dark Theme Inputs */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme select {
    background: #1E293B;
    border-color: #475569;
    color: #F1F5F9;
}

body.dark-theme input[type="text"]:hover,
body.dark-theme input[type="email"]:hover {
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

body.dark-theme input[type="text"]:focus,
body.dark-theme input[type="email"]:focus,
body.dark-theme select:focus {
    border-color: #22D3EE;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

body.dark-theme input[type="text"][readonly],
body.dark-theme input[type="email"][readonly],
body.dark-theme select[disabled] {
    background: #0F172A;
    opacity: 0.8;
}

select {
    padding-left: 3.5rem;
}

select:not([disabled]) {
    cursor: pointer;
}

/* Input Icons for hidden fields (Student CA form) */
.form-group {
    position: relative;
}

.form-group[data-icon]::before {
    content: '';
    position: absolute;
    left: 12px;
    font-size: 17px;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
    opacity: 0.65;
    top: 50%;
    transform: translateY(-50%);
}

.form-group[data-icon="mssv"]::before {
    content: '🎫';
}

/* Inputs with data-icon still need left padding */
.form-group[data-icon] input {
    padding-left: 38px;
}

/* Form Field Row - Label | Input | Copy Button */
.form-field-row {
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 3px solid transparent;
    border-radius: 18px;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.2);
    will-change: transform, box-shadow;
    position: relative;
    background-clip: padding-box;
}

.form-field-row::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #10B981 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.form-field-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.25);
}

/* Dark Theme Form Field Row */
body.dark-theme .form-field-row {
    background: #1E293B;
    border: 3px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background-image:
        linear-gradient(145deg, #1E293B 0%, #334155 100%),
        linear-gradient(135deg, #38BDF8 0%, #22D3EE 50%, #34D399 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.dark-theme .form-field-row::before {
    display: none;
}

body.dark-theme .form-field-row:hover {
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
}

/* Field Label - Beautiful styled label */
.field-label {
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #0284C7 100%);
    color: white;
    padding: 0 1.25rem;
    border-radius: 14px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    position: relative;
    overflow: hidden;
    cursor: default;
    height: 60px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    will-change: transform;
}

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

.field-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.5);
}

.field-label:hover::before {
    opacity: 1;
}

/* External Copy Button - Right Side - Enhanced */
.copy-btn-external {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    min-height: 56px;
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

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

.copy-btn-external:hover::before {
    opacity: 1;
}

.copy-btn-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

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

.copy-btn-external:active::before {
    width: 100px;
    height: 100px;
}

.copy-btn-external.copied {
    animation: copySuccessExternal 0.6s ease;
    background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
}

@keyframes copySuccessExternal {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2) rotate(10deg);
    }

    50% {
        transform: scale(1.15) rotate(-10deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1);
    }
}

/* ============================================
   VLU Control Panel - Slider Based
   ============================================ */
.vlu-control-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f6f8fb 0%, #fafbfd 100%);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Dark Theme Control Panel */
body.dark-theme .vlu-control-panel {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border-color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .vlu-control-panel h3 {
    color: #F1F5F9;
}

body.dark-theme .control-label {
    color: #F1F5F9;
}

body.dark-theme .slider-label {
    color: #CBD5E1;
}

body.dark-theme .slider-label span {
    color: #F1F5F9;
}

body.dark-theme .slider {
    background: #475569;
}

body.dark-theme .control-group {
    border-bottom-color: #475569;
}

.vlu-control-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.control-group:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.control-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.slider-label {
    min-width: 80px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.slider-label span {
    display: inline-block;
    min-width: 40px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 700;
}

/* Custom Slider Styling */
.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.6);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.6);
}

.slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
}

/* Control Actions */
.control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.update-btn {
    padding: 0.875rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.update-btn:active {
    transform: translateY(0);
}

.auto-update-btn {
    padding: 0.875rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.auto-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.auto-update-btn:active {
    transform: translateY(0);
}

.auto-update-btn.active {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.reset-btn {
    padding: 0.875rem;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.reset-btn:active {
    transform: translateY(0);
}

/* ============================================
   Action Buttons Wrapper - Like field rows
   ============================================ */
.action-buttons-wrapper {
    background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 28px rgba(6, 182, 212, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    will-change: transform, box-shadow;
    position: relative;
    background-clip: padding-box;
}

.action-buttons-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #10B981 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.action-buttons-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.25);
}

/* Dark Theme Action Buttons Wrapper */
body.dark-theme .action-buttons-wrapper {
    background: #1E293B;
    border: 3px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background-image:
        linear-gradient(145deg, #1E293B 0%, #334155 100%),
        linear-gradient(135deg, #38BDF8 0%, #22D3EE 50%, #34D399 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.dark-theme .action-buttons-wrapper::before {
    display: none;
}

body.dark-theme .action-buttons-wrapper:hover {
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
}

.action-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Verify Link Input - Above Verify Button */
.verify-link-input {
    grid-column: 1 / -1;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Geologica', sans-serif;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.verify-link-input:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.verify-link-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #f8f9ff;
}

.verify-link-input::placeholder {
    color: #999;
}

/* Dark theme for verify link input */
body.dark-theme .verify-link-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-theme .verify-link-input:hover {
    border-color: #a5b4fc;
    background: rgba(255, 255, 255, 0.15);
}

body.dark-theme .verify-link-input:focus {
    border-color: #a5b4fc;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.2);
}

body.dark-theme .verify-link-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Button width classes */
.btn-full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.btn-half-width {
    width: 100%;
}

/* PDF Button - Different Color */
.btn-pdf {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.btn-pdf:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

body.dark-theme .btn-pdf {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-theme .btn-pdf:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ============================================
   Button Styles - Premium
   ============================================ */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

button {
    position: relative;
    padding: 1.125rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1;
    vertical-align: middle;
}

button::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.6s, height 0.6s;
}

button:active::after {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: translateY(0);
}

/* Random Button - Premium Gradient */
/* Random Button - Ocean Blue Gradient */
#gen-random,
#gen-random-vlu,
#gen-random-ucl,
#gen-random-asu {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #0284C7 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.75px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5);
    width: 100%;
    height: 60px;
    min-height: 60px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

#gen-random::before,
#gen-random-vlu::before,
#gen-random-ucl::before,
#gen-random-asu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gen-random:hover::before,
#gen-random-vlu:hover::before,
#gen-random-ucl:hover::before,
#gen-random-asu:hover::before {
    opacity: 1;
}

#gen-random:hover,
#gen-random-vlu:hover,
#gen-random-ucl:hover,
#gen-random-asu:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}

/* Download PNG Button - Teal to Emerald Gradient */
#download-png,
#download-png-vlu,
#download-png-ucl,
#download-png-asu {
    background: linear-gradient(135deg, #06B6D4 0%, #10B981 50%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    height: 56px;
    min-height: 56px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#download-png::before,
#download-png-vlu::before,
#download-png-ucl::before,
#download-png-asu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#download-png:hover::before,
#download-png-vlu:hover::before,
#download-png-ucl:hover::before,
#download-png-asu:hover::before {
    opacity: 1;
}

#download-png:hover,
#download-png-vlu:hover,
#download-png-ucl:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
}

/* Download PDF Button - Gray Gradient */
#download-pdf,
#download-pdf-vlu,
#download-pdf-ucl,
#download-pdf-asu {
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 50%, #6B7280 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
    height: 56px;
    min-height: 56px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#download-pdf::before,
#download-pdf-vlu::before,
#download-pdf-ucl::before,
#download-pdf-asu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#download-pdf:hover::before,
#download-pdf-vlu:hover::before,
#download-pdf-ucl:hover::before,
#download-pdf-asu:hover::before {
    opacity: 1;
}

#download-pdf:hover,
#download-pdf-vlu:hover,
#download-pdf-ucl:hover,
#download-pdf-asu:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 114, 128, 0.5);
}

/* ============================================
   Custom Modal Confirmation Dialog
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: modalOverlayFade 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes modalOverlayFade {
    from {
        background: rgba(17, 24, 39, 0);
        backdrop-filter: blur(0px);
    }

    to {
        background: rgba(17, 24, 39, 0.5);
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.25),
        0 0 0 1px rgba(6, 182, 212, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(6, 182, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0EA5E9, #06B6D4, #10B981);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Dark Theme Modal */
body.dark-theme .modal-overlay {
    background: rgba(15, 23, 42, 0.6);
}

body.dark-theme .modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(51, 65, 85, 0.95));
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(34, 211, 238, 0.15);
}

@keyframes modalSlideUp {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.3));
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-360deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.15) rotate(10deg);
    }

    70% {
        transform: scale(0.95) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

body.dark-theme .modal-title {
    background: linear-gradient(135deg, #38BDF8, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-btn {
    padding: 1rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-btn::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.6s, height 0.6s;
}

.modal-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.modal-btn-confirm:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.modal-btn-confirm:active {
    transform: translateY(-1px) scale(0.98);
}

.modal-btn-cancel {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    color: var(--text-secondary);
}

.modal-btn-cancel:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #E5E7EB, #D1D5DB);
}

.modal-btn-cancel:active {
    transform: translateY(-1px) scale(0.98);
}

body.dark-theme .modal-btn-cancel {
    background: linear-gradient(135deg, #334155, #475569);
    color: #CBD5E1;
}

body.dark-theme .modal-btn-cancel:hover {
    background: linear-gradient(135deg, #475569, #64748B);
}

/* ============================================
   Preview Panel Styles
   ============================================ */
.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preview-panel h2 {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #10B981 0%, #06B6D4 30%, #0EA5E9 60%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.4));
    position: relative;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

/* Đã bỏ thanh gạch dưới tiêu đề preview */
/* .preview-panel h2::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #10B981 20%,
        #06B6D4 50%,
        #0EA5E9 80%,
        transparent 100%);
    border-radius: 2px;
} */

.canvas-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 20px;
    padding: 1.5rem;
    border: 3px solid transparent;
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.2);
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.canvas-stage {
    position: relative;
    width: 100%;
}

.canvas-stage canvas {
    display: block;
}

.layout-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.layout-overlay[data-hidden="true"] {
    opacity: 0;
}

.canvas-container.layout-edit-mode .layout-overlay {
    pointer-events: auto;
    opacity: 1;
}

.layout-handle {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(14, 165, 233, 0.2);
    border: 1.5px dashed rgba(14, 165, 233, 0.7);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    cursor: grab;
    user-select: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.layout-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(14, 165, 233, 0.35);
}

.layout-handle span {
    pointer-events: none;
}

.canvas-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.canvas-container.loading::after {
    content: '⏳ Đang tải...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Dark Theme Canvas Container */
body.dark-theme .canvas-container {
    background: #1E293B;
    border-color: #475569;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

#card-canvas {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#card-canvas.updating {
    animation: canvasUpdate 0.6s ease;
}

@keyframes canvasUpdate {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

.layout-control-panel {
    margin-top: 1.5rem;
    border: 2px dashed rgba(14, 165, 233, 0.35);
    border-radius: 20px;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

body.dark-theme .layout-control-panel {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.35);
}

.layout-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.layout-control-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.layout-control-note {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: #475569;
}

body.dark-theme .layout-control-note {
    color: #CBD5F5;
}

.layout-mode-btn {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.layout-mode-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.layout-mode-btn.is-active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.layout-mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.layout-control-panel .layout-field {
    margin-top: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.layout-control-panel .layout-field:first-of-type {
    border-top: none;
    padding-top: 0.5rem;
}

.layout-field-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.layout-field-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.layout-control-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    width: 100%;
}

body.dark-theme .layout-control-subtitle {
    color: #CBD5F5;
}

.layout-position-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.layout-position-group {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.layout-position-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

body.dark-theme .layout-position-group label {
    color: #CBD5F5;
}

.layout-position-input {
    accent-color: #0EA5E9;
}

.layout-position-value {
    font-weight: 600;
    color: #0F172A;
}

body.dark-theme .layout-position-value {
    color: #E2E8F0;
}

.layout-font-input {
    flex: 1;
    accent-color: #0EA5E9;
}

.layout-font-value {
    min-width: 60px;
    text-align: right;
    font-weight: 600;
    color: #0F172A;
}

body.dark-theme .layout-font-value {
    color: #E2E8F0;
}

.layout-reset-btn,
.layout-reset-all {
    border: 1px solid rgba(14, 165, 233, 0.3);
    background: transparent;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #0EA5E9;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.layout-reset-btn:hover,
.layout-reset-all:hover {
    background: rgba(14, 165, 233, 0.1);
    color: #0284C7;
    border-color: rgba(14, 165, 233, 0.6);
}

.layout-reset-all {
    width: 100%;
    padding: 0.65rem 1rem;
    margin-top: 1rem;
}

.layout-control-actions {
    margin-top: 0.5rem;
}

.layout-control-panel.layout-panel-disabled {
    opacity: 0.6;
}

.layout-control-panel.layout-panel-disabled button,
.layout-control-panel.layout-panel-disabled input {
    pointer-events: none;
}

    50% {
        transform: scale(0.98);
        filter: brightness(1.1);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* ============================================
   Notification Styles
   ============================================ */
.notification {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-150px);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    color: var(--text-primary);
    padding: 1.25rem 2rem;
    padding-left: 4rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background-image: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%),
        linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #0EA5E9 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 380px;
    max-width: 550px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.6;
    overflow: visible;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.notification:hover {
    box-shadow: 0 12px 48px rgba(14, 165, 233, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.notification:active {
    transform: translateX(-50%) translateY(0) scale(0.97);
}

.notification::before {
    content: '✓';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: checkmarkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
}

@keyframes checkmarkPop {
    0% {
        transform: translateY(-50%) scale(0) rotate(-360deg);
        opacity: 0;
        box-shadow: 0 0 0 rgba(16, 185, 129, 0);
    }

    50% {
        transform: translateY(-50%) scale(1.15) rotate(15deg);
    }

    100% {
        transform: translateY(-50%) scale(1) rotate(0deg);
        opacity: 1;
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    }
}



.notification.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

@keyframes notificationSlideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-150px) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(15px) scale(1.02);
    }

    70% {
        transform: translateX(-50%) translateY(-8px) scale(0.98);
    }

    85% {
        transform: translateX(-50%) translateY(4px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes notificationBounce {
    0% {
        transform: translateX(500px);
        opacity: 0;
    }

    50% {
        transform: translateX(-15px);
    }

    70% {
        transform: translateX(8px);
    }

    85% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark Theme Notification */
body.dark-theme .notification {
    background-image: linear-gradient(135deg, #1E293B 0%, #0F172A 100%),
        linear-gradient(135deg, #34D399 0%, #22D3EE 50%, #38BDF8 100%);
    color: #F1F5F9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-theme .notification:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8),
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(34, 211, 238, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-theme .notification::before {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive Design - Large Tablet
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .glass-card {
        padding: 1.75rem;
    }

    .notification {
        top: 1.25rem;
        min-width: 360px;
        max-width: 480px;
    }
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 1.5rem 1rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    header {
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .university-switcher {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 95%;
    }

    .uni-btn {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }

    .glass-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .button-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Notification mobile optimization */
    .notification {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(-150px);
        min-width: auto;
        max-width: none;
        width: calc(100% - 2rem);
        padding: 1.125rem 1.5rem;
        padding-left: 3.5rem;
        font-size: 0.925rem;
        z-index: 99999;
    }

    .notification.show {
        transform: translateX(0) translateY(0) !important;
    }

    .notification::before {
        width: 2.125rem;
        height: 2.125rem;
        left: 1.125rem;
        font-size: 1.15rem;
    }

    @keyframes notificationSlideDown {
        0% {
            opacity: 0;
            transform: translateX(0) translateY(-150px) scale(0.9);
        }

        50% {
            opacity: 1;
            transform: translateX(0) translateY(10px) scale(1.02);
        }

        70% {
            transform: translateX(0) translateY(-5px) scale(0.98);
        }

        85% {
            transform: translateX(0) translateY(3px) scale(1.01);
        }

        100% {
            opacity: 1;
            transform: translateX(0) translateY(0) scale(1);
        }
    }

    .notification:hover {
        box-shadow: 0 12px 48px rgba(14, 165, 233, 0.35),
            0 8px 24px rgba(0, 0, 0, 0.15),
            0 0 20px rgba(6, 182, 212, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .notification:active {
        transform: translateX(0) translateY(0) scale(0.97);
    }

    .action-buttons-wrapper {
        padding: 0.75rem;
    }

    #gen-random,
    #gen-random-vlu,
    #gen-random-ucl,
    #gen-random-asu,
    #download-png,
    #download-png-vlu,
    #download-png-ucl,
    #download-png-asu,
    #download-pdf,
    #download-pdf-vlu,
    #download-pdf-ucl,
    #download-pdf-asu {
        height: 48px;
        font-size: 0.9rem;
    }

    .form-row-triple {
        gap: 1rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .notification {
        right: 1rem;
        top: 1rem;
        min-width: auto;
        left: 1rem;
    }

    .form-field-row {
        grid-template-columns: 100px 1fr 48px;
        gap: 0.75rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .field-label {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        height: 48px;
        padding: 0 0.75rem;
    }

    .copy-btn-external {
        width: 48px;
        height: 48px;
        min-height: 48px;
        font-size: 20px;
    }

    .form-field-row input[type="text"],
    .form-field-row input[type="email"] {
        height: 48px;
        font-size: 0.875rem;
    }
}

/* ============================================
   Medium screens - Compact mode
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 1.25rem 0.875rem;
    }

    header {
        padding: 1rem 1.25rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .university-switcher {
        flex-direction: column;
        gap: 0.6rem;
        max-width: 95%;
    }

    .university-label {
        font-size: 0.95rem;
    }

    .university-dropdown {
        font-size: 0.85rem;
        padding: 0.7rem 2.5rem 0.7rem 1rem;
        gap: 0.325rem;
        letter-spacing: -0.015em;
    }

    .form-field-row {
        grid-template-columns: 48px 1fr 48px;
        gap: 0.625rem;
        padding: 0.75rem;
    }

    .field-label {
        width: 48px;
        min-width: 48px;
        padding: 0;
        justify-content: center;
        font-size: 1.25rem;
        gap: 0;
    }

    .field-label .label-text {
        display: none;
    }

    .copy-btn-external {
        width: 48px;
        height: 48px;
    }

    .form-field-row input[type="text"],
    .form-field-row input[type="email"] {
        height: 48px;
        font-size: 0.875rem;
    }

    .notification {
        top: 0.875rem;
        left: 0.875rem;
        right: 0.875rem;
        width: calc(100% - 1.75rem);
        padding: 1rem 1.25rem;
        padding-left: 3.25rem;
        font-size: 0.875rem;
    }

    .notification::before {
        width: 2rem;
        height: 2rem;
        left: 1rem;
        font-size: 1.1rem;
    }
}

/* ============================================
   Small Mobile - Extra compact
   ============================================ */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 1rem 0.75rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    header {
        padding: 0.875rem 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    header h1 {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    /* Notification extra small mobile */
    .notification {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        width: calc(100% - 1.5rem);
        padding: 0.95rem 1.125rem;
        padding-left: 3.125rem;
        font-size: 0.85rem;
        border-radius: 14px;
        z-index: 99999;
    }

    .notification::before {
        width: 1.875rem;
        height: 1.875rem;
        left: 0.95rem;
        font-size: 1.05rem;
    }

    @keyframes checkmarkPop {
        0% {
            transform: translateY(-50%) scale(0) rotate(-360deg);
            opacity: 0;
        }

        50% {
            transform: translateY(-50%) scale(1.1) rotate(15deg);
        }

        100% {
            transform: translateY(-50%) scale(1) rotate(0deg);
            opacity: 1;
        }
    }

    .theme-toggle-wrapper {
        margin-top: 0.625rem;
        gap: 0.75rem;
    }

    .theme-icon {
        font-size: 1.25rem;
    }

    .university-switcher {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .uni-btn {
        font-size: 0.75rem;
        padding: 0.65rem 0.5rem;
    }

    /* Extra small screens - more compact */
    @media (max-width: 380px) {
        .uni-btn {
            padding: 0.6rem 0.4rem;
            font-size: 0.7rem;
        }
    }

    /* Tiny screens - ultra compact */
    @media (max-width: 340px) {
        .uni-btn {
            padding: 0.55rem 0.35rem;
            font-size: 0.65rem;
        }

        .university-switcher {
            gap: 0.4rem;
        }

        .university-dropdown {
            font-size: 0.75rem;
            padding: 0.6rem 2.5rem 0.6rem 0.9rem;
        }
    }

    .glass-card {
        padding: 1.125rem;
        margin-bottom: 1.25rem;
    }

    .form-panel h2,
    .preview-panel h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    button {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    input[type="text"],
    input[type="email"],
    select {
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
    }

    .form-field-row {
        grid-template-columns: 46px 1fr 46px;
        gap: 0.625rem;
        padding: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .field-label {
        width: 46px;
        min-width: 46px;
        height: 46px;
        padding: 0;
        justify-content: center;
        font-size: 1.2rem;
        gap: 0;
    }

    .field-label .label-text {
        display: none;
    }

    .copy-btn-external {
        width: 46px;
        height: 46px;
        min-height: 46px;
        font-size: 19px;
    }

    .form-field-row input[type="text"],
    .form-field-row input[type="email"] {
        height: 46px;
        font-size: 0.85rem;
        padding: 0.625rem 0.875rem;
    }

    .modal-buttons {
        grid-template-columns: 1fr;
    }

    .action-buttons-wrapper {
        padding: 0.625rem;
    }

    .action-buttons-group {
        gap: 0.75rem;
    }

    #gen-random,
    #gen-random-vlu,
    #gen-random-ucl,
    #gen-random-asu,
    #download-png,
    #download-png-vlu,
    #download-png-ucl,
    #download-png-asu,
    #download-pdf,
    #download-pdf-vlu,
    #download-pdf-ucl,
    #download-pdf-asu {
        height: 44px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        background: white;
    }

    .gradient-bg,
    button,
    .notification {
        display: none !important;
    }

    .glass-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible for Keyboard Navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.bg-white {
    background: var(--bg-secondary);
}

.bg-light {
    background: var(--bg-tertiary);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   UCL Controls Section
   ============================================ */
#ucl-controls {
    display: block;
}

#ucl-controls .form-row-triple {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

#ucl-controls .form-group {
    display: flex !important;
    flex-direction: column;
}

#ucl-controls .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

#ucl-controls .form-group label span {
    color: var(--accent-blue);
    font-weight: 700;
    min-width: 60px;
    text-align: right;
    margin-left: auto;
}

/* Slider Styling */
#ucl-controls input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
}

#ucl-controls input[type="range"]:hover {
    opacity: 1;
}

#ucl-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

#ucl-controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    border: none;
}

/* ============================================
   Extension Banner Styles 🔌
   ============================================ */
.extension-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    z-index: 9999;
    animation: slideInUp 0.5s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.extension-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.extension-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.extension-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.extension-banner-text strong {
    font-size: 1rem;
    font-weight: 700;
}

.extension-banner-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.extension-banner-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.extension-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.extension-banner-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.extension-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.extension-banner.hidden {
    animation: slideOutDown 0.5s ease-in forwards;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* Responsive Extension Banner */
@media (max-width: 768px) {
    .extension-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .extension-banner-content {
        flex-wrap: wrap;
    }

    .extension-banner-text {
        flex-basis: 100%;
    }
}

/* ============================================
   Verify Button Styles 🚀
   ============================================ */
.verify-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
        transform: scale(1.05);
    }
}

.verify-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    animation: none;
}

.verify-button:active {
    transform: translateY(0) scale(1);
}

/* ============================================
   Verify Modal Styles 🎓
   ============================================ */
.verify-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.verify-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.verify-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 35px;
    max-width: 550px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.verify-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
}

.verify-modal-close:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.verify-modal-close:active {
    background: #f0f0f0;
    transform: translateY(0);
}

.verify-modal-title {
    color: white;
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Verify Sections */
.verify-section {
    margin-bottom: 22px;
}

.verify-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.verify-regenerate-btn {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    border: 2px solid rgba(255, 193, 7, 0.5);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.verify-regenerate-btn:hover {
    background: #ffc107;
    border-color: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

.verify-regenerate-btn:active {
    transform: scale(0.98);
}

.verify-input {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.verify-input:focus {
    outline: none;
    border-color: #ffc107;
    background: white;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

/* School Buttons */
.verify-school-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.verify-school-btn {
    padding: 12px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.verify-school-btn:hover {
    background: rgba(33, 136, 56, 1);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.verify-school-btn.selected {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    transform: scale(1.05);
}

/* Info Display */
.verify-info-display {
    background: rgba(255, 255, 255, 0.95);
    color: #28a745;
    padding: 14px;
    border-radius: 10px;
    min-height: 60px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: pre-wrap;
    word-break: break-word;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

/* Action Buttons */
.verify-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verify-btn {
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.verify-btn .btn-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.verify-btn .btn-text {
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex: 1;
}

.verify-btn .btn-step {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    font-weight: 600;
    opacity: 0.8;
    flex-shrink: 0;
}

.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.7);
    position: relative;
}

.verify-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.verify-btn:disabled::after {
    content: '🔒';
    position: absolute;
    right: 15px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.verify-btn-copy {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.verify-btn-copy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.verify-btn-pdf {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.verify-btn-pdf:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.verify-btn-open {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    margin-bottom: 15px;
}

.verify-btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

/* Status */
.verify-status {
    color: white;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    min-height: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .verify-button {
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .verify-modal-content {
        padding: 25px 20px;
        max-width: 95%;
    }

    .verify-modal-close {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.85rem;
        background: white;
        border-color: #667eea;
    }

    .verify-school-buttons {
        grid-template-columns: 1fr;
    }

    .verify-regenerate-btn {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .verify-btn {
        font-size: 0.95rem;
        padding: 14px 16px;
        min-height: 52px;
        gap: 8px;
    }

    .verify-btn .btn-icon {
        font-size: 1.2rem;
    }

    .verify-btn .btn-text {
        font-size: 0.9rem;
    }

    .verify-btn .btn-step {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .verify-modal-title {
        font-size: 1.5rem;
    }

    .verify-label {
        font-size: 0.9rem;
    }

    .verify-input {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* ============================================
   New Button Styles - Beautiful Colors
   ============================================ */

/* Primary Button - Cyan Blue */
.btn-primary {
    background: linear-gradient(135deg, #06B6D4 0%, #0EA5E9 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
    transform: translateY(-2px);
}

/* Download Button - Emerald Green */
.btn-download {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.btn-download:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
    transform: translateY(-2px);
}

/* PDF Button - Orange */
.btn-pdf-new {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.btn-pdf-new:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4) !important;
    transform: translateY(-2px);
}

/* Verify Button - Purple */
.btn-verify-new {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    font-weight: 700 !important;
}

.btn-verify-new:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
    transform: translateY(-2px) scale(1.02);
}

/* Desktop Only - Hide on Mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* ============================================
   Verify Modal Styles
   ============================================ */
.verify-modal {
    max-width: 500px !important;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: rotate(90deg);
}

body.dark-theme .modal-close {
    color: #666;
}

body.dark-theme .modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.verify-input-container {
    margin: 20px 0;
}

.verify-modal-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 3px solid #8B5CF6;
    border-radius: 12px;
    outline: none;
    font-family: 'Geologica', sans-serif;
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
}

body.dark-theme .verify-modal-input {
    background: #1E293B;
    border-color: #7C3AED;
    color: var(--text-primary);
}

.verify-modal-input:focus {
    border-color: #7C3AED;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.verify-modal-input::placeholder {
    color: #999;
}

body.dark-theme .verify-modal-input::placeholder {
    color: #666;
}

.modal-btn-verify {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.modal-btn-verify:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* ============================================
   LOGIN SCREEN STYLES 🔐
   ============================================ */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.login-container {
    background: linear-gradient(145deg, #ffffff 0%, #F8FAFC 100%);
    border-radius: 28px;
    padding: 56px 48px;
    max-width: 460px;
    width: 90%;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-header h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-group input {
    padding: 16px 20px;
    border: 2.5px solid #e0e0e0;
    border-radius: 14px;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
}

.login-error {
    background: #fee;
    color: #c00;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 2px solid #fcc;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px) scale(1.02);
}

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

.login-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.login-footer p {
    color: #999;
    font-size: 0.85rem;
}

/* ============================================
   HEADER IMPROVEMENTS 🎯
   ============================================ */

header {
    position: relative;
    margin-bottom: 24px;
}

/* Header Top - New Layout */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-title {
    flex: 1 1 auto;
    min-width: 200px;
}

.header-title h1 {
    margin-bottom: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Download Extension Button */
.download-extension-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.download-extension-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px) scale(1.05);
}

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

.download-icon {
    font-size: 1.2rem;
}

.download-text {
    white-space: nowrap;
}

/* Logout Button */
.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.logout-btn:active {
    transform: translateY(0);
}

/* ============================================
   ENHANCED MOBILE RESPONSIVE 📱
   ============================================ */

/* Tablet & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .header-top {
        gap: 12px;
    }

    .header-title h1 {
        font-size: 1.8rem;
    }

    .header-actions {
        gap: 10px;
    }
}

/* Mobile Landscape & Small Tablet (640px - 768px) */
@media (max-width: 768px) {
    /* Login Screen */
    .login-container {
        padding: 32px 24px;
        max-width: 92%;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-icon {
        font-size: 3rem;
    }

    /* Header Improvements */
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-title {
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.6rem;
        margin-bottom: 4px;
    }

    .header-title .subtitle {
        font-size: 0.95rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .theme-toggle-wrapper {
        order: 1;
    }

    .download-extension-btn {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 14px;
        min-width: 120px;
    }

    .download-text {
        font-size: 0.8rem;
    }

    .download-icon {
        font-size: 1.1rem;
    }

    .logout-btn {
        order: 3;
        padding: 10px 12px;
        flex-shrink: 0;
    }

    /* University Switcher */
    .university-switcher {
        gap: 8px;
    }

    .uni-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Main Content Grid */
    main {
        gap: 1.5rem;
    }

    /* Form Panel */
    .form-panel h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .form-grid {
        gap: 1rem;
    }

    /* Buttons */
    .btn-full-width {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .action-buttons-group {
        gap: 10px;
    }

    /* Card Preview */
    .card-preview {
        padding: 1.5rem;
    }

    #studentCard {
        transform: scale(0.9);
    }
}

/* Mobile Portrait (480px - 640px) */
@media (max-width: 640px) {
    /* Login */
    .login-container {
        padding: 28px 20px;
    }

    /* Header */
    .header-title h1 {
        font-size: 1.4rem;
    }

    .header-actions {
        gap: 6px;
    }

    .download-extension-btn {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .download-icon {
        font-size: 1rem;
    }

    /* University Buttons - Stack on very small screens */
    .university-switcher {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .uni-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* Form */
    .form-panel {
        padding: 1.5rem;
    }

    .form-grid {
        gap: 0.875rem;
    }

    input, select, textarea {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn-full-width {
        padding: 11px 16px;
        font-size: 0.9rem;
    }

    /* Card */
    #studentCard {
        transform: scale(0.85);
    }
}

/* Small Mobile (380px - 480px) */
@media (max-width: 480px) {
    /* Login */
    .login-container {
        padding: 24px 16px;
        max-width: 95%;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    .login-icon {
        font-size: 2.5rem;
    }

    .login-btn {
        font-size: 1rem;
        padding: 14px;
    }

    .form-group input {
        padding: 12px 14px;
    }

    .login-hint {
        font-size: 0.85rem;
    }

    /* Header - Ultra Compact */
    .header-title h1 {
        font-size: 1.25rem;
    }

    .header-title .subtitle {
        font-size: 0.85rem;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .theme-toggle-wrapper {
        order: 1;
        flex: 0 0 auto;
    }

    .download-extension-btn {
        order: 2;
        flex: 1 1 100%;
        padding: 10px;
        font-size: 0.85rem;
    }

    .download-text {
        font-size: 0.8rem;
    }

    .logout-btn {
        order: 3;
        flex: 0 0 auto;
        padding: 10px;
        font-size: 1.1rem;
    }

    /* University Switcher - Full Stack */
    .university-switcher {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .uni-btn {
        padding: 12px;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Form Panel */
    .form-panel {
        padding: 1.25rem;
    }

    .form-panel h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-grid {
        gap: 0.75rem;
    }

    input, select, textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    label {
        font-size: 0.85rem;
    }

    /* Action Buttons */
    .action-buttons-group {
        flex-direction: column;
        gap: 8px;
    }

    .btn-full-width {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Card Preview */
    .card-preview {
        padding: 1rem;
    }

    #studentCard {
        transform: scale(0.75);
    }

    .card-preview h2 {
        font-size: 1.1rem;
    }
}

/* Extra Small Mobile (< 380px) */
@media (max-width: 380px) {
    .header-title h1 {
        font-size: 1.1rem;
    }

    .download-extension-btn {
        font-size: 0.75rem;
        padding: 8px;
    }

    .uni-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .form-panel {
        padding: 1rem;
    }

    .btn-full-width {
        padding: 10px;
        font-size: 0.85rem;
    }

    #studentCard {
        transform: scale(0.65);
    }
}

/* ============================================
   Footer Styles 🎯
   ============================================ */
.app-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #F0F9FF 50%, #E0F2FE 100%);
    border-radius: 20px;
    border: 5px solid transparent;
    box-shadow: 
        0 0 30px rgba(6, 182, 212, 0.3),
        0 0 60px rgba(14, 165, 233, 0.25),
        0 10px 40px rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    background-image:
        linear-gradient(145deg, #ffffff 0%, #F0F9FF 50%, #E0F2FE 100%),
        linear-gradient(135deg,
            #06B6D4 0%,
            #0EA5E9 25%,
            #22D3EE 50%,
            #10B981 75%,
            #06B6D4 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.app-footer:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 40px rgba(6, 182, 212, 0.5),
        0 0 80px rgba(14, 165, 233, 0.35),
        0 15px 50px rgba(16, 185, 129, 0.25);
}

body.dark-theme .app-footer {
    background: #1E293B;
    border: 5px solid transparent;
    box-shadow:
        0 0 30px rgba(34, 211, 238, 0.2),
        0 0 60px rgba(56, 189, 248, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.5);
    background-image:
        linear-gradient(145deg, #1E293B 0%, #334155 50%, #1E293B 100%),
        linear-gradient(135deg,
            #22D3EE 0%,
            #38BDF8 25%,
            #67E8F9 50%,
            #34D399 75%,
            #22D3EE 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.dark-theme .app-footer:hover {
    box-shadow:
        0 0 40px rgba(34, 211, 238, 0.4),
        0 0 80px rgba(56, 189, 248, 0.25),
        0 15px 50px rgba(0, 0, 0, 0.6);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Geologica', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.footer-btn .btn-icon {
    font-size: 1.5rem;
}

.footer-btn .btn-text {
    font-size: 1rem;
    letter-spacing: 0.3px;
}

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

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

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 14px;
    color: #667eea;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.footer-info .info-icon {
    font-size: 1.5rem;
}

.footer-info .info-text {
    font-size: 1rem;
    letter-spacing: 0.3px;
}

body.dark-theme .footer-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #a5b4fc;
    border-color: rgba(165, 180, 252, 0.3);
}

.footer-extension-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.footer-extension-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.footer-extension-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.footer-logout-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.footer-logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.2));
    border-color: #dc2626;
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.35);
    transform: translateY(-3px) scale(1.02);
}

.footer-logout-btn:active {
    transform: translateY(-1px) scale(0.98);
}

body.dark-theme .footer-logout-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

body.dark-theme .footer-logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.25));
    border-color: #dc2626;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .app-footer {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
    }

    .footer-btn .btn-icon {
        font-size: 1.3rem;
    }

    .footer-btn .btn-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .app-footer {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.875rem;
    }

    .footer-btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .footer-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .footer-btn .btn-icon {
        font-size: 1.2rem;
    }

    .footer-btn .btn-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   Extension Download Button & Modal
   ============================================ */

.footer-extension-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
}

.footer-extension-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    }
}

/* Extension Modal */
.extension-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.extension-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.extension-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-light);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.extension-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    transform: rotate(90deg);
}

.extension-modal-body {
    padding: 2rem;
}

.extension-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.extension-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.step-content p {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-note {
    margin-top: 0.5rem !important;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.step-content code {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #8B5CF6;
    font-size: 0.9rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.download-link:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.extension-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
    display: flex;
    justify-content: center;
}

.extension-footer .btn-primary {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.extension-footer .btn-primary:hover {
    background: linear-gradient(135deg, #0284C7 0%, #0891B2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* Responsive Extension Modal */
@media (max-width: 640px) {
    .extension-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .extension-modal-header h3 {
        font-size: 1.25rem;
    }

    .extension-modal-body {
        padding: 1.5rem;
    }

    .extension-step {
        gap: 0.875rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }
}