/* Cabinet — главное меню сверху + разделы */

.cabinet-shell {
  padding-bottom: 32px;
}

.cabinet-view {
  display: none;
}

.cabinet-view.active {
  display: block;
  animation: cabinet-fade-in 0.18s ease;
}

@keyframes cabinet-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Главная навигация — всегда видна, липкая */
.cabinet-main-nav {
  position: sticky;
  top: 8px;
  z-index: 120;
  display: flex;
  gap: 6px;
  padding: 10px;
  margin: 0 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(10, 14, 20, 0.97);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.cabinet-main-nav::-webkit-scrollbar {
  display: none;
}

.cabinet-main-nav button {
  flex: 1 0 auto;
  min-width: 72px;
  max-width: 120px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cabinet-main-nav button .nav-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.cabinet-main-nav button .nav-label {
  line-height: 1.15;
  text-align: center;
}

.cabinet-main-nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border);
}

.cabinet-main-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(61, 139, 253, 0.35), rgba(61, 139, 253, 0.12));
  border-color: rgba(61, 139, 253, 0.55);
  box-shadow: 0 0 0 1px rgba(61, 139, 253, 0.2);
}

.cabinet-main-nav button[data-view="shield"] {
  min-width: 84px;
}

.cabinet-view-hint {
  margin: -8px 0 16px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(61, 139, 253, 0.06);
  border: 1px solid rgba(61, 139, 253, 0.15);
  border-radius: 10px;
}

.home-actions-lead {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.home-action-primary {
  border-color: rgba(61, 139, 253, 0.45) !important;
  background: linear-gradient(135deg, rgba(61, 139, 253, 0.12), rgba(61, 139, 253, 0.04)) !important;
}

.home-action-primary strong {
  color: var(--accent);
}

@media (min-width: 640px) {
  .cabinet-main-nav {
    justify-content: center;
    overflow-x: visible;
  }

  .cabinet-main-nav button {
    flex: 1;
    max-width: none;
    font-size: 0.85rem;
    padding: 12px 10px;
  }
}

@media (min-width: 768px) {
  .cabinet-shell {
    max-width: 720px;
    margin: 0 auto;
  }
}

.panel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.panel-card.highlight {
  border-color: rgba(61, 139, 253, 0.35);
}

.panel-card h3,
.panel-card h4 {
  margin: 0 0 8px;
}

.panel-card .panel-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.info-row {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.88rem;
}

.info-row dt {
  width: 110px;
  flex-shrink: 0;
  color: var(--muted);
  margin: 0;
}

.info-row dd {
  margin: 0;
  flex: 1;
}

.profile-entry {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-entry:hover {
  border-color: rgba(61, 139, 253, 0.35);
}

.profile-entry-main {
  flex: 1;
}

.profile-entry-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.profile-entry-desc {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
  display: block;
}

.profile-entry-chevron {
  color: var(--muted);
  transition: transform 0.18s ease;
}

.profile-entry[aria-expanded="true"] .profile-entry-chevron {
  transform: rotate(180deg);
}

.profile-entry-body {
  display: none;
  padding: 0 14px 14px;
  margin: -4px 0 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.profile-entry-body.open {
  display: block;
}

.profile-field {
  margin-bottom: 12px;
}

.profile-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-field input,
.profile-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.home-actions {
  display: grid;
  gap: 10px;
}

.home-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
  text-align: left;
}

.home-action strong {
  display: block;
  font-size: 0.95rem;
}

.home-action span {
  color: var(--muted);
  font-size: 0.8rem;
}

.home-action-static {
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

.tariff-category-grid {
  display: grid;
  gap: 10px;
}

.tariff-category {
  text-align: left;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.tariff-category.featured {
  border-color: rgba(61, 139, 253, 0.45);
}

.tariff-category h4 {
  margin: 0 0 6px;
}

.tariff-category p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.tariff-back-row {
  margin-bottom: 12px;
}

.tariff-back-row button {
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.extra-devices-status {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
  border-radius: 10px;
  background: rgba(92, 224, 168, 0.08);
  border: 1px solid rgba(92, 224, 168, 0.2);
  color: var(--text);
}

.shield-status-card {
  text-align: center;
  padding: 20px;
}

.captcha-box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.captcha-question {
  margin: 4px 0 8px;
  font-weight: 600;
}

.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.captcha-row input {
  flex: 1;
}

.password-field {
  position: relative;
  margin-bottom: 0;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
