/* ================================================
   Finovatives Client Portal - Design System
   ================================================ */

/* ─── Hide Social Share Buttons on ALL Portal Pages ─── */
.social-warfare,
.swp_social_panel,
.swp-content-locator,
.nc_socialPanel,
.dpsp-share-text,
[class*="social-share"],
[class*="share-button"],
.sharedaddy {
    display: none !important;
}

/* ─── CSS Custom Properties ─── */
:root {
    --fcp-primary: #1B5E8C;
    --fcp-primary-hover: #164b70;
    --fcp-primary-light: rgba(27, 94, 140, 0.1);
    --fcp-success: #27AE60;
    --fcp-success-light: rgba(39, 174, 96, 0.1);
    --fcp-warning: #F39C12;
    --fcp-warning-light: rgba(243, 156, 18, 0.1);
    --fcp-danger: #E74C3C;
    --fcp-danger-light: rgba(231, 76, 60, 0.1);

    --fcp-bg: #F8FAFC;
    --fcp-card-bg: #FFFFFF;
    --fcp-text: #2C3E50;
    --fcp-text-secondary: #7F8C8D;
    --fcp-text-muted: #95A5A6;
    --fcp-border: #E8ECF0;
    --fcp-border-focus: var(--fcp-primary);
    --fcp-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --fcp-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);

    --fcp-radius: 12px;
    --fcp-radius-sm: 8px;
    --fcp-radius-pill: 20px;

    --fcp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fcp-transition: 0.2s ease;
}

/* ─── Dark Mode ─── */
[data-theme="dark"] {
    --fcp-bg: #1A1D23;
    --fcp-card-bg: #242830;
    --fcp-text: #E8EAED;
    --fcp-text-secondary: #9AA0A6;
    --fcp-text-muted: #6B7280;
    --fcp-border: #3D4049;
    --fcp-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --fcp-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
    --fcp-primary-light: rgba(27, 94, 140, 0.2);
    --fcp-success-light: rgba(39, 174, 96, 0.2);
    --fcp-warning-light: rgba(243, 156, 18, 0.2);
    --fcp-danger-light: rgba(231, 76, 60, 0.2);
}

/* ─── Base Reset (isolated from theme) ─── */
.fcp-portal,
.fcp-login-wrapper {
    font-family: var(--fcp-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--fcp-text);
    background: var(--fcp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fcp-portal *,
.fcp-login-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Typography ─── */
.fcp-portal h1 { font-size: 28px; font-weight: 700; color: var(--fcp-text); }
.fcp-portal h2 { font-size: 22px; font-weight: 600; color: var(--fcp-text); }
.fcp-portal h3 { font-size: 18px; font-weight: 600; color: var(--fcp-text); }
.fcp-portal h4 { font-size: 16px; font-weight: 600; color: var(--fcp-text); }

.fcp-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fcp-text-secondary);
}

.fcp-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* ─── Layout ─── */
.fcp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.fcp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fcp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fcp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.fcp-grid-6 { grid-template-columns: repeat(3, 1fr); }

/* ─── Card Component ─── */
.fcp-card {
    background: var(--fcp-card-bg);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    padding: 24px;
    box-shadow: var(--fcp-shadow);
    transition: transform var(--fcp-transition), box-shadow var(--fcp-transition);
}

.fcp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fcp-shadow-hover);
}

.fcp-card-flat {
    background: var(--fcp-card-bg);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    padding: 24px;
}

.fcp-card-flat:hover {
    transform: none;
}

/* ─── Stat Cards ─── */
.fcp-stat-card {
    background: var(--fcp-card-bg);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    padding: 20px;
    box-shadow: var(--fcp-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform var(--fcp-transition), box-shadow var(--fcp-transition);
}

.fcp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fcp-shadow-hover);
}

.fcp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--fcp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fcp-stat-icon svg {
    width: 24px;
    height: 24px;
}

.fcp-stat-icon.blue { background: var(--fcp-primary-light); color: var(--fcp-primary); }
.fcp-stat-icon.green { background: var(--fcp-success-light); color: var(--fcp-success); }
.fcp-stat-icon.orange { background: var(--fcp-warning-light); color: var(--fcp-warning); }
.fcp-stat-icon.red { background: var(--fcp-danger-light); color: var(--fcp-danger); }

.fcp-stat-content { flex: 1; min-width: 0; }

.fcp-stat-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fcp-text-secondary);
    margin-bottom: 4px;
}

.fcp-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--fcp-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.fcp-stat-sub {
    font-size: 12px;
    color: var(--fcp-text-muted);
    margin-top: 4px;
}

.fcp-stat-change {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.fcp-stat-change.positive { color: var(--fcp-success); }
.fcp-stat-change.negative { color: var(--fcp-danger); }

/* ─── Buttons ─── */
.fcp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--fcp-radius-sm);
    font-family: var(--fcp-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--fcp-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.fcp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fcp-btn svg { width: 18px; height: 18px; }

.fcp-btn-primary {
    background: var(--fcp-primary);
    color: #fff;
}
.fcp-btn-primary:hover:not(:disabled) {
    background: var(--fcp-primary-hover);
    transform: translateY(-1px);
}

.fcp-btn-success {
    background: var(--fcp-success);
    color: #fff;
}
.fcp-btn-success:hover:not(:disabled) {
    background: #219a52;
}

.fcp-btn-danger {
    background: var(--fcp-danger);
    color: #fff;
}
.fcp-btn-danger:hover:not(:disabled) {
    background: #c0392b;
}

.fcp-btn-outline {
    background: transparent;
    color: var(--fcp-primary);
    border: 1.5px solid var(--fcp-primary);
}
.fcp-btn-outline:hover:not(:disabled) {
    background: var(--fcp-primary-light);
}

.fcp-btn-ghost {
    background: transparent;
    color: var(--fcp-text-secondary);
}
.fcp-btn-ghost:hover:not(:disabled) {
    background: var(--fcp-primary-light);
    color: var(--fcp-primary);
}

.fcp-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.fcp-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

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

/* Loading spinner in button */
.fcp-btn .fcp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fcp-spin 0.6s linear infinite;
}

@keyframes fcp-spin {
    to { transform: rotate(360deg); }
}

/* ─── Form Elements ─── */
.fcp-form-group {
    margin-bottom: 20px;
}

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

.fcp-input,
.fcp-select,
.fcp-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--fcp-border);
    border-radius: var(--fcp-radius-sm);
    font-family: var(--fcp-font);
    font-size: 14px;
    color: var(--fcp-text);
    background: var(--fcp-card-bg);
    transition: border-color var(--fcp-transition), box-shadow var(--fcp-transition);
    outline: none;
}

