/* Клиентски портал (/create, /portal) – допълва admin.css. */

.portal .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.portal .cat-card {
    display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: 16px; background: #fff;
    border: 1px solid rgba(0, 0, 0, .08); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.portal a.cat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.portal .cat-card .cat-icon { font-size: 30px; line-height: 1; }
.portal .cat-card h2 { font-size: 1.1rem; margin: 6px 0 0; }
.portal .cat-card p { font-size: .875rem; color: #6c757d; margin: 0; }
.portal .cat-card .cat-choice { display: flex; gap: 8px; margin-top: 8px; }

.portal .steps-mini { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; color: #6c757d; }
.portal .steps-mini b { color: #212529; }

.portal .buy-card { border: 2px solid #c9a463; }
.portal .buy-price { font-size: 1.6rem; font-weight: 700; }
.portal .checkout-step { display: flex; gap: 12px; }
.portal .checkout-step > span {
    flex: 0 0 30px; height: 30px; border-radius: 50%; background: #2b2326; color: #fff;
    display: grid; place-items: center; font-weight: 600; font-size: .875rem;
}
.portal .payhip-buy-button { display: inline-block; }

/* ---------- /create – избор на повод (в стила на главната страница) ---------- */
.create-page { --cp-ink: #2f2a24; --cp-muted: #7d7366; --cp-accent: #b8925a; --cp-line: #ece4d8;
    font-family: 'Montserrat', system-ui, sans-serif; color: var(--cp-ink); max-width: 1120px; margin: 0 auto; padding: 8px 0 24px; }
.cp-head { text-align: center; margin: 12px auto 34px; max-width: 980px; }
.cp-head h1, .cp-lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.cp-eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: 12px; color: var(--cp-accent); margin: 0 0 10px; }
.cp-head h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 0 0 12px; }
.cp-lead { color: #5b5348; font-size: 16px; margin: 0 0 22px; }
.cp-steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; text-align: left; }
.cp-steps li { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--cp-line); border-radius: 18px;
    padding: 16px 18px; font-size: 13.5px; color: #4f463b; }
.cp-steps li span { width: 30px; height: 30px; border-radius: 50%; background: #f6efe4; color: var(--cp-accent); font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }
.cp-steps li b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--cp-ink); line-height: 1.2; margin: 2px 0 4px; }
.cp-steps li p { margin: 0; color: #6b6257; line-height: 1.5; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cp-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 20px; border-radius: 18px; background: #fff;
    border: 1px solid var(--cp-line); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cp-card:hover, .cp-card:focus-visible { transform: translateY(-3px); border-color: var(--cp-accent); box-shadow: 0 14px 34px rgba(60, 40, 10, .1); color: inherit; }
.cp-icon { width: 54px; height: 54px; border-radius: 50%; background: #f6efe4; border: 1px solid var(--cp-line); color: var(--cp-accent);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.cp-icon svg { width: 27px; height: 27px; }
.cp-card h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 25px; margin: 0; line-height: 1.15; }
.cp-card p { color: #6b6257; font-size: 14px; margin: 0; flex: 1; }
.cp-go { margin-top: 12px; color: var(--cp-accent); font-weight: 600; font-size: 13.5px; }
.cp-card:hover .cp-go span { display: inline-block; transform: translateX(3px); transition: transform .18s; }
.cp-note { text-align: center; color: var(--cp-muted); font-size: 13px; max-width: 620px; margin: 28px auto 0; }
@media (max-width: 575px) {
    .cp-grid { grid-template-columns: 1fr; gap: 12px; }
    .cp-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; }
    .cp-icon { margin: 0; width: 48px; height: 48px; }
    .cp-card h2 { font-size: 22px; flex: 1; }
    .cp-card p { flex-basis: 100%; }
    .cp-go { margin-top: 4px; }
    .cp-steps { grid-template-columns: 1fr; gap: 10px; }
}
@media (min-width: 900px) { .cp-grid { grid-template-columns: repeat(3, 1fr); } }

/* ================= Тема на портала – в стила на сайта (кремаво, Cormorant/Montserrat, ясни цветни бутони) ================= */
body.portal {
    --pt-ink: #2f2a24; --pt-muted: #7d7366; --pt-gold: #b8925a; --pt-gold-d: #96712f; --pt-line: #ece4d8; --pt-cream: #faf7f2;
    --pt-green: #2f8f5b; --pt-green-d: #26754a; --pt-orange: #e2702b; --pt-orange-d: #c45d1d;
    background: var(--pt-cream); color: var(--pt-ink); font-family: 'Montserrat', system-ui, sans-serif; font-size: 15px;
    display: flex; flex-direction: column; min-height: 100vh;
}
body.portal main { flex: 1; }
body.portal h1, body.portal .h1, body.portal h2, body.portal .h2, body.portal h3, body.portal .h3, body.portal .h4, body.portal h4 {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: .01em;
}
body.portal h1, body.portal .h3 { font-size: clamp(28px, 4vw, 36px); }
body.portal a { color: var(--pt-gold-d); }
body.portal .text-secondary { color: var(--pt-muted) !important; }

/* Горна лента и долна част */
body.portal .pt-nav { background: rgba(250, 247, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pt-line); }
body.portal .pt-brand { display: flex; align-items: center; gap: 10px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700;
    font-size: 25px; color: var(--pt-gold-d); text-decoration: none; }
body.portal .pt-brand img { border-radius: 8px; }
body.portal .pt-footer { border-top: 1px solid var(--pt-line); padding: 18px 0; font-size: 13px; color: var(--pt-muted); margin-top: 24px; }
body.portal .pt-footer a { color: var(--pt-muted); text-decoration: none; }
body.portal .pt-footer a:hover { color: var(--pt-ink); }
@media (max-width: 575px) {
    body.portal .pt-brand { font-size: 0; gap: 0; }
    body.portal .pt-brand img { width: 34px; height: 34px; }
}

/* Карти и полета */
body.portal .card { border: 1px solid var(--pt-line); border-radius: 18px; box-shadow: 0 8px 30px rgba(60, 40, 10, .06); overflow: hidden; }
body.portal .card-header { background: #fff; border-bottom: 1px solid var(--pt-line); font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 21px; font-weight: 600; padding: 14px 20px; }
body.portal .card-footer { background: #fff; border-top: 1px solid var(--pt-line); }
body.portal .list-group-item { border-color: var(--pt-line); }
body.portal .form-control, body.portal .form-select { border-color: #d9cfc0; border-radius: 12px; padding: .55rem .85rem; }
body.portal .form-control-sm, body.portal .form-select-sm { border-radius: 10px; padding: .35rem .65rem; }
body.portal .form-control:focus, body.portal .form-select:focus { border-color: var(--pt-gold); box-shadow: 0 0 0 .2rem rgba(184, 146, 90, .25); }
body.portal .form-check-input:checked { background-color: var(--pt-gold-d); border-color: var(--pt-gold-d); }
body.portal .form-label { font-weight: 600; color: #4a4238; }
body.portal .alert { border-radius: 14px; }
body.portal .alert-success { background: #e8f3ea; border-color: #c6e2cc; color: #23502f; }
body.portal .badge.text-bg-light { background: #fff !important; }

/* Бутони – ясни и цветни */
body.portal .btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.25rem; letter-spacing: .01em; transition: background .15s, box-shadow .15s, transform .1s; }
body.portal .btn-sm { padding: .35rem .95rem; font-size: 13.5px; }
body.portal .btn-lg { padding: .8rem 1.6rem; font-size: 17px; }
body.portal .btn:active { transform: translateY(1px); }
body.portal .btn-primary { background: var(--pt-gold-d); border-color: var(--pt-gold-d); color: #fff; box-shadow: 0 4px 14px rgba(150, 113, 47, .3); }
body.portal .btn-primary:hover, body.portal .btn-primary:focus { background: #7f5e24; border-color: #7f5e24; color: #fff; }
body.portal .btn-success { background: var(--pt-green); border-color: var(--pt-green); color: #fff; box-shadow: 0 4px 14px rgba(47, 143, 91, .3); }
body.portal .btn-success:hover, body.portal .btn-success:focus { background: var(--pt-green-d); border-color: var(--pt-green-d); color: #fff; }
body.portal .btn-warning { background: var(--pt-orange); border-color: var(--pt-orange); color: #fff; box-shadow: 0 6px 18px rgba(226, 112, 43, .35); }
body.portal .btn-warning:hover, body.portal .btn-warning:focus { background: var(--pt-orange-d); border-color: var(--pt-orange-d); color: #fff; }
body.portal .btn-danger { background: #c8443a; border-color: #c8443a; }
body.portal .btn-outline-primary { color: var(--pt-gold-d); border: 2px solid var(--pt-gold); background: #fff; }
body.portal .btn-outline-primary:hover, body.portal .btn-outline-primary:focus { background: var(--pt-gold-d); border-color: var(--pt-gold-d); color: #fff; }
body.portal .btn-outline-secondary, body.portal .btn-outline-dark { color: var(--pt-ink); border: 2px solid #cbbfae; background: #fff; }
body.portal .btn-outline-secondary:hover, body.portal .btn-outline-dark:hover { background: var(--pt-ink); border-color: var(--pt-ink); color: #fff; }
body.portal .btn-outline-success { color: var(--pt-green); border: 2px solid var(--pt-green); background: #fff; }
body.portal .btn-outline-success:hover { background: var(--pt-green); color: #fff; }
body.portal .btn-outline-danger { border-width: 2px; background: #fff; }
body.portal .btn-link { box-shadow: none; }
body.portal .btn-group > .btn { border-radius: 999px; }
body.portal .btn-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.portal .btn-group > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Статистики (линкове, отговори) */
body.portal .stat { text-align: center; }
body.portal .stat b { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.1; }

/* Покупка */
body.portal .buy-card { border: 2px solid var(--pt-gold); }
body.portal .buy-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; color: var(--pt-gold-d); }
body.portal .checkout-step > span { background: var(--pt-gold-d); }

/* ---------- Вход и регистрация ---------- */
.auth-wrap { max-width: 940px; margin: 16px auto 8px; display: grid; grid-template-columns: 1fr 1.05fr; background: #fff;
    border: 1px solid var(--pt-line); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px rgba(60, 40, 10, .1); }
.auth-side { background: linear-gradient(160deg, #f4ead9 0%, #ead8b9 100%); padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; }
.auth-side .auth-logo { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 8px 20px rgba(120, 90, 40, .25); }
.auth-side h2 { font-size: 34px; line-height: 1.1; margin: 0; }
.auth-side p { color: #5b5348; margin: 0; }
.auth-side ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #4f463b; }
.auth-side li span { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--pt-gold-d); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.auth-main { padding: 36px 38px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f4efe7; border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.auth-tabs a { text-align: center; padding: 9px 10px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--pt-muted); }
.auth-tabs a.active { background: #fff; color: var(--pt-ink); box-shadow: 0 2px 8px rgba(60, 40, 10, .12); }
.auth-main h1 { font-size: 32px !important; margin: 0 0 4px; }
.auth-main .auth-lead { color: var(--pt-muted); font-size: 14px; margin-bottom: 20px; }
.auth-main .form-label { font-size: 13px; margin-bottom: 4px; }
.auth-main .form-control { padding: .7rem .95rem; }
.auth-main .btn-lg { width: 100%; margin-top: 6px; }
.auth-legal { font-size: 12px; color: var(--pt-muted); text-align: center; margin: 12px 0 0; }
.auth-switch { text-align: center; font-size: 14px; color: var(--pt-muted); margin: 18px 0 0; }
.auth-switch a { font-weight: 600; }
@media (max-width: 767px) {
    .auth-wrap { grid-template-columns: 1fr; border-radius: 20px; }
    .auth-side { padding: 24px 22px; gap: 10px; }
    .auth-side ul, .auth-side p { display: none; }
    .auth-side { flex-direction: row; align-items: center; }
    .auth-side h2 { font-size: 24px; }
    .auth-side .auth-logo { width: 44px; height: 44px; }
    .auth-main { padding: 24px 22px; }
}

/* Редакторът в портала – избраното е в златисто, не в синьо */
body.portal .pick-body { border-radius: 14px !important; }
body.portal .pick input:checked + .pick-body { border-color: var(--pt-gold-d) !important; box-shadow: 0 0 0 3px rgba(184, 146, 90, .28); background: #fffaf2; }
body.portal .theme-option:has(input:checked) { border-color: var(--pt-gold-d); background: #fffaf2; }
body.portal .photo-drop:hover, body.portal .photo-drop.over { border-color: var(--pt-gold); background: #fffaf2; }
body.portal .bg-own-upload > summary { color: var(--pt-gold-d); }
body.portal .cover-uses li.current::marker { color: var(--pt-gold-d); }
body.portal .fx-card input:checked + .pick-body .fx-state::after { color: var(--pt-green); font-weight: 600; }

/* Горна лента на телефон: бутоните се пренасят, не се режат */
@media (max-width: 575px) {
    body.portal .pt-nav.navbar { flex-wrap: wrap; }
    body.portal .pt-nav .container-xl { flex-wrap: wrap; gap: 8px; align-items: center; }
    body.portal .pt-nav .navbar-brand { margin-right: auto; }
    body.portal .pt-nav .btn-sm { padding: .3rem .55rem; font-size: 12.5px; }
    body.portal .pt-nav .d-flex { flex: 1 1 auto; min-width: 0; flex-wrap: wrap !important; justify-content: flex-end; gap: 6px !important; }
    body.portal .pt-nav .pt-hide-xs { display: none; }
}

/* Забравена / нова парола – една колона */
.auth-wrap.auth-narrow { max-width: 480px; grid-template-columns: 1fr; }
.auth-narrow .auth-main { padding: 34px 34px 30px; }
.auth-narrow .auth-icon { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(120, 90, 40, .2); }
.auth-sent { background: #e8f3ea; border: 1px solid #c6e2cc; color: #23502f; border-radius: 14px; padding: 14px 16px; font-size: 14px; }
@media (max-width: 575px) { .auth-narrow .auth-main { padding: 24px 20px; } }

/* Напомняне за непотвърден имейл */
.verify-bar { background: #fff6e0; border-bottom: 1px solid #f0dcae; color: #6b5020; font-size: 13.5px; padding: 8px 0; }
.verify-bar .btn-link { font-size: 13.5px; font-weight: 600; color: #8a5a00; }

/* Логото в портала */
body.portal .pt-brand .pt-logo { height:38px; width:auto; border-radius:0; }
@media (max-width: 575px) { body.portal .pt-brand .pt-logo { width:auto; height:30px; } }

/* Превключвател на езика на сайта */
.site-lang { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid #e3d6c1; background: #fff; }
.site-lang a { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #6b5a40; text-decoration: none; letter-spacing: .04em; }
.site-lang a.on { background: #2f2a24; color: #fff; }

@media (max-width: 575px) {
    body.portal .pt-nav .pt-logo { height: 30px; width: auto; }
    body.portal .pt-nav .btn-sm { white-space: nowrap; padding: .28rem .5rem; font-size: 12px; }
    body.portal .pt-nav .site-lang { flex: none; }
    body.portal .pt-nav .site-lang a { padding: 3px 6px; font-size: 11px; }
}
@media (max-width: 420px) {
    body.portal .pt-nav .pt-logo { height: 26px; }
    body.portal .pt-nav .btn-sm { padding: .26rem .42rem; font-size: 11.5px; }
}
