/* Core theme for BLX.ink */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #151a30;
    --bg-elevated: #1a1f35;
    --border: #1f2937;
    --accent: #3b82f6;
    --accent-strong: #2563eb;
    --text-primary: #e4e7eb;
    --text-muted: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 18px 40px rgba(10, 14, 39, 0.35);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Auth pages refinements */
.auth-card .form-grid {
    gap: 18px;
}

.auth-card .field {
    gap: 8px;
}

.auth-card .field input,
.auth-card .field select,
.auth-card .field textarea {
    width: 100%;
    font-size: 16px;
}

.auth-card .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-card .checkbox-inline input {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-card .checkbox-inline span {
    flex: 1;
}

.auth-card .captcha-field {
    width: 100%;
}
.auth-card .captcha-field label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(228, 231, 235, 0.78);
}
.auth-card .captcha-box {
    margin-top: 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(10, 14, 39, 0.55);
    border: 1px solid rgba(59, 130, 246, 0.28);
    display: flex;
    justify-content: center;
}
.auth-card .captcha-box .h-captcha,
.auth-card .captcha-box .h-captcha iframe {
    width: 100% !important;
}

.auth-card .captcha-field .h-captcha {
    width: 100%;
}

.auth-card .captcha-field .h-captcha iframe {
    width: 100% !important;
    height: 78px !important;
}

@media (max-width: 540px) {
    .auth-wrapper {
        align-items: flex-start;
        padding: 24px 16px 48px;
    }

    .auth-card {
        padding: 24px 16px 24px;
        border-radius: 18px;
        box-shadow: 0 14px 32px rgba(10, 14, 39, 0.38);
    }

    .auth-card header {
        text-align: left;
        margin-bottom: 22px;
    }

    .auth-card header h1 {
        font-size: 24px;
    }

    .auth-card header p {
        font-size: 13px;
        line-height: 1.6;
    }

    .auth-card .back-link {
        margin-bottom: 20px;
    }

    .auth-card .checkbox-inline {
        align-items: flex-start;
    }

    .auth-card .checkbox-inline span {
        line-height: 1.5;
    }

    .auth-card .auth-footer {
        font-size: 13px;
        line-height: 1.6;
    }
}

@media (max-width: 400px) {
    .auth-card {
        padding: 22px 12px 22px;
    }

    .auth-card .captcha-field .h-captcha iframe {
        height: 70px !important;
    }
}
* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, #11193a 0%, var(--bg-primary) 35%, #05061a 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

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

a:hover {
    color: var(--accent-strong);
}

.layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.surface {
    background: rgba(21, 26, 48, 0.82);
    border: 1px solid rgba(31, 41, 55, 0.8);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.surface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}


.surface-title {
    font-size: 26px;
    font-weight: 700;
}

.surface-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-size: 15px;
    min-height: 42px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #265ce0 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
    background: rgba(59, 76, 112, 0.55);
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #ff9090;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-block {
    width: 100%;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid.two-column {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-dashboard .form-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-dashboard .field.field-card {
    background: rgba(10, 14, 39, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--radius-sm);
    padding: 16px;
    height: 100%;
}

.form-dashboard .field.field-card textarea {
    min-height: 120px;
}

.form-dashboard .field.field-card input,
.form-dashboard .field.field-card select,
.form-dashboard .field.field-card textarea {
    width: 100%;
}

.form-dashboard .form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-dashboard .form-footer .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.form-dashboard .form-footer .btn {
    margin-left: auto;
}

.form-dashboard .field.field-card.meta-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    grid-column: span 1;
    max-width: 520px;
}

.meta-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 2px;
    background: #0a0e27;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.9);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #f9fafb;
}

.toggle-switch input:focus-visible + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.meta-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.meta-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field.captcha-field {
    align-items: center;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(228, 231, 235, 0.82);
}

.field input,
.field select,
.field textarea {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field textarea.readonly {
    background: rgba(10, 14, 39, 0.4);
    border-color: rgba(59, 130, 246, 0.12);
    cursor: not-allowed;
    color: rgba(228, 231, 235, 0.7);
}

.field-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.slug-preview {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.slug-preview strong {
    color: var(--accent);
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.45;
}

.pill-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.pill-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(10, 14, 39, 0.7);
    padding: 14px 16px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.8);
}

.table tbody td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(26, 31, 53, 0.8);
    font-size: 14px;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: rgba(26, 31, 53, 0.8);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.badge-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
}

