/**
 * Wallet Page Dark Theme Styles
 * Shared by page-my-account.php and page-my-wallet.php
 * Extracted from inline <style> blocks
 *
 * @package Teleworld_AI_Theme
 * @since 1.1.0
 */

/* Universal Wallet Wrapper */
.teleworld-wallet-wrapper {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  position: relative;
}

.teleworld-wallet-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(139, 92, 246, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.teleworld-wallet-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Override Plugin Wallet Styles with Dark Theme */
.teleworld-wallet-container .modern-wallet,
.teleworld-wallet-container .teleworld-wallet-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Wallet Header Redesign */
.teleworld-wallet-container .wallet-header {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 16px !important;
  padding: 2.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.teleworld-wallet-container .wallet-branding h2 {
  color: #e2e8f0 !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem 0 !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.teleworld-wallet-container .wallet-subtitle {
  color: #94a3b8 !important;
  font-size: 1.125rem !important;
  margin: 0 0 1rem 0 !important;
}

.teleworld-wallet-container .account-badge {
  display: inline-block !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(168, 85, 247, 0.2) 100%
  ) !important;
  color: #c4b5fd !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.teleworld-wallet-container .wallet-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
  color: white !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.teleworld-wallet-container .wallet-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.4) !important;
}

.teleworld-wallet-container .wallet-btn.secondary {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

.teleworld-wallet-container .wallet-btn.secondary:hover {
  background: rgba(139, 92, 246, 0.3) !important;
}

/* Statistics Grid Redesign */
.teleworld-wallet-container .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
}

.teleworld-wallet-container .stat-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

.teleworld-wallet-container .stat-card:hover {
  border-color: rgba(139, 92, 246, 0.4) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.teleworld-wallet-container .stat-label {
  color: #94a3b8 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.5rem !important;
}

.teleworld-wallet-container .stat-value {
  color: #e2e8f0 !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.teleworld-wallet-container .stat-change {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.teleworld-wallet-container .stat-change.positive {
  color: #34d399 !important;
}

.teleworld-wallet-container .stat-change.negative {
  color: #f87171 !important;
}

.teleworld-wallet-container .stat-change.info {
  color: #60a5fa !important;
}

/* Balance Overview Redesign */
.teleworld-wallet-container .balance-overview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
}

.teleworld-wallet-container .balance-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.teleworld-wallet-container .balance-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%) !important;
}

.teleworld-wallet-container .balance-card:hover {
  border-color: rgba(139, 92, 246, 0.4) !important;
  transform: translateY(-4px) !important;
}

.teleworld-wallet-container .balance-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
}

.teleworld-wallet-container .balance-header h3 {
  color: #e2e8f0 !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.teleworld-wallet-container .balance-icon {
  font-size: 2rem !important;
  opacity: 0.8 !important;
}

.teleworld-wallet-container .balance-amount {
  margin-bottom: 0.75rem !important;
}

.teleworld-wallet-container .balance-amount .amount {
  color: #e2e8f0 !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
}

.teleworld-wallet-container .balance-amount .currency {
  color: #a78bfa !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-left: 0.5rem !important;
}

.teleworld-wallet-container .available-balance {
  color: #94a3b8 !important;
  font-size: 0.875rem !important;
  margin-bottom: 1rem !important;
}

.teleworld-wallet-container .balance-actions {
  display: flex !important;
  gap: 0.75rem !important;
  margin-top: 1.5rem !important;
}

.teleworld-wallet-container .wallet-btn.small {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
}

