/* SheerID Verify - Design System v2
   Theme: AI Image Generation Platform
   Style: Dark Mode + Glassmorphism + Neubrutalism + Vibrant Creative Accents
   
   Color Palette:
   - Primary Gradient: Violet → Fuchsia → Orange (creative AI feel)
   - Background: Deep Space Black with gradient overlays
   - Accent: Electric Violet, Hot Pink, Neon Orange
   - Glass: Frosted with rainbow refraction edges
*/

/* ==================== CSS Variables ==================== */
:root {
    /* Dark Mode Background Gradient - Deep Space */
    --bg-dark: #0a0a0f;
    --bg-gradient-1: #0f0f1a;
    --bg-gradient-2: #1a0a2e;
    --bg-gradient-3: #0a1628;

    /* Vibrant Accent Colors - Creative AI Palette */
    --accent-violet: #8b5cf6;
    --accent-fuchsia: #d946ef;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-yellow: #fbbf24;

    /* Primary Gradient */
    --gradient-primary: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-fuchsia) 50%, var(--accent-orange) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    --gradient-success: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);

    /* Glass Colors - Enhanced with color tints */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-accent: rgba(139, 92, 246, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --glass-glow: rgba(139, 92, 246, 0.2);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Neubrutalism - Vibrant version */
    --neu-bg: #ffffff;
    --neu-bg-alt: #fef3c7;
    --neu-border: #1e1e2f;
    --neu-shadow: #1e1e2f;
    --neu-offset: 4px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(217, 70, 239, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 60% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Grid pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* ==================== Container ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== Header - Glass with Glow ==================== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header h1 {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    user-select: none;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
}

.header h1:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8)) drop-shadow(0 0 16px rgba(217, 70, 239, 0.6)) drop-shadow(0 0 24px rgba(249, 115, 22, 0.4));
    animation: logoGlow 0.5s ease;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.4));
    }

    25% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 1)) drop-shadow(0 0 30px rgba(217, 70, 239, 0.8));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(217, 70, 239, 1)) drop-shadow(0 0 30px rgba(249, 115, 22, 0.8));
    }

    75% {
        filter: drop-shadow(0 0 20px rgba(249, 115, 22, 1)) drop-shadow(0 0 30px rgba(6, 182, 212, 0.8));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8)) drop-shadow(0 0 16px rgba(217, 70, 239, 0.6));
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==================== Credits Display - Gradient Pill ==================== */
.credits-display {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    background-image: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(217, 70, 239, 0.1));
    box-shadow:
        0 4px 20px var(--glass-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    user-select: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credits-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    transition: left 0.5s ease;
}

.credits-display:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(217, 70, 239, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: creditsGlow 0.5s ease;
}

.credits-display:hover::before {
    left: 100%;
}

@keyframes creditsGlow {
    0% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(217, 70, 239, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(217, 70, 239, 0.4);
    }
}

/* Credits icon - emoji */
.credits-icon {
    display: inline-block;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.credits-display:hover .credits-icon {
    transform: scale(1.3) rotate(-25deg);
}

/* Credits text */
.credits-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.credits-display:hover .credits-text {
    transform: scale(1.1);
}

.credits-display #user-credits {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ==================== Buttons - Neubrutalism with Gradients ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 3px solid var(--neu-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    position: relative;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--neu-offset) var(--neu-offset) 0 var(--neu-shadow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--neu-shadow);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--neu-shadow);
}

.btn-secondary {
    background: var(--neu-bg);
    color: var(--neu-border);
    box-shadow: var(--neu-offset) var(--neu-offset) 0 var(--neu-shadow);
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--neu-shadow);
    background: var(--neu-bg-alt);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: var(--neu-offset) var(--neu-offset) 0 var(--neu-shadow);
}

.btn-danger:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--neu-shadow);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--neu-offset) var(--neu-offset) 0 var(--neu-shadow);
}

.btn-success:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--neu-shadow);
}

/* ==================== Cards - Glassmorphism with Rainbow Edge ==================== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Rainbow edge glow */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

/* Inner highlight */
.card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-accent);
    box-shadow:
        0 12px 40px var(--glass-shadow),
        0 0 30px var(--glass-glow);
}

