/* Fiók: fejléc ikon, felugró belépés/regisztráció, saját oldal. A színek az adminból jönnek (CSS változók). */

.header-inner .brand { margin-right: auto; }

.acct-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: 0 0 auto;
    color: var(--color-text); text-decoration: none; position: relative;
    border: 1px solid var(--color-border); border-radius: var(--radius);
    background: transparent;
}
.acct-btn:hover { color: var(--color-on-primary); background: var(--color-primary); border-color: var(--color-primary); }
.acct-btn.is-in { color: var(--color-primary); border-color: var(--color-primary); }
.acct-btn.is-in:hover { color: var(--color-on-primary); }
.acct-btn.is-in::after {
    content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px;
    background: var(--color-primary); border: 2px solid var(--color-header-bg); border-radius: 50%;
}
.header-inner .nav { margin-right: 14px; }

/* ---------- Felugró ablak ---------- */
.acct-modal {
    position: fixed; inset: 0; z-index: 200; overflow-y: auto;
    background: rgba(0, 0, 0, .65);
    display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 40px;
}
.acct-modal[hidden] { display: none; }
body.acct-lock { overflow: hidden; }
.acct-dialog {
    position: relative; width: 100%; max-width: 460px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary); border-radius: var(--radius); padding: 22px;
}
.acct-close {
    position: absolute; top: 8px; right: 10px; width: 36px; height: 36px;
    border: 0; background: transparent; color: var(--color-muted); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.acct-close:hover { color: var(--color-primary); }

.acct-page { max-width: 480px; }
.acct-page .acct-card { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary); border-radius: var(--radius); padding: 22px; }

/* ---------- Kártya: fülek, űrlap ---------- */
.acct-tabs { display: flex; gap: 0; margin: 0 28px 18px 0; border-bottom: 1px solid var(--color-border); }
.acct-tabs button {
    flex: 1; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
    padding: 10px 6px; color: var(--color-muted); font: inherit; font-weight: 700; cursor: pointer;
}
.acct-tabs button.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.acct-page .acct-tabs { margin-right: 0; }

.acct-pane[hidden], [data-reg-block][hidden] { display: none; }

