html {
  font-size: 90%;
}

:root {
  --bg-color: #ffffff;
  --bg-subtle: #f8f9fa;
  --text-primary: #1d1d1f;      /* Plomo */
  --text-secondary: #515154;
  --text-muted: #86868b;
  --accent-pink: #ff007f;       /* Pink Neon */
  --accent-cyan: #00cbd6;       /* Cyan */
  --accent-yellow: #ffd700;     /* Sorrento Yellow */
  --border-color: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  --border-radius: 36px;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 24px 16px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Mesh Gradient Background */
.mesh-bg-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-color);
}

.mesh-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float-blob 12s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.mesh-blob.pink {
  background: var(--accent-pink);
  width: 400px; height: 400px;
  top: -100px; left: -100px;
}

.mesh-blob.cyan {
  background: var(--accent-cyan);
  width: 350px; height: 350px;
  bottom: -50px; right: -50px;
  animation-delay: -5s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 80px) scale(1.2); }
}

/* Animation Utilities */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Scroll Reveal Animation System */
.reveal-item {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up {
  transform: translateY(45px);
}

.reveal-fade-left {
  transform: translateX(-45px);
}

.reveal-fade-right {
  transform: translateX(45px);
}

.reveal-scale-up {
  transform: scale(0.93);
}

/* Revealed States */
.reveal-item.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

#app {
  width: 100%;
  max-width: 1000px;
  z-index: 1;
}

/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top: 2.5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

/* Bento Box Grid */
.bento-layout, .home-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.bento-item {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

/* Hero Box Layout */
.hero-box {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: visible;
}

.hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 64px 48px;
  gap: 20px;
  position: relative;
  overflow: visible;
}

.hero-text-section {
  flex: 1.2;
  min-width: 320px;
  position: relative;
  z-index: 5;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-visual-section {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-left: -60px;
}

.hero-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-badge {
  background: rgba(255, 0, 127, 0.06);
  color: var(--accent-pink);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 0, 127, 0.12);
}

