:root {
    --primary: #1a3a6e;
    --primary-light: #2456a4;
    --accent: #0099d6;
    --accent2: #00c2e0;
    --gold: #f5a623;
    --green: #27ae60;
    --red: #e74c3c;
    --bg: #f4f7fb;
    --white: #ffffff;
    --text: #1e2a3a;
    --text-light: #5a6a7e;
    --card-shadow: 0 8px 32px rgba(26,58,110,0.10);
    --radius: 18px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ===== NAV ===== */
  nav {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 70px;
    box-shadow: 0 2px 12px rgba(26,58,110,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nav-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 800;
  }
  .nav-logo-text h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
  }
  .nav-logo-text p {
    font-size: 10px;
    color: var(--text-light);
  }
  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
  }
  .nav-links a:hover, .nav-links a.active { color: var(--primary); }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #dde4ee;
    color: var(--text-light);
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all .2s;
  }
  .nav-back:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f4ff;
  }
  .nav-back svg { width: 14px; height: 14px; flex-shrink: 0; }
  .lang-toggle {
    display: flex;
    align-items: center;
    background: #f0f4ff;
    border: 1.5px solid #dde4ee;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
  }
  .lang-btn {
    padding: 0 14px;
    height: 100%;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    transition: all .2s;
    letter-spacing: 0.5px;
  }
  .lang-btn.active {
    background: var(--primary);
    color: white;
  }
  .lang-divider {
    width: 1px;
    height: 60%;
    background: #dde4ee;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: white;
    text-align: center;
    padding: 72px 24px 80px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
  }
  .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.15;
  }
  .hero p {
    font-size: 16px;
    opacity: 0.88;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
  }
  .hero-perks {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-perk {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hero-perk span { font-size: 16px; }

  /* ===== SECTION HEADER ===== */
  .section { padding: 64px 24px; max-width: 1200px; margin: 0 auto; }
  .section-header { text-align: center; margin-bottom: 48px; }
  .section-header h2 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
  }
  .section-header p { color: var(--text-light); font-size: 15px; max-width: 560px; margin: 0 auto; }
  .underline {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 4px;
    margin: 12px auto 0;
  }

  /* ===== PACKAGES GRID ===== */
  .packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
  }

  .pkg-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
    position: relative;
  }
  .pkg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(26,58,110,0.16);
  }
  .pkg-card.featured {
    border: 2px solid var(--accent);
  }
  .pkg-badge-popular {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--gold);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
  }

  .pkg-header {
    padding: 28px 28px 20px;
    color: white;
    position: relative;
    overflow: hidden;
  }
  .pkg-header::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
  }
  .pkg-header-blue { background: linear-gradient(135deg, #1a3a6e, #2456a4); }
  .pkg-header-green { background: linear-gradient(135deg, #1a6e4a, #27ae60); }
  .pkg-header-orange { background: linear-gradient(135deg, #8b4513, #d4621a); }
  .pkg-header-purple { background: linear-gradient(135deg, #4a1a6e, #7c3aed); }
  .pkg-header-teal { background: linear-gradient(135deg, #0d7a6e, #0099d6); }
  .pkg-header-red { background: linear-gradient(135deg, #6e1a1a, #c0392b); }
  .pkg-header-pink { background: linear-gradient(135deg, #6e1a60, #c02b98); }
  .pkg-header-yellow { background: linear-gradient(135deg, #6e6e1a, #bbc02b); }

  .pkg-icon { font-size: 36px; margin-bottom: 10px; }
  .pkg-name { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; margin-bottom: 4px; }
  .pkg-subtitle { font-size: 12px; opacity: 0.82; font-weight: 500; }

  .pkg-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; }

  .pkg-price-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 20px; }
  .pkg-price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
  }
  .pkg-price {
    font-family: 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
  }
  .pkg-price-period { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
  .pkg-discount {
    background: #fff3e0;
    color: #e65100;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 100px;
    margin-left: auto;
  }

  .pkg-divider { height: 1px; background: #eef1f6; margin-bottom: 18px; }

  .pkg-detail { font-size: 13px; color: var(--text-light); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
  .pkg-detail strong { color: var(--text); }
  .pkg-detail-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

  .pkg-features { list-style: none; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; }
  .pkg-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
  }
  .pkg-features li::before {
    content: '✓';
    width: 20px; height: 20px;
    background: #e8f5e9;
    color: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
  }

  .pkg-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 20px;
  }
  .pkg-subject {
    background: #e8f0fe;
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
  }

  .pkg-uasubject {
    background: #d7dadd;
    color: #acb2b9;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
  }

  .pkg-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s;
    margin-top: auto;
    letter-spacing: 0.5px;
  }
  .pkg-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    transform: scale(1.02);
  }
  .pkg-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
  }
  .pkg-btn-outline:hover {
    background: var(--primary);
    color: white;
  }

  /* ===== APPS SECTION ===== */
  .apps-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1565c0 100%);
    padding: 64px 24px;
    color: white;
  }
  .apps-inner { max-width: 1200px; margin: 0 auto; }
  .apps-section .section-header h2 { color: white; }
  .apps-section .section-header p { color: rgba(255,255,255,0.78); }
  .apps-section .underline { background: linear-gradient(90deg, #ffd54f, var(--gold)); }

  .apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  .app-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: background .25s, transform .25s;
  }
  .app-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
  }
  .app-emoji {
     font-size: 48px;
     margin-bottom: 14px;
  }

  .app-icon img {
    width: 80px;           /* control the rectangle width */
    height: 80px;          /* control the rectangle height */
    border-radius: 12px;   /* rounded corners (not circle) */
    margin-bottom: 14px;   /* keep spacing from text below */
    object-fit: cover;     /* ensures image scales and fills rectangle nicely */
}

  .app-name { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
  .app-desc { font-size: 12px; opacity: 0.78; line-height: 1.5; }
  .app-free {
    display: inline-block;
    background: var(--gold);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    margin-top: 10px;
  }

  /* ===== TESTIMONIALS ===== */
  .testi-section { padding: 64px 24px; background: var(--white); }
  .testi-inner { max-width: 1200px; margin: 0 auto; }
  .testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }
  .testi-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    transition: transform .25s;
  }
  .testi-card:hover { transform: translateY(-4px); }
  .testi-quote {
    font-size: 48px;
    color: var(--accent);
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: 8px;
    opacity: 0.4;
  }
  .testi-text { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
  .testi-footer { display: flex; align-items: center; gap: 12px; }
  .testi-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
  }
  .testi-name { font-weight: 700; font-size: 14px; color: var(--primary); }
  .testi-role { font-size: 12px; color: var(--text-light); }
  .testi-stars { color: var(--gold); font-size: 13px; margin-bottom: 6px; }

  /* ===== WHY US ===== */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  .why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform .25s;
  }
  .why-card:hover { transform: translateY(-4px); }
  .why-icon { font-size: 40px; margin-bottom: 14px; }
  .why-title { font-weight: 700; font-size: 15px; color: var(--primary); margin-bottom: 8px; }
  .why-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }

  /* ===== CONTACT FORM ===== */
  .form-section {
    background: linear-gradient(135deg, #f0f4fa 0%, #e8f0fe 100%);
    padding: 64px 24px 80px;
  }
  .form-inner { max-width: 700px; margin: 0 auto; }
  .form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 12px 48px rgba(26,58,110,0.12);
    margin-top: 40px;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-group { margin-bottom: 20px; }
  .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 7px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dde4ee;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #f8faff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,153,214,0.12);
    background: white;
  }
  .form-group textarea { resize: vertical; min-height: 80px; }

  .form-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    transition: all .25s;
    margin-top: 8px;
  }
  .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,58,110,0.25);
  }

  .form-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
  }
  .form-note a { color: var(--accent); text-decoration: none; }

  /* ===== FOOTER ===== */
  footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 28px 24px;
    font-size: 13px;
  }
  footer strong { color: white; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
    .pkg-header { padding: 22px 22px 16px; }
    .pkg-body { padding: 18px 22px; }
  }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .animate { animation: fadeUp .6s ease both; }
  .delay-1 { animation-delay: .1s; }
  .delay-2 { animation-delay: .2s; }
  .delay-3 { animation-delay: .3s; }
  .delay-4 { animation-delay: .4s; }

  /* Package tab navigation */
  .pkg-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .pkg-tab {
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-family: 'Poppins', sans-serif;
    transition: all .2s;
  }
  .pkg-tab.active, .pkg-tab:hover {
    background: var(--primary);
    color: white;
  }

  .pkg-group { display: none; }
  .pkg-group.active { display: block; }

  /* Tier badge */
  .tier-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 14px;
  }
  .tier-blue { background: #e3eeff; color: var(--primary); }
  .tier-gold { background: #fff3cd; color: #b7600a; }
  .tier-lilac { background: #f2cdff; color: #a00ab7; }


  /*oxqc logo icon*/
  .nav-logo-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.loading-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9998;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #25D366;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.popup-box button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup-box button:first-child {
  background: #25D366;
  color: white;
}

.popup-box button:last-child {
  background: #ccc;
}