.fcp-input:focus,
.fcp-select:focus,
.fcp-textarea:focus {
    border-color: var(--fcp-primary);
    box-shadow: 0 0 0 3px var(--fcp-primary-light);
}

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

.fcp-input-icon {
    position: relative;
}

.fcp-input-icon .fcp-input {
    padding-left: 40px;
}

.fcp-input-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--fcp-text-muted);
}

.fcp-input-icon .fcp-input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fcp-text-muted);
    padding: 4px;
}

.fcp-textarea {
    min-height: 100px;
    resize: vertical;
}

.fcp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.fcp-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--fcp-primary);
}

.fcp-form-error {
    font-size: 12px;
    color: var(--fcp-danger);
    margin-top: 4px;
}

/* ─── Status Badges ─── */
.fcp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--fcp-radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.fcp-badge-active,
.fcp-badge-approved,
.fcp-badge-paid,
.fcp-badge-verified {
    background: var(--fcp-success-light);
    color: var(--fcp-success);
}

.fcp-badge-pending,
.fcp-badge-processing {
    background: var(--fcp-warning-light);
    color: var(--fcp-warning);
}

.fcp-badge-rejected,
.fcp-badge-cancelled {
    background: var(--fcp-danger-light);
    color: var(--fcp-danger);
}

.fcp-badge-matured {
    background: var(--fcp-primary-light);
    color: var(--fcp-primary);
}

/* ─── Top Navigation Bar ─── */
.fcp-topbar {
    background: var(--fcp-card-bg);
    border-bottom: 1px solid var(--fcp-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fcp-topbar-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--fcp-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 32px;
}

.fcp-topbar-logo img {
    height: 32px;
    width: auto;
}

.fcp-topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    list-style: none;
}

.fcp-topbar-nav a,
.fcp-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--fcp-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--fcp-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--fcp-transition);
    white-space: nowrap;
}

.fcp-topbar-nav a:hover,
.fcp-nav-item:hover {
    background: var(--fcp-primary-light);
    color: var(--fcp-primary);
}

.fcp-topbar-nav a.active,
.fcp-nav-item.active {
    background: var(--fcp-primary-light);
    color: var(--fcp-primary);
    font-weight: 600;
}

.fcp-topbar-nav svg {
    width: 18px;
    height: 18px;
}

.fcp-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* ─── Notification Bell ─── */
.fcp-bell-wrapper {
    position: relative;
}

.fcp-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--fcp-radius-sm);
    color: var(--fcp-text-secondary);
    transition: all var(--fcp-transition);
    position: relative;
}

.fcp-bell-btn:hover {
    background: var(--fcp-primary-light);
    color: var(--fcp-primary);
}

.fcp-bell-btn svg {
    width: 22px;
    height: 22px;
}

.fcp-bell-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--fcp-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.fcp-bell-count:empty,
.fcp-bell-count[data-count="0"] {
    display: none;
}

/* Notification Dropdown */
.fcp-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: var(--fcp-card-bg);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    box-shadow: var(--fcp-shadow-hover);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.fcp-notif-dropdown.open {
    display: block;
    animation: fcp-slide-down 0.2s ease;
}

@keyframes fcp-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fcp-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fcp-border);
}

.fcp-notif-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.fcp-notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.fcp-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fcp-border);
    cursor: pointer;
    transition: background var(--fcp-transition);
}

.fcp-notif-item:hover {
    background: var(--fcp-primary-light);
}

.fcp-notif-item.unread {
    background: rgba(27, 94, 140, 0.04);
}

.fcp-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.fcp-notif-dot.investment { background: var(--fcp-primary); }
.fcp-notif-dot.withdrawal { background: var(--fcp-warning); }
.fcp-notif-dot.returns { background: var(--fcp-success); }
.fcp-notif-dot.system { background: var(--fcp-text-muted); }
.fcp-notif-dot.welcome { background: var(--fcp-primary); }

.fcp-notif-content { flex: 1; min-width: 0; }
.fcp-notif-title { font-size: 13px; font-weight: 600; color: var(--fcp-text); }
.fcp-notif-msg { font-size: 12px; color: var(--fcp-text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcp-notif-time { font-size: 11px; color: var(--fcp-text-muted); margin-top: 4px; }

/* ─── Dark Mode Toggle ─── */
.fcp-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--fcp-radius-sm);
    color: var(--fcp-text-secondary);
    transition: all var(--fcp-transition);
}

.fcp-theme-toggle:hover {
    background: var(--fcp-primary-light);
    color: var(--fcp-primary);
}

.fcp-theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* ─── User Avatar ─── */
.fcp-user-menu {
    position: relative;
}

.fcp-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--fcp-radius-sm);
    transition: background var(--fcp-transition);
}

.fcp-user-btn:hover {
    background: var(--fcp-primary-light);
}

.fcp-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fcp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.fcp-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--fcp-text);
}

.fcp-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--fcp-card-bg);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    box-shadow: var(--fcp-shadow-hover);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.fcp-user-dropdown.open {
    display: block;
    animation: fcp-slide-down 0.2s ease;
}

.fcp-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--fcp-text);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--fcp-transition);
}

.fcp-user-dropdown a:hover {
    background: var(--fcp-primary-light);
}

.fcp-user-dropdown a svg {
    width: 18px;
    height: 18px;
    color: var(--fcp-text-secondary);
}

.fcp-user-dropdown hr {
    border: none;
    border-top: 1px solid var(--fcp-border);
    margin: 0;
}

/* ─── Welcome Section ─── */
.fcp-welcome {
    margin-bottom: 24px;
}

.fcp-welcome h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.fcp-welcome p {
    color: var(--fcp-text-secondary);
    font-size: 14px;
}

/* ─── Quick Actions ─── */
.fcp-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.fcp-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--fcp-card-bg);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    cursor: pointer;
    transition: all var(--fcp-transition);
    text-decoration: none;
    color: var(--fcp-text);
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    min-width: 120px;
}

.fcp-quick-action:hover {
    border-color: var(--fcp-primary);
    background: var(--fcp-primary-light);
    transform: translateY(-2px);
}

.fcp-quick-action svg {
    width: 24px;
    height: 24px;
    color: var(--fcp-primary);
}

/* ─── Activity Timeline ─── */
.fcp-timeline {
    padding: 0;
    list-style: none;
}

.fcp-timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fcp-border);
}

.fcp-timeline-item:last-child {
    border-bottom: none;
}

.fcp-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.fcp-timeline-dot.investment { background: var(--fcp-primary); }
.fcp-timeline-dot.withdrawal { background: var(--fcp-warning); }
.fcp-timeline-dot.returns { background: var(--fcp-success); }
.fcp-timeline-dot.fee { background: var(--fcp-danger); }

