/* Кабинет v2 — pages: дополнения к cabinet-v2.css
   Главная (11), Мои отели/объекты (12), Профиль (13), Тарифы (14), Вход и регистрация (15). */

/* ---------- Главная ---------- */
.welcome p .badge{margin-right:6px;vertical-align:1px}
.welcome-progress{max-width:420px;margin:-8px 0 22px}
.welcome-progress .progress-label{margin-top:0}
.welcome-photo{display:block;position:relative;height:190px;border-radius:12px;overflow:hidden;background:var(--paper)}
.welcome-photo img{height:100%}
.welcome-photo.is-broken,.welcome-photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:16px;border:1.5px dashed #8ebaa6;color:var(--muted);font-size:13px}
.welcome-photo-empty>.ti{font-size:34px;color:#cba267}
.welcome-photo-empty .btn{min-height:44px;font-size:14px}
.welcome-photo.is-broken:before{content:'Фото не загрузилось';}
.welcome-icon{font-size:110px;line-height:1;color:var(--brand);opacity:.55;justify-self:center}
.stats-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.stats-grid-4 .stat-tile{padding:20px;gap:14px}
.stats-grid-4 .stat-tile h2{font-size:15px}
.stat-tile{transition:border-color .2s,box-shadow .2s}
.stat-tile:hover{border-color:var(--brand)}
.todo-item:first-of-type{border-top:0;padding-top:4px}
.todo-item .btn{white-space:nowrap}
.todo-step{grid-template-columns:auto minmax(0,1fr);gap:16px}
.support-card>.ti{font-size:30px;display:block;margin-bottom:8px}
.support-card .btn{min-height:44px}
.support-card .form-help{color:inherit;opacity:.85}
.faq p a{text-decoration:underline}
@media(min-width:761px) and (max-width:1250px){.stats-grid-4{grid-template-columns:1fr 1fr}}
@media(max-width:1100px) and (min-width:761px){.welcome-photo{height:150px}}
@media(max-width:760px){
  .welcome-photo:not(.welcome-photo-empty){display:none}
  .welcome-photo-empty{height:auto;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;text-align:left;padding:12px 14px}
  .welcome-photo-empty>.ti{font-size:24px}
  .welcome-photo-empty .btn{margin-left:auto}
  .welcome-icon{display:none}
  .welcome .btn{width:100%;min-height:48px}
  .stats-grid-4{grid-template-columns:1fr 1fr;gap:12px}
  .stats-grid-4 .stat-tile{padding:16px;flex-direction:column;gap:10px}
  .stats-grid-4 .stat-tile strong{font-size:26px}
  .stats-grid-4 .stat-tile h2{margin-top:4px}
  .todo-item .btn{min-height:44px}
  .todo-step{grid-template-columns:auto minmax(0,1fr)}
}

/* ---------- Тёмная тема ---------- */
:root[data-theme=dark] .welcome-photo-empty,:root[data-theme=dark] .welcome-photo.is-broken{border-color:var(--line)}

/* ---------- Мои отели / Мои объекты ---------- */
.filter-tabs a{display:inline-flex;align-items:center;border:1px solid var(--line);background:var(--paper);color:var(--muted);border-radius:9px;min-height:44px;white-space:nowrap;padding:8px 15px;font-size:14px;text-decoration:none}
.filter-tabs a:hover{border-color:var(--brand)}
.filter-tabs a.active{background:var(--mint);border-color:var(--brand);color:var(--brand-dark)}
.hotels-toolbar .search-field input{font-size:16px}
.hotel-list-card{display:flex;flex-direction:column}
.hotel-list-cover{display:block;position:relative;height:175px;background:var(--surface)}
.hotel-list-cover img{position:absolute;inset:0;height:100%}
.cover-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:13px}
.cover-empty>.ti{font-size:34px;color:#cba267}
.hotel-list-content{display:flex;flex-direction:column;flex:1}
.hotel-list-content h2{overflow-wrap:anywhere}
.hotel-list-content h2 a{color:inherit;text-decoration:none}
.hotel-list-content h2 a:hover{color:var(--brand-dark)}
.hotel-list-content .card-id{display:block;margin-top:2px;opacity:.8}
.card-actions{display:flex;gap:8px;margin-top:auto;padding-top:18px}
.hotel-list-content .card-actions .btn{margin-top:0;min-height:44px}
.card-actions .btn-soft{flex:1;min-width:0;justify-content:space-between}
.card-actions .btn-soft span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hotel-list-content .card-actions .btn-icon-only{width:44px;flex:0 0 44px;padding:0;justify-content:center}
.list-pager{margin-top:24px}
.list-pager .page-link{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;color:var(--brand-dark);background:var(--paper);border-color:var(--line)}
.list-pager .active>.page-link{background:var(--brand);border-color:var(--brand);color:#fff}
.list-switch a{text-decoration:underline}
@media(max-width:760px){.hotel-list-cover{height:200px}}

/* ---------- Профиль ---------- */
.profile-page .form-grid>div{margin-bottom:0!important;min-width:0}
.profile-page .form-text{font-size:13px;color:var(--muted);margin-top:6px}
.profile-page .invalid-feedback:not(:empty){display:block;font-size:13px}
.profile-page .password-field+.form-text,.profile-page .password-field~.invalid-feedback{margin-top:6px}
.profile-page form>.mb-3{margin-bottom:16px!important}
.profile-page form .btn{min-height:44px}
.profile-page h2[id],.profile-page .profile-head[id]{scroll-margin-top:90px}
.profile-actions{display:flex;justify-content:flex-end;padding-top:20px}
.profile-page .toggle-row input[type=checkbox]{flex-shrink:0}
.profile-links{display:grid;margin:8px 0 16px}
.profile-links a{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.profile-links a:first-child{border-top:0}
.profile-links a:hover{color:var(--brand-dark)}
.profile-links b{margin-left:auto}
.profile-page aside .btn{width:100%;justify-content:center}
@media(max-width:760px){
  .profile-page .form-control{font-size:16px}
  .profile-actions .btn,.profile-page form>.btn{width:100%}
}

/* ---------- Тарифы ---------- */
.tariff-card .between{gap:10px;flex-wrap:wrap}
.tariff-card .btn{min-height:44px;justify-content:center}
.contact-plan a{text-decoration:underline;overflow-wrap:anywhere}
.contact-plan .hint-box .ti{margin-right:4px}
.contact-plan .panel-title>.ti{font-size:22px;color:var(--brand-dark)}

/* ---------- Вход, регистрация, восстановление ---------- */
.auth-page{background:var(--bg)}
.auth-page .login-main{max-width:none}
.auth-page .login-main>*{width:100%;max-width:440px}
.auth-page .login-main>.login-theme{width:44px}
.auth-logo{display:inline-flex;color:var(--ink);margin-bottom:34px;width:auto!important}
.auth-logo svg{height:34px;width:auto;max-width:170px}
.auth-form .mb-3{margin-bottom:0!important}
.auth-form .form-label{display:block}
.auth-form .form-control{min-height:48px;font-size:16px}
.auth-form .form-text{font-size:13px;color:var(--muted);margin-top:6px}
.auth-form .invalid-feedback:not(:empty){display:block;font-size:13px}
.auth-form .login-options a,.login-main .subtle a,.auth-terms a,.auth-check a{color:var(--brand-dark);text-decoration:underline;text-underline-offset:3px}
.auth-check{display:flex;gap:10px;align-items:flex-start;margin-top:18px;font-size:13px;color:var(--muted);cursor:pointer}
.auth-check input{width:20px;height:20px;flex-shrink:0;margin-top:1px;accent-color:var(--brand)}
.login-main .btn{justify-content:center;min-height:48px}
.login-main .subtle{font-size:14px}
.auth-terms{margin-top:18px}
.login-main .flash-note{margin-bottom:18px}
.login-photo-content .eyebrow{color:#fff;opacity:.9}
.login-photo-content p .ti{font-size:20px;flex-shrink:0}
.login-photo>img{object-fit:cover}
:root[data-theme=dark] .login-photo>img{filter:brightness(.55)}
.auth-page .login-main h1{color:var(--ink)}
.login-photo-content h2{color:#fff}