.badge-red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.list-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
}

.tabs {
    display: inline-flex;
    background: rgba(10, 14, 39, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    overflow: hidden;
}

.tab {
    padding: 10px 18px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
}

.tab.active {
    background: rgba(59, 130, 246, 0.18);
    color: white;
}

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(21, 26, 48, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

.table td.actions-cell {
    text-align: right;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    display: inline;
}

.table-actions .btn,
.table-actions button {
    min-height: 40px;
}
.slug-copy {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.slug-copy-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.slug-copy strong {
    font-size: 15px;
    color: #fff;
    transition: color 0.18s ease;
}

.slug-copy:hover strong,
.slug-copy:focus-visible strong,
.slug-copy.copied strong {
    color: var(--accent);
}

.slug-copy .muted {
    font-size: 13px;
}

.slug-copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(228, 231, 235, 0.65);
    transition: color 0.18s ease;
}

.slug-copy:hover .slug-copy-icon,
.slug-copy:focus-visible .slug-copy-icon,
.slug-copy.copied .slug-copy-icon {
    color: var(--accent);
}
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.action-dropdown > summary::-webkit-details-marker {
    display: none;
}

.action-dropdown > summary::marker {
    display: none;
}

.action-dropdown .dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(10, 14, 39, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-sm);
    box-shadow: 0 14px 30px rgba(5, 6, 26, 0.55);
    padding: 8px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 60;
}

.action-dropdown:not([open]) .dropdown-menu {
    display: none;
}

.action-dropdown form {
    margin: 0;
    width: 100%;
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.action-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
}

.action-dropdown-item.danger {
    color: #ff9090;
}

.action-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ffb3b3;
}
.action-dropdown-item.disabled {
    color: rgba(148, 163, 184, 0.6);
    cursor: default;
    background: none;
    pointer-events: none;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    font-size: 12px;
}
.chip-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.chip-warning {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.chip-meta {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.muted {
    color: var(--text-muted);
}

.activity-detail {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.activity-context {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.85);
    word-break: break-word;
}

.profile-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-card {
    background: rgba(10, 14, 39, 0.62);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    padding: 22px 24px;
    display: grid;
    gap: 18px;
}

.profile-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.profile-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.profile-info li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.profile-info li span {
    color: rgba(148, 163, 184, 0.78);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.profile-info li strong {
    color: #fff;
    font-size: 14px;
    word-break: break-word;
}

.danger-zone {
    border: 1px dashed rgba(248, 113, 113, 0.42);
    border-radius: 16px;
    padding: 24px;
    background: rgba(248, 113, 113, 0.08);
    display: grid;
    gap: 18px;
}

.danger-zone h3 {
    margin: 0;
    font-size: 18px;
    color: #f87171;
}

.danger-form {
    display: grid;
    gap: 16px;
    max-width: 420px;
}

.danger-form .field input {
    background: rgba(5, 6, 26, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.hero {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
}

.hero-content {
    display: grid;
    gap: 18px;
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: grid;
    gap: 18px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(228, 231, 235, 0.8);
}

.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 22px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(228, 231, 235, 0.65);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
}
.stat-note {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.6);
    text-align: right;
}
.pricing-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
}
.pricing-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.pricing-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #ffffff;
}
.pricing-header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.75);
    font-size: 15px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 16px;
    padding: 24px 26px;
    height: 100%;
}
.pricing-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.32);
    font-size: 13px;
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.pricing-price-main {
    font-size: 28px;
    font-weight: 700;
    color: #fef08a;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.pricing-price-main span {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.6);
}
.pricing-price-original {
    font-size: 15px;
    color: rgba(148, 163, 184, 0.65);
    text-decoration: line-through;
    align-self: flex-end;
    text-align: right;
}
.pricing-price-original.is-empty {
    visibility: hidden;
}
.pricing-desc {
    margin: 0;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.75);
}
.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.8);
}
.pricing-features li::before {
    content: '• ';
    color: rgba(96, 165, 250, 0.9);
}
.pricing-cta {
    margin-top: auto;
    align-self: flex-start;
}

.card-list {
    display: grid;
    gap: 18px;
}

