/* ============================================================
   d6-settings.css, Direction 6 Settings desktop.
   Loaded after d6.css. Only implemented sections are present:
   Account, Billing and Channels.
   ============================================================ */

.sb-foot .nav-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #aeb3d4;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: all .14s var(--ease);
  white-space: nowrap;
}

.sb-foot .nav-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sb-foot .nav-tab:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  filter: none;
}

.sb-foot .nav-tab.active {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(91,99,240,.8);
}

.set-canvas {
  flex: 1;
  padding: 26px 32px 70px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.set-head { margin-bottom: 22px; }
.set-head h1 {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}
.set-head p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
}

.set-grid {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.set-rail {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.set-railgroup .rg-label {
  padding: 0 10px 8px;
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.set-railgroup .rg-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.set-navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease), box-shadow .14s var(--ease);
}

.set-navitem .ni-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--nbg, var(--bg-2));
  color: var(--nacc, var(--ink-3));
  transition: transform .14s var(--ease);
}
.set-navitem .ni-ico svg { width: 17px; height: 17px; }
.set-navitem .ni-main { flex: 1; min-width: 0; }
.set-navitem .ni-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-navitem .ni-sub {
  margin-top: 1px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
}
.set-navitem .ni-chev {
  display: inline-flex;
  color: var(--brand);
  opacity: 0;
  transition: opacity .14s var(--ease);
}
.set-navitem .ni-chev svg { width: 15px; height: 15px; }
.set-navitem:hover {
  background: var(--card);
  color: var(--ink);
  filter: none;
}
.set-navitem:hover .ni-ico { transform: scale(1.05); }
.set-navitem.active {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.set-navitem.active .ni-ico {
  background: var(--nacc, var(--brand));
  color: #fff;
}
.set-navitem.active .ni-sub { color: var(--ink-3); }
.set-navitem.active .ni-chev { opacity: 1; }

.set-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .set-content.is-entering { animation: setFade .3s var(--ease); }
}
@keyframes setFade {
  from { transform: translateY(8px); }
  to { transform: none; }
}

.set-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.set-cardhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.set-cardhead .ch-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--ch-bg, var(--brand-soft));
  color: var(--ch-acc, var(--brand));
}
.set-cardhead .ch-ico svg { width: 18px; height: 18px; }
.set-cardhead .ch-t { flex: 1; min-width: 0; }
.set-cardhead .ch-t h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.set-cardhead .ch-t p {
  margin: 1px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
.set-cardbody { padding: 18px 20px; }
.set-cardbody.flush { padding: 0; }

.set-avhead {
  display: flex;
  align-items: center;
  gap: 18px;
}
.set-avhead .av {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 22px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(91,99,240,.8);
  font-size: 27px;
  font-weight: 800;
}
.set-avhead .meta { flex: 1; min-width: 0; }
.set-avhead .meta .nm {
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.set-avhead .meta .em {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.set-avhead .meta .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.set-avhead .meta .badge svg { width: 12px; height: 12px; }

.set-formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.set-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.set-readonly {
  display: flex;
  align-items: center;
  min-height: 40px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.set-pagebar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.set-pagebar .sp { flex: 1; }

.set-billgrid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: start;
}

.set-planhero {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--brand-grad);
  box-shadow: 0 18px 38px -16px rgba(91,99,240,.8);
  color: #fff;
}
.set-planhero .glow {
  position: absolute;
  top: -60px;
  right: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  filter: blur(8px);
}
.set-planhero .tag {
  position: relative;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .9;
  text-transform: uppercase;
}
.set-planhero .row1 {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.set-planhero .pname {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}
.set-planhero .price {
  margin-left: auto;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.set-planhero .price b { font-size: 27px; }
.set-planhero .sub {
  position: relative;
  max-width: 90%;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  opacity: .92;
}
.set-planhero .meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.set-planhero .renew {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.set-planhero .renew svg { width: 14px; height: 14px; }
.set-planhero .change {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0 18px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
}
.set-planhero .change svg { width: 16px; height: 16px; }

.set-subcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
.set-subcard .lbl {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.set-subcard .lbl svg { width: 15px; height: 15px; }
.set-subcard .big {
  margin-top: 9px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}
.set-subcard .cap {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
}

.set-mkt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  transition: background .12s var(--ease);
}
.set-mkt + .set-mkt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--line-2);
}
.set-mkt:hover { background: var(--card-2); }
.set-mlogo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  overflow: hidden;
}
.set-mlogo .chlogo { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-mlogo .chlogo.contain { object-fit: contain; padding: 6px; box-sizing: border-box; }
.set-mlogo .chlogo-svg { width: 28px; height: 28px; }
.set-mmain { flex: 1; min-width: 0; }
.set-mname {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.set-mstatus {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.set-mstatus.on { background: var(--green-bg); color: var(--green); }
.set-mstatus.off { background: var(--gray-bg); color: var(--gray); }
.set-mstatus .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.set-msub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}
.set-msub .pc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.set-msub svg { width: 13px; height: 13px; }
.set-mkt.disabled .set-mlogo {
  filter: grayscale(.85);
  opacity: .55;
}
.set-mkt.disabled .set-mname { color: var(--ink-3); }

.set-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r);
}
.set-note.brand {
  background: var(--brand-soft);
  border: 1px solid #dde1fd;
}
.set-note.muted {
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.set-note .ic {
  flex-shrink: 0;
  margin-top: 1px;
}
.set-note.brand .ic { color: var(--brand); }
.set-note.muted .ic { color: var(--ink-3); }
.set-note .ic svg { width: 18px; height: 18px; }
.set-note .tx {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.set-note .tx b {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .set-grid { grid-template-columns: 1fr; }
  .set-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .set-railgroup { display: contents; }
  .set-railgroup .rg-label { display: none; }
  .set-railgroup .rg-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .set-navitem { width: auto; }
  .set-navitem .ni-sub,
  .set-navitem .ni-chev { display: none; }
  .set-billgrid { grid-template-columns: 1fr; }
}
