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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0a0e17;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background: #141b2d;
    border: 1px solid #1e2a3a;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
}

h1, h2 { color: #fff; margin-bottom: 8px; }
h3 { color: #fff; margin-bottom: 12px; }
.subtitle { color: #888; margin-bottom: 20px; }

input[type="text"], input[type="password"], input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: #0a0e17;
    border: 1px solid #2a3a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
}
input:focus { border-color: #4a9eff; }

label {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 4px;
}

button, .btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4a9eff, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
button:hover, .btn:hover { opacity: 0.9; }

.btn.disabled {
    background: #333;
    pointer-events: none;
    opacity: 0.6;
}

.btn-small {
    display: inline-block;
    padding: 6px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: #2d1111; color: #f87171; border: 1px solid #7f1d1d; }

.info {
    margin-top: 20px;
    padding: 16px;
    background: #0d1320;
    border-radius: 8px;
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

/* Activation page */
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
}

.uid-display {
    text-align: center;
    font-size: 18px;
    color: #4a9eff;
    font-weight: 600;
    margin: 12px 0;
}

.time-remaining {
    text-align: center;
    padding: 16px;
    background: #0d1320;
    border-radius: 8px;
    margin: 16px 0;
}
.time-remaining p { color: #888; font-size: 13px; }
.time-remaining h3 { color: #4ade80; font-size: 28px; margin-top: 4px; }

/* Ad page */
.ad-space {
    background: #1a1a2e;
    border: 1px dashed #333;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
}
.ad-placeholder { color: #555; font-size: 14px; }

.timer-box { text-align: center; margin-bottom: 20px; color: #aaa; }
.timer-box span { color: #4a9eff; font-weight: 700; font-size: 20px; }

.progress-bar {
    width: 100%;
    height: 4px;
    background: #1e2a3a;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a9eff, #2563eb);
    transition: width 1s linear;
}

/* Dashboard */
.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.dash-header h1 { font-size: 22px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #141b2d;
    border: 1px solid #1e2a3a;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.stat-card.active { border-color: #16a34a; }
.stat-number { display: block; font-size: 28px; font-weight: 700; color: #fff; }
.stat-label { display: block; font-size: 12px; color: #888; margin-top: 4px; }

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #1e2a3a;
    color: #aaa;
}
.badge.green { background: #052e16; color: #4ade80; }
.badge.red { background: #2d1111; color: #f87171; }

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
th { text-align: left; color: #888; font-weight: 600; padding: 8px; border-bottom: 1px solid #1e2a3a; }
td { padding: 8px; border-bottom: 1px solid #111; }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
}
.download-box { background: linear-gradient(135deg, #1a2a1a, #0d1d0d); border: 1px solid #16a34a; border-radius: 10px; padding: 20px; text-align: center; margin-bottom: 20px; }
.download-box h3 { color: #4ade80; margin-bottom: 12px; font-size: 15px; }
.download-btn { background: linear-gradient(135deg, #16a34a, #15803d) !important; }
.small-text { color: #666; font-size: 12px; margin-top: 8px; }
.divider { height: 1px; background: #1e2a3a; margin: 20px 0; }
