/* ========================================
   COLOR SCHEME - PREMIUM BUSINESS PLATINUM
   ======================================== */
:root {
    /* Warm classic business backgrounds */
    --bg-primary: #1a1612;              /* Deep warm charcoal */
    --bg-secondary: #252118;            /* Warm dark slate */
    --bg-gradient-start: #1a1612;
    --bg-gradient-end: #2d2620;

    /* Glass-morphism backgrounds */
    --glass-bg: rgba(25, 22, 18, 0.75);
    --glass-bg-solid: rgba(37, 33, 24, 0.95);
    --glass-border: rgba(245, 245, 245, 0.1);

    /* Platinum shine spectrum */
    --platinum-light: #f5f5f5;
    --platinum-medium: #e0e0e0;
    --platinum-dark: #b8b8b8;
    --platinum-glow: rgba(245, 245, 245, 0.15);

    /* Refined champagne gold accents */
    --gold-primary: #c9a961;            /* Champagne gold */
    --gold-bright: #e6d5a8;             /* Light gold */
    --gold-dark: #a08645;               /* Rich dark gold */
    --gold-glow: rgba(201, 169, 97, 0.3);

    /* Premium business accents */
    --accent-teal: #5dade2;             /* Professional teal */
    --accent-bronze: #cd7f32;           /* Warm bronze */

    /* Text hierarchy */
    --text-primary: #f8f9fa;
    --text-secondary: #d3d8de;
    --text-muted: #8a95a5;

    /* Heading colors */
    --heading-h1: #e6d5a8;              /* Light gold */
    --heading-h2: #f5f5f5;              /* Platinum */
    --heading-h3: #c9a961;              /* Champagne gold */

    /* Container and border colors */
    --container-bg: rgba(25, 22, 18, 0.6);
    --container-bg-solid: rgba(37, 33, 24, 0.95);
    --border-color: #c9a961;
    --border-subtle: rgba(201, 169, 97, 0.25);

    /* Shadows with warmth */
    --shadow-light: rgba(201, 169, 97, 0.25);
    --shadow-medium: rgba(201, 169, 97, 0.35);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(201, 169, 97, 0.4);
}

/* ========================================
   RESET AND BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Seamless Flowing Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(93, 173, 226, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(205, 127, 50, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(245, 245, 245, 0.03) 0%, transparent 40%);
    z-index: -2;
    animation: flowMove 25s ease-in-out infinite;
    opacity: 0.8;
}

/* Subtle diagonal scan effect for depth */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(245, 245, 245, 0.01) 100px,
        rgba(245, 245, 245, 0.01) 102px
    );
    z-index: -1;
    animation: scanMove 30s linear infinite;
    pointer-events: none;
}

@keyframes flowMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 0%, 70% 60%;
    }
    25% {
        background-position: 30% 40%, 70% 60%, 80% 30%, 40% 90%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 50% 100%, 20% 30%;
    }
    75% {
        background-position: 60% 70%, 40% 20%, 20% 80%, 90% 50%;
    }
}

@keyframes scanMove {
    0% {
        transform: translate(0, 0) rotate(45deg);
    }
    100% {
        transform: translate(10%, 10%) rotate(45deg);
    }
}

/* ========================================
   NAVIGATION BAR - COMPACT & SLEEK
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg-solid);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-heavy);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-brand {
    font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-bright);
    text-shadow: 0 0 12px var(--shadow-light);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   SAVE/LOAD ACTION BUTTONS
   ======================================== */
.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.action-btn .btn-icon {
    font-size: 1.2rem;
}

.action-btn.load-btn:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
    border-color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(93, 173, 226, 0.5);
    transform: translateY(-1px);
}

.action-btn.save-btn:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ========================================
   BURGER MENU
   ======================================== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: var(--gold-bright);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--shadow-light);
}

.burger-menu:hover .burger-line {
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--shadow-medium);
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ========================================
   FILE STATUS INDICATOR
   ======================================== */
.file-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--glass-bg-solid);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 15px var(--shadow-heavy);
    transition: all 0.2s ease;
    text-align: center;
    max-width: 400px;
    min-width: 300px;
    cursor: pointer;
}

.file-status.loaded {
    border-color: #4caf50;
}

.file-status.unsaved {
    border-color: #ff9800;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.file-status-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-status-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    word-break: break-word;
}

