:root {
  --bg: #040b16;
  --bg-2: #081120;
  --panel: rgba(10, 20, 35, 0.82);
  --panel-2: rgba(255, 255, 255, 0.05);
  --panel-3: rgba(255, 255, 255, 0.08);
  --text: #f7fbff;
  --muted: #9fb2c8;
  --muted-2: #c7d5e6;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --green: #18c37e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.22), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(24, 195, 126, 0.14), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #040b16 55%, #050c15 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 12, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.site-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}
.dash-brand .site-logo-img {
  height: 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: #fff;
}

.nav-login {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
}

.btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 35px rgba(59, 130, 246, 0.34);
  border: none;
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}

.full {
  width: 100%;
}

.hero {
  padding: 88px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 34px;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #d6e7ff;
  border: 1px solid rgba(96, 165, 250, 0.18);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 760px;
}

.hero-text {
  max-width: 700px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e7f7;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-card {
  position: relative;
}

.card-glow {
  position: absolute;
  inset: 2% 6% auto 6%;
  height: 280px;
  background:
    radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 58%);
  filter: blur(22px);
  z-index: 0;
}

.proxy-card {
  position: relative;
  z-index: 1;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.proxy-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e7f0ff;
  font-weight: 800;
  margin-bottom: 22px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(24, 195, 126, 0.75);
}

.proxy-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.proxy-metrics div,
.stat-box,
.review-card,
.feature-card,
.step-card,
.price-card,
.package-card,
.cta-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-2);
  border-radius: var(--radius);
}

.proxy-metrics div {
  padding: 16px;
  text-align: center;
}

.proxy-metrics strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.proxy-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.proxy-code {
  display: grid;
  gap: 10px;
}

.proxy-code div {
  color: #c8d7eb;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.proxy-code code {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(4, 11, 22, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f8fbff;
  overflow-x: auto;
}

.stats-strip {
  padding: 12px 0 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-box {
  text-align: center;
  padding: 22px;
}

.stat-box strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.stat-box span {
  color: var(--muted);
}

.use-cases {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 18px;
}

.use-cases span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #d6e2f0;
  font-size: 0.92rem;
  font-weight: 600;
}

.section {
  padding: 92px 0;
}

.alt-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-head {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 36px;
}

.section-head h2 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  line-height: 1.8;
}

.review-grid,
.feature-grid,
.steps-grid,
.pricing-grid,
.package-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.review-grid,
.feature-grid,
.steps-grid,
.pricing-grid,
.package-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card,
.feature-card,
.step-card,
.price-card,
.package-card {
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-card:hover,
.feature-card:hover,
.step-card:hover,
.price-card:hover,
.package-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
}

.review-card p,
.feature-card p,
.step-card p,
.package-card p {
  color: var(--muted);
  line-height: 1.8;
}

.review-user {
  margin-top: 18px;
  display: grid;
  gap: 4px;
}

.review-user strong {
  font-size: 1rem;
}

.review-user span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card h3,
.step-card h3,
.package-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.price-card {
  position: relative;
  padding-top: 26px;
}

.price-label {
  color: #c3d2e8;
  font-weight: 800;
  margin-bottom: 10px;
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(59, 130, 246, 0.14);
  color: #dbe8ff;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.price {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
}

.price-card ul,
.package-card ul {
  margin: 0 0 22px;
  padding-left: 18px;
  color: #d8e3f3;
  line-height: 1.95;
}

.featured {
  border-color: rgba(59, 130, 246, 0.34);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 65px rgba(59, 130, 246, 0.16);
  transform: translateY(-8px);
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.cta-section {
  padding: 92px 0;
}

.cta-box {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(59,130,246,0.1), rgba(255,255,255,0.03));
}

.cta-box h2 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  background: rgba(0,0,0,0.14);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0 18px;
}

