/* ==========================================================================
   CoM PROJECT - CORE PREMIUM DESIGN SYSTEM (DARK THEME)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-dark-base: #090314; /* Deepest cosmic violet dark space background */
    --bg-dark-mid: #120725;  /* Rich celestial dark purple background */
    --bg-dark-light: #1e0e37;/* Deep cosmic violet card background */
    
    --accent-purple: #9d4edd;/* Electric neon purple main accent */
    --accent-purple-glow: rgba(157, 78, 221, 0.45);
    --accent-cyan: #00f0ff;  /* Glowing cyan */
    --accent-cyan-glow: rgba(0, 240, 255, 0.45);
    --accent-gold: #ffd700;  /* Celestial gold */
    --accent-gold-glow: rgba(255, 215, 0, 0.45);
    
    --glass-bg: rgba(23, 11, 46, 0.6);
    --glass-border: rgba(0, 240, 255, 0.15); /* Cyan neon glow border */
    --glass-shadow: rgba(4, 1, 10, 0.85);
    
    --text-primary: #ffffff;
    --text-secondary: #ebdcfc; /* Soft lavender text tint */
    --text-muted: #9f8bb5;     /* Steel cosmic purple/lavender text */
    --text-error: #ff4d6d;
    
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark-base);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(120, 0, 220, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 120, 255, 0.22) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-light);
    border-radius: 4px;
    border: 2px solid var(--bg-dark-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Dynamic Watermark Overlay Style */
.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none; /* Allows clicks to pass through */
    overflow: hidden;
    user-select: none;
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px var(--glass-shadow);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Screen Switcher Mechanics */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.screen.hidden {
    display: none !important;
}

/* Toast/Alert Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 215, 0, 0.95);
    color: var(--bg-dark-base);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    z-index: 100000;
    transition: var(--transition-smooth);
}

.toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

/* ==========================================================================
   PAGE 1: LOGIN STYLING
   ========================================================================== */
#login-screen {
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 90vh;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.logo-orb {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-purple), var(--bg-dark-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 25px rgba(156, 77, 255, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo-orb span {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.brand-title {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 35px;
}

/* Forms */
.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    background: rgba(30, 14, 55, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 15px 15px 45px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(10, 4, 22, 0.8);
    box-shadow: 0 0 15px rgba(156, 77, 255, 0.2);
}

.input-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* Custom Premium Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple), #004cff);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(156, 77, 255, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(156, 77, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-30deg);
    transition: 0.75s;
}

.btn-primary:hover .btn-glow {
    left: 120%;
}

/* Error Message */
.error-msg {
    margin-top: 20px;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.25);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

#error-text {
    font-size: 0.85rem;
    color: var(--text-error);
    font-weight: 500;
    text-align: left;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.secured-badge {
    margin-top: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   PAGE 2: DASHBOARD STYLING
   ========================================================================== */
#dashboard-screen {
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 10px;
}

.app-header {
    width: 100%;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--bg-dark-light));
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent-gold);
}

