/* ============================================
   Xummer eSIM â€“ User Profile Page Styles
   ============================================ */

/* â”€â”€ Page Layout â”€â”€ */
html {
  background-color: #111c35;
}

.profile-page {
  background: #f5f7fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* â”€â”€ Profile Hero Banner â”€â”€ */
.profile-hero {
  background: linear-gradient(135deg, #fff8f3 0%, #fff0e6 50%, #ffe8d6 100%);
  padding: 40px 0 32px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 105, 8, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(255, 105, 8, 0.15);
  flex-shrink: 0;
}

.profile-user-info h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.profile-user-email {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.profile-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD700, #F7931A);
  color: #5a3c00;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.2);
}

.profile-hero-mascot {
  position: absolute;
  right: 40px;
  bottom: -10px;
  width: 160px;
  opacity: 0.25;
  pointer-events: none;
}

/* â”€â”€ Main Layout â”€â”€ */
.profile-layout {
  display: flex;
  gap: 32px;
  padding: 32px 0 60px;
  min-height: 600px;
}

/* â”€â”€ Sidebar â”€â”€ */
.profile-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.profile-sidebar-card {
  background: #fff;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  position: relative;
}

.profile-tab:hover {
  background: #f8fafc;
  color: var(--orange);
}

.profile-tab.active {
  background: #fff8f3;
  color: var(--orange);
  font-weight: 700;
}

.profile-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--orange);
  border-radius: 0 4px 4px 0;
}

.profile-tab i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.profile-tab-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 16px;
}

.profile-tab.danger {
  color: #ef4444;
}

.profile-tab.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* â”€â”€ Content Area â”€â”€ */
.profile-content {
  flex: 1;
  min-width: 0;
}

.profile-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}

/* â”€â”€ Content Cards â”€â”€ */
.profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f7;
  margin-bottom: 24px;
  transition: box-shadow 0.3s;
}

.profile-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.profile-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-card-title i {
  color: var(--orange);
}

/* (Duplicate styles removed, moved to end of file) */

/* â”€â”€ Loyalty Section â”€â”€ */
.loyalty-tier-card {
  background: linear-gradient(135deg, #fff8f3 0%, #fff0e6 100%);
  border: 2px solid rgba(255, 105, 8, 0.15);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.loyalty-tier-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 105, 8, 0.08), transparent 70%);
  border-radius: 50%;
}

.loyalty-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.loyalty-tier-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.loyalty-cashback {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}

.loyalty-cashback span {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

.loyalty-progress-wrap {
  margin-bottom: 12px;
}

.loyalty-progress-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.loyalty-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #f59e0b);
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.loyalty-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 6px;
}

.loyalty-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tier-item {
  text-align: center;
  padding: 20px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  transition: all 0.25s;
}

.tier-item.current {
  border-color: var(--orange);
  background: #fff8f3;
  box-shadow: 0 0 0 3px rgba(255, 105, 8, 0.08);
}

.tier-item-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.tier-item-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.tier-item-cashback {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* â”€â”€ Vouchers Section â”€â”€ */
.voucher-ticket {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--ticket-border);
  border-radius: 16px;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.25s ease;

  /* Active/Default Styles */
  --ticket-border: #e2e8f0;
  --ticket-bg-left: #fff8f3;
  --ticket-icon-bg: rgba(255, 105, 8, 0.1);
  --ticket-icon-color: var(--orange, #ff6908);
  --ticket-amount-color: var(--orange, #ff6908);
  --ticket-separator: #e2e8f0;
}

.voucher-ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 105, 8, 0.08);
  border-color: var(--orange, #ff6908);
  --ticket-border: var(--orange, #ff6908);
}

.voucher-ticket::before,
.voucher-ticket::after {
  content: '';
  position: absolute;
  left: 80px;
  /* Aligned with the left section width */
  width: 16px;
  height: 8px;
  background: #fff;
  /* Match the profile-card container bg */
  border: 1.5px solid var(--ticket-border);
  box-sizing: border-box;
  transform: translateX(-50%);
  z-index: 2;
  transition: border-color 0.25s ease;
}

.voucher-ticket::before {
  top: -1.5px;
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.voucher-ticket::after {
  bottom: -1.5px;
  border-bottom: none;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.voucher-ticket-left {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ticket-bg-left);
  border-right: 2px dashed var(--ticket-separator);
  flex-shrink: 0;
  position: relative;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  transition: all 0.25s ease;
}

.voucher-ticket-left::before,
.voucher-ticket-left::after {
  display: none;
}

.voucher-ticket-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ticket-icon-bg);
  color: var(--ticket-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  box-shadow: none;
}

.voucher-ticket-body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.voucher-ticket-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voucher-ticket-info h4 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0;
}

.voucher-ticket-min-spend {
  font-size: 0.8rem;
  color: #94a3b8;
}

.voucher-ticket-exp {
  font-size: 0.8rem;
  font-weight: 500;
}

.voucher-ticket-exp.active-v,
.voucher-ticket-exp.expired {
  display: block;
  color: var(--orange, #ff6908);
  font-weight: 600;
  background: transparent;
  border-radius: 0;
  margin-top: 1px;
}

.voucher-ticket-value {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.voucher-ticket-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ticket-amount-color);
  line-height: 1.1;
}

.voucher-ticket-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

/* Expired State Overrides */
.voucher-ticket[data-status="expired"] {
  --ticket-border: #e2e8f0;
  --ticket-bg-left: #f8fafc;
  --ticket-icon-bg: #f1f5f9;
  --ticket-icon-color: #94a3b8;
  --ticket-amount-color: #94a3b8;
  --ticket-separator: #cbd5e1;
}

.voucher-ticket[data-status="expired"]:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  --ticket-border: #cbd5e1;
}

