﻿/* ============================================================
   FRONTIER PAY - Font Imports
   ============================================================ */

/* Inter Font - Main UI font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Playfair Display - Serif font for "connected world" */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@0;1&display=swap');

/* ============================================================
   FRONTIER PAY - Global Styles
   Reusable across all components
   ============================================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #313131;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #ffffff;
}

/* ---------- BRAND VARIABLES ---------- */
:root {
    --fp-bg: #313131;
    --fp-surface: #3a3a3a;
    --fp-surface-light: #181820;
    --fp-surface2: #2b2b2b;
    --fp-surface3: #3a3a3a;
    --fp-border: rgba(255, 255, 255, 0.12);
    --fp-border-hover: rgba(255, 255, 255, 0.26);
    --fp-text: #ffffff;
    --fp-muted: #b4b4b4;
    --fp-faint: #828282;
    --fp-cyan: #71f8ff;
    --fp-cyan-ink: #0e2e30;
    --fp-purple: #df7fff;
    --fp-success: #5ae3b0;
    --fp-danger: #ff8a8a;
    --fp-radius: 18px;
    --fp-radius-sm: 10px;
    --fp-radius-pill: 999px;
}

/* ---------- UTILITY CLASSES ---------- */
.fp-serif {
    font-weight: 400;
    font-family: 'Playfair Display', 'Times New Roman', Times, serif;
    font-style: italic;
}

.fp-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 840px;
}

.fp-scroll {
    flex: 1 1 0%;
   /* overflow-y: auto;*/
    max-height: 100vh;
}

.fp-enter {
    animation: fpIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes fpIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- LAYOUT ---------- */
.fp-page-wrapper {
    background-color: var(--fp-bg);
    color: var(--fp-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fp-container {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.fp-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
}

.fp-content-narrow {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.fp-content-center {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- LOGO ---------- */
.fp-logo-wrap {
    margin-bottom: 46px;
}

    .fp-logo-wrap svg {
        display: block;
        height: 30px;
        width: auto;
    }

.fp-logo-small {
    margin-bottom: 40px;
}

    .fp-logo-small svg {
        display: block;
        height: 26px;
        width: auto;
    }

/* ---------- HEADINGS ---------- */
.fp-badge {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fp-cyan);
    margin-bottom: 16px;
}

.fp-title {
    font-size: clamp(34px, 5.4vw, 60px);
    font-weight: 500;
    line-height: 1.04;
    margin: 0 0 8px 0;
    max-width: 760px;
    letter-spacing: -0.015em;
}

.fp-subhead {
    color: var(--fp-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0 48px 0;
    max-width: 560px;
}

/* ---------- STEP HEADER ---------- */
.fp-step-head {
    margin-bottom: 26px;
}

.fp-step-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fp-cyan);
    margin-bottom: 11px;
}

.fp-step-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--fp-text);
    letter-spacing: -0.01em;
}

.fp-step-sub {
    margin: 9px 0 0 0;
    color: var(--fp-muted);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 520px;
}

/* ---------- CARDS ---------- */
.fp-card {
    background: var(--fp-surface);
    border-radius: var(--fp-radius);
    padding: 26px 24px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

    .fp-card:hover {
        border-color: var(--fp-cyan);
        transform: translateY(-3px);
        box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.6);
    }

    .fp-card:active {
        transform: translateY(-1px);
        transition-duration: 0.08s;
    }

.fp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

    .fp-card-header svg {
        display: block;
    }

.fp-card h3 {
    margin: 0 0 9px 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fp-card p {
    color: var(--fp-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 18px 0;
}

.fp-card .fp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
    display: grid;
    gap: 9px;
}

    .fp-card .fp-feature-list li {
        display: flex;
        gap: 9px;
        align-items: center;
        font-size: 13.5px;
        color: var(--fp-text);
        transition: transform 0.2s ease;
    }

.fp-card:hover .fp-feature-list li {
    transform: translateX(3px);
}

    .fp-card:hover .fp-feature-list li:nth-child(2) {
        transition-delay: 0.04s;
    }

    .fp-card:hover .fp-feature-list li:nth-child(3) {
        transition-delay: 0.08s;
    }

/* ---------- PILLS ---------- */
.fp-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--fp-border);
    padding: 5px 12px;
    border-radius: var(--fp-radius-pill);
    background: transparent;
    transition: border-color 0.25s ease;
}

