/* ================================
   CSS Variables and Base Styles
   ================================ */

:root {
  --background: #f4f1de; /* Brand cream */
  --foreground: #1a1a1a;
  --muted: #f5f5f5;
  --muted-foreground: #6b7280;
  --popover: #ffffff;
  --popover-foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --primary: #5c8ec7; /* Brand blue */
  --primary-foreground: #ffffff;
  --secondary: #27496d; /* Brand dark */
  --secondary-foreground: #ffffff;
  --accent: #f5f5f5;
  --accent-foreground: #1a1a1a;
  --destructive: #d94830; /* Brand red */
  --destructive-foreground: #ffffff;
  --ring: #1a1a1a;
  --radius: 0.5rem;
  
  /* Brand colors */
  --brand-blue: #5c8ec7;
  --brand-dark: #27496d;
  --brand-cream: #f4f1de;
  --brand-red: #d94830;
  
  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
}

/* ================================
   Reset and Base Styles
   ================================ */

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
               'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

/* ================================
   Utility Classes
   ================================ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================
   Page Layout (BEM)
   ================================ */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--gradient-blue);
}

@media (min-width: 640px) {
  .page {
    padding: 1rem;
  }
}

.page__container {
  width: 100%;
  max-width: 72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .page__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ================================
   Hero Section (BEM)
   ================================ */

.hero {
  display: none;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero {
    display: block;
  }
}

.hero__header {
  margin-bottom: 1rem;
}

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

.hero__brand-icon {
  width: 2rem;
  height: 2rem;
  color: var(--brand-blue);
}

.hero__brand-name {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  max-width: 32rem;
}

.hero__title-highlight {
  color: var(--brand-blue);
}

.hero__description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 0 2rem 0;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card__icon--green {
  color: #10b981;
}

.feature-card__icon--yellow {
  color: #f59e0b;
}

.feature-card__icon--blue {
  color: #3b82f6;
}

.feature-card__title {
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.feature-card__description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* ================================
   Authentication Form (BEM)
   ================================ */

.auth {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .auth {
    max-width: 28rem;
  }
}

.auth__mobile-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .auth__mobile-header {
    display: none;
  }
}

.auth__mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth__mobile-brand-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-blue);
}

.auth__mobile-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.auth__mobile-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 0;
  overflow: hidden;
}

.card__header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  text-align: center;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.25rem 0;
}

@media (min-width: 1024px) {
  .card__title {
    font-size: 1.5rem;
  }
}

.card__description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.card__content {
  padding: 1rem 1.5rem;
}

@media (min-width: 640px) {
  .card__content {
    padding: 1.5rem;
  }
}

/* ================================
   Tabs (BEM)
   ================================ */

.tabs {
  width: 100%;
}

.tabs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: var(--radius);
  height: 2.25rem;
  margin-bottom: 1rem;
}

.tabs__trigger {
  position: relative;
  z-index: 10;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 0.125rem);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs__trigger:hover {
  background: #f9fafb;
}

.tabs__trigger--active {
  background: var(--brand-dark) !important;
  color: var(--primary-foreground) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.tabs__content {
  margin-top: 1rem;
}

.tabs__content--hidden {
  display: none;
}

/* ================================
   Checkbox Elements (BEM)
   ================================ */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox__input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  margin-top: 0.125rem; /* Align with first line of text */
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.checkbox__label {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.checkbox__link {
  color: var(--brand-blue);
  text-decoration: underline;
  font-weight: 500;
}

.checkbox__link:hover {
  color: var(--brand-dark);
}

.checkbox__link:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ================================
   Form Elements (BEM)
   ================================ */

.form {
  width: 100%;
}

.form__group {
  margin-bottom: 0.75rem;
}

.form__group--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .form__group--grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(92, 142, 199, 0.2);
}

.form__input::placeholder {
  color: var(--muted-foreground);
}

.form__error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
  display: block;
}

.form__actions {
  margin-top: 0.75rem;
}

/* ================================
   Button (BEM)
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn--primary {
  background: var(--brand-blue);
  color: var(--primary-foreground);
  height: 3rem;
  padding: 0 1.5rem;
}

.btn--primary:hover:not(:disabled) {
  background: var(--brand-dark);
}

.btn--primary:focus {
  box-shadow: 0 0 0 2px rgba(92, 142, 199, 0.5);
}

.btn--google {
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  height: 3rem;
  padding: 0 1.5rem;
  font-weight: 500;
}

.btn--google:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #d2d3d4;
}

.btn--google:focus {
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
}

.btn--google .btn__icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

.btn--full {
  width: 100%;
}

.btn--link {
  background: transparent;
  color: var(--muted-foreground);
  text-decoration: underline;
  padding: 0;
  height: auto;
  font-size: 0.875rem;
}

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

.btn__icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.btn__spinner {
  animation: spin 1s linear infinite;
}

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

/* ================================
   Authentication Divider (BEM)
   ================================ */

