/**
 * CUSTOMER UI CSS
 * Landscape orientation with 50/50 split layout
 * Left: Sign-up/Login/Purchase Recording
 * Right: Promotional Media Display
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1E3A5F 0%, #0F2744 100%);
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* Kiosk: no vertical scrolling */
}

/* Branded Footer */
.powered-by-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 2vh 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5vh;
  z-index: 5;
}

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

.footer-logo {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
  font-style: italic;
}

/* Force landscape orientation */
@media (max-aspect-ratio: 1/1) {
  body {
    transform: rotate(90deg);
    transform-origin: center;
  }
}

.full-height {
  height: 100vh;
  width: 100vw;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw; /* viewport-relative spacing */
  height: 100%;
}

.container-split {
  display: flex;
  height: 100%;
  background: white;
}

.left-section,
.right-section {
  display: flex;
  flex-direction: column;
  padding: 3vh 3vw; /* viewport-relative spacing */
  overflow: hidden; /* Kiosk containment */
}

.left-section {
  flex: 1; /* 1/3 of space */
  background: #f8f9fa;
  border-right: 2px solid #e0e0e0;
}

.right-section {
  flex: 2; /* 2/3 of space for ads */
  background: white;
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  gap: 0;
}

/* Header Styles */
.header {
  text-align: center;
  color: white;
  margin-bottom: 4vh;
}

.header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
  font-size: 1.2em;
  opacity: 0.9;
}

.header-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

.header-small h2 {
  color: #3B82F6;
  font-size: 1.5em;
}

/* Form Styles */
.form-section {
  background: white;
  padding: 3vh 2vw;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 38vw; /* fit two forms side-by-side on tablet */
}

.form-section h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.8em;
}

.subtitle {
  color: #666;
  margin-bottom: 2vh;
  font-size: 0.95em;
}

.form-group {
  margin-bottom: 1.8vh;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='tel'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.1);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group.checkbox input[type='checkbox'] {
  margin-top: 5px;
  cursor: pointer;
}

.form-group.checkbox label {
  margin: 0;
  font-size: 0.9em;
}

.link {
  color: #3B82F6;
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  text-decoration: underline;
}

/* Button Styles */
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  color: white;
  width: 100%;
  margin-top: 2vh;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  width: 100%;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-link {
  background: none;
  color: #3B82F6;
  padding: 10px 0;
  text-decoration: underline;
  width: 100%;
  text-align: center;
}

.btn-link:hover {
  color: #2563EB;
}

.btn-outline {
  background: transparent;
  color: #3B82F6;
  border: 2px solid #3B82F6;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background: #3B82F6;
  color: white;
}

.business-portal-link {
  margin-top: 2vh;
  padding-top: 2vh;
  border-top: 1px solid #eee;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9em;
}

.full-width {
  width: 100%;
}

.divider {
  text-align: center;
  color: #999;
  margin: 20px 0;
  font-size: 0.9em;
}

/* Content Sections */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.customer-info {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #4caf50;
}

.customer-info p {
  margin: 8px 0;
  color: #2e7d32;
}

.action-section,
.history-section {
  margin-bottom: 30px;
}

.action-section h3,
.history-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.list-item {
  background: white;
  padding: 12px;
  border-radius: 5px;
  border-left: 4px solid #3B82F6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.list-item-date {
  font-size: 0.85em;
  color: #999;
}

.empty {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

/* Advertisements Section */
.ads-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* Right Sidebar Ads (top section) - maximized for tablet */
.ads-right {
  flex: 1;
  justify-content: stretch;
  padding: 0;
  position: relative;
}

/* Full height mode - when banner is hidden, ads take entire right side */
.ads-right.ads-full-height {
  flex: 1;
  height: 100%;
  min-height: 100%;
}

/* Banner Ads (bottom section - horizontal) - larger for tablet */
/* NOTE: Currently hidden - uncomment in HTML when needed */
.ads-banner {
  height: 20vh;
  min-height: 120px;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 0.5vh 1vw;
}

.ads-carousel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 0;
  overflow: hidden; /* Kiosk: avoid scroll */
  position: relative;
}

.banner-carousel {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vw;
  overflow: hidden;
}

.banner-carousel .ad-card {
  height: 100%;
  max-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5vh 1vw;
}