.fp-card:hover .fp-pill {
    border-color: var(--fp-border-hover);
}

.fp-pill-cyan {
    color: var(--fp-cyan);
}

.fp-pill-magenta {
    color: var(--fp-purple);
}

/* ---------- CHECKS ---------- */
.fp-check-cyan {
    color: var(--fp-cyan);
    display: inline-block;
    transition: transform 0.25s ease;
}

.fp-card:hover .fp-check-cyan {
    transform: scale(1.15);
}

.fp-check-magenta {
    color: var(--fp-purple);
    display: inline-block;
    transition: transform 0.25s ease;
}

.fp-card:hover .fp-check-magenta {
    transform: scale(1.15);
}

/* ---------- CTA ---------- */
.fp-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: default;
    transition: all 0.25s ease;
}

    .fp-cta-row svg {
        width: 16px;
        height: 16px;
        display: block;
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

.fp-card:hover .fp-cta-row svg {
    transform: translateX(4px);
}

.fp-cta-cyan {
    color: var(--fp-cyan);
}

.fp-cta-magenta {
    color: var(--fp-purple);
}

.fp-cta-row:hover {
    opacity: 0.8;
}

/* ---------- FORM FIELDS ---------- */
.fp-form-grid {
    display: grid;
    gap: 16px;
}

.fp-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fp-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--fp-muted);
    margin-bottom: 0;
}

.fp-field {
    width: 100%;
    background: var(--fp-surface2);
    border: 1px solid var(--fp-border);
    color: var(--fp-text);
    border-radius: var(--fp-radius-sm);
    padding: 13px 14px;
    font-size: 15px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    outline: none;
    transition: border-color 0.16s, box-shadow 0.16s;
}

    .fp-field::placeholder {
        color: var(--fp-faint);
    }

    .fp-field:focus {
        border-color: var(--fp-cyan);
        box-shadow: 0 0 0 3px rgba(113, 248, 255, 0.16);
    }

    .fp-field.err {
        border-color: var(--fp-danger);
        box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.14);
    }

.fp-field-error {
    color: var(--fp-danger);
    font-size: 12px;
    margin-top: 4px;
}

/* ---------- BUTTONS ---------- */
.fp-btn {
    cursor: pointer;
    border: none;
    border-radius: var(--fp-radius-pill);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 0;
    transition: transform 0.12s, box-shadow 0.18s, opacity 0.18s;
    display: inline-flex;
    align-items: center;
}

    .fp-btn:active {
        transform: translateY(1px);
    }

    .fp-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none !important;
    }

.fp-primary {
    background: var(--fp-cyan);
    color: var(--fp-cyan-ink);
    padding: 7px 7px 7px 24px;
    gap: 14px;
}

    .fp-primary:hover:not(:disabled) {
        box-shadow: 0 8px 26px -10px var(--fp-cyan);
    }

    .fp-primary .arr {
        width: 38px;
        height: 38px;
        border-radius: var(--fp-radius-pill);
        background: var(--fp-cyan-ink);
        display: grid;
        place-items: center;
        color: var(--fp-cyan);
        flex: none;
    }

        .fp-primary .arr svg {
            width: 16px;
            height: 16px;
            display: block;
        }

.fp-ghost {
    background: transparent;
    color: var(--fp-muted);
    border: 1px solid var(--fp-border);
    padding: 13px 24px;
}

    .fp-ghost:hover:not(:disabled) {
        color: var(--fp-text);
        border-color: var(--fp-border-hover);
    }

