/* =================================
   USER BALANCE PAGE - GOOGLE ONE STYLE
   ================================= */

/* ===== BALANCE HERO ===== */
.balance-hero {
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 50%, #669df6 100%);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.balance-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.balance-hero-content {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.balance-hero-icon {
  font-size: 2.4em;
}

.balance-hero-label {
  font-size: 0.9em;
  opacity: 0.85;
  margin-bottom: 4px;
}

.balance-hero-value {
  font-size: 2.4em;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.balance-hero-unit {
  font-size: 0.45em;
  font-weight: 400;
  opacity: 0.8;
}

.balance-hero-note {
  font-size: 0.85em;
  opacity: 0.75;
  position: relative;
  z-index: 1;
}

/* ===== PLAN TOGGLE ===== */
.plan-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.plan-toggle {
  display: inline-flex;
  background: #f1f3f4;
  border-radius: 100px;
  padding: 4px;
  position: relative;
}

.plan-toggle-btn {
  padding: 10px 28px;
  border: none;
  background: transparent;
  border-radius: 100px;
  font-size: 0.92em;
  font-weight: 600;
  color: #5f6368;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.plan-toggle-btn.active {
  color: #1a73e8;
}

/* Premium tab-ını vurğula — həmişə gradient mətn və qızılı işarə */
#btnPremium {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.3px;
}
#btnPremium::before {
  content: '★';
  color: #f59e0b;
  -webkit-text-fill-color: #f59e0b;
  margin-right: 6px;
  font-size: 1em;
}
/* Premium aktiv olduqda — slider gradient olur */
.plan-toggle-slider.premium {
  transform: translateX(100%);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.plan-toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: white;
  border-radius: 100px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s, box-shadow 0.35s;
  z-index: 1;
}

/* Plan Description */
.plan-description {
  text-align: center;
  margin-bottom: 28px;
}

.plan-description p {
  color: #5f6368;
  font-size: 0.92em;
  margin: 0;
}

/* ===== PACKAGES GRID ===== */
.packages-section {
  animation: pkgFadeIn 0.4s ease;
}

@keyframes pkgFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.premium-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== PACKAGE CARD - GOOGLE STYLE ===== */
.pkg-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}

.pkg-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pkg-card.selected {
  border: 2px solid #1a73e8;
}

.pkg-card.premium.selected {
  border: 2px solid #7c3aed;
}

/* Plan label (üstdəki kiçik başlıq) */
.pkg-plan-label {
  font-size: 12px;
  color: #5f6368;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: none;
}
.pkg-card.premium .pkg-plan-label {
  color: #7c3aed;
  font-weight: 600;
}

/* Accent bar artıq istifadə edilmir — seçim border ilə göstərilir */
.pkg-card-accent {
  display: none !important;
  height: 0;
  width: 100%;
}

