/* ==========================================================================
   Radja Kukus Bali - High Conversion, Social Reviews & Mentions Styles
   ========================================================================== */

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

:root {
  --primary-red: #A81C1C;
  --primary-red-dark: #7A1212;
  --primary-red-light: #FFECEC;
  --balinese-green: #1E4D2B;
  --balinese-green-dark: #12331B;
  --gold-accent: #D4AF37;
  --gold-light: #FFF8E7;
  --bg-app: #F4F5F7;
  --bg-cream: #FAF6EE;
  --card-bg: #FFFFFF;
  --text-main: #1C1C1E;
  --text-muted: #6E6E73;
  --border-color: #E5E5EA;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(168, 28, 28, 0.1);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-announcement-bar {
  background: #1C1C1E;
  color: var(--gold-accent);
  text-align: center;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--gold-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header, .admin-header {
  background: rgba(122, 18, 18, 0.96);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  background: white;
  padding: 2px;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--gold-accent);
  font-weight: 600;
  text-transform: uppercase;
}

.btn-wa-header {
  background: #25D366;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.hero-section {
  position: relative;
  background: linear-gradient(180deg, var(--primary-red-dark) 0%, #FAF6EE 100%);
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-accent);
  color: var(--primary-red-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 1.8rem;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: #FFE6E6;
  margin-bottom: 1rem;
}

.btn-hero-cta {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--primary-red-dark);
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
  border: 2px solid #FFFFFF;
}

.btn-hero-share-wa {
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
  max-width: 400px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.urgency-timer-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--gold-accent);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.timer-label {
  font-size: 0.68rem;
  color: var(--gold-accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.timer-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111;
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 42px;
}

.timer-unit span {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.timer-unit label {
  font-size: 0.55rem;
  color: #CCC;
}

.timer-colon {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.lead-form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.15rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: left;
}

.quota-container {
  background: #FFF8F0;
  border: 1.5px solid #F5D0A9;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 1rem;
}

.quota-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-red-dark);
  margin-bottom: 4px;
}

.quota-progress-track {
  height: 10px;
  background: #EAD8C0;
  border-radius: 5px;
  overflow: hidden;
}

.quota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF9900, var(--primary-red));
  border-radius: 5px;
}

.quota-status-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-top: 4px;
  text-align: center;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.05rem;
  color: var(--primary-red);
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px 10px 42px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #FDFBF7;
}

.btn-submit-lead {
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  color: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(168, 28, 28, 0.3);
}

.voucher-result-section {
  display: none;
  max-width: 540px;
  margin: -1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.celebration-banner {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--primary-red-dark);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.celebration-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.cashier-instruction-box {
  background: #E8F5E9;
  border: 1.5px solid #2E7D32;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instruction-text {
  font-size: 0.8rem;
  color: #1B5E20;
}

/* Social Review & Mention Section */
.social-review-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  margin-top: 1.5rem;
  border: 2px solid var(--gold-accent);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.review-badge {
  display: inline-block;
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.social-review-box h3 {
  font-size: 1.2rem;
  color: var(--primary-red-dark);
  margin-bottom: 6px;
}

.social-review-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.mention-handle {
  display: inline-block;
  background: #1C1C1E;
  color: var(--gold-accent);
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.btn-social-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.btn-social-platform:hover {
  transform: translateY(-3px);
}

.btn-social-platform.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-social-platform.tt {
  background: #000000;
  border: 1px solid #25F4EE;
}

.btn-social-platform.wa {
  background: #25D366;
}

.btn-social-platform small {
  font-size: 0.7rem;
  opacity: 0.9;
  margin-top: 2px;
}

.voucher-card-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid var(--gold-accent);
}

#voucher-printable-card {
  background: linear-gradient(135deg, #7A1212 0%, #A81C1C 60%, #4D0909 100%);
  color: white;
  padding: 1.5rem 1.15rem;
}

.voucher-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.voucher-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voucher-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-accent);
  background: white;
}

.voucher-title-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.voucher-body-grid {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 1rem;
  align-items: center;
}

.voucher-customer-name {
  font-size: 1.15rem;
  font-weight: 800;
}

.voucher-code-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--gold-accent);
  border-radius: var(--radius-sm);
  padding: 6px;
  text-align: center;
  margin: 0.5rem 0;
}

.voucher-code-value {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
}