.banner-carousel .ad-card-image {
  height: 18vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ad-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1vh 1vw;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.ad-card:hover {
  border-color: #3B82F6;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.ad-card-image {
  width: 100%;
  height: 100%;
  max-height: 55vh;
  border-radius: 6px;
  object-fit: contain;
  margin-bottom: 0;
}

.ad-card-video {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.ad-card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 1.05em;
}

.ad-card-description {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

.ad-card-action {
  display: inline-block;
  padding: 8px 16px;
  background: #3B82F6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: background 0.2s;
}

.ad-card-action:hover {
  background: #1D4ED8;
}

.ads-placeholder {
  color: #ccc;
  text-align: center;
  padding: 40px 20px;
  font-size: 1em;
}

/* ============ AD SLIDESHOW STYLES ============ */

.ad-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.ad-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0;
  overflow: hidden;
}

.ad-slide.active {
  opacity: 1;
  z-index: 1;
}

.ad-slide-image,
.ad-slide-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f7fa;
}

.ad-slide-placeholder {
  width: 100%;
  height: 70%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.2em;
}

.ad-slide-info {
  padding: 20px;
  background: white;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ad-slide-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.ad-slide-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 12px;
  text-align: center;
}

.ad-slide-action {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ad-slide-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Navigation Controls - Overlay on sides */
.ad-slide-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1vw;
  z-index: 10;
  pointer-events: none;
}

.ad-nav-btn {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3em;
  cursor: pointer;
  display: flex;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #333;
  font-weight: bold;
}

.ad-nav-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ad-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}

.ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.ad-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.ad-dot.active {
  background: white;
  width: 14px;
  height: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  color: #3B82F6;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.modal-content p {
  color: #666;
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Loading Spinner */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999;
}

.loading.hidden {
  display: none;
}

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error Message */
.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #f44336;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: block;
  animation: slideIn 0.3s ease-in;
}

.error-message.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
  }
  to {
    transform: translateX(0);
  }
}

/* View Visibility */
.view {
  display: none;
}

.view.active {
  display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .left-section,
  .right-section {
    padding: 20px;
  }

  .media-display {
    max-width: 100%;
    height: 300px;
    max-height: 100%;
  }
}

@media (max-width: 768px) {
  .container-split {
    flex-direction: column;
  }

  .left-section {
    border-right: none;
    border-bottom: 2px solid #e0e0e0;
    flex: 1;
  }

  .right-section {
    flex: 1;
  }

  .form-section {
    max-width: 100%;
  }

  .header h1 {
    font-size: 2em;
  }
}

/* Store Login Card */
.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  background: white;
  padding: 4vh 3vw;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
}

.login-card .header {
  color: #333;
  margin-bottom: 30px;
}

.login-card .header h1 {
  color: #3B82F6;
  font-size: 2.5em;
  text-shadow: none;
}

.login-card .header p {
  color: #666;
}

/* Header Bar (in customer action view) */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5vh 2vw;
  background: white;
  border-radius: 10px;
  margin-bottom: 2vh;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.store-info span:first-child {
  font-weight: 600;
  font-size: 1.2em;
  color: #333;
}

.store-id-badge {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

/* Remove tabs in kiosk layout */
.customer-tabs, .tab-btn { display: none !important; }

/* ===============================================
   UNIFIED PHONE ENTRY INTERFACE - MODERN DESIGN
   =============================================== */

.phone-entry-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 3vh 2vw;
}

.welcome-section {
  text-align: center;
  margin-bottom: 4vh;
  animation: fadeInDown 0.6s ease-out;
}

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

.icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 2vh;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  }
}

.phone-icon {
  width: 50px;
  height: 50px;
  color: white;
}

.main-title {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 1vh;
  font-weight: 700;
}

.main-subtitle {
  font-size: 1.2em;
  color: #7f8c8d;
  font-weight: 400;
}

