/* ==============================================
   Forex Subscription – Front-end CSS v5
   ============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Auth wrap ──────────────────────────────── */
.fsp-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.fsp-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 32px rgba(0,0,0,.10);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.fsp-card-center {
    padding: 40px 32px;
    text-align: center;
    font-size: 15px;
    color: #374151;
}
.fsp-card-center a { color: #1d4ed8; }

/* ── Card header ────────────────────────────── */
.fsp-card-header {
    padding: 36px 36px 28px;
    text-align: center;
    background: #f8faff;
    border-bottom: 1px solid #e5e9f2;
}
.fsp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.fsp-card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.fsp-card-header p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* ── Alert ──────────────────────────────────── */
.fsp-alert {
    margin: 0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.fsp-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #f87171;
}

/* ── Form ───────────────────────────────────── */
.fsp-form {
    padding: 28px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fsp-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.fsp-field label,
.fsp-label-row {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}
.fsp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fsp-forgot {
    font-size: 12px;
    font-weight: 400;
    color: #2563eb;
    text-decoration: none;
}
.fsp-forgot:hover { text-decoration: underline; }

/* ── Inputs ─────────────────────────────────── */
.fsp-field input[type="text"],
.fsp-field input[type="email"],
.fsp-field input[type="password"] {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}
.fsp-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.fsp-field input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* ── Password wrap + toggle ─────────────────── */
.fsp-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.fsp-pw-wrap input {
    padding-right: 44px;
}
.fsp-pw-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.15s;
}
.fsp-pw-toggle:hover { color: #374151; }

/* ── Password strength ──────────────────────── */
.fsp-str-bar {
    height: 3px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}
.fsp-str-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: #e5e7eb;
    transition: width 0.3s, background 0.3s;
}
.fsp-str-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 3px;
}

/* ── Checkbox row ───────────────────────────── */
.fsp-check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}
.fsp-check-row input[type="checkbox"] {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #2563eb;
    cursor: pointer;
}
.fsp-check-row a { color: #2563eb; }

/* ── Submit button ──────────────────────────── */
.fsp-submit-btn {
    width: 100%;
    height: 44px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s;
    margin-top: 4px;
}
.fsp-submit-btn:hover  { background: #1e40af; }
.fsp-submit-btn:active { transform: scale(0.99); }
.fsp-submit-green      { background: #16a34a; }
.fsp-submit-green:hover { background: #15803d; }

/* ── Card footer ────────────────────────────── */
.fsp-card-footer {
    padding: 16px 32px 22px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #f3f4f6;
}
.fsp-card-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.fsp-card-footer a:hover { text-decoration: underline; }

/* ── Already signed in ──────────────────────── */
.fsp-already {
    text-align: center;
    padding: 48px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #374151;
}
.fsp-already p { margin-bottom: 16px; }
.fsp-already-btn {
    display: inline-block;
    padding: 11px 24px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
}
.fsp-already-btn:hover { background: #1e40af; color: #fff; }

/* ==============================================
   DASHBOARD
   ============================================== */
.fsp-dash {
    max-width: 700px;
    margin: 36px auto;
    padding: 0 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Top bar */
.fsp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.fsp-tb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fsp-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.fsp-tb-name  { font-size: 15px; font-weight: 700; color: #111827; }
.fsp-tb-email { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.fsp-signout {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.fsp-signout:hover { background: #f9fafb; color: #374151; }

/* Status row */
.fsp-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fsp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.fsp-status-active  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.fsp-status-expired { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.fsp-status-none    { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.fsp-days-left      { font-size: 13px; font-weight: 700; color: #15803d; }

/* Pulsing dot */
.fsp-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
    animation: fspPulse 2s ease-in-out infinite;
}
@keyframes fspPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}

/* Info row */
.fsp-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.fsp-info-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.fsp-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.fsp-info-value { font-size: 14px; font-weight: 700; color: #111827; }
.fsp-exp-val    { color: #1d4ed8; }

/* Countdown card */
.fsp-countdown-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 20px 20px;
    margin-bottom: 16px;
    text-align: center;
}
.fsp-cd-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.fsp-cd {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}
.fsp-cd-unit { text-align: center; }
.fsp-cd-num {
    display: block;
    background: #1e3a8a;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    min-width: 64px;
    padding: 12px 8px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.fsp-cd-lbl {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 5px;
}
.fsp-cd-sep {
    font-size: 24px;
    font-weight: 800;
    color: #d1d5db;
    padding-bottom: 16px;
}
/* Renewal box */
.fsp-renewal-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    text-align: center;
}
.fsp-renewal-label {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.fsp-renewal-days {
    font-size: 22px;
    font-weight: 800;
    color: #14532d;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}
.fsp-renewal-date {
    font-size: 12px;
    color: #16a34a;
    font-weight: 500;
}

/* CTA buttons */
.fsp-access-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: #16a34a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}
.fsp-access-btn:hover  { background: #15803d; color: #fff; transform: translateY(-1px); }
.fsp-access-amber      { background: #d97706; }
.fsp-access-amber:hover { background: #b45309; }
.fsp-access-blue       { background: #1d4ed8; }
.fsp-access-blue:hover  { background: #1e40af; }

.fsp-upgrade-link {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}
.fsp-upgrade-link a { color: #2563eb; text-decoration: none; font-weight: 600; }
.fsp-upgrade-link a:hover { text-decoration: underline; }

/* Expired / no-plan detail */
.fsp-exp-detail {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}

/* Plans grid */
.fsp-plans-hd {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 24px 0 14px;
}
.fsp-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.fsp-plan-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 16px 18px;
    text-align: center;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.fsp-plan-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}
.fsp-plan-pop {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}
.fsp-pop-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 12px;
    border-radius: 99px;
    white-space: nowrap;
    text-transform: uppercase;
}
.fsp-plan-name  { font-size: 12px; color: #6b7280; margin-bottom: 8px; font-weight: 500; }
.fsp-plan-price { font-size: 28px; font-weight: 800; color: #111827; margin-bottom: 4px; letter-spacing: -0.5px; }
.fsp-plan-days  { font-size: 12px; color: #9ca3af; margin-bottom: 16px; }
.fsp-plan-btn {
    display: block;
    padding: 10px;
    background: #1e3a8a;
    color: #fff;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.fsp-plan-pop .fsp-plan-btn { background: #2563eb; }
.fsp-plan-btn:hover { background: #1d4ed8; color: #fff; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 520px) {
    .fsp-card-header { padding: 28px 24px 22px; }
    .fsp-form        { padding: 22px 20px 20px; gap: 14px; }
    .fsp-card-footer { padding: 14px 20px 20px; }
    .fsp-row2        { grid-template-columns: 1fr; gap: 14px; }
    .fsp-info-row    { grid-template-columns: repeat(2, 1fr); }
    .fsp-info-row .fsp-info-box:last-child { grid-column: span 2; }
    .fsp-cd-num      { font-size: 20px; min-width: 48px; padding: 10px 6px; }
    .fsp-plans-grid  { grid-template-columns: 1fr; }
    .fsp-topbar      { flex-wrap: wrap; gap: 10px; }
}
