/* ========================================
   SYNTHARÉ™ PREMIUM GLOBAL STYLES
   © 2025 JupiterMonroe Corp
   Landing Page Premium Energy
   ======================================== */

/* ========== VARIABLES ========== */
:root {
    /* Premium Brand Colors (Landing Page Match) */
    --color-navy: #0A1628;
    --color-navy-medium: #1A2942;
    --color-navy-light: #2C3E5C;
    --color-navy-hover: #3D4F6D;
    --color-gold: #F5B841;
    --color-gold-light: #FFD369;
    --color-gold-dark: #D4A027;
    --color-dusty-rose: #D4A5A5;
    --color-dusty-rose-light: #E8C5C5;
    --color-cream: #FAF8F3;
    --color-bg-light: #F8FAFC;

    /* Semantic Colors */
    --color-primary: var(--color-gold);
    --color-secondary: var(--color-navy);
    --color-background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-medium) 100%);
    --color-text: #1F2937;
    --color-text-light: #64748B;
    --color-text-lighter: #94A3B8;
    --color-success: #10B981;
    --color-error: #EF4444;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Layout */
    --sidebar-width: 280px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 14px rgba(245, 184, 65, 0.4);
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== BASE ========== */
body {
    font-family: var(--font-primary);
    background: var(--color-background);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Subtle luxury texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 184, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 165, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--color-navy) 0%, #0D1B2A 100%);
    border-right: 2px solid var(--color-gold);
    padding: 40px 0;
    z-index: 100;
    overflow-y: auto;
    box-shadow:
        4px 0 20px rgba(0, 0, 0, 0.3),
        4px 0 40px rgba(245, 184, 65, 0.05);
}

/* Subtle inner glow */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(245, 184, 65, 0.3) 50%,
        transparent 100%);
    pointer-events: none;
}

.logo-container {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 15px;
}

.logo {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-cream);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.logo-tm {
    color: var(--color-gold);
    font-size: 0.7em;
    vertical-align: super;
}

.logo-tagline {
    font-size: 11px;
    color: var(--color-text-lighter);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-menu {
    list-style: none;
    padding: 0 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--color-text-lighter);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
    margin-bottom: 4px;
}

.nav-link:hover {
    background: rgba(245, 184, 65, 0.1);
    color: var(--color-gold);
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(245, 184, 65, 0.15);
    color: var(--color-gold);
    border-left: 3px solid var(--color-gold);
    font-weight: var(--font-weight-semibold);
}

.nav-icon {
    width: 22px;
    height: 22px;
    margin-right: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 50px 60px;
    min-height: 100vh;
}

/* ========== TOP HEADER ========== */
.top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-welcome {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

/* ========== HEADERS ========== */
.header {
    margin-bottom: 48px;
}

.header h1 {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-cream);
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.header p {
    color: var(--color-text-lighter);
    font-size: 17px;
}

.dashboard-header {
    margin-bottom: 48px;
}

.dashboard-header h1 {
    font-size: 42px;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-cream);
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.dashboard-header p {
    color: var(--color-text-lighter);
    font-size: 17px;
}

.dashboard-header h1 {
    font-size: 42px;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-cream);
    margin-bottom: 12px;
}

.dashboard-header p {
    color: var(--color-text-lighter);
    font-size: 17px;
}

/* ========== CARDS & SECTIONS ========== */
.setup-section,
.result-section,
.campaign-section,
.activity-feed {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--border-radius);
    padding: 36px;
    margin-bottom: 28px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Subtle top border accent */
.setup-section::before,
.campaign-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-gold) 30%,
        var(--color-gold) 70%,
        transparent 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.setup-section:hover,
