/* =========================================
   AURPON MODz - Main Styles
   ========================================= */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f35;
    --bg-card-hover: #222845;
    --accent: #00e68a;
    --accent-dark: #00b36b;
    --accent-glow: rgba(0, 230, 138, 0.15);
    --text-primary: #f0f2f5;
    --text-secondary: #8b92a5;
    --text-muted: #5a6178;
    --border: #2a2f45;
    --danger: #ff4757;
    --warning: #ffa502;
    --info: #1e90ff;
    --glass: rgba(26, 31, 53, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ---- Background Effect ---- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 230, 138, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 138, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
.bg-glow-1 { background: var(--accent); top: -200px; right: -100px; }
.bg-glow-2 { background: #6c5ce7; bottom: -200px; left: -100px; }

/* ---- Buttons ---- */
.btn-accent {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 138, 0.3);
}

.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-danger-custom {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-danger-custom:hover { opacity: 0.85; color: #fff; }

/* ---- Glass Cards ---- */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    padding: 28px;
    transition: var(--transition);
}
.glass-card:hover {
    border-color: rgba(0, 230, 138, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ---- Form Styles ---- */
.form-control-custom {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control-custom:focus {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}
.form-control-custom::placeholder {
    color: var(--text-muted);
}
.form-label-custom {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b92a5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ---- Navbar ---- */
.navbar-custom {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
    z-index: 1000;
}
.navbar-brand-custom {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand-custom i { color: var(--accent); font-size: 1.2rem; }
.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: var(--radius);
    transition: var(--transition);
}
.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--accent) !important;
    background: var(--accent-glow);
}

/* ---- Hero ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 230, 138, 0.2);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-title .highlight {
    color: var(--accent);
    position: relative;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ---- Features ---- */
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 230, 138, 0.15);
    border-radius: 14px;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: var(--transition);
}
.glass-card:hover .feature-icon {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ---- Pricing ---- */
.pricing-card {
    position: relative;
    overflow: hidden;
}
.pricing-card.featured {
    border-color: var(--accent);
}
.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 40px;
    transform: rotate(45deg);
}
.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}
.pricing-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ---- Sections ---- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 20px;
}

/* ---- Auth Pages ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
.auth-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.auth-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
}
.toast-custom {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 22px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow);
}
.toast-custom.success { border-left: 4px solid var(--accent); }
.toast-custom.error { border-left: 4px solid var(--danger); }
.toast-custom.warning { border-left: 4px solid var(--warning); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---- Badge ---- */
.badge-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-active { background: rgba(0, 230, 138, 0.15); color: var(--accent); }
.badge-expired { background: rgba(255, 71, 87, 0.15); color: var(--danger); }
.badge-pending { background: rgba(255, 165, 2, 0.15); color: var(--warning); }
.badge-completed { background: rgba(0, 230, 138, 0.15); color: var(--accent); }
.badge-failed { background: rgba(255, 71, 87, 0.15); color: var(--danger); }
.badge-banned { background: rgba(255, 71, 87, 0.15); color: var(--danger); }

/* ---- Table ---- */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table-custom thead th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.table-custom tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.table-custom tbody tr:hover {
    background: rgba(0, 230, 138, 0.03);
}

/* ---- Misc ---- */
.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.mono { font-family: var(--font-mono); }

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    overflow-x: auto;
    line-height: 1.8;
}

/* ---- Footer ---- */
.footer-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand i { color: var(--accent); }
.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    transition: var(--transition);
}
.footer-link:hover {
    color: var(--accent);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---- FAQ ---- */
.faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open {
    max-height: 200px;
    padding: 0 24px 18px;
}

/* ---- Spinner ---- */
.spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Modal ---- */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}
.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}
.modal-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}
.btn-close { filter: invert(1); }