/* ===================================================
   ZeroTrust Portal — Design System
   Style: TonMobile-inspired Clean Light UI
   Accent: #7C6AE6 (ZeroTrust Purple)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* === Design Tokens === */
:root {
  --bg:            #F2F1FB;
  --surface:       #FFFFFF;
  --surface-2:     #EEECF9;
  --primary:       #7C6AE6;
  --primary-dark:  #6354C5;
  --primary-light: #EDE8FF;
  --gradient:      linear-gradient(135deg, #7C6AE6 0%, #A78BFA 100%);

  --text:          #1A1523;
  --text-2:        #8A8A9A;
  --text-3:        #AEAEC0;

  --separator:     #E5E4EE;
  --danger:        #FF3B30;
  --danger-light:  #FFECEB;
  --success:       #34C759;
  --success-light: #ECFAF1;
  --warning:       #FF9500;
  --warning-light: #FFF5EB;
  --blue:          #3478F6;
  --blue-light:    #EBF2FF;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-nav: 0 -1px 0 rgba(0,0,0,0.06), 0 -2px 16px rgba(0,0,0,0.05);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===================================================
   CABINET PAGES LAYOUT (mobile-first)
   =================================================== */

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.page-content {
  padding: 16px;
  padding-bottom: 90px;
}

/* === Page Header === */
.page-header {
  background: var(--surface);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--separator);
}
.header-left  { display: flex; align-items: center; gap: 8px; }
.header-right { display: flex; align-items: center; gap: 8px; }

.header-logo  { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 12px; letter-spacing: 0;
}
.header-title { font-size: 17px; font-weight: 600; }
.header-sub   { font-size: 11px; color: var(--text-2); }

.back-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.btn-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}

/* === Bottom Navigation === */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 68px;
  background: var(--surface);
  box-shadow: var(--shadow-nav);
  display: flex; align-items: flex-start; padding-top: 10px;
  z-index: 100;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-3); font-size: 10px; font-weight: 500;
  transition: color 0.15s;
}
.nav-item.active { color: var(--primary); }
.nav-item svg { width: 22px; height: 22px; }

/* === Card === */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* === Subscription Card === */
.sub-card {
  background: var(--gradient);
  border-radius: var(--r-lg);
  padding: 16px;
  color: white;
  margin-bottom: 20px;
}
.sub-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--r-full);
  padding: 4px 10px; font-size: 12px; font-weight: 600; color: white;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.active .dot { background: #5EF087; }
.plan-name { font-size: 13px; font-weight: 500; opacity: 0.85; }
.sub-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; margin-bottom: 14px; }
.sub-label { font-size: 11px; opacity: 0.7; margin-bottom: 2px; }
.sub-value { font-size: 15px; font-weight: 600; }
.sub-value.accent { color: #C7F2A4; }
.sub-value .time   { font-weight: 400; opacity: 0.8; font-size: 13px; }
.traffic-row { display: flex; justify-content: space-between; font-size: 12px; opacity: 0.8; margin-bottom: 6px; }
.progress-bar  { height: 4px; background: rgba(255,255,255,0.25); border-radius: 2px; }
.progress-fill { height: 100%; border-radius: 2px; background: rgba(255,255,255,0.85); }

/* === Section Label === */
.section-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px; margin-top: 20px;
}

/* === Quick Actions Grid === */
.actions-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px;
}
.action-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 16px 12px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm); transition: transform 0.1s;
}
.action-card:active { transform: scale(0.97); }
.action-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.action-label { font-size: 13px; font-weight: 500; color: var(--text); }