/* â”€â”€ Refer & Earn â”€â”€ */

.referral-hero-card {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.referral-hero-card.combined-hero {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.hero-content {
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.hero-code-section {
  background: #fff;
  margin: 0 -40px;
  padding: 32px 40px;
  color: var(--navy);
  position: relative;
  z-index: 2;
}

.referral-hero-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.referral-mascot {
  width: 140px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.referral-hero-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.referral-hero-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.referral-code-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
}

.referral-code-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.referral-code-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.referral-code-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 4px;
}

.referral-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-copy-code {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-code:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-share-code {
  background: #f8fafc;
  color: #4a5568;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-share-code:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.referral-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.referral-stat {
  text-align: center;
}

.referral-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}

.referral-stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* â”€â”€ Orders Section â”€â”€ */
.order-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 14px;
  transition: all 0.25s;
  background: #fff;
}

.order-item:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.order-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff8f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-icon i {
  font-size: 1.4rem;
  color: var(--orange);
}

.order-info {
  flex: 1;
  min-width: 0;
}

.order-info h4 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.order-info p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.order-right {
  text-align: right;
  flex-shrink: 0;
}

.order-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
}

.order-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 4px;
}

.order-status.completed {
  background: #f0fdf4;
  color: #16a34a;
}

.order-status.active {
  background: #fff8f3;
  color: var(--orange);
}

.order-status.expired {
  background: #fef2f2;
  color: #ef4444;
}

/* â”€â”€ Notification Preferences â”€â”€ */
.notif-group {
  margin-bottom: 24px;
}

.notif-group-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item-info h5 {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.notif-item-info p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e2e8f0;
  border-radius: 26px;
  transition: all 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--orange);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(22px);
}

/* â”€â”€ Trusted Devices â”€â”€ */
.device-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 12px;
  transition: all 0.25s;
}

.device-item:hover {
  border-color: #cbd5e0;
}

.device-item.current-device {
  border-color: #16a34a;
  background: #f0fdf4;
}

.device-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.device-icon i {
  font-size: 1.3rem;
  color: #4a5568;
}

.device-item.current-device .device-icon {
  background: #dcfce7;
}

.device-item.current-device .device-icon i {
  color: #16a34a;
}

.device-info {
  flex: 1;
}

.device-info h4 {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.device-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.device-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: #dcfce7;
  color: #16a34a;
}