.fcp-timeline-content { flex: 1; }
.fcp-timeline-desc { font-size: 14px; color: var(--fcp-text); }
.fcp-timeline-amount { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fcp-timeline-amount.positive { color: var(--fcp-success); }
.fcp-timeline-amount.negative { color: var(--fcp-danger); }
.fcp-timeline-date { font-size: 12px; color: var(--fcp-text-muted); margin-top: 2px; }

/* ─── Tables ─── */
.fcp-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fcp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fcp-table th {
    background: var(--fcp-bg);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fcp-text-secondary);
    border-bottom: 2px solid var(--fcp-border);
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.fcp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--fcp-border);
    color: var(--fcp-text);
    vertical-align: middle;
}

.fcp-table tbody tr:hover {
    background: var(--fcp-primary-light);
}

.fcp-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .fcp-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* ─── Modals ─── */
.fcp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--fcp-transition);
}

.fcp-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.fcp-modal {
    background: var(--fcp-card-bg);
    border-radius: var(--fcp-radius);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--fcp-transition);
}

.fcp-modal-overlay.open .fcp-modal {
    transform: translateY(0);
}

.fcp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--fcp-border);
}

.fcp-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.fcp-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--fcp-text-secondary);
    border-radius: 4px;
    transition: all var(--fcp-transition);
}

.fcp-modal-close:hover {
    background: var(--fcp-danger-light);
    color: var(--fcp-danger);
}

.fcp-modal-body {
    padding: 24px;
}

.fcp-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--fcp-border);
}

/* ─── Withdrawal Status Tracker ─── */
.fcp-status-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

.fcp-status-tracker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fcp-border);
    transform: translateY(-50%);
    z-index: 0;
}

.fcp-status-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fcp-status-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fcp-card-bg);
    border: 3px solid var(--fcp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fcp-transition);
}

.fcp-status-step.completed .fcp-status-dot {
    background: var(--fcp-success);
    border-color: var(--fcp-success);
    color: #fff;
}

.fcp-status-step.current .fcp-status-dot {
    background: var(--fcp-primary);
    border-color: var(--fcp-primary);
    color: #fff;
    animation: fcp-pulse 2s ease infinite;
}

.fcp-status-step.rejected .fcp-status-dot {
    background: var(--fcp-danger);
    border-color: var(--fcp-danger);
    color: #fff;
}

@keyframes fcp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(27, 94, 140, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(27, 94, 140, 0); }
}

.fcp-status-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--fcp-text-secondary);
    text-align: center;
}

.fcp-status-step.completed .fcp-status-label,
.fcp-status-step.current .fcp-status-label {
    color: var(--fcp-text);
    font-weight: 600;
}

/* ─── Withdrawal Multi-Step Form ─── */
.fcp-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.fcp-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--fcp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--fcp-text-muted);
    transition: all var(--fcp-transition);
}

.fcp-step-dot.active {
    border-color: var(--fcp-primary);
    background: var(--fcp-primary);
    color: #fff;
}

.fcp-step-dot.done {
    border-color: var(--fcp-success);
    background: var(--fcp-success);
    color: #fff;
}

.fcp-step-line {
    width: 40px;
    height: 2px;
    background: var(--fcp-border);
    transition: background var(--fcp-transition);
}

.fcp-step-line.done {
    background: var(--fcp-success);
}

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

.fcp-step-panel.active {
    display: block;
    animation: fcp-fade-in 0.3s ease;
}

@keyframes fcp-fade-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ─── Charts ─── */
.fcp-chart-wrapper {
    position: relative;
    padding: 16px 0;
}

.fcp-chart-controls {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.fcp-chart-controls button {
    padding: 6px 14px;
    border: 1px solid var(--fcp-border);
    background: var(--fcp-card-bg);
    color: var(--fcp-text-secondary);
    border-radius: var(--fcp-radius-pill);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--fcp-transition);
}

.fcp-chart-controls button:hover,
.fcp-chart-controls button.active {
    background: var(--fcp-primary);
    border-color: var(--fcp-primary);
    color: #fff;
}

/* ─── Investment Cards ─── */
.fcp-investment-card {
    background: var(--fcp-card-bg);
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--fcp-transition);
}

.fcp-investment-card:hover {
    border-color: var(--fcp-primary);
    box-shadow: var(--fcp-shadow-hover);
    transform: translateY(-2px);
}

.fcp-investment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fcp-investment-card-plan {
    font-size: 16px;
    font-weight: 600;
}

.fcp-investment-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fcp-investment-card-stat .fcp-label {
    font-size: 11px;
    margin-bottom: 2px;
}

.fcp-investment-card-stat .fcp-amount {
    font-size: 15px;
}

/* ─── Profile Sections ─── */
.fcp-profile-section {
    margin-bottom: 24px;
}

.fcp-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fcp-border);
    margin-bottom: 16px;
}

.fcp-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fcp-span-2 {
    grid-column: span 2;
}

@media (max-width: 767px) {
    .fcp-span-2 {
        grid-column: span 1;
    }
}

/* ─── KYC Progress ─── */
.fcp-kyc-bar {
    width: 100%;
    height: 8px;
    background: var(--fcp-border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.fcp-kyc-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fcp-kyc-progress.pending { width: 25%; background: var(--fcp-warning); }
.fcp-kyc-progress.submitted { width: 50%; background: var(--fcp-warning); }
.fcp-kyc-progress.verified { width: 100%; background: var(--fcp-success); }
.fcp-kyc-progress.rejected { width: 100%; background: var(--fcp-danger); }

/* ─── Password Strength ─── */
.fcp-pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.fcp-pw-bar {
    flex: 1;
    height: 4px;
    background: var(--fcp-border);
    border-radius: 2px;
    transition: background var(--fcp-transition);
}

.fcp-pw-strength[data-strength="1"] .fcp-pw-bar:nth-child(1) { background: var(--fcp-danger); }
.fcp-pw-strength[data-strength="2"] .fcp-pw-bar:nth-child(-n+2) { background: var(--fcp-warning); }
.fcp-pw-strength[data-strength="3"] .fcp-pw-bar:nth-child(-n+3) { background: var(--fcp-success); }
.fcp-pw-strength[data-strength="4"] .fcp-pw-bar { background: var(--fcp-success); }

/* ─── Toast Notifications ─── */
.fcp-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fcp-toast {
    padding: 14px 20px;
    border-radius: var(--fcp-radius-sm);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--fcp-shadow-hover);
    animation: fcp-toast-in 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
}

.fcp-toast.success { background: var(--fcp-success); color: #fff; }
.fcp-toast.error { background: var(--fcp-danger); color: #fff; }
.fcp-toast.warning { background: var(--fcp-warning); color: #fff; }
.fcp-toast.info { background: var(--fcp-primary); color: #fff; }

@keyframes fcp-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fcp-toast.removing {
    animation: fcp-toast-out 0.3s ease forwards;
}

@keyframes fcp-toast-out {
    to { opacity: 0; transform: translateX(20px); }
}

/* ─── Empty States ─── */
.fcp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--fcp-text-secondary);
}

.fcp-empty svg {
    width: 64px;
    height: 64px;
    color: var(--fcp-border);
    margin-bottom: 16px;
}

.fcp-empty h3 {
    font-size: 18px;
    color: var(--fcp-text);
    margin-bottom: 8px;
}

.fcp-empty p {
    font-size: 14px;
    max-width: 320px;
    margin: 0 auto;
}

/* ─── Skeleton Loading ─── */
.fcp-skeleton {
    background: linear-gradient(90deg, var(--fcp-border) 25%, transparent 50%, var(--fcp-border) 75%);
    background-size: 200% 100%;
    animation: fcp-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

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

.fcp-skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.fcp-skeleton-title {
    height: 28px;
    width: 200px;
    margin-bottom: 12px;
}

.fcp-skeleton-card {
    height: 120px;
}

/* ─── Filters Bar ─── */
.fcp-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fcp-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fcp-filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--fcp-text-secondary);
    white-space: nowrap;
}

.fcp-filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--fcp-border);
    border-radius: var(--fcp-radius-sm);
    font-size: 13px;
    background: var(--fcp-card-bg);
    color: var(--fcp-text);
}