/* === Grouped List Card === */
.list-card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.list-item {
  display: flex; align-items: center; padding: 13px 16px; gap: 12px;
  color: inherit; transition: background 0.1s; position: relative;
}
a.list-item:active, button.list-item:active { background: var(--surface-2); }
.list-item + .list-item::before {
  content: ''; position: absolute; top: 0; left: 56px; right: 0;
  height: 1px; background: var(--separator);
}
.item-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.item-body   { flex: 1; min-width: 0; }
.item-title  { font-size: 15px; font-weight: 500; color: var(--text); }
.item-sub    { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.item-end    { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chevron     { color: var(--text-3); flex-shrink: 0; }

/* === Ping === */
.ping-wrap {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.ping-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* === Flag Circle === */
.flag-circle {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.14);
}
.flag-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* === Badges === */
.badges { display: flex; align-items: center; gap: 5px; margin-top: 2px; flex-wrap: wrap; }
.badge  { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; line-height: 1.5; }
.badge-vless { background: var(--primary-light); color: var(--primary); }
.badge-awg   { background: var(--blue-light); color: var(--blue); }
.badge-dot   { color: var(--text-3); font-size: 10px; }

/* === Online Indicator === */
.online-ind { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--success); }

/* === Search Bar === */
.search-bar {
  background: var(--surface); border-radius: var(--r-md); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.search-bar input {
  flex: 1; border: none; outline: none;
  font-size: 15px; font-family: inherit; color: var(--text); background: transparent;
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar svg { color: var(--text-3); flex-shrink: 0; }

/* === Segmented Control === */
.segmented {
  display: flex; background: var(--surface-2); border-radius: 9px;
  padding: 2px; gap: 2px; margin-bottom: 16px;
}
.seg-btn {
  flex: 1; text-align: center; padding: 7px 4px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  border: none; background: transparent; font-family: inherit; cursor: pointer;
  transition: all 0.15s;
}
.seg-btn.active { background: var(--primary); color: white; box-shadow: 0 1px 4px rgba(124,106,230,0.35); }

/* === Buttons === */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: white; border-radius: var(--r-md);
  padding: 14px 20px; font-size: 16px; font-weight: 600;
  font-family: inherit; border: none; cursor: pointer; width: 100%;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.99); }

.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface-2); color: var(--text); border-radius: var(--r-md);
  padding: 14px 20px; font-size: 16px; font-weight: 600;
  font-family: inherit; border: none; cursor: pointer; width: 100%;
  transition: background 0.15s;
}
.btn-outline:hover { background: var(--separator); }

.btn-danger {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--danger-light); color: var(--danger); border-radius: var(--r-md);
  padding: 14px 20px; font-size: 16px; font-weight: 600;
  font-family: inherit; border: none; cursor: pointer; width: 100%;
  transition: background 0.15s;
}

/* === Form Fields === */
.input-group {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 14px;
}
.input-row {
  display: flex; align-items: center; padding: 14px 16px; gap: 12px; position: relative;
}
.input-row + .input-row::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 0;
  height: 1px; background: var(--separator);
}
.input-row svg   { color: var(--text-3); flex-shrink: 0; }
.input-row input {
  flex: 1; border: none; outline: none;
  font-size: 15px; font-family: inherit; color: var(--text); background: transparent;
}
.input-row input::placeholder { color: var(--text-3); }
.input-toggle { color: var(--text-3); padding: 4px; flex-shrink: 0; cursor: pointer; }