/* ---------- FORM ACTIONS ---------- */
.fp-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}

/* ---------- SIDEBAR / RAIL ---------- */
.fp-rail {
    width: 330px;
    flex: 0 0 auto;
    padding: 38px 32px;
    background: #2a2a2a;
    border-right: 1px solid var(--fp-border);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.fp-rail-description {
    color: var(--fp-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 22px 0 14px;
    max-width: 240px;
}

    .fp-rail-description .fp-serif {
        color: var(--fp-text);
    }

.fp-rail-back {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 28px;
    color: var(--fp-cyan);
    text-decoration: none;
}

    .fp-rail-back:hover {
        text-decoration: underline;
    }

.fp-rail-footer {
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--fp-border);
}

/* ---------- MOBILE BAR ---------- */
.fp-mobilebar {
    display: none;
    padding: 18px 22px;
    border-bottom: 1px solid var(--fp-border);
    background: #2a2a2a;
}

    .fp-mobilebar .step-info {
        font-size: 12px;
        color: var(--fp-muted);
        margin-top: 10px;
    }

/* ---------- STEPPER ---------- */
.fp-stepper {
    position: relative;
}

.fp-step-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 22px;
}

    .fp-step-item:last-child {
        padding-bottom: 0;
    }

.fp-step-line {
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--fp-border);
}

.fp-step-item:last-child .fp-step-line {
    display: none;
}

.fp-step-number {
    width: 28px;
    height: 28px;
    border-radius: 99px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
    transition: all 0.3s;
    background: var(--fp-surface2);
    border: 1px solid var(--fp-border);
    color: var(--fp-faint);
}

    .fp-step-number.active {
        background: #444444;
        border: 2px solid var(--fp-cyan);
        color: var(--fp-text);
    }

    .fp-step-number.completed {
        background: var(--fp-cyan);
        border: 1px solid var(--fp-cyan);
        color: var(--fp-cyan-ink);
    }

.fp-step-label {
    padding-top: 4px;
}

    .fp-step-label .name {
        font-size: 14px;
        font-weight: 500;
        color: var(--fp-faint);
    }

        .fp-step-label .name.active {
            font-weight: 600;
            color: var(--fp-text);
        }

        .fp-step-label .name.completed {
            color: var(--fp-muted);
        }

/* ---------- BUSINESS VERIFICATION ---------- */
.fp-biz-container {
    max-width: 660px;
    margin: 0 auto;
    padding: 46px 40px 120px;
}

.fp-biz-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #313131 72%, transparent);
    padding: 18px 40px 26px;
    margin-top: -40px;
}

    .fp-biz-actions .inner {
        max-width: 660px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/* ---------- INDUSTRY SECTION ---------- */
.fp-industry-section {
    margin-top: 26px;
    padding: 22px;
    border-radius: 16px;
    background: var(--fp-surface3);
    border: 1px solid var(--fp-border);
}

    .fp-industry-section .header {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 4px;
    }

    .fp-industry-section .dot {
        width: 7px;
        height: 7px;
        border-radius: 99px;
        background: var(--fp-purple);
    }

    .fp-industry-section .title {
        font-size: 13px;
        font-weight: 600;
        color: var(--fp-muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin: 0;
    }

    .fp-industry-section .sub {
        color: var(--fp-faint);
        font-size: 12.5px;
        margin: 0 0 18px;
    }

/* ---------- CHIPS ---------- */
.fp-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.fp-chip {
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--fp-border);
    background: var(--fp-surface2);
    color: var(--fp-muted);
    padding: 8px 15px;
    border-radius: var(--fp-radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
}

    .fp-chip:hover {
        border-color: var(--fp-border-hover);
        color: var(--fp-text);
    }

    .fp-chip.on {
        background: var(--fp-cyan);
        color: var(--fp-cyan-ink);
        border-color: transparent;
        font-weight: 600;
    }

/* ---------- INFO NOTE ---------- */
.fp-info-note {
    margin-top: 22px;
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 11px;
    background: rgba(113, 248, 255, 0.06);
    border: 1px solid var(--fp-border);
}

    .fp-info-note .icon {
        color: var(--fp-cyan);
        font-size: 15px;
        line-height: 1.4;
        flex: 0 0 auto;
    }

    .fp-info-note p {
        margin: 0;
        font-size: 13px;
        color: var(--fp-muted);
        line-height: 1.55;
    }

/* ---------- ADDRESSES STEP ---------- */
.fp-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px 0;
}

.fp-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

    .fp-address-grid .full-width {
        grid-column: 1 / -1;
    }

    .fp-address-grid .half-width {
        grid-column: span 1;
    }

.fp-same-address {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 20px 0 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--fp-text);
}

    .fp-same-address input[type="checkbox"] {
        accent-color: var(--fp-cyan);
        width: 18px;
        height: 18px;
        cursor: pointer;
        flex: none;
        margin-top: 1px;
    }