.header-brand h2 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.user-welcome {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-welcome span {
    font-weight: 700;
    color: var(--accent-gold);
}

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

/* Button Configurations */
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 10px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    color: var(--text-error);
    padding: 10px 18px;
    border-radius: 10px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-danger:hover {
    background: var(--text-error);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

.content-wrapper {
    width: 100%;
}

.section-title-wrapper {
    margin-bottom: 30px;
}

.section-title {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(156, 77, 255, 0.1);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Uniform Cards Layout */
.uniform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 25px;
    margin-bottom: 50px;
}

.uniform-card {
    cursor: pointer;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.uniform-card:hover {
    transform: translateY(-6px);
    border-color: rgba(156, 77, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(156, 77, 255, 0.1);
}

.card-image-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
}

/* Custom Colored Placeholders representing Pony Town vibes */
.uniform-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cavalry-bg {
    background: linear-gradient(135deg, #102a75, #2251cc);
}

.nightguard-bg {
    background: linear-gradient(135deg, #1b0a3d, #42116e);
}

.forest-bg {
    background: linear-gradient(135deg, #163d27, #2c6e3b);
}

.uniform-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.uniform-card:hover .uniform-icon {
    transform: scale(1.15) rotate(5deg);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 50px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-badge.highlight {
    border-color: var(--accent-purple);
    color: #e5ccff;
    background: rgba(156, 77, 255, 0.25);
    box-shadow: 0 0 10px var(--accent-purple-glow);
}

.card-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-info h4 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-card {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-purple);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.uniform-card:hover .btn-card {
    color: var(--accent-gold);
    text-shadow: 0 0 8px var(--accent-gold-glow);
}

/* ==========================================================================
   PAGE 3: DETAILS STYLING
   ========================================================================== */
#uniform-details-screen {
    min-height: 100vh;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-header);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-right: 15px;
}

.btn-back:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.text-glow {
    text-shadow: 0 0 10px var(--accent-purple-glow);
}

.detail-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    grid-gap: 25px;
    margin-bottom: 50px;
}

.uniform-preview-card {
    overflow: hidden;
    margin-bottom: 25px;
}

.uniform-preview-display {
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 4, 22, 0.4);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.large-icon {
    font-size: 7rem;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
}

.preview-info {
    padding: 22px;
    border-top: 1px solid var(--glass-border);
}

.preview-info h3 {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.preview-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.warning-box {
    padding: 20px;
    border: 1px solid rgba(255, 77, 109, 0.2);
    background: rgba(255, 77, 109, 0.03);
}

.warning-box h5 {
    font-family: var(--font-header);
    color: var(--text-error);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.warning-box p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.detail-content-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-card {
    padding: 25px 30px;
}

.card-heading {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    border-left: 3px solid var(--active-accent-color, var(--accent-purple));
    padding-left: 12px;
}

/* Steps List */
.step-list {
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.palette-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Color Palettes Grid */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    grid-gap: 15px;
}

.color-tile {
    cursor: pointer;
    background: rgba(30, 14, 55, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.color-tile:hover {
    transform: translateY(-3px);
    background: rgba(10, 4, 22, 0.7);
    border-color: var(--accent-purple);
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.color-preview-box {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.color-label {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.color-hex {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 500;
}

/* ==========================================================================
   MODAL & ADMIN STYLING
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition-smooth);
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 100%;
    max-width: 700px;
    padding: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    color: var(--text-error);
}

.modal-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    background: rgba(30, 14, 55, 0.5);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.admin-table th, .admin-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-table th {
    background: rgba(255,255,255,0.02);
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-primary);
}

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

.badge-status {
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-status.locked {
    background: rgba(255, 77, 109, 0.15);
    color: var(--text-error);
    border: 1px solid rgba(255, 77, 109, 0.2);
}

.badge-status.unlocked {
    background: rgba(12, 194, 91, 0.15);
    color: #0cc25b;
    border: 1px solid rgba(12, 194, 91, 0.2);
}

.btn-table-action {
    background: rgba(156, 77, 255, 0.15);
    border: 1px solid rgba(156, 77, 255, 0.3);
    color: #e5ccff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.btn-table-action:hover {
    background: var(--accent-purple);
    color: white;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE FRIENDLY)
   ========================================================================== */
@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-visual-column {
        position: static;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 90%;
    }
    
    .app-container {
        padding: 10px;
    }
    
    .app-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    
    .header-brand {
        justify-content: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .section-title-wrapper {
        text-align: center;
    }
    
    .uniform-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 15px;
        max-width: 95%;
    }
}

/* ==========================================================================
   NEW SECTION LAYOUT STYLES (COSMIC BLUE DOCX STYLE)
   ========================================================================== */
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section-card {
    padding: 22px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-left: 3px solid var(--active-accent-color, var(--accent-purple));
    padding-left: 12px;
}

.section-header-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--active-accent-color, #00ffff);
    background: transparent;
    border: none;
    padding: 0;
    text-transform: uppercase;
}

.section-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    width: 100%;
}

.section-media-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
    width: 100%;
}

.section-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    background: rgba(30, 14, 55, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.section-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px var(--accent-cyan-glow);
}

.section-colors-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.color-pair-card {
    background: rgba(20, 10, 40, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 9px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: none;
}

.color-pair-card:hover {
    background: rgba(45, 20, 85, 0.55);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: none;
}

.slot-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 90px;
    flex-shrink: 0;
}

.slot-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex: 1;
}

/* Divider between fill and outline */
.slot-actions.has-outline {
    gap: 8px;
}

.color-box-copyable {
    display: flex;
    flex-direction: row;
    gap: 8px;
    cursor: pointer;
    background: rgba(30, 14, 55, 0.45);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 8px;
    padding: 6px 10px;
    align-items: center;
    transition: var(--transition-smooth);
    flex: 1;
    min-width: 0;
}

.color-box-copyable:hover {
    background: rgba(138, 43, 226, 0.18);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    transform: none;
}

.color-box-copyable:hover .color-swatch {
    transform: scale(1.08);
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.color-box-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    display: none;
}

.color-box-value {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-box-value.locked {
    color: var(--text-error);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.color-box-copyable.disabled {
    cursor: not-allowed;
    background: rgba(15, 8, 28, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
    opacity: 0.75;
}

.color-box-copyable.disabled:hover {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(15, 8, 28, 0.4);
    transform: none;
    box-shadow: none;
}

.color-box-copyable.disabled .color-swatch {
    background-color: transparent !important;
    border: 1px dashed rgba(255, 77, 109, 0.35);
    box-shadow: none;
}

/* Nickname container special */
.nickname-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 14, 55, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.nickname-box:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.nickname-text {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 15px;
}

.nickname-copy-btn {
    background: linear-gradient(135deg, var(--accent-gold), #cca000);
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    color: #06020c;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.nickname-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Print Prevention Protection (Blackout) */
@media print {
    body, html, main, .app-container {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* ==========================================================================
   LIGHTBOX ZOOM MODAL (PREMIUM VIEW)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 1;
    transition: var(--transition-smooth);
}

.lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.2);
    border: 2px solid rgba(0, 240, 255, 0.3);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox:hover .lightbox-img {
    transform: scale(1.02);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-muted);
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.lightbox-close:hover {
    color: var(--text-error);
    transform: scale(1.1);
}

.lightbox-caption {
    font-family: var(--font-header);
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   SECTION DESCRIPTION & PREMIUM CHECKBOX PANEL STYLES
   ========================================================================== */
.section-description-wrapper {
    background: rgba(22, 11, 46, 0.45);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.desc-header {
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.desc-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.desc-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.desc-checkbox.unchecked {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.desc-checkbox.checked {
    border: 1px solid var(--accent-purple);
    background: linear-gradient(135deg, var(--accent-purple), #6a0dad);
    box-shadow: 0 0 8px var(--accent-purple-glow);
}

.desc-checkbox-text {
    line-height: 1.3;
    font-family: var(--font-body);
}

/* ==========================================================================
   DISCORD INVITE BANNER STYLING
   ========================================================================== */
.discord-invite-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin: 40px auto 30px auto;
    max-width: 680px;
    background: rgba(88, 101, 242, 0.08); /* Transparent Discord Blue */
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(88, 101, 242, 0.05);
    gap: 20px;
    transition: var(--transition-smooth);
}

.discord-invite-banner:hover {
    border-color: rgba(88, 101, 242, 0.45);
    background: rgba(88, 101, 242, 0.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(88, 101, 242, 0.15);
    transform: translateY(-2px);
}

.discord-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.discord-logo-wrapper {
    width: 48px;
    height: 48px;
    background: #5865f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    flex-shrink: 0;
}

.discord-icon-svg {
    width: 26px;
    height: 26px;
}

.discord-banner-text h4 {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.discord-banner-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-discord-join {
    background: #5865f2;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-discord-join:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

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

.btn-discord-glow {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-30deg);
    transition: 0.75s;
}

.btn-discord-join:hover .btn-discord-glow {
    left: 120%;
}

/* Responsiveness for Discord Banner */
@media (max-width: 600px) {
    .discord-invite-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        gap: 15px;
        text-align: center;
    }
    
    .discord-banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .discord-logo-wrapper {
        margin: 0 auto;
    }
    
    .btn-discord-join {
        width: 100%;
    }
}
