/* ==========================================================================
   ESIM-PNR  ·  STITCH DESIGN SYSTEM
   A Material Design 3-inspired corporate-modern design system
   Brand: PNR  ·  Primary: #C62828
   Font: Inter (Google Fonts)  ·  Icons: Material Symbols Outlined
   ========================================================================== */


/* ==========================================================================
   1. CSS VARIABLES  (:root)
   ========================================================================== */

:root {
  /* ── Primary ─────────────────────────────────────────────────────────── */
  --st-primary: #C62828;
  --st-primary-dark: #A20513;
  --st-primary-light: #FFCDD2;
  --st-on-primary: #ffffff;

  /* ── Surface ─────────────────────────────────────────────────────────── */
  --st-surface: #f8f9ff;
  --st-on-surface: #0b1c30;
  --st-bg: #F5F7FA;
  --st-card-bg: #ffffff;

  /* ── Text ────────────────────────────────────────────────────────────── */
  --st-secondary: #565e74;
  --st-outline: #757a88;
  --st-text: #1A1A2E;
  --st-text-secondary: #5A6275;
  --st-text-muted: #9CA3AF;

  /* ── Border ──────────────────────────────────────────────────────────── */
  --st-border: #E5E7EB;
  --st-border-light: #F0F1F3;

  /* ── Semantic: Success ───────────────────────────────────────────────── */
  --st-success: #00C853;
  --st-success-bg: #E8F5E9;
  --st-success-text: #2E7D32;

  /* ── Semantic: Warning ───────────────────────────────────────────────── */
  --st-warning: #FF9800;
  --st-warning-bg: #FFF3E0;
  --st-warning-text: #E65100;

  /* ── Semantic: Error ─────────────────────────────────────────────────── */
  --st-error: #F44336;
  --st-error-bg: #FFEBEE;
  --st-error-text: #C62828;

  /* ── Semantic: Info ──────────────────────────────────────────────────── */
  --st-info: #1565C0;
  --st-info-bg: #E3F2FD;
  --st-info-text: #1565C0;

  /* ── Shadows ─────────────────────────────────────────────────────────── */
  --st-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --st-shadow-md: 0 4px 20px rgba(15, 23, 42, 0.05);
  --st-shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);
  --st-shadow-xl: 0 24px 60px -12px rgba(15, 23, 42, 0.15);
  --st-shadow-btn: 0 8px 16px rgba(198, 40, 40, 0.2);

  /* ── Radius ──────────────────────────────────────────────────────────── */
  --st-radius-xs: 8px;
  --st-radius-sm: 12px;
  --st-radius-md: 16px;
  --st-radius-lg: 24px;
  --st-radius-full: 9999px;

  /* ── Transitions ─────────────────────────────────────────────────────── */
  --st-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --st-transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --st-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Typography (editorial: distinctive, not Inter) ──────────────────── */
  --st-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --st-font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;

  color-scheme: light only !important;
}


/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */

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

body {
  font-family: var(--st-font-body);
  background: var(--st-bg);
  color: var(--st-on-surface);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* Distinctive display type for headings & brand marks */
.st-header-logo,
.st-product-name,
.headline-lg,
.st-footer-brand,
.st-drawer-header-title { font-family: var(--st-font-display); }

::selection {
  background: var(--st-primary);
  color: var(--st-on-primary);
}

::-moz-selection {
  background: var(--st-primary);
  color: var(--st-on-primary);
}

/* ── Scrollbar Styling ─────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}


/* ==========================================================================
   3. PAGE LAYOUT
   ========================================================================== */

.st-page {
  min-height: 100vh;
  background: var(--st-bg);
  display: flex;
  flex-direction: column;
}

.st-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.st-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--st-border-light);
  box-shadow: var(--st-shadow-sm);
  height: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
}

.st-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  height: 100%;
}

.st-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--st-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.st-header-logo img {
  height: 36px;
  width: auto;
}