.card-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== Form Elements - Neubrutalism ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 3px solid var(--neu-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-main);
    background: var(--neu-bg);
    color: var(--neu-border);
    box-shadow: var(--neu-offset) var(--neu-offset) 0 var(--neu-shadow);
    transition: all 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--neu-shadow);
    border-color: var(--accent-violet);
}

.form-group input::placeholder {
    color: rgba(30, 30, 47, 0.4);
}

/* ==================== Main Section ==================== */
.main-section {
    padding: 48px 0;
}

.verify-box {
    max-width: 620px;
    margin: 0 auto;
}

/* ==================== Messages ==================== */
.message {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-weight: 500;
    border: 2px solid;
    backdrop-filter: blur(10px);
}

.message-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.message-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #f87171;
}

.message-info {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-violet);
    color: var(--accent-violet);
}

.message a {
    color: var(--accent-fuchsia);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==================== Login Page ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 25px 60px var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 36px;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Tabs ==================== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--glass-border);
    margin-bottom: 28px;
}

.tab {
    padding: 14px 28px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--accent-fuchsia);
    border-bottom-color: var(--accent-fuchsia);
}

/* ==================== Admin Layout ==================== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

.sidebar {
    width: 240px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 28px 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet);
}

.sidebar-menu li a.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-fuchsia);
    border-left-color: var(--accent-fuchsia);
}

.admin-content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

/* ==================== Grid ==================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==================== Stat Cards ==================== */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--glass-glow);
}

.stat-card .number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .label {
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ==================== Pricing Cards ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-violet);
    box-shadow:
        0 24px 48px var(--glass-shadow),
        0 0 40px var(--glass-glow);
}

.pricing-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-card .price {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card .credits {
    color: var(--text-secondary);
    margin: 12px 0;
    font-weight: 500;
}

/* ==================== Tutorial Section ==================== */
.tutorial-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 36px;
    border-radius: var(--radius-xl);
    margin-top: 36px;
    position: relative;
    overflow: hidden;
}

.tutorial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
}

#tutorial-content {
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ==================== Table ==================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 18px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table th {
    background: rgba(139, 92, 246, 0.1);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table td {
    font-family: var(--font-mono);
    font-size: 14px;
}

/* ==================== Status Badges ==================== */
.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pagination button {
    padding: 12px 18px;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.pagination button:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-violet);
}

.pagination button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

/* ==================== Loading ==================== */
.loading {
    text-align: center;
    padding: 28px;
    color: var(--text-muted);
}

/* ==================== Action Buttons with Flowing Glow ==================== */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.action-btn-gold {
    color: #d4a574;
    border: 2px solid #8b6914;
}

.action-btn-gold:hover {
    background: rgba(212, 165, 116, 0.1);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4), 0 0 40px rgba(212, 165, 116, 0.2), inset 0 0 20px rgba(212, 165, 116, 0.1);
    border-color: #d4a574;
}

.action-btn-cyan {
    color: #00d4ff;
    border: 2px solid #006680;
}

.action-btn-cyan:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #0a0a12;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 100, 150, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-textarea {
    width: 100%;
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

.modal-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modal-textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
}

.modal-submit-btn {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, #00a8cc, #0077a8);
    border-color: transparent;
}

/* ==================== Two Column Verification Layout ==================== */
.verify-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.verify-input-panel,
.verify-log-panel {
    background: #0a0a12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--text-primary);
}

.verify-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verify-type-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}

.credits-cost {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 14px;
}

.credits-cost span {
    color: #00d4ff;
    font-weight: 600;
}

/* Watermark overlay for textarea */
.verify-input-wrapper {
    position: relative;
    flex: 1;
}

.verify-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    line-height: 1.6;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.2s ease;
}

.verify-watermark p {
    margin: 4px 0;
}

.verify-watermark .format-hint {
    color: rgba(0, 212, 255, 0.5);
}

