/* CreditFix.new — CSS de baza, placeholder pentru frontend.
   Colega de frontend reface complet stilurile. Aici e doar suficient
   ca paginile sa fie lizibile in lucru. */

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #222; background: #fafafa; line-height: 1.5; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Badge incognito (in pagini, stil rateonline) ---------- */
.incognito-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35);
    animation: cf-incognito-pulse 2s ease-in-out infinite;
    margin: 0 0 24px;
}
.incognito-badge__icon { font-size: 1.6rem; line-height: 1; }
.incognito-badge__text { flex: 1; font-size: 0.95rem; letter-spacing: 0.3px; }
.incognito-badge__text strong { font-weight: 700; }
.incognito-badge__logout {
    color: #fff;
    background: rgba(0,0,0,0.25);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}
.incognito-badge__logout:hover { background: rgba(0,0,0,0.4); }
@keyframes cf-incognito-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35); }
    50%      { box-shadow: 0 4px 24px rgba(220, 53, 69, 0.6); }
}
body.is-broker .site-header { border-bottom-color: #c8102e; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid #e5e5e5; padding: 14px 0; }
.site-header .container { display: flex; align-items: center; gap: 24px; }
.site-logo { font-size: 22px; color: #c8102e; text-decoration: none; }
.site-nav { flex: 1; display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: #333; text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: #c8102e; }
.site-cta { background: #c8102e; color: #fff; padding: 10px 18px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.site-logout { color: #666; text-decoration: none; font-size: 14px; padding: 10px 12px; }
.site-logout:hover { color: #c8102e; }

/* Meniu utilizator (dropdown nativ <details>) in header dupa autentificare. */
.user-menu { position: relative; }
.user-menu__toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    list-style: none; user-select: none; }
.user-menu__toggle::-webkit-details-marker { display: none; }
.user-menu__caret { font-size: 11px; transition: transform .15s ease; }
.user-menu[open] .user-menu__caret { transform: rotate(180deg); }
.user-menu__dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; z-index: 950;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14); display: flex; flex-direction: column;
    overflow: hidden; }
.user-menu__dropdown a { padding: 11px 16px; color: #333; text-decoration: none; font-size: 14px; }
.user-menu__dropdown a:hover { background: #f5f5f5; color: #c8102e; }
.user-menu__logout { border-top: 1px solid #eee; color: #a12622; }

/* ---------- Main ---------- */
.site-main { padding: 40px 0; min-height: 60vh; }

/* ---------- Hero homepage cu slider ---------- */
.hero { background: linear-gradient(135deg, #fafafa 0%, #f0f3f7 100%);
    padding: 64px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
    align-items: center; }
.hero__title { font-size: 42px; line-height: 1.15; color: #1a1a1a;
    margin: 0 0 18px; letter-spacing: -0.02em; }
.hero__lead { font-size: 18px; color: #555; line-height: 1.55; margin: 0 0 24px; }
.hero__benefits { list-style: none; padding: 0; margin: 0; }
.hero__benefits li { padding: 8px 0 8px 28px; position: relative;
    font-size: 16px; color: #333; }
.hero__benefits li::before { content: '✓'; position: absolute; left: 0; top: 8px;
    color: #c8102e; font-weight: 800; }

@media (max-width: 900px) {
    .hero { padding: 40px 0; }
    .hero__inner { grid-template-columns: 1fr; gap: 36px; }
    .hero__title { font-size: 32px; }
}

/* ---------- Slider component ---------- */
.hero__slider { background: #fff; padding: 32px 28px; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(20, 20, 40, 0.10);
    border: 1px solid #f0f0f0; }
.slider__title { font-size: 18px; color: #222; margin: 0 0 24px;
    text-align: center; font-weight: 600; }
.slider__row { margin: 0 0 24px; }
.slider__label { display: flex; justify-content: space-between;
    align-items: baseline; font-size: 14px; color: #666; margin: 0 0 10px; }
.slider__label output { font-size: 22px; font-weight: 700; color: #c8102e; }
.slider__row input[type="range"] { width: 100%; accent-color: #c8102e;
    height: 6px; cursor: pointer; }
.slider__range { display: flex; justify-content: space-between;
    font-size: 12px; color: #999; margin: 6px 0 0; }
.slider__period { font-size: 13px; color: #666; text-align: center;
    margin: 8px 0 0; padding: 8px 12px; background: #f7f8fa;
    border-radius: 4px; }
.slider__period strong { color: #c8102e; }
.slider__cta { display: block; width: 100%; padding: 14px 20px; margin: 16px 0 0;
    background: #c8102e; color: #fff; font-size: 16px; font-weight: 700;
    border: 0; border-radius: 6px; cursor: pointer; letter-spacing: 0.02em;
    text-decoration: none; text-align: center; box-sizing: border-box; }
.slider__cta:hover { background: #a30d25; color: #fff; }
.slider__cta--secondary { background: transparent; color: #c8102e;
    border: 1px solid #c8102e; }
.slider__cta--secondary:hover { background: #c8102e; color: #fff; }
.slider__small { font-size: 12px; color: #888; text-align: center;
    margin: 14px 0 0; }

/* ---------- Apply wizard (placeholder + viitor) ---------- */
.apply-wizard { max-width: 820px; margin: 32px auto; padding: 32px 28px;
    background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.apply-wizard__header { margin: 0 0 24px; }
.apply-wizard__crumbs { display: inline-block; font-size: 11px;
    color: #c8102e; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; }
.apply-wizard__header h1 { margin: 6px 0 0; font-size: 28px; color: #1a1a1a; }
.apply-wizard__summary { display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px; padding: 18px 20px; background: #f7f8fa;
    border-radius: 8px; margin: 0 0 24px; }
.apply-wizard__metric { display: flex; flex-direction: column; gap: 4px; }
.apply-wizard__metric span { font-size: 11px; color: #888;
    text-transform: uppercase; letter-spacing: 0.06em; }
.apply-wizard__metric strong { font-size: 18px; color: #222; font-weight: 700; }
.apply-wizard__invite-notice { padding: 12px 18px; background: #fff7e6;
    border-left: 4px solid #f0a040; color: #6e4818; font-size: 14px;
    border-radius: 4px; margin: 0 0 20px; }
.apply-wizard__lead { margin: 8px 0 0; color: #555; font-size: 15px;
    line-height: 1.55; }
.apply-wizard__placeholder { padding: 32px; background: #fafafa;
    border: 2px dashed #d0d0d0; border-radius: 10px; color: #555;
    font-size: 15px; }
.apply-wizard__placeholder p { margin: 0 0 12px; }

/* Spinner KYC (stare standby, verificare in curs) */
.kyc-spinner { width: 44px; height: 44px; margin: 0 auto 16px;
    border: 4px solid #e0e0e0; border-top-color: #8a0b1c; border-radius: 50%;
    animation: kyc-spin 0.9s linear infinite; }
@keyframes kyc-spin { to { transform: rotate(360deg); } }

/* ---------- Apply wizard form (Initiere si urmatorii pasi) ---------- */
.apply-wizard__form { display: flex; flex-direction: column; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; color: #555; font-weight: 600;
    letter-spacing: 0.02em; }
.form-field input,
.form-field select { padding: 12px 14px; font-size: 16px;
    border: 1px solid #cfcfd4; border-radius: 6px; background: #fff;
    box-sizing: border-box; width: 100%; appearance: none; -webkit-appearance: none; }
.form-field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-field input:focus,
.form-field select:focus { outline: none; border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }
.form-field input[readonly] { background: #f4f4f6; color: #777; cursor: not-allowed; }

.form-field--error input,
.form-field--error fieldset { border-color: #c8102e !important; }
.form-error { font-size: 13px; color: #c8102e; padding: 4px 2px; }

.form-fieldset { border: 1px solid #e5e5e5; border-radius: 8px;
    padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.form-fieldset legend { padding: 0 8px; font-size: 13px; color: #555;
    font-weight: 600; letter-spacing: 0.02em; }
.form-radio { display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 6px 0; font-size: 15px; }
.form-radio input[type="radio"] { accent-color: #c8102e;
    width: 18px; height: 18px; cursor: pointer; }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    padding: 8px 0; font-size: 15px; line-height: 1.5; }
.form-checkbox input[type="checkbox"] { accent-color: #c8102e;
    width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.form-checkbox a { color: #c8102e; text-decoration: underline; }
.form-checkbox a:hover { color: #a30d25; }

.apply-wizard__cta { display: block; width: 100%; padding: 14px 24px;
    background: #c8102e; color: #fff; font-size: 16px; font-weight: 700;
    border: 0; border-radius: 6px; cursor: pointer; letter-spacing: 0.02em;
    box-sizing: border-box; margin: 4px 0 0; }
.apply-wizard__cta:hover { background: #a30d25; }
.apply-wizard__small { font-size: 12px; color: #888; text-align: center;
    margin: 12px 0 0; line-height: 1.5; }

.apply-wizard__secondary { margin: 14px 0 0; text-align: center; }
.apply-wizard__link { background: transparent; border: 0; color: #1666b3;
    cursor: pointer; font-size: 14px; padding: 6px 8px; text-decoration: underline; }
.apply-wizard__link:hover { color: #0d4a82; }

/* Form rows dinamice (alte credite) */
.form-rows { display: flex; flex-direction: column; gap: 12px; margin: 8px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 130px auto; gap: 10px;
    align-items: end; padding: 12px; background: #fafafa; border-radius: 8px;
    border: 1px solid #ececef; }
.form-row .form-field { gap: 4px; }
.form-row .form-field label { font-size: 11px; }
.apply-wizard__row-remove { background: transparent; color: #c8102e;
    border: 1px solid #c8102e; padding: 8px 12px; border-radius: 4px;
    font-size: 13px; cursor: pointer; height: 42px; }
.apply-wizard__row-remove:hover { background: #c8102e; color: #fff; }
.apply-wizard__row-add { background: transparent; color: #1666b3; border: 1px dashed #1666b3;
    padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 14px;
    font-weight: 600; margin: 8px 0; align-self: flex-start; }
.apply-wizard__row-add:hover { background: #e8f0fa; }
@media (max-width: 720px) {
    .form-row { grid-template-columns: 1fr; }
}
.apply-wizard__debug { margin: 16px 0 0; padding: 12px 16px;
    background: #f0f0f0; border-radius: 6px; }
.apply-wizard__debug summary { cursor: pointer; font-size: 13px;
    color: #555; font-weight: 600; }
.apply-wizard__debug pre { margin: 8px 0 0; font-size: 12px;
    color: #333; overflow-x: auto; line-height: 1.5; }

/* ---------- Home notice (de la redirect / abandoned) ---------- */
.home-notice { padding: 12px 16px; margin: 0 0 16px; background: #fff7e6;
    border-left: 4px solid #f0a040; color: #6e4818; font-size: 14px;
    border-radius: 4px; }

/* ---------- Contul meu — header ---------- */
.account-header { margin: 8px 0 24px; }
.account-header h1 { font-size: 28px; color: #222; margin: 0 0 4px; }
.account-header__sub { color: #666; margin: 0; font-size: 15px; }

/* ---------- Lista invitatii ---------- */
.invitations-list { margin: 24px 0 32px; padding: 24px 26px; background: #fffaf0;
    border: 1px solid #f6c873; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(196, 142, 36, 0.08); }
.invitations-list__title { font-size: 20px; color: #6e4818; margin: 0 0 6px;
    font-weight: 700; }
.invitations-list__lead { color: #885d24; font-size: 14px; margin: 0 0 18px;
    line-height: 1.5; }
.invitations-list__items { display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px; }

.invitation-card { background: #fff; border: 1px solid #f0d088; border-radius: 10px;
    padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.invitation-card__header { display: flex; justify-content: space-between;
    align-items: flex-start; gap: 12px; }
.invitation-card__title h3 { margin: 0 0 2px; font-size: 17px; color: #222; }
.invitation-card__partner { margin: 0; font-size: 12px; color: #888;
    letter-spacing: 0.03em; }
.invitation-card__badge { display: inline-block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px;
    border-radius: 999px; background: #f0a040; color: #fff; white-space: nowrap;
    flex-shrink: 0; }

.invitation-card__metrics { display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px; padding: 8px 0; border-top: 1px solid #f5e7c5;
    border-bottom: 1px solid #f5e7c5; }
.invitation-metric { display: flex; flex-direction: column; gap: 2px; }
.invitation-metric__label { font-size: 10px; color: #886a3a;
    letter-spacing: 0.04em; text-transform: uppercase; }
.invitation-metric__value { font-size: 16px; font-weight: 600; color: #222; }
.invitation-metric__value--small { font-size: 12px; font-family: ui-monospace, monospace; }
.invitation-metric__value small { font-size: 10px; color: #888;
    font-weight: 400; margin-left: 2px; }

.invitation-card__footer { display: flex; justify-content: space-between;
    align-items: center; gap: 10px; font-size: 13px; color: #888; }
.invitation-card__cta { background: #f0a040; color: #fff; padding: 8px 18px;
    border-radius: 6px; text-decoration: none; font-weight: 600;
    font-size: 13px; letter-spacing: 0.02em; }
.invitation-card__cta:hover { background: #d8893a; color: #fff; }

/* ---------- Lista credite ---------- */
.credits-list { margin: 24px 0 40px; }
.credits-list__title { font-size: 20px; color: #222; margin: 0 0 16px;
    font-weight: 600; letter-spacing: 0.02em; }
.credits-list__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px; }

/* ---------- Empty state ---------- */
.credits-empty { padding: 48px 32px; text-align: center; background: #f7f7f7;
    border: 2px dashed #d0d0d0; border-radius: 12px; }
.credits-empty p { font-size: 17px; color: #555; margin: 0 0 16px; }
.credits-empty__cta { display: inline-block; padding: 12px 24px; background: #c8102e;
    color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; }
.credits-empty__cta:hover { background: #a30d25; }

.account-apply { margin-top: 24px; text-align: center; }
.account-apply__cta { display: inline-block; padding: 12px 24px; background: #c8102e;
    color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; }
.account-apply__cta:hover { background: #a30d25; }

.apply-cooldown { margin: 16px 0; padding: 14px 18px; background: #eef4ff;
    border: 1px solid #c7dbff; border-radius: 8px; color: #244; font-size: 15px; }

/* ---------- Profil client ---------- */
.account-header__links { margin-top: 6px; }
.account-header__links a { color: #c8102e; text-decoration: none; font-weight: 600; }
.account-header__links a:hover { text-decoration: underline; }

.profile-section { margin: 24px 0; padding: 24px; background: #fff;
    border: 1px solid #e4e4e4; border-radius: 12px; }
.profile-section h2 { margin: 0 0 16px; font-size: 20px; }
.profile-hint { color: #777; font-size: 14px; margin: 0 0 16px; }
.profile-group { margin-bottom: 20px; }
.profile-group h3 { font-size: 15px; color: #555; text-transform: uppercase;
    letter-spacing: .04em; margin: 0 0 8px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 24px; margin: 0; }
.profile-row { display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.profile-row dt { color: #777; margin: 0; }
.profile-row dd { margin: 0; font-weight: 600; text-align: right; }
.profile-check { display: flex; align-items: center; gap: 10px; margin: 10px 0;
    font-size: 15px; cursor: pointer; }
.profile-check input { width: 18px; height: 18px; }
.profile-success { padding: 12px 16px; background: #e8f5e9; border: 1px solid #a5d6a7;
    border-radius: 6px; color: #256029; margin-bottom: 14px; }
.profile-error { padding: 12px 16px; background: #fdecea; border: 1px solid #f5c6cb;
    border-radius: 6px; color: #a12622; margin-bottom: 14px; }
.profile-section form label { display: block; margin: 12px 0; }
.profile-section form input[type="password"] { display: block; width: 100%; max-width: 360px;
    padding: 10px 12px; margin-top: 4px; border: 1px solid #ccc; border-radius: 6px; }
.profile-section form button { margin-top: 16px; padding: 12px 24px; background: #c8102e;
    color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.profile-section form button:hover { background: #a30d25; }

/* ---------- Meniu lateral incognito (agent-only) — dreapta, sub header ---------- */
.incognito-sidebar { position: fixed; top: 65px; right: 0; width: 240px;
    height: calc(100vh - 65px);
    background: #8a0b1c; color: #fff; padding: 20px 16px; z-index: 900;
    display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
/* Cand dev-panel-ul (bara fixed de jos, ~60px) e prezent, scurtam meniul ca
   butonul de iesire sa nu se suprapuna cu el. Pe prod dev-panel-ul lipseste. */
body:has(.cf-dev-panel) .incognito-sidebar { height: calc(100vh - 65px - 60px); }
.incognito-sidebar__head { padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.22); }
.incognito-sidebar__title { display: block; font-size: 13px; text-transform: uppercase;
    letter-spacing: .06em; color: #ffd4d4; }
.incognito-sidebar__client { display: block; font-size: 14px; color: #fbe3e5; margin-top: 2px; }
.incognito-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.incognito-sidebar__nav a,
.incognito-sidebar__nav button { display: block; width: 100%; text-align: left;
    color: #fff; background: none; border: none; cursor: pointer; text-decoration: none;
    padding: 10px 12px; border-radius: 6px; font-size: 14px; font-family: inherit; }
.incognito-sidebar__nav a:hover,
.incognito-sidebar__nav button:hover { background: rgba(0,0,0,0.22); }
.incognito-sidebar__logout { margin-top: auto; text-align: center; color: #8a0b1c;
    background: #fff; text-decoration: none; padding: 10px; border-radius: 6px;
    font-weight: 700; }
.incognito-sidebar__logout:hover { background: #ffe3e3; }

/* Impinge continutul spre stanga cand meniul lateral (dreapta) e activ (desktop).
   Header-ul ramane full-width — meniul incepe sub el. */
@media (min-width: 900px) {
    body.is-incognito .site-main,
    body.is-incognito .site-footer { padding-right: 264px; }
}

/* ---------- Pagini incognito ---------- */
.incognito-page { max-width: 640px; }
.incognito-page form label { display: block; margin: 12px 0; }
.incognito-page form input[type="email"],
.incognito-page form input[type="text"],
.incognito-page form input[type="number"],
.incognito-page form textarea { display: block; width: 100%; max-width: 420px;
    padding: 10px 12px; margin-top: 4px; border: 1px solid #ccc; border-radius: 6px; }
.incognito-page form button { margin-top: 8px; padding: 11px 22px; background: #c8102e;
    color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.incognito-page form button.btn-secondary { background: #555; }
.incognito-card { padding: 20px; background: #fff; border: 1px solid #e4e4e4; border-radius: 12px; }
.incognito-majorare-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.incognito-notes { list-style: none; padding: 0; margin: 20px 0 0; }
.incognito-note { display: flex; justify-content: space-between; gap: 12px; padding: 12px;
    background: #fff; border: 1px solid #e4e4e4; border-radius: 8px; margin-bottom: 8px; }
.incognito-note__body p { margin: 0 0 4px; }
.incognito-note__meta { font-size: 12px; color: #999; }
.incognito-note__del { background: none; border: none; color: #c8102e; font-size: 20px;
    cursor: pointer; line-height: 1; }
.incognito-notes__empty, .incognito-empty { color: #777; }

/* ---------- Modale incognito ---------- */
.inc-modal { position: fixed; inset: 0; z-index: 1000; display: flex;
    align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.inc-modal[hidden] { display: none; }
.inc-modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); }
.inc-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 520px;
    background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.inc-modal__dialog h2 { margin: 0 0 12px; font-size: 20px; }
.inc-modal__hint { color: #777; font-size: 14px; margin: 0 0 14px; }
.inc-modal__x { position: absolute; top: 12px; right: 14px; background: none; border: none;
    font-size: 26px; line-height: 1; color: #999; cursor: pointer; }
.inc-modal__x:hover { color: #333; }
.inc-modal label { display: block; margin: 10px 0; }
.inc-modal input[type="email"], .inc-modal input[type="text"],
.inc-modal input[type="number"], .inc-modal textarea { display: block; width: 100%;
    padding: 10px 12px; margin-top: 4px; border: 1px solid #ccc; border-radius: 6px; }
.inc-modal form > button[type="submit"] { margin-top: 10px; padding: 11px 22px;
    background: #c8102e; color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.inc-modal .incognito-majorare-actions button { padding: 10px 16px; border: none;
    border-radius: 6px; background: #c8102e; color: #fff; font-weight: 600; cursor: pointer; }
.inc-modal .incognito-majorare-actions button.btn-secondary { background: #555; }

/* Toast rezultat actiune (dupa reload). */
.inc-toast { position: fixed; top: 78px; right: 16px; z-index: 1100; max-width: 320px;
    padding: 12px 16px; border-radius: 8px; color: #fff; font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.inc-toast--ok { background: #256029; }
.inc-toast--err { background: #a12622; }

/* ---------- Credit card ---------- */
.credit-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
    padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: box-shadow 0.15s; }
.credit-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.credit-card__header { display: flex; justify-content: space-between;
    align-items: flex-start; gap: 12px; }
.credit-card__title h3 { margin: 0 0 2px; font-size: 17px; color: #222; }
.credit-card__produs { margin: 0; font-size: 12px; color: #888;
    letter-spacing: 0.05em; text-transform: uppercase; }

/* Badge brand */
.credit-badge { display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px;
    border-radius: 999px; background: var(--brand-color); color: #fff;
    white-space: nowrap; flex-shrink: 0; }

/* Metrics grid */
.credit-card__metrics { display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px; padding: 8px 0; border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0; }
.credit-metric { display: flex; flex-direction: column; gap: 2px; }
.credit-metric__label { font-size: 11px; color: #888; letter-spacing: 0.04em;
    text-transform: uppercase; }
.credit-metric__value { font-size: 16px; font-weight: 600; color: #222; }
.credit-metric__value small { font-size: 11px; color: #888;
    font-weight: 400; margin-left: 2px; }

/* Footer cu status + date */
.credit-card__footer { display: flex; justify-content: space-between;
    align-items: center; gap: 8px; font-size: 13px; color: #666; }

/* Status pills */
.credit-status { display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; }
.credit-status--success { background: #d4edda; color: #155724; }
.credit-status--danger  { background: #f8d7da; color: #721c24; }
.credit-status--info    { background: #d1ecf1; color: #0c5460; }
.credit-status--warning { background: #fff3cd; color: #856404; }
.credit-status--neutral { background: #e9ecef; color: #495057; }

/* ---------- Credit detail page ---------- */
.credit-detail { padding: 16px 0 40px; }
.credit-detail__crumbs { font-size: 13px; margin: 0 0 16px; }
.credit-detail__crumbs a { color: #1666b3; text-decoration: none; }
.credit-detail__crumbs a:hover { text-decoration: underline; }

.credit-detail__header { display: flex; justify-content: space-between;
    align-items: flex-start; gap: 16px; margin: 0 0 20px;
    padding: 16px 20px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; }
.credit-detail__title h1 { margin: 0 0 4px; font-size: 24px; color: #222; }
.credit-detail__produs { margin: 0; font-size: 13px; color: #888;
    letter-spacing: 0.05em; text-transform: uppercase; }

.credit-detail__section { margin: 20px 0; padding: 18px 20px; background: #fff;
    border: 1px solid #e5e5e5; border-radius: 10px; }
.credit-detail__section-title { margin: 0 0 14px; font-size: 16px; color: #222;
    font-weight: 600; letter-spacing: 0.02em; }
.credit-detail__metrics { display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.credit-detail__note { margin: 0 0 12px; font-size: 13px; color: #888; font-style: italic; }

.credit-detail__sume .credit-metric__value { font-size: 18px; }

/* Actiuni */
.credit-detail__actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.credit-detail__btn { display: inline-flex; flex-direction: column;
    align-items: center; gap: 2px; padding: 14px 22px; text-decoration: none;
    border-radius: 6px; font-weight: 600; font-size: 15px;
    transition: background 0.15s, color 0.15s; }
.credit-detail__btn--primary { background: #c8102e; color: #fff; }
.credit-detail__btn--primary:hover { background: #a30d25; }
.credit-detail__btn--info { background: #1666b3; color: #fff; }
.credit-detail__btn--info:hover { background: #0e4d8c; }
.credit-detail__btn--warning { background: #f0a040; color: #fff; }
.credit-detail__btn--warning:hover { background: #c98030; }
.credit-detail__btn-sub { font-size: 12px; font-weight: 400; opacity: 0.92; }

/* Scadentar */
.credit-detail__scadentar-wrapper { overflow-x: auto; }
.credit-detail__scadentar { width: 100%; border-collapse: collapse; font-size: 14px; }
.credit-detail__scadentar th { padding: 10px 12px; text-align: left;
    border-bottom: 2px solid #e0e0e0; color: #444; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.04em; }
.credit-detail__scadentar td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0;
    color: #333; }
.credit-detail__scadentar th.num,
.credit-detail__scadentar td.num { text-align: right; font-variant-numeric: tabular-nums; }
.credit-detail__scadentar tr.is-restanta td { background: #fff3f3; }
.credit-detail__scadentar tr.is-restanta td:first-child { color: #c8102e; font-weight: 600; }
.credit-detail__scadentar tr.is-platita td { color: #888; }

/* Pending */
.credit-detail__pending { list-style: none; padding: 0; margin: 0; }
.credit-detail__pending li { padding: 8px 12px; background: #f9f9f9;
    border-left: 3px solid #1a6b2d; margin: 0 0 6px; font-size: 14px; color: #444; }

/* Vezi detalii link on credit card */
.credit-card__detail-link { display: block; margin-top: 8px; text-align: center;
    padding: 8px 12px; border: 1px solid #c8102e; color: #c8102e;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background 0.15s, color 0.15s; }
.credit-card__detail-link:hover { background: #c8102e; color: #fff; }

/* ---------- Login / recovery pages (placeholder pana reface colega) ---------- */
.login-page { max-width: 440px; margin: 40px auto; padding: 32px 28px; background: #fff;
    border: 1px solid #e5e5e5; border-radius: 8px; }
.login-page h2 { margin: 0 0 18px; font-size: 24px; color: #222; }
.login-page p { color: #555; font-size: 15px; margin: 0 0 18px; }
.login-page label { display: block; margin: 0 0 14px; font-size: 14px; color: #333; }
.login-page input[type="email"],
.login-page input[type="password"],
.login-page input[type="text"] { display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px; font-size: 15px; border: 1px solid #c5c5c5; border-radius: 4px;
    box-sizing: border-box; }
.login-page input:focus { outline: none; border-color: #c8102e; }
.login-page button { display: block; width: 100%; margin: 18px 0 0;
    padding: 12px 16px; background: #c8102e; color: #fff; font-size: 15px; font-weight: 600;
    border: 0; border-radius: 4px; cursor: pointer; }
.login-page button:hover { background: #a30d25; }
.login-helper { text-align: center; margin: 16px 0 0; font-size: 14px; }
.login-helper a { color: #1666b3; text-decoration: none; }
.login-helper a:hover { text-decoration: underline; }
.login-error { padding: 10px 14px; margin: 0 0 16px; background: #fce8ec;
    color: #a30d25; border-left: 3px solid #c8102e; border-radius: 3px; font-size: 14px; }
.login-success { padding: 10px 14px; margin: 0 0 16px; background: #e9f7ee;
    color: #1a6b2d; border-left: 3px solid #1a6b2d; border-radius: 3px; font-size: 14px; }

/* ---------- Dev stub (placeholder pe pagini in lucru) ---------- */
.dev-stub { background: #fff; border: 2px dashed #c8102e; border-radius: 8px; padding: 32px; margin: 0 20px; }
.dev-stub__tag { display: inline-block; background: #c8102e; color: #fff; font-size: 11px; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 3px; }
.dev-stub__title { margin: 16px 0 8px; font-size: 32px; }
.dev-stub__lead { color: #666; font-size: 17px; margin: 8px 0 16px; }
.dev-stub__purpose { font-size: 14px; color: #444; background: #fff7e6; padding: 10px 14px; border-left: 3px solid #f0a040; }
.dev-stub__legacy { font-size: 14px; color: #555; margin: 16px 0; }
.dev-stub__legacy a { color: #1666b3; }
.dev-stub__placeholder { margin-top: 24px; padding: 60px 20px; background: #f5f5f5; border-radius: 6px; text-align: center; color: #999; }

/* ---------- Dev panel (vizibil doar in APP_DEBUG=true) — full width lipit jos ---------- */
.pending-app-card { display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; margin: 20px 0; background: #fff8e6;
    border: 1px solid #f5d97c; border-left: 4px solid #c8102e;
    border-radius: 6px; color: #1f1f1f; text-decoration: none;
    transition: background 0.15s, transform 0.15s; }
.pending-app-card:hover { background: #fff1cc; transform: translateY(-1px); }
.pending-app-card__icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.pending-app-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pending-app-card__body strong { font-size: 16px; color: #1f1f1f; }
.pending-app-card__body span { font-size: 13px; color: #555; }
.pending-app-card__cta { font-weight: 700; color: #c8102e; flex-shrink: 0; }

.cf-dev-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: #1b1b1f; color: #e8e8ea; border-top: 2px solid #c8102e;
    font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45); }
body:has(.cf-dev-panel) { padding-bottom: 60px; }
.cf-dev-panel__toggle { display: flex; justify-content: space-between; align-items: center;
    width: 100%; background: #c8102e; color: #fff; border: 0; padding: 10px 22px; cursor: pointer;
    font: inherit; font-size: 14px; border-radius: 0; }
.cf-dev-panel__title { font-weight: 700; letter-spacing: 0.12em; font-size: 13px; }
.cf-dev-panel__hint { font-size: 11px; opacity: 0.8; }
.cf-dev-panel__body { padding: 16px 22px; max-height: 50vh; overflow: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; align-items: start; }
.cf-dev-panel[data-collapsed="true"] .cf-dev-panel__body { display: none; }
.cf-dev-panel h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.1em; color: #aab; grid-column: 1 / -1; }
.cf-dev-panel__section { min-width: 0; }
.cf-dev-panel__section + .cf-dev-panel__section { /* no extra space — grid handles it */ }
.cf-dev-panel table { width: 100%; border-collapse: collapse; }
.cf-dev-panel td { padding: 4px 10px 4px 0; vertical-align: top; word-break: break-all; }
.cf-dev-panel td:first-child { color: #8aa; width: 150px; white-space: nowrap; }
.cf-dev-panel ul { margin: 6px 0; padding-left: 22px; columns: 2; }
.cf-dev-panel li { color: #aac; padding: 2px 0; }
.cf-dev-panel pre { background: #0f0f12; color: #d0d0d6; padding: 12px;
    border-radius: 6px; overflow: auto; font-size: 12px; margin: 6px 0 0; line-height: 1.45;
    grid-column: 1 / -1; }
@media (max-width: 900px) {
    .cf-dev-panel__body { grid-template-columns: 1fr; }
    .cf-dev-panel ul { columns: 1; }
}

/* Spacer pentru continut sa nu fie ascuns sub panel (cand e deschis ~50vh) */
body:has(.cf-dev-panel:not([data-collapsed="true"])) { padding-bottom: 50vh; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a1a; color: #ccc; padding: 40px 0 0; margin-top: 60px; }
.site-footer .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #aaa; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { background: #000; padding: 14px 0; text-align: center; color: #666; font-size: 12px; }

@media (max-width: 720px) {
    .site-header .container { flex-direction: column; align-items: flex-start; }
    .site-footer .container { grid-template-columns: 1fr; }
}