.campaign-section:hover {
    box-shadow:
        0 8px 30px rgba(245, 184, 65, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(245, 184, 65, 0.3);
    transform: translateY(-2px);
}

.setup-section:hover::before,
.campaign-section:hover::before {
    opacity: 1;
}

.setup-section h2,
.result-section h3,
.campaign-section h2,
.activity-header {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.setup-section h2::before,
.result-section h3::before,
.campaign-section h2::before,
.activity-header::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    margin-right: 14px;
    border-radius: 4px;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FDFCFA 100%);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay on hover */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(245, 184, 65, 0.03) 0%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover {
    border-color: rgba(245, 184, 65, 0.4);
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(245, 184, 65, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    color: var(--color-text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: var(--font-weight-bold);
}

.stat-value {
    font-size: 36px;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-navy);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: var(--color-success);
}

.stat-change.negative {
    color: var(--color-error);
}

/* ========== ACTIVITY FEED ========== */
.activity-item {
    display: flex;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 184, 65, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    color: var(--color-navy);
    font-weight: var(--font-weight-semibold);
    font-size: 15px;
    margin-bottom: 4px;
}

.activity-time {
    color: var(--color-text-light);
    font-size: 13px;
}

/* ========== BRANDS GRID ========== */
.brands-grid,
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.brand-card,
.campaign-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: var(--border-radius);
    padding: 32px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.brand-card::after,
.campaign-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-gold) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.brand-card:hover,
.campaign-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(245, 184, 65, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.brand-card:hover {
    border-color: rgba(212, 165, 165, 0.4);
}

.campaign-card:hover {
    border-color: rgba(245, 184, 65, 0.4);
}

.brand-card:hover::after,
.campaign-card:hover::after {
    opacity: 1;
}

/* ========== CAMPAIGN CARDS ========== */
.campaign-title {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.campaign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2;
}

.campaign-preview {
    background: var(--color-bg-light);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin-bottom: 15px;
    flex: 1;
}

.preview-text {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.winner-badge {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-navy);
    border-radius: 6px;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
}

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

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    border-color: var(--color-gold);
    background: rgba(245, 184, 65, 0.1);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-navy);
    fill: none;
    stroke-width: 2;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-lighter);
    grid-column: 1 / -1;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2;
}

.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.brand-logo-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 22px;
    color: var(--color-navy);
    font-weight: var(--font-weight-bold);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.brand-type {
    color: var(--color-text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-weight-medium);
}

.brand-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.brand-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.style-tag {
    padding: 6px 12px;
    background: rgba(245, 184, 65, 0.1);
    border: 1px solid var(--color-gold);
    border-radius: 6px;
    font-size: 12px;
    color: var(--color-navy);
    font-weight: var(--font-weight-semibold);
}

.brand-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