.st-header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.st-header-nav a {
  padding: 8px 16px;
  border-radius: var(--st-radius-xs);
  color: var(--st-secondary);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: var(--st-transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.st-header-nav a:hover {
  background: #F8FAFC;
  color: var(--st-on-surface);
}

.st-header-nav a.active {
  background: rgba(255, 205, 210, 0.2);
  color: var(--st-primary);
  font-weight: 600;
}

.st-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.st-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--st-primary-light);
  color: var(--st-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.st-header-username {
  font-weight: 600;
  font-size: 14px;
  color: var(--st-on-surface);
}

/* ── Main Content ──────────────────────────────────────────────────────── */

.st-main {
  padding-top: 88px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}


/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.st-hero {
  background: linear-gradient(135deg, #E1F5FE 0%, #E8EAF6 50%, #F5F7FA 100%);
  padding: 32px;
  border-radius: var(--st-radius-md);
  margin-bottom: 24px;
}

.st-hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--st-on-surface);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.st-hero p {
  font-size: 15px;
  color: var(--st-secondary);
  line-height: 1.5;
  margin: 0;
}


/* ==========================================================================
   5. CARDS
   ========================================================================== */

.st-card {
  background: var(--st-card-bg);
  border-radius: var(--st-radius-md);
  border: 1px solid var(--st-border-light);
  box-shadow: var(--st-shadow-sm);
  padding: 24px;
  transition: var(--st-transition);
}

.st-card:hover {
  box-shadow: var(--st-shadow-md);
  transform: translateY(-2px);
}

.st-card-flat {
  background: var(--st-card-bg);
  border-radius: var(--st-radius-md);
  border: 1px solid var(--st-border-light);
  box-shadow: var(--st-shadow-sm);
  padding: 24px;
}

.st-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.st-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--st-on-surface);
  letter-spacing: -0.01em;
}


/* ==========================================================================
   6. STAT CARDS
   ========================================================================== */

.st-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.st-stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 24px;
  border: 1px solid var(--st-border-light);
  box-shadow: var(--st-shadow-sm);
  transition: var(--st-transition);
}

.st-stat-card:hover {
  box-shadow: var(--st-shadow-md);
  transform: translateY(-2px);
}

.st-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--st-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.st-stat-icon.red {
  background: #FEF2F2;
  color: #C62828;
}

.st-stat-icon.blue {
  background: #EFF6FF;
  color: #1D4ED8;
}

.st-stat-icon.green {
  background: #F0FDF4;
  color: #16A34A;
}

.st-stat-icon.orange {
  background: #FFF7ED;
  color: #EA580C;
}

.st-stat-icon.purple {
  background: #F5F3FF;
  color: #7C3AED;
}

.st-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--st-on-surface);
  margin: 8px 0 2px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.st-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--st-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.st-stat-change {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.st-stat-change.up {
  color: #16A34A;
}

.st-stat-change.down {
  color: #DC2626;
}


/* ==========================================================================
   7. STATUS BADGES
   ========================================================================== */

.st-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.4;
}

.st-badge-completed,
.st-badge-success {
  background: var(--st-success-bg);
  color: var(--st-success-text);
}

.st-badge-processing,
.st-badge-info {
  background: var(--st-info-bg);
  color: var(--st-info-text);
}

.st-badge-paid,
.st-badge-warning {
  background: var(--st-warning-bg);
  color: var(--st-warning-text);
}

.st-badge-failed,
.st-badge-error {
  background: var(--st-error-bg);
  color: var(--st-error-text);
}

.st-badge-pending {
  background: #F5F5F5;
  color: #757575;
}

.st-badge-active {
  background: var(--st-success-bg);
  color: var(--st-success-text);
}

.st-badge-inactive {
  background: #F5F5F5;
  color: #757575;
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--st-radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--st-transition);
  border: none;
  user-select: none;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.st-btn:active {
  transform: scale(0.97);
}