.footer-grid {
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  align-items: start;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-grid h4 {
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--muted);
  line-height: 1.9;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .review-grid,
  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .package-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(6, 14, 25, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid,
  .stats-grid,
  .review-grid,
  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .package-grid,
  .footer-grid,
  .proxy-metrics {
    grid-template-columns: 1fr;
  }

  .featured {
    transform: none;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }
}

.hero h1 span {
  color: #8cb8ff;
}

.hero-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
  max-width: 560px;
}

.hero-stats-mini div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.hero-stats-mini strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.hero-stats-mini span {
  color: var(--muted);
  font-size: 0.9rem;
}

.proxy-bottom-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.package-grid-2 {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  max-width: 860px;
  margin: 0 auto;
}

.light-package {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  color: #111827;
}

.light-package h3 {
  color: #111827;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.light-package p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 18px;
}

.package-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.package-price-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 22px;
}

.package-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 6px;
  border-radius: 10px;
  color: #374151;
  font-size: 0.96rem;
}

.package-price-row strong {
  color: #7c3aed;
  font-weight: 800;
}

.featured-row {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.16);
  padding-left: 12px;
  padding-right: 12px;
}

.package-feature-list {
  margin: 0 0 22px;
  padding-left: 18px;
  color: #6b7280;
  line-height: 1.95;
}

.package-feature-list li::marker {
  color: #8b5cf6;
}

.package-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #111827;
  font-weight: 700;
  transition: 0.2s ease;
}

.package-btn:hover {
  border-color: rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.04);
}

@media (max-width: 760px) {
  .package-grid-2 {
    grid-template-columns: 1fr;
  }
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at center, rgba(139, 92, 246, 0.12), transparent 26%),
    linear-gradient(180deg, #faf9fc 0%, #f6f4fb 100%);
  color: #16181d;
}

.promo-strip {
  min-height: 32px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.84rem;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed 0%, #38bdf8 100%);
}

.promo-strip strong {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

.auth-header {
  background: transparent;
}

.auth-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-logo {
  color: #7c3aed;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  font-size: 0.9rem;
}

.auth-top-links {
  display: flex;
  gap: 28px;
}

.auth-top-links a {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-top-links a:hover {
  color: #111827;
}

.auth-layout {
  position: relative;
  min-height: calc(100vh - 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px 60px;
}

.auth-center-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-bg-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 62%);
  filter: blur(18px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  padding: 24px 22px;
  border-radius: 20px;
  background: rgba(239, 236, 245, 0.78);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 70px rgba(84, 52, 136, 0.12);
  backdrop-filter: blur(12px);
}

.auth-card h1 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 2rem;
  color: #1f2937;
}

.auth-card p {
  margin: 0 0 18px;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
}

.google-btn {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-weight: 700;
  cursor: pointer;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0 14px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(107, 114, 128, 0.35);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 10px;
  background: rgba(239, 236, 245, 0.95);
  color: #8b8f98;
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label > span {
  color: #374151;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.72);
  padding: 0 12px;
  outline: none;
  color: #111827;
}

.auth-form input:focus {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  margin-top: 3px;
}

.check-row span,
.check-row a {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.5;
}

.check-row a,
.auth-link,
.auth-bottom-text a {
  color: #7c3aed;
  font-weight: 600;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.18);
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-row.compact {
  align-items: center;
}

.auth-bottom-text {
  margin-top: 16px;
  text-align: center;
  color: #6b7280;
  font-size: 0.92rem;
}

.live-stats-card {
  position: fixed;
  left: 12px;
  bottom: 18px;
  width: 116px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}

.live-stats-head {
  font-size: 0.82rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 12px;
}

.live-stat-item {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.live-stat-item:last-child {
  margin-bottom: 0;
}

.live-stat-item strong {
  font-size: 1.45rem;
  color: #111827;
  line-height: 1;
}

.live-stat-item span {
  color: #6b7280;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .live-stats-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-top-links {
    display: none;
  }

  .auth-card {
    padding: 22px 16px;
  }

  .auth-card h1 {
    font-size: 1.75rem;
  }

  .auth-row-between {
    flex-direction: column;
    align-items: flex-start;
  }
}

.auth-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.auth-popup-overlay.open {
  display: flex;
}

.auth-popup-box {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.12);
  overflow: hidden;
  animation: authPopIn 0.18s ease;
}

.auth-popup-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 10px;
}