.f-row { margin-bottom: 14px; }
.f-row label { display: block; font-size: .85rem; color: var(--color-muted); margin-bottom: 4px; }
.f-row input[type="text"], .f-row input[type="email"], .f-row input[type="password"] {
    width: 100%; padding: 10px 12px; font: inherit; color: var(--color-text);
    background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.f-row input:focus { outline: 2px solid var(--color-primary); outline-offset: 0; border-color: var(--color-primary); }
.f-row input[readonly] { color: var(--color-muted); background: var(--color-header-bg); }
.f-inline { display: flex; gap: 8px; }
.f-inline input { flex: 1; min-width: 0; }
.f-inline .btn { padding: 8px 16px; white-space: nowrap; }
.f-help { display: block; margin-top: 4px; color: var(--color-muted); font-size: .8rem; }
.f-status { margin-top: 6px; font-size: .9rem; min-height: 1.2em; }
.f-status.ok { color: var(--color-primary); }
.f-status.bad { color: #ff7b7b; }
.f-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: .95rem; cursor: pointer; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.f-error { background: rgba(255, 90, 90, .1); border: 1px solid #ff7b7b; color: #ffb3b3; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; font-size: .92rem; }
.f-notice { background: rgba(98, 245, 95, .07); border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; font-size: .92rem; color: var(--color-text); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
    display: block; text-align: center; padding: 10px 8px; font-size: .88rem; font-weight: 700; line-height: 1.3;
    border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-muted); background: var(--color-bg);
}
.seg input:checked + span { color: var(--color-on-primary); background: var(--color-primary); border-color: var(--color-primary); }
.seg input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.acct-submit { width: 100%; text-align: center; margin-top: 4px; }

/* ---------- Saját oldal ---------- */
.acct-info { margin: 24px 0; }
.acct-big { font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 6px 0 2px; }
.acct-of { font-size: 1rem; font-weight: 400; color: var(--color-muted); }
.acct-tone { color: var(--color-muted); font-weight: 700; }
.acct-tone.ok { color: var(--color-primary); }
.acct-tone.warn { color: #ffc857; }
.acct-tone.bad { color: #ff7b7b; }
.acct-logout { margin-top: 26px; }

@media (max-width: 800px) {
    .header-inner .nav { margin-right: 0; }
    .header-inner .nav-toggle { order: 3; }
    .acct-btn { order: 2; }
    .acct-modal { padding-top: 3vh; }
}

.f-link{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;opacity:.85}
.f-link:hover{opacity:1}
.f-alt{margin:14px 0 0;text-align:center;font-size:.9em}
.f-title{margin:0 0 12px}
[data-turnstile]{min-height:0}

.acct-visits { margin: 24px 0; }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 14px 0 20px; }
.acct-mid { font-size: 1.25rem; font-weight: 800; line-height: 1.5; margin-top: 8px; }
.acct-list { list-style: none; margin: 10px 0 18px; padding: 0; }
.acct-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.acct-list li span { color: var(--color-muted); font-weight: 700; }
.acct-month { margin: 28px 0 0; font-size: 1.15rem; }
.acct-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0; }
@media (max-width: 600px) { .acct-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Oldalsáv + naptár ---------- */
.acct-shell { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; max-width: 980px; }
.acct-side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.acct-side a { display: block; padding: 11px 14px; border-radius: var(--radius); color: var(--color-muted); font-weight: 700; border-left: 3px solid transparent; }
.acct-side a:hover { color: var(--color-text); text-decoration: none; background: var(--color-surface); }
.acct-side a.active { color: var(--color-primary); background: var(--color-surface); border-left-color: var(--color-primary); }
.acct-main { min-width: 0; max-width: 720px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.cal-title { font-size: 1.3rem; font-weight: 800; text-transform: capitalize; }
.cal-disabled { opacity: .3; cursor: default; }
.cal-card { padding: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-wd div { text-align: center; color: var(--color-muted); font-size: .8rem; font-weight: 700; padding-bottom: 4px; }
.cal-cell { display: flex; justify-content: center; }
.cal-dot { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: .9rem; }
.cal-dot.on { background: var(--color-primary); color: var(--color-on-primary); }
.cal-dot.off { background: var(--color-border); color: var(--color-muted); }
.cal-dot.future { opacity: .4; }
.cal-dot.today { outline: 2px solid var(--color-text); outline-offset: 2px; }
.cal-dot.small { width: 14px; height: 14px; vertical-align: middle; margin-right: 6px; }
.cal-legend { display: flex; gap: 20px; margin-top: 12px; color: var(--color-muted); font-size: .88rem; }
.cal-list .cal-range { text-align: right; font-weight: 700; }
.cal-list .cal-range em { display: block; font-style: normal; font-weight: 400; color: var(--color-muted); font-size: .85rem; }
@media (max-width: 800px) {
    .acct-shell { grid-template-columns: 1fr; gap: 16px; }
    .acct-side { flex-direction: row; position: static; gap: 8px; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
    .acct-side a { border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 8px 10px; }
    .acct-side a.active { border-bottom-color: var(--color-primary); background: none; }
    .cal-dot { width: 34px; height: 34px; }
}

/* ---------- Megtekintés felhasználóként ---------- */
.imp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px; background: #14181c; color: #fff; border-bottom: 2px solid #ffb020; font-weight: 700; }
.imp-bar strong { color: #ffb020; }
.imp-bar form { margin: 0; }
.imp-leave { background: #ffb020; color: #1a1300; border: 0; border-radius: var(--radius, 4px); padding: 7px 16px; font-weight: 800; cursor: pointer; font-size: .92rem; }
.imp-leave:hover { filter: brightness(.92); }
