:root {
  --bg-color: #f8f9fa;
  --bg-color-alt: #ffffff;
  --card-bg: #ffffff;
  --card-bg-light: #f1f3f5;
  --text-main: #1a1f36;
  --text-muted: #697386;
  --primary: #e91e63; /* Pink */
  --primary-glow: rgba(233, 30, 99, 0.15);
  --secondary: #e3e8ee; 
  --success: #00d924;
  --danger: #ff2c55;
  --font-family: 'Outfit', sans-serif;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Hide spin buttons for number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

#app {
  width: 100%;
  max-width: 480px; /* Mobile first, centered on desktop */
  background: var(--bg-color);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }

h1, h2, h3, h4 {
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
}

.btn-outline:active {
  background: var(--card-bg-light);
}

.btn-icon {
  background: var(--card-bg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
}

.input-field {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: var(--bg-color-alt);
  border: 1px solid var(--secondary);
  border-radius: var(--border-radius-md);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Header */
.header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--secondary);
  z-index: 10;
}

/* Pills */
.pills-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 10px 20px;
}
.pills-container::-webkit-scrollbar {
  display: none;
}
.pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-color-alt);
  color: var(--text-muted);
  border: 1px solid var(--secondary);
  cursor: pointer;
}
.pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Home Login & Selectors */
.language-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.lang-badge {
  background: var(--bg-color-alt);
  border: 1px solid var(--secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.lang-badge.active {
  background: var(--primary);
  color: #fff;
}

.login-container {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-logo {
  width: 100px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-tabs {
  background: var(--bg-color-alt);
  border: 1px solid var(--secondary);
  border-radius: var(--border-radius-lg);
  display: flex;
  padding: 4px;
  width: 100%;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--primary);
  color: #ffffff;
}

.forgot-pwd {
  color: var(--primary);
  font-size: 14px;
  text-align: right;
  margin-top: 8px;
  display: block;
  text-decoration: none;
}

/* Bar Grid */
.bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
}

.bar-card {
  background: var(--card-bg);
  border: 1px solid var(--secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.bar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.bar-card:active {
  transform: scale(0.98);
}
.bar-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.bar-info {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-bg);
  margin-top: -30px;
}

/* Girls Grid */
.girls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  padding-bottom: 100px; /* Space for bottom bar */
}

.girl-card {
  position: relative;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--secondary);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.girl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.girl-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.girl-name-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.girl-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.status-dot.busy {
  background: #ffb400;
}

/* Bottom Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  z-index: 100;
}

.balance-info {
  display: flex;
  flex-direction: column;
}
.balance-label {
  font-size: 12px;
  color: var(--text-muted);
}
.balance-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

/* Profile Full */
.profile-header {
  position: relative;
  height: 45vh;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.profile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-back {
  position: absolute;
  top: 24px;
  left: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.profile-action-top {
  position: absolute;
  top: 24px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.profile-info {
  padding: 20px;
  margin-top: -20px;
}
.profile-name {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}
.status-badge {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.drinks-menu {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drink-card {
  background: var(--card-bg);
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.drink-card.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
}
.drink-icon {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.drink-card.selected .drink-icon {
  color: var(--primary);
}
.drink-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.drink-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.drink-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.checkout-section {
  padding: 20px;
  background: var(--card-bg);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  margin-top: 20px;
}

.tip-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.tip-btn {
  flex: 1;
  background: var(--card-bg-light);
  border: none;
  color: var(--text-main);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.tip-btn.active {
  background: var(--primary);
  color: #fff;
}

.topup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.topup-card {
  background: var(--card-bg);
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.topup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.topup-card.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
}
.topup-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.topup-bonus {
  font-size: 12px;
  color: var(--success);
  margin-top: 4px;
}

/* Custom Request Videocall Button Label */
.vcall-btn-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-weight: 700;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  user-select: none;
}
.vcall-btn-custom.unselected {
  border: 2px solid var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}
.vcall-btn-custom.unselected i, .vcall-btn-custom.unselected svg {
  color: var(--primary) !important;
}
.vcall-btn-custom.selected {
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}
.vcall-btn-custom.selected i, .vcall-btn-custom.selected svg {
  color: #ffffff !important;
}
.vcall-btn-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}



/* Admin panel */
.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
}
.stat-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius-md);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}
.queue-list {
  padding: 0 20px;
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 12px;
}
.admin-attendance {
  padding: 20px;
}
.attendance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-bg-light);
}

/* Views Management */
.view {
  display: none;
  animation: fadeIn 0.3s ease;
  flex: 1;
  padding-bottom: 90px;
}

.view.active {
  display: flex;
  flex-direction: column;
}

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

/* Admin Tabs and Modals */
.admin-tabs {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.admin-tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tab.active {
  background: var(--primary);
  color: white;
}
.admin-list-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px;
  margin: 0 20px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-list-item input {
  background: var(--card-bg-light);
  border: none;
  color: white;
  padding: 8px;
  border-radius: 6px;
  width: 100%;
}
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  width: 90%; max-width: 400px;
}
.modal-content h3 { margin-bottom: 16px; }

/* Home specific styles */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(100,50,200,0.2)"/></svg>') repeat;
  background-size: 10px 10px;
}
.bar-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 20px;
}
.bar-logo-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 12px;
  transition: var(--transition);
}
.bar-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.15);
}
.bar-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--secondary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  flex: 1;
}
.nav-item.active {
  color: var(--primary);
}
.nav-item i, .nav-item svg {
  transition: transform 0.2s;
}
.nav-item.active i, .nav-item.active svg {
  transform: scale(1.1);
}
.nav-item-center {
  background: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px var(--primary-glow);
  transform: translateY(-10px);
  cursor: pointer;
}
.nav-item-center i, .nav-item-center svg {
  width: 24px;
  height: 24px;
}
.nav-text {
  font-size: 10px;
  font-weight: 600;
}
.ranking-card {
  background: var(--card-bg);
  border: 1px solid var(--secondary);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: var(--card-bg-light);
}
.rank-num {
  font-size: 18px;
  font-weight: 800;
  color: #666;
  width: 20px;
}
.rank-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.rank-info {
  display: flex;
  flex-direction: column;
}
.rank-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
}