.st-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary */
.st-btn-primary {
  background: var(--st-primary);
  color: #ffffff;
  box-shadow: var(--st-shadow-btn);
}

.st-btn-primary:hover {
  background: var(--st-primary-dark);
  box-shadow: 0 10px 20px rgba(198, 40, 40, 0.25);
}

/* Secondary */
.st-btn-secondary {
  background: #ffffff;
  color: var(--st-text-secondary);
  border: 1.5px solid var(--st-border);
}

.st-btn-secondary:hover {
  border-color: var(--st-primary);
  color: var(--st-primary);
}

/* Ghost */
.st-btn-ghost {
  background: transparent;
  color: var(--st-secondary);
}

.st-btn-ghost:hover {
  background: #F8FAFC;
  color: var(--st-on-surface);
}

/* Danger */
.st-btn-danger {
  background: var(--st-error);
  color: #ffffff;
}

.st-btn-danger:hover {
  background: #D32F2F;
}

/* Size: Small */
.st-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--st-radius-xs);
}

/* Size: Large */
.st-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Full Width */
.st-btn-full {
  width: 100%;
}

/* Icon Only */
.st-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--st-radius-xs);
}


/* ==========================================================================
   9. FILTER PILLS
   ========================================================================== */

.st-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.st-pill {
  padding: 6px 16px;
  border-radius: var(--st-radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--st-transition);
  border: 1.5px solid var(--st-border);
  background: #ffffff;
  color: var(--st-secondary);
  user-select: none;
  white-space: nowrap;
}

.st-pill:hover {
  border-color: var(--st-primary-light);
  color: var(--st-primary);
}

.st-pill.active {
  background: var(--st-primary);
  color: #ffffff;
  border-color: var(--st-primary);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}


/* ==========================================================================
   10. TABLES
   ========================================================================== */

.st-table-wrap {
  overflow-x: auto;
  border-radius: var(--st-radius-md);
  border: 1px solid var(--st-border-light);
  background: #ffffff;
}

.st-table {
  width: 100%;
  border-collapse: collapse;
}

.st-table th {
  background: var(--st-bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--st-secondary);
  border-bottom: 2px solid var(--st-border);
  white-space: nowrap;
}

.st-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--st-on-surface);
  border-bottom: 1px solid var(--st-border-light);
  vertical-align: middle;
}

.st-table tbody tr {
  transition: var(--st-transition);
  cursor: pointer;
}

.st-table tbody tr:hover {
  background: #F8FAFC;
}

.st-table tbody tr:last-child td {
  border-bottom: none;
}

.st-table .col-code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-weight: 600;
  color: var(--st-primary-dark);
}

.st-table .col-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.st-table .col-actions {
  text-align: right;
  white-space: nowrap;
}


/* ==========================================================================
   11. FORM INPUTS
   ========================================================================== */

.st-input-group {
  margin-bottom: 16px;
}

.st-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-secondary);
  margin-bottom: 6px;
}

.st-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--st-radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--st-on-surface);
  transition: var(--st-transition);
  background: #ffffff;
  line-height: 1.4;
}

.st-input:focus {
  outline: none;
  border-color: var(--st-primary);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.st-input::placeholder {
  color: var(--st-text-muted);
}

.st-input:disabled {
  background: #F8FAFC;
  color: var(--st-text-muted);
  cursor: not-allowed;
}

textarea.st-input {
  resize: vertical;
  min-height: 100px;
}

.st-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--st-radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--st-on-surface);
  transition: var(--st-transition);
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23757a88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  line-height: 1.4;
}

