/* 365 AUTO V4 correction 2 — original #008000 brand system */
:root{--blue:#008000;--cyan:#169b46;--green:#008000;--green-dark:#006400;--green-soft:#e7f5e7;--bg:#f4f8f6}a{color:var(--green)}.button,button{background:var(--green)}.button:hover,button:hover,.button:focus-visible,button:focus-visible{background:var(--green-dark)}.ghost{background:var(--green-soft);color:var(--green-dark)}.link{color:var(--green)}input:focus,select:focus,textarea:focus{outline-color:#00800038;border-color:var(--green)}input[type=checkbox],input[type=radio]{accent-color:var(--green)}.stats b,.access-code{color:var(--green)}.danger-button{background:var(--red)}.danger-button:hover{background:#9f2932}.site-header{height:auto;min-height:74px;display:block;padding-block:10px}.header-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;font-size:21px;font-weight:850}.brand img{display:block;width:42px;height:42px;object-fit:contain;margin-right:9px;border-radius:0}.brand-365{color:#fff}.brand-auto{color:var(--green);margin-left:5px}.main-nav{justify-content:flex-end;margin-top:-42px;margin-left:230px}.account-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.profile-link{display:flex;align-items:center;justify-content:center;gap:6px;min-width:42px;height:42px;padding:4px 8px;color:#fff;border:1px solid #506071;border-radius:4px}.profile-link svg{width:25px;height:25px;fill:none;stroke:#fff;stroke-width:2}.logout-button{width:46px;height:46px;padding:3px;border:1px solid #5d6670;border-radius:4px;background:transparent}.logout-button:hover,.logout-button:focus-visible{background:#263442}.power-ring{display:grid;place-items:center;width:36px;height:36px;margin:auto;border:3px solid #555;border-radius:50%;background:#d7282f;box-shadow:inset 0 0 0 3px #fff}.power-ring svg{width:23px;height:23px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round}.greeting{margin:0;color:#252d36;font-weight:800}.greeting span{color:var(--green)}.qr{min-width:180px;min-height:180px;overflow:visible}.qr svg,.qr canvas{display:block!important;width:180px!important;height:180px!important;max-width:100%;background:#fff}.access-pass .qr{width:200px;max-width:100%}.access-pass .qr svg,.access-pass .qr canvas{width:200px!important;height:200px!important}.service-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.service-detail dt{font-weight:800;color:var(--muted)}.service-detail dd{margin:3px 0}.detail-wide{grid-column:1/-1}.transfer-preview{max-width:850px;margin:30px auto}.transfer-history article{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e7ece9}.transfer-history article span{color:var(--muted)}.reminder-overdue{border-left:4px solid #dc6a32;padding-left:12px;background:#fff7ed}button[disabled]{opacity:.65;cursor:wait}.gift-note,.checkout-summary{padding:14px;margin:14px 0;border-radius:8px;background:var(--green-soft);color:#173a24}.delivery-options{border:1px solid #d6e5d6;border-radius:8px;margin:14px 0}.payment-options{display:grid;gap:8px;margin-bottom:14px}.summary-total{font-size:1.15rem}.checkout-card{max-width:720px}
@media(max-width:800px){.plan-grid,.sms-grid{grid-template-columns:1fr}.admin-plan-form{grid-template-columns:1fr}.site-header{padding:10px 14px}.header-top{width:100%}.main-nav{margin:9px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%}.main-nav a{text-align:center;padding:8px 5px;font-size:13px}.brand{font-size:18px}.brand img{width:38px;height:38px}.account-actions{gap:6px}.profile-link small{display:none}.profile-link{width:40px;height:40px;padding:2px}.logout-button{width:42px;height:42px}.power-ring{width:34px;height:34px}.public-control .share input{display:none}.public-control .share:before{content:'Публичният достъп е активен';font-weight:800;color:var(--green-dark)}.public-control .share{display:flex;flex-wrap:wrap}.service-detail dl{grid-template-columns:1fr}.detail-wide{grid-column:auto}.transfer-history article{display:block}.transfer-history article span{display:block}.qr,.access-pass .qr{margin-inline:auto;min-width:200px;min-height:200px}.qr svg,.qr canvas,.access-pass .qr svg,.access-pass .qr canvas{width:200px!important;height:200px!important}}

/* V4 correction 3: approved two-row header and layout-only fixes */
.site-header{display:block;height:auto;min-height:0;padding:12px max(24px,calc((100% - 1180px)/2))}
.header-top{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;min-width:0;align-items:center;flex:0 1 auto}
.brand img{flex:0 0 auto}
.account-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:auto}
.profile-link,.logout-button{display:grid;width:46px;min-width:46px;height:46px;min-height:46px;padding:7px;place-items:center;border:3px solid var(--green);border-radius:50%;background:transparent;color:#fff}
.profile-link svg,.logout-button svg{width:25px;height:25px}
.profile-link:hover,.profile-link:focus-visible,.profile-link.active,.logout-button:hover,.logout-button:focus-visible{border-color:var(--green);background:#ffffff12;color:#fff;outline:2px solid #ffffff66;outline-offset:2px}
.power-ring{display:grid;width:100%;height:100%;margin:0;place-items:center;border:0;border-radius:0;background:transparent;box-shadow:none}
.power-ring svg{width:27px;height:27px;fill:none;stroke:#e53935;stroke-width:2.8;stroke-linecap:round}
.main-nav{display:flex;width:100%;margin:12px 0 0;gap:10px}
.main-nav>a{display:flex;min-width:0;min-height:44px;flex:1 1 0;align-items:center;justify-content:center;text-align:center;color:#dbe5f0}
.main-nav>a:hover,.main-nav>a:focus-visible,.main-nav>a.active{color:#fff}
.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.plan-card{display:flex;min-width:0;flex-direction:column}
.plan-card .button{margin-top:auto}
.button:not(.ghost),.button:not(.ghost):visited{color:#fff}
.button:not(.ghost):hover,.button:not(.ghost):focus-visible,.button:not(.ghost):active{color:#fff}
.button.ghost,.button.ghost:visited{background:var(--green-soft);color:var(--green-dark)}
.button.ghost:hover,.button.ghost:focus-visible,.button.ghost:active{background:var(--green-dark);color:#fff}
@media(max-width:800px){
 .site-header{padding:10px 14px}
 .header-top{gap:10px}
 .brand{font-size:18px}
 .brand img{width:40px;height:40px;margin-right:7px}
 .profile-link,.logout-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:7px}
 .account-actions{gap:6px}
 .main-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
 .main-nav>a{min-width:0;padding:8px 4px;font-size:13px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
 .plan-grid{grid-template-columns:1fr}
}
@media(max-width:380px){
 .site-header{padding-inline:9px}
 .header-top{gap:6px}
 .brand{font-size:16px}
 .brand img{width:38px;height:38px;margin-right:5px}
 .brand-auto{margin-left:3px}
 .profile-link,.logout-button{width:42px;min-width:42px;height:42px;min-height:42px;padding:6px}
 .account-actions{gap:5px}
 .main-nav>a{font-size:12px;padding-inline:2px}
}

/* V4 correction 4: focused plan, reminder, transfer and footer presentation */
.usage-grid{display:flex;flex-wrap:wrap;gap:10px 24px}
.usage-grid>span{display:block}
.sms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sms-pack{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.sms-pack strong{white-space:nowrap;color:var(--green-dark)}
.reminder-action{padding:7px 10px;border-radius:7px;background:var(--red);color:#fff;font-size:13px}
.reminder-action:hover,.reminder-action:focus-visible{background:#9f2932}
.confirm-dialog{max-width:min(430px,calc(100vw - 32px))}
.transfer-invitations{display:grid;gap:8px;margin-top:16px}
.transfer-invitation{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dfe7e2;border-radius:8px;background:#f8fbf9}
.transfer-invitation strong{min-width:0;overflow-wrap:anywhere}
.transfer-invitation span{flex:0 0 auto;color:var(--muted)}
.transfer-invitation.transfer-cancelled,.transfer-invitation.transfer-expired{opacity:.7}
.site-footer{display:grid;gap:8px}
.footer-links{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}
.footer-links a{white-space:nowrap}
.footer-links a,.footer-links a:visited{color:#1c2530;font-weight:600}
.footer-links a:hover,.footer-links a:focus-visible{color:var(--green-dark);text-decoration:underline}
.legal-page{max-width:760px;margin-inline:auto}
.legal-page dl{display:grid;grid-template-columns:auto 1fr;gap:10px 18px}
.legal-page dt{font-weight:800}.legal-page dd{margin:0;overflow-wrap:anywhere}
@media(max-width:800px){
 .main-nav>a{font-weight:650}
 .usage-grid{display:grid;grid-template-columns:1fr;gap:7px}
 .sms-grid{grid-template-columns:1fr}
 .sms-pack{justify-content:flex-start}
 .sms-pack strong{margin-left:auto}
 .transfer-invitation{display:grid;gap:3px}
 .transfer-invitation span{display:block}
 .site-footer{padding-inline:14px}
 .footer-links{gap:5px 7px;font-size:14px}
 .legal-page dl{grid-template-columns:1fr;gap:2px}
 .legal-page dd{margin-bottom:10px}
}

/* Correction 6: transfer after-purchase checklist */
.after-purchase{scroll-margin-top:16px}.aftercare-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.aftercare-heading h2{margin-bottom:0}.aftercare-date{color:var(--muted);font-size:.9rem}.aftercare-card{display:grid;gap:12px}.aftercare-task{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px;border:1px solid #d9e5dc;border-left:5px solid var(--green);border-radius:8px;background:#fff}.aftercare-control{border-left-color:#6b7785;background:#f8faf9}.aftercare-task-copy{min-width:0}.aftercare-task h3{margin:5px 0 4px}.aftercare-task p{margin:0 0 5px;color:#3f4b45}.aftercare-task small{display:block;color:var(--muted)}.aftercare-task form{flex:0 0 auto}.aftercare-done{opacity:.72}.aftercare-status{font-weight:800;color:var(--green-dark);white-space:nowrap}.aftercare-disclaimer{margin:2px 0 0;padding-top:11px;border-top:1px solid #e5ebe7;color:var(--muted);font-size:.82rem;line-height:1.45}.kat-registration-card{max-width:680px}.kat-registration-form{display:grid;gap:16px}.kat-choice-actions{display:flex;gap:10px;flex-wrap:wrap}.new-plate-fields{padding:14px;border:1px solid #d9e5dc;border-radius:8px;background:var(--green-soft)}
@media(max-width:800px){.aftercare-heading{display:block}.aftercare-date{display:block;margin-top:5px}.aftercare-card{padding:12px}.aftercare-task{display:block;padding:13px}.aftercare-task form,.aftercare-status{display:block;margin-top:12px}.aftercare-task button{width:100%}.kat-choice-actions{display:grid}.kat-choice-actions button{width:100%}}