/* === Auth Pages === */
.auth-page { background: var(--bg); min-height: 100vh; }
.auth-wrap  { max-width: 480px; margin: 0 auto; padding: 0 20px 40px; }
.auth-top   { text-align: center; padding: 48px 0 28px; }
.auth-logo-wrap {
  width: 64px; height: 64px; border-radius: 16px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: white; margin: 0 auto 16px;
}
.auth-title    { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.auth-links    { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.auth-links a  { color: var(--primary); font-weight: 500; }

.password-strength-wrap { padding: 0 16px 12px; }
.strength-label { font-size: 11px; color: var(--text-2); margin-bottom: 4px; }
.strength-track { height: 3px; background: var(--separator); border-radius: 2px; }
.strength-fill  { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }

/* === Profile Avatar === */
.avatar-wrap  { text-align: center; padding: 24px 0 16px; }
.avatar-circle {
  width: 72px; height: 72px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: white; margin: 0 auto 10px;
}
.avatar-id    { font-size: 17px; font-weight: 600; }
.avatar-uuid  {
  display: inline-block; margin-top: 6px;
  background: var(--surface-2); border-radius: 6px; padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-2);
}

/* === Profile Stats === */
.stats-row-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat-box {
  background: var(--surface); border-radius: var(--r-md);
  padding: 12px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-box-num   { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-box-num.orange { color: var(--warning); }
.stat-box-label { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* === Check icon for linked === */
.item-check { color: var(--success); }

/* === Configs === */
.config-url-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.config-url-label {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.config-url-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border-radius: 8px; padding: 10px 12px;
}
.config-url-text {
  flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-btn {
  color: var(--primary); flex-shrink: 0; padding: 4px; border-radius: 6px;
  background: none; border: none; cursor: pointer; transition: background 0.1s;
}
.copy-btn:hover { background: var(--primary-light); }

.qr-box {
  background: var(--surface); border-radius: var(--r-lg); padding: 20px;
  text-align: center; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.qr-placeholder {
  width: 160px; height: 160px; background: var(--surface-2); border-radius: var(--r-md);
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 11px; border: 1px dashed var(--separator);
}
.qr-content {
  max-width: 200px; margin: 0 auto 12px;
}
.qr-content svg { width: 100%; height: auto; }
.qr-label { font-size: 13px; color: var(--text-2); }

/* === Subscription Plans === */
.plan-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 16px 20px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center;
  border: 2px solid transparent; transition: border-color 0.15s; margin-bottom: 10px;
}
.plan-card.featured { border-color: var(--primary); }
.plan-info  { flex: 1; }
.plan-n     { font-size: 16px; font-weight: 600; }
.plan-dur   { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.plan-save  {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--success);
  background: var(--success-light); padding: 2px 7px; border-radius: 4px; margin-top: 4px;
}
.plan-right { text-align: right; }
.plan-price { font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1; }
.plan-per   { font-size: 12px; color: var(--text-2); }
.plan-pop   {
  display: inline-block; font-size: 11px; font-weight: 700; color: white;
  background: var(--primary); padding: 3px 10px; border-radius: var(--r-full);
}

/* === "All servers" link === */
.all-link {
  display: block; text-align: center; padding: 14px;
  color: var(--primary); font-size: 15px; font-weight: 500;
  border-top: 1px solid var(--separator);
}

/* === Danger === */
.danger-label { font-size: 12px; font-weight: 600; color: var(--danger); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; margin-top: 20px; }
.item-title.danger { color: var(--danger); }
.item-icon-wrap.danger { background: var(--danger-light) !important; }

/* === Misc === */
.mt-4  { margin-top: 4px; }  .mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.text-center    { text-align: center; }
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--text-2); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.font-mono      { font-family: 'JetBrains Mono', monospace; }
.divider        { height: 1px; background: var(--separator); margin: 12px 0; }

/* ===================================================
   LANDING PAGE
   =================================================== */
.landing { min-height: 100vh; background: #fff; }

/* Nav */
.l-nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--separator); z-index: 100;
}
.l-nav .container {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 0;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo-badge {
  width: 36px; height: 36px; border-radius: 9px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px;
}
.site-logo-name       { font-size: 17px; font-weight: 600; color: var(--text); }
.site-logo-name strong{ color: var(--primary); }

.site-links { display: flex; align-items: center; gap: 24px; flex: 1; margin-left: 32px; }
.site-links a { font-size: 15px; color: var(--text-2); font-weight: 500; transition: color 0.15s; }
.site-links a:hover { color: var(--text); }

.lang-toggle { display: flex; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin-left: auto; margin-right: 16px; }
.lang-btn { padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--text-2); border: none; background: transparent; cursor: pointer; }
.lang-btn.active { background: var(--primary); color: white; border-radius: 5px; }

.nav-cta {
  background: var(--primary); color: white; border-radius: var(--r-md);
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background 0.15s;
}
.nav-cta:hover { background: var(--primary-dark); }

/* Hero */
.l-hero {
  text-align: center; padding: 80px 24px 64px;
  max-width: 720px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--r-full); padding: 7px 18px;
  font-size: 13px; font-weight: 600; margin-bottom: 30px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero-title {
  font-size: clamp(44px, 7vw, 72px); font-weight: 700; line-height: 1.1;
  color: var(--text); margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  font-size: 17px; color: var(--text-2); line-height: 1.65;
  max-width: 500px; margin: 0 auto 32px;
}
.hero-desc strong { color: var(--text); }
.hero-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.l-btn-primary {
  background: var(--primary); color: white; border-radius: var(--r-lg);
  padding: 14px 28px; font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.l-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.l-btn-secondary {
  background: white; color: var(--text); border-radius: var(--r-lg);
  padding: 14px 28px; font-size: 16px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--separator); transition: border-color 0.15s, color 0.15s;
}
.l-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.hero-note { font-size: 13px; color: var(--text-3); }

/* Stats */
.l-stats { background: var(--bg); padding: 48px 24px; }
.l-stats .container { max-width: 860px; margin: 0 auto; }
.stats-4 {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center;
}
.stat-it-num { font-size: 36px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.stat-it-num.pink { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-it-label { font-size: 13px; color: var(--text-2); }

/* Features */
.l-features { padding: 64px 24px; max-width: 1160px; margin: 0 auto; }
.sec-head    { text-align: center; margin-bottom: 44px; }
.sec-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 8px; }
.sec-title   { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--text); margin-bottom: 10px; }
.sec-desc    { font-size: 16px; color: var(--text-2); }
.feat-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat-card {
  background: white; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-md);
}
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feat-t { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feat-d { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* Servers preview */
.l-servers { background: var(--bg); padding: 64px 24px; }
.l-servers .container { max-width: 700px; margin: 0 auto; }
.server-list-preview { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.server-row {
  background: white; display: flex; align-items: center; padding: 14px 20px; gap: 14px;
}
.server-row + .server-row { border-top: 1px solid var(--separator); }
.server-flag { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.14); flex-shrink: 0; }
.server-flag img { width: 100%; height: 100%; object-fit: cover; }
.server-name  { flex: 1; font-size: 15px; font-weight: 500; }
.server-proto { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.server-ping  { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.server-ping .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* Pricing */
.l-pricing { padding: 64px 24px; background: white; }
.l-pricing .container { max-width: 960px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 44px; }
.pricing-card {
  background: white; border-radius: var(--r-xl); padding: 24px;
  box-shadow: var(--shadow-md); border: 2px solid transparent;
  position: relative; transition: border-color 0.15s;
}
.pricing-card.featured { border-color: var(--primary); }
.pricing-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--r-full); white-space: nowrap;
}
.p-plan  { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.p-price { font-size: 38px; font-weight: 700; color: var(--text); line-height: 1; }
.p-price span { font-size: 16px; font-weight: 500; color: var(--text-2); }
.p-per   { font-size: 13px; color: var(--text-2); margin: 2px 0 16px; }
.p-save  { display: inline-block; font-size: 12px; font-weight: 600; color: var(--success); background: var(--success-light); padding: 3px 8px; border-radius: 4px; margin-bottom: 16px; }
.p-feat  { font-size: 14px; color: var(--text-2); padding: 5px 0; }
.p-feat::before { content: '✓  '; color: var(--success); font-weight: 700; }
.p-btn {
  display: block; text-align: center;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--r-md); padding: 12px; font-size: 15px; font-weight: 600;
  margin-top: 20px; text-decoration: none; transition: background 0.15s;
}
.pricing-card.featured .p-btn { background: var(--primary); color: white; }
.p-btn:hover { opacity: 0.85; }

/* CTA */
.l-cta {
  background: var(--gradient); color: white;
  padding: 64px 24px; text-align: center;
}
.l-cta h2 { font-size: 34px; font-weight: 700; margin-bottom: 12px; }
.l-cta p  { font-size: 16px; opacity: 0.85; margin-bottom: 28px; }
.l-cta a  {
  display: inline-block; background: white; color: var(--primary);
  border-radius: var(--r-lg); padding: 14px 32px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 0.15s;
}
.l-cta a:hover { transform: translateY(-1px); }

/* Footer */
.l-footer {
  background: var(--text); color: rgba(255,255,255,0.55);
  padding: 28px 24px; text-align: center; font-size: 14px;
}
.l-footer a { color: rgba(255,255,255,0.55); }
.l-footer strong { color: rgba(255,255,255,0.85); }

/* === Responsive Landing === */
@media (max-width: 860px) {
  .site-links { display: none; }
  .stats-4    { grid-template-columns: repeat(2,1fr); }
  .feat-grid  { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .feat-grid  { grid-template-columns: 1fr; }
  .l-hero     { padding: 48px 16px 40px; }
}

/* === Servers Page (Cabinet) — Redesigned === */

/* Online badge in header */
.srv-online-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); padding: 4px 10px; border-radius: var(--r-full);
}
.srv-online-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.srv-online-dot.dot-ok  { background: var(--success); }
.srv-online-dot.dot-off { background: var(--text-3); }

/* Search */
.srv-search-wrap {
  position: relative; margin-bottom: 12px;
}
.srv-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.srv-search {
  width: 100%; padding: 10px 12px 10px 36px;
  border: 1px solid var(--separator); border-radius: var(--r-lg);
  background: var(--surface); font-size: 14px; color: var(--text);
  outline: none; transition: border-color .2s;
}
.srv-search:focus { border-color: var(--primary); }
.srv-search::placeholder { color: var(--text-3); }

/* Tabs */
.srv-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.srv-tab {
  padding: 7px 16px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--separator); transition: all .2s;
}
.srv-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Section headers */
.srv-section { margin-bottom: 16px; }
.srv-section-header {
  display: flex; align-items: baseline; gap: 8px;
  padding: 0 4px; margin-bottom: 8px;
}
.srv-section-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: 0.04em;
}
.srv-section-count {
  font-size: 11px; font-weight: 500; color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Card list */
.srv-card-list {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Server row */
.srv-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--surface); gap: 10px;
}
.srv-row + .srv-row { border-top: 1px solid var(--separator); }
.srv-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.srv-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Flag */
.srv-flag {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Info */
.srv-info { min-width: 0; }
.srv-name { font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-detail { font-size: 11px; color: var(--text-3); margin-top: 1px; letter-spacing: 0.02em; }

/* Protocol badge */
.srv-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--r-full); white-space: nowrap;
}
.badge-vless { background: #EDE8FF; color: #7C6AE6; }
.badge-awg   { background: #E0F7FA; color: #00838F; }

/* Ping + dot */
.srv-ping {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  min-width: 32px; text-align: right;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.status-success { background: var(--success); }
.status-dot.status-timeout { background: var(--warning); }
.status-dot.status-error   { background: var(--danger); }
.status-dot.status-unknown { background: var(--text-3); }