.auth-divider {
  position: relative;
  margin: 1.5rem 0;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider__text {
  background: var(--card);
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  position: relative;
}

/* ================================
   Alert (BEM)
   ================================ */

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.alert--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert--success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.alert--hidden {
  display: none;
}

/* ================================
   Modal (BEM)
   ================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 28rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.modal-body {
  padding: 1.5rem;
}

.modal-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.modal-actions {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 5rem;
}

/* ================================
   Loading States (BEM)
   ================================ */

.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.loading__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ================================
   Utility Spacing
   ================================ */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ================================
   Responsive Utilities
   ================================ */

/* Touch-optimized styles for tablets */
@media (pointer: coarse) {
  .btn, .form__input, .tabs__trigger {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn--google {
    min-height: 48px; /* Slightly larger for touch */
  }
}

/* iPad specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .card__content {
    padding: 2rem;
  }
  
  .card__title {
    font-size: 1.25rem;
  }
  
  .btn--primary, .btn--google {
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
  }
}

/* ================================
   Customer Page Styles
   ================================ */

/* Loading State */
.loading {
  min-height: 100vh;
  background: var(--gradient-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading__spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid var(--brand-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading__text {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

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

/* Error State */
.error {
  min-height: 100vh;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error__content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 28rem;
  width: 100%;
}

.error__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--destructive);
  margin-bottom: 1rem;
}

.error__message {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Customer Page Layout */
.customer {
  min-height: 100vh;
  background: var(--gradient-blue);
  padding: 2rem 1rem;
}

.customer__header {
  text-align: center;
  margin-bottom: 2rem;
}

.customer__subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo__image {
  width: 10rem;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo__icon {
  width: 4rem;
  height: 4rem;
  color: var(--brand-blue);
}

/* Customer User Info */
.customer__user-info {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.card__header--center {
  text-align: center;
}

/* Email Verification */
.verification {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.verification--verified {
  background: #dcfce7;
  color: #166534;
}

.verification--unverified {
  background: #fef3c7;
  color: #92400e;
  flex-direction: column;
  gap: 0.75rem;
}

.verification__icon {
  width: 1rem;
  height: 1rem;
}

.verification__button {
  margin-top: 0.5rem;
}

/* Loyalty Card */
.loyalty-card {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  color: white;
  overflow: hidden;
}

.loyalty-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.loyalty-card__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.loyalty-card__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.loyalty-card__stamps {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.loyalty-card__progress {
  text-align: center;
}

.loyalty-card__count {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.loyalty-card__remaining {
  color: rgba(255, 255, 255, 0.9);
}

/* Stamps */
.stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  max-width: 20rem;
}

.stamp {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.stamp--filled {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.stamp--empty {
  background: transparent;
}

.stamp__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.stamp--filled .stamp__icon {
  color: white;
}

/* QR Card */
.qr-card {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.card__content--center {
  text-align: center;
}

.qr-code {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.qr-code--small {
  padding: 1rem;
}

.qr-code__placeholder {
  width: 12.5rem;
  height: 12.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-weight: 500;
}

.qr-code--small .qr-code__placeholder {
  width: 9.375rem;
  height: 9.375rem;
}

/* Coupons */
.coupons {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.card__title-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #059669;
  margin-right: 0.5rem;
}

/* Coupon Create Section */
.coupon-create {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
}

.coupon-create__content {
  text-align: center;
}

.coupon-create__title {
  color: #065f46;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.coupon-create__description {
  color: #047857;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Coupons List */
.coupons__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coupon {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid #a7f3d0;
  background: #ecfdf5;
}

.coupon--redeemed {
  border-color: #d1d5db;
  background: #f9fafb;
  opacity: 0.75;
}

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

.coupon__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.coupon__status {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.coupon__redeem {
  background: #059669;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.coupon__redeem:hover {
  background: #047857;
}

.coupon__qr {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.coupon__qr-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

/* Empty Coupons */
.coupons__empty {
  text-align: center;
  padding: 2rem;
}

.coupons__empty-icon {
  width: 4rem;
  height: 4rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
}

.coupons__empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.coupons__empty-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Success Button Variant */
.btn--success {
  background: #059669;
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--success:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn--success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 20rem;
}

.toast--show {
  transform: translateX(0);
}

.toast--success {
  border-left: 4px solid #059669;
  color: #065f46;
}

.toast--error {
  border-left: 4px solid var(--destructive);
  color: #991b1b;
}

/* Coupon Info */
.coupon__info {
  flex: 1;
}

.coupon__description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* QR Code Large */
.qr-code--large {
  padding: 2rem;
}

.qr-code__placeholder--large {
  width: 16rem;
  height: 16rem;
  font-size: 1.125rem;
  flex-direction: column;
  gap: 1rem;
}

.qr-code__data {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal--show {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  min-width: 24rem;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.modal__close {
  background: none;
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.modal__close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.modal__body {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.modal__description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal__qr {
  display: flex;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .customer {
    padding: 1rem 0.5rem;
  }
  
  .logo__image {
    width: 8rem;
    height: 8rem;
  }
  
  .logo__icon {
    width: 3rem;
    height: 3rem;
  }
  
  .stamps {
    grid-template-columns: repeat(3, 1fr);
    max-width: 15rem;
  }
  
  .stamp {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .stamp__icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .qr-code__placeholder {
    width: 10rem;
    height: 10rem;
  }
  
  .qr-code--small .qr-code__placeholder {
    width: 7.5rem;
    height: 7.5rem;
  }
  
  .qr-code__placeholder--large {
    width: 12rem;
    height: 12rem;
  }
  
  .coupon__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .toast {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .modal__content {
    min-width: auto;
    width: 90vw;
  }

  .modal__header {
    padding: 1rem 1rem 0;
    margin-bottom: 1rem;
  }

  .modal__body {
    padding: 0 1rem 1rem;
  }
}