.btn-remove-device {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-remove-device:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* â”€â”€ Tab Panel Animation â”€â”€ */
.tab-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* â”€â”€ Empty State â”€â”€ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 100px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.empty-state p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.mobile-back-to-menu {
  display: none;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 991.98px) {
  .profile-layout {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 40px;
  }

  .profile-sidebar {
    width: 100% !important;
    position: static !important;
    display: block !important;
  }

  /* Mobile Drill-Down Logic */
  body:not(.view-content) .profile-content {
    display: none !important;
  }

  body.view-content .profile-sidebar {
    display: none !important;
  }

  body.view-content .profile-content {
    display: block !important;
  }

  .mobile-back-to-menu {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--orange);
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    cursor: pointer;
  }

  /* On mobile, remove the active state styling from the menu list */
  .profile-tab.active {
    background: none !important;
    color: #4a5568 !important;
    font-weight: 600 !important;
  }

  .profile-tab.active::before {
    display: none !important;
  }

  .loyalty-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .referral-stats {
    gap: 32px;
  }

  .profile-hero-mascot {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .profile-hero {
    padding: 24px 0;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
  }

  .profile-user-info h1 {
    font-size: 1.2rem;
  }

  .profile-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .referral-hero-card {
    padding: 28px 20px;
  }

  .referral-code-value {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .order-item {
    flex-wrap: wrap;
    gap: 12px 16px !important;
    padding: 16px !important;
  }
  .order-info {
    flex: 1 1 calc(100% - 72px) !important;
    min-width: 150px !important;
  }
  .order-right {
    flex: 1 1 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-left: 68px !important;
    margin-top: 8px !important;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px !important;
  }
  .order-price {
    font-size: 0.95rem !important;
  }
  .order-status {
    margin-top: 0 !important;
  }
}

/* ── Delete Account ── */
.btn-delete-account {
  background: none;
  border: 1.5px solid #fecaca;
  color: #ef4444;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 24px;
}

.btn-delete-account:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   MY PLANS SECTION â€” Clean Redesign
   (Ported from demo-myplan.html)
   â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */

/* ── Plan List / Detail Toggle ── */
.details-section {
  display: none;
}

/* ── Segmented Pill Toggle ── */
.plan-toggle-wrap {
  background: #e2e8f0;
  border-radius: 50px;
  padding: 5px;
  display: inline-flex;
  margin-bottom: 32px;
}

.plan-toggle-btn {
  border: none;
  background: transparent;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  color: #64748b;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-toggle-btn.active {
  background: #ffffff;
  color: #007bff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ── Plan List Cards (app-matching layout) ── */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.08);
  border-color: #bfdbfe;
}

/* Row 1: flag + country (left) | status (right) */
.plan-card-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.plan-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-card-flag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.plan-card-dest {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

/* Row 2: plan name */
.plan-card-planname {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Row 3: expiry (left) | price (right) */
.plan-card-row3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-card-expiry {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.plan-card-price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

/* ── Status Badges ── */
.status-badge {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-active {
  color: #10b981;
}

.status-inactive {
  color: #94a3b8;
}

.status-expired {
  color: #ef4444;
}

/* â”€â”€ Back Button â”€â”€ */
.plan-detail-back {
  background: none;
  border: none;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-detail-back:hover {
  color: #007bff;
}

/* â”€â”€ Premium Detail Card â”€â”€ */
.premium-detail-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.05);
  border: 1px solid #e0f2fe;
  overflow: hidden;
  margin-top: 15px;
}

.detail-header {
  padding: 30px 40px;
  border-bottom: 1px solid #e0f2fe;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #ffffff, #f0f9ff);
}

.header-flag {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.detail-body {
  padding: 40px;
}

@media (max-width: 576px) {
  .detail-body {
    padding: 24px 18px;
  }

  .detail-header {
    padding: 20px 18px;
  }
}

.section-divider {
  height: 1px;
  background: #e0f2fe;
  margin: 35px 0;
}

/* -- Centered Meter Area (1:1 app match) -- */
.meter-center-area {
  text-align: center;
  padding: 20px 0 40px;
}

.meter-container {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.svg-meter {
  transform: rotate(90deg);
  transform-origin: 50% 50%;
  overflow: visible;
  width: 100%;
  height: 100%;
}

.meter-bg {
  fill: none;
  stroke: #e8ecf1;
  stroke-width: 16;
}

.meter-progress {
  fill: none;
  stroke: url(#blue-gradient);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 880;
  stroke-dashoffset: 880;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 198, 255, 0.35));
}

/* Data text in upper portion of ring */
.data-text-wrapper {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  width: 80%;
}

.data-text {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.data-sub {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.3;
}

/* Mascot inside ring at 6 o'clock (absolute, no animation) */
.mascot-img {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  z-index: 5;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

/* â”€â”€ Stats Boxes â”€â”€ */
.active-stats-box {
  background: #ffffff;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.active-stats-box:hover {
  transform: translateY(-2px);
  border-color: #bae6fd;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.stat-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* â”€â”€ Feature Pills & Params â”€â”€ */
.feature-pill {
  background: #fff7ed;
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.1);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  margin-bottom: 10px;
}

.feature-pill i,
.feature-pill img {
  margin-right: 6px;
  width: 16px;
}

.param-box {
  margin-bottom: 15px;
}

.param-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.param-value {
  font-size: 16px;
  color: #0f172a;
  font-weight: 800;
}

.price-box {
  background: linear-gradient(to right, #f8fafc, #ffffff);
  border-radius: 16px;
  padding: 20px 25px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

/* â”€â”€ Install eSIM Section â”€â”€ */
.install-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 35px;
  border: 1px solid #e0f2fe;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.03);
}

.install-tabs-wrapper {
  background-color: #f1f5f9;
  border-radius: 50px;
  padding: 6px;
  display: flex;
  margin-bottom: 25px;
}

.install-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  border-radius: 50px;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
  font-size: 14px;
  cursor: pointer;
}

.install-tab-btn.active {
  background-color: #007bff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* QR Code Box */
.qr-blue-box {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.qr-placeholder-img {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-text {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 15px;
}

.step-text strong {
  color: #007bff;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Manual Input Cards */
.manual-input-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  background: #f8fafc;
  position: relative;
  transition: all 0.2s;
}

.manual-input-card:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.manual-input-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.manual-input-value {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  word-break: break-all;
}

.btn-copy-subtle {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #f97316;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.btn-copy-subtle:hover {
  opacity: 0.7;
}

/* Auto Install Button */
.btn-install-auto {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 40px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-install-auto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
  color: #fff;
}

/* â”€â”€ Activate CTA â”€â”€ */
.btn-activate {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  padding: 16px 50px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.btn-activate:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
  color: #fff;
}

/* â”€â”€ Plan Detail Overlay â”€â”€ */
.plan-detail-overlay {
  display: none;
}

.plan-detail-overlay.active {
  display: block;
  animation: planFadeIn 0.3s ease;
}

@keyframes planFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* â”€â”€ Account Information Tab â”€â”€ */
.profile-field {
  margin-bottom: 40px;
}

.profile-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.profile-field-input {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.profile-field-input:focus-within {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.profile-field-input input {
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1rem !important;
}

.btn-save-profile {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 40px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-profile:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 105, 8, 0.25);
}

.profile-field-input.disabled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.profile-field-input.disabled span {
  opacity: 0.8;
}

.profile-field-input.disabled .lock-icon {
  color: #cbd5e0;
}

/* â”€â”€ Account Management & Social Connections â”€â”€ */

.notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--navy);
}

.notif-item-info p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0;
}

/* Social Icons */
.auth-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.auth-social-icon.google {
  background: #fef2f2;
  color: #dc2626;
}

.auth-social-icon.apple {
  background: #f8fafc;
  color: #000;
}

.auth-social-icon.facebook {
  background: #eff6ff;
  color: #1877f2;
}

/* Destructive Actions */
.btn-delete-account {
  width: 100%;
  margin-top: 32px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid #fee2e2;
  border-radius: 16px;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-delete-account:hover {
  background: #fef2f2;
  border-color: #fecaca;
  transform: translateY(-1px);
}

.btn-unbind {
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

.btn-unbind:hover {
  background: #fef2f2 !important;
}

/* Custom Toasts */
.custom-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 40px);
  z-index: 9999;
  background: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  pointer-events: none;
}

.custom-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.custom-toast.success {
  border-left: 4px solid #16a34a;
  color: #1e293b;
}

.custom-toast.success i {
  color: #16a34a;
  font-size: 1.2rem;
}

.custom-toast.danger {
  border-left: 4px solid #dc2626;
  color: #dc2626;
}

.custom-toast.danger i {
  color: #dc2626;
  font-size: 1.2rem;
}

/* â”€â”€ Referral Progress & How It Works â”€â”€ */
.referral-progress-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f7;
  margin-bottom: 24px;
}

.referral-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.referral-progress-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.referral-progress-badge {
  background: #fff3e0;
  color: #ea580c;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

.referral-progress-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.stamp-card {
  background: #fff8f3;
  border: 2px dashed #ffd8bd;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.stamp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

.stamp-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
  flex-shrink: 0;
}

.stamp-item.completed {
  background: #f08c4a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 140, 74, 0.3);
}

.stamp-item.empty {
  background: #fff;
  border: 2px solid #f1f5f9;
  color: #cbd5e0;
}

.stamp-item.gift {
  background: #fff3e0;
  border: 2px dashed #f08c4a;
  color: #ea580c;
}

.rewards-carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 transparent;
  scroll-snap-type: x mandatory;
  width: 100%;
  max-width: 100%;
}

.rewards-carousel::-webkit-scrollbar {
  height: 6px;
}

.rewards-carousel::-webkit-scrollbar-thumb {
  background-color: #cbd5e0;
  border-radius: 6px;
}

.voucher-reward-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  position: relative;
}

.voucher-reward-card.unlocked {
  border: 2px solid #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.1);
}

.voucher-lock-icon {
  font-size: 2.2rem;
  color: #cbd5e0;
  margin-bottom: 12px;
}

.voucher-reward-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.voucher-reward-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.4;
}

.btn-redeem-disabled {
  width: 100%;
  background: #f1f5f9;
  color: #94a3b8;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  cursor: not-allowed;
}

/* Account data is client-loaded. Keep example/default values out of the first
   paint and show a stable, honest loading state until the API responds. */
.profile-hero.profile-data-loading .profile-avatar,
.profile-hero.profile-data-loading .profile-user-info,
.profile-hero.profile-data-loading .avatar-edit-overlay {
  visibility: hidden;
}

.profile-hero.profile-data-loading .profile-avatar-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e7ebf0;
  animation: profile-loading-pulse 1.2s ease-in-out infinite;
}

.profile-loading-state {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
  font-weight: 600;
}

.profile-layout.profile-data-loading {
  display: none;
}

.profile-loading-error {
  flex-direction: column;
  text-align: center;
  color: #475569;
}

.profile-loading-error > i {
  color: #f97316;
  font-size: 1.6rem;
}

@keyframes profile-loading-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.btn-redeem-referral {
  width: 100%;
  background: var(--orange, #ff6400);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-redeem-referral:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 100, 0, 0.24);
}

.btn-redeem-referral:disabled {
  cursor: wait;
  opacity: 0.65;
}

.how-it-works-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 32px;
}

.hiw-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--navy);
  padding-left: 8px;
}

.hiw-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hiw-step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
}

.hiw-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.hiw-icon {
  font-size: 1.5rem;
  color: #4facfe;
  background: #eff6ff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-text {
  font-size: 1rem;
  font-weight: 600;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}


.referral-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.referral-tree {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 10px;
  width: 100%;
}

.tree-parent-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 180px;
}

.tree-parent-wrapper.has-children::after {
  content: '';
  flex-grow: 1;
  min-width: 24px;
  height: 2px;
  background: #7bd3f7;
  display: block;
}

.tree-children {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.tree-child {
  display: flex;
  align-items: center;
  position: relative;
  padding: 12px 0 12px 24px;
}

/* Vertical Spine for Tree */
.tree-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #7bd3f7;
}

.tree-child:first-child::before {
  top: 50%;
}

.tree-child:last-child::before {
  bottom: 50%;
}

.tree-child:only-child::before {
  display: none;
}

/* Horizontal Connector to Child Card */
.tree-child::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: #7bd3f7;
}

