/* Вход, клиентски профил, поверителност, 404 и админ панел. Надгражда site.css. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-muted); }
.danger { color: var(--danger); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.page-h1 { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 40px; line-height: 1.15; color: var(--ink); }
.page-h1 small { font-size: 20px; font-style: normal; font-weight: 400; }
.hand--page { --s: 96px; }
.hand--page .hand__line { font-size: 40px; }
.linkbtn { padding: 0; min-height: 32px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkbtn--danger { color: var(--danger); }
.fld textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.note { margin: 0 0 16px; padding: 12px 16px; border-radius: 6px; font-size: 14px; line-height: 21px; }
.note--ok { background: var(--mint); color: var(--success); }
.note--err { background: #fbe9e7; color: var(--danger); }
.note--warn { background: var(--cream-deep); color: var(--gold-ink); border: 1px solid var(--gold-line); }
.note a { color: inherit; font-weight: 600; }

.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 35px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.pill--lg { padding: 6px 16px; font-size: 14px; }
.pill--new { background: var(--blush); color: #7e2f41; }
.pill--contacted { background: var(--gold-soft); color: var(--gold-ink); }
.pill--confirmed { background: var(--mint); color: var(--success); }
.pill--completed { background: #e3e8f0; color: #33415c; }
.pill--declined { background: #fbe9e7; color: var(--danger); }
.pill--cancelled { background: var(--paper-sunk); color: var(--ink-muted); }
.pill--blocked { background: repeating-linear-gradient(45deg, #ece6da, #ece6da 6px, #f5f1e8 6px, #f5f1e8 12px); color: var(--ink-muted); }
.pill--mywedding { background: #e6eef7; color: #2d4a6b; }

.panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.panel__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 16px; font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 22px; list-style: none; cursor: default; }
details > summary.panel__h { cursor: pointer; margin: 0; }
details[open] > summary.panel__h { margin-bottom: 16px; }
.panel__h a { font-family: var(--font-sans); font-style: normal; font-size: 13px; font-weight: 600; }

/* ---------- Вход ---------- */
.page main { background: var(--blush-light); }
.auth { min-height: calc(100vh - 96px - 300px); padding: 72px 16px 96px; display: flex; justify-content: center; align-items: flex-start; }
.auth__card { width: 100%; max-width: 480px; padding: 40px; background: #fff; border-top: 3px solid var(--sage); border-radius: 2px; box-shadow: 0 24px 60px rgba(168, 71, 92, .12); display: flex; flex-direction: column; gap: 20px; }
.auth__card--center { align-items: center; text-align: center; }
.auth__lead { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.auth__or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .12em; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__foot { margin: 0; font-size: 14px; color: var(--ink-muted); }
.auth .btn { width: 100%; }

/* Вход: бяла карта с разделен долен ред. */
.auth--login { background: #f6f7f9; align-items: flex-start; padding-top: 96px; }
.login { width: 100%; max-width: 548px; background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(41, 39, 37, .06), 0 10px 24px rgba(41, 39, 37, .08); }
.login__body { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 28px; }
.login__title { margin: 0; font-family: var(--font-sans); font-size: 32px; line-height: 1.2; font-weight: 700; text-align: center; color: var(--ink); }
.login__form { display: flex; flex-direction: column; gap: 16px; }
.login .fld label { font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.login .fld input { height: 56px; padding: 0 24px; border-color: var(--line); border-radius: 8px; font-size: 18px; }
.login .fld input:focus { border-color: var(--gold); outline: 2px solid var(--gold-soft); outline-offset: 0; }
.login__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.login__link { padding: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--gold-deep); cursor: pointer; }
.login__link:hover { text-decoration: underline; }
.login__default { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.login__chk { gap: 16px; font-size: 16px; }
.login__submit { height: 56px; border: 0; border-radius: 8px; background: #ec7428; color: #fff; font: inherit; font-size: 20px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.login__submit:hover { background: #d8641c; }
.login__foot { margin: 0; padding: 28px 24px; border-top: 1px solid var(--line); text-align: center; font-size: 16px; }
.login__foot a { color: var(--gold-deep); text-decoration: none; }
.login__foot a:hover { text-decoration: underline; }

.dl { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.dl dt { color: var(--ink-muted); }
.dl dd { margin: 0; }

/* Клиентски профил: бели карти в стила на формата за вход. */
.acct { max-width: 1160px; margin: 0 auto; padding: 56px 32px 96px; display: flex; flex-direction: column; gap: 32px; }
.acct__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.acct__hello { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.acct__hello h1 { margin: 0; font-family: var(--font-serif); font-size: 40px; line-height: 1.15; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.acct__hello h1 span { color: var(--gold); font-style: italic; }
.acct__hello p { margin: 0; font-size: 15px; color: var(--ink-muted); overflow-wrap: anywhere; }
.acct__logout { height: 42px; padding: 0 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.acct__logout:hover { border-color: var(--rose); color: var(--rose); }
.acct__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.acct__content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.acct__content > .note { margin: 0; }
.acct-nav { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 2px 6px rgba(41, 39, 37, .05), 0 10px 24px rgba(41, 39, 37, .06); }
.acct-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.acct-nav a .ico { color: var(--ink-muted); flex-shrink: 0; }
.acct-nav a:hover { background: var(--paper); color: var(--ink); }
.acct-nav a[aria-current] { background: var(--blush-light); color: var(--rose); font-weight: 600; }
.acct-nav a[aria-current] .ico { color: var(--rose); }
.acct__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acct__h2 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 24px; color: var(--ink); }
.acct__new { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; white-space: nowrap; }
.acct__new:hover { text-decoration: underline; }
.acct__call { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--ink-muted); }
.acct__call svg { color: var(--gold); }
.acct__call a { font-family: var(--font-serif); font-weight: 700; color: var(--gold-deep); text-decoration: none; }

.acct-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 6px rgba(41, 39, 37, .05), 0 10px 24px rgba(41, 39, 37, .06); }
.acct-empty { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.acct-empty p { margin: 0; color: var(--ink-muted); }
.acct-empty__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); }

.acct-inq { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.acct-inq__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acct-inq__date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.acct-inq h3 { margin: 6px 0 0; font-family: var(--font-serif); font-weight: 700; font-size: 26px; line-height: 1.2; }
.acct-inq__dl { margin: 0; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.acct-inq__dl div { flex: 1 1 150px; padding: 12px 16px; background: #fff; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acct-inq__dl .acct-inq__wide { flex-basis: 100%; }
.acct-inq__dl dt { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.acct-inq__dl dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.acct-inq__dl .acct-inq__price { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--gold-deep); }
.acct-inq__cancel { margin-top: -6px; }
.acct-inq__pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acct-inq__hint { margin: 0; padding: 12px 16px; border-radius: 8px; border-left: 3px solid var(--blush-line); background: var(--blush-light); font-size: 14px; line-height: 21px; color: var(--ink-on-blush); }
.acct-inq__hint--contacted { border-left-color: var(--gold-line); background: var(--cream); }
.acct-inq__hint--confirmed, .acct-inq__hint--completed { border-left-color: var(--sage); background: var(--mint); color: var(--success); }
.acct-inq__hint--declined, .acct-inq__hint--cancelled { border-left-color: var(--line-strong); background: var(--paper); color: var(--ink-muted); }

/* Под-блокове в картата на събитието: снимки, плащане, фактура. */
.acct-box { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.acct-box h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.acct-box--muted { flex-direction: row; align-items: center; gap: 10px; background: var(--paper); border-style: dashed; font-size: 14px; color: var(--ink-muted); }
.acct-box__note { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.acct-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--gold); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.acct-btn:hover { background: var(--gold); color: #fff; }
.acct-btn--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.acct-btn--dark:hover { background: #000; border-color: #000; }
.acct-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.acct-link:hover { text-decoration: underline; }

.acct-gal { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; background: var(--mint); border-color: #c7dccf; }
.acct-gal h4 { color: var(--success); }
.acct-gal__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.acct-gal__text p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink); }
.acct-qr { flex: 0 1 auto; background: #fff; border: 1px solid #c7dccf; border-radius: 8px; }
.acct-qr summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.acct-qr summary::-webkit-details-marker { display: none; }
.acct-qr summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.acct-qr[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acct-qr__body { width: 240px; padding: 4px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.acct-qr__body img { width: 180px; height: 180px; border-radius: 4px; }
.acct-qr__body p { margin: 0; font-size: 12px; line-height: 17px; color: var(--ink-muted); }

.acct-choice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.acct-choice__opt { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px; text-align: left; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.acct-choice__opt:hover { border-color: var(--line-strong); }
.acct-choice__opt .ico { flex-shrink: 0; color: var(--ink-muted); }
.acct-choice__opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-choice__opt b { font-size: 14px; font-weight: 600; }
.acct-choice__opt small { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.acct-choice__opt[aria-pressed="true"] { border-color: var(--sage); background: var(--mint); }
.acct-choice__opt[aria-pressed="true"] .ico { color: var(--success); }
.acct-bank { margin: 0; padding: 12px 14px; display: grid; gap: 6px; background: var(--paper); border-radius: 8px; font-size: 14px; }
.acct-bank div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.acct-bank dt { color: var(--ink-muted); }
.acct-bank dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.acct-bank__iban { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.acct-inv { display: flex; flex-direction: column; gap: 12px; }
.acct-inv__on { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--success); }
.acct-inv__to { margin: 0; font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.acct-inv__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }

.gal-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--gold-line); border-radius: 12px; background: var(--cream); text-align: center; cursor: pointer; color: var(--gold-deep); transition: border-color .15s, background-color .15s; }
.gal-drop:hover { border-color: var(--gold); background: var(--cream-deep); }
.gal-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gal-drop b { font-size: 15px; color: var(--ink); }
.gal-drop small { font-size: 12.5px; color: var(--ink-muted); }
.gal-picked { display: flex; flex-direction: column; gap: 6px; }
.gal-picked:empty { display: none; }
.gal-picked__row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.gal-picked__row img, .gal-picked__row > span:first-child { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; object-fit: cover; border-radius: 6px; background: var(--paper-sunk); color: var(--ink-muted); }
.gal-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gal-admin__item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; scroll-margin-top: 90px; }
.gal-admin__item:target { box-shadow: 0 0 0 2px var(--gold); }
.gal-admin__item.is-off .gal-admin__media > img, .gal-admin__item.is-off .gal-ph { opacity: .45; }
.gal-admin__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-sunk); }
.gal-admin__media > img { width: 100%; height: 100%; object-fit: cover; }
.gal-admin__kind { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 35px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 600; }
.gal-admin__off { position: absolute; right: 8px; top: 8px; padding: 3px 9px; border-radius: 35px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.gal-admin__noframe { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 35px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 11px; font-weight: 600; }
.gal-admin__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 4px; min-width: 0; }
.gal-admin__body b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-admin__body small { font-size: 12px; line-height: 17px; }
.gal-admin__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 4px 12px 10px; margin-top: auto; }
.gal-admin__acts .linkbtn { font-size: 13px; }
.icon-btn { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cl-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cl-admin__item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; scroll-margin-top: 90px; }
.cl-admin__item:target { box-shadow: 0 0 0 2px var(--gold); }
.cl-admin__logo { position: relative; display: grid; place-items: center; height: 110px; padding: 12px; border-radius: 8px; background: repeating-conic-gradient(#f3f1ec 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.cl-admin__logo img { max-width: 100%; max-height: 80px; object-fit: contain; }
.cl-admin__item.is-off .cl-admin__logo img { opacity: .4; }
.cl-admin__form { gap: 8px; }
.cl-admin__form .fld label { font-size: 12px; }
.cl-admin__form .fld input { height: 38px; font-size: 14px; }
.cl-admin .gal-admin__acts { padding: 0; }
.mv { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px 24px; align-items: start; }
.mv__preview { display: flex; flex-direction: column; gap: 6px; }
.mv__preview video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #000; }
.mv > form:last-child:not([data-mv-form]) { grid-column: 2; }
.gal-edit { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.gal-edit > img, .gal-edit > .gal-ph { width: 180px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
/* Празна корица за пост без снимка: цветовете на мрежата. */
.gal-ph { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; background: linear-gradient(135deg, var(--gold), var(--rose)); }
.gal-ph--instagram { background: radial-gradient(circle at 30% 110%, #fdd66b 0%, #f77737 25%, #e1306c 50%, #833ab4 80%); }
.gal-ph--tiktok { background: linear-gradient(135deg, #111 55%, #25f4ee 55% 58%, #111 58% 80%, #fe2c55 80%); }
.gal-ph--facebook { background: linear-gradient(135deg, #1877f2, #0a4fb4); }
.gal-ph--youtube { background: linear-gradient(135deg, #ff0033, #b3001e); }
.qr-prev { display: flex; align-items: center; gap: 16px; margin: 16px 0; padding: 12px; background: var(--paper); border-radius: 6px; font-size: 14px; }
.qr-prev img { background: #fff; }
.banks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.banks__item { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.banks__item.is-default { border-color: var(--sage); background: #f6faf7; }
.banks__item > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.banks__item .pill { align-self: flex-start; }
.banks__iban { font-variant-numeric: tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; }
.banks__acts { display: flex; gap: 16px; align-items: center; }
.banks__add summary { list-style: none; width: max-content; }
.banks__add summary::-webkit-details-marker { display: none; }
.banks__add[open] summary { margin-bottom: 16px; }
.dl .row select { height: 36px; max-width: 100%; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; }

.acct-form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.acct-form--narrow { max-width: 520px; }
.acct-form__head { display: flex; flex-direction: column; gap: 6px; }
.acct-form__head p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.acct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.acct-form__grid .fld--wide { grid-column: 1 / -1; }
.acct-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.acct-form__foot .acct-form__btn { margin: 0 0 0 auto; padding: 0 32px; }
.acct-form .fld { gap: 6px; }
.acct-form .fld label { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.acct-form .fld input, .acct-form .fld select { height: 48px; padding: 0 16px; border-color: var(--line); border-radius: 8px; }
.acct-form .fld input:focus, .acct-form .fld select:focus { border-color: var(--gold); outline: 2px solid var(--gold-soft); outline-offset: 0; }
.acct-form .fld input[readonly] { background: var(--paper); color: var(--ink-muted); cursor: default; }
.acct-form .fld input[readonly]:focus { border-color: var(--line); outline: 0; }
.acct-form__btn { height: 48px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--gold); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.acct-form__btn:hover { background: var(--gold-deep); }

/* ---------- Клиентски профил ---------- */

.prose { max-width: 760px; margin: 0 auto; padding: 72px 16px 96px; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin: 20px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--gold); }
.prose p { margin: 0; font-size: 15px; line-height: 26px; }

/* ---------- Админ ---------- */
.adm { background: var(--paper); }
.adm__top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 0 32px; min-height: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adm__top .brand__logo { height: 36px; }
.adm__nav { display: flex; gap: 4px; flex-grow: 1; flex-wrap: wrap; }
.adm__nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 35px; font-size: 14px; font-weight: 600; text-decoration: none; }
.adm__nav a:hover { background: var(--blush-light); }
.adm__nav a[aria-current] { background: var(--gold); color: #fff; }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 10px; background: var(--rose); color: #fff; font-size: 11px; }
.adm__me { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.drawer--adm .drawer__nav a[aria-current] { color: var(--rose); font-weight: 600; }
.drawer--adm .drawer__nav a[aria-current] .drawer__ico { background: var(--blush-light); color: var(--rose); }
.drawer__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--paper); color: var(--gold-deep); flex-shrink: 0; }
.drawer--adm .drawer__nav .drawer__ico .ico { color: inherit; transform: none; }
.drawer__row--form { margin: 0; }
.drawer__row--form button { all: unset; display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.drawer__row--form small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.adm__main { max-width: 1320px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.adm__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm__head p { margin: 6px 0 0; }
.adm__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.adm__cols--detail { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.crumbs { margin: 0; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-line); text-decoration: none; }
.kpi span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.kpi b { font-family: var(--font-serif); font-size: 36px; line-height: 1.1; }
a.kpi:hover { border-top-color: var(--rose); }
/* Табло: два еднакви списъка (последни запитвания / предстоящи събития). */
.dash-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.dash-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(41, 39, 37, .05), 0 8px 22px rgba(41, 39, 37, .05); overflow: hidden; }
.dash-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dash-card__head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 700; font-size: 20px; }
.dash-card__head h2 .ico { color: var(--gold); }
.dash-card__head a { flex-shrink: 0; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.dash-card__head a:hover { text-decoration: underline; }
.dash-card__empty { margin: 0; padding: 28px 22px; color: var(--ink-muted); font-size: 14px; }
.dl-list { display: flex; flex-direction: column; padding: 6px 10px 10px; }
.dl-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.dl-item + .dl-item::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--line); }
.dl-item:hover { background: var(--paper); }
.dl-item:hover::before, .dl-item:hover + .dl-item::before { opacity: 0; }
.dl-item__date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 56px; border-radius: 10px; background: var(--cream); border: 1px solid var(--gold-line); }
.dl-item__date b { font-family: var(--font-serif); font-size: 22px; line-height: 1; }
.dl-item__date small { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.dl-item__date.is-soon { background: var(--blush-light); border-color: var(--blush-line); }
.dl-item__date.is-soon small { color: var(--rose); }
.dl-item__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dl-item__main b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-item__main small { font-size: 13px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-item__main .dl-item__meta { font-size: 12px; color: var(--line-strong); }
.dl-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.dl-item__side b { font-family: var(--font-serif); font-size: 16px; font-variant-numeric: tabular-nums; color: var(--gold-deep); white-space: nowrap; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 10px 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--gold-line); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.is-off td { opacity: .55; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl--price tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); white-space: nowrap; }
.in-num { width: 90px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 15px; text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filters .fld { min-width: 160px; }
.filters .fld:first-of-type { flex: 1 1 240px; }
.filters .btn { height: 46px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 .fld--wide { grid-column: span 2; }
.status-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.status-opt input { position: absolute; opacity: 0; }
.status-opt .pill { padding: 8px 14px; cursor: pointer; border: 2px solid transparent; }
.status-opt input:checked + .pill { border-color: var(--ink); }
.status-opt input:focus-visible + .pill { outline: 2px solid var(--focus); outline-offset: 2px; }
.log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pager { display: flex; justify-content: center; gap: 24px; padding-top: 16px; font-size: 14px; }
.code { width: 100%; padding: 10px 12px; font: 13px/1.5 ui-monospace, Menlo, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; white-space: pre-wrap; word-break: break-all; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cal__wd { padding: 8px; background: var(--cream); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.cal__day { min-height: 116px; padding: 6px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.cal__day--out { background: var(--paper); }
.cal__day.is-past { background: #fcfbf8; }
.cal__day.is-today .cal__n { background: var(--rose); color: #fff; }
.cal__n { align-self: flex-start; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; font-weight: 600; text-decoration: none; }
.cal__n:hover { background: var(--blush-light); }
.cal__ev { display: block; padding: 3px 6px; border-radius: 4px; font-size: 12px; line-height: 16px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__ev button { all: unset; cursor: pointer; display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Годишен преглед — компактни месеци, 6 на ред. */
.yr { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.yr__head { display: flex; align-items: center; gap: 12px; }
.yr__head b { font-family: var(--font-serif); font-size: 20px; }
.yr__head .muted { margin-left: auto; font-size: 13px; }
.yr__nav { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; color: var(--ink); font-size: 14px; }
.yr__nav:hover { border-color: var(--gold); color: var(--gold-deep); }
.yr__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 14px; }
.yr__m { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background-color .15s, border-color .15s; }
.yr__m:hover { background: var(--paper); }
.yr__m.is-on { border-color: var(--gold); background: var(--cream); }
.yr__m.is-past { opacity: .55; }
.yr__name { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.yr__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.yr__days i { display: grid; place-items: center; justify-self: center; width: 19px; height: 19px; font-style: normal; font-size: 10px; font-variant-numeric: tabular-nums; color: var(--ink-muted); border-radius: 50%; position: relative; }
.yr__days .yr__wd { height: 14px; font-size: 8px; font-weight: 700; color: var(--line-strong); }
.yr__d.st--new, .yr__d.st--contacted, .yr__d.st--confirmed, .yr__d.st--completed, .yr__d.st--blocked, .yr__d.st--mywedding { color: #fff; font-weight: 700; }
.yr__d.st--new { background: var(--rose); }
.yr__d.st--contacted { background: var(--gold); }
.yr__d.st--confirmed { background: var(--success); }
.yr__d.st--completed { background: #33415c; }
.yr__d.st--blocked { background: var(--line-strong); }
.yr__d.st--mywedding { background: #2d4a6b; }
.yr__d.is-multi::after { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px #fff; }
.yr__d.is-today { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose); font-weight: 700; }
@media (max-width: 1279px) { .yr__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cal__hit, .cal-agenda { display: none; }
.sdot { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.sdot--new { background: var(--rose); }
.sdot--contacted { background: var(--gold); }
.sdot--confirmed { background: var(--success); }
.sdot--completed { background: #33415c; }
.sdot--blocked { background: var(--line-strong); }
.sdot--mywedding { background: #2d4a6b; }

@media (max-width: 1023px) {
  .hand--page { --s: 64px; }
  .hand--page .hand__line { font-size: 28px; }
  .auth { padding: 40px 16px 64px; }
  .auth__card { padding: 24px 20px; }
  .auth--login { padding-top: 40px; }
  .login__body { padding: 28px 20px 24px; gap: 22px; }
  .login__title { font-size: 24px; }
  .login .fld input { height: 50px; padding: 0 16px; font-size: 16px; }
  .login__submit { height: 50px; font-size: 18px; }
  .login__foot { padding: 20px 16px; font-size: 15px; }
  .acct { padding: 32px 16px 64px; gap: 24px; }
  .acct__head { padding-bottom: 20px; }
  .acct__hello h1 { font-size: 30px; }
  .acct__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* Менюто става решетка 2×2, за да се виждат всички раздели. */
  .acct-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px; }
  .acct-nav a { min-height: 44px; padding: 0 8px; gap: 6px; font-size: 13.5px; white-space: nowrap; }
  .acct-inq { padding: 20px; gap: 18px; }
  .acct-inq h3 { font-size: 22px; }
  .acct-inq__pay { grid-template-columns: minmax(0, 1fr); }
  .acct-box { padding: 16px; }
  .acct-qr { flex-basis: 100%; }
  .acct-qr__body { width: auto; }
  .acct-form { padding: 20px; }
  .acct-form__grid { grid-template-columns: minmax(0, 1fr); }
  .acct-form__foot .acct-form__btn { width: 100%; }
  .acct__h2 { font-size: 22px; }
  .acct__bar { flex-wrap: wrap; }
  /* Админ на телефон: лого + бутон за меню; менюто е като на сайта. */
  .adm__top { min-height: 68px; padding: 0 16px; justify-content: space-between; flex-wrap: nowrap; }
  .adm__nav, .adm__me { display: none; }
  .adm__top .brand__logo { height: 34px; }
  .adm__top .brand__by { display: inline; font-size: 10px; }
  .adm__main { padding: 20px 16px; }
  .adm__cols, .adm__cols--detail { grid-template-columns: minmax(0, 1fr); }
  .gal-add { grid-template-columns: minmax(0, 1fr); }
  .gal-edit { grid-template-columns: minmax(0, 1fr); }
  .mv { grid-template-columns: minmax(0, 1fr); }
  .mv > form:last-child:not([data-mv-form]) { grid-column: auto; }
  .gal-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dash-card__head { padding: 14px 16px; }
  .dash-card__head h2 { font-size: 17px; gap: 8px; }
  .dl-list { padding: 4px 6px 8px; }
  .dl-item { padding: 10px; gap: 12px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid2 .fld--wide { grid-column: auto; }
  .yr { display: none; }
  /* Календар на телефон: компактна месечна мрежа с точки + списък под нея. */
  .cal { border-radius: 12px; overflow: hidden; }
  .cal__wd { padding: 8px 0; text-align: center; font-size: 10px; letter-spacing: .06em; }
  .cal__day { position: relative; min-height: 52px; padding: 4px 0 6px; align-items: center; gap: 3px; }
  .cal__n { align-self: center; width: 30px; height: 30px; font-size: 14px; }
  .cal__day > .cal__ev { display: none; }
  .cal__hit { display: flex; position: absolute; inset: 0; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
  .cal__dots { display: flex; gap: 3px; }
  .cal__dots .sdot { width: 6px; height: 6px; }
  .cal__day.has-ev .cal__n { position: relative; z-index: 1; pointer-events: none; font-weight: 700; }
  .cal-agenda { display: flex; flex-direction: column; gap: 10px; }
  .cal-agenda__day { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: 12px; scroll-margin-top: 80px; }
  .cal-agenda__day:target { box-shadow: 0 0 0 2px var(--gold); }
  .cal-agenda__day.is-past { opacity: .7; }
  .cal-agenda__date { display: flex; flex-direction: column; align-items: center; width: 40px; flex-shrink: 0; }
  .cal-agenda__date b { font-family: var(--font-serif); font-size: 24px; line-height: 1; }
  .cal-agenda__date span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
  .cal-agenda__list { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .cal-agenda__ev { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; }
  .cal-agenda__ev + .cal-agenda__ev { border-top: 1px solid var(--line); }
  .cal-agenda__ev > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .cal-agenda__ev b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-agenda__ev small { font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-agenda__ev > .ico { color: var(--line-strong); }
  .page-h1 { font-size: 30px; }
  .dl div { grid-template-columns: 100px 1fr; }
}