/* Subscription Card Redesign */
.teleworld-wallet-container .subscription-card,
.teleworld-wallet-container .subscribe-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.teleworld-wallet-container .subscription-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.teleworld-wallet-container .subscription-header h3 {
  color: #e2e8f0 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.teleworld-wallet-container .subscription-status {
  display: inline-block !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

.teleworld-wallet-container .subscription-status.active {
  background: rgba(52, 211, 153, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
}

.teleworld-wallet-container .plan-info h4 {
  color: #a78bfa !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.5rem 0 !important;
}

.teleworld-wallet-container .plan-info p {
  color: #94a3b8 !important;
  margin: 0 0 1rem 0 !important;
}

.teleworld-wallet-container .subscription-details {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.teleworld-wallet-container .detail-item {
  background: rgba(139, 92, 246, 0.1) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
}

.teleworld-wallet-container .detail-item .label {
  color: #94a3b8 !important;
  font-size: 0.875rem !important;
  display: block !important;
  margin-bottom: 0.25rem !important;
}

.teleworld-wallet-container .detail-item .value {
  color: #e2e8f0 !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
}

.teleworld-wallet-container .subscription-actions {
  display: flex !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

/* Transactions Section Redesign - Collapsible */
.teleworld-wallet-container .transactions-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  margin-bottom: 2rem !important;
}

.teleworld-wallet-container .transactions-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.teleworld-wallet-container .transactions-header h3 {
  color: #e2e8f0 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.teleworld-wallet-container .view-all-btn {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.teleworld-wallet-container .view-all-btn:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Collapsible Transactions */
.teleworld-wallet-container .transactions-list {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.5s ease !important;
}

.teleworld-wallet-container .transactions-list.expanded {
  max-height: 2000px !important;
}

.teleworld-wallet-container .transactions-section h3 {
  color: #e2e8f0 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin: 0 0 1.5rem 0 !important;
}

.teleworld-wallet-container .transaction-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.teleworld-wallet-container .transaction-item {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: all 0.3s ease !important;
}

.teleworld-wallet-container .transaction-item:hover {
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: rgba(139, 92, 246, 0.15) !important;
}

.teleworld-wallet-container .transaction-info h4 {
  color: #e2e8f0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.25rem 0 !important;
}

.teleworld-wallet-container .transaction-info p {
  color: #94a3b8 !important;
  font-size: 0.875rem !important;
  margin: 0 !important;
}

.teleworld-wallet-container .transaction-amount {
  text-align: right !important;
}

.teleworld-wallet-container .transaction-amount .amount {
  color: #e2e8f0 !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 0.25rem !important;
}

.teleworld-wallet-container .transaction-amount.credit .amount {
  color: #34d399 !important;
}

.teleworld-wallet-container .transaction-amount.debit .amount {
  color: #f87171 !important;
}

.teleworld-wallet-container .transaction-amount .status {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

.teleworld-wallet-container .transaction-amount .status.completed {
  background: rgba(52, 211, 153, 0.2) !important;
  color: #34d399 !important;
}

.teleworld-wallet-container .transaction-amount .status.pending {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
}

/* Empty State */
.teleworld-wallet-container .wallet-empty-state {
  text-align: center !important;
  padding: 3rem !important;
  color: #94a3b8 !important;
}

.teleworld-wallet-container .wallet-empty-state .icon {
  font-size: 3rem !important;
  margin-bottom: 1rem !important;
  opacity: 0.5 !important;
}

/* Login Required Styling */
.teleworld-wallet-container .wallet-login-required {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 16px !important;
  padding: 3rem !important;
  text-align: center !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.teleworld-wallet-container .wallet-login-required p {
  color: #94a3b8 !important;
  font-size: 1.125rem !important;
  margin-bottom: 2rem !important;
}

.teleworld-wallet-container .wallet-login-required .button {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
  color: white !important;
  padding: 0.75rem 2rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
}

.teleworld-wallet-container .wallet-login-required .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.4) !important;
}

/* Quick Actions Redesign */
.teleworld-wallet-container .quick-actions-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.teleworld-wallet-container .quick-actions-card h3 {
  color: #e2e8f0 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin: 0 0 1.5rem 0 !important;
}

.teleworld-wallet-container .actions-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 1rem !important;
}

.teleworld-wallet-container .action-tile {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(168, 85, 247, 0.1) 100%
  ) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 12px !important;
  padding: 1.5rem 1rem !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.teleworld-wallet-container .action-tile:hover {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(168, 85, 247, 0.2) 100%
  ) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3) !important;
}

.teleworld-wallet-container .action-icon {
  font-size: 2rem !important;
  line-height: 1 !important;
}

.teleworld-wallet-container .action-label {
  color: #e2e8f0 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

/* Hide Settings Action */
.teleworld-wallet-container .action-tile[data-action="settings"] {
  display: none !important;
}

/* Responsive Design */

/* === 1024px — Tablet === */
@media (max-width: 1024px) {
  .teleworld-wallet-wrapper {
    padding-top: calc(var(--header-height) + 48px) !important;
    padding-bottom: 45px !important;
  }

  .teleworld-wallet-container .wallet-header {
    padding: 2rem !important;
  }

  .teleworld-wallet-container .wallet-branding h2 {
    font-size: 2.2rem !important;
  }

  .teleworld-wallet-container .balance-overview {
    grid-template-columns: 1fr !important;
  }

  .teleworld-wallet-container .balance-amount .amount {
    font-size: 2.2rem !important;
  }

  .teleworld-wallet-container .stat-value {
    font-size: 1.75rem !important;
  }

  .teleworld-wallet-container .stat-card:hover,
  .teleworld-wallet-container .balance-card:hover,
  .teleworld-wallet-container .action-tile:hover,
  .teleworld-wallet-container .wallet-btn:hover,
  .teleworld-wallet-container .view-all-btn:hover {
    transform: none !important;
  }

  .teleworld-wallet-container .balance-card {
    padding: 1.5rem !important;
  }

  .teleworld-wallet-container .subscription-card,
  .teleworld-wallet-container .subscribe-card {
    padding: 1.5rem !important;
  }

  .teleworld-wallet-container .transactions-card {
    padding: 1.5rem !important;
  }

  .teleworld-wallet-container .quick-actions-card {
    padding: 1.5rem !important;
  }
}

/* === 768px — Mobile === */
@media (max-width: 768px) {
  .teleworld-wallet-wrapper {
    padding-top: calc(var(--header-height) + 38px) !important;
    padding-bottom: 35px !important;
  }

  .teleworld-wallet-container {
    padding: 0 1rem !important;
  }

  .teleworld-wallet-container .wallet-header {
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }

  .teleworld-wallet-container .wallet-branding h2 {
    font-size: 1.85rem !important;
  }

  .teleworld-wallet-container .wallet-subtitle {
    font-size: 1rem !important;
  }

  .teleworld-wallet-container .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .teleworld-wallet-container .stat-card {
    padding: 1.25rem !important;
  }

  .teleworld-wallet-container .stat-value {
    font-size: 1.5rem !important;
  }

  .teleworld-wallet-container .balance-card {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .teleworld-wallet-container .balance-amount .amount {
    font-size: 1.85rem !important;
  }

  .teleworld-wallet-container .balance-amount .currency {
    font-size: 1rem !important;
  }

  .teleworld-wallet-container .balance-actions {
    flex-direction: column !important;
  }

  .teleworld-wallet-container .subscription-card,
  .teleworld-wallet-container .subscribe-card {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .teleworld-wallet-container .subscription-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .teleworld-wallet-container .subscription-header h3 {
    font-size: 1.25rem !important;
  }

  .teleworld-wallet-container .subscription-details {
    grid-template-columns: 1fr !important;
  }

  .teleworld-wallet-container .subscription-actions {
    flex-direction: column !important;
  }

  .teleworld-wallet-container .transactions-card {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .teleworld-wallet-container .transactions-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .teleworld-wallet-container .transactions-header h3 {
    font-size: 1.25rem !important;
  }

  .teleworld-wallet-container .transaction-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }

  .teleworld-wallet-container .transaction-amount {
    text-align: left !important;
    width: 100% !important;
  }

  .teleworld-wallet-container .quick-actions-card {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .teleworld-wallet-container .quick-actions-card h3 {
    font-size: 1.25rem !important;
  }

  .teleworld-wallet-container .actions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .teleworld-wallet-container .action-tile {
    padding: 1.25rem 0.75rem !important;
  }
}

/* === 480px — Small mobile === */
@media (max-width: 480px) {
  .teleworld-wallet-wrapper {
    padding-top: calc(var(--header-height) + 28px) !important;
    padding-bottom: 25px !important;
  }

  .teleworld-wallet-container {
    padding: 0 0.75rem !important;
  }

  .teleworld-wallet-container .wallet-header {
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .teleworld-wallet-container .wallet-branding h2 {
    font-size: 1.5rem !important;
  }

  .teleworld-wallet-container .wallet-subtitle {
    font-size: 0.9rem !important;
  }

  .teleworld-wallet-container .account-badge {
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
  }

  .teleworld-wallet-container .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .teleworld-wallet-container .stat-card {
    padding: 1rem !important;
  }

  .teleworld-wallet-container .stat-value {
    font-size: 1.35rem !important;
  }

  .teleworld-wallet-container .stat-label {
    font-size: 0.75rem !important;
  }

  .teleworld-wallet-container .balance-card {
    padding: 1rem !important;
  }

  .teleworld-wallet-container .balance-header h3 {
    font-size: 1.1rem !important;
  }

  .teleworld-wallet-container .balance-amount .amount {
    font-size: 1.5rem !important;
  }

  .teleworld-wallet-container .balance-amount .currency {
    font-size: 0.9rem !important;
  }

  .teleworld-wallet-container .balance-icon {
    font-size: 1.5rem !important;
  }

  .teleworld-wallet-container .wallet-btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .teleworld-wallet-container .subscription-card,
  .teleworld-wallet-container .subscribe-card {
    padding: 1rem !important;
  }

  .teleworld-wallet-container .subscription-header h3 {
    font-size: 1.1rem !important;
  }

  .teleworld-wallet-container .plan-info h4 {
    font-size: 1.1rem !important;
  }

  .teleworld-wallet-container .detail-item {
    padding: 0.75rem !important;
  }

  .teleworld-wallet-container .detail-item .value {
    font-size: 1rem !important;
  }

  .teleworld-wallet-container .transactions-card {
    padding: 1rem !important;
  }

  .teleworld-wallet-container .transactions-header h3,
  .teleworld-wallet-container .transactions-section h3 {
    font-size: 1.1rem !important;
  }

  .teleworld-wallet-container .transaction-item {
    padding: 0.85rem !important;
    border-radius: 8px !important;
  }

  .teleworld-wallet-container .transaction-info h4 {
    font-size: 0.9rem !important;
  }

  .teleworld-wallet-container .transaction-info p {
    font-size: 0.8rem !important;
  }

  .teleworld-wallet-container .transaction-amount .amount {
    font-size: 1rem !important;
  }

  .teleworld-wallet-container .quick-actions-card {
    padding: 1rem !important;
  }

  .teleworld-wallet-container .quick-actions-card h3 {
    font-size: 1.1rem !important;
  }

  .teleworld-wallet-container .actions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .teleworld-wallet-container .action-tile {
    padding: 1rem 0.5rem !important;
    border-radius: 8px !important;
  }

  .teleworld-wallet-container .action-icon {
    font-size: 1.5rem !important;
  }

  .teleworld-wallet-container .action-label {
    font-size: 0.75rem !important;
  }

  .teleworld-wallet-container .wallet-empty-state {
    padding: 2rem 1rem !important;
  }

  .teleworld-wallet-container .wallet-empty-state .icon {
    font-size: 2.25rem !important;
  }

  .teleworld-wallet-container .wallet-login-required {
    padding: 2rem 1.25rem !important;
  }

  .teleworld-wallet-container .wallet-login-required p {
    font-size: 1rem !important;
  }
}

/* ---------- 360px (Extra Small Mobile) ---------- */
@media (max-width: 360px) {
  .teleworld-wallet-wrapper {
    padding-top: calc(var(--header-height) + 20px) !important;
    padding-bottom: 20px !important;
  }

  .teleworld-wallet-container {
    padding: 0 0.5rem !important;
  }

  .teleworld-wallet-container .wallet-header {
    padding: 1rem !important;
  }

  .teleworld-wallet-container .wallet-branding h2 {
    font-size: 1.5rem !important;
  }

  .teleworld-wallet-container .wallet-balance-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .teleworld-wallet-container .balance-amount {
    font-size: 1.25rem !important;
  }
}

/* ---------- Landscape ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .teleworld-wallet-wrapper {
    padding-top: calc(var(--header-height) + 10px) !important;
    padding-bottom: 15px !important;
  }

  .teleworld-wallet-container .wallet-header {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

/* ---------- Safe-area Insets ---------- */
@supports (padding: env(safe-area-inset-left)) {
  .teleworld-wallet-container {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
  }

  @media (max-width: 480px) {
    .teleworld-wallet-container {
      padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
      padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
    }
  }
}
