/* ==========================================================================
   Seraph Auth Guard - Iris-Inspired Ultra-Clean Minimalist Dark Design System
   Matches: https://iristweak.com/
   ========================================================================== */

:root {
    --bg-main: #0a0a0a;
    --bg-surface: #0e0e0e;
    --bg-surface-elevated: #141414;
    --bg-card: rgba(255, 255, 255, 0.015);
    --bg-card-hover: rgba(255, 255, 255, 0.035);
    --bg-glass: rgba(10, 10, 10, 0.85);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 255, 255, 0.22);
    --border-light: rgba(255, 255, 255, 0.1);

    --text-white: #ffffff;
    --text-80: rgba(255, 255, 255, 0.8);
    --text-60: rgba(255, 255, 255, 0.6);
    --text-40: rgba(255, 255, 255, 0.4);
    --text-35: rgba(255, 255, 255, 0.35);
    --text-20: rgba(255, 255, 255, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient Radial Backgrounds */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow-top {
    position: absolute;
    top: 15%;
    left: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
}

.ambient-glow-bottom {
    position: absolute;
    bottom: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
}

.ambient-center-ellipse {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Utilities */
.code-font {
    font-family: var(--font-code);
    letter-spacing: -0.02em;
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.text-white-35 { color: var(--text-35); }
.text-white-40 { color: var(--text-40); }
.text-white-60 { color: var(--text-60); }
.text-white-80 { color: var(--text-80); }
.text-muted { color: var(--text-35); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Hairline Gradient Dividers */
.hairline-divider {
    position: relative;
    height: 1px;
    width: 100%;
}

.hairline-divider-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

/* Iris-Style Cards */
.iris-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.iris-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.iris-card-popular {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.035);
}

.iris-card-popular:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.055);
}

.popular-top-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

/* Buttons - Iris Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    outline: none;
}

.btn:active {
    transform: scale(0.98);
}

/* Solid White Primary (Iris style) */
.btn-white {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Glass Outline Button (Iris style) */
.btn-glass-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-80);
    backdrop-filter: blur(8px);
}

.btn-glass-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Card Buy Action Button */
.btn-card-action {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-80);
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-action:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.btn-card-action-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    font-weight: 600;
}

.btn-card-action-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

/* Badges & Pills */
.iris-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-40);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-popular {
    background: #ffffff;
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 3px 10px;
    letter-spacing: 0.1em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-danger {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-80);
    border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   NAVIGATION HEADER (IRIS STYLE)
   ========================================================================== */

.iris-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 50;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 6px 14px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-40);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    color: var(--text-80);
}

.nav-divider {
    height: 16px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

/* ==========================================================================
   HERO SECTION (IRIS STYLE)
   ========================================================================== */

.hero-section {
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-main-title {
    font-size: 64px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-main-title {
        font-size: 88px;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-60);
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-ios-tag {
    font-size: 14.5px;
    color: var(--text-35);
    margin-bottom: 36px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* ==========================================================================
   ACTIVATION PORTAL & FORMS (IRIS SLEEK BOXES)
   ========================================================================== */

.section-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 12px;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14.5px;
    color: var(--text-35);
}

.activation-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-60);
}

.iris-input {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.iris-input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.iris-input::placeholder {
    color: var(--text-20);
}

/* Result Box */
.result-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.04);
    animation: fadeIn 0.3s ease;
}

.result-box.result-error {
    border-color: rgba(244, 63, 94, 0.25);
    background: rgba(244, 63, 94, 0.04);
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label { color: var(--text-40); }
.detail-val { color: var(--text-white); }
.detail-val.highlight { color: #34d399; font-weight: 600; }

/* Pricing Grid (Iris Style 5 Columns) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pricing-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-40);
    margin-bottom: 14px;
    transition: var(--transition);
}

.pricing-card:hover .pricing-icon-wrap {
    color: var(--text-80);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.pricing-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-35);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
}

.pricing-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-35);
}

.spacer { flex: 1; }

/* FAQ Accordion (Iris Style) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    padding: 22px 24px;
    cursor: pointer;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-60);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item:hover .faq-icon-wrap {
    color: var(--text-80);
    border-color: rgba(255, 255, 255, 0.18);
}

.faq-question {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-80);
    flex: 1;
    transition: var(--transition);
}

.faq-item:hover .faq-question {
    color: #ffffff;
}

.faq-chevron {
    color: var(--text-30);
    transition: transform 0.3s ease;
}

.faq-body {
    margin-top: 14px;
    padding-left: 58px;
    font-size: 13.5px;
    color: var(--text-60);
    line-height: 1.6;
}

/* Footer (Iris Style) */
.iris-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 48px 24px;
    background: var(--bg-main);
    margin-top: auto;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-35);
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-35);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-80);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-20);
}

/* ==========================================================================
   ADMIN DASHBOARD (IRIS MONOCHROME ELEVATED)
   ========================================================================== */

.admin-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.admin-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-40);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab-btn:hover {
    color: var(--text-80);
}

.admin-tab-btn.active {
    background: #ffffff;
    color: #000000;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
    display: block !important;
}

/* KPI Summary Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}


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

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

.kpi-box {
    padding: 22px;
    border-radius: var(--radius-md);
}

.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-40);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-number {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 4px;
}

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

/* Data Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.iris-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.iris-table th {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-40);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-subtle);
}

.iris-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-80);
    vertical-align: middle;
}

.iris-table tbody tr {
    transition: var(--transition);
}

.iris-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.search-input-wrap input {
    padding-left: 36px;
}

.search-icon-pos {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-35);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    font-size: 13px;
    color: #ffffff;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 280px;
}

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

.toast-fadeout {
    animation: toastSlideOut 0.3s forwards;
}

@keyframes toastSlideOut {
    to { transform: translateY(20px); opacity: 0; }
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-40);
    cursor: pointer;
    margin-left: auto;
    font-size: 16px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    padding: 28px;
    background: #0f0f0f;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
}

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-40);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
