/* ── Theme Variables (matches the site's Elementor form styling) ── */
:root {
    --fsm-accent: #6C7BD6;
    --fsm-accent-hover: #5563C4;
    --fsm-bg: #0d0f14;
    --fsm-card-bg: #14161d;
    --fsm-field-bg: #1a1c24;
    --fsm-border: rgba(255,255,255,.08);
    --fsm-border-strong: rgba(255,255,255,.14);
    --fsm-text: #f3f4f6;
    --fsm-text-muted: #9ca3af;
    --fsm-danger: #f87171;
    --fsm-success: #4ade80;
}

/* ── Base ──────────────────────────────────────────────────────── */
.fsm-pricing-wrap { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.fsm-pricing-grid { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

/* ── Pricing Cards ─────────────────────────────────────────────── */
.fsm-pricing-card {
    background: var(--fsm-card-bg); border: 1px solid var(--fsm-border);
    border-radius: 16px; padding: 36px 28px;
    width: 300px; text-align: center; position: relative;
    transition: transform .2s, box-shadow .2s;
}
.fsm-pricing-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.fsm-featured { border-color: var(--fsm-accent); box-shadow: 0 8px 32px rgba(108,123,214,.25); }
.fsm-badge { background: var(--fsm-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 99px; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.fsm-plan-name  { font-size: 22px; font-weight: 700; color: var(--fsm-text); margin: 0 0 12px; }
.fsm-plan-price { font-size: 48px; font-weight: 800; color: var(--fsm-accent); }
.fsm-plan-price span { font-size: 16px; color: var(--fsm-text-muted); font-weight: 400; }
.fsm-plan-desc  { color: var(--fsm-text-muted); font-size: 14px; margin: 12px 0 18px; }
.fsm-plan-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.fsm-plan-features li { padding: 6px 0; font-size: 14px; color: var(--fsm-text); opacity: .85; }

/* ── Buttons ───────────────────────────────────────────────────── */
.fsm-btn-purchase, .fsm-btn {
    display: inline-block; padding: 13px 28px; border-radius: 8px;
    font-weight: 600; font-size: 15px; cursor: pointer; border: none;
    background: var(--fsm-accent); color: #fff; text-decoration: none; transition: background .2s;
}
.fsm-btn-purchase:hover, .fsm-btn:hover { background: var(--fsm-accent-hover); }
.fsm-btn-featured, .fsm-btn-primary { background: var(--fsm-accent); }
.fsm-btn-featured:hover, .fsm-btn-primary:hover { background: var(--fsm-accent-hover); }
.fsm-btn-disabled { background: rgba(255,255,255,.06); color: var(--fsm-text-muted); cursor: not-allowed; padding: 12px 28px; border-radius: 8px; font-weight: 600; border: 1px solid var(--fsm-border); }
.fsm-btn-small { padding: 7px 16px; font-size: 12px; }

/* ── Form Fields (shared everywhere: modal, register, profile) ──── */
.fsm-form-group { margin-bottom: 18px; }
.fsm-form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--fsm-text); margin-bottom: 8px; }
.fsm-input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--fsm-border-strong); border-radius: 8px;
    font-size: 14px; margin-bottom: 12px; box-sizing: border-box;
    background: var(--fsm-field-bg); color: var(--fsm-text);
}
.fsm-input::placeholder { color: #6b7280; }
.fsm-input:focus { outline: none; border-color: var(--fsm-accent); box-shadow: 0 0 0 3px rgba(108,123,214,.18); }
select.fsm-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.fsm-form-msg { margin: 8px 0; font-size: 13px; }
.fsm-error { color: var(--fsm-danger); }
.fsm-success-txt { color: var(--fsm-success); }
.fsm-field-note { display: block; margin-top: 6px; color: var(--fsm-text-muted); font-size: 12px; }
.fsm-field-note a { color: var(--fsm-accent); }
.fsm-reg-wrap .fsm-input:disabled, .fsm-input:disabled { opacity: .6; cursor: not-allowed; }

/* ── Password Visibility Toggle ────────────────────────────────── */
.fsm-password-wrap { position: relative; }
.fsm-password-wrap .fsm-input { padding-right: 42px; }
button.fsm-toggle-password {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important; right: 4px !important; top: 50% !important; transform: translateY(-50%) !important;
    width: 30px !important; height: 30px !important; min-width: 0 !important; min-height: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; color: var(--fsm-text-muted) !important; border-radius: 6px !important;
    background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
}
button.fsm-toggle-password:hover { color: var(--fsm-text) !important; background: rgba(255,255,255,.06) !important; }
button.fsm-toggle-password svg { width: 17px; height: 17px; display: block; pointer-events: none; }

/* ── Modal ─────────────────────────────────────────────────────── */
.fsm-modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.fsm-modal-box { background: var(--fsm-card-bg); border: 1px solid var(--fsm-border); border-radius: 16px; padding: 36px; max-width: 420px; width: 90%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.fsm-modal-box h3 { color: var(--fsm-text); }
.fsm-modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--fsm-text-muted); }
.fsm-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.fsm-tab-btn { flex: 1; padding: 10px; border: 1px solid var(--fsm-border-strong); border-radius: 8px; background: none; cursor: pointer; font-weight: 600; color: var(--fsm-text-muted); transition: all .2s; }
.fsm-tab-btn.active { border-color: var(--fsm-accent); color: var(--fsm-accent); background: rgba(108,123,214,.12); }
.fsm-tab-content { display: none; }
.fsm-tab-content.active { display: block; }

