/* ============================================
   BeatsourceDL Web - Premium 3D Luxury Theme
   ============================================ */

:root {
    /* Colors - Premium Luxury Theme */
    --bg-primary: #030308;
    --bg-secondary: #0a0a15;
    --bg-card: rgba(20, 20, 40, 0.6);
    --bg-card-hover: rgba(30, 30, 60, 0.8);

    /* Accent Colors - Vibrant Neon with Gold */
    --accent-primary: #00ffaa;
    --accent-secondary: #00ccff;
    --accent-tertiary: #ff00ff;
    --accent-gold: #ffd700;
    --accent-gradient: linear-gradient(135deg, #00ffaa 0%, #00ccff 50%, #9966ff 100%);
    --accent-gradient-hover: linear-gradient(135deg, #00ffcc 0%, #00ddff 50%, #aa77ff 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* 3D Text Effects */
    --text-3d-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 3px 0 rgba(0, 0, 0, 0.25),
        0 4px 0 rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.3);
    --text-glow-cyan:
        0 0 10px rgba(0, 255, 170, 0.8),
        0 0 20px rgba(0, 255, 170, 0.6),
        0 0 40px rgba(0, 255, 170, 0.4),
        0 0 80px rgba(0, 255, 170, 0.2);
    --text-glow-purple:
        0 0 10px rgba(153, 102, 255, 0.8),
        0 0 20px rgba(153, 102, 255, 0.6),
        0 0 40px rgba(153, 102, 255, 0.4);

    /* Status Colors */
    --success: #00ffaa;
    --error: #ff4466;
    --warning: #ffcc00;

    /* 3D Effects */
    --shadow-3d:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-3d-hover:
        0 30px 80px rgba(0, 255, 170, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 10px 25px rgba(0, 204, 255, 0.1);
    --glow-primary: 0 0 40px rgba(0, 255, 170, 0.5), 0 0 80px rgba(0, 255, 170, 0.25);
    --glow-secondary: 0 0 50px rgba(0, 204, 255, 0.4), 0 0 100px rgba(0, 204, 255, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-border-hover: 1px solid rgba(0, 255, 170, 0.4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Premium Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Animated Grid Pattern */
.background-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.7;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.4) 0%, rgba(0, 255, 170, 0.1) 40%, transparent 70%);
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.35) 0%, rgba(0, 204, 255, 0.1) 40%, transparent 70%);
    bottom: -250px;
    left: -250px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(153, 102, 255, 0.3) 0%, rgba(153, 102, 255, 0.08) 40%, transparent 70%);
    top: 50%;
    right: 5%;
    transform: translate(0, -50%);
    animation-delay: -14s;
    opacity: 0.5;
}

@keyframes float {

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

    25% {
        transform: translate(40px, -40px) scale(1.1) rotate(5deg);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95) rotate(-5deg);
    }

    75% {
        transform: translate(30px, 40px) scale(1.05) rotate(3deg);
    }
}

/* Container with 3D perspective */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-xl);
    transform-style: preserve-3d;
}

/* Header with 3D Text */
header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    transform: translateZ(50px);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.logo-icon {
    font-size: 5rem;
    animation: pulse3D 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 255, 170, 0.6));
    text-shadow: var(--text-glow-cyan);
}

@keyframes pulse3D {

    0%,
    100% {
        transform: scale(1) translateZ(0) rotateY(0deg);
        filter: drop-shadow(0 10px 30px rgba(0, 255, 170, 0.6));
    }

    50% {
        transform: scale(1.15) translateZ(30px) rotateY(10deg);
        filter: drop-shadow(0 20px 50px rgba(0, 255, 170, 0.9));
    }
}

.logo h1 {
    font-size: 4rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    filter:
        drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3)) drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(0, 255, 170, 0.5)) drop-shadow(0 0 60px rgba(0, 204, 255, 0.4));
    animation: titleFloat 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg);
        filter:
            drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3)) drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(0, 255, 170, 0.5)) drop-shadow(0 0 60px rgba(0, 204, 255, 0.4));
    }

    50% {
        transform: translateY(-8px) rotateX(5deg);
        filter:
            drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 8px 0 rgba(0, 0, 0, 0.3)) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 50px rgba(0, 255, 170, 0.7)) drop-shadow(0 0 100px rgba(0, 204, 255, 0.5));
    }
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.75rem;
    text-shadow:
        0 0 10px rgba(0, 204, 255, 0.5),
        0 0 20px rgba(0, 204, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: taglineGlow 3s ease-in-out infinite alternate;
}

