/* ==========================================
   AuraPDF Elite - Master Production CSS
   ========================================== */

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

:root {
    --bg-deep: #030305;
    --bg-surface: #0c0c12;
    --gold-primary: #d4af37;
    --gold-light: #f7efc5;
    --gold-dark: #aa8c2c;
    --border-gold: rgba(212, 175, 55, 0.2);
    --text-main: #f1f1f6;
    --text-muted: #9ca3af;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1c1c28; border-radius: 3px; border: 1px solid var(--border-gold); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* Header & Navigation (Fixed Overlap Issue) */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(3, 3, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
}
.brand-name span { color: var(--gold-primary); }
.brand-sub {
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    gap: 32px;
    font-size: 13px;
    font-weight: 500;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-primary); }
.nav-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.pulse-dot {
    width: 7px; height: 7px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Workspace Section */
.workspace-section {
    padding: 140px 24px 60px 24px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.ambient-glow-1 {
    position: absolute;
    top: 50px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 250px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.hero-text-box {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 20px;
    white-space: nowrap;
}
.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    margin-bottom: 20px;
}
.gold-gradient {
    background: linear-gradient(135deg, #fff 15%, var(--gold-light) 45%, var(--gold-primary) 85%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 680px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Glass Panel */
.glass-panel {
    background: linear-gradient(135deg, rgba(16, 16, 24, 0.85) 0%, rgba(8, 8, 13, 0.95) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 10;
}
.ambient-glow-2 {
    position: absolute;
    bottom: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

/* Dropzone */
.luxury-dropzone {
    background: linear-gradient(145deg, rgba(12, 12, 18, 0.7) 0%, rgba(6, 6, 10, 0.9) 100%);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}
.luxury-dropzone:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}
.file-input-hidden {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}
.upload-icon-box {
    width: 80px; height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 18px;
    background: linear-gradient(135deg, #12121c, #242438);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 32px;
}
.dropzone-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
}
.dropzone-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Buttons */
.btn-luxury-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    color: #030305;
    font-weight: 800;
    padding: 16px 32px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-luxury-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
}
.full-width { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* Controls Panel */
.controls-panel { display: flex; flex-direction: column; gap: 24px; }
.file-info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}
.file-details { display: flex; align-items: center; gap: 16px; overflow: hidden; }
.file-icon-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}
.file-text { overflow: hidden; }
.file-name { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 12px; color: var(--text-muted); font-family: monospace; margin-top: 2px; }
.remove-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.remove-btn:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Tier Grid */
.tier-section { display: flex; flex-direction: column; gap: 12px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.section-label i { color: var(--gold-primary); }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tier-card {
    background: linear-gradient(145deg, rgba(14, 14, 22, 0.6), rgba(8, 8, 13, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.tier-card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-2px); }
.tier-card.active {
    border-color: var(--gold-primary);
    background: linear-gradient(145deg, rgba(24, 24, 38, 0.8), rgba(12, 12, 18, 0.95));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}
.tier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tier-title { font-weight: 700; color: #fff; font-size: 14px; }
.tier-badge { font-size: 11px; font-family: monospace; color: var(--gold-primary); background: rgba(212, 175, 55, 0.1); padding: 2px 8px; border-radius: 6px; }
.tier-desc { font-size: 12px; color: var(--text-muted); font-weight: 300; }

/* Slider Box */
.slider-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.slider-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.slider-title { color: var(--text-main); font-weight: 500; }
.slider-val-badge { color: var(--gold-primary); font-family: monospace; font-weight: 700; background: rgba(212, 175, 55, 0.1); padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(212, 175, 55, 0.2); }
.custom-range {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    accent-color: var(--gold-primary);
    cursor: pointer;
}
.slider-footer { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; font-weight: 500; }

/* Loader & Success States */
.loader-state { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.spinner {
    width: 60px; height: 60px;
    border: 4px solid var(--gold-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-title { color: #fff; font-size: 18px; font-weight: 700; font-family: 'Playfair Display', serif; margin-bottom: 6px; }
.loader-desc { font-size: 13px; color: var(--text-muted); }

.success-state { text-align: center; padding: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.success-icon-box {
    width: 80px; height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.success-title { font-size: 24px; font-weight: 800; color: #fff; font-family: 'Playfair Display', serif; margin-bottom: 6px; }
.success-desc { font-size: 14px; color: var(--text-muted); }
.success-actions { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.btn-success-download {
    background: #10b981;
    color: #030305;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    transition: background 0.2s;
}
.btn-success-download:hover { background: #34d399; }
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Architecture & About Sections */
.arch-section { padding: 100px 24px; background: #060609; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.max-width-box { max-width: 1100px; margin: 0 auto; }
.sub-heading { color: var(--gold-primary); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-main-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; font-family: 'Playfair Display', serif; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { padding: 35px; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(212, 175, 55, 0.1); color: var(--gold-primary); display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid rgba(212, 175, 55, 0.2); margin-bottom: 24px; }
.feature-title { font-size: 18px; font-weight: 700; color: #fff; font-family: 'Playfair Display', serif; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-muted); font-weight: 300; }

.about-section { padding: 100px 24px; background: rgba(0, 0, 0, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.max-width-small { max-width: 700px; margin: 0 auto; }
.about-text { font-size: 16px; color: #d1d5db; line-height: 1.8; margin: 24px 0 40px 0; font-weight: 300; }
.gold-text { color: var(--gold-primary); font-weight: 600; }
.social-links-box { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.2s; }
.social-btn:hover { color: var(--gold-primary); border-color: rgba(212, 175, 55, 0.5); }
.social-btn i { color: var(--gold-primary); font-size: 16px; }

/* Footer */
.footer-box { background: var(--bg-deep); border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 40px 24px; font-size: 13px; color: var(--text-muted); }
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-divider { color: #374151; }
.footer-copy { font-weight: 300; }
.footer-links { display: flex; gap: 24px; font-weight: 500; }
.footer-link-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; transition: color 0.2s; }
.footer-link-btn:hover { color: var(--gold-primary); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-box { max-width: 600px; width: 100%; position: relative; max-height: 80vh; overflow-y: auto; }
.modal-close-btn { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close-btn:hover { color: #fff; }
.modal-title-text { font-size: 22px; font-weight: 700; color: #fff; font-family: 'Playfair Display', serif; margin-bottom: 20px; }
.modal-content-text { font-size: 14px; color: #d1d5db; line-height: 1.7; font-weight: 300; display: flex; flex-direction: column; gap: 12px; }

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex !important; }