/* History Card Styling */
.history-card {
  background: #fff;
  border: 1px solid #7bd3f7;
  border-radius: 16px;
  padding: 16px 12px;
  width: 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(123, 211, 247, 0.1);
}

.history-avatar {


  /* â”€â”€ Tab Panel Visibility â”€â”€ */
  .tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
  }

  .tab-panel.active {
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  word-wrap: break-word;
  max-width: 100%;
}

.history-date {
  font-size: 0.75rem;
  color: #7bd3f7;
  font-weight: 600;
}

/* ══════════════════════════════════════
   CUSTOM BUTTON STYLES (Vouchers & Socials)
   ══════════════════════════════════════ */
.voucher-filter-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voucher-filter-btn.active {
  background: var(--navy, #0f172a);
  color: white;
  border-color: var(--navy, #0f172a);
}

.voucher-filter-btn:hover:not(.active) {
  background: #f1f5f9;
  color: var(--navy, #0f172a);
}

.btn-bind {
  background: transparent;
  border: 1.5px solid #cbd5e1 !important;
  color: var(--navy, #0f172a) !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bind:hover {
  border-color: var(--navy, #0f172a) !important;
  background: #f8fafc;
}

.btn-bind:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
}

.btn-social-linked {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0 !important;
  color: #15803d !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
}

.btn-unbind {
  background: transparent;
  border: 1.5px solid #fecdd3 !important;
  color: #e11d48 !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unbind:hover {
  background: #fff1f2;
  border-color: #f43f5e !important;
}

/* Responsive Mobile Layout for Vouchers */
@media (max-width: 768px) {
  #tab-vouchers .profile-card {
    padding: 24px 12px; /* Reduce container padding to gain extra horizontal space */
  }

  .voucher-ticket {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .voucher-ticket::before,
  .voucher-ticket::after {
    left: 64px;
    /* Align with narrower left stub */
    width: 14px;
    height: 7px;
  }

  .voucher-ticket::before {
    top: -1.5px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }

  .voucher-ticket::after {
    bottom: -1.5px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }

  .voucher-ticket-left {
    width: 64px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .voucher-ticket-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .voucher-ticket-body {
    padding: 12px 14px;
    gap: 8px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .voucher-ticket-info {
    gap: 2px;
    min-width: 0;
    /* Allow container to shrink and prevent overflow */
  }

  .voucher-ticket-info h4 {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .voucher-ticket-min-spend {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .voucher-ticket-exp.active-v,
  .voucher-ticket-exp.expired {
    font-size: 0.7rem;
    margin-top: 2px;
    white-space: nowrap;
  }

  .voucher-ticket-amount {
    font-size: 1.05rem;
  }

  .voucher-ticket-label {
    font-size: 0.65rem;
    margin-top: 1px;
  }

  /* Social Accounts Mobile Optimization */
  #tab-account .profile-card {
    padding: 24px 16px;
  }

  .notif-item {
    padding: 12px 0;
    gap: 8px;
  }

  .notif-item .gap-3 {
    gap: 8px !important;
  }

  .auth-social-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
  }

  .notif-item-info h5 {
    font-size: 0.9rem !important;
  }

  .notif-item-info p {
    font-size: 0.78rem !important;
  }

  .btn-bind,
  .btn-social-linked,
  .btn-unbind {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
  }

  /* Plan Detail Mobile Optimization */
  .premium-detail-card {
    margin-top: 10px;
    border-radius: 16px;
  }
  .detail-header {
    padding: 18px 16px !important;
  }
  .detail-body {
    padding: 24px 16px !important;
  }
  .meter-container {
    width: 280px;
    height: 280px;
  }
  .mascot-img {
    width: 130px;
    bottom: -15px;
  }
  .data-text {
    font-size: 32px;
  }
  .data-sub {
    font-size: 12px;
    margin-top: 2px;
  }
  .active-stats-box {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .stat-value {
    font-size: 15px;
  }
  .stat-label {
    font-size: 10px;
    margin-bottom: 2px;
  }

  /* Features List Grid Optimization */
  #active-features,
  #inactive-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .feature-pill {
    display: flex !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    justify-content: center !important;
  }

  .feature-pill:last-child {
    grid-column: span 2;
  }

  /* Referral Card & Voucher Rewards Optimization for Large Mobile */
  .referral-progress-card {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }
  .voucher-reward-card {
    flex: 0 0 250px !important;
    padding: 20px !important;
  }
}

/* Medium Mobile (e.g. 375px) */
@media (max-width: 400px) {
  #tab-account .profile-card {
    padding: 20px 12px;
  }

  .notif-item {
    padding: 10px 0;
    gap: 6px;
  }

  .notif-item .gap-3 {
    gap: 6px !important;
  }

  .auth-social-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
  }

  .notif-item-info h5 {
    font-size: 0.82rem !important;
  }

  .notif-item-info p {
    font-size: 0.72rem !important;
  }

  .btn-bind,
  .btn-social-linked,
  .btn-unbind {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
  }

  /* Plan Detail Medium Mobile Optimization */
  .premium-detail-card {
    border-radius: 14px;
  }
  .detail-header {
    padding: 16px 12px !important;
  }
  .detail-body {
    padding: 20px 12px !important;
  }
  .meter-container {
    width: 250px;
    height: 250px;
  }
  .mascot-img {
    width: 110px;
    bottom: -12px;
  }
  .data-text {
    font-size: 28px;
  }
  .data-sub {
    font-size: 11px;
  }
  .active-stats-box {
    padding: 12px 10px;
    border-radius: 10px;
  }
  .stat-value {
    font-size: 13px;
  }
  .stat-label {
    font-size: 9px;
  }

  /* Features List Grid Optimization for Medium Mobile */
  #active-features,
  #inactive-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .feature-pill {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
  }

  /* Order Item Optimization for Medium Mobile */
  .order-item {
    padding: 12px !important;
    gap: 10px 12px !important;
  }
  .order-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
  }
  .order-icon i {
    font-size: 1.2rem !important;
  }
  .order-info {
    flex: 1 1 calc(100% - 60px) !important;
  }
  .order-info h4 {
    font-size: 0.88rem !important;
  }
  .order-info p {
    font-size: 0.75rem !important;
  }
  .order-right {
    padding-left: 56px !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
  }
  .order-price {
    font-size: 0.88rem !important;
  }
  .order-status {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }

  /* Referral Card & Voucher Rewards Optimization for Medium Mobile */
  .referral-progress-card {
    padding: 20px 16px !important;
  }
  .rewards-carousel {
    gap: 16px !important;
  }
  .voucher-reward-card {
    flex: 0 0 220px !important;
    padding: 16px !important;
  }
  .voucher-lock-icon {
    font-size: 1.8rem !important;
    margin-bottom: 8px !important;
  }
  .voucher-reward-title {
    font-size: 0.95rem !important;
  }
  .voucher-reward-desc {
    font-size: 0.75rem !important;
    margin-bottom: 12px !important;
  }
  .voucher-reward-card button {
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
  }
}

/* Small Mobile (e.g. 320px) */
@media (max-width: 340px) {
  #tab-vouchers .profile-card {
    padding: 20px 8px; /* Extremely compact padding */
  }

  .voucher-ticket::before,
  .voucher-ticket::after {
    left: 52px; /* Scale down stub marker */
    width: 12px;
    height: 6px;
  }

  .voucher-ticket::before {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .voucher-ticket::after {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .voucher-ticket-left {
    width: 52px;
  }

  .voucher-ticket-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .voucher-ticket-body {
    padding: 10px 8px;
    gap: 6px;
  }

  .voucher-ticket-info h4 {
    font-size: 0.78rem;
  }

  .voucher-ticket-min-spend {
    font-size: 0.68rem;
  }

  .voucher-ticket-exp.active-v,
  .voucher-ticket-exp.expired {
    font-size: 0.65rem;
  }

  .voucher-ticket-amount {
    font-size: 0.95rem;
  }

  .voucher-ticket-label {
    font-size: 0.6rem;
  }

  #tab-account .profile-card {
    padding: 16px 8px;
  }

  .notif-item {
    padding: 8px 0;
    gap: 4px;
  }

  .notif-item .gap-3 {
    gap: 4px !important;
  }

  .auth-social-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }

  .notif-item-info h5 {
    font-size: 0.78rem !important;
  }

  .notif-item-info p {
    font-size: 0.68rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }

  .btn-bind,
  .btn-social-linked,
  .btn-unbind {
    padding: 4px 6px !important;
    font-size: 0.7rem !important;
    border-radius: 6px !important;
  }

  /* Plan Detail Small Mobile Optimization */
  .premium-detail-card {
    border-radius: 12px;
  }
  .detail-header {
    padding: 12px 8px !important;
  }
  .detail-body {
    padding: 16px 8px !important;
  }
  .meter-container {
    width: 210px;
    height: 210px;
  }
  .mascot-img {
    width: 95px;
    bottom: -10px;
  }
  .data-text {
    font-size: 22px;
  }
  .data-sub {
    font-size: 9px;
    margin-top: 1px;
  }
  .active-stats-box {
    padding: 10px 6px;
    border-radius: 10px;
  }
  .stat-value {
    font-size: 11px;
  }
  .stat-label {
    font-size: 8px;
  }

  /* Features List Stack Optimization for Small Mobile */
  #active-features,
  #inactive-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .feature-pill {
    display: flex !important;
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
    justify-content: flex-start !important;
  }

  .feature-pill:last-child {
    grid-column: auto;
  }

  /* Order Item Optimization for Small Mobile */
  .order-item {
    padding: 10px !important;
    gap: 8px 10px !important;
    border-radius: 12px !important;
  }
  .order-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
  }
  .order-icon i {
    font-size: 1rem !important;
  }
  .order-info {
    flex: 1 1 calc(100% - 50px) !important;
  }
  .order-info h4 {
    font-size: 0.82rem !important;
  }
  .order-info p {
    font-size: 0.7rem !important;
    word-break: break-all;
  }
  .order-right {
    padding-left: 48px !important;
    margin-top: 4px !important;
    padding-top: 4px !important;
  }
  .order-price {
    font-size: 0.82rem !important;
  }
  .order-status {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
  }

  /* Referral Card & Voucher Rewards Optimization for Small Mobile */
  .referral-progress-card {
    padding: 16px 12px !important;
  }
  .rewards-carousel {
    gap: 12px !important;
  }
  .voucher-reward-card {
    flex: 0 0 225px !important;
    padding: 16px 14px !important;
  }
  .voucher-lock-icon {
    font-size: 1.7rem !important;
    margin-bottom: 8px !important;
  }
  .voucher-reward-title {
    font-size: 0.92rem !important;
  }
  .voucher-reward-desc {
    font-size: 0.75rem !important;
    margin-bottom: 12px !important;
  }
  .voucher-reward-card button {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
  }
}

