:root {
  --primary: #D90429;     /* Crimson Red */
  --dark: #1F1F1F;        /* Charcoal */
  --muted: #6C757D;       /* Soft Gray */
  --bg: #FFFFFF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--bg);
}

/* ------------------------------------------------------------- */
/* Home (desktop layout) */
/* ------------------------------------------------------------- */

.home-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.home-layout {
  display: block;
}

.home-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .home-main {
    max-width: none;
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 1.25rem;
  }

  .home-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 1.25rem;
    align-items: start;
  }

  .home-content {
    min-width: 0;
  }

  .home-sidebar {
    display: block;
    position: sticky;
    top: 1.25rem;
    height: calc(100dvh - 2.5rem);
    border-radius: 14px;
    border: 1px solid #eee;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--primary);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  row-gap: 0.5rem;
  min-height: 56px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  flex-wrap: wrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: var(--dark);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  z-index: 2000;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.95;
}

.logo-img {
  display: block;
  width: 32px;
  height: 32px;
}

.brand-name {
  color: var(--dark);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #eee;
  background: var(--bg);
  line-height: 1;
}

.site-nav a:hover {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}

.site-nav a:active {
  transform: translateY(1px);
}

.site-nav a:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 560px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .site-nav a {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 3.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid #eee;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta {
  min-width: 240px;
}

.footer-tagline,
.footer-copy {
  margin: 0.25rem 0;
}

.footer-dev {
  margin: 0.4rem 0 0;
}

.developer-name {
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
}

.developer-name:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
}

.footer-nav a:hover {
  color: var(--dark);
  background: rgba(0,0,0,0.04);
}

@media (min-width: 560px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .site-nav {
    width: auto;
    justify-content: flex-end;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

/* Buttons (for later) */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ================================= header and footer */



/* Hero */
.hero {
  text-align: center;
  padding: clamp(2.25rem, 6vw, 3.5rem) 1rem;
}

.hero-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 auto 1.35rem;
  max-width: 40ch;
}

.hero-cta {
  font-size: 1rem;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
}

/* Sections */
.section-title {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* How it works */
.how-it-works {
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.step {
  position: relative;
  border: 1px solid #eee;
  background: rgba(0, 0, 0, 0.01);
  padding: 1.05rem 1rem 1rem 3.1rem;
  border-radius: 12px;
  text-align: left;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.step-title {
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 0.25rem;
}

.step-text {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .step {
    padding: 1.15rem 1rem 1.05rem 3.2rem;
  }
}

/* ==================================== PLAN CARD STYLES====================== */
/* Plan cards */
.plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.25rem;
  background: var(--bg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--primary);
}

.plan-top {
  padding-top: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eee;
}

.plan-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.plan-price {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0;
}

.plan-validity {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.plan-devices {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #eee;
  background: rgba(0, 0, 0, 0.02);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.plan-card .btn-primary {
  width: 100%;
  margin-top: auto;
}

.plan-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}



/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 0.7rem;
  margin: 1rem 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.btn-secondary {
  margin-top: 0.5rem;
  background: #eee;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}


body.modal-open {
  overflow: hidden;
}

/* ----------------------------------------------------------------------------------
   IMPROVED MOBILE STYLING
   ---------------------------------------------------------------------------------- */

/* Mobile polish */
@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .plans-grid {
    gap: 0.8rem;
  }

  .plan-card {
    padding: 1rem;
  }

  .btn-primary {
    width: 100%;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    width: 100%;
  }
}

/* ------------------------------------------------------------- */

.plan-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.plans-section {
  margin-top: 3rem;
}

.how-it-works {
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

/* ----------------------------------------------- */
.plan-toggle {
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.toggle-body {
  display: block;
  padding: 1rem;
}

.toggle-body.active {
  display: block;
}


/* ---------------------------------------------------ARROW SPAN */
.toggle-header .arrow {
  transition: transform 0.2s ease;
}

.toggle-header.active .arrow {
  transform: rotate(180deg);
}

/* ===================== Payment status page ===================== */
.status-page {
  padding: 1.5rem 0 0.5rem;
}

.status-card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.25rem;
  background: var(--bg);
}

.status-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid #eee;
  border-top-color: var(--primary);
  display: inline-block;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.2;
}

.status-subtitle {
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
  max-width: 46ch;
}

.status-result {
  margin-top: 0.9rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
}

.status-label {
  color: var(--muted);
  font-weight: 700;
}

.status-value {
  color: var(--dark);
  font-weight: 800;
  text-align: right;
}

.voucher-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-btn {
  width: 100%;
  margin-top: 0.9rem;
  min-height: 44px;
}

.status-actions {
  margin-top: 1rem;
  display: flex;
}

.status-actions .btn-primary {
  width: 100%;
}

@media (min-width: 560px) {
  .status-card {
    padding: 1.5rem;
  }

  .status-title {
    font-size: 1.5rem;
  }
}



/* ============================== svg======================== */
.plan-card-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.plan-icon svg {
  width: 38px;
  height: 38px;
  fill: var(--primary); /* red */
}



/* --------------------------------------------------- */
@media (max-width: 600px) {

  .plan-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .plan-top.two-col {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.6rem;
  }

  .plan-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
  }

  .plan-name {
    font-size: 1.3rem;   /* 🔥 Bigger GB */
    font-weight: 700;
    line-height: 1.1;
  }

  .plan-validity {
    font-size: 0.8rem;
    color: var(--muted);
  }

  .plan-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.6rem 0 0.8rem;
  }

  .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 10px;
  }
}


/* 
---------------------------------------------
PAYMENT SUCCESS PAGE: [DISPLAY VOUCHER]
---------------------------------------------- */

.success-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
}

.success-card {
  background: var(--bg);
  width: 100%;
  max-width: 28rem;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #eee;
  text-align: center;
}

.success-title {
  color: var(--primary);
  font-size: clamp(1.25rem, 5.5vw, 1.6rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.success-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.voucher-box {
  background: rgba(217, 4, 41, 0.06);
  border: 1px dashed rgba(217, 4, 41, 0.55);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.voucher-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.success-card .voucher-code {
  display: block;
  font-size: clamp(1.25rem, 6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--dark);
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}

.success-card .copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.success-card .copy-btn:hover {
  opacity: 0.9;
}

.voucher-details {
  text-align: left;
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.warning {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #eee;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.success-card .btn-primary {
  width: 100%;
}

@media (min-width: 560px) {
  .success-wrapper {
    padding: 1.25rem;
  }

  .success-card {
    padding: 1.5rem;
  }
}