.fp-trading-section .fp-section-title {
    margin: 18px 0 14px;
}

/* ---------- CHECKBOX STYLES ---------- */
input[type="checkbox"].fp-cb {
    accent-color: var(--fp-cyan);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex: none;
    margin-top: 1px;
}

/* ---------- ACTIVITY STEP ---------- */
.fp-activity-section {
    margin-top: 20px;
}

    .fp-activity-section .fp-field-label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--fp-muted);
        margin-bottom: 7px;
    }

        .fp-activity-section .fp-field-label span {
            color: var(--fp-faint);
            font-weight: 400;
        }

/* ---------- DOCUMENTS STEP ---------- */
.fp-drop {
    cursor: pointer;
    border: 1.5px dashed var(--fp-border);
    border-radius: 12px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.16s;
    background: var(--fp-surface2);
}

    .fp-drop:hover {
        border-color: var(--fp-cyan);
    }

    .fp-drop.done {
        border-style: solid;
        border-color: var(--fp-success);
        background: rgba(90, 227, 176, 0.07);
    }

.fp-documents-grid {
    display: grid;
    gap: 12px;
}

/* ---------- DASHBOARD ---------- */
.fp-dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 46px 40px 120px;
}

.fp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.fp-dashboard-greeting {
    font-size: 13px;
    color: var(--fp-muted);
}

.fp-account-card {
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #3a3a3a, #2c2c2c);
    border: 1px solid var(--fp-border);
    position: relative;
    overflow: hidden;
}

    .fp-account-card .glow {
        position: absolute;
        right: -30px;
        top: -30px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: linear-gradient(115deg, var(--fp-cyan) 0%, var(--fp-purple) 100%);
        opacity: 0.14;
        filter: blur(8px);
    }

    .fp-account-card .content {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

.fp-account-label {
    font-size: 13px;
    color: var(--fp-muted);
}

.fp-account-balance {
    font-size: 34px;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: -0.02em;
}

.fp-account-currencies {
    font-size: 12.5px;
    color: var(--fp-faint);
    margin-top: 6px;
}

.fp-account-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--fp-purple);
    background: rgba(223, 127, 255, 0.12);
    border: 1px solid var(--fp-border);
    padding: 6px 12px;
    border-radius: 99px;
    white-space: nowrap;
}

.fp-dashboard-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.fp-dashboard-subtitle {
    color: var(--fp-muted);
    font-size: 14px;
    margin: 0 0 20px 0;
}

.fp-task-list {
    display: grid;
    gap: 14px;
}

.fp-task-item {
    background: var(--fp-surface3);
    border: 1px solid var(--fp-border);
    border-radius: 16px;
    padding: 22px;
    transition: border-color 0.18s;
    display: flex;
    align-items: center;
    gap: 18px;
}

    .fp-task-item.active {
        cursor: pointer;
    }

        .fp-task-item.active:hover {
            border-color: var(--fp-cyan);
        }

    .fp-task-item.locked {
        opacity: 0.55;
        cursor: default;
    }

    .fp-task-item.completed {
        opacity: 0.8;
    }