/* --- Interactive Avatar --- */
.profile-avatar-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  box-shadow: 0 8px 24px rgba(255, 105, 8, 0.15);
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-avatar-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(255, 105, 8, 0.25);
}

.profile-avatar-wrapper .profile-avatar {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  object-fit: cover;
  box-shadow: none !important;
  margin: 0 !important;
}

.avatar-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

.avatar-edit-overlay i {
  color: #ffffff;
  font-size: 1.6rem;
  transform: translateY(4px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-avatar-wrapper:hover .avatar-edit-overlay {
  opacity: 1;
}

.profile-avatar-wrapper:hover .avatar-edit-overlay i {
  transform: translateY(0);
}

/* On mobile views, make sure avatar-wrapper scales properly */
@media (max-width: 575.98px) {
  .profile-avatar-wrapper {
    width: 64px !important;
    height: 64px !important;
  }
}

/* --- Supported Countries Modal Styling --- */
.country-group-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #94a3b8;
  margin-top: 24px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 8px;
}

.country-group-title:first-of-type {
  margin-top: 8px;
}

.country-group-list {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  padding: 4px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.country-group-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.country-group-item:last-child {
  border-bottom: none;
}

.country-group-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1.5px solid #ffffff;
}

.country-group-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

/* Info Icon Clickable Tag */
.plan-info-trigger {
  color: #3b82f6;
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.05);
}
.plan-info-trigger:hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  transform: scale(1.1);
}