.auth-popup-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: 0 0 54px;
}

.auth-popup-icon.success {
  background: #ecfdf5;
  color: #15803d;
}

.auth-popup-icon.error {
  background: #fef2f2;
  color: #dc2626;
}

.auth-popup-title-wrap h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
}

.auth-popup-title-wrap p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.auth-popup-body {
  padding: 0 22px 18px;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}

.auth-popup-body p {
  margin: 0;
}

.auth-popup-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 22px 22px;
}

.auth-popup-btn {
  min-width: 120px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.22);
}

.auth-popup-btn:hover {
  opacity: 0.95;
}

@keyframes authPopIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.text-gradient {
  background: linear-gradient(90deg, #7c3aed, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.package-grid-2 {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  max-width: 860px;
  margin: 0 auto;
}

.dash-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6fb;
  color: #111827;
  display: flex;
}

.dash-sidebar {
  width: 250px;
  min-height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  position: sticky;
  top: 0;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7c3aed;
  font-weight: 900;
  margin-bottom: 20px;
}

.dash-menu {
  display: grid;
  gap: 6px;
}

.dash-menu a,
.dash-sidebar-bottom a {
  padding: 11px 12px;
  border-radius: 10px;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.95rem;
}

.dash-menu a:hover,
.dash-sidebar-bottom a:hover {
  background: #f5f3ff;
  color: #7c3aed;
}

.dash-menu a.active {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
}

.dash-main {
  flex: 1;
  min-width: 0;
}

.dash-header {
  min-height: 72px;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.dash-menu-toggle {
  display: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.05rem;
}

.dash-page-label {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-balance-pill {
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 800;
}

.dash-user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  font-weight: 900;
}

.dash-user-mini strong {
  display: block;
  font-size: 0.92rem;
}

.dash-user-mini span {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
}

.dash-content {
  padding: 26px 22px 34px;
}

.dash-hero-card,
.dash-panel,
.dash-stat-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.dash-hero-card {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.dash-date {
  color: #8b5cf6;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dash-hero-card h1 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.dash-hero-card p {
  margin: 0;
  color: #6b7280;
}

.dash-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.dash-stat-card {
  padding: 18px;
}

.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.dash-stat-top span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #374151;
}

.dash-stat-top a {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

.dash-stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

.dash-stat-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.88rem;
}

.dash-stat-card.green strong { color: #16a34a; }
.dash-stat-card.blue strong { color: #0284c7; }
.dash-stat-card.purple strong { color: #7c3aed; }
.dash-stat-card.orange strong { color: #ea580c; }

.dash-grid-2 {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 16px;
}

.dash-panel {
  padding: 20px;
}

.dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.dash-panel-head h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.dash-panel-head p {
  margin: 0;
  color: #6b7280;
  font-size: 0.88rem;
}

.dash-panel-head > a {
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.85rem;
}

.dash-empty-state {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.dash-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: #f3f4f6;
  color: #6b7280;
}

.dash-empty-state p {
  color: #6b7280;
  margin: 0;
}

.dash-side-stack {
  display: grid;
  gap: 16px;
}

.dash-action-list {
  display: grid;
  gap: 10px;
}

.dash-action-list a {
  display: block;
  padding: 14px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.05);
}

.dash-action-list a:hover {
  background: #f5f3ff;
  border-color: rgba(124, 58, 237, 0.12);
}

.dash-action-list span {
  display: block;
  color: #111827;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-action-list small {
  color: #6b7280;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  font-size: 0.74rem;
  font-weight: 800;
}

.dash-status-list {
  display: grid;
  gap: 12px;
}

.dash-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dash-status-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-status-list span {
  color: #4b5563;
  font-size: 0.92rem;
}

.dash-status-list strong.ok {
  color: #16a34a;
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .dash-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .dash-sidebar {
    position: fixed;
    left: -270px;
    top: 0;
    bottom: 0;
    z-index: 40;
    transition: left 0.25s ease;
  }

  .dash-sidebar.open {
    left: 0;
  }

  .dash-menu-toggle {
    display: inline-flex;
  }

  .dash-header {
    padding: 0 14px;
  }

  .dash-content {
    padding: 18px 14px 30px;
  }

  .dash-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .dash-header-right {
    gap: 8px;
  }

  .dash-user-mini span {
    display: none;
  }

  .dash-stat-grid {
    grid-template-columns: 1fr;
  }

  .dash-hero-card h1 {
    font-size: 1.5rem;
  }

  .dash-balance-pill {
    display: none;
  }
}

.web-select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.72);
  padding: 0 12px;
  outline: none;
  color: #111827;
}

.web-table-wrap {
  overflow-x: auto;
}

.web-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.web-table th,
.web-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  font-size: 0.92rem;
}

.web-table th {
  color: #374151;
  background: #f8fafc;
}

.proxy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}