.st-select:focus {
  outline: none;
  border-color: var(--st-primary);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.st-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.st-input-hint {
  font-size: 12px;
  color: var(--st-text-muted);
  margin-top: 4px;
}

.st-input-error {
  font-size: 12px;
  color: var(--st-error-text);
  margin-top: 4px;
}

.st-input.error {
  border-color: var(--st-error);
}

.st-input.error:focus {
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}


/* ==========================================================================
   12. BOTTOM DRAWER
   ========================================================================== */

.st-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.st-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.st-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--st-shadow-xl);
  z-index: 101;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.st-drawer-overlay.open .st-drawer {
  transform: translateX(-50%) translateY(0);
}

.st-drawer-handle {
  width: 36px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 999px;
  margin: 12px auto;
  flex-shrink: 0;
}

.st-drawer-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--st-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.st-drawer-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--st-on-surface);
}

.st-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.st-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--st-border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}


/* ==========================================================================
   13. TOASTS
   ========================================================================== */

.st-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.st-toast {
  padding: 14px 20px;
  border-radius: var(--st-radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 420px;
  font-size: 14px;
  font-weight: 500;
  animation: st-slideIn 0.3s ease-out;
  pointer-events: auto;
}

.st-toast.closing {
  animation: st-slideOut 0.3s ease-in forwards;
}

.st-toast-success {
  background: #48bb78;
  color: #ffffff;
}

.st-toast-error {
  background: #e53e3e;
  color: #ffffff;
}

.st-toast-warning {
  background: #f59e0b;
  color: #ffffff;
}

.st-toast-info {
  background: #3B82F6;
  color: #ffffff;
}

.st-toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
}

.st-toast-close:hover {
  opacity: 1;
}

@keyframes st-slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes st-slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}


/* ==========================================================================
   14. TABS
   ========================================================================== */

.st-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--st-border-light);
}

.st-tab {
  padding: 12px 24px;
  font-weight: 500;
  font-size: 14px;
  color: var(--st-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--st-transition);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  user-select: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-tab:hover {
  color: var(--st-on-surface);
  background: #FAFAFA;
}

.st-tab.active {
  color: var(--st-primary);
  border-bottom-color: var(--st-primary);
  background: #FEF2F2;
  font-weight: 600;
}

.st-tab-panel {
  display: none;
}

.st-tab-panel.active {
  display: block;
}


/* ==========================================================================
   15. PRODUCT CARDS
   ========================================================================== */

.st-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.st-product-card {
  background: #ffffff;
  border-radius: var(--st-radius-md);
  border: 1px solid var(--st-border-light);
  box-shadow: var(--st-shadow-sm);
  overflow: hidden;
  transition: var(--st-transition);
}

.st-product-card:hover {
  box-shadow: var(--st-shadow-lg);
  transform: translateY(-2px);
}

.st-product-card-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.st-product-flag {
  font-size: 36px;
  line-height: 1;
}

.st-product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--st-on-surface);
}

.st-product-countries {
  font-size: 12px;
  color: var(--st-secondary);
  margin-top: 2px;
}

.st-product-variants {
  padding: 0 20px 20px;
}

.st-variant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--st-radius-xs);
  border: 1px solid var(--st-border-light);
  margin-bottom: 8px;
  transition: var(--st-transition);
  cursor: pointer;
}

.st-variant-item:last-child {
  margin-bottom: 0;
}

.st-variant-item:hover {
  border-color: var(--st-primary-light);
  background: #FEF2F2;
}

.st-variant-item.selected {
  border-color: var(--st-primary);
  background: #FEF2F2;
  box-shadow: 0 0 0 1px var(--st-primary);
}

.st-variant-data {
  font-size: 13px;
  font-weight: 600;
  color: var(--st-on-surface);
}

.st-variant-duration {
  font-size: 12px;
  color: var(--st-secondary);
  margin-top: 2px;
}

.st-variant-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--st-primary);
  white-space: nowrap;
}