/* Fix header and mobile menu remaining on top of modal backdrop when any modal is open */
body.modal-open div.site-container.position-relative[style*="z-index"],
body.modal-open div.site-container.header-wrapper,
body.modal-open .header,
body.modal-open .premium-mobile-menu {
  z-index: 1030 !important;
}

/* Supported countries modal body scrollable height behavior */
#supported-countries-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* ══════════════════════════════════════
   MY VOUCHERS — aligned with mobile app
   ══════════════════════════════════════ */
.voucher-profile-card {
  padding: 0 !important;
  overflow: hidden;
  background: #f2f5f8;
}

.voucher-mobile-hero {
  position: relative;
  min-height: 190px;
  padding: 36px 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(115deg, #1e8bff 0%, #2f9bff 45%, #46b4ff 100%);
}

.voucher-mobile-hero::before,
.voucher-mobile-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.voucher-mobile-hero::before {
  width: 180px;
  height: 180px;
  top: -90px;
  left: 36%;
}

.voucher-mobile-hero::after {
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -150px;
}

.voucher-mobile-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
  color: #fff;
}

.voucher-mobile-hero-copy span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.voucher-mobile-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
}

.voucher-mobile-hero img {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 4vw, 48px);
  bottom: -8px;
  width: auto;
  max-width: 38%;
  height: 178px;
  object-fit: contain;
  pointer-events: none;
}