.file-status-state {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.file-status.loaded .file-status-name {
    color: var(--gold-bright);
}

.file-status.unsaved .file-status-state {
    color: #ff9800;
    font-weight: 700;
}

/* Minimized square state */
.file-status.minimized {
    width: 60px;
    height: 60px;
    min-width: 60px;
    max-width: 60px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.file-status.minimized .file-status-label,
.file-status.minimized .file-status-name,
.file-status.minimized .file-status-state {
    display: none;
}

.file-status.minimized .file-status-icon {
    display: block;
    font-size: 1.8rem;
}

.file-status-icon {
    display: none;
}

/* Tooltip */
.file-status-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg-solid);
    border: 1px solid var(--gold-primary);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: var(--gold-bright);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow-heavy);
}

/* Show tooltip on hover when expanded */
.file-status:not(.minimized):hover .file-status-tooltip {
    opacity: 1;
}

/* Hide tooltip when minimized */
.file-status.minimized .file-status-tooltip {
    display: none;
}

/* Hover effect */
@media (hover: hover) and (pointer: fine) {
    .file-status:hover {
        border-color: var(--gold-primary);
        box-shadow: 0 0 20px var(--shadow-light);
    }
}

/* ========================================
   NO FILE WARNING
   ======================================== */
.no-file-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 193, 7, 0.1));
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.no-file-warning h3 {
    color: #ff9800;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.no-file-warning p {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
}

.no-file-warning strong {
    color: var(--gold-bright);
}

/* ========================================
   DRAG AND DROP OVERLAY
   ======================================== */
.drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 22, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.drop-overlay.active {
    display: flex;
}

.drop-content {
    text-align: center;
    padding: 3rem;
    border: 3px dashed var(--gold-primary);
    border-radius: 20px;
    background: var(--glass-bg);
    max-width: 500px;
}

.drop-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.drop-content h2 {
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
}

.drop-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
    padding-bottom: 0;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HERO SECTION - COMPACT & PREMIUM
   ======================================== */
.hero-section {
    width: 100%;
    height: 280px;
    background:
        linear-gradient(135deg, rgba(26, 22, 18, 0.85) 0%, rgba(45, 38, 32, 0.9) 100%),
        /* HERO BACKGROUND IMAGE: Place your hero image as "hero-bg.jpg" in the /images folder */
        url('./images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: -1.25rem -1.25rem 1.5rem -1.25rem;
    border-bottom: 2px solid var(--border-color);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(245, 245, 245, 0.08) 0%, transparent 60%);
    animation: heroShine 8s ease-in-out infinite;
}

@keyframes heroShine {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 3rem;
    background: rgba(25, 22, 18, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
    font-size: 2.75rem;
    color: var(--gold-bright);
    margin-bottom: 0.75rem;
    text-shadow:
        0 0 30px var(--shadow-light),
        2px 2px 8px var(--shadow-heavy);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--platinum-light);
    text-shadow: 1px 1px 4px var(--shadow-heavy);
    line-height: 1.4;
}

/* ========================================
   INTRO GRID - 3-COLUMN LAYOUT
   ======================================== */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Ultra-wide displays */
@media (min-width: 1600px) {
    .content-section {
        max-width: 1400px;
    }

    .intro-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .nav-container {
        max-width: 1600px;
    }
}

