/* 🛡️ SOVEREIGN ENGINE - GLOBAL MASTER STYLES */
:root { 
    --brand-primary: #D4AF37;
    --brand-secondary: #AA8C2C;
    --bg-canvas: #050505; 
    --bg-surface: #1A1A1A;
    --text-main: #FFFFFF;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --status-red: #dc3545;
    --status-green: #28a745;
    --status-blue: #3b82f6;
    --status-orange: #fd7e14;
    --status-purple: #8b5cf6;
}

body { 
    margin: 0; 
    font-family: var(--font-body); 
    background-color: var(--bg-canvas);
    color: var(--text-main);
    padding-top: 130px; 
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   🏛️ SOVEREIGN ENGINE - MASTER BRANDING & HEADER UI
   ========================================================================== */

.system-header { position: fixed; top: 0; left: 0; right: 0; height: 100px; background: transparent; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; z-index: 3000; }
.header-logo-text { font-family: var(--font-heading); color: var(--brand-primary); font-size: 1.8rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.action-side { display: flex; align-items: center; gap: 12px; }
.action-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--brand-primary); background: rgba(17, 17, 17, 0.8); backdrop-filter: blur(10px); border: 1px solid var(--brand-secondary); position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.action-icon:active { transform: scale(0.92); }
.action-icon:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
.bell-badge { position: absolute; top: -5px; right: -5px; background: var(--status-red); color: white; font-size: 0.7rem; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: none; align-items: center; justify-content: center; border: 2px solid var(--bg-canvas); }
#queue-tracker { display:none; }
.pulse-dot { width: 8px; height: 8px; background: var(--status-green); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.alerts-dropdown { display: none; position: absolute; top: 70px; right: 0; width: 320px; background: var(--bg-surface); border-radius: 20px; border: 2px solid var(--brand-secondary); z-index: 5000; flex-direction: column; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.8); color: var(--text-main); }
#bento-launcher { display:none; position:fixed; top:95px; right:5%; background: var(--bg-surface); border-radius:28px; border:2px solid var(--brand-secondary); z-index:4000; width:320px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.bento-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #ccc; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; font-family: var(--font-body); transition: transform 0.2s, color 0.2s; text-align: center; height: 60px; }
.bento-item:active { transform: scale(0.9); }
.bento-item:hover { transform: scale(1.1); color: var(--brand-primary); }
.bento-item i { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.bento-item.install-hidden { display: none !important; }
#auth-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.95); z-index:10000; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
@keyframes ring { 0% { transform: rotate(0); } 15% { transform: rotate(-15deg); } 30% { transform: rotate(15deg); } 100% { transform: rotate(0); } }
.ringing { animation: ring 1.5s ease infinite; color: var(--brand-primary) !important; }

/* ====================================================================
   🌐 INDEX.HTML - FRONT DOOR & SAAS SALES STYLES
   ==================================================================== */
#loading-matrix { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-canvas); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-heading); color: var(--brand-primary); font-size: 1.5rem; letter-spacing: 2px; text-transform: uppercase; transition: opacity 0.5s; }

/* 1. TENANT BOOKING PORTAL */
.tenant-hero { text-align: center; padding: 40px 20px 80px; }
.tenant-hero h1 { font-family: var(--font-heading); font-size: 3.5rem; color: var(--text-main); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.tenant-hero h1 span { color: var(--brand-primary); }
.tenant-hero p { font-size: 1.2rem; color: #aaa; max-width: 600px; margin: 0 auto 40px; }

.booking-card { background: var(--bg-surface); padding: 40px; border-radius: 24px; border: 2px solid var(--brand-secondary); box-shadow: 0 20px 50px rgba(0,0,0,0.8); max-width: 600px; margin: -50px auto 60px; position: relative; z-index: 10; }
.booking-card h2 { font-family: var(--font-heading); color: var(--brand-primary); border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 15px; margin-top: 0; text-transform: uppercase; }

.st-input { width: 100%; padding: 18px; margin-bottom: 20px; border-radius: 12px; border: 1px solid #333; background: var(--bg-canvas); color: white; font-family: var(--font-body); font-size: 1.1rem; box-sizing: border-box; transition: 0.3s; }
.st-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--neon-glow, 0 0 20px rgba(212, 175, 55, 0.4)); }

.unit-selector { display: flex; align-items: center; justify-content: space-between; background: var(--bg-canvas); padding: 15px; border-radius: 12px; border: 1px solid #333; margin-bottom: 20px; }
.unit-selector label { font-weight: bold; font-family: var(--font-heading); color: #ccc; text-transform: uppercase; }
.btn-qty { background: var(--bg-surface); border: 1px solid var(--brand-secondary); color: var(--brand-primary); width: 40px; height: 40px; border-radius: 8px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-qty:active { transform: scale(0.9); }
.qty-display { font-family: var(--font-heading); font-size: 1.5rem; font-weight: bold; width: 40px; text-align: center; }

.price-display { background: rgba(0,0,0,0.5); padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 25px; border: 1px dashed var(--brand-primary); }
.price-text { font-family: var(--font-heading); font-size: 2.5rem; color: var(--brand-primary); margin: 0; }

.btn-action { display: block; width: 100%; padding: 22px; background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%); color: #000; border: none; border-radius: 12px; font-family: var(--font-heading); font-size: 1.4rem; cursor: pointer; text-transform: uppercase; font-weight: bold; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2); }
.btn-action:active { transform: scale(0.96); box-shadow: none; }
.btn-action:disabled { background: #333; color: #666; cursor: not-allowed; }

.trust-bar { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 40px; }
.trust-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.02); border: 1px solid #222; padding: 10px 15px; border-radius: 50px; font-family: var(--font-heading); font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.trust-badge i { color: var(--brand-primary); }

/* 2. SAAS SALES PORTAL */
.saas-hero { text-align: center; padding: 60px 20px; max-width: 1200px; margin: 0 auto; position: relative; }
.saas-hero img { max-width: 250px; margin-bottom: 30px; filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

.saas-hero h1 { font-family: var(--font-heading); font-size: 4.5rem; color: white; margin-bottom: 20px; line-height: 1.1; text-transform: uppercase; letter-spacing: -1px; }
.saas-hero h1 span { color: var(--brand-primary); }
.saas-hero p { font-size: 1.4rem; color: #aaa; max-width: 700px; margin: 0 auto 40px; font-weight: 300; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding: 0 5% 80px; max-width: 1200px; margin: 0 auto; }
.tier-card { background: #111; border: 1px solid #222; border-radius: 20px; padding: 50px 30px; text-align: center; transition: 0.3s; position: relative; display: flex; flex-direction: column; }
.tier-card:hover { transform: translateY(-10px); border-color: var(--brand-primary); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1); }
.tier-card.featured { border-color: var(--brand-secondary); background: linear-gradient(180deg, rgba(30, 25, 0, 0.9) 0%, #111 100%); transform: scale(1.05); z-index: 2; }
.tier-name { font-family: var(--font-heading); font-size: 1.8rem; color: white; margin-bottom: 10px; text-transform: uppercase; }
.tier-price { font-family: var(--font-heading); font-size: 3.5rem; color: var(--brand-primary); margin-bottom: 20px; line-height: 1; }
.tier-price span { font-size: 1rem; color: #888; font-family: var(--font-body); display: block; margin-top: 5px; text-transform: uppercase;}

.tier-features { list-style: none; padding: 0; margin: 0 0 40px 0; text-align: left; flex-grow: 1;}
.tier-features li { padding: 12px 0; border-bottom: 1px solid #222; color: #ccc; display: flex; gap: 10px; align-items: center; }
.tier-features i { color: var(--brand-primary); width: 20px; text-align: center;}

/* 3. COMMUNITY LOUNGE (PAID USERS) */
.community-hero { background: linear-gradient(180deg, rgba(0,229,255,0.05) 0%, transparent 100%); border: 1px solid rgba(0,229,255,0.2); border-radius: 24px; padding: 60px 30px; max-width: 900px; margin: 40px auto; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.community-hero h2 { font-family: var(--font-heading); font-size: 3rem; color: white; margin-top: 0; text-transform: uppercase; }
.community-hero h2 span { color: #00E5FF; }
.community-hero p { color: #ccc; font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }

/* 4. REFUND MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-card { background: var(--bg-surface); padding: 40px; border-radius: 24px; border: 2px solid var(--brand-primary); max-width: 450px; width: 100%; position: relative; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: #fff; }
.compliance-text { background: #000; padding: 15px; border-radius: 12px; border: 1px solid #333; height: 150px; overflow-y: auto; margin-bottom: 20px; font-size: 0.85rem; color: #ccc; text-align: left; }

@media (max-width: 900px) {
    .tier-card.featured { transform: scale(1); }
    .saas-hero h1 { font-size: 3rem; }
}
/* ====================================================================
   💷 LEDGER.HTML - TREASURY & MTD STYLES
   ==================================================================== */
.ledger-card { background: var(--bg-surface); padding: 30px; border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.8); border: 2px solid var(--brand-secondary); min-height: 800px; }
.header-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; border-bottom: 2px solid #333; padding-bottom: 20px; }
.search-row { display: flex; gap: 15px; align-items: center; width: 100%; margin-bottom: 20px; }
.search-box { flex: 1; position: relative; }
.search-box input { width: 100%; padding: 15px 20px 15px 45px; border-radius: 8px; border: 1px solid #333; background: var(--bg-canvas); color: white; font-family: var(--font-body); font-size: 1rem; box-sizing: border-box; }
.search-box input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #888; }

.date-filters { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 30px; background: rgba(0,0,0,0.3); padding: 20px; border-radius: 12px; border: 1px solid #333; }
.input-group { display: flex; flex-direction: column; }
.input-group label { font-family: var(--font-heading); font-size: 0.9rem; color: var(--brand-primary); text-transform: uppercase; margin-bottom: 5px; }
.input-group input, .input-group select { padding: 12px; border: 1px solid #333; background: #000; color: white; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; width: 160px; box-sizing: border-box; }

.btn-csv { background: var(--status-green); }
.btn-print { background: var(--status-orange); }
.btn-startup { background: var(--status-purple); border: 1px solid #8b5cf6; }
.btn-hmrc { background: transparent; border: 2px solid var(--status-red); color: var(--status-red); }
.btn-hmrc:hover { background: var(--status-red); color: white; }
.btn-back { background: #333; }

.vat-toggle-wrapper { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.1rem; color: var(--brand-primary); border: 1px solid #333; padding: 8px 20px; border-radius: 50px; background: rgba(0,0,0,0.5); }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--status-green); }
input:checked + .slider:before { transform: translateX(24px); }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.summary-box { padding: 25px; border-radius: 12px; text-align: center; border: 1px solid #333; box-shadow: 0 5px 15px rgba(0,0,0,0.5); background: rgba(0,0,0,0.5); position: relative; overflow: hidden; min-height: 140px; display: flex; flex-direction: column; justify-content: center;}
.summary-box.paid { border-bottom: 4px solid var(--status-green); }
.summary-box.unpaid { border-bottom: 4px solid var(--status-orange); }
.summary-box.expenses { border-bottom: 4px solid var(--status-red); }
.summary-box.profit { border-bottom: 4px solid var(--brand-primary); background: #111; border: 1px solid var(--brand-secondary); }
.summary-box.cash { border-bottom: 4px solid var(--status-blue); background: rgba(59, 130, 246, 0.05); }
.vat-tag { position: absolute; top: 10px; right: -25px; background: var(--brand-primary); color: #000; font-family: var(--font-heading); font-size: 0.7rem; padding: 2px 30px; transform: rotate(45deg); display: none; font-weight: bold;}
.vat-active .vat-tag { display: block; }
.summary-title { font-family: var(--font-heading); color: #aaa; font-size: 1rem; margin-bottom: 5px; letter-spacing: 1px; }
.summary-value { font-size: 2.2rem; font-weight: bold; font-family: var(--font-heading); color: #fff; }
.profit .summary-value { color: var(--brand-primary); }
.cash .summary-title, .cash .summary-value { color: var(--status-blue); }
.vat-deduction { font-size: 0.85rem; color: #888; font-family: var(--font-body); font-weight: bold; display: none; margin-top: 5px; }
.vat-active .vat-deduction { display: block; }

.algo-engine { background: #050505; border-radius: 12px; padding: 25px; margin-bottom: 30px; border: 1px dashed var(--brand-secondary); position: relative; overflow: hidden; min-height: 120px; }
.algo-header { font-family: var(--font-heading); color: var(--brand-primary); font-size: 1.2rem; margin-top: 0; margin-bottom: 20px; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 10px; }
.algo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
.algo-stat { display: flex; flex-direction: column; }
.algo-label { font-size: 0.8rem; color: #888; text-transform: uppercase; font-family: var(--font-heading); margin-bottom: 4px; }
.algo-data { font-size: 1.5rem; font-weight: bold; color: white; font-family: var(--font-body); }
.algo-status-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-family: var(--font-heading); font-size: 0.8rem; margin-top: 8px; font-weight: bold; color: #000;}

.table-wrapper { overflow-x: auto; border: 1px solid #333; border-radius: 12px; min-height: 300px; background: rgba(0,0,0,0.5); }
table { width: 100%; border-collapse: collapse; margin-top: 0; font-size: 0.95rem; color: #ccc; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #333; white-space: nowrap; }
th { font-family: var(--font-heading); color: var(--brand-primary); text-transform: uppercase; background: #000; border-bottom: 2px solid var(--brand-secondary); }
tr:hover { background: #1a1a1a; }
.status-badge { padding: 6px 12px; border-radius: 6px; font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; font-weight: bold; color:#fff;}
.badge-paid { background: var(--status-green); }
.badge-unpaid { background: #555; }
.badge-pending { background: var(--status-orange); }
.badge-cancelled { background: #333; color: #888; text-decoration: line-through; }
.badge-expense { background: transparent; color: var(--status-red); border: 1px solid var(--status-red); }
.badge-startup { background: var(--status-purple); border: 1px solid #8b5cf6; }

.mini-btn { background: #111; color: var(--brand-primary); border: 1px solid var(--brand-secondary); font-family: var(--font-heading); font-size: 0.75rem; padding: 6px 12px; border-radius: 6px; cursor: pointer; transition: 0.2s; text-decoration: none; display: inline-block; text-align: center;}
.mini-btn:hover { background: var(--brand-primary); color: #000; }
.mini-pay-btn { background: transparent; border: 1px solid var(--status-green); color: var(--status-green); font-family: var(--font-heading); font-size: 0.75rem; padding: 4px 10px; border-radius: 4px; cursor: pointer; margin-top: 5px; transition: 0.2s; display: block; width: fit-content;}
.mini-pay-btn:hover { background: var(--status-green); color: white; }

.mtd-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.mtd-box { background: #000; border: 1px solid #333; padding: 15px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.mtd-box-number { font-family: var(--font-heading); color: var(--brand-primary); font-size: 1.2rem; font-weight: bold; width: 60px; }
.mtd-box-desc { font-size: 0.8rem; color: #888; flex: 1; padding-right: 10px; }
.mtd-box-value { font-family: var(--font-body); color: white; font-size: 1.2rem; font-weight: bold; }
.mtd-box.highlight { border-color: var(--status-red); background: rgba(220, 53, 69, 0.05); }
.json-viewer { background: #050505; color: #00E5FF; font-family: monospace; padding: 20px; border-radius: 8px; border: 1px solid #333; overflow-x: auto; font-size: 0.9rem; margin-top: 15px; display: none; }
.print-only { display: none; }

@media print {
    body { padding-top: 0 !important; background: white !important; color: black !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    #header-import, .header-controls, .btn-back, .date-filters, .algo-engine, .search-row, .summary-grid { display: none !important; }
    .ledger-card { box-shadow: none !important; border: none !important; padding: 0 !important; background: transparent !important; }
    .print-only { display: block !important; }
    .table-wrapper { border: none !important; min-height: auto !important; background: transparent !important; overflow: visible !important; }
    table { font-size: 0.85rem !important; border: 1px solid #000 !important; color: black !important; width: 100% !important; border-collapse: collapse !important; }
    th { background: #D4AF37 !important; color: black !important; border: 1px solid #000 !important; padding: 10px !important; font-family: 'Oswald' !important; text-transform: uppercase !important; }
    td { border: 1px solid #ccc !important; padding: 8px !important; color: #000 !important; }
    tr:nth-child(even) td { background: #f2f2f2 !important; }
    .status-badge { display: inline-block !important; border: 1px solid #000 !important; padding: 4px 8px !important; border-radius: 4px !important; color: #000 !important; background: transparent !important; font-size: 0.7rem !important; }
    .mini-pay-btn, .mini-btn { display: none !important; }
    body.printing-modal .container { display: none !important; }
    body.printing-modal #header-import { display: none !important; }
    #document-modal.active { position: absolute; left: 0; top: 0; background: white; width: 100%; align-items: flex-start; }
    .document-card { border: none; padding: 0; width: 100%; box-shadow: none; }
    .action-row { display: none !important; }
}
/* ====================================================================
   📜 LEGAL & COMPLIANCE PAGES (Licensing, Privacy, Terms)
   ==================================================================== */
.legal-wrapper { max-width: 900px; margin: 40px auto 80px; padding: 50px; background: var(--bg-surface); border: 1px solid #333; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); position: relative; }
.legal-wrapper::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-primary), transparent); }
.legal-header { text-align: center; margin-bottom: 40px; border-bottom: 1px dashed #333; padding-bottom: 30px; }
.legal-header h1 { font-family: var(--font-heading); color: #fff; font-size: 2.5rem; text-transform: uppercase; margin: 0; letter-spacing: 1px; }
.legal-header h1 span { color: var(--brand-primary); }
.legal-header p { color: #888; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; }
.legal-content h2 { font-family: var(--font-heading); color: var(--brand-primary); margin-top: 40px; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 1px; border-left: 3px solid var(--brand-secondary); padding-left: 15px; }
.legal-content p { font-size: 1rem; color: #ccc; line-height: 1.8; margin-bottom: 20px;}
.legal-content ul { background: rgba(0,0,0,0.3); padding: 20px 20px 20px 40px; border-radius: 8px; border: 1px solid #222; border-left: 2px solid var(--brand-primary); color: #ccc; margin-bottom: 20px;}
.legal-content li { margin-bottom: 10px; line-height: 1.6;}
.legal-content li:last-child { margin-bottom: 0; }
.legal-footer { margin-top: 60px; text-align: center; font-size: 0.75rem; color: #555; text-transform: uppercase; letter-spacing: 2px; font-family: monospace; border-top: 1px dashed #333; padding-top: 20px; }
/* ====================================================================
   📅 MANAGEMENT.HTML - CALENDAR, DISPATCH & COMPLIANCE UI
   ==================================================================== */
#diary-card { background: var(--bg-surface); padding: 30px; border-radius: 20px; border: 2px solid var(--brand-secondary); box-shadow: 0 25px 60px rgba(0,0,0,0.8); min-height: 800px; }
#calendar-canvas { background: #fff; border-radius: 12px; width: 100%; height: auto !important; min-height: 600px; margin-top: 20px; border: 2px solid var(--brand-secondary); padding: 15px; box-sizing: border-box; contain: content; position: relative; }
.fc { color: #111 !important; font-family: var(--font-body); }
.fc-theme-standard th { background: #eee; padding: 8px 0; font-family: var(--font-heading); text-transform: uppercase; }
.fc-event { cursor: pointer !important; font-family: var(--font-heading); padding: 2px; } 
.fc-daygrid-day-number { color: #333; font-weight: bold; }

.btn-satnav { background: transparent; color: var(--brand-primary); border: 2px solid var(--brand-primary); width: 100%; margin-bottom: 15px; font-size: 1.1rem; }
.btn-satnav:hover { background: var(--brand-primary); color: #000; }

.job-card { background: rgba(0,0,0,0.5); border-radius: 12px; margin-bottom: 12px; border: 1px solid #333; border-left: 8px solid var(--brand-primary); overflow: hidden; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.job-card.done { opacity: 0.5; border-left-color: #444; filter: grayscale(1); }
.job-card.commercial { border-left-color: var(--status-blue); }
.job-card.approval { border-left-color: var(--status-purple); background: #2a1b42; border-color: #5b21b6; }
.job-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; min-height: 50px; color: #fff; }
.job-body { display: none; padding: 0 20px 20px; border-top: 1px solid #333; background: var(--bg-surface); }
.job-card.expanded .job-body { display: block; }

.seq-num { background: #333; color: white; padding: 2px 10px; border-radius: 6px; font-family: var(--font-heading); margin-right: 10px; font-weight: bold; border: 1px solid var(--brand-primary); }
.postcode-tag { background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%); color: #000; padding: 4px 10px; border-radius: 6px; font-family: var(--font-heading); font-size: 0.8rem; margin-right: 10px; font-weight: bold; }
.comment-box { background: rgba(212, 175, 55, 0.05); padding: 12px; border-radius: 8px; border: 1px dashed var(--brand-secondary); margin: 10px 0; font-size: 0.9rem; color: #ccc; }
#day-job-list.hide-completed .job-card.done { display: none !important; }

.staff-holiday-row { background: rgba(0,0,0,0.5); padding: 15px; border-radius: 8px; border-left: 4px solid var(--status-orange); margin-bottom: 10px; text-align: left;}
.fwa-alert-row { background: rgba(220, 53, 69, 0.1); padding: 15px; border-radius: 8px; border: 1px dashed var(--status-red); margin-bottom: 10px; text-align: left; color: #ccc;}
.acas-alert-row { background: rgba(139, 92, 246, 0.1); padding: 15px; border-radius: 8px; border: 1px dashed var(--status-purple); margin-bottom: 10px; text-align: left; color: #ccc;}

/* Gatekeeper Locks */
.locked-feature { cursor: not-allowed !important; }
/* ====================================================================
   📩 NOTIFICATIONS.HTML - SECURE INBOX & RATING UI
   ==================================================================== */
#notifications-list { min-height: 60vh; position: relative; }

.notification-card { 
    background: var(--bg-surface); 
    border-radius: 20px; 
    padding: 25px; 
    margin-bottom: 20px; 
    border-left: 8px solid #333; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    transition: 0.3s transform ease, 0.3s border ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.notification-card:active { transform: scale(0.98); }
.notification-card:hover { transform: translateY(-3px); border-left-color: var(--brand-secondary); }
.notification-card.unread { border-left-color: var(--brand-primary); background: #111; }

.notif-title { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.notif-time { font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 12px; font-weight: bold; }
.notif-body { color: #ccc; line-height: 1.6; font-size: 1rem; }

.ref-badge { display: inline-block; background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%); color: #000; padding: 8px 15px; border-radius: 8px; font-weight: 800; font-family: var(--font-heading); margin-top: 15px; box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2); }

.rating-box { margin-top: 15px; background: rgba(212, 175, 55, 0.05); padding: 15px; border-radius: 10px; border: 1px dashed var(--brand-secondary); text-align: center; }
.stars-container { display: flex; justify-content: center; gap: 10px; font-size: 2.2rem; color: #444; margin-top: 10px; }
.stars-container i { cursor: pointer; transition: 0.2s; }
.stars-container i:hover { color: var(--brand-primary); transform: scale(1.2); text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.rated-text { color: var(--status-green); font-family: var(--font-heading); font-weight: bold; font-size: 1.1rem; }

#empty-state { text-align: center; padding: 60px 20px; background: rgba(17,17,17,0.8); border-radius: 20px; border: 1px dashed #333; }
#empty-state i { font-size: 4.5rem; color: #333; margin-bottom: 20px; }
#empty-state p { font-family: var(--font-heading); font-size: 1.2rem; color: #666; text-transform: uppercase; }

.unread-dot { position: absolute; top: 25px; right: 25px; width: 10px; height: 10px; background: var(--brand-primary); border-radius: 50%; box-shadow: 0 0 10px var(--brand-primary); transition: 0.3s; }
/* ====================================================================
   👥 PAYROLL.HTML - HR COMMAND CENTER & STAFF ROSTER
   ==================================================================== */
.header-card { background: var(--bg-surface); padding: 30px; border-radius: 20px; border: 2px solid var(--status-purple); box-shadow: 0 15px 40px rgba(0,0,0,0.8); margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.header-title { font-family: var(--font-heading); color: var(--status-purple); font-size: 2rem; margin: 0; text-transform: uppercase; display: flex; align-items: center; gap: 15px; }

.tab-container { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; overflow-x: auto; }
.tab-btn { background: transparent; color: #888; border: none; font-family: var(--font-heading); font-size: 1.2rem; text-transform: uppercase; cursor: pointer; padding: 10px 20px; transition: 0.3s; white-space: nowrap; }
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: var(--status-purple); border-bottom: 3px solid var(--status-purple); }
.tab-content { display: none; animation: fadeIn 0.3s ease forwards; }
.tab-content.active { display: block; }

.staff-grid, .data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.staff-card { background: var(--bg-surface); border-radius: 12px; border: 1px solid #333; border-top: 5px solid var(--status-purple); padding: 20px; position: relative; display: flex; flex-direction: column; }
.staff-card.subbie { border-top-color: var(--brand-primary); }

.staff-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.staff-name { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; margin: 0 0 5px 0; text-transform: uppercase; }
.badge { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: bold; font-family: var(--font-heading); text-transform: uppercase; border: 1px solid transparent; display: inline-block; margin-bottom: 5px;}
.badge-paye { background: rgba(139, 92, 246, 0.1); color: var(--status-purple); border-color: var(--status-purple); }
.badge-subbie { background: rgba(212, 175, 55, 0.1); color: var(--brand-primary); border-color: var(--brand-primary); }
.badge-unsigned { background: rgba(220, 53, 69, 0.1); color: var(--status-red); border-color: var(--status-red); }

.onboard-section { background: #111; padding: 25px; border-radius: 12px; border: 1px solid #333; margin-bottom: 20px; }
.section-title { color: var(--status-purple); font-family: var(--font-heading); text-transform: uppercase; border-bottom: 1px dashed #333; padding-bottom: 10px; margin-top: 0; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.vault-item { background: #000; border: 1px solid #333; border-left: 4px solid var(--brand-primary); padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.vault-item h4 { margin: 0 0 5px 0; color: white; font-family: var(--font-heading); text-transform: uppercase; }
.vault-item p { margin: 0; color: #888; font-size: 0.85rem; }
/* ====================================================================
   👤 PROFILE.HTML - CLIENT PORTAL & LEDGER
   ==================================================================== */
.client-dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-bottom: 30px; }
@media (min-width: 900px) { .client-dashboard-grid { grid-template-columns: 1fr 2fr; align-items: start; } }

.client-card { background: linear-gradient(145deg, var(--bg-surface) 0%, #111 100%); padding: 30px; border-radius: 24px; border: 1px solid #333; box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative; overflow: hidden; }
.client-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary)); }

.profile-header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-bottom: 1px dashed #333; padding-bottom: 25px; margin-bottom: 25px; }
.profile-header img { width: 90px; height: 90px; border-radius: 24px; border: 2px solid var(--brand-primary); box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); object-fit: cover; }
.profile-info h2 { margin: 0; font-family: var(--font-heading); color: #fff; text-transform: uppercase; font-size: 2rem; line-height: 1.1; }
.profile-info p { margin: 5px 0 0 0; color: var(--brand-primary); font-weight: bold; font-size: 0.95rem; }
.verified-badge { background: var(--brand-primary); color: #000; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; border: 2px solid var(--bg-canvas); vertical-align: top; margin-left: 8px; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

.gdpr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gdpr-row .btn-sov { flex: 1; font-size: 0.8rem; padding: 10px; }

.ledger-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 25px; }
.ledger-box { background: rgba(0,0,0,0.4); padding: 20px; border-radius: 16px; text-align: center; border: 1px solid #222; }
.box-due { border-bottom: 3px solid var(--status-red); background: linear-gradient(180deg, rgba(220, 53, 69, 0.05) 0%, transparent 100%); }
.box-paid { border-bottom: 3px solid var(--status-green); }
.box-due.pulse { animation: redPulse 2s infinite; }
@keyframes redPulse { 0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } }
.amount { font-family: var(--font-heading); font-size: 2.2rem; display: block; color: #fff; margin-bottom: 5px; line-height: 1; }
.label { font-size: 0.75rem; font-weight: bold; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.vault-feed { max-height: 400px; overflow-y: auto; padding-right: 10px; }
.vault-item { padding: 18px; background: #0a0a0a; border-radius: 16px; margin-bottom: 12px; border-left: 4px solid var(--brand-primary); transition: 0.3s; border-top: 1px solid #222; border-right: 1px solid #222; border-bottom: 1px solid #222; }
.vault-item:hover { background: #111; transform: translateX(5px); border-color: #444; border-left-color: var(--brand-primary); }
.vault-date { font-family: var(--font-heading); font-size: 0.8rem; color: var(--brand-secondary); display: block; margin-bottom: 6px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }

.section-title { font-family: var(--font-heading); color: #fff; margin-top: 0; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.section-title i { color: var(--brand-primary); }
        
.bill-row { display: flex; justify-content: space-between; align-items: center; padding: 25px; border: 1px solid #222; border-radius: 16px; margin-bottom: 15px; background: #0a0a0a; flex-wrap: wrap; gap: 15px; transition: 0.3s; border-left: 6px solid #444; position: relative;}
.bill-row:hover { background: #111; border-color: #444; border-left-color: #666; }
.bill-row.unpaid-row { border-left-color: var(--status-red); background: linear-gradient(90deg, rgba(220, 53, 69, 0.05) 0%, transparent 100%); }
.bill-row.paid-row { border-left-color: var(--status-green); }
.bill-row.revision-row { border-left-color: var(--brand-primary); }
        
.bill-info b { display: block; color: #fff; font-size: 1.2rem; font-family: var(--font-heading); letter-spacing: 1px; margin-bottom: 5px; }
.bill-info span { display: block; color: #aaa; font-size: 0.9rem; }
.bill-ref { font-family: monospace; font-size: 0.75rem; color: var(--brand-secondary); background: rgba(212, 175, 55, 0.1); padding: 4px 8px; border-radius: 6px; margin-top: 8px; display: inline-block;}
        
.price-tag { font-family: var(--font-heading); font-weight: bold; color: #fff; font-size: 1.6rem; display: block; text-align: right; line-height: 1; margin-bottom: 8px; }

.btn-pay-secure { width: 100%; margin-top: 15px; background: linear-gradient(135deg, var(--status-blue) 0%, #1e40af 100%); color: white; border: none; padding: 12px 20px; border-radius: 8px; font-family: var(--font-heading); font-size: 1rem; font-weight: bold; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-pay-secure:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(59, 130, 246, 0.5); }
.btn-pay-secure:active { transform: scale(0.98); }

.diagnostics-card { background: transparent; color: #888; border-radius: 16px; padding: 20px; text-align: center; border: 1px dashed #333; margin-top: 40px; }
.btn-sync { background: transparent; border: 1px solid #555; color: #ccc; padding: 10px 20px; border-radius: 8px; font-family: var(--font-heading); font-size: 0.9rem; cursor: pointer; transition: 0.3s; margin-top: 10px; text-transform: uppercase; }
.btn-sync:hover { background: #333; color: #fff; }

.star-container { display: flex; justify-content: center; gap: 15px; margin: 25px 0; font-size: 2.5rem; }
.rating-star { color: #333; cursor: pointer; transition: 0.2s; }
.rating-star.active { color: var(--brand-primary); text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); transform: scale(1.1); }
.rating-star:hover { transform: scale(1.2); color: var(--brand-secondary); }
#rating-comment { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid #333; background: #050505; color: #fff; font-family: var(--font-body); box-sizing: border-box; font-size: 1rem; transition: 0.3s; resize: none; }
#rating-comment:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }

.document-card { background: #fdfdfd; width: 95%; max-width: 550px; padding: 40px; border-radius: 16px; font-family: var(--font-body); color: #111; position: relative; max-height: 90vh; overflow-y: auto;}
.document-header { text-align: center; border-bottom: 2px solid #111; padding-bottom: 20px; margin-bottom: 20px; }
.document-header img { height: 60px; margin-bottom: 15px; filter: invert(1); }
.document-header h3 { font-family: var(--font-heading); margin: 0; font-size: 2.2rem; color: #111; text-transform: uppercase; letter-spacing: 2px; }
.doc-type { font-size: 1rem; color: #666; font-weight: bold; letter-spacing: 4px; text-transform: uppercase; }
.document-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: bold; margin-top: 25px; border-top: 2px solid #111; padding-top: 20px; color: #111; font-family: var(--font-heading); }
.bacs-box { margin-top: 25px; padding: 20px; background: #f0f0f0; border: 2px dashed #bbb; border-radius: 12px; font-size: 0.95rem; text-align: left; }
.bacs-title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; color: #111; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
/* ====================================================================
   🚛 STAFF-DASHBOARD.HTML - CREW TERMINAL & TIMECLOCK
   ==================================================================== */
.skeleton { background: linear-gradient(90deg, var(--bg-surface) 25%, #2a2a2a 50%, var(--bg-surface) 75%); background-size: 200% 100%; animation: skeletonLoading 1.5s infinite; border-radius: 12px; border: 1px solid #333; height: 140px; margin-bottom: 15px; }
@keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.dashboard-header { background: var(--bg-surface); padding: 25px; border-radius: 20px; border: 2px solid var(--brand-secondary); box-shadow: 0 15px 40px rgba(0,0,0,0.8); margin-bottom: 25px; text-align: center; }

.timeclock-card { background: rgba(0,0,0,0.3); border: 1px dashed var(--status-blue); border-radius: 12px; padding: 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.timeclock-status { font-family: var(--font-heading); font-size: 1.2rem; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.tc-off { color: var(--status-red); }
.tc-on { color: var(--status-green); }

.date-selector { display: flex; justify-content: space-between; align-items: center; background: #000; padding: 10px 20px; border-radius: 12px; border: 1px solid #333; margin-bottom: 20px; }
.date-btn { background: transparent; border: none; color: var(--brand-primary); font-size: 1.5rem; cursor: pointer; padding: 5px 15px; transition: transform 0.2s; }
.date-btn:active { transform: scale(0.8); }
.date-display { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; text-transform: uppercase; margin: 0; }

.btn-clock { width: auto; padding: 10px 25px; font-size: 1rem; }
.btn-comp { background: var(--status-green); color: white; border: 2px solid #1e7e34; }

.job-inner { padding: 20px; display: flex; flex-direction: column; gap: 10px; }

.hr-card { background: var(--bg-surface); border-radius: 12px; padding: 25px; margin-bottom: 20px; border: 1px solid #333; border-top: 4px solid var(--brand-primary); }
.hr-stat { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #333; padding-bottom: 15px; margin-bottom: 15px; }
.hr-stat:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.hr-label { font-size: 0.9rem; color: #888; text-transform: uppercase; font-family: var(--font-heading); }
.hr-value { font-size: 1.8rem; font-weight: bold; color: white; font-family: var(--font-body); }

.holiday-list { margin-top: 15px; }
.holiday-item { background: #000; padding: 15px; border-radius: 8px; border: 1px solid #222; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.h-dates { font-weight: bold; font-family: var(--font-heading); color: #ccc; font-size: 1.1rem; }

.radio-group { display: flex; gap: 10px; margin-bottom: 20px; }
.radio-btn { flex: 1; padding: 15px; background: #111; border: 2px solid #333; border-radius: 8px; color: #888; font-family: var(--font-heading); cursor: pointer; text-transform: uppercase; font-weight: bold; transition: 0.2s; }
.radio-btn.active { background: rgba(40, 167, 69, 0.1); border-color: var(--status-green); color: var(--status-green); }

/* 🚨 DIGITAL INTERCEPT STYLES (Signature Blockade) */
#contract-intercept { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-canvas); z-index: 50000; flex-direction: column; overflow-y: auto; padding: 40px 20px; box-sizing: border-box; }
.legal-terms-box { background: #111; border: 2px solid var(--status-purple); border-radius: 12px; padding: 25px; height: 50vh; overflow-y: auto; text-align: left; color: #ccc; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.legal-terms-box h3 { color: var(--brand-primary); font-family: var(--font-heading); text-transform: uppercase; margin-top: 0; border-bottom: 1px dashed #333; padding-bottom: 10px; }
.legal-terms-box h4 { color: white; font-family: var(--font-heading); margin-bottom: 5px; margin-top: 15px; }
.legal-signature-area { background: rgba(139, 92, 246, 0.1); padding: 20px; border-radius: 12px; border: 1px dashed var(--status-purple); text-align: center; }

/* Canvas Styling */
#signature-pad { width: 100%; height: 200px; background: #fff; border-radius: 8px; touch-action: none; cursor: crosshair; }

/* 🔒 MANIFEST LOCK STYLES */
.manifest-lock { text-align:center; padding:50px; background:rgba(0,0,0,0.5); border:2px dashed var(--status-red); border-radius:12px; margin-top:20px; }
.manifest-lock i { color:var(--status-red); margin-bottom:15px; }
.manifest-lock h3 { font-family:var(--font-heading); color:white; text-transform:uppercase; margin-top:0; }
/* ====================================================================
   ✅ SUCCESS.HTML - PAYMENT SECURED & VAULT UNLOCK
   ==================================================================== */
.success-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-canvas) 100%); position: relative; overflow: hidden; z-index: 1;}

/* Subtle tech grid background */
.success-wrapper::before { content: ''; position: absolute; width: 100%; height: 100%; background: repeating-linear-gradient(transparent, transparent 4px, rgba(212, 175, 55, 0.03) 4px, rgba(212, 175, 55, 0.03) 8px); z-index: -1; pointer-events: none;}

.glass-card-success { background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(20px); border: 1px solid #333; border-top: 4px solid var(--status-green); border-radius: 24px; box-shadow: 0 30px 80px rgba(40, 167, 69, 0.15); max-width: 550px; width: 100%; margin: auto; padding: 50px 40px; text-align: center; position: relative; z-index: 10; transform: translateY(30px); opacity: 0; animation: slideUpFade 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes slideUpFade { to { transform: translateY(0); opacity: 1; } }

.pulse-circle-success { width: 100px; height: 100px; background: rgba(40, 167, 69, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px auto; border: 2px solid var(--status-green); box-shadow: 0 0 30px rgba(40, 167, 69, 0.4); animation: successPulse 2.5s infinite; }
.pulse-circle-success i { font-size: 3.5rem; color: var(--status-green); text-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }

@keyframes successPulse { 0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5); } 70% { box-shadow: 0 0 0 30px rgba(40, 167, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); } }

.auth-display-box { margin-bottom: 30px; padding: 20px; background: #000; border-radius: 12px; border: 1px dashed #444; color: var(--brand-primary); font-family: 'JetBrains Mono', monospace; display: none; font-size: 0.9rem; text-align: center; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); letter-spacing: 1px; animation: fadeIn 0.5s ease;}

.btn-success-proceed { padding: 18px 25px; border: none; border-radius: 12px; font-family: var(--font-heading); font-weight: bold; cursor: pointer; text-transform: uppercase; font-size: 1.2rem; background: var(--status-green); color: white; width: 100%; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 12px; letter-spacing: 1px; box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2); }
.btn-success-proceed:hover { filter: brightness(1.2); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(40, 167, 69, 0.4); }
.btn-success-proceed:active { transform: scale(0.98); }
.btn-success-proceed:disabled { background: #222; color: #555; cursor: not-allowed; transform: none; box-shadow: none; border: 1px solid #333; }
/* ====================================================================
   🚀 SYSTEMATIC-THINKER.HTML - VIRAL ACQUISITION SALES PAGE
   ==================================================================== */
body.st-sales-page { background: var(--bg-canvas); color: var(--text-main); overflow-x: hidden; }

/* Global Background Grid Animation */
body.st-sales-page::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px; z-index: -2; pointer-events: none;
}
body.st-sales-page::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-canvas) 100%);
    z-index: -1; pointer-events: none;
}

/* Override Header Logo for this specific page to always show HQ */
body.st-sales-page .system-header img { display: none !important; }
body.st-sales-page .system-header a[href="/"] {
    display: block; width: 75px; height: 75px; 
    background-image: url('/logo-systematic-thinker-hq.png'); 
    background-size: contain; background-repeat: no-repeat; background-position: left center;
    transition: transform 0.3s ease, filter 0.3s ease;
}
body.st-sales-page .system-header a[href="/"]:hover { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6)); }

.hero { text-align: center; padding: 100px 20px 80px; max-width: 1200px; margin: 0 auto; position: relative; }
.hero-icon-container { position: relative; display: inline-block; margin-bottom: 40px; }
.hero-icon-container i { color: #00E5FF; filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6)); position: relative; z-index: 2; }
.hero-icon-container::before {
    content: ''; position: absolute; top: -20px; left: -20px; right: -20px; bottom: -20px;
    border: 1px dashed #008B99; border-radius: 50%; animation: spin 10s linear infinite; z-index: 1;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.hero h1 { font-family: var(--font-heading); font-size: 5.5rem; color: white; margin-bottom: 25px; line-height: 1.1; text-transform: uppercase; letter-spacing: -2px; text-shadow: 0 10px 40px rgba(0,0,0,0.9); }
.hero h1 span { color: #00E5FF; text-shadow: 0 0 20px rgba(0, 229, 255, 0.6); }
.hero p { font-size: 1.6rem; color: #ccc; max-width: 800px; margin: 0 auto 50px; font-weight: 300; letter-spacing: 1px; line-height: 1.6; }

.interactive-card { cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; }
.interactive-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255, 0.05), transparent); transition: 0.5s;
}
.interactive-card:hover::after { left: 100%; }

.specs-dashboard { max-width: 1200px; margin: 0 auto 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; padding: 0 5%; }
.spec-box { background: linear-gradient(145deg, rgba(20,20,20,0.9) 0%, rgba(5,5,5,0.95) 100%); border: 1px solid #222; padding: 40px 30px; border-radius: 16px; text-align: center; backdrop-filter: blur(15px); border-top: 3px solid #00E5FF; }
.spec-box:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2); border-color: #008B99; }
.spec-box i { color: #00E5FF; font-size: 3rem; margin-bottom: 20px; filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6)); transition: 0.3s; }
.spec-box:hover i { transform: scale(1.1); }
.spec-box .val { display: block; font-family: monospace; font-size: 2.5rem; color: white; font-weight: bold; text-shadow: 0 2px 15px rgba(255,255,255,0.3); margin-bottom: 5px;}
.spec-box .label { font-family: var(--font-heading); font-size: 1rem; color: #888; text-transform: uppercase; letter-spacing: 3px; }

.section-header { text-align: center; font-family: var(--font-heading); font-size: 3.5rem; color: white; margin-bottom: 60px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 5px 20px rgba(0,0,0,0.8); position: relative; }
.section-header span { color: #00E5FF; }
.section-header.gold span { color: var(--brand-primary); text-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }

.arsenal-container { max-width: 1200px; margin: 0 auto 120px; padding: 0 5%; }
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.arsenal-card { background: rgba(10, 10, 10, 0.9); border: 1px solid #333; padding: 40px; border-radius: 20px; border-left: 4px solid #00E5FF; }
.arsenal-card:hover { background: #111; border-color: #00E5FF; box-shadow: 10px 10px 30px rgba(0,0,0,0.5); transform: translateX(5px); }
.arsenal-card h3 { font-family: var(--font-heading); font-size: 1.8rem; color: white; margin: 0 0 15px; text-transform: uppercase; display: flex; align-items: center; gap: 15px;}
.arsenal-card h3 i { color: #00E5FF; font-size: 2rem; transition: 0.3s;}
.arsenal-card:hover h3 i { filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6)); }
.arsenal-card p { font-size: 1.1rem; color: #aaa; margin: 0; line-height: 1.7;}

.audit-container { max-width: 1100px; margin: 0 auto 120px; padding: 0 5%; width: 100%; box-sizing: border-box;}
.audit-wrapper { background: rgba(10, 10, 10, 0.9); padding: 50px; border-radius: 24px; border: 1px solid #333; box-shadow: 0 30px 60px rgba(0,0,0,0.8); position: relative; width: 100%; box-sizing: border-box; overflow-x: auto; }
.audit-wrapper::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 3px; background: linear-gradient(90deg, transparent, #00E5FF, transparent); box-shadow: 0 0 20px rgba(0, 229, 255, 0.6); }
.audit-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #080808; border-radius: 16px; overflow: hidden; margin-top: 30px; font-family: monospace; border: 1px solid #222; min-width: 600px; }
.audit-table th { background: #111; color: #00E5FF; padding: 30px 25px; text-align: left; font-family: var(--font-heading); text-transform: uppercase; font-size: 1.2rem; letter-spacing: 1px; border-bottom: 2px solid #222; }
.audit-table td { padding: 25px; border-bottom: 1px solid #1a1a1a; transition: background 0.3s; font-size: 1.1rem; color: #ddd; }
.audit-table tr:hover td { background: rgba(0, 229, 255, 0.05); }
.audit-table tr:last-child td { border-bottom: none; }
.high-score { color: #00FF41 !important; font-weight: bold; text-shadow: 0 0 15px rgba(0, 255, 65, 0.7); font-size: 1.2rem !important;}

.modules-container { max-width: 1100px; margin: 0 auto 120px; padding: 0 5%; }
.addon-card { background: linear-gradient(90deg, rgba(20,20,20,0.9) 0%, rgba(10,10,10,0.95) 100%); border: 1px solid #333; padding: 40px; border-radius: 20px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--brand-secondary); }
.addon-card:hover { border-color: var(--brand-primary); background: linear-gradient(90deg, rgba(30,25,0,0.9) 0%, rgba(10,10,10,0.95) 100%); transform: translateX(15px); box-shadow: -10px 15px 40px rgba(255, 215, 0, 0.15); }
.addon-info h3 { margin: 0 0 10px 0; color: var(--brand-primary); font-family: var(--font-heading); text-transform: uppercase; font-size: 1.8rem; letter-spacing: 1px;}
.addon-info p { margin: 0; color: #aaa; font-size: 1.1rem; max-width: 600px;}
.addon-price { font-family: monospace; font-size: 2.2rem; color: white; font-weight: bold; text-shadow: 0 2px 15px rgba(255,255,255,0.2); white-space: nowrap;}
.addon-price span { font-size: 1rem; color: #888; font-family: var(--font-body); font-weight: normal; text-shadow: none; display: block; text-align: right;}

.compliance-box { max-width: 1000px; margin: 0 auto 100px; background: rgba(220, 53, 69, 0.05); border: 1px solid #333; border-left: 5px solid var(--status-red); padding: 30px; border-radius: 12px; }
.compliance-box h4 { font-family: var(--font-heading); color: var(--status-red); margin-top: 0; text-transform: uppercase; letter-spacing: 2px; }
.compliance-box p { font-size: 0.95rem; color: #999; margin-bottom: 0; }

.st-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10000; backdrop-filter: blur(15px); align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.st-modal-overlay.active { display: flex; }
.st-modal-card { background: rgba(10, 10, 10, 0.9); width: 100%; max-width: 600px; padding: 50px; border-radius: 24px; border: 2px solid #00E5FF; box-shadow: 0 30px 80px rgba(0,0,0,0.9); position: relative; max-height: 90vh; overflow-y: auto; }
.st-modal-card.gold-modal { border-color: var(--brand-primary); }
.st-modal-card h2 { font-family: var(--font-heading); color: #00E5FF; margin-top: 0; font-size: 2.2rem; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 20px rgba(0, 229, 255, 0.6); display: flex; align-items: center; gap: 15px;}
.st-modal-card.gold-modal h2 { color: var(--brand-primary); text-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
.st-modal-card p { color: #ccc; font-size: 1.1rem; margin-bottom: 25px; line-height: 1.7; }
.st-modal-card ul { color: #ccc; font-size: 1.05rem; line-height: 1.8; margin-bottom: 30px; background: rgba(255,255,255,0.02); padding: 20px 20px 20px 40px; border-radius: 12px;}
.btn-close-modal { position: absolute; top: 20px; right: 25px; color: #555; font-size: 1.8rem; cursor: pointer; transition: 0.2s; }
.btn-close-modal:hover { color: white; }

@media (max-width: 900px) {
    body.st-sales-page .hero h1 { font-size: 3.8rem; }
    body.st-sales-page .addon-card { flex-direction: column; text-align: center; gap: 20px; padding: 30px;}
    body.st-sales-page .addon-price span { text-align: center; }
    body.st-sales-page .specs-dashboard { grid-template-columns: 1fr; }
    body.st-sales-page .audit-wrapper { padding: 30px; }
    body.st-sales-page .audit-table { font-size: 0.95rem; }
    body.st-sales-page .audit-table th, body.st-sales-page .audit-table td { padding: 15px; }
    body.st-sales-page .st-modal-card { padding: 30px; }
}
@media (max-width: 600px) {
    body.st-sales-page .hero { padding: 60px 15px 40px; }
    body.st-sales-page .hero h1 { font-size: 2.8rem; letter-spacing: -1px; }
    body.st-sales-page .hero p { font-size: 1.1rem; }
    body.st-sales-page .section-header { font-size: 2.2rem; margin-bottom: 40px; }
    body.st-sales-page .spec-box { padding: 30px 20px; }
    body.st-sales-page .spec-box i { font-size: 2.5rem; }
    body.st-sales-page .spec-box .val { font-size: 2rem; }
    body.st-sales-page .audit-wrapper { padding: 20px; }
    body.st-sales-page .audit-table th, body.st-sales-page .audit-table td { font-size: 0.85rem; padding: 10px; }
    body.st-sales-page .addon-info h3 { font-size: 1.5rem; flex-direction: column; }
    body.st-sales-page .addon-price { font-size: 2rem; }
    body.st-sales-page .st-modal-card { padding: 30px 15px; border-radius: 16px; }
    body.st-sales-page .st-modal-card h2 { font-size: 1.6rem; flex-direction: column; text-align: center; gap: 10px;}
}
/* ====================================================================
   👷 TEAM.HTML - SUBCONTRACTOR WAGE LOGGING
   ==================================================================== */
.team-card { background: var(--bg-surface); padding: 35px; border-radius: 24px; box-shadow: 0 25px 60px rgba(0,0,0,0.8); border: 2px solid var(--brand-secondary); min-height: 600px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media(max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }

.pay-panel { background: rgba(0,0,0,0.5); border-radius: 20px; padding: 25px; border: 1px dashed #333; }
.pay-panel h3 { font-family: var(--font-heading); color: var(--brand-primary); margin-top: 0; border-bottom: 1px dashed #333; padding-bottom: 10px; text-transform: uppercase;}

.history-panel { background: rgba(0,0,0,0.5); border-radius: 20px; padding: 25px; border: 1px solid #333; min-height: 300px; }
.history-panel h3 { font-family: var(--font-heading); color: var(--brand-primary); margin-top: 0; border-bottom: 1px dashed #333; padding-bottom: 10px; text-transform: uppercase;}

.wage-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #222; }
.wage-item:last-child { border-bottom: none; }
.wage-details { display: flex; flex-direction: column; }
.wage-name { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; text-transform: uppercase;}
.wage-date { font-size: 0.8rem; color: #888; font-weight: bold; text-transform: uppercase; }
.wage-amount { font-family: var(--font-heading); font-size: 1.2rem; color: var(--status-red); font-weight: bold; }
/* ====================================================================
   MASTER SOVEREIGN BUTTON COMPONENT (.btn-sov)
   ==================================================================== */
.btn-sov {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--brand-primary);
    color: #000;
    border: 1px solid var(--brand-secondary);
    padding: 14px 24px;
    border-radius: 12px; /* Smooth modern corners */
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-sov:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    filter: brightness(1.1);
}

.btn-sov:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.btn-sov:disabled {
    background: #222 !important;
    color: #666 !important;
    border-color: #333 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sov.btn-ghost {
    background: transparent;
    color: #ccc;
    border-color: #555;
}
.btn-sov.btn-ghost:hover {
    background: #333;
    color: #fff;
}
/* ====================================================================
   🔒 GLOBAL MODAL SYSTEM (CRITICAL FIX)
   ==================================================================== */
.sov-modal { 
    display: none; /* THIS KEEPS THEM HIDDEN */
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); 
    z-index: 99999; 
    backdrop-filter: blur(10px); 
    align-items: center; 
    justify-content: center; 
}
.sov-modal.active { 
    display: flex; /* THIS SHOWS THEM WHEN CLICKED */
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
@keyframes modalPop { 
    from { transform: scale(0.9); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}
.st-input {
    width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #333; background: #050505; color: #fff; font-family: var(--font-body); box-sizing: border-box; font-size: 1rem; transition: 0.3s;
}
.st-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
/* ====================================================================
   🎛️ WEB-MATRIX.HTML - BRAND CONFIGURATOR
   ==================================================================== */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .config-grid { grid-template-columns: 1fr; }
}

.config-panel {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #333;
    border-top: 4px solid var(--brand-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.color-preview-box {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.color-picker-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}
.color-picker-wrapper input[type="text"] {
    flex-grow: 1;
    margin-bottom: 0;
    font-family: monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.form-builder-list {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 150px;
}
.form-field-item {
    background: #111;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--brand-secondary);
}
.form-field-item .field-name {
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
}
.form-field-item .field-type {
    color: #888;
    font-size: 0.8rem;
    font-family: monospace;
    background: #222;
    padding: 3px 8px;
    border-radius: 4px;
}