.proxy-modal-overlay.open {
  display: flex;
}

.proxy-modal {
  width: 100%;
  max-width: 930px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
}

.proxy-modal-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: start;
}

.proxy-modal-head h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: #1f2937;
}

.proxy-modal-head p {
  margin: 0;
  color: #6b7280;
  font-size: 0.94rem;
}

.proxy-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
}

.proxy-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.proxy-steps span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 800;
}

.proxy-steps span.active {
  background: #7c3aed;
  color: #fff;
}

.proxy-steps i {
  width: 22px;
  height: 2px;
  background: #d1d5db;
  display: block;
  border-radius: 999px;
}

.proxy-modal-body {
  padding: 18px 22px;
}

.proxy-step {
  display: none;
}

.proxy-step.active {
  display: block;
}

.proxy-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.proxy-type-card {
  text-align: left;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.proxy-type-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.08);
}

.proxy-type-card.selected {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
  background: #faf7ff;
}

.proxy-type-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.proxy-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  font-size: 1.15rem;
}

.proxy-type-top strong {
  display: block;
  color: #111827;
  font-size: 1.15rem;
}

.proxy-type-top small,
.proxy-type-card p {
  color: #6b7280;
}

.proxy-type-price {
  margin: 12px 0;
  color: #7c3aed;
  font-weight: 800;
}

.proxy-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.proxy-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  font-size: 0.76rem;
  font-weight: 700;
}

.proxy-config-box,
.proxy-summary-box {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.proxy-selected-package {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.05);
}

.proxy-selected-package strong {
  display: block;
  color: #111827;
}

.proxy-selected-package span {
  color: #6b7280;
  font-size: 0.9rem;
}

.proxy-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.proxy-form-grid label {
  display: grid;
  gap: 8px;
}

.proxy-form-grid span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #374151;
}

.proxy-form-grid input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.9);
  padding: 0 12px;
  outline: none;
}

.proxy-port-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  max-height: 220px;
  overflow: auto;
}

.proxy-port-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.proxy-port-card.selected {
  border-color: #8b5cf6;
  background: #faf7ff;
}

.proxy-port-card strong {
  display: block;
  margin-bottom: 4px;
}

.proxy-port-card small {
  color: #6b7280;
}

.proxy-port-meta {
  display: grid;
  gap: 6px;
  text-align: right;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.84rem;
}

.proxy-protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.protocol-card {
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.protocol-card.selected {
  border-color: #8b5cf6;
  background: #f7f1ff;
  color: #7c3aed;
}

.proxy-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.proxy-plan-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  cursor: pointer;
}

.proxy-plan-card.selected {
  border-color: #8b5cf6;
  background: #faf7ff;
}

.proxy-plan-card strong {
  display: block;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 8px;
}