.voucher-profile-list {
  width: min(100%, 760px);
  min-height: 180px;
  margin: 0 auto;
  padding: 32px 24px 28px;
  position: relative;
  z-index: 3;
  border-radius: 0;
  background: #f2f5f8;
}

.voucher-profile-list .voucher-ticket {
  --voucher-bg-start: #ffc900;
  --voucher-bg-end: #ffe300;
  --voucher-shadow: rgba(203, 151, 0, 0.2);
  --voucher-icon-bg: rgba(255, 119, 0, 0.14);
  --voucher-icon-color: #ff7600;
  width: min(100%, 680px);
  min-height: 138px;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(115deg, var(--voucher-bg-start) 0%, var(--voucher-bg-end) 100%);
  box-shadow: 0 8px 22px var(--voucher-shadow);
  color: #06182a;
}

.voucher-profile-list .voucher-ticket[data-source="admin"] {
  --voucher-bg-start: #08a7e7;
  --voucher-bg-end: #12b5ef;
  --voucher-shadow: rgba(15, 126, 178, 0.2);
  --voucher-icon-bg: rgba(255, 255, 255, 0.24);
  --voucher-icon-color: #ffffff;
}

.voucher-profile-list .voucher-ticket::before,
.voucher-profile-list .voucher-ticket::after {
  content: none;
}

.voucher-profile-list .voucher-ticket:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 12px 28px var(--voucher-shadow);
}

.voucher-profile-list .voucher-ticket-left {
  width: 62px;
  border: 0;
  border-right: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: 0;
  background: transparent;
}

.voucher-profile-list .voucher-ticket-icon {
  width: 38px;
  height: 38px;
  background: var(--voucher-icon-bg);
  color: var(--voucher-icon-color);
  font-size: 1.1rem;
}

.voucher-profile-list .voucher-ticket-body {
  min-width: 0;
  padding: 20px 24px;
  gap: 20px;
  border-radius: 0;
  background: transparent;
}