.fcp-view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.fcp-view-toggle button {
    padding: 8px;
    border: 1px solid var(--fcp-border);
    background: var(--fcp-card-bg);
    color: var(--fcp-text-secondary);
    cursor: pointer;
    transition: all var(--fcp-transition);
}

.fcp-view-toggle button:first-child {
    border-radius: var(--fcp-radius-sm) 0 0 var(--fcp-radius-sm);
}

.fcp-view-toggle button:last-child {
    border-radius: 0 var(--fcp-radius-sm) var(--fcp-radius-sm) 0;
}

.fcp-view-toggle button.active {
    background: var(--fcp-primary);
    border-color: var(--fcp-primary);
    color: #fff;
}

/* ─── Login Page ─── */
/* ─── Login Page ─── */
.fcp-login-page {
    min-height: 100vh;
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.fcp-login-page * { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Left: Dark Branding Panel ─── */
.fcp-login-left {
    flex: 1;
    background: #0c1a2a;
    display: flex;
    flex-direction: column;
    padding: 40px 50px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.fcp-login-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27,94,140,0.15) 0%, transparent 70%);
}

.fcp-login-left-top {
    position: relative;
    z-index: 1;
}

.fcp-login-left-top span {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.2px;
}

.fcp-login-left-center {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fcp-login-left-center h1 {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 40px;
}

/* Dashboard Mockup */
.fcp-login-mockup {
    perspective: 800px;
}

.fcp-login-mockup-inner {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 20px;
    transform: rotateY(-8deg) rotateX(4deg);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
}

.fcp-login-mockup-inner:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.fcp-mock-row { display: flex; align-items: center; gap: 10px; }
.fcp-mock-header { margin-bottom: 18px; }

.fcp-mock-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.fcp-mock-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
}

.fcp-mock-line.sm { height: 6px; }
.fcp-mock-line.green { background: rgba(39,174,96,0.5); }

.fcp-mock-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.fcp-mock-stat-card {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
}

.fcp-mock-stat-card.accent {
    background: rgba(39,174,96,0.12);
    border-color: rgba(39,174,96,0.2);
}

.fcp-mock-value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-top: 8px;
    letter-spacing: -0.3px;
}

.fcp-mock-stat-card.accent .fcp-mock-value {
    color: #27AE60;
}

.fcp-mock-chart {
    height: 70px;
    margin-bottom: 16px;
}

.fcp-mock-chart svg {
    width: 100%;
    height: 100%;
}

.fcp-mock-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fcp-mock-table-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ─── Left: Logo ─── */
.fcp-login-left-logo {
    text-align: center;
    margin-bottom: 30px;
}
.fcp-login-left-logo img {
    max-width: 320px;
    max-height: 120px;
    filter: drop-shadow(0 4px 20px rgba(39, 174, 96, 0.35));
    transition: all 0.4s ease;
    animation: fcp-logo-float 4s ease-in-out infinite;
}
.fcp-login-left-logo img:hover {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 8px 30px rgba(39, 174, 96, 0.6));
}
@keyframes fcp-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ─── Right: Clean Form Panel ─── */
.fcp-login-right {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 40px 60px;
    min-width: 480px;
    max-width: 600px;
    min-height: 100vh;
    border-radius: 40px 0 0 40px;
    margin-left: -30px;
    position: relative;
    z-index: 5;
    box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}

.fcp-login-right-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fcp-login-logo {
    max-height: 40px;
}

.fcp-login-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}

.fcp-login-form-box {
    margin: auto 0;
    max-width: 380px;
    width: 100%;
}

.fcp-login-form-box h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    margin-bottom: 36px;
}

/* Input Groups */
.fcp-lf-group {
    margin-bottom: 18px;
}

.fcp-lf-group input[type="text"],
.fcp-lf-group input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: all 0.25s ease;
}

.fcp-lf-group input::placeholder {
    color: #b0b7c3;
    font-weight: 400;
}

.fcp-lf-group input:hover {
    border-color: #c5cad3;
}

.fcp-lf-group input:focus {
    border-color: #1B5E8C;
    box-shadow: 0 0 0 4px rgba(27,94,140,0.08);
}

/* Password field */
.fcp-lf-pw {
    position: relative;
}

.fcp-lf-pw input {
    padding-right: 52px;
}

.fcp-lf-eye {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b0b7c3;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s;
}

.fcp-lf-eye:hover { color: #6b7280; }

/* Options row */
.fcp-lf-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 28px;
}

.fcp-lf-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.fcp-lf-check input { display: none; }

.fcp-lf-checkmark {
    width: 17px;
    height: 17px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.fcp-lf-check input:checked + .fcp-lf-checkmark {
    background: #1B5E8C;
    border-color: #1B5E8C;
}

.fcp-lf-check input:checked + .fcp-lf-checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.fcp-lf-forgot {
    font-size: 13px;
    color: #1B5E8C;
    text-decoration: none;
    font-weight: 600;
}

.fcp-lf-forgot:hover {
    text-decoration: underline;
}

/* Submit Button - Gradient like Payoneer */
.fcp-lf-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #1B5E8C 0%, #2980B9 50%, #1B5E8C 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(27,94,140,0.3);
    position: relative;
    overflow: hidden;
}

.fcp-lf-submit:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27,94,140,0.35);
}

.fcp-lf-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(27,94,140,0.3);
}

.fcp-lf-submit svg {
    transition: transform 0.3s;
}