.card {
    background: rgba(10, 14, 39, 0.72);
    border: 1px solid rgba(31, 41, 55, 0.76);
    border-radius: var(--radius-md);
    padding: 22px 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(228, 231, 235, 0.75);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: #151a30;
    border: 1px solid #1f2937;
    border-radius: 12px;
    max-width: 1200px;
    margin: 24px auto 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-bar-landing {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
}

.nav-bar-landing .nav-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.nav-bar-landing .nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.18);
    color: rgba(228, 231, 235, 0.92);
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.nav-bar-landing .nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.nav-bar-landing .nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.nav-links a {
    color: rgba(228, 231, 235, 0.8);
    text-decoration: none;
    transition: color 0.18s ease;
}

.nav-links a:hover {
    color: var(--accent);
}
.nav-bar .btn {
    box-shadow: none;
}
.nav-bar .btn:hover {
    transform: translateY(-1px);
}
.page-dark {
    background: #0a0e27;
    color: #e4e7eb;
    min-height: 100vh;
    padding: 16px;
}
.page-dark .layout {
    color: inherit;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 18px;
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-dropdown {
    position: relative;
}
.nav-dropdown details {
    position: relative;
}
.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    background: rgba(59, 130, 246, 0.12);
    color: rgba(226, 232, 240, 0.9);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-dropdown summary::after {
    content: '\25BE';
    font-size: 11px;
    opacity: 0.7;
}
.nav-dropdown summary::-webkit-details-marker {
    display: none;
}
.nav-dropdown details[open] summary {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
}
.nav-dropdown details[open] .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    padding: 8px 16px;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.nav-dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

.badge-outline {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.footer {
    margin-top: auto;
    padding: 40px 20px;
    text-align: center;
    color: rgba(156, 163, 175, 0.75);
    font-size: 13px;
}

.footer-links {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    color: rgba(228, 231, 235, 0.8);
    text-decoration: none;
}

.footer-links a:hover {
    color: #3b82f6;
}


.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(21, 26, 48, 0.88);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 36px 32px 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.auth-card header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.auth-card header p {
    margin-top: 8px;
    color: rgba(228, 231, 235, 0.72);
    font-size: 14px;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #ff9a9a;
}
.alert-success {
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}
.global-alert {
    max-width: 1200px;
    margin: 12px auto 0;
    text-align: center;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 920px) {
    .nav-bar-landing {
        padding: 18px 20px;
        gap: 12px;
    }
    .nav-bar-landing .nav-toggle {
        display: inline-flex;
    }
    .nav-bar-landing .nav-bar-inner {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .nav-bar-landing .nav-bar-inner.is-open {
        display: flex;
    }
    .nav-bar-landing .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
    }
    .nav-bar-landing .nav-links a {
        width: 100%;
    }
    .nav-bar-landing .nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }
    .nav-bar-landing .nav-actions .badge-outline {
        align-self: flex-start;
    }
    .nav-bar-landing .nav-actions .btn {
        width: 100%;
    }
    .hero {
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero .actions {
        justify-content: center;
    }
    .hero-stats {
        justify-items: center;
    }
    .stat-note {
        text-align: center;
    }
    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(228, 231, 235, 0.82);
    font-weight: 600;
    margin-bottom: 24px;
}

.back-link svg {
    stroke: currentColor;
}

@media (max-width: 680px) {
    .layout {
        padding: 30px 16px 60px;
    }
    .surface {
        padding: 22px 20px;
    }
    .surface-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-title {
        font-size: 34px;
    }
    .pricing-section {
        margin: 40px 0;
    }
    .pricing-header h2 {
        font-size: 26px;
    }
    .pricing-card {
        padding: 22px;
    }
    .pricing-cta {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .page-dark {
        padding: 12px;
    }
    .nav-bar-landing {
        padding: 16px;
        border-radius: 10px;
    }
    .nav-bar-landing .nav-bar-top {
        flex-wrap: wrap;
        gap: 12px;
    }
    .layout {
        padding: 24px 12px 48px;
        gap: 20px;
    }
    .surface {
        padding: 18px 18px;
        border-radius: 10px;
    }
    .hero {
        gap: 28px;
    }
    .hero .actions {
        width: 100%;
        gap: 10px;
    }
    .hero .actions .btn {
        flex: 1 1 100%;
    }
    .hero-stats {
        gap: 12px;
    }
    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .stat-card {
        padding: 18px;
    }
    .pricing-section {
        padding: 20px 18px;
    }
    .pricing-card,
    .card {
        padding: 18px;
        border-radius: 12px;
    }
    .pricing-price-main {
        font-size: 26px;
    }
    .stat-note {
        text-align: center;
    }
    .hero .pill {
        padding: 6px 10px;
        letter-spacing: 0.25px;
    }
}