.voucher-profile-list .voucher-ticket-info {
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.voucher-profile-list .voucher-ticket-kind {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: #17344c;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.voucher-profile-list .voucher-ticket-info h4 {
  margin: 2px 0 3px;
  overflow-wrap: anywhere;
  color: #06182a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.voucher-profile-list .voucher-ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.voucher-profile-list .voucher-ticket-min-spend,
.voucher-profile-list .voucher-ticket-exp.active-v {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #08243b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.voucher-profile-list .voucher-ticket-min-spend i,
.voucher-profile-list .voucher-ticket-exp.active-v i {
  width: 14px;
  flex: 0 0 14px;
  color: rgba(6, 24, 42, 0.72);
  text-align: center;
}

.voucher-profile-list .voucher-ticket-value {
  width: clamp(116px, 27%, 160px);
  min-width: 116px;
  padding-left: 22px;
  position: relative;
  align-self: stretch;
  align-items: flex-end;
  border-left: 2px dashed rgba(255, 255, 255, 0.65);
}

.voucher-profile-list .voucher-ticket-value::before,
.voucher-profile-list .voucher-ticket-value::after {
  content: '';
  position: absolute;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2f5f8;
}

.voucher-profile-list .voucher-ticket-value::before { top: -26px; }
.voucher-profile-list .voucher-ticket-value::after { bottom: -26px; }

.voucher-profile-list .voucher-ticket-amount {
  color: #03182d;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
  white-space: nowrap;
}

.voucher-profile-list .voucher-ticket-label {
  margin-top: 4px;
  color: #17344c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.voucher-ticket-qty {
  color: #08243b;
  font-size: 0.9rem;
  font-weight: 800;
}

.voucher-profile-skeleton {
  width: min(100%, 680px);
  height: 138px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e4ebf1 25%, #f4f7f9 50%, #e4ebf1 75%);
  background-size: 200% 100%;
  animation: voucher-skeleton-shimmer 1.35s infinite linear;
}

@keyframes voucher-skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.voucher-profile-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7b9ab1;
  text-align: center;
}

.voucher-profile-empty i {
  margin-bottom: 4px;
  color: #45a9ed;
  font-size: 2rem;
}

.voucher-profile-empty strong { color: #38546b; }
.voucher-profile-empty span { font-size: 0.85rem; }

@media (max-width: 768px) {
  #tab-vouchers .voucher-profile-card { padding: 0 !important; }
  .voucher-mobile-hero { min-height: 165px; padding: 28px 22px; }
  .voucher-mobile-hero-copy { max-width: 58%; }
  .voucher-mobile-hero img { right: 6px; bottom: -4px; width: auto; max-width: 44%; height: 145px; }
  .voucher-profile-list { padding: 24px 12px 20px; }
  .voucher-profile-list .voucher-ticket { width: 100%; min-height: 112px; }
  .voucher-profile-list .voucher-ticket-left { width: 48px; }
  .voucher-profile-list .voucher-ticket-icon { width: 30px; height: 30px; font-size: 0.9rem; }
  .voucher-profile-list .voucher-ticket-body { padding: 14px 12px; gap: 10px; }
  .voucher-profile-list .voucher-ticket-info h4 { font-size: 0.88rem; }
  .voucher-profile-list .voucher-ticket-kind { font-size: 0.58rem; }
  .voucher-profile-list .voucher-ticket-min-spend,
  .voucher-profile-list .voucher-ticket-exp.active-v { font-size: 0.7rem; white-space: normal; }
  .voucher-profile-list .voucher-ticket-value { width: 28%; min-width: 96px; padding-left: 12px; }
  .voucher-profile-list .voucher-ticket-amount { font-size: 1.2rem; }
  .voucher-profile-skeleton { width: 100%; height: 112px; }
}

@media (max-width: 420px) {
  .voucher-mobile-hero-copy span { font-size: 0.7rem; }
  .voucher-mobile-hero-copy h2 { font-size: 1.55rem; }
  .voucher-mobile-hero-copy { max-width: 62%; }
  .voucher-mobile-hero img { right: -2px; bottom: -2px; width: auto; max-width: 43%; height: 125px; }
  .voucher-profile-list .voucher-ticket-left { display: none; }
  .voucher-profile-list .voucher-ticket-body { padding-left: 16px; }
  .voucher-profile-list .voucher-ticket-value { width: 30%; min-width: 82px; }
  .voucher-profile-list .voucher-ticket-amount { font-size: 1.05rem; }
}

@media (max-width: 340px) {
  .voucher-mobile-hero { min-height: 150px; padding-left: 16px; }
  .voucher-mobile-hero-copy h2 { font-size: 1.3rem; }
  .voucher-profile-list .voucher-ticket-body { padding: 12px; gap: 8px; }
  .voucher-profile-list .voucher-ticket-info h4 { font-size: 0.8rem; }
  .voucher-profile-list .voucher-ticket-kind { padding: 2px 6px; font-size: 0.54rem; }
  .voucher-profile-list .voucher-ticket-min-spend,
  .voucher-profile-list .voucher-ticket-exp.active-v { font-size: 0.64rem; }
  .voucher-profile-list .voucher-ticket-value { min-width: 72px; padding-left: 8px; }
  .voucher-profile-list .voucher-ticket-amount { font-size: 0.92rem; }
}
@media (max-width: 767.98px) {
  #supported-countries-modal-body {
    max-height: calc(100vh - 80px) !important;
  }
}