.verify-textarea {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 200px;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    resize: vertical;
    caret-color: #00d4ff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.verify-textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

/* Cost row between buttons */
.verify-cost-row {
    padding: 12px 20px;
    text-align: right;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.verify-cost-row span {
    color: #00d4ff;
    font-weight: 700;
}

/* Clear button with margin */
.btn-clear-link {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #f87171;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.btn-clear-link:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.25));
}

.btn-verify {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-verify:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-clear-log {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-clear-log:hover {
    background: rgba(255, 255, 255, 0.15);
}

.verify-log-content {
    padding: 16px 20px;
    min-height: 300px;
    max-height: 450px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 13px;
}

.log-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-entry.success {
    color: #00ff88;
}

.log-entry.error {
    color: #ff6666;
}

.log-entry.info {
    color: #00d4ff;
}

/* Responsive */
@media (max-width: 900px) {
    .verify-two-column {
        grid-template-columns: 1fr;
    }
}

/* ==================== Hidden ==================== */
.hidden {
    display: none !important;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 32px 24px;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropBounce {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }

    50% {
        transform: translateY(8px) scale(1.01);
    }

    70% {
        transform: translateY(-4px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--glass-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--glass-glow);
    }
}

.card {
    animation: fadeInUp 0.4s ease-out;
}

.verify-box .card {
    animation: dropBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-card {
    animation: dropBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-fill-mode: both;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card {
    animation: dropBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-fill-mode: both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.2s;
}

/* Hover glow for interactive elements */
.btn-primary:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-violet);
}

/* ==================== Tutorial Blocks ==================== */
.tutorial-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Base block style */
.tutorial-block {
    border-radius: 12px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Block Type: Header */
.block-header {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-header .block-icon {
    font-size: 24px;
}

/* Block Type: Info Teal */
.block-info-teal {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-left: 4px solid #06b6d4;
    color: #5eead4;
}

.block-info-teal .block-icon {
    color: #22d3ee;
}

/* Block Type: Info Yellow */
.block-info-yellow {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-left: 4px solid #fbbf24;
    color: #fde68a;
}

.block-info-yellow .block-icon {
    color: #fbbf24;
}

/* Block Type: Status */
.block-status {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.block-status .status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.block-status .status-badge.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Block Type: Link */
.block-link {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(6, 182, 212, 0.25);
    text-align: center;
    padding: 20px;
}

.block-link .link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.block-link .link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.block-link .link-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

/* Block Type: Tip */
.block-tip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left: 4px solid #10b981;
    color: #6ee7b7;
}

.block-tip .block-icon {
    color: #34d399;
}

/* Block Type: Warning */
.block-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(248, 113, 113, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.block-warning .block-icon {
    color: #f87171;
}

/* Block content styling */
.block-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.block-content .block-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.block-content .block-text {
    flex: 1;
    line-height: 1.6;
}

.block-content .block-text a {
    color: #22d3ee;
    text-decoration: underline;
}

/* Admin Block Editor Styles */
.block-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.block-editor-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-editor-item .block-type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.block-type-badge.header {
    background: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.block-type-badge.info-teal {
    background: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.block-type-badge.info-yellow {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.block-type-badge.status {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.block-type-badge.link {
    background: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.block-type-badge.tip {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.block-type-badge.warning {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.block-editor-item .block-preview {
    flex: 1;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-editor-item .block-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.block-editor-item .block-actions button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.block-actions .btn-move {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.block-actions .btn-edit {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.block-actions .btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.block-actions button:hover {
    transform: scale(1.1);
}

.add-block-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.add-block-row select {
    flex: 1;
}

.add-block-row button {
    flex-shrink: 0;
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: toastSlideIn 0.3s ease-out;
    pointer-events: auto;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast.toast-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.toast-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95) 0%, rgba(8, 145, 178, 0.95) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast .toast-icon {
    font-size: 16px;
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-out forwards;
}

/* ==================== Reset Stat Buttons ==================== */
.btn-reset-stat {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.stat-card:hover .btn-reset-stat {
    opacity: 1;
}

.btn-reset-stat:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: #f87171;
    transform: rotate(90deg);
}

/* ==================== User Page Full Width Layout ==================== */
/* Main content container - full width */
.main-section .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tutorial section - centered but narrower */
.tutorial-section {
    max-width: 760px;
    margin: 0 auto 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.tutorial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

/* Two column verify layout - full width */
.verify-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 100%;
    margin: 0;
}

/* Verify input and log panels - compact padding */
.verify-input-panel,
.verify-log-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    position: relative;
}

/* Log panel needs overflow visible for proper scrolling */
.verify-log-panel {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.verify-input-panel::before,
.verify-log-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-secondary);
}

/* Panel header - minimal height */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

/* Panel header row - title and button on same line */
.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.panel-header-row .panel-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

/* Verify actions row - minimal */
.verify-actions {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 8px;
}

.verify-type-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gradient-secondary);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.verify-type-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.verify-type-btn.active {
    background: var(--gradient-secondary);
    color: white;
}

/* Verify input wrapper with watermark - Larger size */
.verify-input-wrapper {
    position: relative;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    min-height: 320px;
}

/* Watermark text inside input area */
.verify-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.verify-watermark p {
    margin: 0 0 4px 0;
}

.verify-watermark .format-hint {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(6, 182, 212, 0.7);
    margin-left: 8px;
}

/* Textarea overlays watermark - purple text, larger font */
.verify-textarea {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    color: #a855f7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.02em;
    resize: none;
    outline: none;
    z-index: 2;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Hide watermark when textarea has content */
.verify-textarea:not(:placeholder-shown)+.verify-watermark,
.verify-input-wrapper.has-content .verify-watermark {
    display: none;
}

.verify-input-wrapper:focus-within {
    border-color: var(--accent-cyan);
}

/* Cost row */
.verify-cost-row {
    text-align: right;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.verify-cost-row span {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Clear link button */
.btn-clear-link {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #f87171;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.btn-clear-link:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Verify button */
.btn-verify {
    width: 100%;
    padding: 14px;
    background: var(--gradient-secondary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* Log panel */
.btn-clear-log {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-clear-log:hover {
    background: rgba(255, 255, 255, 0.2);
}

.verify-log-content {
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
}

/* Log entry with simple gradient border */
.log-entry {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid transparent;
    background-image: linear-gradient(rgba(20, 20, 35, 0.9), rgba(20, 20, 35, 0.9)),
        linear-gradient(90deg, var(--accent-violet), var(--accent-fuchsia), var(--accent-cyan));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    font-size: 13px;
    line-height: 1.4;
    flex-shrink: 0;
    min-height: 36px;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Log entry text styles */
.log-entry .log-time {
    color: var(--text-muted);
    font-size: 11px;
}

.log-entry .log-text {
    color: var(--text-secondary);
}

.log-entry.log-success .log-text {
    color: var(--accent-green);
}

.log-entry.log-error .log-text {
    color: #f87171;
}

.log-entry.log-info .log-text {
    color: var(--accent-cyan);
}

/* Task Statistics Row */
.task-stats-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.task-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: rgba(20, 20, 35, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.task-stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

.task-stat-item .stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Success stat - green accent */
.task-stat-item.stat-success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.task-stat-item.stat-success .stat-value {
    color: var(--accent-green);
}

/* Failed stat - red accent */
.task-stat-item.stat-failed {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
}

.task-stat-item.stat-failed .stat-value {
    color: #f87171;
}

/* ==================== Action Buttons with Hover Effects ==================== */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(20, 20, 35, 0.8);
}

.action-btn .btn-icon {
    font-size: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.action-btn .btn-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Gold button (购买积分) */
.action-btn-gold {
    border-color: #fbbf24;
    color: #fbbf24;
}

.action-btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    transition: left 0.5s ease;
}

/* Cyan button (兑换积分) */
.action-btn-cyan {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.action-btn-cyan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
    transition: left 0.5s ease;
}

/* Hover effects */
.action-btn:hover .btn-icon {
    transform: scale(1.3) rotate(-25deg);
}

.action-btn:hover .btn-text {
    transform: scale(1.1);
}

.action-btn:hover::before {
    left: 100%;
}

/* Border glow animation on hover */
.action-btn-gold:hover {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5),
        inset 0 0 20px rgba(251, 191, 36, 0.1);
    animation: borderGlowGold 0.5s ease;
}

.action-btn-cyan:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5),
        inset 0 0 20px rgba(6, 182, 212, 0.1);
    animation: borderGlowCyan 0.5s ease;
}

@keyframes borderGlowGold {
    0% {
        box-shadow: 0 0 5px rgba(251, 191, 36, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 0 60px rgba(251, 191, 36, 0.4);
    }

    100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
}

@keyframes borderGlowCyan {
    0% {
        box-shadow: 0 0 5px rgba(6, 182, 212, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.8), 0 0 60px rgba(6, 182, 212, 0.4);
    }

    100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    }
}

/* ==================== Username Display Pill ==================== */
.username-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-accent);
    border-radius: 50px;
    font-weight: 600;
    user-select: none;
    cursor: default;
    transition: all 0.3s ease;
}

.username-display:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.username-icon {
    font-size: 14px;
}

.username-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ==================== Credits History Button ==================== */
.credits-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credits-history-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
    transition: left 0.5s ease;
}

.credits-history-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    animation: btnGlowCyan 0.5s ease;
}

.credits-history-btn:hover::before {
    left: 100%;
}

.credits-history-btn:hover .btn-icon {
    transform: scale(1.3) rotate(-25deg);
}

.credits-history-btn:hover .btn-text {
    transform: scale(1.1);
}

.credits-history-btn .btn-icon,
.credits-history-btn .btn-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

@keyframes btnGlowCyan {
    0% {
        box-shadow: 0 0 5px rgba(6, 182, 212, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
    }

    100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    }
}

/* ==================== Credits History Modal ==================== */
.credits-history-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.credits-history-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.credits-history-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border-bottom: 1px solid var(--glass-border);
}

.history-icon {
    font-size: 20px;
}

.history-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #f87171;
}

.credits-history-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.loading-spinner {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.no-history {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.history-error {
    text-align: center;
    color: #f87171;
    padding: 40px;
}

.history-section {
    margin-bottom: 24px;
}

.history-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-icon {
    font-size: 18px;
}

.section-text {
    color: #f87171;
}

.section-text-green {
    color: var(--accent-green);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
}

.item-type {
    font-size: 13px;
    font-weight: 600;
    min-width: 50px;
}

.type-success {
    color: var(--accent-cyan);
}

.type-failed {
    color: var(--text-muted);
}

.type-redemption {
    color: var(--accent-green);
}

.item-date {
    flex: 1;
    color: var(--text-secondary);
    font-size: 13px;
}

.item-amount {
    font-size: 15px;
    font-weight: 700;
}

.amount-negative {
    color: #f87171;
}

.amount-positive {
    color: var(--accent-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .verify-two-column {
        grid-template-columns: 1fr;
    }

    .main-section .container {
        padding: 0 16px;
    }
}

/* 连续失败警告弹窗 */
.failure-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.failure-warning-box {
    position: relative;
    background: linear-gradient(145deg, rgba(40, 20, 30, 0.95), rgba(60, 20, 20, 0.9));
    border: 2px solid rgba(255, 100, 100, 0.5);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 50, 50, 0.3);
    animation: slideIn 0.4s ease;
}

.failure-warning-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 100, 100, 0.3);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.failure-warning-close:hover {
    background: rgba(255, 100, 100, 0.6);
    transform: scale(1.1);
}

.failure-warning-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.failure-warning-title {
    font-size: 22px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.failure-warning-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 14px;
}

.failure-warning-content p {
    margin: 6px 0;
}

.failure-warning-content strong {
    color: #ffd93d;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 单条删除按钮 */
.btn-delete-single {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-delete-single:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

/* 悬浮刷新按钮 */
.floating-refresh-btn {
    position: fixed;
    left: 280px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-refresh-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

.floating-refresh-btn:active {
    transform: scale(0.95);
}

.floating-refresh-btn.refreshing {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==================== 价格参考 & 使用流程 两栏布局 ==================== */
.pricing-flow-section {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.pricing-left-panel,
.flow-right-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

.panel-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.panel-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 左侧：6个价格卡片 - 2行3列 */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pricing-card-new {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card-new:hover {
    transform: translateY(-4px);
    border-color: var(--accent-violet);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.pricing-card-new.featured {
    border-color: var(--accent-orange);
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
}

.pricing-card-new.featured::before {
    content: "热销";
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
}

.pricing-card-name {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.pricing-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pricing-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-card-credits {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pricing-card-stock {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    color: var(--accent-green);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

/* 右侧：使用流程 */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: var(--accent-violet);
    transform: translateX(4px);
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-fuchsia));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* 响应式：窄屏时堆叠 */
@media (max-width: 900px) {
    .pricing-flow-section {
        grid-template-columns: 1fr;
    }

    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* 库存低时红色警告文字 */
.pricing-card-stock.low-stock {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #ef4444;
}