.fcp-lf-submit:hover svg {
    transform: translateX(3px);
}

/* Alert */
.fcp-login-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.fcp-login-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.fcp-login-alert.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Login/Register alert variants */
.fcp-login-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.fcp-login-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Signup/Signin Link */
.fcp-login-signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--fcp-text-secondary, #7F8C8D);
}

.fcp-login-signup-link a {
    color: #1B5E8C;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.fcp-login-signup-link a:hover {
    text-decoration: underline;
}

/* Registration form row (first + last name side by side) */
.fcp-lf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .fcp-lf-row {
        grid-template-columns: 1fr;
    }
}

/* Referral hint */
.fcp-lf-hint {
    font-size: 11px;
    margin-top: 4px;
    color: var(--fcp-text-muted, #95A5A6);
}

.fcp-lf-hint-success {
    color: #16a34a;
}

/* Spinner for loading states */
.fcp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: fcp-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes fcp-spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.fcp-login-right-footer {
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: #b0b7c3;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    .fcp-login-page { flex-direction: column; }
    .fcp-login-left {
        min-height: auto;
        padding: 32px 28px;
    }
    .fcp-login-left-center h1 { font-size: 36px; }
    .fcp-login-mockup-inner { transform: none; max-width: 100%; }
    .fcp-login-right {
        max-width: 100%;
        min-width: unset;
        flex: none;
        padding: 32px 28px;
        min-height: auto;
        border-radius: 30px 30px 0 0;
        margin-left: 0;
        margin-top: -20px;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.1);
    }
    .fcp-login-left-logo img { max-width: 280px; max-height: 100px; }
}

@media (max-width: 600px) {
    .fcp-login-left { padding: 24px 20px; }
    .fcp-login-left-center h1 { font-size: 28px; margin-bottom: 24px; }
    .fcp-login-mockup { display: none; }
    .fcp-login-right { padding: 28px 20px; border-radius: 24px 24px 0 0; }
    .fcp-login-form-box h2 { font-size: 26px; margin-bottom: 28px; }
    .fcp-lf-group input[type="text"],
    .fcp-lf-group input[type="password"] { padding: 14px 18px; font-size: 14px; }
    .fcp-lf-submit { padding: 14px 20px; font-size: 15px; }
    .fcp-login-left-logo img { max-width: 220px; max-height: 80px; }
}

/* ─── Section Headers ─── */
.fcp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fcp-section-header h3 {
    font-size: 18px;
}

/* ─── Pagination ─── */
.fcp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.fcp-pagination button {
    padding: 8px 14px;
    border: 1px solid var(--fcp-border);
    background: var(--fcp-card-bg);
    color: var(--fcp-text);
    border-radius: var(--fcp-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--fcp-transition);
}

.fcp-pagination button:hover {
    border-color: var(--fcp-primary);
    color: var(--fcp-primary);
}

.fcp-pagination button.active {
    background: var(--fcp-primary);
    border-color: var(--fcp-primary);
    color: #fff;
}

.fcp-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Tab Content Panels ─── */
.fcp-tab-content {
    display: none;
    padding: 24px 0;
}

.fcp-tab-content.active {
    display: block;
    animation: fcp-fade-in 0.3s ease;
}

.fcp-portal-body {
    padding: 24px;
    min-height: calc(100vh - 64px);
}

/* ─── Statements ─── */
.fcp-date-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.fcp-date-row input[type="date"] {
    padding: 10px 14px;
    border: 1.5px solid var(--fcp-border);
    border-radius: var(--fcp-radius-sm);
    font-family: var(--fcp-font);
    font-size: 14px;
    color: var(--fcp-text);
    background: var(--fcp-card-bg);
}

.fcp-date-row input[type="date"]:focus {
    border-color: var(--fcp-primary);
    outline: none;
}

.fcp-date-download {
    display: flex;
    justify-content: center;
}

/* Keep old class for backwards compat */
.fcp-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fcp-date-range input[type="date"] {
    padding: 10px 14px;
    border: 1.5px solid var(--fcp-border);
    border-radius: var(--fcp-radius-sm);
    font-family: var(--fcp-font);
    font-size: 14px;
    color: var(--fcp-text);
    background: var(--fcp-card-bg);
}

.fcp-date-range input[type="date"]:focus {
    border-color: var(--fcp-primary);
    outline: none;
}

