/* frontend/style.css - Atlas VPN professional auth styling */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.atlas-auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(135deg, #0b1220, #111827 55%, #0f172a);
  color: #ffffff;
}

.atlas-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.atlas-auth-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.atlas-brand-wrap {
  max-width: 540px;
}

.atlas-logo-badge {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.atlas-brand-title {
  font-size: 56px;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
}

.atlas-brand-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 28px;
}

.atlas-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atlas-feature-item {
  display: inline-flex;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.atlas-auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.atlas-auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.atlas-card-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.atlas-card-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.atlas-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.atlas-input {
  height: 50px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.atlas-input:focus {
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.atlas-primary-btn {
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 700;
}

.atlas-primary-btn:hover {
  color: #fff;
  opacity: 0.95;
}

.atlas-secondary-btn {
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.atlas-secondary-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.atlas-link {
  color: #93c5fd;
  text-decoration: none;
  font-size: 14px;
}

.atlas-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.atlas-divider {
  text-align: center;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
}

.atlas-divider span {
  background: transparent;
  padding: 0 10px;
}

@media (max-width: 992px) {
  .atlas-auth-shell {
    grid-template-columns: 1fr;
  }

  .atlas-auth-left {
    display: none;
  }

  .atlas-auth-right {
    padding: 24px;
  }

  .atlas-auth-card {
    max-width: 100%;
  }
}


.alert {
  border-radius: 12px;
  font-size: 14px;
}


/* frontend/style.css - temporary bright test */

body.atlas-dashboard-body {
  min-height: 100vh;
  margin: 0;
  color: white;
  background: linear-gradient(135deg, #10203a 0%, #16345f 50%, #1f4f8a 100%) !important;
}


.atlas-topbar {
  background: rgba(10, 15, 28, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.atlas-logo-small {
  width: 42px;
  height: 42px;
  font-size: 20px;
  margin-bottom: 0;
}

.atlas-topbar-title {
  font-weight: 800;
  font-size: 20px;
}

.atlas-topbar-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.atlas-user-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.atlas-user-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.atlas-user-email {
  font-size: 14px;
  font-weight: 700;
}

.atlas-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.atlas-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}

.atlas-panel-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.atlas-panel-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.atlas-status-badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.atlas-status-badge.connected {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.atlas-status-badge.disconnected {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.atlas-metric-block {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.atlas-metric-label,
.atlas-mini-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.atlas-metric-value,
.atlas-mini-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
}

.atlas-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.atlas-mini-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.atlas-hint-box {
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.atlas-small-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.atlas-danger-btn {
  border-radius: 14px;
  font-weight: 700;
}

.atlas-table {
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.atlas-table thead th {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom-width: 1px;
}

.atlas-table tbody td {
  color: rgba(255, 255, 255, 0.92);
  vertical-align: middle;
}

@media (max-width: 768px) {
  .atlas-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .atlas-metric-grid {
    grid-template-columns: 1fr;
  }

  .atlas-user-pill {
    display: none;
  }
}



.atlas-plan-card {
  height: 100%;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.atlas-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
}

.atlas-plan-card.current-plan {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.atlas-plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.atlas-plan-price {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.atlas-plan-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 14px;
}

.atlas-plan-feature {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
}

.atlas-plan-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}


.atlas-wallet-balance-card,
.atlas-wallet-form-card {
  height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.atlas-wallet-balance {
  font-size: 34px;
  font-weight: 800;
  margin-top: 8px;
}

.atlas-wallet-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}




.atlas-admin-note-input {
  min-width: 180px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
}

.atlas-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}



.atlas-menu-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.atlas-main-vpn-card {
  padding: 40px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.atlas-current-server-wrap {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.atlas-main-server-text {
  font-size: 22px;
  font-weight: 800;
  margin-top: 8px;
}

.atlas-big-connect-btn {
  width: 100%;
  min-height: 70px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.atlas-big-connect-btn:hover {
  color: #fff;
  opacity: 0.96;
}

.atlas-drawer {
  background: #0f172a;
  color: #fff;
  width: min(92vw, 420px) !important;
}

.atlas-drawer-section {
  margin-bottom: 10px;
}

.atlas-drawer-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.atlas-drawer-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* frontend/style.css - drawer changed from mini dashboard to true menu */
.atlas-drawer-menu-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.atlas-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atlas-menu-item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  transition: 0.2s ease;
}

.atlas-menu-item:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.45);
}

.atlas-menu-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(59, 130, 246, 0.92));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.atlas-menu-item-danger:hover {
  background: rgba(220, 53, 69, 0.18);
  border-color: rgba(220, 53, 69, 0.4);
}

.atlas-drawer-content-wrap {
  margin-top: 4px;
}

.atlas-drawer-panel {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px;
}

.atlas-drawer-panel.active {
  display: block;
}

@media (max-width: 767px) {
  .atlas-drawer-panel {
    padding: 14px;
  }
}


.atlas-dashboard-section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.atlas-dashboard-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: atlasFadeIn 0.28s ease;
}

@keyframes atlasFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.atlas-content-card {
  background: rgba(20, 32, 56, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.atlas-content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.atlas-section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

.atlas-section-subtitle {
  margin: 6px 0 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.atlas-info-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px;
  height: 100%;
}

.atlas-info-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  word-break: break-word;
}

.atlas-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atlas-menu-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.atlas-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.atlas-menu-item.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
}

.atlas-table {
  color: #ffffff;
}

.atlas-table thead th {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

.atlas-table tbody td {
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.atlas-table .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

@media (max-width: 768px) {
  .atlas-content-card {
    padding: 20px;
  }

  .atlas-section-title {
    font-size: 24px;
  }
}



/* make the overview card brighter too */
.atlas-main-vpn-card {
  background: rgba(20, 32, 56, 0.84) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* make info cards more visible */
.atlas-info-card,
.atlas-plan-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* brighter tables */
.atlas-table {
  background: transparent;
}

.atlas-table tbody tr {
  background: rgba(255, 255, 255, 0.03);
}

.atlas-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}



.atlas-main-content {
  padding-top: 32px !important;
  padding-bottom: 48px !important;
}




.admin-deposit-row {
  cursor: pointer;
  transition:background 0.2s ease;
}

.admin-deposit-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-deposit-row.active {
  background: rgba(37, 99, 235, 0.15);
}

.atlas-admin-note-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  padding: 8px 10px;
}


.atlas-server-box{
  background:#1c2c4a;
  padding:20px;
  border-radius:16px;
  }
  
  .atlas-server-item{
  padding:15px;
  margin-bottom:10px;
  border-radius:10px;
  cursor:pointer;
  background:#26395c;
  transition:.3s;
  }
  
  .atlas-server-item:hover{
  transform:translateY(-2px);
  }
  
  .free-server{
  border-left:4px solid #00c853;
  }
  
  .premium-server{
  border-left:4px solid orange;
  opacity:.8;
  }
  
  .selected-server{
  border:2px solid #4d7cff;
  }



  .atlas-server-lists {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .atlas-server-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
  }
  
  .atlas-server-card {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .2s ease;
  }
  
  .atlas-server-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.1);
  }
  
  .selected-server {
    border-color: #43ff9c;
    box-shadow: 0 0 0 2px rgba(67,255,156,.18);
  }
  
  .free-server small {
    color: #43ff9c;
  }
  
  .premium-server {
    opacity: .75;
  }
  
  .premium-server small {
    color: #ffcc66;
  }


  /* frontend/style.css - Atlas VPN premium dashboard polish */

.atlas-dashboard-main {
  padding-top: 42px;
  padding-bottom: 60px;
}

.atlas-overview-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.atlas-dashboard-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: center;
}

.atlas-wallet-display {
  padding: 22px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.atlas-wallet-label {
  margin: 0 0 8px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-wallet-amount {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.atlas-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.atlas-status-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
}

.atlas-status-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-status-card strong {
  display: block;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 900;
}

.atlas-connection-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.95rem;
}

.atlas-connection-pill.disconnected {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.38);
}

.atlas-connection-pill.connected {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.38);
}

.atlas-main-connect-btn {
  width: 100%;
  min-height: 64px;
  margin-top: 4px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.atlas-main-connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(37, 99, 235, 0.42);
}

.atlas-server-area {
  margin-top: 28px;
  text-align: left;
}

.atlas-server-section {
  margin-top: 24px;
}

.atlas-server-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.atlas-server-section-title small {
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.8rem;
  font-weight: 700;
}

.atlas-server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.atlas-server-card {
  position: relative;
  min-height: 148px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.atlas-server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 45%);
  pointer-events: none;
}

.atlas-server-card.free {
  border-color: rgba(34, 197, 94, 0.28);
}

.atlas-server-card.premium {
  border-color: rgba(250, 204, 21, 0.26);
}

.atlas-server-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.atlas-server-flag {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.45rem;
}

.atlas-server-name {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.atlas-server-meta {
  margin-top: 2px;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.atlas-server-badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.atlas-server-badge {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.atlas-server-badge.free {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.26);
}

.atlas-server-badge.premium {
  color: #fef3c7;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.atlas-server-badge.fast {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.atlas-server-action {
  position: relative;
  width: 100%;
  margin-top: 16px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
}

.atlas-server-action.locked {
  color: #fef3c7;
  border-color: rgba(250, 204, 21, 0.25);
  background: rgba(250, 204, 21, 0.1);
}

.atlas-server-action.available {
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(37, 99, 235, 0.18);
}

.atlas-premium-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(250, 204, 21, 0.09);
  border: 1px solid rgba(250, 204, 21, 0.18);
  color: rgba(254, 243, 199, 0.9);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .atlas-server-grid {
    grid-template-columns: 1fr;
  }

  .atlas-status-grid {
    grid-template-columns: 1fr;
  }

  .atlas-overview-card {
    padding: 24px;
  }
}



/* frontend/style.css - Connected VPN dashboard polish */

.atlas-connection-pill.connected {
  color: #bbf7d0 !important;
  background: rgba(34, 197, 94, 0.16) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.18);
}

.atlas-connected-country {
  display: block;
  color: #bbf7d0;
  font-size: 1.35rem;
  font-weight: 900;
}

.atlas-connected-subtitle {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.atlas-disconnect-btn {
  background: linear-gradient(135deg, #ef4444, #be123c) !important;
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.28) !important;
}




/* frontend/style.css - Fix Atlas VPN server card alignment */

.atlas-server-area {
  width: 100%;
  overflow: hidden;
}

.atlas-server-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  width: 100%;
}

.atlas-server-card {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px !important;
  box-sizing: border-box;
  overflow: hidden;
}

.atlas-server-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.atlas-server-top > div:last-child {
  min-width: 0;
}

.atlas-server-name {
  white-space: normal;
  line-height: 1.2;
}

.atlas-server-meta {
  white-space: normal;
  line-height: 1.35;
}

.atlas-server-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.atlas-server-action {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 18px !important;
  padding: 12px 14px !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  text-align: center;
  box-sizing: border-box;
  display: block;
  overflow-wrap: break-word;
}

/* Make the free Germany card look clean and wider */
.atlas-server-section:first-of-type .atlas-server-grid {
  grid-template-columns: minmax(260px, 1fr) !important;
}

.atlas-server-section:first-of-type .atlas-server-card {
  max-width: 100% !important;
}

/* Better premium layout */
.atlas-server-card.premium {
  min-height: 210px;
}

/* Mobile and smaller browser widths */
@media (max-width: 1100px) {
  .atlas-server-grid {
    grid-template-columns: 1fr !important;
  }

  .atlas-server-card {
    min-height: auto;
  }
}



/* frontend/style.css - Plan bank transfer box */
.atlas-plan-bank-box {
  margin: 18px 0;
  padding: 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.atlas-plan-bank-box h3 {
  margin-bottom: 8px;
}

.atlas-plan-bank-box label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 800;
}

.atlas-plan-bank-box select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #0f172a;
  color: #fff;
}

.atlas-plan-bank-account {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.85);
}

.atlas-bank-account-card pre {
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.65);
  color: #e5e7eb;
}