/* ── Dashboard Layout ──────────────────────────────────────────── */
.fsm-dashboard { display: flex; min-height: 600px; max-width: 1100px; margin: 30px auto; background: var(--fsm-card-bg); border-radius: 16px; border: 1px solid var(--fsm-border); overflow: hidden; }
.fsm-db-sidebar { width: 250px; background: var(--fsm-bg); color: #fff; flex-shrink: 0; padding: 28px 18px; }
.fsm-db-user { text-align: center; padding: 0 8px 24px; margin-bottom: 12px; border-bottom: 1px solid var(--fsm-border); }
.fsm-db-avatar {
    width: 62px; height: 62px; border-radius: 50%;
    background: linear-gradient(135deg, var(--fsm-accent), var(--fsm-accent-hover));
    font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; color: #fff; box-shadow: 0 0 0 4px rgba(108,123,214,.15);
}
.fsm-db-username { font-weight: 700; font-size: 15px; color: var(--fsm-text); }
.fsm-db-email { font-size: 12px; color: var(--fsm-text-muted); margin-top: 2px; word-break: break-all; }
.fsm-db-badge { margin-top: 10px; background: var(--fsm-accent); border-radius: 99px; font-size: 11px; font-weight: 600; padding: 4px 12px; display: inline-block; color: #fff; }
.fsm-inactive { background: rgba(255,255,255,.08) !important; color: var(--fsm-text-muted) !important; }
.fsm-db-nav { padding: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.fsm-db-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--fsm-text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: background .2s, color .2s; position: relative;
}
.fsm-db-nav-item:hover { background: rgba(255,255,255,.05); color: var(--fsm-text); }
.fsm-db-nav-item.active { background: rgba(108,123,214,.14); color: #fff; font-weight: 600; }
.fsm-db-nav-item.active::before {
    content: ''; position: absolute; left: -18px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 22px; background: var(--fsm-accent); border-radius: 0 4px 4px 0;
}
.fsm-nav-icon {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.fsm-icon-blue   { background: rgba(96,165,250,.16); }
.fsm-icon-amber  { background: rgba(251,191,36,.16); }
.fsm-icon-teal   { background: rgba(45,212,191,.16); }
.fsm-icon-green  { background: rgba(74,222,128,.16); }
.fsm-icon-slate  { background: rgba(148,163,184,.16); }
.fsm-icon-red    { background: rgba(248,113,113,.16); }
.fsm-icon-purple { background: rgba(192,132,252,.16); }
.fsm-nav-label { flex: 1; }
.fsm-logout { margin-top: 8px; }
.fsm-logout:hover { color: var(--fsm-danger) !important; background: rgba(248,113,113,.08); }
.fsm-db-main { flex: 1; padding: 32px; overflow-y: auto; background: var(--fsm-card-bg); }
.fsm-db-title { font-size: 22px; font-weight: 700; color: var(--fsm-text); margin: 0 0 24px; }

/* ── Signals ───────────────────────────────────────────────────── */
.fsm-signals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.fsm-signal-card { background: var(--fsm-field-bg); border: 1px solid var(--fsm-border); border-radius: 12px; padding: 20px; }
.fsm-signal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fsm-signal-order-badge { display: inline-block; font-size: 11px; font-weight: 600; color: var(--fsm-text-muted); background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }

/* ── Auto-Renew Controls ──────────────────────────────────────── */
.fsm-renewal-actions { margin-top: 20px; background: var(--fsm-field-bg); border: 1px solid var(--fsm-border); border-radius: 12px; padding: 20px; }
.fsm-renewal-note { color: var(--fsm-text-muted); font-size: 13.5px; margin: 0 0 14px; line-height: 1.5; }
.fsm-btn-outline { background: transparent; border: 1.5px solid var(--fsm-border); color: var(--fsm-text); }
.fsm-btn-outline:hover { background: rgba(255,255,255,.05); border-color: var(--fsm-text-muted); }

/* ── Free Signal of the Day (public homepage widget) ───────────── */
.fsm-free-signal-card {
    max-width: 340px; background: #0d1410; border: 1.5px solid #16a34a; border-radius: 0;
    overflow: hidden; font-family: inherit; box-shadow: 0 0 24px rgba(22,163,74,.15);
}
.fsm-fs-header {
    background: #16a34a; color: #06120a; font-weight: 800; font-size: 13px; letter-spacing: .03em;
    padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}
.fsm-fs-wave { display: inline-flex; align-items: center; }
.fsm-fs-body { padding: 16px; }
.fsm-fs-pair-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fsm-fs-pair { font-size: 22px; font-weight: 800; color: #fff; }
.fsm-fs-type { font-size: 18px; font-weight: 800; }
.fsm-fs-buy { color: #4ade80; }
.fsm-fs-sell { color: #f87171; }
.fsm-fs-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 12.5px; letter-spacing: .02em; color: #9ca3af; font-weight: 600; }
.fsm-fs-row strong { font-size: 15px; font-weight: 700; }
.fsm-fs-white { color: #fff; }
.fsm-fs-green { color: #4ade80; }
.fsm-fs-red { color: #f87171; }
.fsm-fs-footer { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #9ca3af; }
.fsm-signal-type { padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.fsm-buy  { background: rgba(74,222,128,.15); color: #4ade80; }
.fsm-sell { background: rgba(248,113,113,.15); color: #f87171; }
.fsm-signal-status { font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.fsm-status-active  { background: rgba(74,222,128,.15); color: #4ade80; }
.fsm-status-closed  { background: rgba(255,255,255,.08); color: var(--fsm-text-muted); }
.fsm-status-pending, .fsm-status-expired { background: rgba(251,191,36,.15); color: #fbbf24; }
.fsm-signal-title   { font-size: 16px; font-weight: 600; margin: 8px 0; color: var(--fsm-text); }
.fsm-signal-details { margin: 12px 0; }
.fsm-signal-row     { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--fsm-text-muted); border-bottom: 1px dashed var(--fsm-border); }
.fsm-green { color: #4ade80; }
.fsm-red   { color: #f87171; }
.fsm-signal-note { font-size: 13px; color: var(--fsm-text-muted); margin: 10px 0 0; }
.fsm-signal-date { font-size: 11px; color: #6b7280; margin-top: 10px; }

/* ── Plan Box ──────────────────────────────────────────────────── */
.fsm-plan-box { background: var(--fsm-field-bg); border: 1px solid var(--fsm-border); border-radius: 12px; padding: 24px; max-width: 460px; }
.fsm-plan-info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--fsm-border); font-size: 15px; color: var(--fsm-text); }

/* ── Upgrade Grid ──────────────────────────────────────────────── */
.fsm-upgrade-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.fsm-upgrade-card { background: var(--fsm-field-bg); border: 1px solid var(--fsm-border); border-radius: 12px; padding: 24px; min-width: 200px; text-align: center; position: relative; color: var(--fsm-text); }
.fsm-upgrade-card p { color: var(--fsm-text-muted); font-size: 13px; }
.fsm-current-plan { border-color: var(--fsm-accent); }
.fsm-current-badge { background: var(--fsm-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 99px; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

/* ── Profile Form ──────────────────────────────────────────────── */
.fsm-profile-form-wrap { max-width: 460px; background: var(--fsm-field-bg); padding: 28px; border-radius: 12px; border: 1px solid var(--fsm-border); }

/* ── Messages (success / cancel screens) ──────────────────────── */
.fsm-message { text-align: center; padding: 60px 20px; max-width: 500px; margin: 60px auto; background: var(--fsm-card-bg); border-radius: 16px; border: 1px solid var(--fsm-border); color: var(--fsm-text); }
.fsm-message p { color: var(--fsm-text-muted); }
.fsm-msg-icon { font-size: 56px; margin-bottom: 20px; }
.fsm-no-plan  { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); border-radius: 10px; padding: 24px; text-align: center; color: var(--fsm-text); }
.fsm-empty    { color: var(--fsm-text-muted); text-align: center; padding: 40px; }

/* ── Full Registration Form ───────────────────────────────────── */
.fsm-reg-wrap { max-width: 780px; margin: 20px auto 60px; padding: 0 20px; }
.fsm-reg-intro { text-align: center; margin-bottom: 20px; }
.fsm-reg-subtitle { color: var(--fsm-text-muted); font-size: 14px; }
.fsm-reg-subtitle a { color: var(--fsm-accent); font-weight: 600; }
.fsm-reg-form {
    background: var(--fsm-card-bg); border: 1px solid var(--fsm-border);
    border-radius: 16px; padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.fsm-reg-section { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--fsm-border); }
.fsm-reg-section:last-of-type { border-bottom: none; }
.fsm-reg-section h2 { font-size: 13px; font-weight: 700; color: var(--fsm-accent); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
.fsm-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.fsm-reg-grid .fsm-form-group { margin-bottom: 14px; }
.fsm-checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--fsm-text-muted); margin-bottom: 14px; line-height: 1.5; cursor: pointer; }
.fsm-checkbox-row input { margin-top: 3px; flex-shrink: 0; accent-color: var(--fsm-accent); }
.fsm-reg-submit { width: 100%; margin-top: 10px; padding: 14px; font-size: 16px; }

/* ── Login Page ────────────────────────────────────────────────── */
.fsm-login-wrap { max-width: 440px; margin: 60px auto; padding: 0 20px; }
.fsm-login-card {
    background: var(--fsm-card-bg); border: 1px solid var(--fsm-border);
    border-radius: 16px; padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35); text-align: center;
}
.fsm-login-title { font-size: 24px; font-weight: 700; color: var(--fsm-text); margin: 0 0 8px; }
.fsm-login-sub { color: var(--fsm-text-muted); font-size: 14px; margin: 0 0 26px; }
.fsm-login-card form { text-align: left; }
.fsm-login-submit { width: 100%; margin-top: 6px; padding: 14px; font-size: 16px; }
.fsm-login-links { margin-top: 22px; font-size: 13px; color: var(--fsm-text-muted); }
.fsm-login-links a { color: var(--fsm-accent); font-weight: 600; }
.fsm-login-sep { margin: 0 8px; opacity: .5; }

/* ── History Table (dashboard) ────────────────────────────────── */
.fsm-history-table-wrap { overflow-x: auto; }
.fsm-history-table { width: 100%; border-collapse: collapse; background: var(--fsm-field-bg); border-radius: 10px; overflow: hidden; }
.fsm-history-table th { background: rgba(255,255,255,.04); text-align: left; padding: 10px 14px; font-size: 12px; text-transform: uppercase; color: var(--fsm-text-muted); }
.fsm-history-table td { padding: 12px 14px; border-bottom: 1px solid var(--fsm-border); font-size: 14px; color: var(--fsm-text); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fsm-dashboard { flex-direction: column; }
    .fsm-db-sidebar { width: 100%; }
    .fsm-pricing-grid { flex-direction: column; align-items: center; }
    .fsm-pricing-card { width: 100%; max-width: 360px; }
    .fsm-reg-grid { grid-template-columns: 1fr; }
    .fsm-reg-form { padding: 22px; }
}