/* ── Redesigned media product card (image-hero) ──────────────────────────── */
.st-pcard {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--st-border-light);
  border-radius: var(--st-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--st-shadow-sm);
  transition: transform 0.35s var(--st-ease-out), box-shadow 0.35s var(--st-ease-out);
}
.st-pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--st-shadow-xl);
}
.st-pcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.st-pcard-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,28,48,0) 35%, rgba(11,28,48,0.72) 100%);
}
.st-pcard:hover .st-pcard-media-img {
  transform: scale(1.06);
}
.st-pcard-media-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--st-ease-out);
}
.st-pcard-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--st-radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--st-on-surface);
  box-shadow: var(--st-shadow-sm);
}
.st-pcard-flag .flag { font-size: 15px; line-height: 1; }
.st-pcard-caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
}
.st-pcard-caption .name {
  font-family: var(--st-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.st-pcard-caption .sub {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}
.st-pcard-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}
.st-pcard-price .label {
  font-size: 11px;
  color: var(--st-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.st-pcard-price .value {
  font-family: var(--st-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--st-primary);
  letter-spacing: -0.02em;
}
.st-pcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--st-primary);
  padding: 9px 14px;
  border: 1px solid var(--st-primary-light);
  border-radius: var(--st-radius-full);
  transition: var(--st-transition);
}
.st-pcard:hover .st-pcard-cta {
  background: var(--st-primary);
  color: #fff;
  border-color: var(--st-primary);
}

/* ── Scroll-entry reveal ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--st-ease-out), transform 0.6s var(--st-ease-out);
}


/* ==========================================================================
   16. QR CODE / ESIM CARDS
   ========================================================================== */

.st-esim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.st-esim-card {
  background: #ffffff;
  border-radius: var(--st-radius-md);
  border: 1px solid var(--st-border-light);
  box-shadow: var(--st-shadow-sm);
  padding: 24px;
  text-align: center;
}

.st-esim-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: var(--st-radius-xs);
  border: 2px solid var(--st-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.st-esim-qr img,
.st-esim-qr canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.st-esim-info {
  text-align: left;
  margin-top: 16px;
}

.st-esim-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--st-border-light);
}

.st-esim-info-row:last-child {
  border-bottom: none;
}

.st-esim-info-label {
  color: var(--st-secondary);
  font-weight: 500;
}

.st-esim-info-value {
  color: var(--st-on-surface);
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}


/* ==========================================================================
   17. PAGINATION
   ========================================================================== */

.st-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.st-page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--st-radius-xs);
  border: 1px solid var(--st-border);
  background: #ffffff;
  color: var(--st-secondary);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--st-transition);
}

.st-page-btn:hover {
  border-color: var(--st-primary);
  color: var(--st-primary);
}

.st-page-btn.active {
  background: var(--st-primary);
  color: #ffffff;
  border-color: var(--st-primary);
}

.st-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.st-page-info {
  font-size: 13px;
  color: var(--st-secondary);
  margin: 0 12px;
}


/* ==========================================================================
   18. EMPTY STATES
   ========================================================================== */

.st-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--st-text-muted);
}

.st-empty-icon {
  font-size: 56px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.st-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--st-secondary);
  margin-bottom: 8px;
}

.st-empty-text {
  font-size: 14px;
  color: var(--st-text-muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}


/* ==========================================================================
   19. LOADING / SKELETON
   ========================================================================== */

.st-loading {
  text-align: center;
  padding: 40px;
}

.st-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--st-border);
  border-top-color: var(--st-primary);
  border-radius: 50%;
  animation: st-spin 0.8s linear infinite;
  margin: 0 auto;
}

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

.st-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 200% 100%;
  animation: st-shimmer 1.5s infinite;
  border-radius: var(--st-radius-xs);
}

.st-skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.st-skeleton-text-sm {
  height: 12px;
  width: 60%;
}

.st-skeleton-title {
  height: 24px;
  width: 40%;
  margin-bottom: 12px;
}

.st-skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.st-skeleton-card {
  height: 120px;
  border-radius: var(--st-radius-md);
}