/* Force 3 columns on widescreen */
@media (min-width: 1200px) {
    .intro-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .intro-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.intro-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Platinum shine effect on hover */
.intro-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(245, 245, 245, 0.2) 40%,
        rgba(201, 169, 97, 0.3) 50%,
        rgba(245, 245, 245, 0.2) 60%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.intro-card:hover::before {
    opacity: 1;
    animation: platinumShine 2s linear infinite;
}

@keyframes platinumShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.intro-card:hover {
    border-color: var(--border-color);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.intro-card h2 {
    color: var(--heading-h2);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.intro-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.intro-card ul {
    list-style: none;
    padding-left: 0;
}

.intro-card ul li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.intro-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* ========================================
   KEY FEATURES SECTION
   ======================================== */
.key-features-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.key-features-section h2 {
    color: var(--heading-h1);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 15px var(--shadow-light);
}

.features-intro {
    color: var(--text-secondary);
    font-size: 1.15rem;
    text-align: center;
    margin: 0.5rem auto;
    line-height: 1.6;
    max-width: 900px;
}

.features-intro strong {
    color: var(--gold-bright);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(26, 21, 48, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-medium);
    transform: translateY(-3px);
}

.feature-item h3 {
    color: var(--gold-bright);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   QUICK START GUIDE
   ======================================== */
.quick-start {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quick-start h2 {
    color: var(--heading-h1);
    font-size: 1.9rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px var(--shadow-light);
}

.quick-start-intro {
    color: var(--text-secondary);
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
    color: #1a1612;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--shadow-medium);
    border: 2px solid var(--gold-dark);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--heading-h3);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.step-content strong {
    color: var(--gold-bright);
}

.step-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.step-content ul li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.step-content code {
    background: rgba(201, 169, 97, 0.15);
    color: var(--gold-bright);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', 'Consolas', monospace;
    font-size: 0.95em;
}

.next-steps {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(245, 245, 245, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.next-steps h3 {
    color: var(--gold-bright);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
}

.next-steps p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* ========================================
   TYPOGRAPHY - REFINED & COMPACT
   ======================================== */
h1 {
    font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
    color: var(--heading-h1);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.875rem;
    text-shadow: 0 0 15px var(--shadow-light);
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
    color: var(--heading-h2);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

h3 {
    font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
    color: var(--heading-h3);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.625rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========================================
   PLACEHOLDER CONTENT
   ======================================== */
.placeholder-content {
    background: var(--container-bg);
    border: 2px dashed var(--border-subtle);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
}

.placeholder-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-style: italic;
}

/* ========================================
   FOOTER - RELATIVE POSITIONING
   ======================================== */
.footer {
    background: var(--container-bg-solid);
    border-top: 2px solid var(--border-color);
    padding: 1rem 2rem;
    position: relative;
    width: 100%;
    box-shadow: 0 -4px 15px var(--shadow-heavy);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-text strong {
    color: var(--accent-gold);
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-platinum);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-platinum-hover);
    text-shadow: 0 0 10px var(--shadow-light);
}

.footer-links .separator {
    color: var(--accent-gold);
    font-weight: bold;
}

/* ========================================
   RESPONSIVE DESIGN - OPTIMIZED
   ======================================== */

/* Tablets and smaller */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.6rem 1rem;
        position: relative;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    /* Show burger menu */
    .burger-menu {
        display: flex;
        order: 2;
    }

    /* Mobile nav menu */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg-solid);
        backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 2px solid var(--border-color);
        border-top: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 8px 20px var(--shadow-heavy);
    }

    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
        padding: 1rem;
    }

    .nav-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: left;
        justify-content: flex-start;
    }

    .nav-actions {
        order: 3;
    }

    .action-btn .btn-text {
        display: none;
    }

    .action-btn {
        padding: 0.5rem 0.75rem;
    }

    .file-status {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .main-content {
        margin-top: 65px;
    }

    .hero-section {
        height: 220px;
        background-attachment: scroll;
        margin: 0 0 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-overlay {
        padding: 1.5rem 1.5rem;
        margin: 1rem;
    }

    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    .quick-start {
        padding: 1.25rem;
    }

    .step {
        gap: 1rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .team-stats,
    .summary-stats,
    .results-summary,
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    #timeline-container::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-marker {
        left: 5px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .nav-brand {
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .burger-menu {
        width: 28px;
        height: 22px;
    }

    .burger-line {
        height: 2.5px;
    }

    .nav-menu {
        padding: 0.75rem;
    }

    .nav-menu.active {
        padding: 0.75rem;
    }

    .nav-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    .main-content {
        margin-top: 60px;
    }

    .hero-section {
        height: 180px;
        margin: 0 0 1rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-overlay {
        padding: 1rem 1rem;
        margin: 0.75rem;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-card h2 {
        font-size: 1.35rem;
    }

    .content-section {
        padding: 0.875rem;
    }

    .quick-start {
        padding: 1rem;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .footer {
        padding: 0.75rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.4rem;
    }

    .footer-links .separator {
        display: none;
    }

    .team-stats,
    .summary-stats,
    .overview-stats {
        grid-template-columns: 1fr;
    }

    .results-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   TEAM & CREDITS TAB STYLES
   ======================================== */

/* Project Info Section */
.project-info-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-info-section h2 {
    color: var(--heading-h2);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--accent-platinum);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.char-count {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.9rem;
    float: right;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 21, 48, 0.8);
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--shadow-light);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Add Member Section */
.add-member-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.add-member-section h2 {
    color: var(--heading-h2);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Button Styles - Premium Animated */
.btn {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--platinum-light);
    border-color: var(--platinum-dark);
}

.btn-secondary:hover {
    background: var(--platinum-light);
    color: var(--bg-primary);
    border-color: var(--platinum-light);
    box-shadow: 0 0 20px rgba(245, 245, 245, 0.3);
    transform: translateY(-2px);
}

/* Export Section */
.export-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.export-section h2 {
    color: var(--heading-h2);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.export-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Team Stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-3px);
}

.stat-number {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--shadow-light);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tier Groups */
.tier-group {
    margin-bottom: 1.5rem;
}

.tier-header {
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-header:hover {
    background: rgba(36, 27, 62, 0.8);
    box-shadow: 0 0 15px var(--shadow-light);
}

.tier-header h3 {
    color: var(--heading-h3);
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tier-badge {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
    background: rgba(212, 175, 55, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.toggle-btn {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: var(--accent-gold-hover);
    transform: scale(1.1);
}

.toggle-btn.collapsed {
    transform: rotate(-90deg);
}

.toggle-btn.collapsed:hover {
    transform: rotate(-90deg) scale(1.1);
}

/* Member List */
.member-list {
    border: 2px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.member-list.collapsed {
    display: none;
}

.member-list:empty::after {
    content: 'No members in this tier yet.';
    display: block;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(26, 21, 48, 0.4);
}

.member-card {
    background: rgba(26, 21, 48, 0.5);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.member-card:last-child {
    border-bottom: none;
}

.member-card:hover {
    background: rgba(36, 27, 62, 0.6);
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.member-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.member-tier-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.action-btn.delete:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.member-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.member-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: var(--accent-platinum);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--text-secondary);
    font-size: 1rem;
}

.member-role {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.75rem;
    background: rgba(26, 21, 48, 0.6);
    border-radius: 4px;
    border-left: 3px solid var(--accent-gold);
}

.join-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments for Team tab */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .export-buttons {
        flex-direction: column;
    }

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-header {
        flex-direction: column;
        gap: 1rem;
    }

    .member-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .project-info-section,
    .add-member-section,
    .export-section {
        padding: 1.25rem;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .tier-header h3 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .member-actions {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
    }
}

/* ========================================
   PAYOUT CALCULATOR TAB STYLES
   ======================================== */

/* Calculator Input Section */
.calculator-input-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calculator-input-section h2 {
    color: var(--heading-h2);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 0.75rem;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.form-input.with-prefix {
    padding-left: 2.5rem;
}

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Team Summary Section */
.team-summary-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.team-summary-section h2 {
    color: var(--heading-h2);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: rgba(26, 21, 48, 0.6);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.summary-value {
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: bold;
}

/* Payout Recommendation */
.payout-recommendation {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(229, 228, 226, 0.1));
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recommendation-content h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.recommendation-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.recommendation-text strong {
    color: var(--accent-platinum);
}

/* Calculation Results */
.calculation-results {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calculation-results h2 {
    color: var(--heading-h1);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: rgba(26, 21, 48, 0.6);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 0 15px var(--shadow-light);
}

.result-card.highlight {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.result-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.result-value {
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: bold;
}

/* Adjustment Notice */
.adjustment-notice {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(229, 228, 226, 0.15));
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.adjustment-notice h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.adjustment-notice p {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Member Breakdown */
.member-breakdown {
    margin-bottom: 2rem;
}

.member-breakdown h3 {
    color: var(--heading-h2);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.breakdown-container {
    display: grid;
    gap: 1rem;
}

.breakdown-tier {
    margin-bottom: 1.5rem;
}

.breakdown-tier-header {
    color: var(--accent-platinum);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.breakdown-item {
    background: rgba(26, 21, 48, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    background: rgba(36, 27, 62, 0.5);
    border-color: var(--border-color);
}

.breakdown-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.breakdown-amount {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: bold;
}

/* Commit Reminder */
.commit-reminder {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.commit-reminder h3 {
    color: #ffc107;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.commit-reminder p {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.commit-reminder strong {
    color: var(--gold-bright);
}

/* Commit Actions */
.commit-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Empty State */
.empty-state {
    background: var(--container-bg);
    border: 2px dashed var(--border-subtle);
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--heading-h2);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-note {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-note strong {
    color: var(--accent-gold);
}

/* Responsive adjustments for Calculator tab */
@media (max-width: 768px) {
    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .commit-actions {
        flex-direction: column;
    }

    .commit-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calculator-input-section,
    .team-summary-section,
    .calculation-results {
        padding: 1.25rem;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }
}

/* ========================================
   DASHBOARD TAB STYLES
   ======================================== */

/* Overview Section */
.overview-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.overview-section h2 {
    color: var(--heading-h2);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: rgba(26, 21, 48, 0.6);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.overview-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--shadow-medium);
    transform: translateY(-5px);
}

.overview-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.overview-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.overview-value {
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: bold;
}

/* Export Reports Section */
.export-reports-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.export-reports-section h2 {
    color: var(--heading-h2);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.export-report-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Timeline Section */
.timeline-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h2 {
    color: var(--heading-h2);
    margin: 0;
}

/* Timeline Container */
#timeline-container {
    position: relative;
}

#timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-primary), var(--gold-dark));
    box-shadow: 0 0 10px var(--shadow-light);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--shadow-medium);
}

.timeline-content {
    background: rgba(26, 21, 48, 0.6);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--border-color);
    box-shadow: 0 0 15px var(--shadow-light);
}

.timeline-date {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.timeline-amount {
    color: var(--accent-platinum);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.timeline-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(26, 21, 48, 0.4);
    border-radius: 4px;
}

.timeline-meta-item {
    display: flex;
    flex-direction: column;
}

.timeline-meta-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.timeline-meta-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-notes {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.75rem;
    background: rgba(26, 21, 48, 0.4);
    border-radius: 4px;
    border-left: 3px solid var(--accent-gold);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-adjustment-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.timeline-members {
    margin-top: 1rem;
}

.timeline-members-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--accent-platinum);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.timeline-members-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.timeline-members-list {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(26, 21, 48, 0.3);
    border-radius: 4px;
}

.timeline-members-list.visible {
    display: grid;
}

.timeline-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(26, 21, 48, 0.5);
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.timeline-member-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.timeline-member-amount {
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: bold;
}

.timeline-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-action-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-action-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.timeline-action-btn.delete:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* Timeline Empty State */
.timeline-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.timeline-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.timeline-empty h3 {
    color: var(--heading-h2);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.timeline-empty p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive adjustments for Dashboard tab */
@media (max-width: 768px) {
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .export-report-buttons {
        flex-direction: column;
    }

    .export-report-buttons .btn {
        width: 100%;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-header .btn {
        width: 100%;
    }

    #timeline-container::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 6px;
    }

    .timeline-meta {
        grid-template-columns: 1fr;
    }

    .timeline-members-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .overview-section,
    .export-reports-section,
    .timeline-section {
        padding: 1.25rem;
    }

    .overview-stats {
        grid-template-columns: 1fr;
    }

    .overview-card {
        padding: 1.5rem 1rem;
    }

    .timeline-empty {
        padding: 2rem 1rem;
    }

    .timeline-empty-icon {
        font-size: 3rem;
    }

    .timeline-actions {
        flex-direction: column;
    }

    .timeline-action-btn {
        width: 100%;
    }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px var(--shadow-heavy);
    z-index: 10000;
    transition: bottom 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    bottom: 100px;
}

/* ========================================
   INFO & FAQ - DOCUMENT CARDS
   ======================================== */
.info-section {
    margin-bottom: 3rem;
}

.info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-h2);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.doc-card {
    position: relative;
    display: block;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none !important;
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.doc-card:link,
.doc-card:visited,
.doc-card:hover,
.doc-card:active {
    text-decoration: none !important;
}

.doc-card *,
.doc-card *:link,
.doc-card *:visited,
.doc-card *:hover,
.doc-card *:active {
    text-decoration: none !important;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.doc-card:hover::before {
    transform: scaleX(1);
}

.doc-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 30px var(--shadow-medium);
    background: var(--glass-bg-solid);
}

.doc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px var(--gold-glow));
}

.doc-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-bright);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.doc-card:hover h3 {
    color: var(--gold-primary);
}

.doc-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.doc-link-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.doc-card:hover .doc-link-arrow {
    transform: translateX(5px);
}

/* START HERE badge styling */
.doc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px var(--gold-glow), 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 12px var(--gold-glow), 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px var(--gold-glow), 0 2px 8px rgba(0, 0, 0, 0.5);
    }
}

/* Highlight the START HERE card */
.doc-card.start-here {
    border-color: var(--gold-primary);
    background: linear-gradient(135deg,
        rgba(201, 169, 97, 0.08) 0%,
        rgba(26, 22, 18, 0.75) 100%);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.doc-card.start-here:hover {
    box-shadow: 0 8px 35px var(--shadow-medium);
    border-color: var(--gold-bright);
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .doc-card {
        padding: 1.5rem;
    }

    .doc-badge {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 0.45rem 1rem;
    }
}

/* ========================================
   INFO & FAQ - FAQ SECTION
   ======================================== */
.faq-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(201, 168, 118, 0.2);
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201, 168, 118, 0.3);
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 20px var(--shadow-light);
    background: var(--glass-bg-solid);
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.faq-answer p:not(:last-child) {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .faq-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .faq-category-title {
        font-size: 1.3rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-question {
        font-size: 1.05rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}