.unified-form {
  width: 100%;
  margin-bottom: 3vh;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.phone-input-wrapper {
  position: relative;
  margin-bottom: 2vh;
}

.phone-input-wrapper input {
  width: 100%;
  padding: 20px 25px;
  font-size: 1.8em;
  text-align: center;
  border: 3px solid #e0e0e0;
  border-radius: 15px;
  background: white;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2c3e50;
}

.phone-input-wrapper input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.phone-input-wrapper input::placeholder {
  color: #bdc3c7;
  letter-spacing: 1px;
}

.btn-action {
  width: 100%;
  padding: 20px 30px;
  font-size: 1.3em;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-action::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: left 0.5s ease;
}

.btn-action:hover::before {
  left: 100%;
}

.btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-action:active {
  transform: translateY(-1px);
}

.btn-text {
  font-size: 1em;
}

.btn-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.btn-action:hover .btn-arrow {
  transform: translateX(5px);
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  width: 100%;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.info-card {
  background: white;
  padding: 2.5vh 1.5vw;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 2.5em;
  margin-bottom: 1vh;
}

.card-text {
  font-size: 1em;
  color: #555;
  font-weight: 500;
}

/* ===============================================
   REFERRAL SECTION
   =============================================== */

.referral-section {
  width: 100%;
  margin-top: 2vh;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.btn-referral {
  width: 100%;
  padding: 2vh 2vw;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
  transition: all 0.3s ease;
}

.btn-referral:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 87, 108, 0.4);
}

.btn-referral:active {
  transform: translateY(-1px);
}

.referral-icon {
  font-size: 1.5em;
  animation: pulse 2s infinite;
}

.referral-text {
  font-size: 1.1em;
}

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

.referral-benefits {
  background: #f8f9fa;
  padding: 1.5vh 1.5vw;
  border-radius: 10px;
  margin: 2vh 0;
}

.benefit-item {
  margin: 1vh 0;
  font-size: 0.95em;
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.5vw;
}

/* ===============================================
   COMPACT HEADER
   =============================================== */

.header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vh 1.5vw;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5vh;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.store-badge:hover {
  opacity: 0.7;
}

.store-icon {
  font-size: 1.8em;
}

.store-details {
  display: flex;
  flex-direction: column;
}

.store-name-text {
  font-weight: 700;
  font-size: 1.1em;
  color: #2c3e50;
}

.store-id-text {
  font-size: 0.85em;
  color: #3B82F6;
  font-weight: 600;
}

.btn-logout {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #e0e0e0;
  transform: rotate(180deg);
}

.btn-logout svg {
  width: 20px;
  height: 20px;
  color: #7f8c8d;
}

/* ===============================================
   REWARDS SHOWCASE - GAMIFIED CARDS
   =============================================== */

.rewards-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5vw;
  margin-bottom: 2vh;
  animation: fadeInUp 0.6s ease-out;
}

