/* ==========================================================================
   White Label Delivery - Design System & Stylesheet (REFINED & MOBILE FIRST)
   Inspirado no Abaré Pizzarias | Visual Premium, Fluidez & Alta Responsividade
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #F3C010;
  --primary-dark: #D4A500;
  --dark-color: #0E0E0E;
  --dark-surface: #1E1E1E;
  --light-bg: #F8F9FA;
  --card-bg: #FFFFFF;
  --border-color: #ECECEC;
  --text-main: #111111;
  --text-muted: #666666;
  --text-light: #999999;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  --accent-orange: #FF6600;
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.16);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-bg);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: #CCCCCC;
  border-radius: 3px;
}

/* App Header */
.app-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  min-height: 40px;
}

.btn-header:hover, .btn-header:active {
  background-color: rgba(0, 0, 0, 0.05);
}

.brand-logo {
  cursor: pointer;
  user-select: none;
}

.brand-logo-text {
  font-size: 22px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-logo-text span {
  color: var(--primary-color);
  background: var(--dark-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

/* Category Navigation Tabs */
.nav-categories {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 61px;
  z-index: 99;
}
.nav-categories::-webkit-scrollbar {
  display: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 12px;
  gap: 4px;
}

.category-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

.category-tab:hover {
  color: var(--text-main);
}

.category-tab.active {
  color: var(--text-main);
  font-weight: 700;
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 3px 3px 0 0;
}

/* Store Status Banner */
.store-banner-wrapper {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 0 16px;
}

.store-banner {
  background: var(--card-bg);
  border: 1.5px solid var(--danger-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.store-banner:active {
  transform: scale(0.99);
}

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

.store-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.store-rating {
  color: var(--warning-color);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.store-status-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-open {
  color: var(--success-color);
  font-weight: 700;
}

.store-icon-right {
  font-size: 22px;
}

/* Banner Slider Carousel */
.banner-carousel-wrapper {
  max-width: 1200px;
  margin: 16px auto 10px;
  padding: 0 16px;
  overflow: hidden;
}

.banner-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.banner-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 8px);
  min-width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 140px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.carousel-slide:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Content Layout */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 24px 0 14px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-title:first-child {
  margin-top: 4px;
}

/* Desktop & Tablet Grids */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card Type A: Vertical Card (Promoções & Combos) */
.product-card-vertical {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.product-card-vertical:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-vertical:active {
  transform: scale(0.98);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: #F0F0F0;
}

.card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.product-card-vertical:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.price-overlay-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.card-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-color);
}

/* Card Type B: Horizontal Card (Pizzas & Calzones) */
.product-card-horizontal {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  min-height: 110px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-card-horizontal:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-horizontal:active {
  transform: scale(0.98);
}

.card-horiz-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* Ensures line-clamp text truncation works inside flexbox */
}

.card-horiz-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-horiz-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0;
}

.card-horiz-img {
  width: 110px;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  background-color: #F5F5F5;
  flex-shrink: 0;
}

/* Card Type C: Drink Card with Brand Stripe (Bebidas) */
.product-card-drink {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  height: 100px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-card-drink:hover {
  box-shadow: var(--shadow-md);
}

.product-card-drink:active {
  transform: scale(0.98);
}

.drink-brand-stripe {
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFFFFF;
  text-transform: uppercase;
  flex-shrink: 0;
}

.drink-brand-coca { background-color: #E41E2B; }
.drink-brand-water { background-color: #0077C8; }
.drink-brand-mate { background-color: #E65100; }
.drink-brand-beer { background-color: #D4A500; }

.drink-content {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.drink-img {
  width: 80px;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background-color: #FAFAFA;
  flex-shrink: 0;
}

/* Sticky Footer Bar */
.sticky-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-color);
  color: #FFFFFF;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sticky-footer-bar:active {
  background-color: #222222;
}

.sticky-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.cart-count-badge {
  background-color: var(--primary-color);
  color: var(--dark-color);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Modal System (Desktop & Mobile Responsive) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-handle-bar {
  display: none; /* Only visible on mobile bottom-sheets */
  width: 38px;
  height: 5px;
  background-color: #E0E0E0;
  border-radius: 3px;
  margin: 8px auto 2px;
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  flex: 1;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-main);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  position: absolute;
  left: 12px;
}

.btn-close-modal:hover, .btn-close-modal:active {
  background-color: rgba(0, 0, 0, 0.06);
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 14px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  border-top: 1px solid var(--border-color);
  background-color: var(--card-bg);
}

.btn-primary-block {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--dark-color);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

.btn-primary-block:active {
  transform: scale(0.98);
  background-color: #222222;
}

.btn-primary-block:disabled {
  background-color: #DDDDDD;
  color: #888888;
  cursor: not-allowed;
  transform: none;
}

/* Customization Options */
.option-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.req-badge {
  background-color: var(--dark-color);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}

.option-group-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.option-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.option-item-row:active {
  background-color: var(--light-bg);
}

.option-thumb-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.option-thumb {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.top10-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--warning-color);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 3px;
}

.option-details {
  flex: 1;
  min-width: 0;
}

.option-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.option-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.option-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 3px;
}

.btn-add-option {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-add-option.added {
  background: var(--dark-color);
  color: #FFFFFF;
  border-color: var(--dark-color);
}

/* Cart & Checkout Specifics */
.cart-item-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 700;
}

.cart-subitems {
  list-style: none;
  padding-left: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.cart-subitems li {
  margin-bottom: 2px;
}

.add-more-link {
  display: block;
  text-align: center;
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin: 14px 0 6px;
  cursor: pointer;
}

.checkout-section-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
}

.checkout-row.bold {
  font-weight: 800;
  font-size: 15px;
  color: var(--text-main);
}

.action-link {
  color: var(--accent-orange);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}

.discount-highlight-badge {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--success-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Payment Options List */
.payment-group-title {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
}

.payment-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.payment-option-row:active {
  background-color: var(--light-bg);
}

.payment-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CCCCCC;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.radio-circle.selected {
  border-color: var(--dark-color);
}

.radio-circle.selected::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--dark-color);
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
}

.form-input:focus {
  border-color: var(--dark-color);
}

/* Address List Items */
.address-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.address-icon {
  width: 34px;
  height: 34px;
  background-color: var(--light-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE BREAKPOINTS (< 640px & < 900px)
   ========================================================================== */

@media (max-width: 900px) {
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .carousel-slide {
    flex: 0 0 75%;
    height: 130px;
  }
}

@media (max-width: 640px) {
  /* Header adjustments */
  .header-container {
    padding: 8px 12px;
  }
  .btn-header span {
    display: none; /* Hide labels like "Entrar", "Buscar" on mobile, keep icon */
  }
  .btn-header {
    padding: 6px 8px;
  }
  .brand-logo-text {
    font-size: 18px;
  }
  .brand-logo-text span {
    font-size: 12px;
    padding: 2px 4px;
  }
  .nav-categories {
    top: 53px;
  }

  /* Single Column Layouts on Mobile */
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Cards Mobile Polish */
  .product-card-horizontal {
    min-height: 96px;
  }
  .card-horiz-img {
    width: 96px;
    min-height: 96px;
  }
  .card-horiz-content {
    padding: 10px;
  }
  .card-horiz-title {
    font-size: 14px;
  }
  .card-horiz-desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .product-card-drink {
    height: 90px;
  }
  .drink-img {
    width: 70px;
  }
  .drink-content {
    padding: 8px 10px;
  }

  /* MODALS CONVERTED TO MOBILE BOTTOM SHEETS */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-container {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    transform: translateY(100%);
  }

  .modal-handle-bar {
    display: block;
  }

  .modal-header {
    padding: 10px 16px 12px;
  }

  .modal-body {
    padding: 14px;
  }

  .modal-footer {
    padding: 12px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }
}

/* ==========================================================================
   Checkout Payments Interactive Styling (Card 3D & Pix UI)
   ========================================================================== */

.pix-checkout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.pix-qr-wrapper {
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.pix-qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.pix-timer-badge {
  background-color: rgba(239, 68, 68, 0.08);
  color: var(--danger-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pix-copia-cola-box {
  width: 100%;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: monospace;
  font-size: 11px;
  word-break: break-all;
  max-height: 80px;
  overflow-y: auto;
  text-align: left;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-copy-pix {
  background: var(--dark-color);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-copy-pix:active {
  transform: scale(0.97);
}

/* 3D CREDIT CARD CONTAINER */
.credit-card-scene {
  width: 100%;
  height: 190px;
  perspective: 1000px;
  margin: 16px 0 24px;
  display: flex;
  justify-content: center;
}

.credit-card-box {
  width: 300px;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credit-card-box.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 20px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-face-front {
  background: linear-gradient(135deg, #1E1E1E 0%, #3A3A3A 100%);
}

.card-face-back {
  background: linear-gradient(135deg, #2D2D2D 0%, #151515 100%);
  transform: rotateY(180deg);
}

/* Front Details */
.card-logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
  border-radius: 6px;
  position: relative;
}

.card-brand-logo {
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
}

.card-number-display {
  font-size: 18px;
  letter-spacing: 2px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  margin: 20px 0 10px;
}

.card-holder-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
}

.card-label {
  opacity: 0.6;
  font-size: 9px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.card-val {
  font-weight: 700;
  letter-spacing: 1px;
}

/* Back Details */
.card-magnetic-strip {
  width: 100%;
  height: 40px;
  background-color: #000000;
  position: absolute;
  top: 20px;
  left: 0;
}

.card-signature-area {
  background-color: #FFFFFF;
  height: 34px;
  width: 80%;
  border-radius: 4px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #111111;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-style: italic;
}

.card-cvv-val {
  font-size: 13px;
}

.card-back-text {
  font-size: 8px;
  opacity: 0.5;
  line-height: 1.2;
}

/* Card Brands Colors */
.card-face-front.visa {
  background: linear-gradient(135deg, #0d1b3e 0%, #17387d 100%);
}

.card-face-front.mastercard {
  background: linear-gradient(135deg, #511215 0%, #90272b 100%);
}

.card-face-front.amex {
  background: linear-gradient(135deg, #186f78 0%, #2fa8b5 100%);
}

.card-face-front.elo {
  background: linear-gradient(135deg, #521568 0%, #852ca5 100%);
}

/* Admin Access Quick Link Style */
.admin-link-wrapper {
  margin: 12px 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background-color: #F3F4F6;
  text-align: center;
}

.admin-link-wrapper a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-link-wrapper a:hover {
  text-decoration: underline;
}

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