.fp-task-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-size: 19px;
}

    .fp-task-icon.cyan {
        background: rgba(113, 248, 255, 0.1);
        color: var(--fp-cyan);
    }

    .fp-task-icon.purple {
        background: rgba(113, 248, 255, 0.1);
        color: var(--fp-purple);
    }

    .fp-task-icon.success {
        background: rgba(90, 227, 176, 0.16);
        color: var(--fp-success);
    }

    .fp-task-icon.locked {
        background: rgba(113, 248, 255, 0.1);
        color: var(--fp-cyan);
    }

.fp-task-content {
    flex: 1 1 0%;
    min-width: 0;
}

.fp-task-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-task-name {
    font-size: 15.5px;
    font-weight: 600;
}

.fp-task-badge {
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--fp-border);
    padding: 3px 9px;
    border-radius: 99px;
}

    .fp-task-badge.todo {
        color: var(--fp-muted);
    }

    .fp-task-badge.completed {
        color: var(--fp-success);
    }

    .fp-task-badge.locked {
        color: var(--fp-muted);
    }

.fp-task-desc {
    font-size: 13px;
    color: var(--fp-muted);
    margin-top: 4px;
}

.fp-task-arrow {
    color: var(--fp-purple);
    flex: 0 0 auto;
}

    .fp-task-arrow.cyan {
        color: var(--fp-cyan);
    }

.fp-dashboard-actions {
    margin-top: 26px;
    display: flex;
    justify-content: flex-end;
}

/* ---------- TRUST LINE ---------- */
.fp-trust-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fp-muted);
    font-size: 12.5px;
    margin-bottom: 8px;
}

    .fp-trust-line .dot {
        color: var(--fp-success);
    }

.fp-trust-text {
    font-size: 11px;
    color: var(--fp-faint);
    line-height: 1.55;
    margin: 0;
}

/* ---------- SUCCESS & ERROR MESSAGES ---------- */
.fp-success-message {
    background: rgba(90, 227, 176, 0.1);
    border: 1px solid var(--fp-success);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--fp-success);
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .fp-success-message svg {
        flex: none;
        width: 20px;
        height: 20px;
    }

.fp-error-message {
    background: rgba(255, 138, 138, 0.1);
    border: 1px solid var(--fp-danger);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--fp-danger);
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .fp-error-message svg {
        flex: none;
        width: 20px;
        height: 20px;
    }

/* ---------- FOOTER ---------- */
.fp-footer-note {
    margin-top: 34px;
    font-size: 13px;
    color: var(--fp-faint);
}

    .fp-footer-note a {
        color: var(--fp-cyan);
        text-decoration: none;
        border-bottom: 1px solid var(--fp-border);
        transition: border-color 0.2s;
    }

        .fp-footer-note a:hover {
            border-bottom-color: var(--fp-cyan);
        }

/* ---------- REGISTER PAGE ---------- */
.fp-register-container {
    max-width: 660px;
    margin: 0 auto;
    padding: 46px 40px 120px;
}

.fp-register-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- OTP ---------- */
.fp-otp-container {
    max-width: 660px;
    margin: 0 auto;
    padding: 46px 40px 120px;
}

.fp-otp-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.fp-otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.fp-otp-input {
    width: 54px;
    height: 62px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: var(--fp-surface2);
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    color: var(--fp-text);
    outline: none;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    transition: border-color 0.16s, box-shadow 0.16s;
}

    .fp-otp-input:focus {
        border-color: var(--fp-cyan);
        box-shadow: 0 0 0 3px rgba(113, 248, 255, 0.16);
    }

    .fp-otp-input.err {
        border-color: var(--fp-danger);
        box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.14);
    }

    .fp-otp-input:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.fp-otp-help {
    font-size: 13px;
    color: var(--fp-faint);
    margin-top: 18px;
    text-align: center;
}

    .fp-otp-help a {
        color: var(--fp-cyan);
        text-decoration: none;
    }

        .fp-otp-help a:hover {
            text-decoration: underline;
        }

