:root {
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sidebar-w: 264px;
}
body {
  visibility: hidden;
}
.dashboard {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
    position: sticky;
    height: 100vh;
  }
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 992px) {
  .sidebar-overlay {
    display: none;
  }
}
.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 36px;
  padding-left: 4px;
  letter-spacing: -0.01em;
}
.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-section {
  margin-bottom: 24px;
}
.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 12px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  cursor: pointer;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: rgba(248, 250, 252, 0.04);
  color: var(--text);
}
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(236, 179, 54, 0.18);
}
.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.user-card {
  margin-top: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  flex-shrink: 0;
}
.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.user-email {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.logout-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--danger);
  color: var(--danger);
}
.logout-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}
.main {
  flex: 1;
  padding: 20px;
  margin-left: 0;
  max-width: 1100px;
}
@media (min-width: 768px) {
  .main {
    padding: 32px 40px;
  }
}
@media (min-width: 992px) {
  .main {
    margin-left: var(--sidebar-w);
  }
}
.top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.top-bar-spacer {
  flex: 1;
}
.sidebar-only {
  display: flex;
}
@media (min-width: 992px) {
  .sidebar-only {
    display: none !important;
  }
  .top-bar {
    display: none;
  }
}
.desktop-profile {
  display: none;
}
@media (min-width: 992px) {
  .desktop-profile {
    display: block;
    position: fixed;
    top: 28px;
    right: 36px;
    z-index: 200;
  }
}
.profile-wrapper {
  position: relative;
}
@media (min-width: 992px) {
  .profile-wrapper {
    display: none;
  }
}
.profile-btn {
  background: 0 0;
  border: 2px solid rgba(236, 179, 54, 0.3);
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.profile-btn:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(236, 179, 54, 0.12),
    0 0 14px rgba(236, 179, 54, 0.3);
}
.profile-btn.active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(236, 179, 54, 0.15),
    0 0 18px rgba(236, 179, 54, 0.35);
}
.profile-btn-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd978);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  letter-spacing: 0.5px;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(148, 163, 184, 0.08);
  z-index: 200;
  opacity: 0;
  transform: scale(0.95) translateY(-8px);
  transform-origin: top right;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-menu.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.04);
}
.profile-menu-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd978);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  flex-shrink: 0;
}
.profile-menu-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}
.profile-menu-email {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}
.profile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.profile-menu-item:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}
.profile-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}
.profile-menu-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.menu-btn {
  background: 0 0;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.mobile-logo .logo-badge {
  width: 36px;
  height: 36px;
}
.page-header {
  margin-bottom: 32px;
}
.page-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .page-title {
    font-size: 32px;
  }
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
@media (min-width: 768px) {
  .stat-card {
    padding: 24px;
  }
}
.stat-card:hover {
  border-color: rgba(148, 163, 184, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
@media (min-width: 768px) {
  .stat-icon svg {
    width: 24px;
    height: 24px;
  }
}
.stat-icon.success {
  background: rgba(34, 197, 94, 0.1);
}
.stat-icon.success svg {
  stroke: var(--success);
}
.stat-icon.warning {
  background: rgba(245, 158, 11, 0.1);
}
.stat-icon.warning svg {
  stroke: var(--warning);
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .stat-value {
    font-size: 32px;
  }
}
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.stat-badge.active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.stat-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}
.stat-badge.danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}
.stat-mini-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}
.stat-mini-bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.stat-mini-bar .fill.accent {
  background: linear-gradient(90deg, var(--accent), #f0be4d);
}
.stat-mini-bar .fill.success {
  background: linear-gradient(90deg, var(--success), #16a34a);
}
.stat-mini-bar .fill.warning {
  background: linear-gradient(90deg, var(--warning), #d97706);
}
.stat-mini-bar .fill.danger {
  background: linear-gradient(90deg, var(--danger), #dc2626);
}
.device-dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.1);
  transition: var(--transition);
}
.device-dot.used {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.device-dot.available {
  border: 1.5px dashed rgba(148, 163, 184, 0.2);
  background: 0 0;
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.pulse-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 2s ease-in-out infinite;
}
.pulse-dot.offline {
  background: var(--danger);
  opacity: 0.7;
}
@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 4px var(--success);
  }
  50% {
    box-shadow:
      0 0 14px var(--success),
      0 0 20px rgba(34, 197, 94, 0.3);
  }
}
.section {
  margin-bottom: 36px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 20px;
  }
}
.subscription-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .subscription-card {
    padding: 32px;
  }
}
.subscription-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(236, 179, 54, 0.08) 0,
    transparent 70%
  );
  pointer-events: none;
}
.sub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}
.sub-plan {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sub-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .sub-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
}
.sub-icon svg {
  width: 26px;
  height: 26px;
  fill: #0f172a;
}
@media (min-width: 768px) {
  .sub-icon svg {
    width: 30px;
    height: 30px;
  }
}
.sub-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .sub-name {
    font-size: 26px;
  }
}
.sub-type {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.sub-status svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.sub-status.expired {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}
.sub-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
}
@media (min-width: 768px) {
  .sub-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.sub-detail {
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px;
}
@media (min-width: 768px) {
  .sub-detail {
    padding: 20px;
  }
}
.detail-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.detail-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .detail-value {
    font-size: 22px;
  }
}
.detail-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.progress-bar {
  height: 8px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f0be4d);
  border-radius: 4px;
  transition: width 0.6s ease;
}
@keyframes devicePulseGreen {
  0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 14px rgba(34, 197, 94, 0.7), 0 0 24px rgba(34, 197, 94, 0.25); }
}
@keyframes devicePulseYellow {
  0%, 100% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.2); }
}
.devices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .devices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.device-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(148,163,184,0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), border-color 0.25s;
  position: relative;
  border-left: 3px solid var(--border);
}
.device-card.status-recent { border-left-color: var(--success); }
.device-card.status-idle { border-left-color: var(--warning); }
.device-card.status-old { border-left-color: var(--text-muted); }
@media (min-width: 768px) {
  .device-card {
    padding: 22px 20px;
    gap: 16px;
  }
}
.device-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.1);
  border-color: rgba(99,102,241,0.3);
  border-left-color: rgba(99,102,241,0.5);
}
.device-card.status-recent:hover { border-left-color: var(--success); }
.device-card.status-idle:hover { border-left-color: var(--warning); }
.device-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}
.device-icon.platform-windows { background: rgba(59,130,246,0.12); }
.device-icon.platform-windows svg { fill: #3b82f6; }
.device-icon.platform-macos,
.device-icon.platform-ios { background: rgba(148,163,184,0.12); }
.device-icon.platform-macos svg,
.device-icon.platform-ios svg { fill: #94a3b8; }
.device-icon.platform-android { background: rgba(34,197,94,0.12); }
.device-icon.platform-android svg { fill: #22c55e; }
.device-icon.platform-linux { background: rgba(249,115,22,0.12); }
.device-icon.platform-linux svg { fill: #f97316; }
.device-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
}
@media (min-width: 768px) {
  .device-icon svg {
    width: 24px;
    height: 24px;
  }
}
.device-info {
  flex: 1;
  min-width: 0;
}
.device-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .device-name {
    font-size: 16px;
  }
}
.device-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.device-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
  animation: devicePulseGreen 2s ease-in-out infinite;
}
.device-status.status-idle {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
  animation: devicePulseYellow 2.5s ease-in-out infinite;
}
.device-status.offline {
  background: var(--text-muted);
  box-shadow: none;
  animation: none;
  opacity: 0.4;
}
.device-remove {
  background: 0 0;
  border: none;
  padding: 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.device-card:hover .device-remove {
  opacity: 0.45;
}
.device-remove:hover {
  opacity: 1 !important;
}
@media (max-width: 767px) {
  .device-remove {
    opacity: 0.4;
  }
}
.device-remove svg {
  width: 18px;
  height: 18px;
  stroke: var(--danger);
  fill: none;
  stroke-width: 1.5;
}
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: 0 0;
  color: var(--text);
}
.btn:hover {
  background: rgba(248, 250, 252, 0.04);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.btn-primary {
  background: var(--accent);
  border: none;
  color: #0f172a;
  font-weight: 600;
}
.btn-primary:hover {
  background: #f0be4d;
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-glow {
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-glow:hover {
  box-shadow:
    0 8px 32px var(--accent-glow),
    0 0 60px rgba(236, 179, 54, 0.15);
  transform: translateY(-3px);
}
.btn-primary svg {
  stroke: #0f172a;
}
.btn-danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--danger);
}
.key-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
}
.key-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.key-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  background: rgba(15, 23, 42, 0.4);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  line-height: 1.5;
  border: 1px solid var(--border);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.copy-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(236, 179, 54, 0.3);
}
.copy-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.link-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) {
  .link-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .link-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.link-card:hover {
  border-color: rgba(236, 179, 54, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.link-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.link-card-body {
  flex: 1;
  min-width: 0;
}
.link-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.link-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.link-card-arrow {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.stats-grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .stats-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sidebar-tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 8px;
}
.sidebar-tg-btn:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.sidebar-tg-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.payment-history {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.payment-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.payment-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 24px;
}
.payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.payment-item:last-child {
  border-bottom: none;
}
.payment-info {
  flex: 1;
  min-width: 0;
}
.payment-desc {
  font-size: 14px;
  font-weight: 500;
}
.payment-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.payment-amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--success);
}
.payment-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}
.profile-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.settings-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.settings-item:last-child {
  border-bottom: none;
}
.settings-item-info h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.settings-item-info p {
  font-size: 12px;
  color: var(--text-secondary);
}
.tfa-code-input {
  width: 100%;
  text-align: center;
  font-size: 24px;
  letter-spacing: 6px;
  font-weight: 700;
  padding: 14px 12px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.tfa-code-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.tfa-error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
  font-weight: 500;
  animation: tfaErrorIn 0.3s ease;
}
.tfa-error-msg svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #f87171;
  fill: none;
  stroke-width: 2;
}
@keyframes tfaShake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  50%,
  90% {
    transform: translateX(-4px);
  }
  30%,
  70% {
    transform: translateX(4px);
  }
}
@keyframes tfaErrorIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tfa-shake {
  animation: tfaShake 0.4s ease;
}
.tfa-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tfa-btn-row {
  display: flex;
  gap: 8px;
}
.tfa-backup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (max-width: 480px) {
  .tfa-backup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.toggle {
  width: 48px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.15);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.toggle.active {
  background: var(--accent);
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle.active::after {
  left: 25px;
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}
.support-card:hover {
  border-color: rgba(148, 163, 184, 0.15);
  transform: translateY(-2px);
}
.support-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.support-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.support-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.support-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
@media (min-width: 600px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: var(--transition);
}
.plan-card:hover {
  border-color: rgba(148, 163, 184, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.plan-card.popular {
  border-color: var(--accent);
}
.plan-card.popular::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.plan-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.plan-price span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}
.plan-features {
  list-style: none;
  margin: 24px 0;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.plan-features li svg {
  width: 16px;
  height: 16px;
  stroke: var(--success);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}
.empty-state {
  text-align: center;
  padding: 48px 20px;
  grid-column: 1/-1;
}
@media (min-width: 768px) {
  .empty-state {
    padding: 64px 20px;
  }
}
.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
}
.empty-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(236, 179, 54, 0.03),
    transparent
  );
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.skeleton-line {
  height: 14px;
  background: rgba(148, 163, 184, 0.06);
  border-radius: 8px;
  margin-bottom: 10px;
}
.skeleton-line.w60 {
  width: 60%;
}
.skeleton-line.w40 {
  width: 40%;
}
.skeleton-line.w80 {
  width: 80%;
}
.skeleton-line.thick {
  height: 32px;
  margin-bottom: 14px;
}
.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  margin-bottom: 16px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(12px);
}
.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  backdrop-filter: blur(12px);
}
.toast.info {
  border-color: rgba(148, 163, 184, 0.2);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.show .modal-content {
  transform: translateY(0) scale(1);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}
.modal-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
@keyframes textPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.loading-text {
  animation: textPulse 1.5s infinite;
}
.network-mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.net-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.net-option:last-child {
  border-bottom: none;
}
.net-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}
.net-option.active .net-radio {
  border-color: var(--accent);
}
.net-option.active .net-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.net-name {
  font-size: 14px;
  font-weight: 600;
}
.net-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}
.net-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.net-status.active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.quick-btn:hover {
  border-color: rgba(236, 179, 54, 0.3);
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.quick-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.plan-type-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.plan-type-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: calc(var(--radius-sm) - 2px);
  border: none;
  background: 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.plan-type-tab.active {
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
}
.plan-type-tab:not(.active):hover {
  color: var(--text);
  background: rgba(248, 250, 252, 0.04);
}
.duration-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dur-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.dur-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.dur-btn:not(.active):hover {
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--text);
}
.dur-discount {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.route-item {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.key-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.4;
}
.key-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.key-card.inactive {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.15);
  text-align: center;
  padding: 32px 20px;
}
.key-card.inactive .key-label {
  font-size: 15px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.traffic-topup-card {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--bg-card), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 24px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.traffic-topup-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
}
.traffic-topup-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.traffic-topup-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}
.traffic-topup-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.traffic-topup-info {
  flex: 1;
  min-width: 140px;
}
.traffic-topup-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.traffic-topup-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.traffic-topup-btn {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  white-space: nowrap;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.traffic-topup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}
:root {
  --card: var(--bg-card);
  --card-b: var(--bg-surface);
  --text-s: var(--text-secondary);
  --text-m: var(--text-muted);
  --accent-d: #c9962e;
  --accent-g: var(--accent-glow);
}
.ov-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(236, 179, 54, 0.08) 0,
    var(--bg-card) 40%,
    rgba(34, 197, 94, 0.05) 100%
  );
  border: 1px solid rgba(236, 179, 54, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 28px;
  overflow: hidden;
}
.ov-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ov-hero-orb-1 {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -40px;
  background: radial-gradient(
    circle,
    rgba(236, 179, 54, 0.12) 0,
    transparent 70%
  );
  animation: orbFloat 8s ease-in-out infinite;
}
.ov-hero-orb-2 {
  width: 160px;
  height: 160px;
  bottom: -60px;
  left: -30px;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.08) 0,
    transparent 70%
  );
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.ov-hero-orb-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.05) 0,
    transparent 70%
  );
  animation: orbFloat 12s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(8px, -6px);
  }
  50% {
    transform: translate(-4px, 10px);
  }
  75% {
    transform: translate(6px, 4px);
  }
}
.ov-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ov-hero-greeting {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.ov-hero-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}
.ov-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ov-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}
.ov-hero-status.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.ov-hero-status.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.ov-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulseDot 2s ease-in-out infinite;
}
.ov-hero-status.danger .ov-status-dot {
  animation: none;
}
.ov-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(236, 179, 54, 0.15),
    rgba(236, 179, 54, 0.05)
  );
  border: 1px solid rgba(236, 179, 54, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(236, 179, 54, 0.15);
}
.ov-hero-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .ov-hero {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .ov-hero-name {
    font-size: 24px;
  }
  .ov-hero-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .ov-hero-logo-img {
    width: 36px;
    height: 36px;
  }
}
.ov-subs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 640px) {
  .ov-subs {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ov-sub-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}
.ov-sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.ov-sub-regular::before {
  background: linear-gradient(90deg, var(--accent), #f0be4d);
}
.ov-sub-whitelist::before {
  background: linear-gradient(90deg, #a78bfa, #818cf8);
}
.ov-sub-card:hover {
  border-color: rgba(148, 163, 184, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.ov-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ov-sub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(236, 179, 54, 0.15),
    rgba(236, 179, 54, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-sub-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.ov-sub-icon.wl {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.15),
    rgba(129, 140, 248, 0.05)
  );
}
.ov-sub-icon.wl svg {
  stroke: #a78bfa;
}
.ov-sub-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}
.ov-sub-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.ov-sub-badge.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.ov-sub-plan {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.ov-sub-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ov-sub-row-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.ov-sub-row-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.ov-sub-row-val.danger {
  color: var(--danger);
}
.ov-sub-row-val.warning {
  color: var(--warning);
}
.ov-sub-bar {
  margin-top: 14px;
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
}
.ov-sub-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.ov-sub-regular .ov-sub-bar-fill {
  background: linear-gradient(90deg, var(--accent), #f0be4d);
}
.ov-sub-whitelist .ov-sub-bar-fill {
  background: linear-gradient(90deg, #a78bfa, #818cf8);
}
.ov-subs.single-sub {
  grid-template-columns: 1fr;
}
.loc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}
.loc-section-header:hover .section-title {
  color: var(--accent);
}
.loc-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 12px;
}
.loc-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.loc-chevron.collapsed {
  transform: rotate(-90deg);
}
.loc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
  transition: all 0.3s ease;
}
.loc-grid.collapsed {
  display: none;
}
.loc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.loc-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}
.loc-flag {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.loc-info {
  flex: 1;
  min-width: 0;
}
.loc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-servers {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
@media (max-width: 480px) {
  .loc-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) {
  .loc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.profile-menu-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  position: relative;
}
.profile-menu-lang > span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.lang-switch-btn:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.15);
}
.lang-switch-flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
}
.lang-dropdown-inline {
  display: none;
  position: absolute;
  top: 100%;
  left: 10px;
  right: 10px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  z-index: 210;
}
.lang-dropdown-inline.open {
  display: block;
}
[dir='rtl'] .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
}
[dir='rtl'] .sidebar.active {
  transform: translateX(0);
}
@media (min-width: 992px) {
  [dir='rtl'] .sidebar {
    transform: translateX(0);
  }
  [dir='rtl'] .main {
    margin-left: 0;
    margin-right: var(--sidebar-w);
  }
  [dir='rtl'] .desktop-profile {
    right: auto;
    left: 36px;
  }
}
[dir='rtl'] .nav-item {
  flex-direction: row-reverse;
  text-align: right;
}
[dir='rtl'] .nav-label {
  padding-left: 0;
  padding-right: 12px;
}
[dir='rtl'] .sidebar .logo {
  padding-left: 0;
  padding-right: 4px;
}
[dir='rtl'] .profile-menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}
[dir='rtl'] .profile-menu-header {
  flex-direction: row-reverse;
}
[dir='rtl'] .profile-menu-item {
  flex-direction: row-reverse;
  text-align: right;
}
[dir='rtl'] .ov-sub-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .device-card {
  flex-direction: row-reverse;
  text-align: right;
  border-left: 1px solid var(--border);
  border-right: 3px solid var(--border);
}
[dir='rtl'] .device-card.status-recent { border-right-color: var(--success); }
[dir='rtl'] .device-card.status-idle { border-right-color: var(--warning); }
[dir='rtl'] .device-card.status-old { border-right-color: var(--text-muted); }
[dir='rtl'] .settings-item {
  flex-direction: row-reverse;
}
[dir='rtl'] .settings-item-info {
  text-align: right;
}
[dir='rtl'] .page-header {
  text-align: right;
}
[dir='rtl'] .section-header {
  flex-direction: row-reverse;
}
[dir='rtl'] .quick-actions {
  flex-direction: row-reverse;
}
[dir='rtl'] .quick-btn {
  flex-direction: row-reverse;
}
[dir='rtl'] .stat-card {
  text-align: right;
}
[dir='rtl'] .loc-section-header {
  flex-direction: row-reverse;
}
[dir='rtl'] .loc-card {
  flex-direction: row-reverse;
  text-align: right;
}
[dir='rtl'] .key-card {
  text-align: right;
}
[dir='rtl'] .modal-actions {
  flex-direction: row-reverse;
}
[dir='rtl'] .plan-type-tabs {
  flex-direction: row-reverse;
}
[dir='rtl'] .plan-card .plan-features li {
  flex-direction: row-reverse;
  text-align: right;
}
[dir='rtl'] .tfa-input-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .tfa-btn-row {
  flex-direction: row-reverse;
}

/* ===== PROMO + PAYMENT MOBILE ===== */
#promoSection { max-width: 100%; }
#promoExpanded > div:first-child { flex-wrap: wrap; }
#promoExpanded input { min-width: 0; }

@media (max-width: 480px) {
  #promoCollapsed { padding: 10px 14px; }
  #promoCollapsed span:nth-child(2) { font-size: 13px; }
  #promoExpanded { padding: 12px; }
  #promoExpanded > div:first-child {
    flex-direction: column;
    gap: 8px;
  }
  #promoExpanded input {
    width: 100%;
    font-size: 14px;
    padding: 10px 14px;
    letter-spacing: 2px;
  }
  #promoExpanded button,
  #promoBtn {
    width: 100%;
    padding: 10px;
  }
  .duration-selector {
    gap: 4px;
  }
  .dur-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .plan-card {
    padding: 20px;
  }
  .plan-type-tabs {
    gap: 4px;
  }
  .plan-type-tab {
    font-size: 13px;
    padding: 10px 12px;
  }
}
