/* 
 * SentryPress Ultimate Master Stylesheet 
 * Final Stabilized Version - No Truncation
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-dark: #05070a;
    --bg-slate: #0b0f1a;
    --bg-card: rgba(15, 23, 42, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #64748b;
    --text-dim: #475569;
    --transition: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Reusable Data Table Style (Premium) */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.data-table th { padding: 15px 20px; text-align: left; color: var(--text-dim); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.data-table td { background: rgba(255,255,255,0.015); padding: 20px; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); transition: 0.3s; }
.data-table td:first-child { border-left: 1px solid var(--glass-border); border-radius: 16px 0 0 16px; }
.data-table td:last-child { border-right: 1px solid var(--glass-border); border-radius: 0 16px 16px 0; }
.data-table tr:hover td { background: rgba(255,255,255,0.04); border-color: rgba(99, 102, 241, 0.2); }

/* Global Admin Layout Components */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.page-header h2 { margin: 0; }

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
}

h1, h2, h3, h4, .logo { font-family: 'Outfit', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Mouse Glow Effect */
.cursor-glow {
    position: fixed;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: blur(80px);
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: transparent;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: white;
    font-size: 1.6rem; font-weight: 800;
}

.logo-icon {
    width: 42px; height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 25px var(--primary-glow);
}

.logo span span { color: var(--primary); }

.nav-links { list-style: none; display: flex; gap: 35px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--text-muted); 
    font-weight: 500; font-size: 0.95rem; 
    transition: var(--transition);
}
.nav-links a:hover { color: white; }

/* BUTTONS */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px var(--primary-glow); }

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main) !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.btn-secondary:hover { background: var(--glass-hover); transform: translateY(-2px); }

/* HERO */
#hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.pulse { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); } 70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }

h1 { font-size: 4.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -2px; margin-bottom: 25px; }
.gradient-text { background: linear-gradient(135deg, #fff 0%, #94a3b8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-p { font-size: 1.25rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 40px; }

/* SHIELD & SCANNING */
.shield-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 60px auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-glow {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-glow);
    animation: rotate 15s linear infinite;
}

.shield-glow::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%; width: 12px; height: 12px;
    background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 25px var(--primary);
}

.scanning-line {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    animation: scan 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes scan {
    0%, 100% { transform: translateY(-120px); opacity: 0; }
    50% { transform: translateY(120px); opacity: 1; }
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* SECTION HEADS */
h2 { font-size: 2.8rem; margin-bottom: 20px; }
.text-accent { color: var(--accent); }
/* PRICING GRID */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }
/* CHECKOUT GRID */
.checkout-layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 992px) { .checkout-layout-grid { grid-template-columns: 1fr; gap: 40px; } }