.fp-otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}

.fp-otp-timer {
    font-size: 13px;
    color: var(--fp-muted);
    margin-top: 12px;
    text-align: center;
}

    .fp-otp-timer .time {
        color: var(--fp-cyan);
        font-weight: 600;
    }

    .fp-otp-timer .expired {
        color: var(--fp-danger);
    }

/* ---------- REVIEW STEP ---------- */
.fp-review-card {
    background: var(--fp-surface3);
    border: 1px solid var(--fp-border);
    border-radius: 14px;
    padding: 6px 20px 16px;
}

.fp-review-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--fp-border);
}

    .fp-review-row:last-child {
        border-bottom: none;
    }

.fp-review-label {
    color: var(--fp-faint);
    font-size: 13.5px;
    flex-shrink: 0;
}

.fp-review-value {
    color: var(--fp-text);
    font-size: 13.5px;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

/* ---------- KYC STEPPER ---------- */
.fp-step-line.completed {
    background: var(--fp-cyan);
}

/* ---------- SCANNER ANIMATION ---------- */
@keyframes fpScan {
    0% {
        top: 6%;
    }

    50% {
        top: 88%;
    }

    100% {
        top: 6%;
    }
}

.fp-scan-line {
    position: absolute;
    left: 6%;
    right: 6%;
    height: 2px;
    background: var(--fp-cyan);
    box-shadow: 0 0 12px var(--fp-cyan);
    animation: fpScan 2.4s ease-in-out infinite;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .fp-rail {
        display: none !important;
    }

    .fp-mobilebar {
        display: block !important;
    }

    .fp-2col {
        grid-template-columns: 1fr !important;
    }

    .fp-biz-container {
        padding: 30px 20px 80px;
    }

    .fp-biz-actions {
        padding: 18px 20px 26px;
    }

        .fp-biz-actions .inner {
            flex-direction: column-reverse;
            gap: 12px;
        }

        .fp-biz-actions .fp-btn {
            width: 100%;
            justify-content: center;
        }

        .fp-biz-actions .fp-primary {
            padding: 12px 20px;
            justify-content: center;
        }

            .fp-biz-actions .fp-primary .arr {
                display: none;
            }

        .fp-biz-actions .fp-ghost {
            justify-content: center;
        }
}

@media (max-width: 700px) {
    .fp-address-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

        .fp-address-grid .full-width {
            grid-column: 1;
        }

        .fp-address-grid .half-width {
            grid-column: 1;
        }

    .fp-content {
        padding: 30px 10px;
    }

    .fp-card {
        padding: 22px 18px;
    }

        .fp-card:hover {
            transform: translateY(-2px);
        }

            .fp-card:hover .fp-feature-list li {
                transform: translateX(2px);
            }

    .fp-form-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

        .fp-form-actions .fp-btn {
            width: 100%;
            justify-content: center;
        }

    .fp-primary {
        padding: 12px 20px;
        justify-content: center;
    }

        .fp-primary .arr {
            display: none;
        }

    .fp-ghost {
        justify-content: center;
    }

    .fp-register-container {
        padding: 30px 20px 80px;
    }

    .fp-dashboard-container {
        padding: 30px 20px 80px;
    }

    .fp-account-card .content {
        flex-direction: column;
        gap: 16px;
    }

    .fp-account-balance {
        font-size: 28px;
    }

    .fp-task-item {
        padding: 18px 16px;
        flex-wrap: wrap;
    }

    .fp-task-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .fp-task-header {
        flex-wrap: wrap;
    }

    .fp-dashboard-actions {
        justify-content: center;
    }

        .fp-dashboard-actions .fp-primary {
            width: 100%;
            justify-content: center;
            padding: 12px 20px;
        }

            .fp-dashboard-actions .fp-primary .arr {
                display: none;
            }

    .fp-documents-grid {
        gap: 10px;
    }

    .fp-drop {
        padding: 14px 16px;
    }

    .fp-info-note {
        padding: 11px 13px;
    }

        .fp-info-note p {
            font-size: 12px;
        }

    .fp-step-item {
        padding-bottom: 16px;
    }

    .fp-step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .fp-step-line {
        left: 11px;
        top: 24px;
    }

    .fp-step-label .name {
        font-size: 13px;
    }

    .fp-chip {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .fp-chip-group {
        gap: 7px;
    }

    .fp-otp-container {
        padding: 30px 20px 80px;
    }

    .fp-otp-group {
        gap: 8px;
    }

    .fp-otp-input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }

    .fp-otp-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

        .fp-otp-actions .fp-btn {
            width: 100%;
            justify-content: center;
        }

        .fp-otp-actions .fp-primary {
            padding: 12px 20px;
            justify-content: center;
        }

            .fp-otp-actions .fp-primary .arr {
                display: none;
            }

        .fp-otp-actions .fp-ghost {
            justify-content: center;
        }

    .fp-review-card {
        padding: 6px 14px 12px;
    }

    .fp-review-row {
        padding: 9px 0;
        flex-wrap: wrap;
        gap: 4px;
    }

    .fp-review-label {
        font-size: 12.5px;
        width: 100%;
    }

    .fp-review-value {
        font-size: 13px;
        text-align: left;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
select.fp-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B4B4B4' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}
.fp-link {
    color: var(--fp-cyan);
    text-decoration: none;
}

.fancybox__container {
    overflow: hidden !important;
}

.fancybox__content {
    overflow: hidden !important;
}

/* Login Page Styles - Matching Register Design */
.fp-login-container,
.fp-forgot-password-container,
.fp-reset-password-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fp-login-content,
.fp-forgot-password-content,
.fp-reset-password-content {
    padding: 0;
}

/* Password wrapper for toggle button */
.fp-password-wrapper {
    position: relative;
}

    .fp-password-wrapper input {
        padding-right: 48px;
    }

.fp-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8a8f9a;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .fp-password-toggle:hover {
        color: #1a1e2b;
    }

/* Remember me and forgot password row */
.fp-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    width: 100%;
}

.fp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a4f5e;
    cursor: pointer;
}

    .fp-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--fp-cyan);
        cursor: pointer;
    }

