.home-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Logout button */
.logout-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white-70);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(156, 39, 176, 0.15));
  border: 1px solid rgba(255, 0, 128, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.welcome-text {
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
}

.welcome-text strong {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtext {
  font-size: 0.9rem;
  color: var(--white-60);
  margin: 0.25rem 0 0 0;
}

.home-content {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
}

.home-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding: 0 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-multiplayer, .btn-local {
  display: block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-multiplayer:hover, .btn-local:hover {
  transform: translateY(-2px);
}

.btn-multiplayer {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.btn-multiplayer:hover {
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
}

.btn-local {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-local:hover {
  background: rgba(255, 255, 255, 0.15);
}

.home-footer {
  margin-top: 3rem;
}

.age-warning {
  color: var(--white-60);
  font-size: 0.9rem;
}

.beta-tag {
  color: var(--white-30, rgba(255,255,255,0.3));
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* Modal for display name prompt */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-mid);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.name-prompt-modal h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.name-prompt-modal p {
  color: var(--white-60);
  margin: 0 0 1.5rem 0;
}

.name-prompt-modal input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1.1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.name-prompt-modal input:focus {
  border-color: var(--pink);
}

.name-prompt-modal input::placeholder {
  color: var(--white-40);
}

.modal-buttons {
  margin-top: 1.5rem;
}

.modal-buttons .btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.modal-buttons .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Store Button */
.btn-store {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  color: #FFD700;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-store:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.3));
  transform: translateY(-2px);
}

.btn-profile {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(233, 30, 99, 0.2));
  border: 2px solid rgba(156, 39, 176, 0.5);
  border-radius: 12px;
  color: #CE93D8;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-profile:hover {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.4), rgba(233, 30, 99, 0.3));
  transform: translateY(-2px);
}
.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-content {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-content .logo {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.login-content .tagline {
  color: var(--white-60);
  margin-bottom: 2rem;
}

.error-message {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.success-message {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 0.5rem;
}

.btn-link:hover {
  color: var(--pink);
}

.forgot-link {
  align-self: flex-end;
  margin-top: -0.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
}

.auth-form input::placeholder {
  color: var(--white-60);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--pink);
}

.auth-form .btn-primary {
  padding: 14px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.auth-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-switch {
  color: var(--white-60);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--pink);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.confirm-text {
  color: var(--white-80);
  margin-bottom: 0.5rem;
}

.confirm-text strong {
  color: var(--white);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider span {
  padding: 0 1rem;
  color: var(--white-60);
  font-size: 0.85rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.btn-social {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.1);
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--pink);
}

.terms-checkbox span {
  font-size: 0.85rem;
  color: var(--white-80);
  line-height: 1.4;
}

.terms-checkbox a {
  color: var(--pink);
  text-decoration: underline;
}

.terms-note {
  font-size: 0.8rem;
  color: var(--white-60);
  text-align: center;
  margin-top: 1rem;
}

.terms-note a {
  color: var(--pink);
  text-decoration: underline;
}

.age-warning {
  margin-top: 2rem;
  color: var(--white-60);
  font-size: 0.85rem;
}
.lang-selector {
  display: flex;
  gap: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lang-btn.active {
  background: rgba(255, 0, 128, 0.2);
  border-color: #ff0080;
  color: #fff;
}

.lang-flag {
  font-size: 1.2rem;
}

.lang-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-selector-compact {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-selector-compact:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tour-modal {
  background: linear-gradient(135deg, #2a1a3a 0%, #1a0a2a 100%);
  border: 2px solid rgba(255, 107, 157, 0.5);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
  animation: slideUp 0.4s ease;
}

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

.tour-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
}

.tour-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tour-dot.active {
  background: linear-gradient(135deg, #FF6B9D, #FF1744);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.tour-dot.completed {
  background: #4CAF50;
}

.tour-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.tour-content {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 30px;
}

.tour-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tour-btn {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.tour-skip {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tour-skip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.tour-next {
  background: linear-gradient(135deg, #FF6B9D, #FF1744);
  color: #fff;
  min-width: 140px;
}

.tour-next:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.tour-next:active {
  transform: scale(0.98);
}
.htp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 20px;
  overflow-y: auto;
}

.htp-modal {
  background: linear-gradient(135deg, #2a1a3a 0%, #1a0a2a 100%);
  border: 2px solid rgba(255, 107, 157, 0.4);
  border-radius: 20px;
  padding: 25px;
  max-width: 450px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.htp-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.htp-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.htp-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5px;
  color: #fff;
}

.htp-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.htp-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.htp-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 12px;
  border-left: 3px solid #FF6B9D;
}

.htp-step-number {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #FF6B9D, #FF1744);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.htp-step-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.htp-step-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #fff;
}

.htp-step-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.htp-tips {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.htp-tips h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #FFC107;
}

.htp-tips ul {
  margin: 0;
  padding-left: 20px;
}

.htp-tips li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.htp-tips li:last-child {
  margin-bottom: 0;
}

.htp-got-it {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF6B9D, #FF1744);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.htp-got-it:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

/* Trigger button for placement in screens */
.htp-trigger-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.htp-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.name-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
}

.name-prompt h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.name-prompt form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.name-prompt input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1.1rem;
  text-align: center;
}

.name-prompt .btn-primary {
  padding: 14px;
}

.name-prompt .btn-primary:disabled {
  opacity: 0.5;
}

.lobby-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--white-80);
  font-size: 0.9rem;
}

.btn-logout {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-60);
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
}

.error-message {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

.lobby-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.lobby-menu h2 {
  font-size: 1.5rem;
  color: var(--white);
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin-bottom: calc(21px + env(safe-area-inset-bottom));
}

.btn-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-large:hover {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.1);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 2.5rem;
}

.btn-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.btn-desc {
  font-size: 0.9rem;
  color: var(--white-60);
}

.host-form, .join-form {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.host-form h2, .join-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn-back {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white-80);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--pink);
}

.level-selector {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 0.5rem !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
}

.level-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.level-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.level-option.active {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.2);
}

.level-option .level-icon-small {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.level-option .level-badge-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2px;
}

.level-option .level-name {
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

.level-option .locked-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.55rem;
}

.level-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
}

.level-option.disabled:hover {
  border-color: rgba(255, 255, 255, 0.05);
}

.level-option .coming-soon {
  display: block;
  font-size: 0.6rem;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.host-form .btn-primary, .join-form .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 1rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
}

.search-form input::placeholder {
  color: var(--white-60);
}

.btn-search {
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.loading-text, .no-sessions {
  text-align: center;
  color: var(--white-60);
  padding: 2rem;
}

.no-sessions .btn-secondary {
  margin-top: 1rem;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.session-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.session-card.selected {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.1);
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-name {
  font-weight: 600;
  color: var(--white);
}

.session-host {
  font-size: 0.85rem;
  color: var(--white-60);
}

.session-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.session-level {
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(156, 39, 176, 0.3);
  border-radius: 6px;
  color: var(--white);
}

.session-players {
  font-size: 0.8rem;
  color: var(--white-60);
}

.join-password {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.join-password input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
}

/* My Ratings Button */
.btn-my-ratings,
.btn-icon-nav {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-my-ratings:hover,
.btn-icon-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Level selector with icons */
.level-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}

.level-icon-small {
  font-size: 1.25rem;
}

.level-option.locked {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
}

.level-option.locked:hover {
  border-color: rgba(255, 255, 255, 0.05);
}

.locked-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.7rem;
}

.level-hint {
  margin-top: 0.75rem;
  text-align: center;
}

.link-btn {
  background: none;
  border: none;
  color: var(--pink);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}

.link-btn:hover {
  color: var(--white);
}

/* Session cards with lock indicators */
.session-card.needs-unlock {
  border-color: rgba(255, 193, 7, 0.3);
}

.needs-unlock-badge {
  margin-left: 4px;
  font-size: 0.75rem;
}

/* Access warning when joining locked session */
.access-warning {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.access-warning p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--white-80);
}

.access-warning p:last-child {
  margin-bottom: 0;
}

.access-hint {
  font-size: 0.85rem;
  color: var(--white-60);
}

/* Rejoin Button */
.btn-rejoin {
  background: linear-gradient(135deg, #6b46c1, #805ad5);
  border: 2px solid #9f7aea;
}

/* Rejoin Form */
.rejoin-form {
  padding: 1.5rem;
}

.rejoin-form h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.rejoin-hint {
  text-align: center;
  color: var(--white-60);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.rejoin-tip {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--white-60);
  text-align: center;
}

/* Free Credits Banner - Flashy CTA */
.free-credits-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffd700, #ff6b6b, #ff1493);
  background-size: 200% 200%;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  animation: gradientShift 3s ease infinite, pulse 1.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.free-credits-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6);
}

.banner-icon {
  font-size: 1.8rem;
  animation: bounce 1s ease infinite;
}

.banner-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-sparkle {
  font-size: 1.5rem;
  animation: sparkle 1.5s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.2) rotate(10deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(255, 215, 0, 0.6); }
}

.camera-btn {
  width: 100%;
  margin: 0.6rem 0 0.9rem;
}

.scanner-modal {
  max-width: 420px;
  width: min(92vw, 420px);
  text-align: center;
}

.scanner-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #000;
  margin: 0.75rem 0;
}

.scanner-error {
  color: #ff8080;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.waiting-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
}

.waiting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-back {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.session-badge {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  padding: 8px 16px;
  border-radius: 20px;
}

.session-code {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.waiting-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.session-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

.session-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.session-level {
  color: var(--white-60);
  text-transform: capitalize;
}

.session-password {
  color: var(--white-60);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.session-password strong {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* QR Code Section */
.qr-code-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.qr-label {
  color: var(--white-60);
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

.qr-code-wrapper {
  padding: 12px;
  background: #2d1b36;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-share-rejoin {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.loading, .error {
  text-align: center;
  padding: 2rem;
  color: var(--white-60);
}

.error-message {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

.players-section {
  margin-bottom: 2rem;
}

.players-section h2 {
  font-size: 1rem;
  color: var(--white-80);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.player-card.ready {
  border-color: rgba(76, 175, 80, 0.5);
}

.player-card.pending {
  border-color: rgba(255, 193, 7, 0.5);
}

.player-avatar {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-avatar .player-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.player-name {
  font-weight: 600;
  color: var(--white);
  text-align: center;
}

.player-status {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 10px;
}

.player-status.ready {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

.player-status.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffd54f;
}

.host-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 6px;
  font-weight: 700;
}

.profile-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.profile-section h2 {
  font-size: 1rem;
  color: var(--white-80);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--white-60);
}

.form-row select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #2d1b36;
  color: var(--white);
  font-size: 1rem;
}

.profile-form .btn-primary {
  margin-top: 0.5rem;
}

.waiting-message {
  text-align: center;
  padding: 2rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.waiting-message p {
  font-size: 1.25rem;
  color: #81c784;
  margin: 0;
}

.waiting-message .sub {
  font-size: 0.9rem;
  color: var(--white-60);
  margin-top: 0.5rem;
}

.waiting-footer {
  margin-top: auto;
  padding: 1rem 0;
}

.btn-start {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.btn-start:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quick Ready Up section */
.quick-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.profile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.profile-tag {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-ready-up {
  width: 100%;
  max-width: 280px;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.btn-link {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
}

.btn-link:hover {
  color: var(--white);
}

.profile-form .btn-link {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

/* Pending Join Requests Section */
.pending-section {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.pending-section h2 {
  color: #ffb74d;
  margin-bottom: 0.5rem;
}

.pending-info {
  color: var(--white-60);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pending-info strong {
  color: #ffb74d;
}

.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.pending-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pending-avatar {
  font-size: 2rem;
}

.pending-name {
  font-weight: 500;
  color: var(--white);
}

.btn-gift {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-gift:hover {
  transform: scale(1.05);
}

.btn-gift:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.wallet-info {
  text-align: center;
  color: var(--white-60);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.wallet-info strong {
  color: #4caf50;
}
.setup-screen {
  gap: 24px;
}

.setup-header {
  text-align: center;
  padding: 10px 0;
}

.setup-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 20px;
}

.setup-section h2 {
  font-size: 1rem;
  color: var(--white-80);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.player-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
}

.player-form input::placeholder {
  color: var(--white-60);
}

.player-profile-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.player-profile-fields select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #2d1b36;
  color: var(--white);
  font-size: 0.8rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.player-profile-fields select option {
  background: #2d1b36;
  color: var(--white);
}

@media (max-width: 500px) {
  .player-profile-fields {
    grid-template-columns: 1fr;
  }
}

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

.player-details {
  font-size: 0.75rem;
  color: var(--white-60);
}

.btn-add {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.player-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.player-name {
  flex: 1;
  font-weight: 600;
}

.player-gender {
  font-size: 0.85rem;
  color: var(--white-60);
}

.btn-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.2);
  color: var(--danger);
  font-size: 1.2rem;
}

/* Level Selector - 2 columns x 3 rows */
.setup-screen .level-selector {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  gap: 0.75rem !important;
  overflow: visible !important;
}

.setup-screen .level-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-width: 0;
  flex: none;
}

.setup-screen .level-option .level-badge-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
}

.setup-screen .level-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.setup-screen .level-option.active {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.2);
}

.setup-screen .level-option.locked {
  opacity: 0.6;
}

.setup-screen .level-option .level-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.setup-screen .level-option .level-name {
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

.setup-screen .level-option .locked-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.6rem;
}

.setup-footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
}

.setup-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.survey-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
}

.survey-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.survey-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e91e63, #9c27b0);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--white-60);
  min-width: 3rem;
}

.survey-context {
  text-align: center;
  margin-bottom: 1rem;
}

.rater-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
}

.rater-label {
  color: var(--white-60);
}

.rater-name {
  color: var(--white);
  font-weight: 600;
}

.survey-target {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(233, 30, 99, 0.3));
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.target-avatar {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.target-name {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
  color: var(--white);
}

.target-details {
  font-size: 0.9rem;
  color: var(--white-60);
  margin: 0;
}

.survey-questions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.question-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.question-group label {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

.rating-scale {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.rating-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.rating-btn.selected {
  background: rgba(233, 30, 99, 0.4);
  box-shadow: 0 0 12px rgba(233, 30, 99, 0.5);
}

.hearts .rating-btn.selected {
  background: rgba(244, 67, 54, 0.4);
  box-shadow: 0 0 12px rgba(244, 67, 54, 0.5);
}

.diamonds .rating-btn.selected {
  background: rgba(33, 150, 243, 0.4);
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.5);
}

.question-group select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #2d1b36;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.question-group select option {
  background: #2d1b36;
  color: var(--white);
  padding: 8px;
}

.survey-footer {
  padding: 1rem 0;
  margin-top: auto;
}

.survey-footer .btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.btn-back {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 400px) {
  .rating-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .target-avatar {
    font-size: 3rem;
  }
  
  .target-name {
    font-size: 1.25rem;
  }
}

/* Leave Game Styles */
.btn-leave {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 100, 100, 0.2);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.leave-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.leave-confirm-modal {
  background: var(--bg-mid, #2d1b36);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 320px;
  text-align: center;
}

.leave-confirm-modal h3 {
  margin: 0 0 1rem 0;
  color: white;
}

.leave-confirm-modal p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem 0;
}

.leave-buttons {
  display: flex;
  gap: 1rem;
}

.leave-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-leave-confirm {
  background: #ef5350;
  color: white;
}
/* Golden ratio: φ = 1.618 → 8, 13, 21, 34, 55, 89, 144, 233 */
.game-screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 21px 21px calc(260px + env(safe-area-inset-bottom, 0px)) 21px;
}

/* When video is active, add extra padding to allow scrolling past the video */
body:has(.go-live-container) .game-screen {
  padding-bottom: 550px; /* Video height (400px) + player bar (89px) + extra scroll (61px) */
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-back, .btn-end {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-end {
  background: rgba(255, 107, 107, 0.2);
  color: var(--danger);
}

.game-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.quarter-label {
  font-size: 0.8rem;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.time-remaining {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.level-badge {
  text-align: center;
  margin-bottom: 1rem;
}

.level-badge .level-name {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.player-wheel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.current-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 3rem;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(233, 30, 99, 0.3));
  border-radius: 24px;
  transition: transform 0.1s;
}

.current-player.spinning {
  animation: pulse 0.2s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.player-emoji {
  font-size: 3rem;
}

.current-player .player-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.spin-button {
  display: block;
  width: 180px;
  height: 180px;
  margin: 2rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(233, 30, 99, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.spin-button:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(233, 30, 99, 0.5);
}

.spin-button.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: spin-glow 0.3s infinite alternate;
}

@keyframes spin-glow {
  from { box-shadow: 0 8px 32px rgba(233, 30, 99, 0.4); }
  to { box-shadow: 0 8px 48px rgba(233, 30, 99, 0.7); }
}

.card-reveal {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: linear-gradient(135deg, #2d1b36, #1a0f20);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.card-truth {
  border-color: rgba(33, 150, 243, 0.5);
  background: linear-gradient(135deg, #1a2a3d, #0f1a26);
}

.card-dare {
  border-color: rgba(244, 67, 54, 0.5);
  background: linear-gradient(135deg, #3d1a1a, #260f0f);
}

.card-empty {
  border-color: rgba(255, 255, 255, 0.2);
  justify-content: center;
  align-items: center;
}

.card-type {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.card-truth .card-type {
  background: rgba(33, 150, 243, 0.3);
  color: #64b5f6;
}

.card-dare .card-type {
  background: rgba(244, 67, 54, 0.3);
  color: #ef5350;
}

.card-text {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.card-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  background: rgba(233, 30, 99, 0.2);
  border-radius: 12px;
  margin-top: auto;
}

.partners-label {
  font-size: 0.8rem;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partners-names {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f48fb1;
}

.card-level {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white-60);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card-actions button,
.card-actions .prove-it-btn {
  flex: 1;
  min-width: 90px;
  padding: 0.9rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.card-actions button:hover,
.card-actions .prove-it-btn:hover {
  transform: translateY(-2px);
}

/* Prove It button styling in card-actions */
.card-actions .prove-it-btn {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.card-actions .prove-it-btn .prove-it-cost {
  font-size: 0.7rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-80);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-footer {
  padding: 1rem 0;
  margin-top: auto;
}

.player-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.dot.active {
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  transform: scale(1.3);
}

/* === MULTIPLAYER ADDITIONS === */

.turn-indicator {
  font-size: 0.8rem;
  color: var(--white-60);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.game-top-utilities {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.35rem 0 0.9rem;
  min-height: 48px;
  padding: 0.25rem 0;
}

.game-top-utilities .go-live-btn {
  min-height: 40px;
}

.view-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Extra scroll runway so bottom CTAs never hide behind fixed player bar */
.game-view,
.performance-view {
  padding-bottom: calc(300px + env(safe-area-inset-bottom, 0px));
}

.toggle-btn {
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-60);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: var(--white);
}

/* Performance View */
.performance-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 2rem 2rem calc(320px + env(safe-area-inset-bottom, 0px));
}

.performance-view h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--white-80);
}

.performance-score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.score-value {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-label {
  font-size: 1.5rem;
  color: var(--white-60);
}

.no-ratings {
  color: var(--white-60);
  font-size: 1.1rem;
}

.performance-tip {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.performance-tip p {
  color: var(--white-60);
  margin: 0;
}

.progress-summary-card {
  margin-top: 1rem;
  width: min(100%, 560px);
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.9rem;
}

.progress-summary-card h3 {
  margin: 0 0 0.6rem;
  text-align: center;
}

.progress-summary-grid {
  display: grid;
  gap: 0.35rem;
}

/* Memories View */
.memories-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem calc(320px + env(safe-area-inset-bottom, 0px));
}

.memories-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.memories-header h2 {
  font-size: 1.5rem;
  color: var(--white-80);
  margin: 0;
}

.info-btn {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-90);
}

.no-memories {
  color: var(--white-60);
  font-size: 1.1rem;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 800px;
}

.memory-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.memory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
}

.memory-user {
  font-weight: 600;
  color: var(--white-90);
  font-size: 0.9rem;
}

.delete-memory-btn {
  background: none;
  border: none;
  color: var(--white-60);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.delete-memory-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
}

.memory-preview {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.memory-placeholder {
  color: var(--white-60);
  text-align: center;
  font-size: 0.9rem;
}

.in-game-pending-banner {
  margin: 8px auto 12px;
  max-width: 760px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
}

.pending-banner-head {
  font-weight: 700;
  color: #ffe08a;
  margin-bottom: 8px;
  text-align: center;
}

.pending-banner-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pending-banner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 6px 8px;
}

.pending-banner-name {
  color: var(--white);
  font-weight: 600;
}

.btn-gift-inline {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd166, #ff9f1c);
  color: #1a1a2e;
}

.btn-gift-inline:disabled {
  opacity: 0.6;
}

/* Turn Player */
.turn-player {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.turn-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.rating-alert-banner {
  margin: 0 auto 12px;
  max-width: 520px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffe8a3;
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
}

.timeout-countdown-banner {
  margin: 0 auto 12px;
  max-width: 520px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffdfe7;
  background: rgba(255, 77, 109, 0.2);
  border: 1px solid rgba(255, 77, 109, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
}
/* Waiting States */
.waiting-spin, .waiting-others {
  text-align: center;
  padding: 3rem 2rem;
}

.waiting-text {
  font-size: 1.1rem;
  color: var(--white-60);
  animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Waiting for others (participant completed, others haven't) */
.waiting-for-others {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
}

.waiting-for-others .completed-text {
  color: #4caf50;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.waiting-for-others .waiting-hint {
  color: var(--white-60);
  font-size: 0.9rem;
  margin: 0;
  animation: pulse-text 2s infinite;
}

/* Card Display */
.card-display {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Rating Section */
.rating-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.rating-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--white-80);
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.star {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.2s;
  filter: grayscale(100%);
}

.star.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.star:hover {
  transform: scale(1.2);
}

.rate-btn {
  margin-top: 0.5rem;
}

/* Advance Section */
.advance-section {
  text-align: center;
  padding: 1.5rem;
}

.complete-text {
  font-size: 1.25rem;
  color: var(--success);
  margin-bottom: 1rem;
}

/* Player List Mini */
.player-list-mini {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.player-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.3), rgba(255, 0, 128, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.player-dot.active {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  box-shadow: 0 0 16px rgba(233, 30, 99, 0.5);
}

.player-dot.participant {
  border: 2px solid var(--orange);
}

.player-dot.has-avatar {
  padding: 0;
  overflow: hidden;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.player-dot.has-avatar.active {
  border: 3px solid var(--pink);
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.6);
}

.player-dot.has-avatar.participant {
  border: 3px solid var(--orange);
}

.player-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Player select modal avatars */
.player-select-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.player-select-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.player-select-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pink);
}

.player-select-btn .player-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.3), rgba(255, 0, 128, 0.3));
  border-radius: 50%;
  font-size: 1.5rem;
}

.player-select-btn .player-name {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Error Message */
.error-message {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 1.2rem;
  color: var(--white-60);
}

/* Responsive */
@media (max-width: 400px) {
  .game-top-utilities {
    margin: 0.25rem 0 0.75rem;
  }

  .game-top-utilities .go-live-btn {
    font-size: 0.88rem;
    padding: 0.62rem 1rem;
  }

  .spin-button {
    width: 150px;
    height: 150px;
    font-size: 1.5rem;
  }
  
  .card-text {
    font-size: 1rem;
  }
  
  .current-player .player-name {
    font-size: 1.25rem;
  }
  
  .score-value {
    font-size: 4rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .game-screen {
    padding-top: 10px;
  }

  .game-top-utilities {
    margin: 0.2rem 0 0.55rem;
  }

  .game-top-utilities .go-live-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  .game-view,
  .performance-view {
    padding-bottom: calc(210px + env(safe-area-inset-bottom, 0px));
  }
}

/* iOS Safari/WebView: give a little extra runway for bottom browser chrome */
@supports (-webkit-touch-callout: none) {
  .game-view,
  .performance-view {
    padding-bottom: calc(230px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==================== */
/* BAC Tracking Styles  */
/* ==================== */

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.player-dot {
  position: relative;
}

.bac-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
}

.bac-badge.low {
  background: rgba(100, 149, 237, 0.8);
}

.bac-badge.target {
  background: rgba(50, 205, 50, 0.8);
}

.bac-badge.over {
  background: rgba(255, 99, 71, 0.8);
}

.btn-drink-tracker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-drink-tracker:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.btn-drink-tracker:active {
  transform: scale(0.95);
}

/* ==================== */
/* Leave Game Styles    */
/* ==================== */

.btn-leave {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 100, 100, 0.2);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-leave:hover {
  background: rgba(255, 100, 100, 0.4);
}

.leave-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.leave-confirm-modal {
  background: var(--bg-mid, #2d1b36);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 320px;
  text-align: center;
}

.leave-confirm-modal h3 {
  margin: 0 0 1rem 0;
  color: white;
  font-size: 1.25rem;
}

.leave-confirm-modal p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.leave-warning {
  color: #ffb74d !important;
  font-size: 0.85rem !important;
  margin-bottom: 1.5rem !important;
}

.leave-buttons {
  display: flex;
  gap: 1rem;
}

.leave-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-leave-confirm {
  background: #ef5350;
  color: white;
}

.btn-leave-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Rating section improvements */
.rating-hint {
  color: var(--white-60);
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

.rate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}

.rate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.95rem;
  width: min(92vw, 320px);
  min-height: 44px;
  /* Explicit fallbacks for Instagram/WebView that fail on CSS vars + gradients */
  color: #ffffff !important;
  background-color: #ff0080 !important;
  background: linear-gradient(135deg, #ff0080, #ff8c00) !important;
  border-radius: 13px;
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
  font-size: clamp(0.84rem, 2.7vw, 0.98rem);
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.rated-count {
  color: #4CAF50;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.waiting-others .hint {
  color: var(--white-60);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.waiting-others,
.advance-section {
  margin-bottom: 89px; /* player bar clearance */
}

/* Rating display in game header */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.my-rating {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #FFD700;
  font-weight: bold;
}

/* Perks Section */
.perks-section {
  margin-top: 1rem;
  position: relative;
}

.perks-toggle {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 100, 0, 0.2));
  border: 2px solid rgba(255, 165, 0, 0.5);
  color: #FFD700;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.perks-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.5), rgba(255, 100, 0, 0.3));
  transform: scale(1.05);
}

.perks-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 15, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 280px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.perk-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  text-align: left;
}

.perk-btn:last-child {
  margin-bottom: 0;
}

.perk-btn:hover:not(:disabled) {
  background: rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.4);
}

.perk-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.perk-desc {
  font-size: 0.75rem;
  color: var(--white-60);
  margin-top: 0.25rem;
}

/* Grand finale */
.finale-modal {
  max-width: 560px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(255, 140, 0, 0.18), rgba(156, 39, 176, 0.2) 45%, rgba(20,20,35,0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(255, 105, 180, 0.35), 0 0 80px rgba(255, 165, 0, 0.15);
}

.finale-fireworks {
  font-size: 1.5rem;
  animation: finalePulse 1s ease-in-out infinite alternate;
  margin-bottom: 0.5rem;
}

.finale-copy {
  color: var(--white-90);
  line-height: 1.45;
}

.finale-summary {
  margin: 0.9rem 0 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.next-level-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.next-level-icon {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
}

.next-level-name { font-weight: 700; margin-bottom: 0.35rem; }

@keyframes finalePulse {
  from { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.35)); }
  to { transform: scale(1.06); filter: drop-shadow(0 0 9px rgba(255,215,0,0.5)); }
}

.album-info-modal {
  max-width: 400px;
}

.album-info-modal h3 {
  margin-bottom: 1rem;
}

.info-content {
  text-align: left;
  line-height: 1.5;
}

.info-content p {
  margin-bottom: 1rem;
  color: var(--white-80);
}

/* Perk Modal */
.perk-modal {
  max-width: 320px;
}

.perk-modal h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.modal-desc {
  color: var(--white-60);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.player-select-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.player-select-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}

.player-select-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.3), rgba(255, 0, 128, 0.2));
  border-color: rgba(255, 0, 128, 0.4);
}

.player-select-btn .player-avatar {
  font-size: 1.5rem;
}

.player-select-btn .player-name {
  font-weight: bold;
}

.modal-cancel {
  width: 100%;
}

/* Casino Spin Trigger Button */
.spin-button.casino-spin-trigger {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  font-size: 1.4rem;
  padding: 18px 40px;
  border-radius: 50px;
  box-shadow: 
    0 5px 30px rgba(255, 215, 0, 0.5),
    0 0 60px rgba(255, 140, 0, 0.3);
  animation: casino-pulse 2s ease-in-out infinite;
}

@keyframes casino-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 5px 30px rgba(255, 215, 0, 0.5);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 5px 40px rgba(255, 215, 0, 0.7), 0 0 80px rgba(255, 140, 0, 0.5);
  }
}

/* Floating Drink Tracker Button - Golden ratio positioning */
.btn-drink-tracker-float {
  position: fixed;
  bottom: 89px; /* Align with Use Perk button baseline */
  right: 10px;
  width: 128px;
  height: 86px;
  border-radius: 16px;
  background: linear-gradient(180deg, #151532, #070713);
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), inset 0 0 22px rgba(104, 76, 190, 0.2);
  z-index: 90;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.bac-semi-gauge {
  position: relative;
  width: 118px;
  height: 66px;
}

.gauge-arc {
  position: absolute;
  inset: 0;
  background-image: url('/assets/bac-gauge-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  opacity: 0.96;
}

.gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 3px;
  height: 39px;
  background: linear-gradient(180deg, #ffffff, #bac3d8);
  transform-origin: bottom center;
  border-radius: 2px;
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.75);
}

.gauge-needle::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #ffe27a;
  filter: drop-shadow(0 0 4px rgba(255, 220, 140, 0.65));
}

.gauge-pivot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #f1df9a, #b38b30);
  border: 1px solid #7f6a35;
  box-shadow: 0 0 4px rgba(255, 214, 122, 0.55);
}

.gauge-readout {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.85);
}

/* ==================== BAC Gauge Ideal Zone Celebration ==================== */

.bac-semi-gauge.ideal-zone {
  animation: gauge-glow-pulse 1.5s ease-in-out infinite;
}

.bac-semi-gauge.ideal-zone .gauge-arc {
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.5), 0 0 24px rgba(0, 255, 100, 0.25);
}

.bac-semi-gauge.ideal-zone .gauge-needle {
  background: linear-gradient(180deg, #00ff88, #00cc66);
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.8);
}

.bac-semi-gauge.ideal-zone .gauge-needle::after {
  border-bottom-color: #00ff88;
  filter: drop-shadow(0 0 6px rgba(0, 255, 100, 0.9));
}

.bac-semi-gauge.ideal-zone .gauge-pivot {
  background: radial-gradient(circle at 35% 35%, #00ff88, #00aa55);
  border-color: #00cc66;
  box-shadow: 0 0 8px rgba(0, 255, 100, 0.7);
}

@keyframes gauge-glow-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Sparkle particles */
.gauge-sparkle {
  position: absolute;
  font-size: 8px;
  color: #ffe566;
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 0 4px rgba(255, 230, 100, 0.9);
}

.bac-semi-gauge.ideal-zone .gauge-sparkle {
  animation: sparkle-float 2s ease-in-out infinite;
}

.gauge-sparkle.s1 { top: -4px; left: 20%; animation-delay: 0s; color: #ff6b9d; }
.gauge-sparkle.s2 { top: -8px; left: 50%; animation-delay: 0.3s; color: #00ff88; }
.gauge-sparkle.s3 { top: -4px; right: 20%; animation-delay: 0.6s; color: #ffd700; }
.gauge-sparkle.s4 { top: 10px; left: 5%; animation-delay: 0.9s; color: #7c3aed; }
.gauge-sparkle.s5 { top: 10px; right: 5%; animation-delay: 1.2s; color: #ff6b9d; }
.gauge-sparkle.s6 { top: -12px; left: 35%; animation-delay: 0.15s; font-size: 10px; color: #00ff88; }
.gauge-sparkle.s7 { top: -6px; right: 35%; animation-delay: 0.75s; color: #ffd700; }
.gauge-sparkle.s8 { top: 5px; left: 45%; animation-delay: 1.5s; color: #7c3aed; }

@keyframes sparkle-float {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(-6px) scale(1.2); }
  50% { opacity: 0.8; transform: translateY(-12px) scale(0.9); }
  80% { opacity: 0.4; transform: translateY(-18px) scale(0.6); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.3); }
}

/* Firework burst rings */
.gauge-burst {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  border: 2px solid;
}

.bac-semi-gauge.ideal-zone .gauge-burst {
  animation: burst-ring 2.5s ease-out infinite;
}

.gauge-burst.b1 {
  width: 20px; height: 20px;
  top: -5px; left: 30%;
  border-color: #ff6b9d;
  animation-delay: 0s;
}

.gauge-burst.b2 {
  width: 16px; height: 16px;
  top: -10px; right: 25%;
  border-color: #00ff88;
  animation-delay: 0.8s;
}

.gauge-burst.b3 {
  width: 24px; height: 24px;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  border-color: #ffd700;
  animation-delay: 1.6s;
}

@keyframes burst-ring {
  0% { opacity: 0; transform: scale(0.3); }
  15% { opacity: 0.9; transform: scale(0.8); }
  40% { opacity: 0.5; transform: scale(1.5); border-width: 1px; }
  100% { opacity: 0; transform: scale(2.5); border-width: 0.5px; }
}

.btn-drink-tracker-float:hover {
  transform: scale(1.1);
}

/* When video is active, hide floating buttons to avoid overlap */
.btn-drink-tracker-float.video-active {
  display: none;
}

.btn-report-float.video-active {
  display: none;
}

/* Also hide via body class for global components */
body.video-active .btn-drink-tracker-float,
body.video-active .report-issue-fab {
  display: none;
}

/* CSS-only detection: hide buttons when video container exists on page */
/* These use :has() which works in modern browsers */
body:has(.go-live-container) .btn-drink-tracker-float,
body:has(.go-live-container) .report-issue-fab {
  display: none !important;
}

/* Bug Report Button - Golden ratio positioning */
.btn-report-float {
  position: fixed;
  bottom: 144px; /* Same row as drink button */
  left: 21px; /* φ³ - mirror the drink button */
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 21px rgba(99, 102, 241, 0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}

.btn-report-float:hover {
  transform: scale(1.1);
}


/* Share Session Button */
.btn-share-session {
  width: 100%;
  padding: 14px 20px;
  margin: 16px 0 8px 0;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-share-session:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-share-session:active {
  transform: scale(0.98);
}

/* DrinkTracker Modal */
.drink-tracker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.drink-tracker-modal {
  background: radial-gradient(circle at top, #203058, #111a36 45%, #0b1024);
  border: 2px solid rgba(255, 215, 130, 0.35);
  border-radius: 18px;
  padding: 1rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

.drink-tracker-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.drink-title {
  color: #ffd700;
  margin: 0 0 4px;
}

.drink-instructions {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.9rem;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
  margin-bottom: 0.75rem;
}

.avatar-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 6px 4px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar-chip.selected {
  border-color: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.35);
}

.avatar-chip img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-chip span {
  font-size: 0.72rem;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bac-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
}

.bac-indicator.high { background: rgba(255, 100, 100, 0.28); }
.bac-indicator.medium { background: rgba(255, 200, 100, 0.26); }
.bac-indicator.low,
.bac-indicator.none { background: rgba(100, 255, 100, 0.2); }

.bac-value { color: #fff; font-weight: 700; font-size: 0.95rem; }
.bac-message { color: rgba(255,255,255,0.92); font-size: 0.8rem; }

.drink-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0.9rem;
}

.drink-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.drink-icon-btn.disabled { opacity: 0.45; }

.drink-emoji { font-size: 1.5rem; }
.drink-mini-title { font-size: 0.72rem; opacity: 0.9; }
.drink-count {
  margin-top: 2px;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 10px;
  padding: 1px 8px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.drink-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-submit-add,
.btn-submit-finish,
.btn-cancel {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
}

.btn-submit-add,
.btn-submit-finish {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

@media (max-width: 420px) {
  .drink-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Prove It Button */
.prove-it-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.prove-it-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.prove-it-btn:active {
  transform: scale(0.98);
}

.prove-it-btn.compact {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.prove-it-cost {
  font-size: 0.8rem;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}

/* Modal Overlay */
.prove-it-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal */
.prove-it-modal {
  background: linear-gradient(145deg, #2d1b36, #1a0a1f);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.prove-it-modal h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: white;
}

.prove-it-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

.prove-it-cost-info {
  color: #ffc107;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.prove-it-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
}

/* Capture Options */
.prove-it-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.prove-it-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 110px;
}

.prove-it-option span {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.prove-it-option:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(156, 39, 176, 0.5);
  transform: translateY(-3px);
}

.prove-it-option:active {
  transform: scale(0.97);
}

/* Divider */
.prove-it-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin: 1rem 0;
  position: relative;
}

.prove-it-divider::before,
.prove-it-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.prove-it-divider::before { left: 0; }
.prove-it-divider::after { right: 0; }

/* Upload from gallery */
.prove-it-upload {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prove-it-upload:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Cancel button */
.prove-it-cancel {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  cursor: pointer;
}

.prove-it-cancel:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Uploading State */
.prove-it-uploading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.upload-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #9c27b0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.prove-it-uploading p {
  color: white;
  font-size: 1rem;
}

.upload-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #9c27b0, #673ab7);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Success State */
.prove-it-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.prove-it-success p {
  color: #4caf50;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Proof Feed */
.proof-feed {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-feed-title {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.proof-feed-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.proof-item {
  flex-shrink: 0;
  width: 160px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.proof-item:hover {
  transform: scale(1.03);
}

.proof-thumb {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.35);
}

.proof-thumb img,
.proof-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 4px;
}

.proof-info {
  display: flex;
  flex-direction: column;
  margin-top: 0.25rem;
}

.proof-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.proof-view-btn {
  margin-top: 0.35rem;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(156, 39, 176, 0.22);
  color: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
  font-size: 0.72rem;
}

.proof-broken {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  background: radial-gradient(circle at 30% 20%, rgba(190, 98, 255, 0.35), rgba(46, 17, 61, 0.8));
}

/* Expanded Proof */
.proof-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.proof-expanded {
  max-width: 92vw;
  max-height: 86vh;
  z-index: 1201;
  background: #1a0a1f;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.proof-expanded img,
.proof-expanded video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

.proof-card-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.5rem 0 0 0;
  padding: 0.5rem;
  text-align: center;
}

.proof-close-btn {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem;
}
/* Go Live Button */
.go-live-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #e91e63, #f44336);
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  position: relative;
}

.go-live-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.go-live-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.go-live-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.go-live-btn.loading {
  min-width: 100px;
}

.go-live-btn.active {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(76, 175, 80, 0.5); }
}

.go-live-cost {
  font-size: 0.8rem;
}

.go-live-controls {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.memory-capture-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(156, 39, 176, 0.3);
}

.memory-capture-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.memory-capture-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.memory-capture-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.time-badge {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  margin-left: 0.25rem;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.go-live-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Video Room Container - Picture-in-Picture style */
.go-live-container {
  width: 100%;
  max-width: 500px;
  height: 400px;
  margin: 0.75rem auto;
  background: #1a0a1f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(233, 30, 99, 0.4);
  animation: slideIn 0.3s ease;
}

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

/* Expand button for fullscreen */
.go-live-container.expanded {
  position: fixed;
  top: 60px;
  left: 8px;
  right: 8px;
  bottom: 100px;
  width: auto;
  max-width: none;
  height: auto;
  z-index: 1000;
  border-radius: 16px;
}

.go-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff0000;
  animation: blink 1s ease-in-out infinite;
}

.time-left {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.room-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-expand,
.btn-external,
.btn-minimize {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-expand:hover,
.btn-external:hover,
.btn-minimize:hover {
  background: rgba(255, 255, 255, 0.2);
}

.daily-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #000;
}

.room-bottom-actions {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.room-snap-btn {
  width: min(100%, 240px);
  padding: 0.55rem 0.8rem;
}

/* In game footer context */
.game-footer .go-live-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.game-footer .go-live-cost {
  font-size: 0.7rem;
}
.casino-spin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.casino-spin-header {
  text-align: center;
  margin-bottom: 20px;
}

.player-turn-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
  50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(236, 72, 153, 0.6); }
}

/* Slot Machine Frame */
.slot-machine {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 4px solid #ffd700;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.slot-machine.winner {
  animation: winner-shake 0.5s ease-in-out;
  box-shadow: 
    0 0 50px rgba(255, 215, 0, 0.6),
    0 0 80px rgba(236, 72, 153, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes winner-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.slot-frame {
  background: linear-gradient(180deg, #0d0d0d, #1a1a1a, #0d0d0d);
  border-radius: 12px;
  padding: 15px;
  border: 2px solid #333;
}

.slots-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Individual Slot */
.slot {
  width: 70px;
  height: 90px;
  background: linear-gradient(180deg, #2d2d2d, #1a1a1a);
  border: 3px solid #444;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.slot-emoji {
  font-size: 2rem;
}

.slot-letter {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Spinning slot animation */
.spinning-slot .slot-inner {
  animation: slot-spin 0.1s linear infinite;
}

@keyframes slot-spin {
  0% { transform: translateY(-20px); opacity: 0.5; }
  50% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0.5; }
}

/* Locked slot */
.slot.locked {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.slot.locked .slot-inner {
  animation: none;
}

/* Winner slot */
.slot.winner-slot {
  background: var(--bg-color, #4CAF50);
  border-color: #fff;
  box-shadow: 
    0 0 20px var(--glow-color, #69F0AE),
    0 0 40px var(--glow-color, #69F0AE);
  animation: winner-pulse 0.5s ease-in-out infinite;
}

@keyframes winner-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Result Banner */
.result-banner {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--result-color), #1a1a2e);
  padding: 12px 30px;
  border-radius: 30px;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: result-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 0 30px var(--result-glow),
    0 5px 20px rgba(0,0,0,0.5);
}

@keyframes result-pop {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.result-emoji {
  font-size: 1.8rem;
}

.result-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Spin Button */
.spin-button-container {
  margin-top: 80px;
}

.btn-spin {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 15px 50px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: 
    0 5px 20px rgba(236, 72, 153, 0.5),
    0 0 40px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-spin::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.btn-spin:hover:not(.disabled)::before {
  left: 100%;
}

.btn-spin:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 30px rgba(236, 72, 153, 0.6),
    0 0 60px rgba(139, 92, 246, 0.4);
}

.btn-spin:active:not(.disabled) {
  transform: translateY(0);
}

.btn-spin.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: button-pulse 1s ease-in-out infinite;
}

@keyframes button-pulse {
  0%, 100% { box-shadow: 0 5px 20px rgba(236, 72, 153, 0.5); }
  50% { box-shadow: 0 5px 30px rgba(236, 72, 153, 0.8); }
}

/* Confetti */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--color);
  left: var(--x);
  top: -20px;
  animation: confetti-fall 2s ease-out var(--delay) forwards;
  border-radius: 2px;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

/* Mobile adjustments */
@media (max-width: 400px) {
  .slot {
    width: 60px;
    height: 75px;
  }
  
  .slot-emoji {
    font-size: 1.5rem;
  }
  
  .slot-letter {
    font-size: 1rem;
  }
  
  .btn-spin {
    font-size: 1.2rem;
    padding: 12px 35px;
  }
  
  .player-turn-name {
    font-size: 1.4rem;
  }
}
/* Golden ratio spacing: 8, 13, 21, 34, 55, 89, 144 */
.player-bar {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 13px; /* φ × 8 */
  padding: 13px 21px 21px 21px; /* φ ratios */
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.8) 100%);
  border-radius: 21px 21px 0 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 89px; /* φ⁵ - consistent height */
}

.player-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.player-bar-item:hover {
  transform: translateY(-3px);
}

/* Avatar wrapper */
.player-avatar-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #1a1a2e;
}

.player-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Designated driver badge */
.dd-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  font-size: 14px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.player-avatar-wrapper.active-avatar .dd-badge {
  width: 22px;
  height: 22px;
  font-size: 16px;
}

/* Active player - 2x size! */
.player-avatar-wrapper.active-avatar {
  width: 80px;
  height: 80px;
  border: 3px solid #ffd700;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(236, 72, 153, 0.4);
}

.active-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 215, 0, 0.5);
  animation: glow-pulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    border-color: rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
    border-color: rgba(236, 72, 153, 0.8);
  }
}

/* Player name */
.player-bar-name {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.player-bar-name.active-name {
  font-size: 0.9rem;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  max-width: 100px;
}

/* Turn indicator */
.turn-indicator {
  font-size: 0.9rem;
  animation: bounce-up 0.8s ease-in-out infinite;
  margin-top: -2px;
}

@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Active player item gets more space */
.player-bar-item.active {
  z-index: 10;
  margin: 0 8px;
}

/* Responsive adjustments */
@media (max-width: 400px) {
  .player-bar {
    gap: 8px;
    padding: 10px 5px;
  }
  
  .player-avatar-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .player-avatar-wrapper.active-avatar {
    width: 65px;
    height: 65px;
  }
  
  .player-bar-name {
    font-size: 0.65rem;
    max-width: 45px;
  }
  
  .player-bar-name.active-name {
    font-size: 0.8rem;
    max-width: 70px;
  }
}

/* When there are many players, shrink a bit */
.player-bar:has(.player-bar-item:nth-child(6)) .player-avatar-wrapper {
  width: 40px;
  height: 40px;
}

.player-bar:has(.player-bar-item:nth-child(6)) .player-avatar-wrapper.active-avatar {
  width: 60px;
  height: 60px;
}
.results-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.results-title {
  font-size: 2.5rem;
  font-weight: 900;
}

.results-subtitle {
  color: var(--white-60);
  font-size: 1.1rem;
}

.results-stats {
  display: flex;
  gap: 40px;
  margin: 30px 0;
}

.result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pink);
}

.result-label {
  font-size: 0.85rem;
  color: var(--white-60);
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.legal-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #1a0f20;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-header h1 {
  font-size: 1.25rem;
  margin: 0;
}

.legal-header .btn-back {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
}

.legal-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--white-80);
  line-height: 1.7;
}

.last-updated {
  color: var(--white-60);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--white);
  margin: 1.5rem 0 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--white);
}

.highlight-section {
  background: rgba(233, 30, 99, 0.1);
  border: 1px solid rgba(233, 30, 99, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.highlight-section h2 {
  border-bottom: none;
  padding-bottom: 0;
  color: #f48fb1;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--white-60);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .legal-content {
    padding: 1rem;
  }
  
  .legal-content h2 {
    font-size: 1.1rem;
  }
}
.profile-setup-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(135deg, #6b2d8b 0%, #8b3da8 50%, #9b4db8 100%);
}

.setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.btn-back {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
}

.step-dot.active {
  background: white;
}

/* Step content */
.profile-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-step h2 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
}

.step-desc {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
}

/* Form elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: white;
  color: #333;
}

.form-group select {
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
}

.height-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.height-inputs input {
  width: 60px;
  text-align: center;
}

.height-inputs.metric input {
  width: 80px;
}

.height-inputs span {
  color: white;
  font-size: 1.2rem;
}

/* Button groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.option-btn.selected {
  background: white;
  color: #6b2d8b;
  border-color: white;
}

/* Unit toggle */
.unit-toggle {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.unit-toggle.metric {
  background: #4CAF50;
}

.unit-toggle.imperial {
  background: #2196F3;
}

/* Drink preferences */
.drink-pref-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drink-label {
  color: white;
  font-weight: 600;
  min-width: 120px;
}

.drink-rating {
  display: flex;
  gap: 0.5rem;
}

.drink-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drink-btn.never {
  font-size: 1rem;
  color: white;
}

.drink-btn.selected {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.drink-btn:not(.selected) {
  opacity: 0.5;
}

/* Toggle group */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toggle-btn {
  flex: 1 1 30%;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.toggle-btn.selected {
  background: white;
  color: #6b2d8b;
}

/* Slider */
.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-container input[type="range"] {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.slider-value {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

/* Level selector */
.level-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

.profile-setup-screen .level-selector {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.level-btn {
  flex: 1;
  padding: 8px 4px;
  background: linear-gradient(
    to right,
    hsl(calc(120 - var(--level-index) * 24), 70%, 45%),
    hsl(calc(120 - var(--level-index) * 24 - 12), 70%, 45%)
  );
  color: white;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  text-transform: capitalize;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.level-btn .level-marker {
  width: 12px;
  height: 12px;
  background: white;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0;
  transition: opacity 0.2s;
}

.level-btn.selected .level-marker {
  opacity: 1;
}

.level-btn.selected {
  border-color: white;
  transform: scaleY(1.1);
}

/* Footer */
.setup-footer {
  padding: 1rem 0;
}

.btn-next,
.btn-finish {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.btn-finish {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
}

/* Responsive */
@media (max-width: 400px) {
  .drink-label {
    min-width: 80px;
    font-size: 0.85rem;
  }
  
  .drink-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .level-btn {
    font-size: 0.6rem;
    padding: 6px 2px;
  }
}
/* Golden Ratio: φ = 1.618 */
/* Spacing scale: 8, 13, 21, 34, 55, 89 (Fibonacci approximation) */

.affiliate-dashboard {
  padding: 1.3rem;
  max-width: 500px;
  margin: 0 auto;
}

.affiliate-dashboard.loading,
.affiliate-dashboard.error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  color: var(--white-60);
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-retry {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 21px rgba(255, 0, 128, 0.3);
}

/* Header - Balance Display */
.affiliate-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.1rem; /* 34px ≈ golden spacing */
}

.balance-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.35), rgba(255, 0, 128, 0.25));
  padding: 13px 21px;
  border-radius: 21px;
  border: 1px solid rgba(255, 0, 128, 0.25);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.2);
  width: min(100%, 339px); /* 21 * φ^3 ≈ 339 */
}

.balance-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
}

.balance-icon {
  font-size: 1.8rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.balance-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 8px;
  text-align: center;
}

.balance-value {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.balance-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 21px;
  padding-top: 8px;
  font-size: 0.85rem;
}

.balance-breakdown .cashable {
  color: #4caf50;
}

.balance-breakdown .promo {
  color: #ff9800;
}

.promo-note {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ff9800;
  line-height: 1.4;
}

/* Tabs - Elegant pill navigation */
.affiliate-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.1rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.affiliate-tabs .tab-btn {
  flex: 1;
  padding: 0.8rem 0.5rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.affiliate-tabs .tab-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.affiliate-tabs .tab-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 4px 21px rgba(255, 0, 128, 0.3);
}

/* Stats Tab - Referral Code Section */
.referral-code-section {
  text-align: center;
  margin-bottom: 2.1rem;
}

.referral-code-section h3 {
  margin-bottom: 1.3rem;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 1.6rem 2rem; /* Golden vertical proportion */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 1.3rem;
  box-shadow: 
    0 4px 21px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.code-box.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.code-box.clickable:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 0, 128, 0.4);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 34px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 0, 128, 0.2);
}

.code-box .code {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.3em;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.code-box .copy-icon {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.code-box.clickable:hover .copy-icon {
  color: var(--pink);
  transform: scale(1.1);
}

.copied-toast {
  color: #4caf50;
  font-size: 0.85rem;
  margin: -0.5rem 0 1rem 0;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}

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

.code-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.btn-share, .btn-copy {
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-share {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 4px 13px rgba(255, 0, 128, 0.25);
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 21px rgba(255, 0, 128, 0.35);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hint {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Stats Grid - Golden proportions */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 2.1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.3rem 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.stat-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  transform: translateY(-2px);
}

.stat-card.highlight {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(76, 175, 80, 0.18), rgba(76, 175, 80, 0.08));
  border-color: rgba(76, 175, 80, 0.25);
  padding: 1.6rem 1rem;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Commission Summary - Elegant cards */
.commission-summary {
  margin-bottom: 2.1rem;
}

.commission-summary h4 {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.commission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.commission-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.25s ease;
}

.commission-item:hover {
  transform: translateY(-2px);
}

.commission-item.pending {
  background: linear-gradient(145deg, rgba(255, 193, 7, 0.18), rgba(255, 193, 7, 0.08));
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.commission-item.available {
  background: linear-gradient(145deg, rgba(76, 175, 80, 0.18), rgba(76, 175, 80, 0.08));
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.commission-item.bonus {
  background: linear-gradient(145deg, rgba(33, 150, 243, 0.18), rgba(33, 150, 243, 0.08));
  border: 1px solid rgba(33, 150, 243, 0.25);
}

.commission-item .amount {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1;
}

.commission-item .label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.4rem;
  line-height: 1.3;
}

/* Commission List */
.commission-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1rem;
}

.commission-list h4 {
  margin-bottom: 0.75rem;
  color: var(--white-80);
  font-size: 0.9rem;
}

.commission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.commission-row:last-child {
  border-bottom: none;
}

.commission-info {
  display: flex;
  flex-direction: column;
}

.commission-info .amount {
  color: var(--white);
  font-size: 0.9rem;
}

.commission-info .date {
  color: var(--white-60);
  font-size: 0.75rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-badge.available {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-badge.paid {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
}

/* Send Tab */
.send-tab h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.send-hint {
  text-align: center;
  color: var(--white-60);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.transfer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transfer-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transfer-form label {
  font-size: 0.9rem;
  color: var(--white-80);
}

.transfer-form input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
}

.transfer-form input:focus {
  outline: none;
  border-color: var(--pink);
}

.search-results {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.user-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.user-result:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-result:last-child {
  border-bottom: none;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.3), rgba(255, 0, 128, 0.3));
  font-size: 1rem;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.selected-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  color: var(--white);
}

.btn-clear {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 1.25rem;
  cursor: pointer;
}

.balance-hint, .code-hint {
  font-size: 0.8rem;
  color: var(--white-60);
}

.transfer-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
}

.transfer-message.success {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.transfer-message.error {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.btn-transfer {
  padding: 1rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-transfer:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-transfer:not(:disabled):hover {
  transform: scale(1.02);
}

/* Transfers Tab */
.transfers-tab h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.no-transfers {
  text-align: center;
  color: var(--white-60);
  padding: 2rem;
}

.transfer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transfer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.transfer-icon {
  font-size: 1.25rem;
}

.transfer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.transfer-user {
  color: var(--white);
  font-size: 0.9rem;
}

.transfer-date {
  color: var(--white-60);
  font-size: 0.75rem;
}

.transfer-amount {
  font-weight: bold;
  font-size: 1rem;
}

.transfer-amount.sent {
  color: #f44336;
}

.transfer-amount.received {
  color: #4caf50;
}

/* Cashout Section */
.cashout-section {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cashout-section h4 {
  margin: 0 0 0.5rem 0;
  color: #4caf50;
}

.cashout-section p {
  margin: 0;
  color: var(--white-60);
  font-size: 0.9rem;
}

.cashout-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.cashout-info .rate {
  color: #4caf50;
  font-weight: bold;
  margin-top: 0.5rem;
}

.cashout-info .min {
  color: var(--white-60);
  font-size: 0.85rem;
}

.divider {
  text-align: center;
  color: var(--white-40);
  margin: 1.5rem 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.conversion-preview {
  display: block;
  color: #4caf50;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

/* Payouts Tab */
.payouts-tab h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.no-payouts {
  text-align: center;
  color: var(--white-60);
  padding: 2rem;
}

.payout-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.payout-row.pending {
  border-left-color: #ffc107;
}

.payout-row.completed {
  border-left-color: #4caf50;
}

.payout-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.payout-amount {
  font-size: 1.25rem;
  font-weight: bold;
  color: #4caf50;
}

.payout-credits {
  color: var(--white-60);
  font-size: 0.85rem;
}

.payout-tag {
  color: var(--white-80);
  font-size: 0.9rem;
}

.payout-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.payout-status {
  font-size: 0.85rem;
  font-weight: 500;
}

.payout-status.pending { color: #ffc107; }
.payout-status.completed { color: #4caf50; }

.payout-date {
  font-size: 0.75rem;
  color: var(--white-60);
}

/* Settings Tab */
.settings-tab h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-save {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.payout-info-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1rem;
}

.payout-info-box h4 {
  margin: 0 0 0.75rem 0;
  color: var(--white);
  font-size: 1rem;
}

.payout-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payout-info-box li {
  padding: 0.5rem 0;
  color: var(--white-80);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payout-info-box li:last-child {
  border-bottom: none;
}

/* Referral Section - Always visible */
.referral-section {
  margin-bottom: 0.5rem;
}

/* Affiliate Section Divider */
.affiliate-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.1rem 0;
  padding: 0 0.5rem;
}

.affiliate-section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 0, 128, 0.4), 
    rgba(128, 0, 255, 0.4),
    transparent
  );
}

.affiliate-section-divider .divider-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Enrollment Prompt */
.enrollment-prompt {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.enrollment-prompt h3 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: 1.25rem;
}

.enrollment-prompt > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.program-highlights {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
}

.highlight-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #4caf50;
}

.highlight-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.program-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.terms-agreement {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--pink);
  text-decoration: underline;
}

.btn-enroll {
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 21px rgba(76, 175, 80, 0.3);
}

.btn-enroll:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-enroll:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(76, 175, 80, 0.4);
}

.terms-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* QR Code Section */
.qr-section {
  margin-top: 1.5rem;
  text-align: center;
}

.qr-section h4 {
  font-size: 1rem;
  color: var(--white-80);
  margin-bottom: 0.75rem;
}

.referral-qr {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  margin: 0 auto;
  display: block;
}

.qr-hint {
  font-size: 0.85rem;
  color: var(--white-60);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Animation */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
  padding-bottom: 2rem;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.profile-header h1 {
  font-size: 1.25rem;
  margin: 0;
}

.profile-header .btn-back {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
}

.header-spacer {
  width: 60px;
}

.profile-tabs {
  display: flex;
  gap: 0;
  padding: 0 1rem;
  margin-top: 1rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-60);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:first-child {
  border-radius: 12px 0 0 12px;
}

.tab-btn:last-child {
  border-radius: 0 12px 12px 0;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  border-color: transparent;
}

.profile-content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Settings Tab */
.settings-tab {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--white-80);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--white-80);
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink);
}

.form-group select option {
  background: #2a1a2f;
  color: var(--white);
  padding: 0.5rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
  min-width: 0;
}

.height-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.height-inputs input {
  width: 60px;
  text-align: center;
}

.height-inputs span {
  color: var(--white-60);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.button-group.compact {
  gap: 0.25rem;
}

.option-btn {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white-60);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn.selected {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-color: transparent;
  color: var(--white);
}

.unit-toggle {
  padding: 0.75rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
}

.unit-toggle.metric {
  background: var(--pink);
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toggle-btn {
  flex: 1 1 30%;
  min-width: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white-60);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.selected {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-color: transparent;
  color: var(--white);
}

/* Drink preferences */
.drink-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 0.5rem;
}

.drink-label {
  font-size: 0.85rem;
  color: var(--white-80);
  white-space: nowrap;
}

.drink-rating {
  display: flex;
  gap: 4px;
}

.drink-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-60);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drink-btn.selected {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-color: transparent;
  color: var(--white);
}

.btn-save {
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Avatars Tab */
.avatars-tab {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatars-info {
  text-align: center;
  color: var(--white-60);
  margin-bottom: 0.5rem;
}

.no-avatars {
  text-align: center;
  padding: 3rem 1rem;
}

.no-avatars p {
  color: var(--white-60);
  margin-bottom: 1.5rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.avatar-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.avatar-card.selected {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(156, 39, 176, 0.15));
  border-color: var(--pink);
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
}

.avatar-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

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

.avatar-name {
  font-size: 0.82rem;
  color: var(--white);
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-card .selected-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-more-avatars {
  margin-top: 1.5rem;
  width: 100%;
}

/* Messages */
.error-message {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
}

.success-message {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--white-60);
}

/* Referral Code Input Section */
.referral-input-section {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(255, 140, 0, 0.15));
  border: 1px solid rgba(255, 0, 128, 0.3);
}

.referral-input-section.claimed {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
}

.referral-input-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.referral-input-section.claimed h3 {
  background: none;
  -webkit-text-fill-color: #4CAF50;
  color: #4CAF50;
}

.referral-hint {
  font-size: 0.9rem;
  color: var(--white-80);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.referral-hint strong {
  color: var(--orange);
}

.referral-fine-print {
  font-size: 0.75rem;
  color: var(--white-40);
  margin-top: 0.75rem;
  text-align: center;
}

.referral-input-row {
  display: flex;
  gap: 0.5rem;
}

.referral-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9rem;
}

.referral-input-row input:focus {
  outline: none;
  border-color: var(--pink);
}

.btn-apply {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.referral-message {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.referral-message.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.referral-message.error {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
}

.already-referred {
  background: rgba(76, 175, 80, 0.1);
  padding: 1rem;
  border-radius: 8px;
  color: #4CAF50;
}

.already-referred p {
  margin: 0;
}

/* Referral Receipt (claimed state) */
.referral-receipt {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-label {
  color: var(--white-60);
  font-size: 0.85rem;
}

.receipt-code {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.receipt-value {
  color: #4CAF50;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Referral expired state */
.referral-input-section.expired {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.not-referred {
  color: var(--white-40);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Countdown timer */
.referral-countdown {
  font-size: 0.85rem;
  color: var(--orange);
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 500;
}

@media (max-width: 420px) {
  .profile-content {
    padding: 0 0.75rem;
  }

  .avatars-info {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .avatar-grid {
    gap: 0.6rem;
  }

  .avatar-card {
    padding: 0.45rem;
    border-radius: 10px;
  }

  .avatar-name {
    font-size: 0.76rem;
  }
}

/* ==================== Avatar Action Modal ==================== */
.avatar-action-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.avatar-action-modal {
  background: var(--bg-card, #1a1a2e);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 340px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.avatar-action-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.avatar-action-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary, #fff);
}

.avatar-action-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent, #7c3aed);
}

.avatar-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.avatar-action-buttons button {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn-danger {
  background: #dc2626 !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  background: #b91c1c !important;
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.avatar-action-hint {
  font-size: 0.78rem;
  color: var(--white-60, rgba(255, 255, 255, 0.5));
  text-align: center;
  margin-top: 0.5rem;
}

.avatar-action-send {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.avatar-action-send p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

.avatar-action-send .input-field {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.avatar-action-send-btns {
  display: flex;
  gap: 0.5rem;
}

.avatar-action-send-btns button {
  flex: 1;
  padding: 0.7rem;
  border-radius: 10px;
}

.avatar-action-delete {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.avatar-action-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--white-60, rgba(255, 255, 255, 0.5));
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.avatar-action-close:hover {
  color: #fff;
}

/* Avatar full-size view */
.avatar-action-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-fullsize {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
}
.my-ratings-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
}

.ratings-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ratings-header h1 {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
  color: white;
}

.ratings-count {
  color: var(--white-60);
  font-size: 0.9rem;
}

.btn-back {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* No ratings state */
.no-ratings {
  text-align: center;
  padding: 3rem 1rem;
  color: white;
}

.no-ratings p {
  margin: 0.5rem 0;
}

.no-ratings .hint {
  color: var(--white-60);
  font-size: 0.9rem;
}

/* Ratings list */
.ratings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
}

.rating-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.rating-card:not(.editing):hover {
  background: rgba(255, 255, 255, 0.12);
}

/* View mode */
.rating-view {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
}

.rating-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

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

.player-id {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.rating-date {
  color: var(--white-50);
  font-size: 0.8rem;
}

.rating-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.85rem;
}

.rating-hearts, .rating-diamonds {
  letter-spacing: 1px;
}

.edit-hint {
  color: var(--white-40);
  font-size: 0.75rem;
}

/* Edit mode */
.rating-card.editing {
  background: rgba(255, 255, 255, 0.15);
}

.rating-edit-form {
  padding: 1rem;
}

.edit-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-field {
  margin-bottom: 1rem;
}

.edit-field label {
  display: block;
  color: var(--white-70);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.rating-buttons {
  display: flex;
  gap: 0.5rem;
}

.rate-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rate-btn.zero {
  color: var(--white-60);
}

.rate-btn.selected {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.rate-btn:not(.selected) {
  opacity: 0.5;
}

.edit-field select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
}

.edit-field select option {
  background: #2d1b36;
  color: white;
}

.edit-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-save {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Share & Earn Component */
.share-earn-container {
  padding: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.share-earn-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.share-earn-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffd700, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reward-amount {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.reward-amount strong {
  color: #ffd700;
  font-size: 1.4rem;
}

.progress-info {
  font-size: 0.9rem;
  color: var(--white-60);
}

.progress-info .remaining {
  margin-left: 0.5rem;
  color: #4caf50;
}

/* Platform Selection */
.platform-selection h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--white-80);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--pink);
  transform: translateY(-2px);
}

.platform-icon {
  font-size: 2rem;
}

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

/* Share Step */
.share-step {
  padding: 0.5rem;
}

.share-step h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.btn-back-small {
  background: none;
  border: none;
  color: var(--white-60);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0;
}

.btn-back-small:hover {
  color: var(--white);
}

.referral-link-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.link-label {
  display: block;
  font-size: 0.85rem;
  color: var(--white-60);
  margin-bottom: 0.5rem;
}

.link-row {
  display: flex;
  gap: 0.5rem;
}

.link-input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
}

.btn-copy {
  padding: 0.75rem 1rem;
  background: var(--purple);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: var(--pink);
}

.share-preview {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.preview-label {
  font-size: 0.85rem;
  color: var(--white-60);
  margin-bottom: 0.5rem;
}

.preview-text {
  font-size: 0.9rem;
  color: var(--white-80);
  white-space: pre-wrap;
  line-height: 1.5;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-share {
  padding: 1rem;
  font-size: 1.1rem;
}

/* Verify Step */
.verify-step {
  padding: 0.5rem;
}

.verify-step h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.verify-step > p {
  text-align: center;
  color: var(--white-60);
  margin-bottom: 1rem;
}

.verify-input {
  margin-bottom: 1rem;
}

.url-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  font-size: 1rem;
}

.url-input:focus {
  border-color: var(--pink);
  outline: none;
}

.btn-verify {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.verify-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--white-60);
  margin-top: 1rem;
}

/* Success & Error States */
.share-error {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.share-success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  animation: successPop 0.3s ease;
}

.share-success button {
  margin-top: 1rem;
}

@keyframes successPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Maxed Out State */
.share-earn-maxed,
.share-earn-cooldown {
  text-align: center;
  padding: 2rem 1rem;
}

.maxed-icon,
.cooldown-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.share-earn-maxed h3,
.share-earn-cooldown h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.share-earn-maxed p,
.share-earn-cooldown p {
  color: var(--white-60);
  margin-bottom: 0.5rem;
}

.earned-so-far strong {
  color: #ffd700;
}

.share-earn-loading {
  text-align: center;
  padding: 2rem;
  color: var(--white-60);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease;
}

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

/* Responsive */
@media (max-width: 400px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .platform-btn {
    padding: 0.75rem;
  }
  
  .platform-icon {
    font-size: 1.5rem;
  }
}
.store-screen {
  padding: 1rem;
  min-height: 100vh;
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.store-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.wallet-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.credit-icon {
  font-size: 1.25rem;
}

.credit-amount {
  font-weight: bold;
  color: #FFD700;
}

/* Error/Success Banners */
.error-banner, .success-banner {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

.error-banner {
  background: rgba(255, 82, 82, 0.2);
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ff5252;
}

.success-banner {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

/* Store Menu */
.store-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-category {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.3), rgba(255, 0, 128, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  color: var(--white);
}

.store-category:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.store-category.owned {
  opacity: 0.6;
  cursor: default;
}

.store-category.owned:hover {
  transform: none;
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-name {
  font-size: 1.25rem;
  font-weight: bold;
}

.category-desc, .category-count {
  color: var(--white-60);
  font-size: 0.9rem;
}

.category-arrow {
  font-size: 1.5rem;
  color: var(--white-60);
}

/* Credits View */
.credits-view h2, .perks-view h2, .avatars-view h2, .ads-view h2 {
  text-align: center;
  margin: 0 0 0.5rem 0;
}

.rate-info {
  text-align: center;
  color: var(--white-60);
  margin-bottom: 1.5rem;
}

.credit-packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.credit-package {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--white);
}

.credit-package:hover:not(:disabled) {
  transform: scale(1.02);
  border-color: #FFD700;
}

.credit-package:disabled {
  opacity: 0.6;
  cursor: wait;
}

.package-credits {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.credits-amount {
  font-size: 2rem;
  font-weight: bold;
  color: #FFD700;
}

.credits-label {
  font-size: 0.75rem;
  color: var(--white-60);
  text-transform: uppercase;
}

.package-bonus {
  background: rgba(76, 175, 80, 0.3);
  color: #4CAF50;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.package-price {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.package-label {
  font-size: 0.8rem;
  color: var(--pink);
  margin-top: 0.25rem;
}

/* Perks View */
.perks-info {
  text-align: center;
  color: var(--white-60);
  margin-bottom: 1.5rem;
}

.perk-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.perk-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(128, 0, 255, 0.3));
  border-radius: 10px;
}

.perk-badge-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.perk-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.perk-name {
  font-weight: bold;
}

.perk-desc {
  font-size: 0.85rem;
  color: var(--white-60);
}

.perk-owned {
  font-size: 0.8rem;
  color: var(--pink);
}

.btn-buy-perk {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy-perk:hover:not(:disabled) {
  transform: scale(1.05);
}

.btn-buy-perk:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Avatars View */
/* Avatars View */
.avatars-info {
  text-align: center;
  color: var(--white-60);
  margin-bottom: 0.5rem;
}

.avatars-price-info {
  text-align: center;
  color: var(--pink);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 600px) {
  .avatar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.2s;
}

.avatar-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.avatar-card.owned {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border-color: rgba(76, 175, 80, 0.3);
}

.avatar-card.selected {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(156, 39, 176, 0.15));
  border-color: rgba(233, 30, 99, 0.5);
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

.selected-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.avatar-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
}

.avatar-video,
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-card.featured {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.avatar-card {
  position: relative;
}

.avatar-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  margin-bottom: 0.5rem;
}

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

.avatar-category {
  font-size: 0.75rem;
  color: var(--white-60);
}

.avatar-owned-badge {
  color: #4CAF50;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-buy-avatar {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-buy-avatar:hover:not(:disabled) {
  transform: scale(1.05);
}

.btn-buy-avatar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-select-avatar {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-select-avatar:hover:not(:disabled) {
  transform: scale(1.05);
}

.btn-select-avatar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.avatar-active-badge {
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 500;
}

.avatars-footer {
  text-align: center;
  color: var(--white-60);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* Rotation Timers */
.rotation-timers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.timer-label {
  font-size: 0.7rem;
  color: var(--white-60);
  margin-bottom: 0.25rem;
}

.timer-value {
  font-size: 1.1rem;
  font-weight: bold;
  font-family: monospace;
  color: var(--pink);
}

.coming-soon {
  text-align: center;
  font-size: 2rem;
  margin-top: 3rem;
}

.coming-soon-desc {
  text-align: center;
  color: var(--white-60);
}

/* Ads View */
.ads-view {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ads-offer {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-top: 1rem;
}

.ads-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.ads-price {
  font-size: 2rem;
  font-weight: bold;
  color: #FFD700;
  margin: 1rem 0;
}

.btn-remove-ads {
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Levels View */
.levels-view h2 {
  text-align: center;
  margin: 0 0 0.5rem 0;
}

.levels-info {
  text-align: center;
  color: var(--white-60);
  margin-bottom: 0.5rem;
}

.levels-info-small {
  text-align: center;
  color: var(--white-40);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.level-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s;
}

.level-item.unlocked {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border-color: rgba(76, 175, 80, 0.3);
}

.level-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.3), rgba(128, 0, 255, 0.3));
  border-radius: 10px;
}

.level-item.unlocked .level-icon {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.2));
}

.level-item .level-badge-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.level-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.level-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.level-desc {
  font-size: 0.8rem;
  color: var(--white-60);
}

.level-owned {
  font-size: 0.85rem;
  color: #4CAF50;
  font-weight: 500;
}

.btn-unlock-level {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-unlock-level:hover:not(:disabled) {
  transform: scale(1.05);
}

.btn-unlock-level:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gift-price {
  font-size: 0.85rem;
  color: var(--pink);
  white-space: nowrap;
}

.levels-footer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  text-align: center;
}

.levels-footer p {
  margin: 0;
  color: var(--white-80);
  font-size: 0.9rem;
}

/* Share & Earn Category - Flashy styling */
.store-category.share-earn-category {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 107, 0.2));
  border: 2px solid rgba(255, 215, 0, 0.5);
  animation: shareGlow 2s ease-in-out infinite;
}

.store-category.share-earn-category:hover {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.store-category.share-earn-category .category-name {
  color: #ffd700;
}

.store-category.share-earn-category .category-count {
  color: #ff6b6b;
  font-weight: 600;
}

@keyframes shareGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
}

/* Share & Earn View */
.share-earn-view {
  padding: 1rem 0;
}

/* Avatar Store Sections */
.section-title {
  font-size: 1.2rem;
  color: #fff;
  margin: 1.5rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .price-tag {
  font-size: 0.85rem;
  background: rgba(255, 215, 0, 0.2);
  padding: 4px 10px;
  border-radius: 15px;
  color: #ffd700;
}

.section-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: -0.3rem 0 0.8rem 0;
}

.avatar-card.animated {
  border: 2px solid #9333ea;
  background: linear-gradient(145deg, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.1));
}

.avatar-card.last-chance {
  border: 2px solid #f59e0b;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.1));
}

.last-chance-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
  z-index: 2;
}

.btn-buy-avatar.animated-price {
  background: linear-gradient(135deg, #9333ea, #ec4899);
}

.pool-info .timer-value {
  color: #22c55e;
}

.empty-store {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.empty-store p:first-child {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}


/* ==================== Dice Reroll Button ==================== */
.btn-reroll-dice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  margin: 0.75rem auto 1rem;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.15));
  color: #e0d0ff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reroll-dice:hover:not(:disabled) {
  border-color: rgba(168, 85, 247, 0.8);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(168, 85, 247, 0.3));
  transform: scale(1.02);
}

.btn-reroll-dice:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-reroll-dice.spinning .dice-icon {
  animation: dice-spin 0.6s ease-in-out infinite;
}

@keyframes dice-spin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.2); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.dice-icon {
  font-size: 1.4rem;
  display: inline-block;
}

.dice-text {
  font-size: 0.9rem;
}
/* Floating Action Button - pinned bottom-left, subtle unless active */
.report-issue-fab {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(45, 27, 54, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.2;
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.report-issue-fab.is-active,
.report-issue-fab:focus-visible,
.report-issue-fab:hover {
  opacity: 0.95;
  background: rgba(255, 0, 128, 0.42);
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Modal Overlay */
.report-issue-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

/* Modal */
.report-issue-modal {
  background: var(--bg-mid, #2d1b36);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.report-issue-modal h2 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: var(--white, #fff);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--white-60, rgba(255,255,255,0.6));
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--white, #fff);
}

.help-text {
  color: var(--white-60, rgba(255,255,255,0.6));
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.report-issue-modal textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white, #fff);
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
}

.report-issue-modal textarea:focus {
  outline: none;
  border-color: var(--pink, #ff0080);
}

.report-issue-modal textarea::placeholder {
  color: var(--white-40, rgba(255,255,255,0.4));
}

.context-note {
  color: var(--white-40, rgba(255,255,255,0.4));
  font-size: 0.75rem;
  margin: 0.5rem 0 1rem 0;
}

.submit-btn {
  width: 100%;
  padding: 12px;
}

.error-text {
  color: #ef5350;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-message p {
  margin: 0.5rem 0;
  color: var(--white, #fff);
}

.success-message p:first-child {
  font-size: 1.25rem;
}

/* When video is active, hide to avoid overlap with video UI */
body.video-active .report-issue-fab {
  display: none;
}

.admin-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a0a1a 0%, #2d1f3d 100%);
  padding: 1rem;
  padding-bottom: 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-header .back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.admin-header h1 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.stat:not(:last-of-type) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--white-60);
  text-transform: uppercase;
}

.refresh-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.refresh-btn:disabled {
  opacity: 0.5;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--white-60);
}

/* Payouts List */
.payouts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payout-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

.payout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payout-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--white-60);
}

.payout-date {
  font-size: 0.75rem;
  color: var(--white-40);
}

.payout-details {
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
}

.detail-row .label {
  color: var(--white-60);
  font-size: 0.85rem;
}

.detail-row .value {
  color: var(--white);
  font-weight: 500;
}

.detail-row.highlight {
  background: rgba(255, 140, 0, 0.1);
  margin: 0.25rem -0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
}

.detail-row .cashtag {
  color: #00D632;
  font-weight: 700;
  font-size: 1.1rem;
}

.detail-row .amount {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Actions */
.payout-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-cashapp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #00D632;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-sent {
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-sent:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Messages */
.error-message {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  text-align: center;
}

.success-message {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--white-60);
}

/* Footer */
.admin-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-footer p {
  font-size: 0.75rem;
  color: var(--white-40);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #1a0a1f;
  --bg-mid: #2d1b36;
  --pink: #ff0080;
  --orange: #ff8c00;
  --white: #ffffff;
  --white-40: rgba(255, 255, 255, 0.4);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-80: rgba(255, 255, 255, 0.8);
  --danger: #ff6b6b;
  --success: #4caf50;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

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

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-top: env(safe-area-inset-top, 20px);
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--white);
  /* Fallback for WebViews (Instagram, etc.) that fail on gradients */
  background-color: #ff0080;
  background: linear-gradient(135deg, #ff0080, #ff8c00);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-80);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: background 0.2s;
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.15);
}

.logo {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange), var(--pink));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

/* Global select dropdown styling */
select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select:focus {
  outline: none;
  border-color: var(--pink);
}

select option {
  background: #2a1a2f;
  color: var(--white);
  padding: 12px;
}

select option:hover,
select option:checked {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
}