@keyframes taglineGlow {
    0% {
        text-shadow:
            0 0 10px rgba(0, 204, 255, 0.5),
            0 0 20px rgba(0, 204, 255, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }

    100% {
        text-shadow:
            0 0 20px rgba(153, 102, 255, 0.6),
            0 0 40px rgba(153, 102, 255, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

/* Premium 3D Cards */
.card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-3d);
    transform: translateZ(0) rotateX(0deg);
    transform-style: preserve-3d;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Card 3D Shine Effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: left 0.8s ease;
}

.card:hover::before {
    left: 100%;
}

/* Card Inner Glow */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.card:hover {
    transform: translateZ(30px) rotateX(2deg) scale(1.02);
    box-shadow: var(--shadow-3d-hover);
    border: var(--glass-border-hover);
    background: var(--bg-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.card-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 170, 0.6));
    text-shadow: var(--text-glow-cyan);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(0, 255, 170, 0.6));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(0, 255, 170, 0.8));
    }
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    flex: 1;
    background: linear-gradient(135deg, #fff 0%, #00ffaa 50%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(0, 255, 170, 0.3));
}

/* Form Elements with 3D depth */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 10px rgba(0, 255, 170, 0.4),
        0 0 20px rgba(0, 255, 170, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

input[type="text"],
input[type="password"],
input[type="url"] {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

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

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(0, 255, 170, 0.15),
        0 0 30px rgba(0, 255, 170, 0.2);
    background: rgba(0, 255, 170, 0.05);
}

/* 3D Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-primary {
    width: 100%;
    background: var(--accent-gradient);
    color: #000;
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 -1px 0 rgba(0, 0, 0, 0.2);
    box-shadow:
        0 10px 30px rgba(0, 255, 170, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    border-radius: var(--radius-lg) var(--radius-lg) 50% 50%;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 255, 170, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    background: var(--accent-gradient-hover);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow:
        0 8px 20px rgba(0, 255, 170, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 255, 170, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow:
        0 10px 25px rgba(0, 255, 170, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00cc88);
    color: #000;
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3);
}

.btn-success:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

/* Button Loading State */
.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading .btn-loader {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Logout Button */
.btn-logout {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    color: var(--error);
    background: rgba(255, 68, 68, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* User Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.user-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    margin-left: auto;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.6);
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 255, 170, 0.6);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 25px rgba(0, 255, 170, 0.8);
    }
}

/* Format Selector - Premium 3D Grid */
.format-selector,
.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.format-option {
    cursor: pointer;
}

.format-option input {
    display: none;
}

.format-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 100px;
    justify-content: center;
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.format-option input:checked+.format-card {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.1);
    box-shadow:
        0 0 25px rgba(0, 255, 170, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 170, 0.1);
    transform: translateY(-5px) scale(1.05);
}

.format-option:hover .format-card {
    border-color: rgba(0, 255, 170, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 255, 170, 0.2);
}

.format-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.format-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.format-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.format-badge.premium {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 255, 170, 0.3);
}

/* Progress Section with 3D bar */
.progress-container {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.progress-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-percent {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.95rem;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    width: 0%;
    transition: width var(--transition-normal);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.progress-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Complete Section */
.complete-container {
    margin-top: var(--spacing-lg);
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(0, 255, 170, 0.05);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 40px rgba(0, 255, 170, 0.1),
        inset 0 0 30px rgba(0, 255, 170, 0.05);
}

.complete-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

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

.complete-title {
    color: var(--success);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
}

.complete-filename {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    word-break: break-all;
}

.complete-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Section */
.error-container {
    margin-top: var(--spacing-lg);
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: var(--radius-lg);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.error-title {
    color: var(--error);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.error-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Note */
.note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
}

/* Quota Box */
.quota-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.plan-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent-gradient);
    color: #000;
}

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

.quota-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.quota-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 6px;
    transition: width var(--transition-normal);
}

.quota-fill.warning {
    background: linear-gradient(90deg, var(--warning), #ff9900);
}

.quota-fill.danger {
    background: linear-gradient(90deg, var(--error), #ff0044);
}

.quota-fill.unlimited {
    background: var(--accent-gradient);
}

/* TOTP Input */
.totp-input {
    font-size: 1.8rem !important;
    letter-spacing: 0.8rem;
    text-align: center;
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-md);
    }

    .card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo h1 {
        font-size: 2.5rem;
    }

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

/* Card entrance animation */
.card {
    animation: cardEnter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(40px) translateZ(-50px) rotateX(10deg);
    }

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

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: var(--shadow-3d);
}

.toast.error {
    border-color: var(--error);
    box-shadow: 0 10px 40px rgba(255, 68, 68, 0.2);
}

.toast.success {
    border-color: var(--success);
    box-shadow: 0 10px 40px rgba(0, 255, 170, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }

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

/* Admin Panel Additional Styles */
.admin-badge {
    background: var(--accent-tertiary);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
}

.admin-tag {
    background: var(--accent-tertiary);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 8px;
}

.form-row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-row input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-row input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

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