.fcp-quick-dates {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ─── Mobile Bottom Navigation ─── */
.fcp-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--fcp-card-bg);
    border-top: 1px solid var(--fcp-border);
    z-index: 100;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.fcp-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.fcp-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--fcp-text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--fcp-transition);
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.fcp-bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.fcp-bottom-nav-item.active {
    color: var(--fcp-primary);
}

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .fcp-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .fcp-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .fcp-grid-6 { grid-template-columns: repeat(2, 1fr); }

    .fcp-topbar-nav {
        gap: 2px;
    }

    .fcp-topbar-nav a,
    .fcp-nav-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .fcp-user-name {
        display: none;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .fcp-grid-4,
    .fcp-grid-3,
    .fcp-grid-2 {
        grid-template-columns: 1fr;
    }

    /* --- Topbar mobile --- */
    .fcp-topbar {
        padding: 0 12px;
        height: 56px;
    }

    .fcp-topbar-logo {
        font-size: 16px;
        margin-right: 8px;
    }

    .fcp-topbar-logo img {
        height: 28px;
    }

    .fcp-topbar-nav {
        display: none;
    }

    .fcp-topbar-right {
        gap: 4px;
    }

    .fcp-bell-btn,
    .fcp-theme-toggle {
        padding: 6px;
    }

    .fcp-user-name {
        display: none;
    }

    /* --- Bottom navigation --- */
    .fcp-bottom-nav {
        display: block;
    }

    /* --- Portal body & container --- */
    .fcp-portal-body {
        padding: 12px 0;
        padding-bottom: 90px; /* space for bottom nav */
    }

    .fcp-container {
        padding: 0 12px;
    }

    /* --- Welcome --- */
    .fcp-welcome h1 {
        font-size: 20px;
    }

    .fcp-welcome p {
        font-size: 13px;
    }

    /* --- Stat cards on mobile: 2-column grid --- */
    .fcp-grid-4,
    .fcp-grid-6 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .fcp-stat-card {
        padding: 14px;
        gap: 10px;
    }

    .fcp-stat-icon {
        width: 36px;
        height: 36px;
    }

    .fcp-stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .fcp-stat-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .fcp-stat-value {
        font-size: 16px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .fcp-stat-change {
        font-size: 11px;
    }

    /* --- Quick actions: hide on mobile (redundant with bottom nav) --- */
    .fcp-quick-actions {
        display: none;
    }

    /* --- Cards / flat cards --- */
    .fcp-card,
    .fcp-card-flat {
        padding: 16px;
        border-radius: 10px;
    }

    /* --- Section headers: stack on mobile --- */
    .fcp-section-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .fcp-section-header h3 {
        font-size: 16px;
    }

    .fcp-section-header .fcp-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    /* --- Charts --- */
    .fcp-chart-wrapper {
        height: 200px !important;
    }

    .fcp-chart-controls {
        flex-wrap: wrap;
    }

    .fcp-chart-controls button {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* --- Investment cards --- */
    .fcp-investment-card {
        padding: 14px;
    }

    .fcp-investment-card-plan {
        font-size: 14px;
    }

    .fcp-investment-card-body {
        gap: 8px;
    }

    .fcp-investment-card-stat .fcp-label {
        font-size: 10px;
    }

    .fcp-investment-card-stat .fcp-amount {
        font-size: 13px;
        word-break: break-word;
    }

    /* --- Tables: mobile scroll with hint --- */
    .fcp-table-wrapper {
        margin: 0 -12px;
        padding: 0 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fcp-table th,
    .fcp-table td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .fcp-table th {
        font-size: 10px;
    }

    /* --- Profile grid: force single column --- */
    .fcp-profile-grid {
        grid-template-columns: 1fr !important;
    }

    .fcp-profile-grid [style*="grid-column: span 2"],
    .fcp-profile-grid [style*="grid-column:span 2"] {
        grid-column: span 1 !important;
    }

    .fcp-profile-section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Profile inputs: match KYC display box size */
    .fcp-profile-section .fcp-input,
    .fcp-profile-section .fcp-textarea,
    .fcp-profile-section input[type="password"],
    .fcp-profile-section input[type="text"],
    .fcp-profile-section input[type="email"],
    .fcp-profile-section input[type="tel"],
    .fcp-profile-section input[type="date"] {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 8px;
        background: var(--fcp-bg);
        border: 1.5px solid var(--fcp-border);
    }

    .fcp-profile-section .fcp-form-label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .fcp-profile-section .fcp-form-group {
        margin-bottom: 16px;
    }

    /* --- Filters --- */
    .fcp-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .fcp-filter-group {
        width: 100%;
    }

    .fcp-filter-group select {
        flex: 1;
        width: 100%;
    }

    .fcp-view-toggle {
        margin-left: 0;
        align-self: flex-end;
    }

    /* --- Date range --- */
    .fcp-date-range {
        flex-direction: column;
        gap: 10px;
    }

    .fcp-date-range input[type="date"] {
        width: 100%;
    }

    .fcp-quick-dates {
        gap: 4px;
    }

    .fcp-quick-dates .fcp-btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* --- Withdrawal status tracker --- */
    .fcp-status-tracker {
        padding: 16px 0;
    }

    .fcp-status-dot {
        width: 26px;
        height: 26px;
    }

    .fcp-status-label {
        font-size: 10px;
        max-width: 60px;
        word-wrap: break-word;
    }

    /* --- Modals: bottom sheet style --- */
    .fcp-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .fcp-modal {
        max-width: 100%;
        border-radius: var(--fcp-radius) var(--fcp-radius) 0 0;
        max-height: 90vh;
        transform: translateY(100%);
    }

    .fcp-modal-overlay.open .fcp-modal {
        transform: translateY(0);
    }

    .fcp-modal-header {
        padding: 16px;
    }

    .fcp-modal-body {
        padding: 16px;
    }

    .fcp-modal-footer {
        padding: 12px 16px;
    }

    /* --- Toast --- */
    .fcp-toast-container {
        top: auto;
        bottom: 80px;
        right: 12px;
        left: 12px;
    }

    .fcp-toast {
        max-width: 100%;
        font-size: 13px;
        padding: 12px 16px;
    }

    /* --- Notification dropdown --- */
    .fcp-notif-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: var(--fcp-radius) var(--fcp-radius) 0 0;
        max-height: 70vh;
    }

    /* --- Pagination --- */
    .fcp-pagination {
        flex-wrap: wrap;
        gap: 3px;
    }

    .fcp-pagination button {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* --- Tab content --- */
    .fcp-tab-content {
        padding: 16px 0;
    }

    /* --- Login responsive (old wrapper) --- */
    .fcp-login-wrapper {
        flex-direction: column;
    }

    .fcp-login-brand {
        padding: 32px 20px;
        min-height: auto;
    }

    .fcp-login-brand h1 {
        font-size: 24px;
    }

    .fcp-login-brand p {
        font-size: 14px;
    }

    .fcp-login-form-wrapper {
        padding: 24px 20px;
    }

    /* --- Empty states --- */
    .fcp-empty {
        padding: 40px 16px;
    }

    .fcp-empty svg {
        width: 48px;
        height: 48px;
    }

    .fcp-empty h3 {
        font-size: 16px;
    }

    /* --- Timeline --- */
    .fcp-timeline-item {
        padding: 10px 0;
    }

    .fcp-timeline-desc {
        font-size: 13px;
    }

    .fcp-timeline-amount {
        font-size: 13px;
    }

    /* --- Buttons --- */
    .fcp-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .fcp-btn-sm {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* --- Badges --- */
    .fcp-badge {
        padding: 3px 8px;
        font-size: 11px;
    }

    /* --- Typography --- */
    .fcp-portal h1 { font-size: 22px; }
    .fcp-portal h2 { font-size: 18px; }
    .fcp-portal h3 { font-size: 16px; }
    .fcp-portal h4 { font-size: 14px; }
}

/* Small mobile (below 480px) */
@media (max-width: 480px) {
    /* Stat cards: still 2x2 but tighter */
    .fcp-stat-card {
        padding: 12px;
        gap: 8px;
    }

    .fcp-stat-icon {
        width: 32px;
        height: 32px;
    }

    .fcp-stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .fcp-stat-value {
        font-size: 14px;
    }

    .fcp-stat-label {
        font-size: 9px;
    }

    /* Investment summary: stack to 1 column */
    .fcp-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .fcp-summary-val {
        font-size: 15px !important;
    }

    /* Quick actions: smaller */
    .fcp-quick-action {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 11px;
    }

    .fcp-quick-action svg {
        width: 18px;
        height: 18px;
    }

    /* Buttons */
    .fcp-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    /* Table font */
    .fcp-table th,
    .fcp-table td {
        padding: 8px 6px;
        font-size: 11px;
    }

    /* Footer table summary row */
    .fcp-table tfoot td {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }

    /* Topbar */
    .fcp-topbar {
        padding: 0 8px;
    }

    .fcp-container {
        padding: 0 8px;
    }

    /* Bottom nav */
    .fcp-bottom-nav-item {
        padding: 4px 6px;
        font-size: 10px;
        min-width: 40px;
    }

    .fcp-bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }
}

/* ─── Divi / Theme Container Overrides ─── */
/* Break the portal out of any theme container so it fills the full viewport */
.fcp-portal {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Override Divi's container constraints when portal is present */
.et_pb_section .et_pb_row .et_pb_column .et_pb_module .et_pb_text_inner .fcp-portal,
.et_pb_text_inner .fcp-portal,
.entry-content .fcp-portal {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Remove padding/max-width from Divi wrappers that contain the portal */
body:has(.fcp-portal) .et_pb_section {
    padding: 0 !important;
    max-width: 100% !important;
}

body:has(.fcp-portal) .et_pb_row {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

body:has(.fcp-portal) .et_pb_column {
    padding: 0 !important;
}

body:has(.fcp-portal) .et_pb_text_inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* Also override WordPress default content containers */
body:has(.fcp-portal) .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.fcp-portal) article {
    padding: 0 !important;
}

/* Override Divi theme layout containers */
body:has(.fcp-portal) .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

body:has(.fcp-portal) #content-area {
    width: 100% !important;
    padding: 0 !important;
}

body:has(.fcp-portal) #left-area {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Same for login page */
body:has(.fcp-login-wrapper) .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

body:has(.fcp-login-wrapper) #content-area {
    width: 100% !important;
    padding: 0 !important;
}

body:has(.fcp-login-wrapper) #left-area {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Hide the page title "dashboard" heading from Divi */
body:has(.fcp-portal) .et_pb_post_title,
body:has(.fcp-portal) .entry-title {
    display: none !important;
}

/* Also hide the default page title for clean portal look */
body.page:has(.fcp-portal) .page-title,
body.page:has(.fcp-portal) h1.entry-title {
    display: none !important;
}

/* Prevent horizontal scrollbar from 100vw on pages with scrollbar */
.fcp-portal {
    overflow-x: hidden;
}

body:has(.fcp-portal) {
    overflow-x: hidden;
}

/* Login page also needs full width */
.fcp-login-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

body:has(.fcp-login-wrapper) .et_pb_section {
    padding: 0 !important;
    max-width: 100% !important;
}

body:has(.fcp-login-wrapper) .et_pb_row {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

body:has(.fcp-login-wrapper) .et_pb_column {
    padding: 0 !important;
}

body:has(.fcp-login-wrapper) .et_pb_text_inner {
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.fcp-login-wrapper) .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.fcp-login-wrapper) article {
    padding: 0 !important;
}

body:has(.fcp-login-wrapper) .et_pb_post_title,
body:has(.fcp-login-wrapper) .entry-title {
    display: none !important;
}

body:has(.fcp-login-wrapper) {
    overflow-x: hidden;
}

/* ─── Benchmark Comparison ─── */
.fcp-benchmark-card { padding: 20px; }
.fcp-benchmark-header { margin-bottom: 16px; }
.fcp-benchmark-header h4 { font-size: 16px; font-weight: 600; }
.fcp-benchmark-bars { display: flex; flex-direction: column; gap: 12px; }
.fcp-benchmark-row { display: flex; align-items: center; gap: 12px; }
.fcp-benchmark-label { width: 100px; font-size: 13px; font-weight: 500; color: var(--fcp-text-secondary); flex-shrink: 0; }
.fcp-benchmark-bar-wrap { flex: 1; height: 28px; background: var(--fcp-bg); border-radius: 14px; overflow: hidden; }
.fcp-benchmark-bar { height: 100%; border-radius: 14px; transition: width 1s ease; min-width: 4px; }
.fcp-benchmark-bar.your-returns { background: linear-gradient(90deg, #27AE60, #2ECC71); }
.fcp-benchmark-bar.benchmark { background: linear-gradient(90deg, #95A5A6, #BDC3C7); }
.fcp-benchmark-value { width: 110px; text-align: right; font-size: 13px; flex-shrink: 0; }
.fcp-benchmark-value strong { font-size: 15px; color: var(--fcp-text); }
.fcp-benchmark-value small { color: var(--fcp-text-secondary); }

@media (max-width: 767px) {
    .fcp-benchmark-label { width: 70px; font-size: 11px; }
    .fcp-benchmark-value { width: 80px; font-size: 11px; }
    .fcp-benchmark-value strong { font-size: 13px; }
    .fcp-benchmark-bar-wrap { height: 22px; }
}

/* ─── What-If Calculator ─── */
.fcp-calc-toggle { display: flex; gap: 4px; margin-bottom: 20px; background: var(--fcp-bg); border-radius: var(--fcp-radius-pill); padding: 4px; width: fit-content; }
.fcp-calc-mode { padding: 8px 20px; border: none; background: transparent; border-radius: var(--fcp-radius-pill); font-family: var(--fcp-font); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--fcp-text-secondary); transition: all var(--fcp-transition); }
.fcp-calc-mode.active { background: var(--fcp-primary); color: #fff; }
.fcp-calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fcp-calc-inputs { display: flex; flex-direction: column; gap: 16px; }
.fcp-calc-group label { margin-bottom: 4px; }
.fcp-calc-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #d1d5db;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.fcp-calc-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--fcp-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(27, 94, 140, 0.3);
}
.fcp-calc-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--fcp-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(27, 94, 140, 0.3);
}
.fcp-calc-group input[type="range"]::-moz-range-track {
    height: 6px;
    background: #d1d5db;
    border-radius: 3px;
}
.fcp-calc-result { background: var(--fcp-bg); border-radius: var(--fcp-radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.fcp-calc-result-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--fcp-border); }
.fcp-calc-result-item:last-child { border-bottom: none; }
.fcp-calc-result-item.highlight { background: var(--fcp-success-light); padding: 12px; border-radius: 8px; border-bottom: none; }
.fcp-calc-result-label { font-size: 13px; color: var(--fcp-text-secondary); font-weight: 500; }
.fcp-calc-result-value { font-size: 16px; font-weight: 700; color: var(--fcp-text); }

@media (max-width: 767px) {
    .fcp-calc-body { grid-template-columns: 1fr; }
}

/* ─── Goals ─── */
.fcp-goals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fcp-goal-card { background: var(--fcp-bg); border-radius: var(--fcp-radius); padding: 16px; }
.fcp-goal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fcp-goal-icon { font-size: 28px; }
.fcp-goal-info { flex: 1; }
.fcp-goal-name { font-size: 14px; font-weight: 600; color: var(--fcp-text); }
.fcp-goal-dates { font-size: 11px; color: var(--fcp-text-muted); margin-top: 2px; }
.fcp-goal-progress-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fcp-goal-progress-bar { flex: 1; height: 8px; background: var(--fcp-border); border-radius: 4px; overflow: hidden; }
.fcp-goal-progress-fill { height: 100%; background: linear-gradient(90deg, var(--fcp-primary), var(--fcp-success)); border-radius: 4px; transition: width 0.5s ease; }
.fcp-goal-pct { font-size: 12px; font-weight: 600; color: var(--fcp-primary); min-width: 40px; text-align: right; }
.fcp-goal-amounts { display: flex; justify-content: space-between; font-size: 12px; color: var(--fcp-text-secondary); }

/* Icon Picker */
.fcp-icon-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.fcp-icon-option { font-size: 24px; cursor: pointer; padding: 8px; border-radius: 8px; border: 2px solid transparent; transition: all 0.2s; }
.fcp-icon-option:hover { background: var(--fcp-bg); }
.fcp-icon-option.active { border-color: var(--fcp-primary); background: var(--fcp-primary-light); }

@media (max-width: 767px) {
    .fcp-goals-grid { grid-template-columns: 1fr; }
}

/* ─── Updates Feed ─── */
.fcp-update-card { overflow: hidden; }
.fcp-update-card:hover { transform: none; }
.fcp-update-image { margin: -24px -24px 0; }

/* ─── Print Styles ─── */
@media print {
    .fcp-topbar,
    .fcp-bottom-nav,
    .fcp-quick-actions,
    .fcp-chart-controls,
    .fcp-filters,
    .fcp-btn {
        display: none !important;
    }

    .fcp-portal {
        background: #fff;
    }

    .fcp-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* KYC Stepper                                            */
/* ═══════════════════════════════════════════════════════ */
.fcp-kyc-stepper { display: flex; align-items: center; justify-content: center; padding: 24px 0; gap: 0; }
.fcp-kyc-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.fcp-kyc-step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--fcp-border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; transition: all 0.3s; }
.fcp-kyc-step span { font-size: 10px; color: var(--fcp-text-muted); white-space: nowrap; }
.fcp-kyc-step-line { flex: 1; height: 3px; background: var(--fcp-border); min-width: 20px; transition: background 0.3s; }
.fcp-kyc-step.active .fcp-kyc-step-dot { background: var(--fcp-primary); transform: scale(1.1); }
.fcp-kyc-step.active span { color: var(--fcp-primary); font-weight: 600; }
.fcp-kyc-step.completed .fcp-kyc-step-dot,
.fcp-kyc-step.active .fcp-kyc-step-dot { position: relative; }
.fcp-kyc-step.completed .fcp-kyc-step-dot::after,
.fcp-kyc-step.active .fcp-kyc-step-dot::after { content: '✓'; font-size: 16px; font-weight: 700; color: #fff; line-height: 1; }
.fcp-kyc-step.completed .fcp-kyc-step-dot { background: var(--fcp-success); }
.fcp-kyc-step.completed span { color: var(--fcp-success); }
.fcp-kyc-step-line.completed { background: var(--fcp-success); }
.fcp-kyc-step.rejected .fcp-kyc-step-dot { background: var(--fcp-danger); }
.fcp-kyc-step.rejected .fcp-kyc-step-dot::after { content: '✕'; }
.fcp-kyc-step.rejected span { color: var(--fcp-danger); }
.fcp-kyc-step.verified .fcp-kyc-step-dot { background: var(--fcp-success); animation: kycPulse 1s ease-in-out; }
.fcp-kyc-step.verified .fcp-kyc-step-dot::after { content: '✓'; }
@keyframes kycPulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* KYC Upload Grid */
.fcp-kyc-upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.fcp-kyc-slot { border: 2px dashed var(--fcp-border); border-radius: var(--fcp-radius); padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.fcp-kyc-slot:hover { border-color: var(--fcp-primary); background: var(--fcp-primary-light, rgba(27,94,140,0.05)); }
.fcp-kyc-slot.uploaded { border-style: solid; border-color: var(--fcp-primary); cursor: default; }
.fcp-kyc-slot.approved { border-style: solid; border-color: var(--fcp-success); background: rgba(39,174,96,0.05); }
.fcp-kyc-slot.rejected { border-style: solid; border-color: var(--fcp-danger); background: rgba(231,76,60,0.05); }
.fcp-kyc-slot-icon { font-size: 28px; color: var(--fcp-text-muted); }
.fcp-kyc-slot-label { font-size: 13px; font-weight: 600; color: var(--fcp-text); }
.fcp-kyc-slot-sublabel { font-size: 11px; color: var(--fcp-text-muted); }
.fcp-kyc-slot-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.fcp-kyc-slot-reason { font-size: 11px; color: var(--fcp-danger); margin-top: 4px; }

/* KYC Rejection Banner */
.fcp-kyc-rejection { background: #FEE2E2; border: 1px solid #FECACA; border-radius: var(--fcp-radius); padding: 16px; margin: 16px 0; color: #991B1B; }
.fcp-kyc-rejection strong { display: block; margin-bottom: 4px; }

@media (max-width: 767px) {
    .fcp-kyc-upload-grid { grid-template-columns: 1fr; }
    .fcp-kyc-stepper { flex-wrap: wrap; gap: 4px; }
    .fcp-kyc-step span { font-size: 8px; }
    .fcp-kyc-step-dot { width: 24px; height: 24px; font-size: 11px; }
}

/* ─── Refer & Earn Tab ─── */
.fcp-referral-hero {
    background: linear-gradient(135deg, #1B5E8C 0%, #2980B9 50%, #1B5E8C 100%);
    border-radius: var(--fcp-radius);
    padding: 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}

.fcp-referral-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.fcp-referral-hero-icon svg { stroke: #fff; }

.fcp-referral-hero h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.fcp-referral-hero p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

.fcp-referral-link-card {
    margin-bottom: 24px;
    padding: 20px;
}

.fcp-referral-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.fcp-referral-link-box .fcp-input {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
}

.fcp-referral-id-display {
    font-size: 13px;
    color: var(--fcp-text-secondary);
}

.fcp-referral-id-display strong {
    color: var(--fcp-primary);
    font-family: monospace;
    letter-spacing: 1px;
}

.fcp-btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--fcp-radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: var(--fcp-transition);
}

.fcp-btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-1px);
}

.fcp-btn-success-temp {
    background: var(--fcp-success) !important;
}

.fcp-referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

.fcp-referral-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fcp-text-muted);
    border-bottom: 1px solid var(--fcp-border);
}

.fcp-referral-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--fcp-border);
    color: var(--fcp-text);
}

.fcp-referral-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 767px) {
    .fcp-referral-stats { grid-template-columns: 1fr; }
    .fcp-referral-link-box { flex-direction: column; }
    .fcp-referral-hero { padding: 24px 16px; }
    .fcp-referral-table { font-size: 13px; }
    .fcp-referral-table th,
    .fcp-referral-table td { padding: 10px 12px; }
}