.proxy-plan-card span {
  color: #6b7280;
  font-size: 0.88rem;
}

.proxy-plan-card .price {
  margin-top: 12px;
  color: #7c3aed;
  font-weight: 900;
  font-size: 1.2rem;
}

.proxy-summary-box h4 {
  margin: 0 0 12px;
  color: #111827;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span {
  color: #6b7280;
}

.summary-row strong {
  color: #111827;
}

.summary-row.total strong {
  color: #7c3aed;
  font-size: 1.1rem;
}

.proxy-modal-footer {
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 820px) {
  .proxy-type-grid,
  .proxy-form-grid,
  .proxy-plan-grid {
    grid-template-columns: 1fr;
  }

  .proxy-modal-head {
    grid-template-columns: 1fr;
  }

  .proxy-port-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .proxy-port-meta {
    text-align: left;
  }
}

.proxy-modal-footer .btn {
  min-width: 96px;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
}

.proxy-modal-footer .btn-secondary {
  color: #374151 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: none !important;
}

.proxy-modal-footer .btn-secondary:hover {
  background: #f9fafb !important;
  color: #111827 !important;
  border-color: rgba(124, 58, 237, 0.22) !important;
}

.proxy-modal-footer .btn-primary {
  color: #ffffff !important;
}

#proxyBackBtn,
#proxyCancelBtn,
#proxyNextBtn {
  display: inline-flex !important;
}

#proxyPortListHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 8px;
}

#proxyPortCountBadge {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  color: #374151;
  background: #fff;
}

.proxy-credentials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 10px;
}

.proxy-credentials-head strong {
  color: #111827;
  font-size: 0.96rem;
  font-weight: 800;
}

.proxy-generate-btn {
  border: none;
  background: transparent;
  color: #7c3aed;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.proxy-generate-btn:hover {
  text-decoration: underline;
}

.proxy-credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.proxy-credentials-grid label {
  display: grid;
  gap: 8px;
}

.proxy-credentials-grid span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #374151;
}

.proxy-credentials-grid input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.9);
  padding: 0 12px;
  outline: none;
  color: #111827;
}

.proxy-credentials-note {
  margin: 0;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .proxy-credentials-grid {
    grid-template-columns: 1fr;
  }
}

.proxy-username-status {
  margin: 8px 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.proxy-username-status.checking {
  color: #6b7280;
}

.proxy-username-status.available {
  color: #16a34a;
}

.proxy-username-status.used {
  color: #dc2626;
}

.web-proxy-list {
  display: grid;
  gap: 14px;
}

.web-proxy-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.web-proxy-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.web-proxy-card-top strong {
  display: block;
  font-size: 1rem;
  color: #111827;
  margin-bottom: 4px;
}

.web-proxy-card-top small {
  color: #6b7280;
}

.web-proxy-status {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

.web-proxy-status.active {
  color: #15803d;
  background: #ecfdf5;
}

.web-proxy-status.expired,
.web-proxy-status.inactive {
  color: #b91c1c;
  background: #fef2f2;
}

.web-proxy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.web-proxy-grid div {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafafa;
}

.web-proxy-grid span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.web-proxy-grid strong {
  color: #111827;
  word-break: break-word;
}

.web-proxy-grid.compact div {
  padding: 8px 10px;
  border-radius: 10px;
}

.web-proxy-grid.compact span {
  font-size: 11px;
  margin-bottom: 3px;
}

.web-proxy-grid.compact strong {
  font-size: 13px;
  line-height: 1.25;
}

.web-proxy-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.web-proxy-manage-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.web-proxy-manage-btn:hover {
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

.web-proxy-renew-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18);
}

.web-proxy-renew-btn.blink {
  animation: renewPulse 1.4s infinite;
}

@keyframes renewPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    transform: translateY(0);
  }
}

.web-proxy-full-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.web-proxy-full-box {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fafafa;
  min-width: 0;
}

.web-proxy-full-box span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 3px;
}