.accent-blue { background: linear-gradient(90deg, #4285f4, #669df6); }
.accent-green { background: linear-gradient(90deg, #34a853, #81c995); }
.accent-gradient { background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335); }
.accent-orange { background: linear-gradient(90deg, #fbbc05, #f9ab00); }
.accent-purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.accent-premium-gradient { background: linear-gradient(90deg, #7c3aed, #ec4899, #f59e0b); }
.accent-gold { background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706); }

.pkg-card-inner {
  padding: 18px 16px 16px;
}

/* Recommended Badge */
.pkg-recommended-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
  color: white;
  text-align: center;
  font-size: 0.78em;
  font-weight: 700;
  padding: 6px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pkg-recommended-badge.premium-recommended {
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f59e0b);
}

.pkg-card.recommended .pkg-card-accent {
  display: none;
}

.pkg-card.recommended .pkg-card-inner {
  padding-top: 36px;
}

.pkg-card.recommended {
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(66, 133, 244, 0.15);
}

.pkg-card.premium.recommended {
  box-shadow: 0 2px 16px rgba(124, 58, 237, 0.15);
}

/* Best Value Badge */
.pkg-best-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706);
  color: white;
  text-align: center;
  font-size: 0.78em;
  font-weight: 700;
  padding: 6px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pkg-card.best-value .pkg-card-accent {
  display: none;
}

.pkg-card.best-value .pkg-card-inner {
  padding-top: 36px;
}

.pkg-card.best-value {
  border-color: #f59e0b;
  box-shadow: 0 2px 16px rgba(245, 158, 11, 0.15);
}

/* Card Content */
.pkg-card-top {
  text-align: center;
  margin-bottom: 14px;
}

.pkg-token-count {
  font-size: 1.9em;
  font-weight: 700;
  color: #202124;
  line-height: 1;
  letter-spacing: -0.5px;
}

.pkg-token-label {
  font-size: 0.78em;
  color: #80868b;
  margin-bottom: 10px;
}

.pkg-price-row {
  margin-bottom: 3px;
}

.pkg-price {
  font-size: 1.25em;
  font-weight: 700;
  color: #202124;
}

.pkg-currency {
  font-size: 0.78em;
  color: #80868b;
  margin-left: 2px;
}

.pkg-per-token {
  font-size: 0.74em;
  color: #80868b;
}

.pkg-vat {
  font-size: 0.7em;
  color: #9aa0a6;
  margin-top: 2px;
}

/* Discount Badge */
.pkg-discount-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #1e8e3e;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.73em;
  font-weight: 600;
  margin-bottom: 10px;
}

.premium-discount {
  background: #f3e8ff;
  color: #7c3aed;
}

/* Select Button */
.pkg-btn {
  width: 100%;
  padding: 8px 14px;
  border: 1.5px solid #dadce0;
  background: white;
  border-radius: 100px;
  font-size: 0.82em;
  font-weight: 600;
  color: #1a73e8;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 14px;
}

.pkg-btn:hover {
  background: #f0f7ff;
  border-color: #1a73e8;
}

.recommended-btn {
  background: #1a73e8;
  border-color: #1a73e8;
  color: white;
}

.recommended-btn:hover {
  background: #1557b0;
  border-color: #1557b0;
}

.premium-btn {
  color: #7c3aed;
  border-color: #dadce0;
}

.premium-btn:hover {
  background: #f5f0ff;
  border-color: #7c3aed;
}

.premium-btn.recommended-btn {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

.premium-btn.recommended-btn:hover {
  background: #6d28d9;
  border-color: #6d28d9;
}

.pkg-card.selected .pkg-btn {
  background: #1a73e8;
  border-color: #1a73e8;
  color: white;
}

.pkg-card.premium.selected .pkg-btn {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

/* Features */
.pkg-features {
  border-top: 1px solid #f1f3f4;
  padding-top: 10px;
}

.pkg-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.76em;
  color: #3c4043;
}

.check {
  color: #1a73e8;
  font-weight: 700;
  font-size: 1.1em;
  flex-shrink: 0;
}

.premium-check {
  color: #7c3aed;
}

/* ===== PAYMENT SECTION ===== */
.payment-section {
  margin-bottom: 36px;
  animation: pkgFadeIn 0.4s ease;
}

/* Order Card */
.order-card {
  background: white;
  border: 1px solid #dadce0;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f3f4;
}

.order-card-header h3 {
  margin: 0;
  font-size: 1.05em;
  color: #202124;
}

.order-close-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #80868b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}

.order-close-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

.order-card-body {
  padding: 20px 24px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92em;
  color: #5f6368;
}

.order-val {
  font-weight: 600;
  color: #202124;
}

.order-row.order-total {
  border-top: 2px solid #1a73e8;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.05em;
  font-weight: 700;
  color: #202124;
}

.order-row.order-total .order-val {
  color: #1a73e8;
  font-size: 1.15em;
}

.order-company {
  background: #f8f9fa;
  margin: 12px -24px 0;
  padding: 10px 24px;
  font-size: 0.88em;
  color: #5f6368;
}

.order-note {
  background: #fef7e0;
  margin: 0 -24px -20px;
  padding: 12px 24px;
  font-size: 0.85em;
  color: #5f6368;
  line-height: 1.5;
}

/* Payment Methods */
.pay-methods-card {
  background: white;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.pay-methods-card h3 {
  margin: 0 0 16px;
  font-size: 1.05em;
  color: #202124;
}

.pay-methods-row {
  display: flex;
  gap: 12px;
}

.pay-method {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid #dadce0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85em;
  font-weight: 500;
  color: #3c4043;
}

.pay-method:hover {
  border-color: #1a73e8;
  background: #f8fbff;
}

.pay-method.selected {
  border-color: #1a73e8;
  background: #e8f0fe;
  box-shadow: 0 0 0 1px #1a73e8;
}

.pay-method-logo {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: 1px;
}

.visa-logo {
  color: #1a1f71;
  font-size: 1.3em;
  font-style: italic;
}

.master-logo {
  display: flex;
  align-items: center;
  position: relative;
  width: 48px;
}

.mc-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
}

.mc-red {
  background: #eb001b;
  left: 0;
}

.mc-yellow {
  background: #f79e1b;
  left: 16px;
  opacity: 0.85;
}

.birbank-logo {
  color: #00b050;
  font-weight: 800;
  font-size: 0.95em;
}

/* Pay Actions */
.pay-actions {
  display: flex;
  gap: 12px;
}

.btn-pay {
  flex: 1;
  padding: 14px 24px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pay:hover:not(:disabled) {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.btn-pay:disabled {
  background: #dadce0;
  color: #80868b;
  cursor: not-allowed;
}

.btn-cancel {
  padding: 14px 28px;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 100px;
  font-size: 0.95em;
  font-weight: 600;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #f8f9fa;
  border-color: #80868b;
}

/* ===== SECURE NOTE ===== */
.pay-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(26, 115, 232, 0.04);
  border: 1px solid rgba(26, 115, 232, 0.12);
  border-radius: 10px;
  font-size: 0.8em;
  color: var(--text-light, #5f6368);
  line-height: 1.5;
}

.pay-secure-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary, #1a73e8);
}

/* ===== TOKEN INFO BAR ===== */
.token-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e8f0fe;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.88em;
  color: #3c4043;
  margin-bottom: 20px;
}

.token-info-icon {
  font-size: 1.4em;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .packages-grid,
  .premium-grid {
    grid-template-columns: 1fr;
  }

  .balance-hero {
    padding: 24px;
  }

  .balance-hero-value {
    font-size: 1.8em;
  }

  .pay-methods-row {
    flex-direction: column;
  }

  .pay-actions {
    flex-direction: column;
  }

  .order-row,
  .direct-pay-row {
    flex-direction: column;
    gap: 4px;
  }

  .plan-toggle-btn {
    padding: 8px 20px;
    font-size: 0.85em;
  }
}

@media (max-width: 480px) {
  .balance-hero { padding: 18px; border-radius: 14px; }
  .balance-hero-value { font-size: 1.5em; }
  .balance-hero-label { font-size: 0.85em; }
  .package-card { padding: 16px; }
  .package-price { font-size: 1.4em; }
  .package-name { font-size: 0.95em; }
  .pay-actions button { min-height: 44px; width: 100%; }
  .direct-pay-input { font-size: 16px; padding: 10px; }
  .plan-toggle { width: 100%; }
  .plan-toggle-btn { flex: 1; min-height: 40px; }
  .pay-method-card { padding: 12px; }
}

@media (max-width: 360px) {
  .balance-hero { padding: 14px; }
  .balance-hero-value { font-size: 1.3em; }
  .package-card { padding: 14px; }
  .package-price { font-size: 1.2em; }
}

/* Paket kartında bonus bloku — təmiz, modern, neytral ton */
.pkg-gifts {
  margin: 14px 0 14px;
  padding: 14px 16px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.02));
  border: 1px solid rgba(99, 102, 241, 0.18);
  position: relative;
}
.pkg-gifts::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.pkg-gifts-title {
  font-size: 0.68em;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 1;
}
.pkg-gift-line {
  font-size: 0.88em;
  font-weight: 500;
  color: #334155;
  padding: 0 0 0 22px;
  line-height: 1.45;
  position: relative;
  margin-bottom: 6px;
}
.pkg-gift-line:last-child { margin-bottom: 0; }
.pkg-gift-line::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 10px;
  height: 2px;
  background: #6366f1;
  border-radius: 2px;
}
.pkg-gift-line::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 3px;
  width: 2px;
  height: 10px;
  background: #6366f1;
  border-radius: 2px;
}
/* Premium kartda incə daha dərin vurğu */
.pkg-card.premium .pkg-gifts {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(99, 102, 241, 0.03));
  border-color: rgba(99, 102, 241, 0.28);
}
