<?php
/**
 * SMS Verify Pro - Main CSS Stylesheet
 * Modern dark theme with responsive design
 */

header('Content-Type: text/css');
?>
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --secondary-dark: #00b5b0;
    --accent: #fd79a8;
    --bg-dark: #0a0a1a;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3e;
    --bg-input: #1e1e40;
    --bg-sidebar: #0e0e24;
    --border: #2d2d5e;
    --border-light: #3d3d6e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6c6c8e;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #74b9ff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================ */
/* RESET & BASE                                 */
/* ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ============================================ */
/* UTILITIES                                    */
/* ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.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; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }

/* ============================================ */
/* ALERTS / FLASH MESSAGES                      */
/* ============================================ */
.alert {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}
.alert-success { background: rgba(0,184,148,0.1); border-color: var(--success); color: var(--success); }
.alert-danger { background: rgba(225,112,85,0.1); border-color: var(--danger); color: var(--danger); }
.alert-warning { background: rgba(253,203,110,0.1); border-color: var(--warning); color: var(--warning); }
.alert-info { background: rgba(116,185,255,0.1); border-color: var(--info); color: var(--info); }

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================ */
/* HEADER / NAVIGATION                          */
/* ============================================ */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}
.navbar-brand i { color: var(--primary); font-size: 1.6rem; }
.navbar-brand:hover { color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: rgba(108,92,231,0.15);
}
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-balance {
    background: var(--bg-input);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--success);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: #333; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,92,231,0.1); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================ */
/* CARDS                                        */
/* ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-body { }
.card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ============================================ */
/* FORMS                                        */
/* ============================================ */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: auto; cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

/* ============================================ */
/* TABLES                                       */
/* ============================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tbody tr:hover { background: var(--bg-card-hover); }
.table .status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: rgba(253,203,110,0.15); color: var(--warning); }
.status-waiting { background: rgba(116,185,255,0.15); color: var(--info); }
.status-received { background: rgba(0,184,148,0.15); color: var(--success); }
.status-finished { background: rgba(0,184,148,0.15); color: var(--success); }
.status-canceled { background: rgba(225,112,85,0.15); color: var(--danger); }
.status-banned { background: rgba(225,112,85,0.15); color: var(--danger); }
.status-timeout { background: rgba(225,112,85,0.15); color: var(--danger); }
.status-error { background: rgba(225,112,85,0.15); color: var(--danger); }

/* ============================================ */
/* HERO SECTION                                 */
/* ============================================ */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(108,92,231,0.15) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108,92,231,0.08) 0%, transparent 60%);
    animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
}
.hero-search {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: 8px;
}
.hero-search input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
}
.hero-search input:focus {
    outline: none;
    border-color: var(--primary);
}
.hero-search .btn { padding: 16px 32px; font-size: 1rem; }

/* ============================================ */
/* STATS BAR                                    */
/* ============================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 32px 0;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================ */
/* SERVICE GRID                                 */
/* ============================================ */
.section { padding: 60px 0; }
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.service-card .name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.service-card .price {
    color: var(--success);
    font-weight: 700;
    font-size: 0.95rem;
}
.service-card .count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================ */
/* ORDER TRACKER                                */
/* ============================================ */
.order-tracker {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}
.order-phone {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--secondary);
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 16px;
    letter-spacing: 2px;
    cursor: pointer;
}
.order-phone:hover { background: var(--bg-card-hover); }
.order-sms-code {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--success);
    padding: 20px;
    background: rgba(0,184,148,0.1);
    border: 2px solid var(--success);
    border-radius: var(--radius);
    margin-bottom: 16px;
    letter-spacing: 4px;
}
.order-status {
    text-align: center;
    margin-bottom: 16px;
}
.order-status .status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.order-timer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

/* ============================================ */
/* STEP INDICATOR                               */
/* ============================================ */
.steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.step.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.step.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.footer-links a {
    display: block;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================ */
/* DASHBOARD LAYOUT                             */
/* ============================================ */
.dashboard {
    display: flex;
    min-height: calc(100vh - 70px);
}
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    flex-shrink: 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}
.sidebar-nav a:hover { color: var(--text-primary); background: rgba(108,92,231,0.1); }
.sidebar-nav a.active {
    color: var(--primary-light);
    background: rgba(108,92,231,0.15);
    border-right: 3px solid var(--primary);
}
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-section {
    padding: 8px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 16px;
}
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Dashboard stat cards */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.dash-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.dash-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.dash-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
}
.dash-stat .change {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ============================================ */
/* MODAL                                        */
/* ============================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

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

/* ============================================ */
/* BADGES & TAGS                                */
/* ============================================ */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: rgba(108,92,231,0.2); color: var(--primary-light); }
.badge-success { background: rgba(0,184,148,0.2); color: var(--success); }
.badge-danger { background: rgba(225,112,85,0.2); color: var(--danger); }
.badge-warning { background: rgba(253,203,110,0.2); color: var(--warning); }

/* ============================================ */
/* LOADING SPINNER                              */
/* ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================ */
/* COPY BUTTON                                  */
/* ============================================ */
.copy-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================ */
/* PAGINATION                                   */
/* ============================================ */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ============================================ */
/* PRICING TABLE                                */
/* ============================================ */
.pricing-table {
    width: 100%;
}
.pricing-table td.price {
    color: var(--success);
    font-weight: 700;
}

/* ============================================ */
/* EMPTY STATE                                  */
/* ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ============================================ */
/* SELECT DROPDOWN                              */
/* ============================================ */
.select-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.select-group select {
    flex: 1;
    min-width: 200px;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-search { flex-direction: column; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { display: none; }
    .sidebar.active {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        bottom: 0;
        z-index: 100;
        width: 260px;
    }
    .dash-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero h1 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .dash-stats { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
}