/* ========== ADD BRAND CARD ========== */
.add-brand-card {
    background: transparent;
    border: 2px dashed var(--color-text-lighter);
    border-radius: var(--border-radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-brand-card:hover {
    border-color: var(--color-gold);
    background: rgba(245, 184, 65, 0.05);
}

.add-icon {
    font-size: 48px;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.add-text {
    font-size: 18px;
    color: var(--color-gold);
    margin-bottom: 8px;
    font-weight: var(--font-weight-bold);
}

.add-subtext {
    color: var(--color-text-lighter);
    font-size: 14px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: var(--color-navy);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: var(--font-weight-medium);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(245, 184, 65, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========== GENERATE PAGE SPECIFIC ========== */
.setup-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.setup-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-dusty-rose);
}

.setup-section h2 {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.setup-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    margin-right: 14px;
    border-radius: 4px;
}

.tone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.tone-checkbox-label {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--color-bg-light);
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tone-checkbox-label:hover {
    border-color: var(--color-gold);
    background: rgba(245, 184, 65, 0.05);
}

.tone-checkbox-label.selected {
    border-color: var(--color-gold);
    background: rgba(245, 184, 65, 0.1);
}

.tone-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-gold);
}

.tone-name {
    color: var(--color-text);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.tone-helper {
    display: block;
    color: var(--color-text-light);
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.custom-input {
    display: none;
    margin-top: 10px;
}

.custom-input.show {
    display: block;
}

.ai-badge {
    display: inline-block;
    background: rgba(245, 184, 65, 0.1);
    border: 1px solid var(--color-gold);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    color: var(--color-gold);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-loading {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    color: var(--color-gold);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(245, 184, 65, 0.1);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    color: var(--color-gold);
    font-size: 13px;
    margin-top: 12px;
    font-weight: var(--font-weight-bold);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    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.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-navy);
    box-shadow:
        0 4px 12px rgba(245, 184, 65, 0.3),
        0 2px 4px rgba(245, 184, 65, 0.2),
        inset 0 -2px 4px rgba(212, 160, 39, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(245, 184, 65, 0.4),
        0 4px 8px rgba(245, 184, 65, 0.3),
        inset 0 -2px 4px rgba(212, 160, 39, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(245, 184, 65, 0.3),
        inset 0 2px 4px rgba(212, 160, 39, 0.4);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-navy);
}

.btn-secondary:hover {
    background: rgba(245, 184, 65, 0.1);
    color: var(--color-gold);
}

.btn-delete {
    background: var(--color-error);
    color: white;
}

.btn-delete:hover {
    background: #DC2626;
}

.btn-large {
    flex: 1;
    padding: 16px;
    font-size: 15px;
}

/* ========== COPY BUTTON (Landing Page Detail) ========== */
.btn-action {
    padding: 6px 14px !important;
    font-size: 12px !important;
    min-width: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: var(--font-weight-semibold) !important;
    background: white !important;
    color: var(--color-navy) !important;
    border: 2px solid var(--color-gold) !important;
}

.btn-action:hover {
    background: rgba(245, 184, 65, 0.1) !important;
    transform: translateY(-1px) !important;
}

.btn-action::before {
    display: none !important;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-cream);
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 28px;
    color: var(--color-navy);
    margin-bottom: 8px;
    font-weight: var(--font-weight-extrabold);
}

.modal-subtitle {
    color: var(--color-text-light);
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* ========== METHOD BUTTONS ========== */
.method-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.method-btn {
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.method-btn.active {
    background: rgba(245, 184, 65, 0.1);
    border-color: var(--color-gold);
    color: var(--color-navy);
}

/* ========== UPLOAD ZONE ========== */
.upload-zone {
    border: 2px dashed var(--color-text-lighter);
    border-radius: var(--border-radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    background: white;
}

.upload-zone:hover {
    border-color: var(--color-gold);
    background: rgba(245, 184, 65, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    color: var(--color-gold);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
}

.upload-subtext {
    color: var(--color-text-light);
    font-size: 13px;
}

/* ========== COLOR INPUTS ========== */
.color-inputs {
    display: flex;
    gap: 10px;
}

.color-input-wrapper {
    flex: 1;
}

.color-input {
    width: 100%;
    height: 48px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-input:hover {
    border-color: var(--color-gold);
}

.color-hex-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
}

/* ========== STYLE CHECKBOXES ========== */
.style-checkboxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.style-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.style-checkbox:hover {
    border-color: var(--color-gold);
}

.style-checkbox.selected {
    background: rgba(245, 184, 65, 0.1);
    border-color: var(--color-gold);
}

.style-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-gold);
}

.style-checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

/* ========== LOGO PREVIEW ========== */
.logo-preview {
    text-align: center;
    padding: 24px;
    background: white;
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius-sm);
    margin-top: 20px;
}

.preview-image {
    max-width: 200px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    border: 2px solid #e5e7eb;
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    border-left: 4px solid;
}

.alert-info {
    background: rgba(245, 184, 65, 0.1);
    border-color: var(--color-gold);
    color: var(--color-navy);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-success);
    color: #065F46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-error);
    color: #991B1B;
}

/* ========== LOADING STATES ========== */
.loading {
    text-align: center;
    padding: 80px;
    color: var(--color-gold);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
}

.ai-analyzing {
    text-align: center;
    padding: 32px;
    color: var(--color-gold);
}

.spinner {
    border: 3px solid rgba(245, 184, 65, 0.2);
    border-top: 3px solid var(--color-gold);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== UTILITIES ========== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ========== BACK BUTTON ========== */
.back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--color-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
    color: var(--color-gold-light);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ========== RESULT PANEL ========== */
.result-panel {
    background: white;
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 28px;
    box-shadow: var(--shadow-lg);
}

.result-section {
    background: var(--color-bg-light);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    padding: 24px;
    margin-bottom: 20px;
}

.result-section h3 {
    color: var(--color-navy);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
}

.result-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    margin-right: 12px;
    border-radius: 2px;
}

.result-content {
    color: var(--color-text);
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 15px;
}

/* ========== ACTIONS SECTION ========== */
.actions-section {
    background: var(--color-navy-medium);
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-top: 28px;
}

.actions-section h3 {
    color: var(--color-gold);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ========== IMAGE GENERATION ========== */
.image-loading {
    padding: 40px;
    background: rgba(245, 184, 65, 0.1);
    border: 2px dashed var(--color-gold);
    border-radius: var(--border-radius-sm);
    color: var(--color-gold);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    display: none;
    margin-top: 20px;
}

.image-container {
    margin-top: 20px;
    text-align: center;
    display: none;
}

.generated-image {
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    border: 3px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1280px) {
    .main-content {
        padding: 40px 50px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 30px 40px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 24px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .brands-grid,
    .campaigns-grid {
        grid-template-columns: 1fr;
    }

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

    .footer {
        margin-left: 0;
    }
}

/* ========== FOOTER ========== */
.footer {
    margin-left: var(--sidebar-width);
    background: rgba(10, 22, 40, 0.95);
    border-top: 1px solid rgba(245, 184, 65, 0.2);
    padding: 28px 60px;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    color: var(--color-text-lighter);
    font-size: 14px;
    margin: 4px 0;
}

.footer-brand {
    font-weight: var(--font-weight-bold);
    color: var(--color-gold);
}

/* ========== TRAINING PAGE SPECIFIC ========== */
.progress-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.progress-bar-bg {
    height: 14px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--color-navy);
    font-size: 18px;
    font-weight: var(--font-weight-extrabold);
}

.training-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.training-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-dusty-rose);
}

.training-section h2 {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
    margin: 0;
}

.training-section p {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: var(--font-weight-extrabold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-complete {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-navy);
}

.status-incomplete {
    background: #e5e7eb;
    color: var(--color-text-light);
}

.saved-content {
    display: none;
    background: var(--color-bg-light);
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 15px;
}

.saved-content.show {
    display: block;
}

.saved-text {
    color: var(--color-text);
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 15px;
}

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

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* ========== SMOOTH SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-navy-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-light);
}

/* ============================================
   LANDING PAGE SECTIONS
   ============================================ */

.landing-container {
  margin-top: 30px;
  padding: 30px;
  background: var(--color-background);
  border-radius: 12px;
}

.landing-container h3 {
  color: var(--color-navy);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.landing-container p {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

#landingContentSections > div {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}

#landingContentSections h4 {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

#landingContentSections div[style*="white-space: pre-wrap"] {
  color: var(--color-text) !important;
  font-family: 'Inter', monospace;
  font-size: 14px;
  line-height: 1.8;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.landing-loading {
  display: none;
  margin-top: 30px;
  padding: 30px;
  background: var(--color-background);
  border-radius: 12px;
  text-align: center;
}

.landing-loading > div:first-child {
  font-size: 48px;
  margin-bottom: 20px;
}

.landing-loading > div:nth-child(2) {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-navy);
}

.landing-loading > div:nth-child(3) {
  font-size: 14px;
  color: var(--color-text-lighter);
}

/* ========================================
   VIEW CAMPAIGN PAGE STYLES
   Add these to the bottom of main.css
   ======================================== */

/* Campaign Header */
.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-gold);
    flex-wrap: wrap;
    gap: 20px;
}