.web-proxy-full-box strong {
  display: block;
  font-size: 13px;
  color: #111827;
  word-break: break-all;
  line-height: 1.3;
}

.web-proxy-copy-btn {
  min-width: 78px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}

.web-proxy-remaining-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.web-proxy-remaining-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.web-proxy-remaining-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
}

.web-proxy-remaining-badge.active {
  color: #15803d;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.web-proxy-remaining-badge.warning {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.web-proxy-remaining-badge.urgent {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.web-proxy-remaining-badge.expired {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.proxy-details-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 300;
}

.proxy-details-overlay.open {
  display: flex;
}

.proxy-details-modal {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}

.proxy-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.proxy-details-head h3 {
  margin: 0 0 4px;
  color: #7c3aed;
  font-size: 1.2rem;
}

.proxy-details-head p {
  margin: 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.proxy-details-close {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1.4rem;
  cursor: pointer;
}

.proxy-details-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  flex-wrap: wrap;
}

.proxy-details-tab {
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  color: #4b5563;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.proxy-details-tab.active {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: rgba(124, 58, 237, 0.14);
}

.proxy-details-body {
  padding: 18px 20px 20px;
}

.proxy-tab-panel {
  display: none;
}

.proxy-tab-panel.active {
  display: block;
}

.proxy-details-section-title {
  margin-bottom: 14px;
}

.proxy-details-section-title h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #111827;
}

.proxy-details-section-title p {
  margin: 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.proxy-details-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.proxy-details-stat-card,
.proxy-details-progress-box,
.proxy-details-package-box,
.proxy-details-info-grid,
.proxy-details-actions,
.proxy-location-current,
.proxy-protocol-current-box {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: #fff;
}

.proxy-details-stat-card {
  padding: 14px;
}

.proxy-details-stat-card span,
.proxy-details-package-box span,
.proxy-details-info-grid span,
.proxy-details-progress-top span,
.proxy-location-main small,
.proxy-protocol-current-box span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 5px;
}

.proxy-details-stat-card strong,
.proxy-details-package-box strong,
.proxy-details-info-grid strong,
.proxy-details-progress-top strong,
.proxy-location-main strong,
.proxy-protocol-current-box strong {
  color: #111827;
  font-size: 14px;
}

.proxy-details-progress-box {
  padding: 14px;
  margin-bottom: 14px;
}

.proxy-details-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.proxy-details-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #ede9fe;
  overflow: hidden;
  margin-bottom: 10px;
}

.proxy-details-progress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
  border-radius: 999px;
}

.proxy-details-progress-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
}

.proxy-details-package-box {
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proxy-details-package-box b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
}

.proxy-details-info-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.proxy-details-info-grid > div {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  background: #fafafa;
  padding: 10px 12px;
}

.proxy-details-info-grid .full-row {
  grid-column: 1 / -1;
}

.proxy-details-info-grid strong {
  word-break: break-all;
}

.proxy-details-actions {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.proxy-location-current {
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #faf5ff, #f5f3ff);
}

.proxy-location-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

.proxy-details-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.proxy-details-form-grid label {
  display: grid;
  gap: 8px;
}

.proxy-details-form-grid span {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.proxy-details-form-grid input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f9fafb;
  padding: 0 12px;
  color: #111827;
  outline: none;
}

.proxy-single-action {
  display: flex;
  justify-content: stretch;
}

.proxy-single-action .btn {
  width: 100%;
}

.proxy-protocol-current-box {
  padding: 14px;
  margin-bottom: 14px;
}

.proxy-protocol-switch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.proxy-switch-btn {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.proxy-switch-btn.active {
  border-color: #8b5cf6;
  background: #f5f3ff;
  color: #7c3aed;
}

.renew-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 320;
}

.renew-modal-overlay.open {
  display: flex;
}

.renew-modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}

.renew-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.renew-modal-head h3 {
  margin: 0 0 4px;
  color: #7c3aed;
  font-size: 1.2rem;
}

