/* ============================================
   ForzaFX Kenya — Design System & Components
   ============================================ */

/* === Google Font === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Variables === */
:root {
  --primary: #0B0E11;
  /* FXPari Dark Background */
  --primary-light: #181C21;
  /* Card backgrounds */
  --primary-dark: #000000;
  --accent: #00FFA3;
  /* FXPari Vivid Green */
  --accent-soft: rgba(0, 255, 163, 0.1);
  --danger: #FF4D4D;
  /* FXPari Vivid Red */
  --success: #00FFA3;
  --white: #FFFFFF;
  --gray: #848E9C;
  --gray-dark: #2B3139;
  --glass-border: #2B3139;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --bottom-nav-height: 72px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: var(--font);
}

input,
select,
textarea {
  font-family: var(--font);
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: var(--radius-full);
}

/* === Page Wrapper === */
.page-wrapper {
  min-height: 100vh;
  padding-top: 64px;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.page-content {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* === Top Header === */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-header .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #00e676);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--primary-dark);
}

.top-header .logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--gray-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-header .logo-text span {
  background: linear-gradient(135deg, var(--accent), #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--glass-light);
  border-radius: var(--radius-sm);
  color: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 18px;
}

.header-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* === Bottom Navigation === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  position: relative;
}

.bottom-nav a .nav-icon {
  font-size: 22px;
  transition: var(--transition-fast);
}

.bottom-nav a.active {
  color: var(--accent);
}

.bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.bottom-nav a.trade-btn {
  margin-top: -20px;
}

.bottom-nav a.trade-btn .nav-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #00e676);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 24px;
  box-shadow: var(--shadow-glow);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00e676);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
  color: var(--primary-dark);
}

.btn-secondary {
  background: var(--glass-light);
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #ff6b6b);
  color: var(--white);
}

.btn-buy {
  background: linear-gradient(135deg, var(--accent), #00e676);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
}

.btn-sell {
  background: linear-gradient(135deg, var(--danger), #ff6b6b);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* === Cards === */
.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-sm {
  padding: 14px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Balance Display === */
.balance-card {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
}

.balance-label {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  position: relative;
}

.balance-amount .currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-400);
}

.balance-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
}

.balance-item {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--glass-light);
  border-radius: var(--radius-md);
}