.atlas-bank-note {
  color: #cbd5e1;
  font-size: 0.92rem;
}



.atlas-plan-fair-use {
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
}




/* Professional email verification page */
.atlas-verification-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.atlas-verification-card {
  width: min(100%, 460px);
  padding: 2.4rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.atlas-verification-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.4rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.32);
}

.atlas-verification-card h1 {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
}

.atlas-verification-subtitle {
  margin: 0 auto 1.8rem;
  max-width: 360px;
  text-align: center;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

.atlas-verification-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.atlas-verification-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.9rem;
  font-weight: 800;
}

.atlas-verification-input {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: none;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 1rem;
}

.atlas-verification-input:focus {
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
  background: rgba(15, 23, 42, 0.96);
}

.atlas-verification-code-input {
  text-align: center;
  letter-spacing: 0.55rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.atlas-verification-primary-btn,
.atlas-verification-secondary-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
}

.atlas-verification-primary-btn {
  margin-top: 0.3rem;
  color: #ffffff;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.atlas-verification-secondary-btn {
  margin-top: 0.9rem;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.atlas-verification-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  color: rgba(226, 232, 240, 0.76);
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.atlas-verification-footer {
  margin: 1.3rem 0 0;
  text-align: center;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.94rem;
}

.atlas-verification-footer a {
  color: #93c5fd;
  font-weight: 900;
  text-decoration: none;
}

.atlas-verification-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .atlas-verification-page {
    padding: 1rem;
  }

  .atlas-verification-card {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .atlas-verification-card h1 {
    font-size: 1.65rem;
  }

  .atlas-verification-code-input {
    letter-spacing: 0.35rem;
  }
}

/* Atlas VPN config download panel */
.atlas-vpn-config-panel {
  margin: 1.3rem 0;
}

.atlas-vpn-config-card {
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.atlas-vpn-config-card h3 {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.atlas-vpn-config-card p {
  margin: 0 0 1rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.6;
}

.atlas-vpn-config-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.atlas-vpn-config-primary,
.atlas-vpn-config-secondary {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.atlas-vpn-config-primary {
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.atlas-vpn-config-secondary {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(147, 197, 253, 0.28);
}

.atlas-vpn-config-help {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.82);
  background: rgba(2, 6, 23, 0.32);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .atlas-vpn-config-actions {
    grid-template-columns: 1fr;
  }
}
