/* =========================================
   IGrab — Portal Styles
   ========================================= */

:root {
    --bg: #0f0f14;
    --surface: #1a1a24;
    --surface-hover: #22222e;
    --border: #2a2a38;
    --text: #e8e8ed;
    --text-muted: #8888a0;
    --primary: #6366f1;
    --primary-hover: #5558e6;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Navbar */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-name {
    color: var(--text-muted);
    font-size: 14px;
}

/* Auth Card (Login page) */
.auth-card {
    max-width: 420px;
    margin: 60px auto;
}

.logo {
    text-align: center;
    margin-bottom: 28px;
}

.logo-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 2px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.tab.active {
    background: var(--primary);
    color: white;
}

/* Forms */
.form {
    display: none;
}

.form.active {
    display: block;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.field input:focus {
    border-color: var(--primary);
}

/* Checkbox field */
.checkbox-field {
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.field input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-hover);
}

.link {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
    text-decoration: none;
}

.link:hover {
    color: var(--primary);
}

.error {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 12px;
}

.otp-info {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* License Badge */
.license-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.license-active .badge {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.license-expired .badge,
.license-cancelled .badge {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.license-pending .badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
}

.license-details {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
}

/* Detail Rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-muted);
    font-size: 14px;
}

.detail-row .value {
    font-weight: 500;
    font-size: 14px;
}

/* Pricing Cards */
.no-license {
    text-align: center;
}

.no-license > p {
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-muted);
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.region {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 16px;
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.features li {
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Limits Grid */
.limits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.limit-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.limit-item.warn {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.limit-val {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.limit-item.warn .limit-val {
    color: var(--danger);
}

.limit-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Devices */
.device-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: background 0.2s;
}

.device-item:hover {
    background: var(--surface-hover);
}

.device-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.device-icon {
    font-size: 28px;
}

.device-meta {
    display: flex;
    flex-direction: column;
}

.device-meta strong {
    font-size: 14px;
}

.device-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.muted {
    color: var(--text-muted);
    font-size: 14px;
}

/* Admin Panel */
.admin-shell {
    max-width: 1180px;
}

.admin-hero {
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 100%),
        var(--surface);
}

.admin-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.admin-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-hero h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.admin-hero p {
    color: var(--text-muted);
    max-width: 680px;
}

.admin-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    text-align: right;
    min-width: 220px;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--text);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 13px;
    font-weight: 600;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-title h2 {
    margin-bottom: 0;
}

.panel-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-form .field {
    margin-bottom: 0;
}

.admin-form .field input,
.admin-form .field select,
.admin-form .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.admin-form .field input:focus,
.admin-form .field select:focus,
.admin-form .field textarea:focus {
    border-color: var(--primary);
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-message {
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid transparent;
}

.admin-message.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
}

.admin-message.is-success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.25);
}

.results-stack {
    display: grid;
    gap: 14px;
}

.admin-result {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.admin-result-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.admin-result-head h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.admin-result-head p {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.admin-badge.is-active {
    color: var(--success);
    background: rgba(34, 197, 94, 0.12);
}

.admin-badge.is-pending,
.admin-badge.is-refund_requested {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.12);
}

.admin-badge.is-cancelled,
.admin-badge.is-refunded,
.admin-badge.is-expired,
.admin-badge.is-refund_rejected {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px 0;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    border-top: none;
}

.admin-table td:last-child,
.admin-table th:last-child {
    text-align: right;
}

.admin-inline-note {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.admin-empty {
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-align: center;
}

.admin-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.admin-mini-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.admin-mini-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.admin-mini-stat strong {
    font-size: 16px;
}

.admin-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.admin-reduced-gap {
    gap: 10px;
}

.admin-stack {
    display: grid;
    gap: 12px;
}

.admin-licenses {
    display: grid;
    gap: 10px;
}

.admin-license-card {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.admin-license-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.admin-license-top strong {
    display: block;
    margin-bottom: 4px;
}

.admin-license-meta {
    color: var(--text-muted);
    font-size: 12px;
}

.admin-license-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-license-details {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}

.admin-license-detail {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-license-detail strong {
    display: block;
    color: var(--text);
    margin-top: 2px;
    font-weight: 600;
}

/* User Cards List */
.users-list-container {
    display: grid;
    gap: 12px;
}

.user-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s;
}

.user-card:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.user-card-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.user-email {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.user-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.user-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* User Detail Panel */
.user-detail-panel {
    background: rgba(99, 102, 241, 0.05);
    padding: 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
}

.user-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.user-detail-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.user-detail-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.license-list-section {
    margin-bottom: 20px;
}

.license-list-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.licenses-container {
    display: grid;
    gap: 12px;
}

.license-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: all 0.2s;
}

.license-card:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.license-card.is-past {
    opacity: 0.7;
}

.license-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.license-card-header strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.license-id {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.license-card-details {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
}

.detail {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.detail span {
    color: var(--text-muted);
}

.detail strong {
    color: var(--text);
}

.license-card-actions {
    display: flex;
    gap: 6px;
}

.license-card-actions .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 640px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .limits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-card {
        margin: 20px auto;
    }

    .navbar {
        padding: 12px 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-row {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero-top,
    .admin-result-head,
    .admin-license-top {
        flex-direction: column;
    }

    .admin-meta {
        align-items: flex-start;
        text-align: left;
    }

    .admin-form-grid,
    .admin-mini-grid,
    .admin-license-details {
        grid-template-columns: 1fr;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table th {
        padding-top: 0;
    }

    .admin-table td:last-child,
    .admin-table th:last-child {
        text-align: left;
    }
}

/* =========================================
   Navbar Links & Brand
   ========================================= */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

/* =========================================
   Landing Page — Hero
   ========================================= */

.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    gap: 10px;
}

/* =========================================
   Landing Page — Sections
   ========================================= */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--surface);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 48px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.section-alt .feature-card {
    background: var(--bg);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Row (Landing) */
.pricing-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card-landing {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.pricing-card-landing.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    transform: scale(1.04);
}

.pricing-card-landing h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.pricing-card-landing .price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.pricing-card-landing .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.features-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.features-list .muted-feature {
    opacity: 0.45;
}

.pricing-card-landing .btn {
    width: 100%;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.08));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 16px;
}

/* =========================================
   Landing Page — Footer
   ========================================= */

.landing-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.disclaimer {
    margin-top: 8px;
    opacity: 0.6;
    font-size: 12px !important;
}

/* =========================================
   Legal Pages (Privacy / Terms)
   ========================================= */

.legal-page {
    max-width: 780px;
    padding-top: 40px;
}

.legal-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-card {
    margin-bottom: 16px;
}

.legal-card h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.legal-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-card ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
}

.legal-card ul li {
    padding: 4px 0 4px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
}

.legal-card ul li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: var(--primary);
}

.legal-card a {
    color: var(--primary);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-card code {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
}

.legal-footer {
    text-align: center;
    padding: 28px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.legal-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer a:hover {
    color: var(--primary);
}

.legal-footer span {
    margin: 0 10px;
    opacity: 0.4;
}

/* =========================================
   Support & FAQ Page
   ========================================= */

.support-page {
    max-width: 780px;
    padding-top: 40px;
}

.support-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.support-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
}

/* FAQ */
.faq-section {
    margin-bottom: 48px;
}

.faq-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    gap: 12px;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--text-muted);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 20px 18px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.faq-answer ul li {
    padding: 3px 0 3px 18px;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
}

.faq-answer ul li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--primary);
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer code {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    margin-bottom: 48px;
}

.contact-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-section > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-card {
    text-align: center;
    padding: 28px 20px;
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Chat Widget
   ========================================= */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

.chat-fab-close { display: none; }
.chat-widget.open .chat-fab-icon { display: none; }
.chat-widget.open .chat-fab-close { display: block; }

.chat-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.chat-widget.open .chat-panel {
    display: flex;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-status {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    max-height: 320px;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-bubble p {
    margin: 0;
}

.chat-bubble-admin {
    background: var(--bg);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble-user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.7;
}

.chat-bubble-user .chat-time {
    color: rgba(255, 255, 255, 0.6);
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chat-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chat-send:hover {
    background: var(--primary-hover);
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 68px;
    }
}
