.profile-panel .modern-form .toggle-row{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:11px!important;min-height:46px;padding:9px 0;cursor:pointer}
.profile-panel .modern-form .toggle-row input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;padding:0!important;margin:0!important;flex:0 0 20px!important;border-radius:4px!important;box-shadow:none!important;accent-color:var(--social-orange,#ffb000)}
.profile-panel .modern-form .toggle-row span{display:block;line-height:1.4}
@media (max-width:720px){
  :root{--mobile-nav-height:70px}
  .social-body{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 14px)!important}
  .site-footer{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 30px)!important}
  .social-header{justify-content:center!important;padding-inline:16px!important}
  .social-header .logo-link{display:flex;align-items:center;justify-content:center;margin:0 auto}
  .social-header .logo-img{width:150px!important;max-width:52vw}
  .profile-summary nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;text-align:center!important}
  .profile-summary nav a{display:flex!important;align-items:center;justify-content:center;min-height:48px;padding:9px 8px!important;border:1px solid #e8dcc8!important;border-radius:12px!important;background:#fff!important;color:#42382d!important;font-size:12px!important;font-weight:850!important;line-height:1.15!important;text-decoration:none!important}
  .profile-summary nav a.active{border-color:var(--social-orange,#ffb000)!important;background:#fff4d5!important}
  .profile-mobile-menu-button{display:none;position:absolute;right:14px;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:10px;border:1px solid rgba(255,176,0,.75);border-radius:13px;background:#fff8e7;z-index:3}
  .profile-mobile-menu-button.is-visible{display:grid;align-content:center;gap:5px}
  .profile-mobile-menu-button span{display:block;width:100%;height:2px;border-radius:2px;background:#33291d}
  .profile-mobile-overlay{display:none;position:fixed;inset:0;z-index:2200}
  .profile-mobile-overlay.is-visible{display:block}
  .profile-mobile-backdrop{position:absolute;inset:0;background:rgba(28,22,15,.48);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
  .profile-summary>nav{display:none!important}
  .profile-view-menu{width:100%;margin-top:20px;background:var(--social-orange,#ffb000)!important;color:#23180a!important}
  .profile-mobile-drawer{position:absolute;right:0;top:0;width:min(88vw,370px);height:100%;padding:24px 18px;background:linear-gradient(165deg,rgba(28,25,21,.99),rgba(57,43,25,.98));color:#fff;box-shadow:-18px 0 45px rgba(25,18,10,.35);overflow:auto}
  .profile-mobile-drawer>strong{display:block;padding:8px 50px 18px 4px;font-size:20px;color:#fff}
  .profile-mobile-close{position:absolute;right:16px;top:16px;width:42px;height:42px;border:1px solid rgba(255,176,0,.65);border-radius:12px;background:#342a1f;color:#ffc247;font-size:30px;line-height:1}
  .profile-mobile-drawer nav{display:grid;grid-template-columns:1fr;gap:9px}
  .profile-mobile-drawer nav a{display:flex;align-items:center;justify-content:center;min-height:50px;padding:10px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.075);color:#fff;font-weight:850;text-align:center;text-decoration:none}
  .profile-mobile-drawer nav a:active{background:rgba(255,176,0,.22);border-color:var(--social-orange,#ffb000)}
  .profile-mobile-drawer nav a.subscription-menu-link{border:2px solid var(--social-orange,#ffb000);background:linear-gradient(135deg,#ffb000,#ffcb5a);color:#261a0b;box-shadow:0 10px 25px rgba(255,176,0,.22)}
  .profile-menu-open{overflow:hidden}
  .mobile-tabbar{
    position:fixed;
    z-index:1000;
    left:10px;
    right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    height:var(--mobile-nav-height);
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;
    justify-content:initial;
    gap:3px;
    padding:6px;
    border:1px solid rgba(255,176,0,.58);
    border-radius:24px;
    background:rgba(255,255,255,.86);
    box-shadow:0 10px 32px rgba(31,23,12,.18),0 2px 10px rgba(31,23,12,.08);
    backdrop-filter:blur(18px) saturate(150%);
    -webkit-backdrop-filter:blur(18px) saturate(150%);
    transition:height .22s ease,bottom .22s ease,padding .22s ease,border-radius .22s ease,background-color .22s ease,box-shadow .22s ease;
    will-change:height,bottom,padding;
  }
  .mobile-tabbar a,.mobile-tabbar form,.mobile-tabbar button{width:100%;height:100%;min-width:0;margin:0}
  .mobile-tabbar a,.mobile-tabbar button{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:3px 2px;
    border:1px solid rgba(232,223,209,.78);
    border-radius:15px;
    background:rgba(255,250,240,.76);
    color:#5f584f;
    font:800 10px/1.05 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:background-color .22s ease,border-color .22s ease,border-radius .22s ease,box-shadow .22s ease;
  }
  .mobile-tabbar a.active{
    background:var(--social-orange,#ffb000);
    color:#1b160e;
    box-shadow:0 7px 18px rgba(255,176,0,.32);
  }
  .mobile-nav-icon{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:10px;
    color:#29231c;
    font-size:24px;
    font-weight:500;
    line-height:1;
  }
  .mobile-nav-icon svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .mobile-tabbar a.active .mobile-nav-icon{background:rgba(255,255,255,.4)}
  .mobile-profile-icon{background:#25211c!important;color:#fff!important;font-size:13px!important;font-weight:950!important}
  .mobile-tabbar button{color:#29231c}
  .mobile-tabbar.is-compact{
    height:54px;
    bottom:calc(6px + env(safe-area-inset-bottom));
    padding:4px;
    border-radius:27px;
    background:rgba(255,255,255,.78);
    box-shadow:0 8px 24px rgba(31,23,12,.16),0 2px 8px rgba(31,23,12,.08);
  }
  .mobile-tabbar.is-compact a,.mobile-tabbar.is-compact button{gap:0;padding:2px;border-color:transparent;border-radius:22px;background:rgba(255,255,255,.3)}
  .mobile-tabbar.is-compact a.active{background:rgba(255,176,0,.88)}
  .mobile-tabbar.is-compact a>span:last-child,.mobile-tabbar.is-compact button>span:last-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .mobile-tabbar.is-compact .mobile-nav-icon{width:28px;height:28px}
  .mobile-tabbar.is-compact .mobile-nav-icon svg{width:23px;height:23px}
}
@media (max-width:370px){
  .mobile-tabbar{left:5px;right:5px;gap:1px;padding:6px 3px}
  .mobile-tabbar a,.mobile-tabbar button{font-size:9px}
  .mobile-nav-icon{width:27px;height:27px;font-size:21px}
}
@media (min-width:721px){.mobile-tabbar{display:none!important}}
@media (min-width:721px){.profile-mobile-menu-button,.profile-mobile-overlay{display:none!important}}
@media (min-width:721px){.profile-mobile-menu-button.is-visible{display:grid!important;position:relative;right:auto;top:auto;transform:none}.profile-mobile-overlay.is-visible{display:block!important}}

/* Inscriere: continut lizibil si fara deplasare orizontala pe mobil. */
html,body{width:100%;max-width:100%;overflow-x:clip}
@supports not (overflow:clip){html,body{overflow-x:hidden}}
.register-page,.register-page>*,.register-page .auth-card,.register-page form,.register-page .form-step,.register-page .field-grid,.register-page .date-fields,.register-page label,.register-page fieldset{min-width:0;max-width:100%}
.register-page input,.register-page select,.register-page textarea,.register-page button{min-width:0;max-width:100%}
.register-page .auth-story{isolation:isolate}
.register-page .auth-story::after{z-index:0;pointer-events:none}
.register-page .auth-story>.story-tag,.register-page .auth-story>h1,.register-page .auth-story>p,.register-page .auth-story>.privacy-card{position:relative;z-index:2}
@media (max-width:720px){
  html:has(.register-page),body:has(.register-page){max-width:100vw;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y}
  body:has(.register-page)>main{width:100%;max-width:100vw;overflow-x:hidden;touch-action:pan-y}
  .social-body,.social-body main,.register-page{width:100%;max-width:100%;min-width:0}
  .register-page{position:relative;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y;contain:inline-size}
  .register-page .auth-story,.register-page .auth-card,.register-page .form-progress,.register-page .form-title,.register-page .step-form,.register-page .form-step,.register-page .field-grid,.register-page .upload-field,.register-page .upload-box{width:100%;max-width:100%;min-width:0}
  .register-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.register-page select,.register-page textarea{font-size:16px}
  .register-page input[type="file"]{display:block;width:100%;max-width:100%;overflow:hidden}
  .register-page .upload-box{position:relative;min-height:150px;padding:24px 52px 24px 24px;place-content:center}
  .register-page .upload-box [data-photo-preview]{display:block;width:min(190px,100%);height:auto;max-height:240px;aspect-ratio:1/1;margin:0 auto 14px;border:3px solid #fff;border-radius:22px;object-fit:cover;box-shadow:0 10px 28px rgba(34,25,14,.18)}
  .register-page .upload-box [data-photo-preview][hidden]{display:none!important}
  .register-page .photo-remove:not([hidden]){position:absolute;display:grid;place-items:center;top:12px;right:12px;width:38px;height:38px;min-width:38px;margin:0;padding:0;border:1px solid #e4a19a;border-radius:50%;background:#fff;color:#a52e27;box-shadow:0 5px 15px rgba(88,31,25,.16);font-size:0;z-index:3}
  .register-page .photo-remove:not([hidden])::before{content:"×";font-size:28px;font-weight:500;line-height:1;transform:translateY(-1px)}
  .register-page .step-actions [data-prev]{background:transparent!important;color:#625d56!important;border:1px solid #cfc8be!important;box-shadow:none!important;font-weight:750}
  .register-page .step-actions [data-prev]:hover,.register-page .step-actions [data-prev]:focus-visible{background:#f3f0eb!important;color:#292622!important;border-color:#aaa299!important;box-shadow:0 0 0 3px rgba(106,98,89,.1)!important}
  .register-page .auth-story{min-height:292px;padding:32px 24px 36px}
  .register-page .auth-story::after{width:190px;height:190px;right:-72px;bottom:-76px;opacity:.88}
  .register-page .story-tag{text-shadow:0 2px 8px rgba(0,0,0,.55)}
  .register-page .auth-story h1{max-width:100%;margin-right:0;font-size:clamp(36px,11vw,46px);line-height:1.03;letter-spacing:-2.5px;text-shadow:0 3px 18px rgba(0,0,0,.68)}
  .register-page .auth-story>p{max-width:100%;color:#fff;font-size:15px;line-height:1.55;text-shadow:0 2px 12px rgba(0,0,0,.9)}
  .register-page .auth-card,.register-page .auth-card.wide{width:100%}
  .register-page .step-actions{max-width:100%;flex-wrap:wrap}
  .mobile-tabbar{max-width:calc(100% - 20px);box-sizing:border-box}
  .login-page .modern-form input:not([type="checkbox"]):not([type="radio"]),.password-recovery-page .modern-form input:not([type="checkbox"]):not([type="radio"]),.social-body .center-auth .modern-form input:not([type="checkbox"]):not([type="radio"]),.social-body .center-auth .modern-form select,.social-body .center-auth .modern-form textarea{font-size:16px}
}
@media (max-width:370px){
  .register-page .auth-story{padding-inline:20px}
  .register-page .auth-story h1{font-size:clamp(34px,11vw,40px)}
  .mobile-tabbar{max-width:calc(100% - 10px)}
}

/* Actiunea secundara din inscriere ramane discreta pe toate dispozitivele. */
.register-page .step-actions [data-prev]{background:transparent!important;color:#625d56!important;border:1px solid #cfc8be!important;box-shadow:none!important;font-weight:750}
.register-page .step-actions [data-prev]:hover,.register-page .step-actions [data-prev]:focus-visible{background:#f3f0eb!important;color:#292622!important;border-color:#aaa299!important;box-shadow:0 0 0 3px rgba(106,98,89,.1)!important}

/* Cardul de confidentialitate ramane sub text pe desktop si laptop. */
@media (min-width:721px){
  .register-page .auth-story{display:flex;flex-direction:column}
  .register-page .privacy-card{position:relative;left:auto;bottom:auto;margin-top:auto;padding-top:32px}
}
