/* ===== Google Font Import (Professional & Consistent) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
  --black: #0a0a0a;
  --dark-grey: #1c1c1e;
  --grey: #4a4a4d;
  --light-grey: #c7c7cc;
  --white: #ffffff;
  --border: #2e2e31;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --error: #f87171;
  --success: #34d399;
  --telegram: #0088cc;
}

/* ===== Global Reset & Base ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Auth Pages (Register / Login) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--dark-grey);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-wrap img {
  height: 52px;
  max-width: 100%;
}

h1 {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: var(--white);
  font-weight: 700;
}

.subtitle {
  text-align: center;
  color: var(--light-grey);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 0.82rem;
  margin: 14px 0 6px;
  color: var(--light-grey);
  font-weight: 500;
}

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

.dial-badge {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--black);
  color: var(--light-grey);
  font-size: 0.95rem;
  white-space: nowrap;
}

select,
input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--black);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

select:focus,
input:focus {
  border-color: var(--accent);
}

.phone-row input {
  flex: 1;
}

button {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #06221d;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.msg {
  margin-top: 16px;
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 8px;
}

.msg ul {
  margin: 0;
  padding-left: 18px;
}

.msg.error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.msg.success {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.switch-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--light-grey);
}

.switch-link a {
  color: var(--accent);
  font-weight: 600;
}

.hint {
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 4px;
}

/* ===== Top Bar ===== */
.topbar {
  background: var(--dark-grey);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  height: 32px;
  display: block;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.topbar-phone {
  color: var(--light-grey);
}

.topbar-logout {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ===== Home Page Content ===== */
.home-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.flash.success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.flash.error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ===== Hello / Music Banner Section ===== */
.hello-section {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.75)), 
              url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=1000&auto=format&fit=crop') no-repeat center center;
  background-size: cover;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.music-vibe-overlay {
  text-align: center;
  z-index: 2;
}

.home-logo {
  height: 36px;
  margin-bottom: 12px;
}

.music-words h1 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.5px;
  color: var(--white);
}

.music-words p {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin: 6px 0 0;
}

/* ===== Quick Action Icons Grid ===== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-btn {
  background: var(--dark-grey);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  background: rgba(45, 212, 191, 0.05);
}

.quick-action-btn span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--light-grey);
  text-align: center;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-recharge { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.icon-withdraw { background: rgba(248, 113, 113, 0.15); color: var(--error); }
.icon-cs { background: rgba(0, 136, 204, 0.15); color: var(--telegram); }
.icon-checkin { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

/* ===== Wallet Section ===== */
.wallet-section {
  margin-bottom: 100px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title-wrap h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

.wallet-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.individual-wallet-card {
  background: var(--dark-grey);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.individual-wallet-card:hover {
  transform: translateY(-2px);
  border-color: var(--grey);
}

.individual-wallet-card .card-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--light-grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.individual-wallet-card .card-amount {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--accent);
}

/* ===== Telegram Floating CS Button ===== */
.telegram-float {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 99;
}

.telegram-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--telegram);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  transition: transform 0.2s ease;
}

.telegram-link:hover {
  transform: scale(1.05);
}

.telegram-label {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Customer Service Modal (Redesigned) ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 420px;
  background: linear-gradient(145deg, #1e1e22, #1c1c1e);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--light-grey);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.3);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* CS Option Items */
.cs-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-option-item:hover {
  transform: translateX(4px);
  border-color: var(--telegram);
  background: rgba(0, 136, 204, 0.05);
}

.cs-option-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 136, 204, 0.12);
  color: var(--telegram);
}

.cs-option-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.2px;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--light-grey);
  line-height: 1.4;
}

/* ===== Bottom Navigation Bar ===== */
.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #111112;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--grey);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  transition: color 0.15s ease;
  flex: 1;
}

.nav-item svg {
  transition: transform 0.15s ease;
}

.nav-item:hover, 
.nav-item.active {
  color: var(--accent);
}

.nav-item.active svg {
  transform: translateY(-2px);
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 768px) {
  .wallet-cards-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .wallet-section {
    margin-bottom: 110px;
  }
}

@media (max-width: 700px) {
  .actions-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }
  
  .topbar-phone {
    display: none;
  }
}

@media (max-width: 600px) {
  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .card {
    padding: 24px 18px;
  }
  
  .phone-row {
    flex-wrap: wrap;
  }
  
  .dial-badge {
    order: 1;
  }
  
  .phone-row input {
    order: 2;
    min-width: 100%;
  }
}



/* Add this */
.equipment-image-wrap {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active-eq-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}


/* Empty state icon - remove emoji */
.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--grey);
}

/* =========================================================
   TEAM PAGE — replace everything from "/* ===== Team Page
   Specific Styles ===== *" to the end of the file with this.
   Reuses .hello-section, .wallet-cards-container and
   .individual-wallet-card from the home page for consistency.
   ========================================================= */

/* Hero: identical pattern to home, different background image */
.team-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.team-hello-section {
  background: linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.8)),
             url('https://images.unsplash.com/photo-1683432881960-2eb68902682a?q=80&w=1000&auto=format&fit=crop') no-repeat center center;
}

/* Invitation Card */
.invite-section {
  margin-bottom: 24px;
}

.invite-card {
  background: var(--dark-grey);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.invite-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.invite-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invite-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--light-grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.invite-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.invite-code {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  flex: 1;
}

.invite-value-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 0.82rem;
  padding: 0;
  font-family: 'Courier New', monospace;
}

.copy-btn {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--accent);
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(45, 212, 191, 0.2);
}

/* Share buttons: quieter, flatter, same footprint as before */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  width: auto;
  margin: 0;
  transition: all 0.2s ease;
}

.share-btn:hover {
  border-color: var(--grey);
  transform: translateY(-1px);
}

.telegram-share svg { color: var(--telegram); }
.whatsapp-share svg { color: #25D366; }

/* Team stats reuse .wallet-cards-container / .individual-wallet-card;
   just make room for 4 across on wider screens */
.team-stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Reward Progress — simplified: one border treatment, accent used
   only for progress + claim, quiet "claimed" indicator */
.reward-progress-section {
  margin-bottom: 100px; /* clears the fixed bottom-navbar (64px + safe area) */
}

.reward-progress-item {
  background: var(--dark-grey);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.reward-progress-item.completed {
  opacity: 0.7;
}

.reward-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  gap: 12px;
}

.reward-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reward-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.reward-amount {
  font-size: 0.75rem;
  color: var(--grey);
}

.reward-description {
  font-size: 0.8rem;
  color: var(--light-grey);
  margin-bottom: 10px;
}

.reward-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--light-grey);
  white-space: nowrap;
}

.reward-progress-item.completed .reward-status {
  color: var(--success);
}

.progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.claim-btn {
  background: var(--accent);
  color: #06221d;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  width: auto;
  margin: 0;
  transition: all 0.2s ease;
}

.claim-btn:hover {
  background: var(--accent-dark);
}

/* Toast (unchanged, kept here since it lived at the bottom of the file) */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-grey);
  border: 1px solid var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 500;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-100px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .team-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .invite-row {
    grid-template-columns: 1fr;
  }
  .reward-progress-section {
    margin-bottom: 110px;
  }
}