/* Extro Exchange Application Theme Styles */
:root {
  --primary: #f5a623;
  --primary-hover: #e09216;
  --primary-light: #fff8e7;
  --primary-border: #fcd34d;
  --dark-header: #0b1a30; /* Extro Exchange Navy Accent */
  --dark-card: #152642;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-app: #f4f6f9;
  --bg-card: #ffffff;
  --danger: #ef4444;
  --success: #10b981;
  --info: #3b82f6;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #08101e;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* Desktop Wrapper / Mobile Container */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-app);
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
}

/* Header Bar */
.top-header {
  background-color: var(--dark-header);
  color: #ffffff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--primary);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.logo-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.logo-title span {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-btn-pill {
  background-color: var(--primary);
  color: #0b1a30;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Sub-page Header */
.page-header {
  background-color: var(--dark-header);
  color: #ffffff;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(245, 166, 35, 0.3);
}

.back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  margin-right: 12px;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  margin-right: 30px;
  color: var(--primary);
}

/* Navigation Tabs Views */
.tab-content {
  display: none;
  flex: 1;
  padding: 12px;
  animation: fadeIn 0.2s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Banner Slider / Carousel */
.banner-carousel-container {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  position: relative;
  background-color: #000;
}

.banner-img-slide {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.banner-dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: 10px;
}

.notice-bar {
  background-color: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--primary);
}

.notice-bar span {
  white-space: nowrap;
  animation: marquee 16s linear infinite;
  color: #333;
  font-weight: 500;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Quick Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.menu-item {
  background-color: var(--bg-card);
  padding: 14px 8px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.menu-item:active {
  transform: scale(0.97);
}

.menu-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.menu-label {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #111827;
}

/* Crypto Market Tickers */
.section-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.market-card {
  background-color: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.market-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.market-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0;
}

.market-change {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.market-change.up {
  background-color: #d1fae5;
  color: #047857;
}

.market-change.down {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Quantify Screen Styles */
.quantify-hero {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.btn-primary-yellow {
  width: 100%;
  background: linear-gradient(180deg, #ffc837 0%, #f5a623 100%);
  color: #0b1a30;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
  transition: all 0.2s ease;
}

.btn-primary-yellow:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-primary-yellow:disabled {
  background: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* Wallet Screen Styles */
.wallet-card {
  background: linear-gradient(135deg, #0b1a30 0%, #1a3250 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(11, 26, 48, 0.4);
  margin-bottom: 16px;
  border: 1px solid var(--primary);
}

.wallet-balance-title {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 600;
  color: var(--primary);
}

.wallet-balance-amount {
  font-size: 32px;
  font-weight: 900;
  margin: 6px 0 16px 0;
  color: #ffffff;
}

.wallet-sub-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}

.wallet-sub-item {
  flex: 1;
}

.wallet-sub-label {
  font-size: 11px;
  opacity: 0.85;
}

.wallet-sub-value {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
  color: var(--primary);
}

.wallet-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-wallet-action {
  flex: 1;
  background-color: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.btn-wallet-action.primary {
  background-color: var(--primary);
  color: #0b1a30;
  border: none;
}

/* Team Screen Styles */
.team-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.team-tab-btn {
  flex: 1;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.team-tab-btn.active {
  background-color: var(--primary);
  color: #0b1a30;
}

.team-level-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-level-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}

.team-table {
  width: 100%;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-collapse: collapse;
}

.team-table th {
  background-color: #0b1a30;
  color: var(--primary);
  padding: 10px 12px;
  font-size: 12px;
  text-align: left;
  font-weight: 700;
}

.team-table td {
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-muted);
}

/* Mine Screen Styles */
.user-profile-header {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.avatar {
  width: 52px;
  height: 52px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
  border: 2px solid var(--primary-border);
}

.user-info-details {
  flex: 1;
}

.user-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-phone {
  font-size: 16px;
  font-weight: 800;
}

.badge-copy {
  background-color: var(--primary);
  color: #0b1a30;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.user-uid {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vip-badge {
  background: linear-gradient(135deg, #ffc837 0%, #f5a623 100%);
  color: #0b1a30;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.menu-list-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.menu-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.menu-list-item:last-child {
  border-bottom: none;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.menu-item-icon {
  color: var(--primary);
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.arrow-right {
  color: #d1d5db;
  font-size: 14px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60px;
  background-color: var(--dark-header);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border-top: 1px solid rgba(245, 166, 35, 0.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  cursor: pointer;
  flex: 1;
  height: 100%;
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  font-size: 18px;
}

/* Modal Panels / Full Screens */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

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

.modal-body {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background-color: var(--bg-app);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow-y: auto;
  animation: slideUp 0.25s ease-out;
  padding: 20px 16px 30px 16px;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  outline: none;
  transition: border 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
}

/* Payment Channels Selector */
.payment-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.channel-btn {
  background-color: #0b1a30;
  color: #ffffff;
  border: none;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.channel-btn.active {
  background-color: var(--primary);
  color: #0b1a30;
  font-weight: 700;
}

/* Preset Amount Selector */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.preset-btn {
  background-color: #0b1a30;
  color: #ffffff;
  border: none;
  padding: 12px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.preset-btn:hover, .preset-btn.active {
  background-color: var(--primary);
  color: #0b1a30;
}

.guidelines-box {
  background-color: #fff8e7;
  border: 1px solid #fcd34d;
  padding: 12px 14px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
}

.guidelines-title {
  font-weight: 700;
  margin-bottom: 6px;
}

/* Auth Pages Styling */
.auth-wrapper {
  padding: 24px 16px;
  text-align: center;
  background-color: #ffffff;
  min-height: 100vh;
}

.auth-logo {
  width: 220px;
  max-width: 80%;
  margin: 20px auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.btn-secondary-yellow {
  width: 100%;
  background-color: #fff3cd;
  color: #856404;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border: 1px solid #ffeeba;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 10px;
}

/* Status Badges */
.badge-status {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pending { background-color: #fef3c7; color: #d97706; }
.status-processing { background-color: #dbeafe; color: #2563eb; }
.status-complete { background-color: #d1fae5; color: #059669; }
.status-rejected { background-color: #fee2e2; color: #dc2626; }

/* Admin Panel Table */
.admin-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