.fp-forgot-link {
    font-size: 14px;
    color: var(--fp-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .fp-forgot-link:hover {
        text-decoration: underline;
        color: var(--fp-cyan);
    }

/* Password hint text */
.fp-password-hint {
    font-size: 12px;
    color: #8a8f9a;
    margin-top: 4px;
}



/* Mobile responsive */
@media (max-width: 768px) {
    .fp-login-container,
    .fp-forgot-password-container,
    .fp-reset-password-container {
        padding: 20px 16px;
    }

    .fp-remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Dashboard - Professional Table Design */
.fp-dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fp-dashboard-content {
    padding: 0;
}

/* Actions */
.fp-dashboard-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

    .fp-dashboard-actions .fp-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
    }

        .fp-dashboard-actions .fp-btn svg {
            flex-shrink: 0;
        }

/* Table Wrapper */
.fp-table-wrapper {
    background: var(--fp-surface3);
    border: 1px solid var(--fp-border);
    border-radius: 16px;
    overflow: hidden;
    overflow-x: auto;
}

.fp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .fp-table thead {
        background: var(--fp-surface2);
    }

    .fp-table th {
        text-align: left;
        padding: 16px 24px;
        color: var(--fp-muted);
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        border-bottom: 1px solid var(--fp-border);
        white-space: nowrap;
    }

    .fp-table td {
        padding: 16px 24px;
        border-bottom: 1px solid var(--fp-border);
        color: var(--fp-text);
        vertical-align: middle;
    }

    .fp-table tbody tr:last-child td {
        border-bottom: none;
    }

    .fp-table tbody tr:hover {
        background: rgba(113, 248, 255, 0.03);
    }

.fp-text-right {
    text-align: right;
}

/* Application Info */
.fp-app-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-app-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--fp-text);
}