.campaign-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campaign-title h1 {
    color: var(--color-navy);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.campaign-meta {
    display: flex;
    gap: 15px;
    color: var(--color-text-light);
    font-size: 14px;
    flex-wrap: wrap;
}

.campaign-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--color-bg-light);
    color: var(--color-navy);
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: white;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--color-navy);
    background: var(--color-bg-light);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
}

.platform-icon {
    font-size: 18px;
}

/* Platform Content */
.platform-content {
    animation: fadeIn 0.3s ease;
}

.content-section {
    background: white;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: var(--shadow-md);
}

.content-section h3 {
    color: var(--color-navy);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-description {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.content-box {
    background: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    white-space: pre-wrap;
    line-height: 1.8;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    border: 1px solid #e5e7eb;
}

/* Character Count */
.char-count {
    font-size: 12px;
    color: var(--color-text-light);
    margin-left: auto;
    background: var(--color-bg-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.char-count.warning {
    background: #FEF3C7;
    color: #92400E;
}

.char-count.success {
    background: #D1FAE5;
    color: #065F46;
}

/* Twitter Thread */
.tweet-thread {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tweet-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    position: relative;
    padding-left: 50px;
}

.tweet-number {
    position: absolute;
    left: 15px;
    top: 15px;
    background: var(--color-gold);
    color: var(--color-navy);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* Instagram Hashtags */
.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: var(--color-bg-light);
    border-radius: 8px;
}

.hashtag {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--color-gold);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}

/* Loading & Error States */
.loading-state, .error-state {
    text-align: center;
    padding: 80px 20px;
}

.error-state h2 {
    color: var(--color-navy);
    margin-bottom: 10px;
}

.error-state p {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--color-bg-light);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Variants */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .platform-icon {
        font-size: 16px;
    }

    .content-section {
        padding: 20px;
    }

    .tweet-item {
        padding-left: 45px;
    }

    .tweet-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        left: 12px;
    }
}