/* ===================================
   SSHSlowDNS Premium - Dark Theme CSS
   =================================== */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e1b4b;
    --bg-card: rgba(30, 27, 75, 0.4);
    --bg-card-hover: rgba(30, 27, 75, 0.6);
    --border-color: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.2);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #22d3ee;
    --accent-blue: #2563eb;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --gradient-primary: linear-gradient(135deg, #22d3ee, #2563eb);
    --gradient-secondary: linear-gradient(135deg, #a855f7, #ec4899);
    --gradient-bg: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(148, 163, 184, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #67e8f9; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); }
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-alt {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Layout --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand i { color: var(--accent-cyan); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }
.mobile-menu {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px);
    padding: 1.5rem; border-bottom: 1px solid var(--glass-border);
    flex-direction: column; gap: 1rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--text-secondary); padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 80px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease forwards;
}
.card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary); margin-bottom: 1rem; font-size: 1.2rem; color: white;
}
.card-icon.purple { background: var(--gradient-secondary); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; }

/* --- Pricing Cards --- */
.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
    transform: scale(1.05);
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-8px); }
.pricing-badge {
    position: absolute; top: 1rem; right: -2rem;
    background: var(--gradient-primary); color: white;
    padding: 0.25rem 2.5rem; font-size: 0.75rem; font-weight: 600;
    transform: rotate(45deg); text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.pricing-price { font-size: 3rem; font-weight: 800; margin: 1rem 0; }
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { margin: 2rem 0; text-align: left; }
.pricing-features li { padding: 0.5rem 0; color: var(--text-secondary); display: flex; align-items: center; gap: 0.75rem; }
.pricing-features li i { color: var(--accent-green); }

/* --- Protocol Grid --- */
.protocol-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.protocol-card:hover { transform: translateY(-4px); border-color: var(--accent-cyan); }
.protocol-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-cyan); }
.protocol-card h4 { margin-bottom: 0.5rem; }
.protocol-card p { font-size: 0.85rem; color: var(--text-muted); }

/* --- Stats Bar --- */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem; padding: 3rem 0;
}
.stat-item { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* --- Feature Table --- */
.feature-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.feature-table th, .feature-table td { padding: 1rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.feature-table th { color: var(--text-primary); font-weight: 600; background: rgba(15, 23, 42, 0.5); }
.feature-table td { color: var(--text-secondary); font-size: 0.9rem; }
.feature-table tr:hover td { background: rgba(34, 211, 238, 0.02); }
.feature-table td:first-child { text-align: left; font-weight: 500; color: var(--text-primary); }
.check { color: var(--accent-green); }
.cross { color: var(--accent-red); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
    transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--gradient-primary); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3); color: white; }
.btn-secondary { background: var(--gradient-secondary); color: white; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3); color: white; }
.btn-ghost { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--accent-red); color: white; }
.btn-success { background: var(--accent-green); color: white; }
.btn-warning { background: var(--accent-yellow); color: #000; }

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; font-weight: 500; }
.form-input {
    width: 100%; padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.95rem;
    transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-error { color: var(--accent-red); font-size: 0.8rem; margin-top: 0.25rem; }
.auth-card {
    max-width: 420px; margin: 120px auto 3rem;
    background: var(--bg-card); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
}
.auth-card .logo { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; font-weight: 700; }

/* --- Badges --- */
.badge {
    display: inline-flex; align-items: center; padding: 0.25rem 0.75rem;
    border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--accent-yellow); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-info { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); border: 1px solid rgba(34, 211, 238, 0.2); }

/* --- Footer --- */
.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-brand h4 { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links h5 { color: var(--text-primary); margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.85rem; padding: 0.3rem 0; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; }

/* --- Dashboard Layout --- */
.dashboard { padding-top: 100px; min-height: 100vh; }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { font-size: 1.75rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--bg-card); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    padding: 1.5rem; transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.stat-card .stat-icon.cyan { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); }
.stat-card .stat-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.stat-card .stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.stat-card .stat-icon.pink { background: rgba(236, 72, 153, 0.1); color: var(--accent-pink); }
.stat-card h4 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.stat-card p { font-size: 0.85rem; color: var(--text-muted); }

/* --- Tables --- */
.table-wrapper {
    background: var(--bg-card); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 2rem;
}
.table-wrapper h3 { padding: 1.5rem 1.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 1rem 1.5rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: 1px solid var(--border-color); }
.data-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(34, 211, 238, 0.02); }

/* --- Accordion --- */
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header { padding: 1.25rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); font-weight: 500; }
.accordion-header:hover { color: var(--accent-cyan); }
.accordion-body { padding: 0 0 1.25rem; color: var(--text-secondary); font-size: 0.9rem; display: none; }
.accordion-item.active .accordion-body { display: block; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: block; }
    .hero { min-height: auto; padding: 120px 0 60px; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-8px); }
    .section { padding: 3rem 0; }
    .auth-card { margin: 100px 1rem 2rem; padding: 2rem 1.5rem; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(-20px, -20px) rotate(2deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.animate-fade { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-delay-1 { animation: fadeInUp 0.6s ease 0.1s forwards; opacity: 0; }
.animate-fade-delay-2 { animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0; }
.animate-fade-delay-3 { animation: fadeInUp 0.6s ease 0.3s forwards; opacity: 0; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.hidden { display: none; }
.overflow-x { overflow-x: auto; }
.copy-btn { cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.copy-btn:hover { color: var(--accent-cyan); }
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.quick-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