.voucher-qr-container {
  background: white;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.voucher-qr-container canvas, .voucher-qr-container img {
  width: 95px !important;
  height: 95px !important;
}

.voucher-actions-footer {
  background: #FAF6EE;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-download-voucher {
  background: var(--balinese-green);
  color: white;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.btn-wa-claim {
  background: #25D366;
  color: white;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.btn-share-result-wa {
  background: #00E676;
  color: #111;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.admin-body { background: #F2F2F7; }
.admin-app-container { max-width: 800px; margin: 0 auto; padding: 1rem 0.85rem 3rem; }
.admin-segmented-control { display: flex; background: #E3E3E8; padding: 3px; border-radius: 12px; margin-bottom: 1.25rem; }
.segment-btn { flex: 1; padding: 10px; border-radius: 9px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); background: transparent; text-align: center; }
.segment-btn.active { background: #FFFFFF; color: var(--text-main); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 1.25rem; }
.stat-card-app { background: #FFFFFF; padding: 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.stat-card-app.red { border-top: 4px solid var(--primary-red); }
.stat-card-app.green { border-top: 4px solid var(--balinese-green); }
.stat-card-app.gold { border-top: 4px solid var(--gold-accent); }
.stat-card-app.blue { border-top: 4px solid #007AFF; }
.stat-app-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.stat-app-value { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-top: 2px; }
.admin-app-card { background: #FFFFFF; border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 1.25rem; }
.btn-app-scan-qr { width: 100%; min-height: 52px; background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark)); color: white; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 1rem; }
.verify-input-flex { display: flex; gap: 8px; }
.btn-app-verify { background: var(--balinese-green); color: white; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; }
.mobile-leads-list { display: flex; flex-direction: column; gap: 10px; }
.lead-item-card { background: #FFFFFF; border-radius: var(--radius-sm); padding: 1rem; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.lead-item-header { display: flex; justify-content: space-between; align-items: center; }
.lead-code-badge { font-family: monospace; font-size: 1rem; font-weight: 800; color: var(--primary-red); background: var(--primary-red-light); padding: 3px 8px; border-radius: 6px; }
.status-tag { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 12px; }
.status-tag.belum { background: #E3F2FD; color: #1976D2; }
.status-tag.sudah { background: #E8F5E9; color: #2E7D32; }
.lead-item-body { font-size: 0.85rem; }
.lead-customer-name { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.lead-item-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F2F2F7; padding-top: 6px; margin-top: 2px; }
.btn-app-redeem-now { background: var(--balinese-green); color: white; padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; }
.desktop-only-table { display: none; }

@media (min-width: 768px) {
  .desktop-only-table { display: table; }
  .mobile-leads-list { display: none; }
  .admin-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.modal-backdrop, .scanner-modal-backdrop { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.82); z-index: 2000; justify-content: center; align-items: center; padding: 1rem; backdrop-filter: blur(8px); }
.modal-card, .scanner-modal-content { background: white; width: 100%; max-width: 440px; border-radius: var(--radius-md); padding: 1.25rem; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4); }
.social-proof-container { position: fixed; bottom: 15px; left: 15px; right: 15px; z-index: 999; pointer-events: none; }
.social-proof-toast { background: rgba(28, 28, 30, 0.94); color: white; padding: 10px 14px; border-radius: 25px; border: 1px solid var(--gold-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); display: flex; align-items: center; gap: 10px; transform: translateY(30px); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.social-proof-toast.show { transform: translateY(0); opacity: 1; }

.menu-section { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.category-tabs { display: flex; overflow-x: auto; white-space: nowrap; gap: 8px; margin-bottom: 1.5rem; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.category-tab-btn { background: white; color: var(--text-main); border: 1.5px solid var(--border-color); padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.82rem; flex-shrink: 0; }
.category-tab-btn.active { background: var(--primary-red); color: white; border-color: var(--primary-red); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.menu-card { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.menu-img-wrapper { position: relative; height: 160px; }
.menu-img { width: 100%; height: 100%; object-fit: cover; }
.menu-badge { position: absolute; top: 8px; left: 8px; background: var(--gold-accent); color: var(--primary-red-dark); font-size: 0.68rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.menu-card-body { padding: 0.85rem; display: flex; flex-direction: column; flex: 1; }
.menu-card-title { font-size: 1rem; margin-bottom: 0.25rem; }
.menu-card-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; flex: 1; }
.menu-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F2F2F7; padding-top: 0.5rem; }
.menu-price { font-size: 1.05rem; font-weight: 800; color: var(--primary-red); }
.btn-order-direct { background: var(--primary-red-light); color: var(--primary-red); padding: 5px 10px; border-radius: 16px; font-size: 0.78rem; font-weight: 700; }
.site-footer { margin-top: auto; background: var(--primary-red-dark); color: white; padding: 1.5rem 0; text-align: center; font-size: 0.8rem; border-top: 3px solid var(--gold-accent); }
