/**
 * 📁 /public/css/style.css
 * RedGalaxy DarkBot Cyberpunk / Glassmorphism Design System
 */

:root {
    --bg-dark: #070a12;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-color: rgba(56, 189, 248, 0.2);
    --border-glow: rgba(56, 189, 248, 0.4);
    --accent-cyan: #38bdf8;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.12), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.brand-text .title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    display: block;
}

.brand-text .subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Container */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero */
.hero-section {
    text-align: center;
    margin-bottom: 35px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.neon-cyan {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.main-card {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.15);
    margin-bottom: 40px;
}

.card-header {
    margin-bottom: 20px;
}

.card-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 4px;
}

.card-header h2, .card-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #fff;
}

/* Inputs & Buttons */
.input-group {
    display: flex;
    gap: 12px;
}

input[type="text"], input[type="password"], input[type="number"], select, textarea {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 12px 18px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 12px 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.15);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fb7185;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.35);
}

.btn-admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.btn-admin-link:hover {
    color: #fff;
    border-color: var(--accent-cyan);
}

/* Result Area */
.result-box {
    margin-top: 25px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.badge-plan {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.user-note {
    font-size: 15px;
    font-weight: 700;
    color: #cbd5e1;
    margin-left: 10px;
}

.val-exp {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #34d399;
}

.action-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Launch Actions */
.launch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .launch-actions {
        grid-template-columns: 1fr;
    }
}

.action-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 6px;
}

.action-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.bookmarklet-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    cursor: move;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.bookmarklet-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.shortcut-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
}

.shortcut-tip-box .tip-icon {
    font-size: 16px;
    line-height: 1.2;
}

.shortcut-tip-box .tip-text {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.shortcut-tip-box .tip-text strong {
    color: var(--accent-cyan);
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.code-box {
    display: flex;
    gap: 6px;
}

.code-box input {
    font-family: monospace;
    font-size: 13px;
    color: var(--accent-cyan);
    background: #090d16;
}

.btn-copy {
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* Error Box */
.error-box {
    margin-top: 15px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px 18px;
    color: #fca5a5;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Steps Section */
.steps-section {
    margin: 50px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: #e2e8f0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.step-num {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
}

.step-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 850px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feat-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 12px;
    padding: 18px;
}

.feat-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.feat-box h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.feat-box p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 13px;
}

.secure-tag {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #34d399;
}

/* ========================================================
   👑 ADMIN PANEL SPECIFIC STYLES
   ======================================================== */
.admin-container {
    max-width: 1250px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
}

.metric-card.highlight-green { border-color: rgba(16, 185, 129, 0.4); }
.metric-card.highlight-cyan { border-color: rgba(56, 189, 248, 0.4); }
.metric-card.highlight-amber { border-color: rgba(245, 158, 11, 0.4); }

.metric-lbl {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    display: block;
    margin: 4px 0;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.text-green { color: #34d399; }
.text-cyan { color: var(--accent-cyan); }
.text-amber { color: #fbbf24; }

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 850px) {
    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.form-row-compact {
    display: flex;
    gap: 12px;
}

.flex-1 { flex: 1; }

.server-info-box {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
}

.s-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.s-lbl { color: var(--text-muted); }
.s-val { font-weight: 700; }

/* Tables */
.table-card {
    padding: 20px;
}

.table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 18px;
}

.th-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    width: 220px;
    padding: 8px 12px;
    font-size: 13px;
}

.select-input-sm {
    padding: 8px 12px;
    font-size: 13px;
    width: auto;
}

.table-responsive {
    overflow-x: auto;
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cyber-table th {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

.cyber-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.cyber-table tr:hover {
    background: rgba(56, 189, 248, 0.04);
}

.badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-active { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-online { background: rgba(56, 189, 248, 0.25); color: #38bdf8; }
.badge-frozen { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.badge-expired { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-revoked { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

.plan-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
}

.btn-group-table {
    display: flex;
    gap: 4px;
}

.btn-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-action:hover {
    background: var(--accent-cyan);
    color: #000;
}

.btn-add-time:hover { background: #10b981; color: #fff; }
.btn-delete:hover { background: #ef4444; color: #fff; }

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