/* DASHBOARD SYSTEM */
.dashboard-container { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding-top: 120px; }
.sidebar { background: var(--bg-slate); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; height: fit-content; }
.sidebar-link { display: flex; align-items: center; gap: 15px; padding: 12px 20px; color: var(--text-muted); text-decoration: none; border-radius: 10px; transition: var(--transition); margin-bottom: 5px; }
.sidebar-link.active { background: var(--primary); color: white; }
.sidebar-link:hover:not(.active) { background: var(--glass); color: white; }
.main-content { padding-bottom: 100px; }
.license-card { background: var(--bg-slate); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.license-card:hover { border-color: var(--primary); }
.status-badge { padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.status-active { background: rgba(16, 185, 129, 0.1); color: var(--accent); }
.status-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-expired { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Modal & Form Utility */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.modal-content { background: var(--bg-slate); border: 1px solid var(--glass-border); border-radius: 32px; padding: 45px; width: 100%; max-width: 500px; box-shadow: var(--shadow-premium); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.form-input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: white; padding: 16px 20px; border-radius: 16px; font-size: 0.95rem; }

/* FEATURE CARDS */
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 45px;
    border-radius: 28px;
    transition: var(--transition);
    text-align: left;
    height: 100%;
}

.feature-card:hover { transform: translateY(-12px); border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 25px; display: block; }
.feature-card h4 { margin-top: 15px; font-size: 1.2rem; }

/* TABLES */
.comparison-table { 
    width: 100%; border-collapse: collapse; 
    background: var(--bg-slate); border: 1px solid var(--glass-border); 
    border-radius: 24px; overflow: hidden; margin-top: 40px;
}
.comparison-table th, .comparison-table td { padding: 22px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.comparison-table th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-weight: 600; }
.comparison-table td .fas.fa-check-circle { color: var(--accent); }
.comparison-table td .fas.fa-times { color: var(--danger); }

/* FAQ */
.faq-item { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.faq-question { font-weight: 600; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { color: var(--text-muted); margin-top: 12px; display: none; padding-top: 10px; border-top: 1px solid var(--glass-border); }

/* FOOTER */
footer {
    padding: 100px 0 40px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand p { color: var(--text-muted); margin-top: 20px; max-width: 400px; font-size: 0.95rem; }
.footer-links h4 { margin-bottom: 25px; font-size: 1.1rem; color: #fff; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 15px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 8px; }

.footer-bottom { 
    text-align: center; border-top: 1px solid var(--glass-border); 
    padding-top: 40px; margin-top: 60px; color: var(--text-muted); font-size: 0.9rem; 
}

/* SCROLL REVEAL - Safer Fallback */
.reveal {
    opacity: 1; /* Set to 1 by default to ensure content is never hidden if JS fails */
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* UTILS */
.grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 50px 50px; z-index: -1; }
.stat-box { transition: var(--transition); }
.stat-box:hover { transform: scale(1.05); }

/* 
 * SentryPress Live Hacking Map Styles
 */

#hero {
    position: relative;
    padding: 200px 0 150px;
    overflow: hidden;
    background: #020617;
}

#map-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_dots_blue.svg') no-repeat center;
    background-size: contain;
}

#hacking-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ping {
    position: absolute;
    width: 6px; height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 15px #ef4444;
}

.ping::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid #ef4444;
    animation: ping-expand 2s ease-out forwards;
}

@keyframes ping-expand {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(15); opacity: 0; }
}
@keyframes scan-progress {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* 
 * RESPONSIVE CORE 
 * Tactical breakpoints for all device classes
 */

@media (max-width: 1200px) {
    h1 { font-size: 3.5rem; }
    .container { max-width: 960px; }
}

@media (max-width: 992px) {
    .nav-links { display: none; } /* Simplified for mobile */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; letter-spacing: -1px; }
    h2 { font-size: 1.8rem; }
    
    #hero { padding: 150px 0 80px; }
    .hero-p { font-size: 1.1rem; }
    
    .price-card.pro-featured { transform: scale(1) !important; margin: 20px 0; }
    
    /* Stack Grids */
    .feature-grid, .grid-3 { grid-template-columns: 1fr !important; }
    
    /* Responsive Table Wrapper */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .comparison-table { min-width: 600px; }
    
    /* Dashboard & Checkout Layouts */
    .dashboard-container, .checkout-layout-grid { 
        grid-template-columns: 1fr !important; 
        gap: 30px !important;
        padding-top: 100px !important;
    }
    .sidebar { position: relative; width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--glass-border); padding: 20px; }
    .admin-content { margin-left: 0; padding: 20px; width: 100%; }
    
    /* Adjust Cards */
    .glass-card { padding: 25px !important; }
    .license-card { flex-direction: column; gap: 20px; text-align: center; }
    .license-card > div:last-child { border-left: none !important; border-top: 1px solid var(--glass-border); padding: 20px 0 0 !important; width: 100% !important; text-align: center !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .btn-primary, .btn-secondary { width: 100%; display: block; text-align: center; margin-bottom: 10px; }
    .logo-icon { width: 36px; height: 36px; }
    .logo { font-size: 1.3rem; }
}
