/* =========================================================
   ACCOUNT (cabinet)
   ========================================================= */

.acc{ padding: 18px 0 28px; }

.acc-head{
  margin: 6px 0 14px;
}

.acc-head__title{
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.acc-head__hello{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(0,0,0,.70);
}

/* Alerts */
.acc-alert{
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 13px;
}

/* Layout */
.acc-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px){
  .acc-grid{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.acc-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

.acc-card--wide{
  margin-top: 12px;
}

.acc-card__head{
  padding: 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.acc-card__title{
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.acc-card__subtitle{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(0,0,0,.65);
}

.acc-card__body{
  padding: 14px;
}

.acc-muted{
  font-size: 13px;
  color: rgba(0,0,0,.62);
}

/* Key-value list */
.acc-kv{
  margin: 0;
}

.acc-kv__row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,.10);
}

.acc-kv__row:last-child{ border-bottom: 0; }

.acc-kv dt{
  font-size: 12px;
  color: rgba(0,0,0,.60);
}

.acc-kv dd{
  margin: 0;
  font-size: 13px;
  color: rgba(0,0,0,.92);
  word-break: break-word;
}

.acc-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 420px){
  .acc-actions{ grid-template-columns: 1fr; }
}

/* Links list */
.acc-links{
  display: grid;
  gap: 8px;
}

.acc-links__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  text-decoration: none;
  background: rgba(0,0,0,.02);
}

.acc-links__item:hover{
  background: rgba(0,0,0,.03);
}

.acc-links__label{
  font-size: 13px;
  color: rgba(0,0,0,.88);
}

.acc-links__arrow{
  font-size: 18px;
  color: rgba(0,0,0,.45);
}

.acc-links__item--danger .acc-links__label{
  color: rgba(170,0,0,.85);
}

/* Split panes */
.acc-split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px){
  .acc-split{
    grid-template-columns: 1fr 1fr;
  }
}

.acc-pane{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.acc-pane__head{
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
}

.acc-pane__title{
  margin: 0;
  font-size: 14px;
}

.acc-pane__current{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,.68);
}

.acc-pane__body{
  padding: 12px;
}

.acc-field{
  margin-top: 12px;
}

.acc-label{
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.acc-input{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  background: #fff;
  outline: none;
}

.acc-input:focus{
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.acc-input--small{
  max-width: 220px;
}

.acc-row{
  margin-top: 10px;
}

.acc-confirm{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,.12);
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons (как в auth.css, но локально, чтобы не конфликтовать) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  font-weight: 600;
  font-size: 14px;
}

.btn--primary{
  background: rgba(0,0,0,.88);
  color: #fff;
  border-color: rgba(0,0,0,.88);
}

.btn--primary:hover{ background: rgba(0,0,0,.92); }

.btn--ghost{ background: transparent; }

.btn--danger{
  border-color: rgba(255,0,0,.18);
  color: rgba(170,0,0,.85);
}

.btn[disabled],
.btn[aria-disabled="true"]{
  opacity: .6;
  cursor: not-allowed;
}


/* =========================================================
   ACCOUNT: inner pages helpers
   ========================================================= */

.acc-subhead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
}

.acc-subhead__title{
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.acc-subhead__subtitle{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(0,0,0,.70);
}

.acc-subhead__actions{
  flex: 0 0 auto;
}

@media (max-width: 520px){
  .acc-subhead{
    flex-direction: column;
    align-items: stretch;
  }
  .acc-subhead__actions{
    display: grid;
  }
}

.acc-alert__list{
  margin: 0;
  padding-left: 18px;
}

.acc-form{
  max-width: 720px;
}

.acc-form__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px){
  .acc-form__grid{
    grid-template-columns: 1fr 1fr;
  }
}

.acc-form__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