@keyframes st-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.st-loading-text {
  font-size: 14px;
  color: var(--st-secondary);
  margin-top: 16px;
}


/* ==========================================================================
   20. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── Tablet (≤1024px) ──────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .st-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .st-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .st-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .st-container {
    padding: 0 16px;
  }

  .st-hero {
    padding: 24px;
  }

  .st-hero h1 {
    font-size: 24px;
  }
}

/* ── Mobile (≤768px) ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .st-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .st-product-grid {
    grid-template-columns: 1fr;
  }

  .st-header {
    height: 60px;
  }

  .st-header-inner {
    padding: 0 16px;
  }

  .st-header-nav {
    gap: 2px;
  }

  .st-header-nav a .nav-text {
    display: none;
  }

  .st-header-nav a {
    padding: 8px;
    font-size: 0;
  }

  .st-header-nav a .material-symbols-outlined {
    font-size: 22px;
  }

  .st-main {
    padding-top: 76px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 16px;
  }

  .st-drawer {
    max-width: 100%;
    border-radius: 14px 14px 0 0;
  }

  .st-card {
    padding: 16px;
  }

  .st-card-flat {
    padding: 16px;
  }

  .st-table th,
  .st-table td {
    padding: 10px 12px;
  }

  .st-hero {
    padding: 20px;
    margin-bottom: 16px;
  }

  .st-hero h1 {
    font-size: 22px;
  }

  .st-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .st-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .st-toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .st-toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* ── Small Mobile (≤480px) ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .st-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .st-stat-card {
    padding: 16px 18px;
  }

  .st-stat-value {
    font-size: 24px;
  }

  .st-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .st-hero {
    padding: 16px;
    border-radius: var(--st-radius-sm);
  }

  .st-hero h1 {
    font-size: 20px;
  }

  .st-hero p {
    font-size: 13px;
  }

  .st-esim-grid {
    grid-template-columns: 1fr;
  }

  .st-drawer-body {
    padding: 16px;
  }

  .st-drawer-header {
    padding: 12px 16px;
  }

  .st-drawer-footer {
    padding: 12px 16px;
  }

  .st-pagination {
    flex-wrap: wrap;
  }

  .st-btn-lg {
    padding: 12px 20px;
    font-size: 15px;
  }
}


/* ==========================================================================
   21. UTILITY CLASSES
   ========================================================================== */

/* ── Flex ───────────────────────────────────────────────────────────────── */

.st-flex {
  display: flex;
}

.st-flex-col {
  display: flex;
  flex-direction: column;
}

.st-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.st-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.st-flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.st-items-center {
  align-items: center;
}

.st-flex-wrap {
  flex-wrap: wrap;
}

.st-flex-1 {
  flex: 1;
}

/* ── Gap ───────────────────────────────────────────────────────────────── */

.st-gap-xs {
  gap: 4px;
}

.st-gap-sm {
  gap: 8px;
}

.st-gap-md {
  gap: 16px;
}

.st-gap-lg {
  gap: 24px;
}

.st-gap-xl {
  gap: 32px;
}

/* ── Margin ─────────────────────────────────────────────────────────────── */

.st-mt-xs { margin-top: 4px; }
.st-mt-sm { margin-top: 8px; }
.st-mt-md { margin-top: 16px; }
.st-mt-lg { margin-top: 24px; }
.st-mt-xl { margin-top: 32px; }

.st-mb-xs { margin-bottom: 4px; }
.st-mb-sm { margin-bottom: 8px; }
.st-mb-md { margin-bottom: 16px; }
.st-mb-lg { margin-bottom: 24px; }
.st-mb-xl { margin-bottom: 32px; }

.st-ml-auto { margin-left: auto; }
.st-mr-auto { margin-right: auto; }

/* ── Padding ────────────────────────────────────────────────────────────── */

.st-p-sm { padding: 8px; }
.st-p-md { padding: 16px; }
.st-p-lg { padding: 24px; }

