/* public/css/profile-billing.css */

/* список подписок */
.active-plans-list{ margin-top: 12px; }
.active-plans-list > * + *{ margin-top: 12px; }

/* карточка подписки */
.billing-term-card{
  /* было: свой стиль, теперь базируется на ui-card */
  width: 100%;
  background-color: #1C1C1E;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #1C1C1E;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.billing-term-card:hover{
  background-color: #2C2C2E;
  transform: translateY(-2px);
}

/* layout */
.billing-term-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.billing-term-left{
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-term-title{
  font-weight: 600;
  color: #FFFFFF;
}

.billing-term-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* статус */
.billing-term-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  color: #d1d5db;
}
.billing-term-status-text{
  display: inline-flex;
  align-items: center;
  font-size: 0.688rem;
  font-weight: 600;
  line-height: 1;
}
.billing-term-status-icon{
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1;
  transform: translateY(2px);
}
.billing-term-status--active .billing-term-status-icon{ color: #30D158; }
.billing-term-status--expired .billing-term-status-icon{ color: #FF453A; }

/* строка "TRIAL действует до" */
.billing-term-row{ margin-top: 10px; }

.billing-term-rowline{
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.billing-term-label{ color: rgba(255,255,255,.80); }
.billing-term-date{ color: #FFFFFF; font-weight: 500; }

/* прогресс */
.billing-term-bar{
  height: 5px;
  background: #49494D;
  border-radius: 9999px;
  overflow: hidden;
}
.billing-term-barFill{
  height: 100%;
  border-radius: 9999px;
}

.billing-term-barFill--ok{ background: #0A84FF; }
.billing-term-barFill--warn{ background: #FF9F0A; }
.billing-term-barFill--danger{ background: #FF453A; }

.plan-info-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.plan-info-action{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.plan-info-note--subtle{
  font-size:11px;
  line-height:1.35;
}

/* PAY MODAL cards (это специфично профилю) */
.pay-plan-card{
  padding: 14px;
  border-radius: 22px;
  position: relative;
  cursor: pointer;

  background: #1C1C1E;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);

  outline: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}
.pay-plan-card:hover{
  transform: translateY(-2px);
  background: #2C2C2E;
}
.pay-plan-card:active{ transform: scale(0.99); }

.pay-plan-card.is-selected{
  border-color: rgba(10,132,255,0.95);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(10,132,255,0.55);
}

.pay-plan-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.pay-plan-left{
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 14px;
}

.pay-plan-icon{ flex: 0 0 auto; }

.pay-plan-titleWrap{ min-width: 0; }

.pay-plan-title{
  margin-top: 5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  font-size: 15px;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-plan-subtitle{
  margin-top: 4px;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-plan-check{
  flex: 0 0 auto;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.pay-check{
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.pay-check--off{
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.15);
}

.pay-check--on{
  border: 1px solid rgba(10,132,255,0.55);
  background: #0A84FF;
  box-shadow: 0 10px 22px rgba(10,132,255,0.28);
}
.pay-check--on i{
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.pay-plan-features{
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-plan-feature{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.35;
}
.pay-plan-feature-text{ min-width: 0; }

.pay-plan-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  flex: 0 0 6px;
  margin-top: 6px;
}

.pay-plan-bottom{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.pay-plan-price{
  text-align: left;
  line-height: 1;
  white-space: nowrap;
}

.pay-plan-priceValue{
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.pay-plan-priceUnit{
  margin-left: 6px;
  font-size: 12px;
  color: #8E8E93;
}

.pay-plan-selected{
  font-size: 11px;
  font-weight: 600;
  color: #0A84FF;
}

.pay-plan-tier-wrap{ margin-top: 12px; }

.pay-plan-tier-card{
  background-color: rgba(255,255,255,0.06);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  margin: 14px 0 0 0;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.03);

  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.pay-plan-tier-card:hover{
  background-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.pay-plan-tier-card[aria-checked="true"]{
  border-color: rgba(10,132,255,0.55);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.38),
    0 0 0 1px rgba(10,132,255,0.35);
}

.pay-plan-tier-card .pay-plan-features{ margin-top: 0; }