.hero-title-main {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc-main {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 500;
}

.hero-button-group {
  display: flex;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-btn-cta {
  flex: 1.2;
  min-width: 160px;
  background: var(--accent-pink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.25);
  font-size: 1.05rem;
}

.hero-btn-query {
  flex: 0.8;
  min-width: 130px;
  font-size: 1.05rem;
}

/* Tilted Dual Cards Preview */
/* (Merged into Hero Box) */

.dual-cards-container {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 493px;
  justify-content: center;
  align-items: center;
  height: 374px;
  perspective: 1400px;
}

.dual-cards-container::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 20%;
  width: 60%;
  height: 25px;
  background: rgba(0,0,0,0.15);
  filter: blur(18px);
  border-radius: 50%;
  z-index: 0;
  transform: rotate(-10deg);
  transition: all 0.5s ease;
}

.preview-card-item {
  width: 340px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease, opacity 0.5s ease;
}

.card-back-tilted {
  transform: rotate(-15deg) translate(-30px, -35px) rotateY(15deg) rotateX(10deg);
  z-index: 1;
  filter: drop-shadow(15px 25px 30px rgba(0, 0, 0, 0.2));
  animation: card-back-entrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-front-tilted {
  transform: rotate(-5deg) translate(35px, 20px) rotateY(10deg) rotateX(5deg);
  z-index: 2;
  filter: drop-shadow(20px 30px 40px rgba(0, 0, 0, 0.25));
  animation: card-front-entrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-back-entrance {
  0% {
    transform: rotate(-35deg) translate(-200px, -120px) rotateY(30deg) rotateX(20deg);
    opacity: 0;
  }
  100% {
    transform: rotate(-15deg) translate(-30px, -35px) rotateY(15deg) rotateX(10deg);
    opacity: 1;
  }
}

@keyframes card-front-entrance {
  0% {
    transform: rotate(15deg) translate(200px, 120px) rotateY(-20deg) rotateX(-10deg);
    opacity: 0;
  }
  100% {
    transform: rotate(-5deg) translate(35px, 20px) rotateY(10deg) rotateX(5deg);
    opacity: 1;
  }
}

.dual-cards-container:hover::after {
  filter: blur(25px);
  transform: rotate(-10deg) scale(1.15);
  background: rgba(0,0,0,0.12);
}

.dual-cards-container:hover .card-back-tilted {
  transform: rotate(-15deg) translate(-30px, -35px) rotateY(15deg) rotateX(10deg) scale(1.04) !important;
  filter: drop-shadow(20px 35px 40px rgba(0, 0, 0, 0.25)) !important;
}

.dual-cards-container:hover .card-front-tilted {
  transform: rotate(-5deg) translate(35px, 20px) rotateY(10deg) rotateX(5deg) scale(1.04) !important;
  filter: drop-shadow(25px 45px 50px rgba(0, 0, 0, 0.3)) !important;
}

.card-img-fluid {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Benefits Grid */
.benefit-bento {
  grid-column: span 1;
  align-items: flex-start;
}

.bento-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.bento-badge-icon.pink {
  background: rgba(255, 0, 127, 0.05);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 0, 127, 0.1);
}

.bento-badge-icon.cyan {
  background: rgba(0, 203, 214, 0.05);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 203, 214, 0.1);
}

.benefit-head {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.benefit-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Form Bento Section */
.form-bento-card {
  grid-column: span 2;
  padding: 24px 20px;
  background: #ffffff;
}

.form-section-title {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 4px;
}

.form-section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

/* Tab toggle buttons */
.tab-toggle-container {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Styled Form components */
.form-grid-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-label i {
  color: var(--accent-pink);
  font-size: 1.05rem;
  margin-right: 2px;
}

.styled-input, .styled-select-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.styled-input::placeholder, .styled-select-input::placeholder {
  color: rgba(0, 0, 0, 0.24);
}

.styled-input:focus, .styled-select-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(0, 203, 214, 0.06);
}

.submit-btn-gift {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-pink) 0%, #ff4b98 100%);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 1.0rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(255, 0, 127, 0.35);
  margin-top: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.submit-btn-gift:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 0, 127, 0.45);
}

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

/* Success layout page */
.success-container {
  max-width: 480px;
  margin: 0 auto;
}

.success-header {
  align-items: center;
  padding: 40px 32px;
}

.success-icon {
  font-size: 4.5rem;
  color: #16a34a;
  margin-bottom: 16px;
}

.success-title {
  font-size: 2rem;
  font-weight: 900;
}

.error-banner {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/* Bento Header & Mockup placement (Client / Operator views) */
.bento-header {
  grid-column: span 2;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.bento-card-mockup {
  grid-column: span 2;
  aspect-ratio: 1.586 / 1;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.bento-balance {
  grid-column: span 2;
  text-align: center;
  align-items: center;
  padding: 36px 24px;
}

.bento-history {
  grid-column: span 2;
}

.bento-actions {
  grid-column: span 2;
  padding: 16px;
}

/* Card Mockup Visual styling (Fallback CSS cards) */
.card-outline-dashed {
  width: 100%;
  height: 100%;
  border: 2px dashed var(--accent-cyan);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--bg-subtle);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-brand {
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  color: var(--text-primary);
}

.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-type {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--text-muted);
}

.card-code {
  font-family: monospace;
  font-weight: bold;
  font-size: 1rem;
  color: var(--text-secondary);
}

.card-status-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.card-status-badge.creada { background: #e0f2fe; color: #0369a1; }
.card-status-badge.activa { background: #dcfce7; color: #15803d; }
.card-status-badge.agotada { background: #fee2e2; color: #b91c1c; }
.card-status-badge.reciclada { background: #f3f4f6; color: #374151; }

/* Balance & Money styles */
.balance-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* History lists */
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.no-txs {
  color: var(--text-muted);
  text-align: center;
  padding: 16px 0;
  font-size: 0.95rem;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--bg-subtle);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.tx-info {
  display: flex;
  flex-direction: column;
}

.tx-desc {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.tx-type {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.tx-value {
  font-weight: 800;
  font-size: 1.05rem;
}

.tx-value.positive { color: #16a34a; }
.tx-value.negative { color: var(--accent-pink); }

/* Buttons & General inputs styling */
.btn-primary {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  width: 100%;
  background: #ffffff;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-back {
  background: none;
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Default Input View Form */
.input-box {
  padding: 32px 24px;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.huge-input {
  width: 100%;
  padding: 16px;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  background: var(--bg-subtle);
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease;
}

.huge-input:focus {
  border-color: var(--accent-cyan);
}

.huge-btn {
  padding: 16px;
}

/* Shop Operator Screen specific elements */
.styled-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-subtle);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  margin-bottom: 24px;
}

.pin-display-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pin-dot.filled {
  background-color: var(--accent-pink);
  border-color: var(--accent-pink);
}

/* Pinpad Keypad */
.pinpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.btn-pin {
  aspect-ratio: 1.4 / 1;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  border-radius: 14px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease;
}

.btn-pin:active {
  background-color: var(--bg-subtle);
}

.btn-pin.btn-danger {
  color: #ef4444;
  border-color: #fee2e2;
}

.btn-pin.btn-action {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

/* Camera Scanner Container */
.bento-scanner {
  grid-column: span 2;
  align-items: center;
}

.scanner-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid var(--border-color);
}

.bento-manual-code {
  grid-column: span 2;
}

/* Card details panel */
.card-details-box {
  grid-column: span 2;
}

.card-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Amount input screen */
.amount-box {
  grid-column: span 2;
  align-items: center;
  text-align: center;
}

.huge-amount-display {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.pinpad-box {
  grid-column: span 2;
}

.font-bold .btn-pin {
  font-weight: 800;
}

/* Ticket Receipt */
.ticket-container {
  max-width: 440px;
  margin: 0 auto;
}

.success-header {
  align-items: center;
  padding: 32px 24px;
}

.success-icon {
  font-size: 4rem;
  color: #16a34a;
  margin-bottom: 12px;
}

.success-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.receipt-row.divider {
  border-top: 2px dashed var(--border-color);
  margin-top: 8px;
  padding-top: 16px;
}

.receipt-row.divider + .receipt-row {
  border-bottom: 2px dashed var(--border-color);
  margin-bottom: 8px;
  padding-bottom: 16px;
}

.receipt-label.highlight {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.receipt-val.highlight {
  font-weight: 900;
  font-size: 1.4rem;
}

.price-consumed {
  color: var(--accent-pink);
}

.price-remaining {
  font-weight: 700;
  color: var(--text-primary);
}

.font-monospace {
  font-family: monospace;
  font-weight: bold;
}

/* Decorative Card styles inside balance view */
.card-preview-deco-wrapper {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.card-deco-img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Hero Sales Sections */
.sales-hero-section {
  grid-column: span 2;
  padding: 48px;
}

.sales-hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.sales-hero-content.alternate {
  flex-direction: row-reverse;
}

.sales-hero-text {
  flex: 1.2;
  text-align: left;
}

.sales-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.sales-badge.badge-cyan {
  background: rgba(0, 203, 214, 0.1);
  color: var(--accent-cyan);
}

.sales-badge.badge-pink {
  background: rgba(255, 0, 127, 0.1);
  color: var(--accent-pink);
}

.sales-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.sales-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.sales-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sales-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.sales-features-list li i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.sales-hero-content.alternate .sales-features-list li i {
  color: var(--accent-pink);
}

.sales-hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  overflow: visible !important;
}

/* Security Card Visual */
.security-card-visual {
  width: 280px;
  height: 180px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.security-card-visual:hover {
  transform: translateY(-8px) rotate(2deg);
}

.security-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0, 203, 214, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.security-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-card-header i {
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.secure-status {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 203, 214, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.security-card-number {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.security-card-holder {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.security-card-footer {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.secure-protocol i {
  color: var(--accent-cyan);
  margin-right: 4px;
}

/* Sales Card Image Wrap */
.sales-card-image-wrap {
  position: relative;
  width: 100%;
  max-width: 272px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  overflow: visible !important;
}

.sales-card-img {
  width: 100%;
  max-width: 238px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(15px 25px 30px rgba(0, 0, 0, 0.18));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: rotate(-3deg) rotateY(10deg);
}

.sales-card-image-wrap:hover .sales-card-img {
  transform: rotate(-1deg) rotateY(5deg) scale(1.05);
  filter: drop-shadow(20px 30px 40px rgba(0, 0, 0, 0.25));
}

/* Hero CTA Button - Premium Pill Style */
.hero-cta-container {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-pink) 0%, #ff4a95 100%);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(255, 0, 127, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-primary-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-primary-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 0, 127, 0.5);
  background: linear-gradient(135deg, #ff007f 0%, #ff3385 100%);
}

.cta-primary-btn:hover i {
  transform: scale(1.2) rotate(10deg);
}

.cta-primary-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  pointer-events: none;
  opacity: 0;
}

.cta-primary-btn:hover::after {
  animation: shine 1.2s ease-in-out;
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Responsive adjust */
@media (max-width: 1024px) {
  body {
    padding: 16px;
  }
  .hero-content-wrapper {
    flex-direction: column-reverse;
    padding: 0px 20px;
    text-align: center;
    gap: 32px;
  }
  .hero-text-section {
    text-align: center;
    align-items: center;
  }
  .hero-button-group {
    justify-content: center;
  }
  .hero-visual-section {
    margin-left: 0;
  }
  .bento-layout, .home-layout {
    gap: 14px;
  }
  .bento-item {
    padding: 20px;
  }
  .hero-box {
    padding: 32px 20px;
  }
  .hero-title-main {
    font-size: 2.2rem;
  }
  .balance-amount {
    font-size: 3rem;
  }
  .hero-button-group {
    flex-direction: column;
    gap: 12px;
  }
  .hero-btn-cta, .hero-btn-query {
    width: 100%;
    max-width: 100%;
  }
  .physical-preview-box {
    padding: 20px;
  }
  .form-bento-card {
    padding: 28px 16px;
  }
  .dual-cards-container {
    width: 250px;
    height: 220px;
    overflow: visible;
  }
  .preview-card-item {
    width: 250px;
  }
  .card-front-tilted {
    transform: rotate(-10deg) translate(8px, 5px) rotateY(10deg) rotateX(5deg);
  }
  .card-back-tilted {
    transform: rotate(8deg) translate(-8px, -10px) rotateY(15deg) rotateX(10deg);
  }
  .sales-hero-section {
    padding: 32px 20px;
  }
  .sales-hero-content, .sales-hero-content.alternate {
    flex-direction: column;
    gap: 24px;
  }
  .sales-hero-text {
    text-align: center;
  }
  .sales-title {
    font-size: 1.7rem;
    text-align: center;
  }
  .sales-desc {
    font-size: 0.95rem;
  }
  .sales-features-list {
    align-items: flex-start;
  }
  .sales-features-list li {
    text-align: left !important;
  }
  .sales-features-list li div {
    text-align: left !important;
  }
  .hero-cta-container {
    justify-content: center;
    margin-top: 24px;
    width: 100%;
  }
  .cta-primary-btn {
    padding: 14px 30px;
    font-size: 1rem;
    width: 95%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Global Glass Header */
.glass-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 85px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

.header-left-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.header-center-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  margin-top: 7px;
}

.header-mano-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.header-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.header-logo-link:active {
  transform: scale(0.97);
}


.header-tools-btn {
    background: transparent;
    border: none;
    font-size: 1.3em;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s;
    padding: 0;
    box-shadow: none;
}

/* Desktop navigation links in header */
.header-nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 6px 0;
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-pink);
  transition: width 0.3s ease;
}

.desktop-nav-link:hover {
  color: var(--text-primary);
}

.desktop-nav-link:hover::after {
  width: 100%;
}

.desktop-nav-link.active {
  color: var(--accent-pink);
  font-weight: 700;
}

.desktop-nav-link.active::after {
  width: 100%;
}

.desktop-nav-link.support-btn {
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid rgba(0, 255, 127, 0.2);
  color: #00c853;
  padding: 8px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav-link.support-btn:hover {
  background: #00c853;
  color: #ffffff;
  border-color: #00c853;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 200, 83, 0.25);
}

.desktop-nav-link.support-btn::after {
  display: none;
}

/* Glass Drawer (Sidebar menu) */
.glass-drawer {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--border-color);
  z-index: 1010;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-shadow: 15px 0 40px rgba(0, 0, 0, 0.05);
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-drawer.active {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.drawer-close-btn:hover {
  color: var(--accent-pink);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s;
  border: 1px solid transparent;
}

.drawer-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.drawer-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: translateX(4px);
}

.drawer-link:hover i {
  color: var(--accent-pink);
}

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Page Top Spacing Offset for Sticky Header */
body {
  padding-top: 109px !important;
}

@media (max-width: 1024px) {
  .glass-header {
    padding: 0px 24px;
    height: 60px;
  }
  body {
    padding-top: 80px !important;
  }
  .header-logo-img {
    height: 28px;
  }
  .header-mano-img {
    height: 24px;
  }
}

/* Premium Bento Overhaul Additions */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 127, 0.1);
  color: #00ff7f;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(0, 255, 127, 0.2);
}

.dot-blink {
  width: 8px;
  height: 8px;
  background-color: #00ff7f;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff7f;
  animation: blink-indicator 1.5s infinite alternate;
}

@keyframes blink-indicator {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.premium-physical-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-neon-glow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.3);
  pointer-events: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-info-pill {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.card-code-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 50px;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.card-type-pill {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.badge-pink {
  background: var(--accent-pink);
  box-shadow: 0 4px 10px rgba(255, 0, 127, 0.25);
}

.balance-backdrop-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.no-txs-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
}

.no-txs-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.4;
}

.tx-icon-wrap {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tx-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scanner-laser-line {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(to right, rgba(0,240,255,0), rgba(0,240,255,0.8), rgba(0,240,255,0));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
  animation: laser-scan 2s infinite ease-in-out;
}

@keyframes laser-scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Premium Glassmorphic Layout Additions for Operador & Consulta */
.glass-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.03) !important;
  border-radius: 24px !important;
}

.glass-select, .glass-input {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  width: 100%;
}

.glass-select:focus, .glass-input:focus {
  border-color: rgba(255, 0, 127, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(255, 0, 127, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.01) !important;
  background: #ffffff !important;
}

.glass-pin-btn {
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 16px !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  aspect-ratio: 1.3 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.01) !important;
}

.glass-pin-btn:hover {
  background: #ffffff !important;
  border-color: var(--accent-pink) !important;
  box-shadow: 0 8px 20px rgba(255, 0, 127, 0.12) !important;
  transform: translateY(-2px) scale(1.02);
}

.glass-pin-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.8) !important;
}

/* Custom Premium Dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
  z-index: 100;
}

.dropdown-trigger {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.dropdown-trigger:hover, .custom-dropdown.active .dropdown-trigger {
  border-color: rgba(255, 0, 127, 0.45) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(255, 0, 127, 0.08);
}

.dropdown-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 8px;
  z-index: 1000;
}

.custom-dropdown.active .dropdown-options {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.dropdown-option-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
}

.dropdown-option-item.selected {
  background: rgba(255, 0, 127, 0.08) !important;
  color: var(--accent-pink) !important;
  font-weight: 700;
}

.option-avatar {
  font-size: 1.4rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.dropdown-option-item.selected .option-avatar {
  color: var(--accent-pink);
  opacity: 1;
}

.option-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.option-name {
  font-size: 0.95rem;
}

.option-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.dropdown-option-item.selected .option-role {
  color: rgba(255, 0, 127, 0.6);
}

.option-checked {
  font-size: 0.9rem;
  color: var(--accent-pink);
}

/* Page Transitions */
.view-container {
  opacity: 0;
  transform: translateY(20px);
  animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

@keyframes pageEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-container.page-exit {
  animation: pageExit 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

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

/* Minimalist Premium Toast Notification System */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.premium-toast {
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.premium-toast.hide {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.premium-toast .toast-icon {
  font-size: 1.05rem;
}

.premium-toast.toast-success .toast-icon {
  color: #00ff7f; /* Minimal green accent */
}

.premium-toast.toast-error .toast-icon {
  color: #ff3b30; /* Minimal red accent */
}

/* Bottom Navigation Bar for Mobile */
.mobile-bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 480px;
  height: 72px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  display: none; /* Hidden on desktop */
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.72rem;
  transition: all 0.3s ease;
  width: 64px;
  height: 56px;
  border-radius: 16px;
}

.mobile-nav-link i {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

.mobile-nav-link.active {
  color: var(--accent-pink);
}

.mobile-nav-link.active i {
  transform: translateY(-2px) scale(1.1);
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* Active styles for drawer links */
.drawer-link.active {
  background: rgba(255, 0, 127, 0.08) !important;
  color: var(--accent-pink) !important;
  border-color: rgba(255, 0, 127, 0.15) !important;
  font-weight: 700;
}

.drawer-link.active i {
  color: var(--accent-pink) !important;
}

/* Responsive configurations for bottom nav and header button */
@media (max-width: 1024px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Hide the top drawer menu button on mobile since we have bottom nav */
  .header-tools-btn {
    display: none !important;
  }
  
  /* Add bottom padding to body so the bottom nav doesn't cover content */
  body {
    padding-bottom: 110px !important;
  }
}

/* Header Gift Icon (Black) */
.header-gift-link {
  color: #111111;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}

.header-gift-link:hover {
  color: var(--accent-pink);
  transform: scale(1.1) rotate(5deg);
  background: rgba(0, 0, 0, 0.03);
}

.header-gift-link:active {
  transform: scale(0.95);
}

/* Offset scroll position to clear the fixed glass header */
#solicitud-section {
  scroll-margin-top: 110px;
}

@media (max-width: 1024px) {
  #solicitud-section {
    scroll-margin-top: 85px;
  }
}

.iti {
  width: 100%;
}

