/* ═══════════════════════════════════════════════
   WeFund White Label Portal — Futuristic Dark Theme
   Inspired by WeFund Client Dashboard
   ═══════════════════════════════════════════════ */

:root {
    --bg-primary: #080808;
    --bg-card: #0A1114;
    --bg-input: #0A1016;
    --bg-surface: #0D1519;

    --cyan: #3AB3FF;
    --cyan-dark: #28BFFF;
    --cyan-light: #4EC1FF;
    --cyan-bright: #50D5FF;
    --cyan-pale: #B8EDFF;
    --cyan-link: #00A5E4;

    --text-primary: #E4EEF5;
    --text-secondary: #85A8C3;
    --text-muted: #B9BBC1;
    --text-dim: #456074;

    --border-card: rgba(58, 179, 255, 0.05);
    --border-input: #23353E;
    --border-hover: rgba(58, 179, 255, 0.20);

    --green: #1BBF99;
    --green-bg: rgba(27, 191, 153, 0.15);
    --red: #FF6B7D;
    --red-bg: rgba(255, 107, 125, 0.15);
    --orange: #FFA500;
    --orange-bg: rgba(255, 165, 0, 0.15);
    --blue-bg: rgba(58, 179, 255, 0.10);

    --shadow-card: 0 0 30px rgba(58, 179, 255, 0.08);
    --shadow-card-hover: 0 0 40px rgba(58, 179, 255, 0.15);
    --shadow-inset: 0px -8px 32px 0px rgba(58, 179, 255, 0.06) inset;
    --shadow-depth: 2px 2px 16px 0px rgba(0, 0, 0, 0.12) inset;
    --shadow-glow: 0 0 16px rgba(25, 213, 251, 0.12);
    --shadow-btn: 0px 3px 1px 0px rgba(255, 255, 255, 0.35) inset;

    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────── */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--cyan-link); text-decoration: none; }
a:hover { color: var(--cyan-light); }

/* ── Scrollbar ───────────────────────────────── */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(13, 21, 25, 0.6); border-radius: 6px; }
::-webkit-scrollbar-thumb {
    background: rgba(133, 168, 195, 0.4);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 1px var(--border-card);
    transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 179, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(58, 179, 255, 0.4);
}

/* ── Animations ──────────────────────────────── */

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(58, 179, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(58, 179, 255, 0.6)); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fade-in-up 0.4s ease-out; }
.animate-glow { animation: glow-pulse 2s ease-in-out infinite; }

/* ── Navbar ──────────────────────────────────── */

.wl-navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-card);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-depth);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.wl-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.wl-navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(58, 179, 255, 0.3);
}

.wl-navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wl-navbar-user {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ── Buttons ─────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
    box-shadow: var(--shadow-btn), 0 0 20px rgba(58, 179, 255, 0.2);
}
.btn-primary:hover {
    background: var(--cyan-dark);
    box-shadow: var(--shadow-btn), 0 0 30px rgba(58, 179, 255, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: var(--shadow-btn), 0 0 20px rgba(27, 191, 153, 0.2);
}
.btn-success:hover {
    background: #15a584;
    box-shadow: var(--shadow-btn), 0 0 30px rgba(27, 191, 153, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background: transparent;
    color: var(--red);
    border-color: rgba(255, 107, 125, 0.3);
}
.btn-danger:hover {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-input);
}
.btn-outline:hover {
    background: var(--blue-bg);
    border-color: var(--cyan);
    color: var(--cyan-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 8px 12px;
}
.btn-ghost:hover {
    color: var(--cyan-light);
    background: var(--blue-bg);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-block { width: 100%; }

/* ── Cards ───────────────────────────────────── */

.wl-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
}

.wl-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.wl-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.wl-card-header .header-icon {
    color: var(--cyan);
    font-size: 1.1rem;
}

.wl-card-body {
    padding: 1.5rem;
}

/* ── Stat Cards ──────────────────────────────── */

.stat-card {
    background: var(--blue-bg);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    opacity: 0.6;
}

.stat-card.stat-warning .stat-value { color: var(--orange); }
.stat-card.stat-info .stat-value { color: var(--cyan); }
.stat-card.stat-success .stat-value { color: var(--green); }

/* ── Forms ───────────────────────────────────── */

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--red);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(58, 179, 255, 0.15), var(--shadow-glow);
}

.form-control::placeholder {
    color: var(--text-dim);
}

.form-control[type="color"] {
    height: 42px;
    padding: 4px 8px;
    cursor: pointer;
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385A8C3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

.form-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(58, 179, 255, 0.15), var(--shadow-glow);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

input[type="file"].form-control {
    padding: 8px 14px;
}

input[type="file"].form-control::file-selector-button {
    background: var(--blue-bg);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 4px 12px;
    margin-right: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

input[type="file"].form-control::file-selector-button:hover {
    background: rgba(58, 179, 255, 0.2);
    border-color: var(--cyan);
    color: var(--cyan-light);
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.form-error {
    font-size: 0.75rem;
    color: var(--red);
    margin-top: 4px;
}

/* ── Form Sections ───────────────────────────── */

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    animation: fade-in-up 0.4s ease-out;
}

.form-section:hover {
    border-color: var(--border-hover);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-card);
}

.form-section-title .section-icon {
    width: 28px;
    height: 28px;
    background: var(--blue-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.form-section-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
}

/* ── Grid ────────────────────────────────────── */

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.row { display: flex; flex-wrap: wrap; margin: 0 -0.5rem; }
.col { flex: 1; padding: 0 0.5rem; min-width: 0; }

/* ── Table ───────────────────────────────────── */

.wl-table {
    width: 100%;
    border-collapse: collapse;
}

.wl-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-card);
    background: rgba(10, 17, 20, 0.6);
}