.renew-modal-head p {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.renew-modal-close {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1.4rem;
  cursor: pointer;
}

.renew-modal-body {
  padding: 18px 20px 20px;
}

.renew-proxy-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.renew-proxy-summary strong {
  display: block;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 4px;
}

.renew-proxy-summary small,
.renew-balance-box span {
  color: #6b7280;
  font-size: 0.84rem;
}

.renew-balance-box {
  text-align: right;
}

.renew-balance-box strong {
  color: #111827;
  font-size: 1rem;
}

.renew-plan-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.renew-plan-item {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.renew-plan-item.active {
  border-color: #8b5cf6;
  background: #faf7ff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.renew-plan-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: inline-block;
}

.renew-plan-item.active .renew-plan-radio {
  border-color: #7c3aed;
  background: radial-gradient(circle, #7c3aed 0 45%, transparent 46%);
}

.renew-plan-label {
  color: #111827;
  font-weight: 700;
  font-size: 0.95rem;
}

.renew-plan-price {
  color: #7c3aed;
  font-size: 0.95rem;
  font-weight: 800;
}

.renew-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.renew-empty {
  padding: 18px;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 12px;
  text-align: center;
  color: #6b7280;
}

@media (max-width: 900px) {
  .web-proxy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .web-proxy-grid,
  .proxy-details-stat-grid,
  .proxy-details-info-grid,
  .proxy-details-actions,
  .proxy-details-form-grid,
  .proxy-protocol-switch-grid {
    grid-template-columns: 1fr;
  }

  .web-proxy-card-top {
    flex-direction: column;
  }

  .proxy-location-current {
    flex-direction: column;
    align-items: flex-start;
  }

  .web-proxy-top-actions {
    justify-content: flex-start;
  }

  .web-proxy-full-row {
    flex-direction: column;
  }

  .web-proxy-copy-btn {
    width: 100%;
  }

  .web-proxy-remaining-row {
    justify-content: flex-start;
  }
}
.web-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  min-width: 260px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  border: 1px solid transparent;
  background: #ffffff;
  color: #111827;
}

.web-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.web-toast.success {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.web-toast.error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

@media (max-width: 640px) {
  .web-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    min-width: 0;
    max-width: none;
  }
}
:root {
  --bg: #f6f4fb;
  --bg-soft: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(0, 0, 0, 0.08);
  --primary: #7c3aed;
  --primary-2: #8b5cf6;
  --card-shadow: 0 20px 60px rgba(124, 58, 237, 0.08);
}

body.theme-dark {
  --bg: #0b1020;
  --bg-soft: #121a2b;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #8b5cf6;
  --primary-2: #7c3aed;
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body.auth-page {
  background: radial-gradient(circle at top, rgba(124,58,237,0.08), transparent 28%), var(--bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

.auth-header,
.auth-card,
.live-stats-card {
  background: var(--bg-soft) !important;
  color: var(--text);
  border-color: var(--border) !important;
  box-shadow: var(--card-shadow);
}

.auth-card p,
.live-stat-item span,
.auth-bottom-text,
.auth-link,
.auth-top-links a,
.referral-note {
  color: var(--muted) !important;
}

.auth-card h1,
.auth-form label span,
.logo,
.auth-bottom-text a,
.auth-top-links a:hover {
  color: var(--text) !important;
}

.auth-form input {
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border: 1px solid var(--border);
}

body.theme-dark .auth-form input {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.auth-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.auth-theme-toggle:hover {
  opacity: 0.96;
}

.auth-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.google-btn {
  height: 48px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #111827;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

body.theme-dark .google-btn {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #f9fafb;
  border-color: rgba(255,255,255,0.08);
}

.google-btn.google-colored {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-btn.google-colored::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #4285F4, #34A853, #FBBC05, #EA4335, #4285F4);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.btn.btn-primary.auth-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  border: none;
}

@media (max-width: 768px) {
  .auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .auth-top-links {
    display: none;
  }

  .auth-theme-toggle {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
}
