:root {
    --fw-primary: #2563eb;
    --fw-primary-dark: #1d4ed8;
    --fw-primary-soft: #dbeafe;
    --fw-secondary: #0f172a;
    --fw-accent: #10b981;
    --fw-warning: #f59e0b;
    --fw-danger: #ef4444;
    --fw-success: #16a34a;
    --fw-text: #334155;
    --fw-text-strong: #0f172a;
    --fw-muted: #64748b;
    --fw-line: #e2e8f0;
    --fw-surface: #ffffff;
    --fw-surface-soft: #f8fafc;
    --fw-surface-strong: #eff6ff;
    --fw-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --fw-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --fw-radius-lg: 24px;
    --fw-radius-md: 18px;
    --fw-radius-sm: 12px;
    --fw-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
    --fw-gradient-soft: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--fw-text);
    background: var(--fw-surface-soft);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--fw-text-strong);
    font-weight: 700;
}

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

a:hover {
    color: var(--fw-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.fw-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.1), transparent 24%),
        var(--fw-surface-soft);
}

.fw-page-auth {
    background: var(--fw-gradient);
}

.fw-main {
    padding-top: 104px;
}

.fw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(15, 23, 42, 0.08);
}

.fw-navbar {
    padding: 1rem 0;
}

.fw-brand img {
    height: 56px;
}

.fw-nav {
    gap: 0.35rem;
}

.fw-nav-link {
    color: var(--fw-text);
    font-weight: 600;
    padding: 0.7rem 0.95rem !important;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.fw-nav-link:hover,
.fw-nav-link.is-active {
    color: var(--fw-primary);
    background: rgba(37, 99, 235, 0.08);
}

.fw-language {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--fw-line);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: #fff;
    color: var(--fw-text-strong);
    font-weight: 600;
}

.fw-language-menu {
    min-width: 180px;
    border: none;
    border-radius: 18px;
    box-shadow: var(--fw-shadow-soft);
    padding: 0.5rem;
}

.fw-language-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    color: var(--fw-text-strong);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fw-language-option:hover,
.fw-language-option:focus-visible {
    background: rgba(37, 99, 235, 0.08);
    color: var(--fw-text-strong);
}

.fw-language-option.active,
.fw-language-option.active:hover,
.fw-language-option.active:focus-visible {
    background: var(--fw-primary-soft);
    color: var(--fw-primary-dark);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.fw-language-option.active .fw-badge-dot {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.fw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.fw-btn:hover {
    transform: translateY(-2px);
}

.fw-btn:disabled,
.fw-btn[disabled] {
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.fw-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.fw-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.fw-btn-primary:disabled,
.fw-btn-primary[disabled] {
    background: #e8eef8;
    color: #8a99b2;
    box-shadow: none;
    border-color: #d7e1f0;
}

.fw-btn-outline {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--fw-primary);
}

.fw-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.fw-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.fw-btn-block {
    width: 100%;
}

.fw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--fw-surface-strong);
    color: var(--fw-primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.fw-chip-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.fw-section {
    padding: 5rem 0;
}

.fw-section-sm {
    padding: 3.5rem 0;
}

.fw-section-title {
    max-width: 700px;
    margin-bottom: 2rem;
}

.fw-section-title .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--fw-primary-dark);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.fw-section-title p {
    color: var(--fw-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.fw-hero {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 4.5rem;
}

.fw-hero-shell {
    border-radius: 32px;
    padding: 3.5rem;
    background: var(--fw-gradient);
    color: #fff;
    box-shadow: var(--fw-shadow);
}

.fw-hero-shell h1,
.fw-hero-shell h2,
.fw-hero-shell h3 {
    color: #fff;
}

.fw-hero-shell p {
    color: rgba(255, 255, 255, 0.88);
}

.fw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.fw-hero-panel,
.fw-card,
.fw-form-shell,
.fw-panel {
    background: var(--fw-surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--fw-radius-lg);
    box-shadow: var(--fw-shadow-soft);
}

.fw-panel-soft {
    background: var(--fw-gradient-soft);
}

.fw-card {
    padding: 1.5rem;
    height: 100%;
}

.fw-card h3,
.fw-card h4 {
    margin-bottom: 0.75rem;
}

.fw-card p,
.fw-card li {
    color: var(--fw-muted);
}

.fw-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.fw-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 1.15rem;
}

.fw-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #fff;
}

.fw-stat span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.fw-list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fw-list-check li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    align-items: flex-start;
}

.fw-list-check i {
    color: var(--fw-accent);
    margin-top: 0.2rem;
}