.fp-app-ref {
    font-size: 12px;
    color: var(--fp-faint);
    font-weight: 400;
}

/* Status Badge */
.fp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.fp-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.fp-status-badge.draft {
    background: rgba(113, 248, 255, 0.08);
    color: var(--fp-cyan);
}

    .fp-status-badge.draft .fp-status-dot {
        background: var(--fp-cyan);
        animation: pulse 1.5s ease-in-out infinite;
    }

.fp-status-badge.submitted {
    background: rgba(90, 227, 176, 0.08);
    color: var(--fp-success);
}

    .fp-status-badge.submitted .fp-status-dot {
        background: var(--fp-success);
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Date Text */
.fp-date-text {
    color: var(--fp-muted);
    font-size: 13px;
}

/* Table Buttons */
.fp-table-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 6px 18px;
    font-size: 13px;
    font-weight: 500;
}

    .fp-table-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

/* Completed Label */
.fp-completed-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fp-faint);
    font-size: 13px;
    font-weight: 500;
}

    .fp-completed-label svg {
        width: 16px;
        height: 16px;
        color: var(--fp-success);
    }

/* Empty State */
.fp-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--fp-surface3);
    border: 1px solid var(--fp-border);
    border-radius: 16px;
}

.fp-empty-icon {
    color: var(--fp-faint);
    margin-bottom: 16px;
}

.fp-empty-state h3 {
    font-size: 20px;
    color: var(--fp-text);
    margin-bottom: 8px;
}

.fp-empty-state p {
    color: var(--fp-muted);
    margin-bottom: 24px;
}

.fp-empty-state .fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Loading Spinner */
.fp-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--fp-border);
    border-top-color: var(--fp-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dashboard Footer */
.fp-dashboard-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--fp-border);
    display: flex;
    justify-content: flex-end;
}

    .fp-dashboard-footer .fp-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .fp-dashboard-container {
        padding: 20px 16px;
    }

    .fp-dashboard-actions {
        justify-content: stretch;
    }

        .fp-dashboard-actions .fp-btn {
            width: 100%;
            justify-content: center;
        }

    .fp-table-wrapper {
        border-radius: 12px;
    }

    .fp-table th,
    .fp-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

        .fp-table th:first-child,
        .fp-table td:first-child {
            padding-left: 14px;
        }

        .fp-table th:last-child,
        .fp-table td:last-child {
            padding-right: 14px;
        }

        /* Hide submitted date on mobile */
        .fp-table th:nth-child(3),
        .fp-table td:nth-child(3) {
            display: none;
        }

    .fp-app-name {
        font-size: 13px;
    }

    .fp-app-ref {
        font-size: 11px;
    }

    .fp-table-btn {
        font-size: 12px;
        padding: 5px 12px 5px 14px;
    }

        .fp-table-btn svg {
            width: 12px;
            height: 12px;
        }

    .fp-dashboard-footer {
        justify-content: center;
    }

        .fp-dashboard-footer .fp-btn {
            width: 100%;
            justify-content: center;
        }

    .fp-completed-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .fp-table th,
    .fp-table td {
        padding: 10px 10px;
        font-size: 12px;
    }

    .fp-status-badge {
        font-size: 10px;
        padding: 3px 10px 3px 8px;
        gap: 5px;
    }

    .fp-status-dot {
        width: 5px;
        height: 5px;
    }
}