.reward-card {
  position: relative;
  padding: 2vh 1.5vw;
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.reward-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.reward-join {
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  color: white;
}

.reward-loyalty {
  background: linear-gradient(135deg, #F7941D 0%, #F59E0B 100%);
  color: white;
}

.reward-ribbon {
  position: absolute;
  top: 10px;
  right: -35px;
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 40px;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(45deg);
}

.reward-icon-wrap {
  margin-bottom: 1vh;
}

.reward-emoji {
  font-size: 2.8em;
  display: block;
  animation: bounce 2s infinite;
}

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

.reward-content {
  margin-bottom: 1vh;
}

.reward-title {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 0.5vh;
  opacity: 0.95;
}

.reward-value {
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.3;
}

.reward-sparkle {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 1.2em;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.reward-progress {
  margin-top: 0.5vh;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

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

.progress-dots .dot.filled {
  background: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ===============================================
   PHONE ENTRY SECTION - COMPACT
   =============================================== */

.phone-entry-section {
  background: white;
  padding: 2.5vh 2vw;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2vh;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2vh;
}

.phone-icon-small {
  font-size: 1.5em;
}

.phone-header h2 {
  font-size: 1.3em;
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

.phone-form {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

.phone-form .phone-input-wrapper input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.5em;
  text-align: center;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2c3e50;
}

.phone-form .phone-input-wrapper input:focus {
  outline: none;
  border-color: #3B82F6;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.phone-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-continue {
  flex: 1;
  padding: 16px 24px;
  font-size: 1.2em;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.btn-check-status {
  flex: 1;
  padding: 16px 24px;
  font-size: 1.1em;
  font-weight: 600;
  color: #3B82F6;
  background: white;
  border: 2px solid #3B82F6;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-check-status:hover {
  background: #EFF6FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-check-status svg {
  width: 20px;
  height: 20px;
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.45);
}

.btn-continue svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.btn-continue:hover svg {
  transform: translateX(5px);
}

/* ===============================================
   REFERRAL FOOTER
   =============================================== */

.referral-footer {
  margin-top: auto;
}

.referral-footer .btn-referral {
  width: 100%;
  padding: 1.8vh 2vw;
  background: linear-gradient(135deg, #F7941D 0%, #F59E0B 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.3);
  transition: all 0.3s ease;
}

.referral-footer .btn-referral:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(247, 148, 29, 0.4);
}

.referral-footer .referral-icon {
  font-size: 1.3em;
}

/* ===============================================
   SIGNUP MODAL - MODERN DESIGN
   =============================================== */

.signup-modal-content {
  max-width: 500px;
  width: 90vw;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  background: none;
  border: none;
  color: #95a5a6;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #2c3e50;
  transform: rotate(90deg);
}

.modal-header {
  background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.modal-icon {
  font-size: 4em;
  margin-bottom: 15px;
}

.modal-header h2 {
  margin-bottom: 10px;
  font-size: 1.8em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-header p {
  opacity: 1;
  font-size: 1em;
  color: #E0E7FF;
}

.signup-modal-form {
  padding: 35px 30px;
}

.signup-modal-form .form-group {
  margin-bottom: 20px;
}

.signup-modal-form label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.95em;
}

.signup-modal-form input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.1em;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.signup-modal-form input[type="text"]:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 12px;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

.text-link {
  color: #3B82F6;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* Forms grid for kiosk (legacy - can be removed if not used elsewhere) */
.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  align-items: start;
}

@media (max-width: 1024px) {
  .forms-grid { grid-template-columns: 1fr; }
  .form-section { max-width: 90vw; }
}

/* Success Modal */
.success-modal {
  text-align: center;
  padding: 40px;
}

.success-icon {
  font-size: 4em;
  color: #4caf50;
  margin-bottom: 20px;
}

.success-modal h2 {
  color: #333;
  margin-bottom: 20px;
}

.purchase-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.purchase-details p {
  margin: 10px 0;
  font-size: 1.1em;
}

.reward-message {
  color: #3B82F6;
  font-weight: 600;
}

.reward-message.highlight {
  color: #4caf50;
  font-size: 1.2em;
}

/* Privacy Modal */
.privacy-content {
  text-align: left;
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

.privacy-content ul {
  margin-left: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.privacy-content li {
  margin-bottom: 8px;
}

/* Promo placeholder */
.placeholder {
  text-align: center;
  color: #3B82F6;
}

.placeholder h2 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.placeholder p {
  font-size: 1.3em;
  opacity: 0.8;
}

/* ===============================================
   STATUS MODAL
   =============================================== */

.status-modal-content {
  text-align: center;
  max-width: 400px;
}

.status-header {
  margin-bottom: 20px;
}

.status-header .status-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 10px;
}

.status-header h2 {
  color: #3B82F6;
  margin: 0;
}

.status-info {
  padding: 20px 0;
}

.status-info .customer-name {
  font-size: 1.2em;
  color: #374151;
  margin-bottom: 20px;
}

.status-info .points-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.status-info .points-number {
  font-size: 4em;
  font-weight: 800;
  color: #3B82F6;
  line-height: 1;
}

.status-info .points-label {
  font-size: 1.2em;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.status-info .reward-status {
  font-size: 1.1em;
  color: #374151;
  margin-bottom: 20px;
}

.status-info .reward-status.has-reward {
  color: #10B981;
  font-weight: 600;
  font-size: 1.3em;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.9em;
  color: #6B7280;
  margin-bottom: 20px;
}

/* ===============================================
   REFERRAL MODAL FIXES
   =============================================== */

#referral-modal .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

#referral-modal .modal-header {
  position: relative;
  padding: 30px 25px;
  background: linear-gradient(135deg, #F7941D 0%, #F59E0B 100%);
}

#referral-modal .modal-icon {
  font-size: 3em;
  margin-bottom: 10px;
}

#referral-modal .modal-header h2 {
  font-size: 1.5em;
  margin-bottom: 8px;
}

#referral-modal .modal-header p {
  font-size: 0.95em;
  opacity: 0.95;
}

#referral-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

#referral-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  color: white;
}

#referral-modal .signup-modal-form {
  padding: 25px;
}

#referral-modal .form-group {
  margin-bottom: 18px;
}

#referral-modal .form-group label {
  font-size: 0.9em;
  margin-bottom: 6px;
}

#referral-modal .form-group input {
  padding: 12px 15px;
  font-size: 1em;
}

#referral-modal .referral-benefits {
  margin: 15px 0;
  padding: 12px 15px;
}

#referral-modal .benefit-item {
  font-size: 0.9em;
  margin: 8px 0;
}

/* ===============================================
   REFERRAL SUCCESS MODAL
   =============================================== */

.referral-success-content {
  text-align: center;
  max-width: 420px;
  padding: 40px 30px;
}

.referral-success-icon {
  font-size: 4em;
  margin-bottom: 15px;
  animation: celebrateBounce 0.6s ease-out;
}

@keyframes celebrateBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.referral-success-content h2 {
  color: #10B981;
  font-size: 1.8em;
  margin-bottom: 10px;
}

.referral-success-message {
  font-size: 1.1em;
  color: #374151;
  margin-bottom: 25px;
}

.referral-success-message strong {
  color: #3B82F6;
}

.referral-success-info {
  background: #F0FDF4;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.success-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  font-size: 0.95em;
  color: #374151;
}

.success-info-item:first-child {
  margin-top: 0;
}

.success-info-item:last-child {
  margin-bottom: 0;
}

.success-check {
  color: #10B981;
  font-weight: bold;
  font-size: 1.1em;
  flex-shrink: 0;
}