/* ── Text ──────────────────────────────────────────────────────────────── */

.st-text-primary {
  color: var(--st-primary);
}

.st-text-secondary {
  color: var(--st-secondary);
}

.st-text-muted {
  color: var(--st-text-muted);
}

.st-text-success {
  color: var(--st-success-text);
}

.st-text-error {
  color: var(--st-error-text);
}

.st-text-warning {
  color: var(--st-warning-text);
}

.st-text-info {
  color: var(--st-info-text);
}

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

.st-text-right {
  text-align: right;
}

.st-text-bold {
  font-weight: 700;
}

.st-text-semibold {
  font-weight: 600;
}

.st-text-xs {
  font-size: 11px;
}

.st-text-sm {
  font-size: 13px;
}

.st-text-lg {
  font-size: 18px;
}

.st-text-xl {
  font-size: 24px;
}

/* ── Overflow ──────────────────────────────────────────────────────────── */

.st-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-overflow-hidden {
  overflow: hidden;
}

/* ── Monospace ─────────────────────────────────────────────────────────── */

.st-mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Display ───────────────────────────────────────────────────────────── */

.st-hidden {
  display: none !important;
}

.st-block {
  display: block;
}

.st-inline {
  display: inline;
}

.st-inline-block {
  display: inline-block;
}

/* ── Width ─────────────────────────────────────────────────────────────── */

.st-w-full {
  width: 100%;
}

.st-w-auto {
  width: auto;
}

/* ── Borders ───────────────────────────────────────────────────────────── */

.st-border-bottom {
  border-bottom: 1px solid var(--st-border-light);
}

.st-border-top {
  border-top: 1px solid var(--st-border-light);
}

/* ── Cursor ────────────────────────────────────────────────────────────── */

.st-pointer {
  cursor: pointer;
}

/* ── Divider ───────────────────────────────────────────────────────────── */

.st-divider {
  border: none;
  border-top: 1px solid var(--st-border-light);
  margin: 16px 0;
}

/* ── Visually Hidden (SR only) ─────────────────────────────────────────── */

.st-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}




        /* ── Footer ──────────────────────────────────────────────────── */
        .home-footer {
            background: #f8fafc;
            color: #475569;
            padding: 64px 24px 0;
            border-top: 1px solid #e2e8f0;
        }

        .home-footer-inner {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
            gap: 48px;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            text-decoration: none;
        }

        .footer-desc {
            font-size: 15px;
            line-height: 1.7;
            margin-bottom: 24px;
            color: #64748b;
        }

        .footer-socials {
            display: flex;
            gap: 12px;
        }

        .footer-social-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e2e8f0;
            color: #475569;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all .2s;
        }

        .footer-social-btn:hover {
            background: var(--st-primary);
            color: #fff;
            transform: translateY(-2px);
        }

        .footer-col-title {
            font-size: 16px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 24px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .footer-links a {
            color: #64748b;
            text-decoration: none;
            font-size: 15px;
            transition: color .2s;
        }

        .footer-links a:hover {
            color: var(--st-primary);
        }

        .footer-contact-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            color: #64748b;
            font-size: 15px;
            margin-bottom: 16px;
            line-height: 1.6;
        }

        .footer-contact-item .material-symbols-outlined {
            font-size: 20px;
            color: var(--st-primary);
            flex-shrink: 0;
        }

        .footer-bottom {
            max-width: 1280px;
            margin: 64px auto 0;
            padding: 32px 0;
            border-top: 1px solid #e2e8f0;
            color: #94a3b8;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

@media (max-width: 768px) {
            .home-footer-inner {
                grid-template-columns: 1fr 1fr;
                gap: 40px;
            }

            
            .footer-bottom {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
}

@media (max-width: 480px) {
            .home-footer-inner {
                grid-template-columns: 1fr;
                gap: 32px;
            }
}