.fw-split-card {
    padding: 2rem;
}

.fw-auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.fw-auth-card,
.fw-auth-side {
    border-radius: 28px;
    overflow: hidden;
}

.fw-auth-card {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.fw-auth-side {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    height: 100%;
}

.fw-auth-side h2,
.fw-auth-side h3,
.fw-auth-side strong {
    color: #fff;
}

.fw-form-shell {
    padding: 2rem;
}

.fw-form-header {
    margin-bottom: 1.5rem;
}

.fw-stepper {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 2rem;
}

.fw-step {
    position: relative;
    border: 1px solid var(--fw-line);
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
    transition: all 0.2s ease;
}

.fw-step.is-active {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--fw-surface-strong);
}

.fw-step.is-complete {
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.08);
}

.fw-step-index {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fw-primary-soft);
    color: var(--fw-primary-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.fw-step.is-complete .fw-step-index {
    background: var(--fw-success);
    color: #fff;
}

.fw-step small {
    display: block;
    color: var(--fw-muted);
    margin-top: 0.2rem;
}

.fw-step-panel {
    display: none;
}

.fw-step-panel.is-active {
    display: block;
}

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

.fw-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--fw-text-strong);
}

.fw-field .form-control,
.fw-field .form-select,
.fw-field textarea {
    border: 1px solid var(--fw-line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    min-height: 52px;
    background: #fff;
}

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

.fw-field .form-control:focus,
.fw-field .form-select:focus,
.fw-field textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.12);
}

.fw-field-hint {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: var(--fw-muted);
}

.fw-field.is-error .form-control,
.fw-field.is-error .form-select,
.fw-field.is-error textarea {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(254, 242, 242, 0.75);
}

.fw-field.is-success .form-control,
.fw-field.is-success .form-select,
.fw-field.is-success textarea {
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(240, 253, 244, 0.8);
}

.fw-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.fw-note {
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: var(--fw-surface-strong);
    color: var(--fw-primary-dark);
}

.fw-note-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.fw-empty-state {
    display: none;
    padding: 2rem;
    border-radius: 24px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.fw-empty-state.is-visible {
    display: block;
}

.fw-footer {
    background: var(--fw-secondary);
    color: #fff;
    margin-top: 4rem;
}

.fw-footer-top {
    padding: 3.5rem 0 2rem;
}

.fw-footer p,
.fw-footer li,
.fw-footer a {
    color: rgba(255, 255, 255, 0.75);
}

.fw-footer a:hover {
    color: #fff;
}

.fw-footer-bottom {
    padding: 1rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fw-footer-logo {
    height: 56px;
}

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

.fw-kicker {
    font-size: 0.95rem;
    color: var(--fw-primary-dark);
    font-weight: 700;
}

.fw-surface-card {
    background: #fff;
    border: 1px solid var(--fw-line);
    border-radius: 24px;
    padding: 1.75rem;
}

.fw-mobile-nav {
    padding-top: 1rem;
}

.fw-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.fw-pill {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--fw-line);
    border-radius: 999px;
    background: #fff;
    color: var(--fw-text);
    font-weight: 600;
}

.fw-divider {
    height: 1px;
    background: var(--fw-line);
    margin: 1.5rem 0;
}

.fw-cta-band {
    background: var(--fw-gradient);
    color: #fff;
    border-radius: 32px;
    padding: 2.25rem;
}

.fw-cta-band h2,
.fw-cta-band p {
    color: #fff;
}

.fw-hero-preview-card {
    padding: 1.35rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.fw-hero-preview-card .mini-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 1rem;
    color: var(--fw-text);
}

.fw-hero-preview-card .mini-card strong {
    color: var(--fw-text-strong);
}

.fw-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: currentColor;
}

.fw-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fw-link-list li {
    margin-bottom: 0.7rem;
}

.fw-link-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.fw-focus-ring:focus-visible,
.fw-btn:focus-visible,
.fw-nav-link:focus-visible,
.fw-language:focus-visible,
.dropdown-item:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--fw-primary);
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .fw-main {
        padding-top: 92px;
    }

    .fw-hero-shell,
    .fw-cta-band,
    .fw-auth-card,
    .fw-auth-side,
    .fw-form-shell {
        padding: 1.5rem;
    }

    .fw-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fw-section {
        padding: 3.5rem 0;
    }

    .fw-hero {
        padding-bottom: 2rem;
    }

    .fw-hero-actions,
    .fw-form-actions {
        flex-direction: column;
    }

    .fw-btn,
    .fw-btn-block-mobile {
        width: 100%;
    }
}
