:root {
    --bg-main: #05070f;
    --text-main: #f3f4f6;
    --text-sub: #9ca3af;
    --accent-cyan: #00f2fe;
    --accent-magenta: #ff007f;
    --accent-purple: #7f00ff;
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-glow: rgba(0, 242, 254, 0.03);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background glowing blob */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.12) 0%, rgba(5, 7, 15, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-top: 2px;
}

.status-bar {
    text-align: right;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.pulsating {
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px var(--accent-cyan); }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.run-time {
    color: var(--text-sub);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Glass cards */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.metric-card:hover {
    border-color: rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 5px;
}

.metric-icon {
    font-size: 2.2rem;
    opacity: 0.8;
}

/* Layout Split */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sites List */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.site-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 127, 0.3);
    box-shadow: 0 15px 35px rgba(255, 0, 127, 0.05);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.site-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.site-niche {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 5px;
    display: inline-block;
}

.site-body {
    margin: 15px 0;
}

.site-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.4;
}

.site-screenshot {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    margin-top: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-placeholder {
    font-size: 0.8rem;
    color: var(--text-sub);
    text-align: center;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
    margin-top: 10px;
}

.site-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-sub);
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.site-link {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.site-link:hover {
    background: var(--accent-cyan);
    color: #05070f;
}

/* Support Tickets */
.tickets-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 380px;
    overflow-y: auto;
}

.ticket-item {
    padding: 15px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.ticket-item:hover {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.ticket-info {
    max-width: 80%;
}

.ticket-meta {
    font-size: 0.75rem;
    color: var(--accent-magenta);
    font-weight: 600;
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.ticket-user {
    color: var(--text-sub);
}

.ticket-msg {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #05070f;
    border: none;
    padding: 10px 20px;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.btn-sec {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
}

.btn-sec:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Control Panel */
.control-panel {
    padding: 24px;
    margin-bottom: 30px;
}

.control-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* System Logs */
.logs-container {
    padding: 20px;
    height: 380px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-line {
    line-height: 1.5;
    word-break: break-all;
}

.log-time {
    color: var(--text-sub);
    margin-right: 8px;
}

.log-level-INFO { color: var(--accent-cyan); }
.log-level-SUCCESS { color: #10b981; }
.log-level-WARNING { color: #f59e0b; }
.log-level-ERROR { color: #ef4444; }

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 24px;
}

.ticket-detail-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}
.promo-content {
    max-width: 65%;
}
.promo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.promo-description {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.4;
}
.promo-actions {
    display: flex;
    gap: 15px;
}
.btn-promo {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #05070f;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}
.btn-promo-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-cyan);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-promo-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .promo-content {
        max-width: 100%;
    }
}