.balance-item-label {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-item-value {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.text-profit {
  color: var(--success);
}

.text-loss {
  color: var(--danger);
}

.text-accent {
  color: var(--accent);
}

.text-neutral {
  color: var(--gray-300);
}

/* === Form Inputs === */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 14px;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--gray-500);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* === Trading Panel === */
.trade-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.pair-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.pair-selector::-webkit-scrollbar {
  display: none;
}

.pair-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.pair-chip:hover,
.pair-chip.active {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

/* === Trade List === */
.trade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--glass-light);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

.trade-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.trade-item-pair {
  font-weight: 700;
  font-size: 14px;
}

.trade-item-info {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

.trade-item-pl {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

.trade-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.trade-type.buy {
  background: rgba(0, 200, 83, 0.15);
  color: var(--accent);
}

.trade-type.sell {
  background: rgba(255, 61, 87, 0.15);
  color: var(--danger);
}

/* === Market List === */
.market-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.market-item:hover {
  background: var(--glass-light);
  margin: 0 -16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.market-item:last-child {
  border-bottom: none;
}

.market-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.market-name {
  font-weight: 700;
  font-size: 14px;
}

.market-fullname {
  font-size: 11px;
  color: var(--gray-400);
}

.market-price {
  text-align: right;
}

.market-price-value {
  font-weight: 700;
  font-size: 14px;
}

.market-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 2px;
}

.market-change.up {
  background: rgba(0, 200, 83, 0.15);
  color: var(--accent);
}

.market-change.down {
  background: rgba(255, 61, 87, 0.15);
  color: var(--danger);
}

/* === Transaction List === */
.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 12px;
}

.tx-icon.deposit {
  background: rgba(0, 200, 83, 0.15);
  color: var(--accent);
}

.tx-icon.withdraw {
  background: rgba(255, 61, 87, 0.15);
  color: var(--danger);
}

.tx-details {
  flex: 1;
}

.tx-type {
  font-weight: 600;
  font-size: 14px;
}

.tx-date {
  font-size: 11px;
  color: var(--gray-400);
}

.tx-amount {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 32px 24px;
  width: 100%;
  max-width: 480px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-600);
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.modal-text {
  text-align: center;
  color: var(--gray-400);
  font-size: 14px;
  margin-bottom: 24px;
}

/* === Components === */
.stats-header {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background: #0B0E11;
}

.stat-group {
  flex: 1;
}

.stat-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-value {
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}

.market-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid var(--gray-dark);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.currency-toggle {
  background: #1E2329;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--white);
}

.bid-ask-container {
  display: flex;
  padding: 8px 16px;
  gap: 32px;
}

.price-item .label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
}

.price-item .value {
  font-size: 16px;
  font-weight: 700;
}

.price-item .value.up {
  color: var(--accent);
}

.price-item .value.down {
  color: var(--danger);
}

.trade-panel {
  padding: 16px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.buy-sell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-trade {
  height: 48px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  color: #000;
  font-size: 14px;
}

.btn-buy {
  background: var(--accent);
}

.btn-sell {
  background: var(--danger);
  color: #fff;
}

.input-label {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.amount-input-wrapper {
  background: var(--primary-light);
  border: 1px solid var(--gray-dark);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.amount-input-wrapper span {
  color: var(--gray);
  font-weight: 700;
  margin-right: 8px;
}

.amount-input-wrapper input {
  background: transparent;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.preset-btn {
  background: var(--primary-light);
  border: 1px solid var(--gray-dark);
  border-radius: 4px;
  color: var(--white);
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.preset-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.trade-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.trade-info-row .label {
  color: var(--gray);
}

.live-chat-section {
  padding: 16px;
  background: #0B0E11;
}

.chat-card {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.chat-message {
  font-size: 13px;
  line-height: 1.4;
}

.chat-system {
  color: var(--accent);
  font-weight: 700;
}

.chat-check {
  width: 16px;
  height: 16px;
  background: rgba(0, 255, 163, 0.2);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-trade {
  height: 54px;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s;
  z-index: 10;
}

.btn-trade:active {
  transform: scale(0.96);
}

.btn-buy {
  background: #00FFA3;
  color: #000;
}

.btn-sell {
  background: #FF4D4D;
  color: #fff;
}

.processing-overlay {
  background: #00FFA3;
  color: #000;
  padding: 24px;
  border-radius: 4px;
  text-align: center;
  margin-top: 20px;
}

.processing-title {
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
}

.processing-result {
  font-weight: 700;
  font-size: 16px;
}

.float-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 255, 163, 0.3);
  z-index: 100;
}

/* === Notifications === */
.notification-banner {
  background: #181C21;
  border-bottom: 2px solid #6c5ce7;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.notification-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.notification-result {
  font-weight: 700;
}

.notification-close {
  color: var(--gray);
  font-size: 18px;
  cursor: pointer;
}

/* === Enhanced Gradients === */
.btn-buy-processing {
  background: linear-gradient(90deg, #00FFA3, #00D186);
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.4);
}

.btn-sell-processing {
  background: linear-gradient(90deg, #FF4D4D, #D13B3B);
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
  color: white !important;
}

.toast-custom {
  background: #181C21;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === Section Headers === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* === Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-demo {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
}

.badge-live {
  background: rgba(0, 200, 83, 0.15);
  color: var(--accent);
}

.badge-pending {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
}

.badge-success {
  background: rgba(0, 200, 83, 0.15);
  color: var(--accent);
}

.badge-failed {
  background: rgba(255, 61, 87, 0.15);
  color: var(--danger);
}

/* === Quick Actions === */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-300);
  transition: var(--transition);
  cursor: pointer;
}

.quick-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 24px;
}

.quick-action-label {
  font-size: 11px;
  font-weight: 600;
}

/* === TradingView Chart Container === */
.chart-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

/* === Lot Size Input === */
.lot-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.lot-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--glass-light);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lot-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.lot-value {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  border: none;
  color: var(--white);
  outline: none;
}

/* === Auth Pages === */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.auth-logo {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #00e676);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.auth-subtitle {
  color: var(--gray-400);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--gray-400);
  font-size: 14px;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}

/* === Admin Layout === */
.admin-layout {
  min-height: 100vh;
  background: var(--primary-dark);
}

.admin-header {
  background: var(--glass);
  backdrop-filter: blur(20px);
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--primary);
  border-bottom: 1px solid var(--glass-border);
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.admin-tab:hover,
.admin-tab.active {
  background: var(--accent);
  color: var(--primary-dark);
}

.admin-content {
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.admin-stat {
  text-align: center;
  padding: 20px;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.admin-stat-label {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* === Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--gray-400);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--gray-200);
}

.data-table tr:hover td {
  background: var(--glass-light);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* === Status dot === */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.status-dot.offline {
  background: var(--gray-500);
}

/* === Divider === */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 16px 0;
}

/* === Utility === */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

.font-bold {
  font-weight: 700;
}

.text-sm {
  font-size: 13px;
}

.text-xs {
  font-size: 11px;
}

.text-gray {
  color: var(--gray-400);
}

.hidden {
  display: none !important;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 32px 0;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white), var(--gray-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--gray-400);
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat-card {
  text-align: center;
  padding: 16px 8px;
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* === Toast === */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  z-index: 3000;
  transition: transform 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--accent);
  color: var(--primary-dark);
}

.toast.error {
  background: var(--danger);
  color: var(--white);
}

.toast.info {
  background: var(--info);
  color: var(--white);
}

/* === Loading === */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  flex-direction: column;
  gap: 16px;
}

.loading-text {
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
}

/* === Responsive (tablets and up) === */
@media (min-width: 768px) {
  .page-content {
    max-width: 600px;
  }

  .bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .balance-amount {
    font-size: 40px;
  }

  .chart-container {
    height: 450px;
  }
}