:root {
    --deep-gold: #d19643;
    --mid-gold: #dec29b;
    --light-gold: #f2e1c7;
    --crimson: #cc4444;
    
    /* Derived color system */
    --bg: #0a0a0a;
    --bg-elevated: #121212;
    --surface: #1a1a1a;
    --surface-hover: #222222;
    --border: #2a2a2a;
    --border-light: #333333;
    
    --text: #f2e1c7;
    --text-secondary: #dec29b;
    --text-dim: #999999;
    --text-dimmer: #666666;
    
    --accent: var(--deep-gold);
    --accent-bright: var(--mid-gold);
    --accent-light: var(--light-gold);
    --accent-dim: #a67835;
    
    --error: var(--crimson);
    --error-dim: #aa3333;
    --success: #00aa66;
    --success-dim: #008855;
    --warning: #cc8800;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 16px rgba(209, 150, 67, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, var(--surface) 0%, var(--bg) 100%);
    padding: 20px;
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.login-box p {
    color: var(--text-dim);
    margin-bottom: 32px;
    font-size: 14px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95);
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1::before {
    content: '◆';
    color: var(--accent-bright);
    font-size: 16px;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

/* ============================================
   TABS
   ============================================ */

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    position: relative;
}

.tab:hover {
    color: var(--text-secondary);
    background: rgba(209, 150, 67, 0.05);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-bright));
}

/* ============================================
   TAB CONTENT
   ============================================ */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color var(--transition-base);
}

.section:hover {
    border-color: var(--border-light);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '▸';
    color: var(--accent);
    font-size: 14px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-family: 'DM Mono', 'Courier New', monospace;
    transition: all var(--transition-base);
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--border-light);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(209, 150, 67, 0.15);
    background: var(--bg-elevated);
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23dec29b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    appearance: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border-light);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: var(--crimson);
    box-shadow: 0 4px 12px rgba(204, 68, 68, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* ============================================
   ITEM LISTS
   ============================================ */

.item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
}

.item:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.item-content {
    flex: 1;
    font-size: 14px;
}

.item-content strong {
    color: var(--text);
    font-weight: 600;
}

.item-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert::before {
    content: '●';
    font-size: 20px;
}

.alert-success {
    background: rgba(0, 170, 102, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-success::before {
    color: var(--success);
}

.alert-error {
    background: rgba(204, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-error::before {
    color: var(--error);
}

/* ============================================
   PROMO PREVIEW
   ============================================ */
.promo-preview {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 32px;
}

.promo-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.promo-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.promo-info {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-label {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 11px;
    color: rgba(255,255,255,.75);
    margin-top: 4px;
    margin-bottom: 12px;
}

.promo-title {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #fff;
    margin-top: 10px;
    text-align: center;
}

.promo-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,.8);
    margin-top: 4px;
}

/* ============================================
   HELPER TEXT
   ============================================ */

.helper-text {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
}

/* ============================================
   SPECIAL INPUTS
   ============================================ */

.video-id-input {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 13px;
}

.bio-paragraph,
.bio-award {
    font-family: 'Outfit', sans-serif;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .tabs {
        gap: 4px;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .promo-preview {
        flex-direction: column;
    }
    
    .section {
        padding: 16px;
    }
    
    .login-box {
        padding: 32px 24px;
    }
    
    .item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-small {
        width: auto;
    }
    
    .item-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .item-actions .btn {
        width: 100%;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FOCUS VISIBLE (ACCESSIBILITY)
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .tabs,
    .btn,
    .item-actions {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}