.wl-table tbody td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-card);
    vertical-align: middle;
}

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

.wl-table tbody tr:hover {
    background: var(--blue-bg);
}

.wl-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Badges ──────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-pending {
    background: var(--orange-bg);
    color: var(--orange);
    border-color: rgba(255, 165, 0, 0.3);
}

.badge-approved {
    background: var(--blue-bg);
    color: var(--cyan);
    border-color: rgba(58, 179, 255, 0.3);
}

.badge-provisioning {
    background: var(--blue-bg);
    color: var(--cyan-bright);
    border-color: rgba(58, 179, 255, 0.5);
    box-shadow: 0 0 20px rgba(58, 179, 255, 0.15);
}

.badge-live {
    background: var(--green-bg);
    color: var(--green);
    border-color: rgba(27, 191, 153, 0.3);
}

.badge-failed, .badge-rejected {
    background: var(--red-bg);
    color: var(--red);
    border-color: rgba(255, 107, 125, 0.3);
}

.badge-lg {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-provisioning .dot {
    animation: glow-pulse 1.5s ease-in-out infinite;
}

/* ── Hero Section ────────────────────────────── */

.hero {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(58, 179, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    position: relative;
}

.hero .hero-accent {
    color: var(--cyan);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* ── Detail Page ─────────────────────────────── */

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.detail-header .back-link {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.detail-header .back-link:hover {
    color: var(--cyan);
}

.detail-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.75px;
}

.detail-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-field {
    margin-bottom: 1rem;
}

.detail-field .field-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-field .field-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.detail-field .field-value code {
    background: var(--blue-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--cyan-light);
}

.color-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.color-swatch .swatch {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Provision Log ───────────────────────────── */

.provision-log {
    background: var(--bg-primary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--green);
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.7;
}

/* ── Spinner ─────────────────────────────────── */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-input);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin-slow 0.8s linear infinite;
    margin: 0 auto 1rem;
}

/* ── Success Page ────────────────────────────── */

.success-container {
    max-width: 520px;
    margin: 5rem auto;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--green-bg);
    border: 2px solid rgba(27, 191, 153, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--green);
    box-shadow: 0 0 40px rgba(27, 191, 153, 0.15);
}

/* ── Login Page ──────────────────────────────── */

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 8rem;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand .brand-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 0 30px rgba(58, 179, 255, 0.4);
    animation: glow-pulse 3s ease-in-out infinite;
}

.login-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ── Alerts ──────────────────────────────────── */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--green-bg);
    color: var(--green);
    border-color: rgba(27, 191, 153, 0.2);
}

.alert-danger {
    background: var(--red-bg);
    color: var(--red);
    border-color: rgba(255, 107, 125, 0.2);
}

.alert-info {
    background: var(--blue-bg);
    color: var(--cyan);
    border-color: rgba(58, 179, 255, 0.2);
}

.alert-warning {
    background: var(--orange-bg);
    color: var(--orange);
    border-color: rgba(255, 165, 0, 0.2);
}

/* ── Filter Pills ────────────────────────────── */

.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-input);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.filter-pill:hover {
    background: var(--blue-bg);
    border-color: var(--cyan);
    color: var(--cyan);
}

.filter-pill.active {
    background: var(--blue-bg);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(58, 179, 255, 0.15);
}

/* ── Empty State ─────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ── Confirm Dialog ──────────────────────────── */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* ── Container ───────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-content {
    padding: 2rem 0 4rem;
}

/* ── Two Column Layout ───────────────────────── */

.layout-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

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

/* ── Utility ─────────────────────────────────── */

/* ── Addon Cards ─────────────────────────────── */

.addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

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

.addon-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.addon-card:hover {
    border-color: var(--cyan);
    background: rgba(58, 179, 255, 0.03);
}

.addon-card.selected {
    border-color: var(--cyan);
    background: var(--blue-bg);
    box-shadow: 0 0 20px rgba(58, 179, 255, 0.1);
}

.addon-card input[type="checkbox"] { display: none; }

.addon-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(58, 179, 255, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.addon-card.selected .addon-icon {
    background: rgba(58, 179, 255, 0.2);
    color: var(--cyan);
}

.addon-info { flex: 1; min-width: 0; }

.addon-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.addon-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.addon-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-input);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
    transition: var(--transition);
    margin-top: 2px;
}

.addon-card.selected .addon-check {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 10px rgba(58, 179, 255, 0.3);
}

/* ── Gateway Selector ─────────────────────────── */

.gateway-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .gateway-selector { grid-template-columns: 1fr; }
}

.gateway-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gateway-option:hover {
    border-color: var(--cyan);
    background: rgba(58, 179, 255, 0.05);
}

.gateway-option.selected {
    border-color: var(--cyan);
    background: var(--blue-bg);
    box-shadow: 0 0 20px rgba(58, 179, 255, 0.1);
}

.gateway-option input[type="checkbox"] {
    display: none;
}

.gateway-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border-input);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: var(--transition);
}

.gateway-option.selected .gateway-check {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 10px rgba(58, 179, 255, 0.3);
}

.gateway-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.gateway-info i {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.gateway-option.selected .gateway-info i {
    color: var(--cyan);
}

.gateway-tag {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-left: 4px;
}

.gateway-fields {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(58, 179, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    animation: fade-in-up 0.2s ease-out;
}

.gateway-fields-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Utility ─────────────────────────────────── */

.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-dim); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
