
  /* ==========================================
     DESIGN TOKENS — "Papan Nomor" (Kedai Pulsa Abepura)
     Navy = kepercayaan toko, Emas = kesan premium nomor cantik.
     ========================================== */
  :root {
    --navy-900: #4a0505;
    --navy-700: #be0505;
    --navy-600: #1B4C8C;
    --gold-500: #E4A335;
    --gold-600: #C6871E;

    --canvas: #F3F6FB;
    --card-bg: #FFFFFF;
    --ink: #101B2D;
    --text-color: #101B2D;
    --text-muted: #5A6B85;
    --border-color: #E1E7F2;

    --ok-600: #1E9E5A;
    --ok-100: #E3F7EC;
    --sold-600: #C24A3D;
    --sold-100: #FBEAE8;

    /* Nama variabel lama dipertahankan agar seluruh file lain tetap kompatibel */
    --primary-color: var(--navy-700);
    --primary-hover: var(--navy-900);
    --bg-color: var(--canvas);

    --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--navy-900);
    line-height: 1.25;
  }

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

  /* ==========================================
     NAVBAR
     ========================================== */
  .navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    text-decoration: none;
  }

  .brand-logo {
    width: 200px;
    height: 50px;
    object-fit: contain;
    display: block;
  }

  .brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
    color: var(--gold-500);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
  }

  .nav-links a:hover, .nav-links a.active {
    color: var(--navy-700);
    font-weight: bold;
  }

  /* ==========================================
     HERO SECTION
     ========================================== */
  .hero {
    background: linear-gradient(160deg, #4a0505 0%, #be0505 100%);
    color: white;
    padding: 56px 0 64px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
  }

  .hero-copy h1 {
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    max-width: 20ch;
  }

  .hero-copy .subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 48ch;
    margin-bottom: 26px;
  }

  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* BUTTONS */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s, border-color 0.2s;
    border: none;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .btn-primary {
    background-color: var(--gold-500);
    color: var(--navy-900);
  }

  .btn-primary:hover {
    background-color: var(--gold-600);
  }

  .btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: white;
    background: transparent;
  }

  .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: white;
  }

  /* Panel "Nomor Pilihan" — spotlight nomor asli dari katalog */
  .hero-spotlight {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(2px);
  }

  .hero-spotlight-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
  }

  .hero-spotlight-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-spotlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 0.15s ease;
    text-align: left;
  }

  .hero-spotlight-item:hover {
    transform: translateY(-2px);
  }

  .hero-spotlight-number {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--navy-900);
    font-size: 0.98rem;
    letter-spacing: 0.5px;
  }

  .hero-spotlight-price {
    font-weight: 700;
    color: var(--gold-600);
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero-spotlight-empty {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
  }

  /* VIDEO PERKENALAN — dibingkai seperti kartu profil toko */
  .hero-video-wrap {
    margin-top: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 18px;
  }

  .hero-video-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
  }

  .video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* rasio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
  }

  .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* ==========================================
     KONTEN & PLACEHOLDER
     ========================================== */
  .content {
    padding: 48px 20px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .placeholder-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
  }

  /* ==========================================
     KONTAK & SOCIAL MEDIA
     ========================================== */
  .kontak-panel {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    border-radius: 20px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: center;
    color: white;
  }

  .kontak-intro p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 42ch;
    margin: 10px 0 20px;
  }

  .btn-wa-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transition: background-color 0.2s, transform 0.15s;
  }

  .btn-wa-cta:hover {
    background-color: #1eb857;
    transform: translateY(-2px);
  }

  .kontak-socials {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 30px;
  }

  .kontak-socials-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
  }

  .kontak-social-icons {
    display: flex;
    gap: 12px;
  }

  .kontak-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color 0.2s, transform 0.15s;
  }

  .kontak-social-icons a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
  }

  .kontak-social-icons svg {
    width: 20px;
    height: 20px;
  }

  /* ==========================================
     FOOTER
     ========================================== */
  footer {
    background-color: var(--navy-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0 0;
    margin-top: 20px;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .footer-brand-text strong {
    display: block;
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
  }

  .footer-brand-text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .footer-social-icons {
    display: flex;
    gap: 10px;
  }

  .footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transition: background-color 0.2s;
  }

  .footer-social-icons a:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .footer-social-icons svg {
    width: 16px;
    height: 16px;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
    text-align: center;
    font-size: 0.85rem;
  }

  .text-center {
    text-align: center;
  }

  /* ==========================================
     RESPONSIVE — HERO, KONTAK, FOOTER (DESKTOP -> MOBILE)
     ========================================== */
  @media (max-width: 860px) {
    .hero-grid {
      grid-template-columns: 1fr;
    }

    .kontak-panel {
      grid-template-columns: 1fr;
    }

    .kontak-socials {
      border-left: none;
      border-top: 1px solid rgba(255, 255, 255, 0.18);
      padding-left: 0;
      padding-top: 20px;
    }
  }

  @media (max-width: 600px) {
    .nav-container {
      flex-direction: column;
      height: auto;
      padding: 15px 0;
      gap: 10px;
    }

    .hero-copy h1 {
      font-size: 1.7rem;
      max-width: none;
    }

    .hero-buttons {
      flex-direction: column;
    }

    .btn {
      width: 100%;
      justify-content: center;
    }

    .footer-top {
      flex-direction: column;
      text-align: center;
    }
  }

  /* ==========================================
     LOADING & EMPTY STATE
     ========================================== */
  .loading-spinner {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-weight: 500;
  }

  .empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
  }

  .alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
  }

  /* ==========================================
     TABEL KATALOG & RESPONSIVE SCROLL
     ========================================== */
  .table-responsive {
    width: 100%;
    overflow-x: auto; /* Memungkinkan horizontal scroll di layar HP agar tabel tidak berantakan */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
  }

  .katalog-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap; /* Mencegah nomor terpotong baris */
  }

  .katalog-table th {
    background-color: #F7F9FD;
    color: var(--text-color);
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
  }

  .katalog-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .katalog-table tbody tr:hover {
    background-color: #F7F9FD;
  }

  .nomor-text {
    font-family: var(--font-mono);
    color: var(--navy-700);
    font-size: 1.02rem;
    letter-spacing: 0.5px;
  }

  .harga-text {
    font-weight: 700;
    color: var(--gold-600);
  }

  /* BADGES */
  .badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .badge-success {
    background-color: var(--ok-100);
    color: var(--ok-600);
  }

  .badge-secondary {
    background-color: var(--sold-100);
    color: var(--sold-600);
  }

  .badge-outline {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
  }

  /* STATUS TABS */
  .status-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .status-tab-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }

  .status-tab-btn:hover {
    border-color: var(--navy-700);
    color: var(--navy-700);
  }

  .status-tab-btn.active {
    background-color: var(--navy-700);
    color: white;
    border-color: var(--navy-700);
  }

  /* SEARCH BAR */
  .search-box {
    position: relative;
    margin-bottom: 15px;
  }

  .form-control {
    width: 100%;
    padding: 13px 45px 13px 16px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--card-bg);
    color: var(--text-color);
  }

  .form-control:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(18, 58, 107, 0.12);
  }

  .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
  }

  /* FILTER BAR */
  .filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }

  .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
  }

  .filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .form-control-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
  }

  .form-control-select:focus {
    border-color: var(--navy-700);
  }

  /* ==========================================
     MODAL DETAIL STYLING
     ========================================== */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 37, 69, 0.55);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
  }

  .modal-overlay.active {
    display: flex;
  }

  .modal-card {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(11, 37, 69, 0.3);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease-out;
  }

  @keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
  }

  .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
  }

  .close-btn:hover {
    color: var(--text-color);
  }

  .modal-body {
    padding: 20px 22px;
  }

  .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-color);
  }

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

  .detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .detail-value {
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
  }

  .detail-harga {
    font-size: 1.2rem;
    color: var(--gold-600);
  }

  .modal-footer {
    padding: 18px 22px;
    background-color: #F7F9FD;
    border-top: 1px solid var(--border-color);
  }

  .btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background-color: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: background-color 0.2s;
  }

  .btn-wa:hover {
    background-color: #1eb857;
  }

  /* ==========================================
     MOBILE GRID KARTU (Tampilan Khusus Layar Kecil / Smartphone)
     ========================================== */
  .mobile-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
  }

  .nomor-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .nomor-card:active {
    transform: scale(0.98);
    background-color: #F7F9FD;
  }

  .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
  }

  /* MEDIA QUERIES (Responsif Layar HP <= 640px) */
  @media (max-width: 640px) {
    content {
      padding: 8px;
    }

    /* footer {
      width: calc(100% + 16px);
      margin-left: -8px;
      margin-right: -8px;
      margin-bottom: -8px;
    } */

    /* .container {
      padding: 14px;
      border-radius: 12px;
    } */

    .filter-group {
      min-width: 100%;
    }

    /* Sembunyikan tabel di layar HP, tampilkan mode kartu (grid) */
    .table-responsive {
      display: none;
    }

    .mobile-grid {
      display: grid;
    }
  }


  .kontak-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.kontak-buttons a {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.kontak-buttons a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* Google Maps */
.btn-maps-cta {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-maps-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

@media (max-width: 600px) {
  .kontak-buttons {
    flex-direction: column;
  }

  .kontak-buttons a {
    width: 100%;
  }
}
