/* ============================================
   Fiserv x Delek Fuel Loyalty Prototype
   styles.css
   ============================================ */

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

:root {
  --navy: #010066;
  --blue: #0033FF;
  --green: #059669;
  --green-light: #d1fae5;
  --red: #dc2626;
  --orange: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --delek-blue: #003087;
  --delek-gold: #f59e0b;
  --fiserv-orange: #ff6600;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

/* ===== SANDBOX Badge ===== */
.header-mobile-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.header-mobile-btn:hover {
  background: rgba(255,255,255,0.25);
}
.sandbox-badge-inline {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  user-select: none;
}

/* ===== Login Gate ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--gray-50);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-overlay.hidden { display: none; }
.login-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.login-card .login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.login-card .login-logo-fiserv {
  font-size: 22px;
  font-weight: 700;
  color: var(--fiserv-orange);
}
.login-card .login-logo-x {
  font-size: 16px;
  color: var(--gray-400);
}
.login-card .login-logo-delek {
  font-size: 22px;
  font-weight: 700;
  color: var(--delek-blue);
}
.login-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.login-card p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
#googleSignInBtn {
  display: flex;
  justify-content: center;
}
.login-error {
  background: #fef2f2;
  color: var(--red);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.login-error.hidden { display: none; }

/* ===== Header Bar ===== */
.header {
  background: var(--navy);
  color: white;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  height: 48px;
  flex-shrink: 0;
}
.header h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.header-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  font-size: 11px;
}
.header-powered img {
  height: 16px;
  filter: brightness(0) invert(1);
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.ok { background: #4ade80; }
.status-dot.error { background: var(--red); }
.status-dot.loading { background: var(--orange); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ===== Three-Panel Layout ===== */
.three-panel {
  display: flex;
  height: calc(100vh - 48px - 56px); /* header + controls bar */
  overflow: hidden;
}

/* Left Panel: iPhone Mockup */
.panel-phone {
  width: 380px;
  min-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  position: relative;
  overflow: hidden;
}
.panel-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Center Panel: API Swimlane */
.panel-swimlane {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  background: white;
  overflow: hidden;
}
.panel-swimlane-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.panel-swimlane-header .badge {
  font-size: 10px;
  padding: 2px 6px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 8px;
  font-weight: 600;
}

/* Right Panel: Back Office */
.panel-backoffice {
  width: 360px;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  overflow-y: auto;
}
.panel-backoffice-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  background: white;
  flex-shrink: 0;
}

/* ===== iPhone Device Frame ===== */
.device-frame.phone {
  position: relative;
  height: calc(100vh - 48px - 56px - 40px);
  max-height: 720px;
  aspect-ratio: 375 / 812;
  border-radius: 44px;
  border: 10px solid #1f2937;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  z-index: 1;
  overflow: hidden;
}

/* Notch */
.device-frame.phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4%;
  background: #1f2937;
  border-radius: 0 0 18px 18px;
  z-index: 20;
}

/* Phone screen fills frame */
.phone-screen-wrapper {
  width: 100%;
  height: 100%;
  background: #f2f2f7;
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== iOS Status Bar ===== */
.ios-status-bar {
  height: 44px;
  background: var(--delek-blue);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 15;
}
.ios-time {
  font-size: 14px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}
.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== iOS Nav Bar ===== */
.ios-nav-bar {
  background: var(--delek-blue);
  padding: 4px 16px 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ios-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.2px;
}
.ios-nav-back {
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  background: none;
  border: none;
  padding: 0;
}
.ios-nav-back svg {
  width: 16px;
  height: 16px;
}

/* ===== Gear Status Bar ===== */
.gear-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #010066 0%, #1a237e 100%);
    color: white;
}

.gear-badge-icon { font-size: 24px; width: 32px; text-align: center; }
.gear-status-info { flex: 1; }
.gear-name { font-weight: 700; font-size: 13px; letter-spacing: 0.5px; }
.gear-progress-text { font-size: 11px; opacity: 0.85; margin-top: 1px; }

.gear-discount-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.gear-progress-bar {
    padding: 0 16px 6px;
    background: linear-gradient(135deg, #010066 0%, #1a237e 100%);
}

.gear-progress-segments { display: flex; gap: 3px; height: 4px; }

.gear-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.gear-segment.completed { background: #4caf50; }
.gear-segment.active { background: rgba(255, 255, 255, 0.15); }

.gear-segment-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: #ffc107;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== Phone Screen Content ===== */
.ios-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  position: relative;
}
.ios-content::-webkit-scrollbar { width: 3px; }
.ios-content::-webkit-scrollbar-track { background: transparent; }
.ios-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* Screen containers (show/hide) */
.phone-screen {
  display: none;
  width: 100%;
  min-height: 100%;
}
.phone-screen.active {
  display: block;
}

/* ===== iOS Tab Bar ===== */
.ios-tab-bar {
  height: 64px;
  background: white;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
  flex-shrink: 0;
}
.ios-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gray-400);
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
}
.ios-tab.active { color: var(--delek-blue); }
.ios-tab svg { width: 20px; height: 20px; }

/* ===== Screen 1: Stations ===== */
.station-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  margin: 8px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.station-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.station-card:active {
  transform: scale(0.98);
}
.station-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.station-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}
.station-distance {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}
.station-address {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.station-pumps {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.station-prices {
  display: flex;
  gap: 6px;
}
.price-chip {
  background: var(--gray-100);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
}
.price-chip .grade {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 10px;
}
.station-icon {
  width: 32px;
  height: 32px;
  background: #ebefff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Store Card States ===== */
.station-card.store-active {
  border: 2px solid var(--delek-blue);
  position: relative;
}
.station-card.store-inactive {
  opacity: 0.5;
  pointer-events: none;
}
.store-here-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--delek-blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.store-reward-hint {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--green-light);
  border-radius: 8px;
  font-size: 11px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}
.store-reward-hint svg {
  flex-shrink: 0;
}
.gear-hint-badge { font-size: 14px; margin-right: 4px; }
.store-claim-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--delek-blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.store-claim-btn:hover { background: #002070; }
.store-not-here {
  margin-top: 8px;
  font-size: 11px;
  color: var(--gray-400);
  font-style: italic;
}

/* ===== Reward Skip Button ===== */
.reward-skip-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: none;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}
.reward-skip-btn:hover { color: var(--gray-700); }

/* ===== Screen 2: Pumps ===== */
.pump-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}
.pump-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
}
.pump-circle:hover {
  border-color: var(--delek-blue);
  color: var(--delek-blue);
  background: #ebefff;
}
.pump-circle.selected {
  background: var(--delek-blue);
  border-color: var(--delek-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}
.pump-circle.occupied {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}
.pump-status-label {
  font-size: 10px;
  text-align: center;
  color: var(--gray-400);
  margin-top: -4px;
}

/* ===== Screen 3: Notification ===== */
.notification-banner {
  margin: 12px;
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--delek-blue), #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-icon svg { width: 18px; height: 18px; color: white; }
.notif-content { flex: 1; }
.notif-app {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.notif-body {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.3;
}
.notif-time {
  font-size: 10px;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* ===== Screen 4: Reward Detail ===== */
.reward-card {
  margin: 12px;
  background: white;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.reward-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.reward-icon svg { width: 24px; height: 24px; color: white; }
.reward-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.reward-description {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 12px;
  line-height: 1.4;
}
.reward-grades {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.grade-badge {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
}
.grade-badge.eligible {
  background: #dbeafe;
  color: #1d4ed8;
}
.reward-apply-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.reward-apply-btn:hover { background: #047857; }
.reward-apply-btn:active { background: #065f46; }
.reward-terms {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 10px;
  line-height: 1.3;
}

/* ===== Reward Gear Detail ===== */
.reward-gear-detail {
    background: #f9fafb;
    border-radius: 10px;
    padding: 4px 0;
}

.reward-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.reward-detail-row:last-child { border-bottom: none; }
.reward-detail-row .label { color: #6b7280; }
.reward-detail-row .val { font-weight: 500; color: #010066; }

/* ===== Screen 5: Payment ===== */
.payment-card-display {
  margin: 16px 12px 12px;
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 14px;
  padding: 20px;
  color: white;
}
.payment-card-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 16px;
}
.payment-card-number {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  margin-bottom: 12px;
}
.payment-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.7;
}
.pre-auth-info {
  margin: 0 12px 12px;
  padding: 12px 16px;
  background: #fef3c7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pre-auth-info svg { width: 18px; height: 18px; color: #92400e; flex-shrink: 0; }
.pre-auth-info .info-text {
  font-size: 12px;
  color: #78350f;
}
.pre-auth-info .info-amount {
  font-weight: 700;
  font-size: 14px;
}
.grade-selector {
  margin: 0 12px 16px;
  background: white;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 0;
}
.grade-option {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-align: center;
}
.grade-option.selected {
  background: var(--delek-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 48, 135, 0.3);
}
.start-fueling-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--delek-blue);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.start-fueling-btn:hover { background: #002070; }

/* ===== Screen 6: Fueling Animation ===== */
.fueling-display {
  padding: 16px 12px;
  text-align: center;
}
.fueling-pump-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  animation: pumpBounce 1.5s ease-in-out infinite;
}
@keyframes pumpBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.fueling-counter {
  margin-bottom: 8px;
}
.fueling-counter .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.fueling-counter .value {
  font-size: 36px;
  font-weight: 800;
  font-family: 'SF Mono', 'Courier New', monospace;
  color: var(--gray-900);
  letter-spacing: -1px;
}
.fueling-counter .value.green {
  color: var(--green);
}
.fueling-counter.savings {
  background: var(--green-light);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 12px 0;
}
.fueling-counter.savings .label {
  color: var(--green);
}
.fueling-counter.savings .value {
  font-size: 28px;
  color: var(--green);
}
.fueling-prices {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}
.fueling-price-item {
  text-align: center;
}
.fueling-price-item .label {
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fueling-price-item .amount {
  font-size: 20px;
  font-weight: 700;
  font-family: 'SF Mono', 'Courier New', monospace;
}
.fueling-price-item .amount.regular {
  color: var(--gray-500);
  text-decoration: line-through;
}
.fueling-price-item .amount.discounted {
  color: var(--green);
}
.gallon-cap-bar {
  margin: 16px 12px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 12px 16px;
}
.gallon-cap-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.gallon-cap-track {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.gallon-cap-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #10b981);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.stop-fueling-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 16px 12px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.stop-fueling-btn:hover { background: #b91c1c; }

/* ===== Screen 7: Receipt / Celebration ===== */
.receipt-display {
  padding: 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.receipt-saved {
  font-size: 42px;
  font-weight: 800;
  color: var(--green);
  margin: 8px 0;
  letter-spacing: -1px;
}
.receipt-saved-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.receipt-gamification {
  margin: 16px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}
.receipt-gamification svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.receipt-details {
  margin: 16px 0;
  background: white;
  border-radius: 12px;
  text-align: left;
  overflow: hidden;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .receipt-label {
  color: var(--gray-500);
}
.receipt-row .receipt-value {
  font-weight: 600;
  color: var(--gray-900);
}
.receipt-points {
  margin: 12px 0 16px;
  padding: 14px;
  background: #ebefff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.receipt-points svg { width: 20px; height: 20px; color: var(--delek-blue); }
.receipt-points .pts-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--delek-blue);
}
.receipt-points .pts-label {
  font-size: 12px;
  color: var(--gray-500);
}
.new-transaction-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--delek-blue);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.new-transaction-btn:hover { background: #002070; }

/* Confetti */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}
.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  animation: confettiFall 3s ease-in forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(220px) rotate(720deg); opacity: 0; }
}

/* ===== Profile — Gear-Based ===== */
.profile-header {
    padding: 20px 12px;
    text-align: center;
}
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003087, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}
.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.profile-since {
    font-size: 12px;
    color: #6b7280;
}

.gear-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #010066, #1a237e);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.gear-tier-icon { font-size: 16px; }

.profile-stats-row {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-stat { text-align: center; }
.profile-stat-value { font-size: 22px; font-weight: 700; color: #010066; }
.profile-stat-label { font-size: 11px; color: #6b7280; margin-top: 2px; }

.profile-next-gear {
    margin: 12px 16px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 10px;
}

.profile-next-label { font-size: 13px; color: #010066; }
.profile-next-detail { font-size: 11px; color: #6b7280; margin-top: 2px; }

.profile-next-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.profile-next-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 3px;
    transition: width 0.5s;
}

.profile-gear-breakdown { padding: 12px 16px; }

.profile-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.profile-gear-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pg-icon { font-size: 20px; width: 28px; text-align: center; }
.pg-info { flex: 1; font-size: 12px; color: #374151; }
.pg-info strong { color: #010066; }
.pg-check { color: #4caf50; font-weight: 700; }
.pg-badge {
    font-size: 9px;
    font-weight: 700;
    color: #010066;
    background: #ebefff;
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.pg-lock { font-size: 14px; opacity: 0.4; }
.profile-gear-item.locked .pg-info { opacity: 0.5; }

.profile-actions { padding: 8px 16px; }
.profile-action-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    cursor: pointer;
}
.profile-arrow { color: #9ca3af; font-size: 18px; }

/* ===== API Swimlane ===== */
.swimlane-columns {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.swimlane-col-header {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-right: 1px solid var(--gray-100);
}
.swimlane-col-header:last-child { border-right: none; }
.swimlane-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 0;
}
.swimlane-step {
  display: flex;
  align-items: center;
  padding: 6px 0;
  animation: stepFadeIn 0.4s ease;
  position: relative;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.swimlane-arrow {
  position: relative;
  height: 28px;
  margin: 2px 0;
  display: flex;
  align-items: center;
}
.swimlane-arrow-line {
  height: 2px;
  background: var(--blue);
  position: absolute;
  transition: width 0.5s ease;
}
.swimlane-arrow-head {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--blue);
  position: absolute;
}
.swimlane-label {
  position: absolute;
  top: -2px;
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  background: white;
  padding: 0 4px;
}
.swimlane-response-time {
  font-size: 9px;
  color: var(--gray-400);
  font-family: monospace;
  margin-left: 4px;
}
.swimlane-step-row {
  display: flex;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--gray-100);
  animation: stepFadeIn 0.4s ease;
}
.swimlane-step-row:last-child { border-bottom: none; }
.swimlane-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 8px;
}
.swimlane-step-info {
  flex: 1;
  min-width: 0;
}
.swimlane-step-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
}
.swimlane-step-endpoints {
  font-size: 10px;
  color: var(--gray-400);
}
.swimlane-step-time {
  font-size: 10px;
  color: var(--gray-400);
  font-family: monospace;
  flex-shrink: 0;
  margin-left: 8px;
}
.swimlane-step-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 8px;
}
.swimlane-step-status.success { background: #4ade80; }
.swimlane-step-status.pending { background: var(--gray-300); }
.swimlane-step-status.active { background: var(--orange); animation: pulse 1s infinite; }

/* Conexxus Message Badges */
.cxs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 4px;
    font-size: 10px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #0d9488;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s;
}
.cxs-badge:hover {
    background: #ccfbf1;
}
.cxs-badge .cxs-arrow {
    font-size: 8px;
    opacity: 0.6;
}
.cxs-detail {
    display: none;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 4px;
    font-size: 10px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #134e4a;
    line-height: 1.5;
    white-space: pre-wrap;
}
.cxs-detail.expanded {
    display: block;
}

/* ===== Back Office Cards ===== */
.bo-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin: 8px 12px;
  overflow: hidden;
}
.bo-card-header {
  padding: 6px 12px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bo-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bo-card-body { padding: 10px 12px; }

/* Active Rule */
.rule-type-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rule-type-badge.fuel { background: #dbeafe; color: #1d4ed8; }
.rule-type-badge.combo { background: #fef3c7; color: #92400e; }
.rule-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 8px 0 4px;
}
.rule-detail {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.rule-detail:last-child { border-bottom: none; }
.rule-detail .label { color: var(--gray-500); }
.rule-detail .val { font-weight: 600; color: var(--gray-700); }

/* Transaction Timeline */
.timeline {
  position: relative;
  padding-left: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  padding: 4px 0 12px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -17px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--gray-300);
}
.timeline-dot.active {
  border-color: var(--blue);
  background: var(--blue);
}
.timeline-dot.success {
  border-color: var(--green);
  background: var(--green);
}
.timeline-event {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
}
.timeline-time {
  font-size: 10px;
  color: var(--gray-400);
  font-family: monospace;
}

/* Member Status */
.member-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
}
.member-info-row .label { color: var(--gray-500); }
.member-info-row .val { font-weight: 600; color: var(--gray-700); }
.member-tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: white;
}

/* ===== Gear Program Table (Back Office) ===== */
.gear-program-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.gear-program-table th {
    text-align: left;
    padding: 5px 10px;
    font-size: 9px;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.gear-program-table td {
    padding: 5px 10px;
    font-size: 11px;
    border-bottom: 1px solid #f3f4f6;
}

.gear-row-active { background: #ebefff; font-weight: 600; }
.gear-row-active td { color: #010066; }

.gear-program-footer {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    font-size: 11px;
    border-top: 1px solid #f3f4f6;
}

.bo-info-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 11px;
}
.bo-info-row .label { color: var(--gray-500); }
.bo-info-row .val { font-weight: 600; color: var(--gray-700); }

/* ===== Controls Bar ===== */
.controls-bar {
  height: 56px;
  background: white;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}
.controls-bar .field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.controls-bar .field label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}
.controls-bar .field input,
.controls-bar .field select {
  padding: 5px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 12px;
  background: white;
  font-family: inherit;
  min-width: 0;
}
.controls-bar .field input:focus,
.controls-bar .field select:focus {
  outline: none;
  border-color: var(--blue);
}
.controls-bar .controls-spacer { flex: 1; }
.controls-bar button {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-demo {
  background: var(--green);
  color: white;
}
.btn-demo:hover { background: #047857; }
.btn-reset {
  background: white;
  border-color: var(--gray-300);
  color: var(--gray-700);
}
.btn-reset:hover { background: var(--gray-100); }

/* ===== Empty States ===== */
.swimlane-empty, .bo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 12px;
}
.swimlane-empty svg, .bo-empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .panel-backoffice {
    display: none;
  }
  .panel-phone {
    width: 280px;
    min-width: 280px;
  }
}

/* ===== Screen Section Headers (inside phone) ===== */
.screen-section-header {
  padding: 14px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
}
.screen-hero {
  padding: 20px 16px;
  text-align: center;
}
.screen-hero h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.screen-hero p {
  font-size: 12px;
  color: var(--gray-500);
}

/* ===== POS Toggle ===== */
.pos-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.pos-toggle-btn {
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 500;
  background: white;
  color: var(--gray-500);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  border-right: 1px solid var(--gray-200);
}
.pos-toggle-btn:last-child { border-right: none; }
.pos-toggle-btn.active {
  background: var(--delek-blue);
  color: white;
}

/* ===== Before/After Toggle ===== */
.toggle-switch {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.toggle-btn {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  background: white;
  color: var(--gray-500);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  border-right: 1px solid var(--gray-200);
  white-space: nowrap;
}
.toggle-btn:last-child { border-right: none; }
.toggle-btn.active {
  background: var(--delek-blue);
  color: white;
}

/* Comparison Content */
.comparison-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row .label { color: var(--gray-500); }
.comparison-row .val { font-weight: 600; color: var(--gray-700); }
.comparison-row .val.savings { color: var(--green); font-weight: 700; }
.comparison-row .val.no-savings { color: var(--gray-400); }
.comparison-total-bar {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.comparison-total-bar.without {
  background: var(--gray-100);
  color: var(--gray-700);
}
.comparison-total-bar.with {
  background: var(--green-light);
  color: var(--green);
}

/* ===== Edit Rule Link ===== */
.edit-rule-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.edit-rule-link:hover { opacity: 0.7; }
.edit-rule-link svg { width: 12px; height: 12px; }

/* ===== QR Code Modal ===== */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.qr-modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.qr-modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideUp 0.3s ease;
}
@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.qr-modal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.qr-modal p {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.qr-modal img {
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
}
.qr-modal .qr-url {
  font-size: 11px;
  font-family: monospace;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 8px 12px;
  border-radius: 6px;
  word-break: break-all;
  margin-bottom: 16px;
}
.qr-modal .qr-close-btn {
  padding: 8px 20px;
  border: 1px solid var(--gray-300);
  background: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-700);
  font-family: inherit;
}
.qr-modal .qr-close-btn:hover { background: var(--gray-100); }

/* ===== POS Badge in Swimlane ===== */
.swimlane-pos-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  margin-left: 4px;
  vertical-align: middle;
}

/* ===== Test Card Selector ===== */
.test-card-selector {
  margin: 0 12px 8px;
}
.test-card-selector label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.test-card-selector select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 11px;
  background: white;
  font-family: inherit;
  color: var(--gray-700);
  cursor: pointer;
}
.test-card-selector select:focus {
  outline: none;
  border-color: var(--blue);
}

/* ===== Push Notification Toast (Receipt) ===== */
.push-notification-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 8px;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex;
  gap: 10px;
  align-items: center;
  animation: pushSlideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}
.push-notification-toast.dismissing {
  opacity: 0;
  transform: translateY(-100%);
}
@keyframes pushSlideDown {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.push-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.push-notif-icon svg { width: 16px; height: 16px; color: white; }
.push-notif-content { flex: 1; }
.push-notif-app {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.push-notif-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.3;
}
.push-notif-time {
  font-size: 10px;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* ===== Utility ===== */
.hidden { display: none !important; }

/* ===== ACH Enrollment ===== */
.ach-hero {
    text-align: center;
    padding: 24px 20px 16px;
    background: linear-gradient(135deg, #010066, #1a237e);
    color: white;
}

.ach-hero-icon { font-size: 40px; margin-bottom: 8px; }
.ach-hero-title { font-size: 20px; font-weight: 700; margin: 0; }
.ach-hero-sub { font-size: 13px; opacity: 0.85; margin-top: 8px; line-height: 1.4; }

.ach-form { padding: 20px 16px; }

.ach-field { margin-bottom: 14px; }
.ach-field label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.ach-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    color: #111827;
    box-sizing: border-box;
}

.ach-field-row { display: flex; gap: 12px; }

.ach-security { margin: 16px 0; }
.ach-security-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; padding: 4px 0; }
.ach-security-icon { font-size: 14px; width: 20px; text-align: center; }
.ach-fiserv-badge { font-size: 11px; color: #9ca3af; margin-top: 8px; text-align: center; }

.ach-connect-btn { margin-top: 8px; }

.ach-success { text-align: center; padding: 40px 20px; }
.ach-success-check {
    width: 60px; height: 60px; margin: 0 auto 16px;
    background: #4caf50; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
}
.ach-success-title { font-size: 22px; font-weight: 700; color: #010066; margin: 0; }
.ach-success-gear { margin-top: 20px; }

/* ===== Wallet ACH Card ===== */
.wallet-ach-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}
.wallet-card-row { display: flex; justify-content: space-between; align-items: center; }
.wallet-ach-badge {
    font-size: 11px; font-weight: 600; color: #4caf50;
    background: #f0fdf4; padding: 4px 10px; border-radius: 12px;
}
.wallet-fiserv-row {
    font-size: 10px; color: #9ca3af; margin-top: 10px;
    padding-top: 8px; border-top: 1px solid #f3f4f6;
}
.wallet-gear-summary {
    background: white; border: 1px solid #e5e7eb; border-radius: 10px;
}
.wallet-gear-row {
    display: flex; justify-content: space-between;
    padding: 10px 14px; font-size: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.wallet-gear-row:last-child { border-bottom: none; }

/* ── Secure Data Capture (Fiserv iframe fields) ── */
.sdc-field-group {
    margin-bottom: 10px;
}
.sdc-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.sdc-iframe-container {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 38px;
    transition: border-color 0.15s;
}
.sdc-iframe-container:focus-within {
    border-color: #1a56db;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.1);
}
.sdc-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Plans Tab (Admin Phone Mockup) ===== */
.plans-sub-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
}
.plans-sub-tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.plans-sub-tab.active {
    color: var(--delek-blue);
    border-bottom-color: var(--delek-blue);
}
.plans-sub-content { display: none; }
.plans-sub-content.active { display: block; }

.plan-category-header {
    padding: 16px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-500);
}

.plan-card {
    background: white;
    border-radius: 14px;
    margin: 8px 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.plan-card:active { transform: scale(0.98); }
.plan-card-hero {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: var(--gray-100);
}
.plan-card-body { padding: 14px 16px; }
.plan-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.plan-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}
.plan-card-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--delek-blue);
    background: #ebefff;
    padding: 3px 10px;
    border-radius: 12px;
}
.plan-card-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.plan-badge-active {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green);
    background: var(--green-light);
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 8px;
}

.plan-detail-hero {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--gray-100);
}
.plan-detail-body { padding: 20px 16px; }
.plan-detail-name { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.plan-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
}
.plan-detail-price { font-size: 28px; font-weight: 800; color: var(--delek-blue); }
.plan-detail-interval { font-size: 14px; color: var(--gray-500); }
.plan-detail-desc {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
}
.plan-detail-features {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.plan-detail-features h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-700);
}
.plan-feature-item svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.plan-subscribe-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--delek-blue);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.plan-subscribe-btn:active { background: #002070; }
.plan-subscribe-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}
.plan-subscribed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: #dcfce7;
    color: #15803d;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.plan-cancel-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: 2px solid #ef4444;
    border-radius: 14px;
    background: transparent;
    color: #ef4444;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.plan-cancel-btn:active { background: #fef2f2; }
.plan-trial-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.plan-payment-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 14px;
    margin: 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.plan-payment-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--gray-100);
}
.plan-payment-info { flex: 1; }
.plan-payment-name { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.plan-payment-price { font-size: 13px; font-weight: 700; color: var(--delek-blue); }

.plan-sdc-section {
    background: white;
    border-radius: 14px;
    margin: 0 14px 14px;
    padding: 18px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.plan-sdc-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.plan-sdc-field {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    min-height: 44px;
    background: var(--gray-50);
}
.plan-sdc-row {
    display: flex;
    gap: 10px;
}
.plan-sdc-row .plan-sdc-field { flex: 1; }

.plan-fallback-input {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    min-height: 20px;
    background: var(--gray-50);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}
.plan-fallback-input:focus {
    border-color: var(--blue-500, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
.plan-sdc-row .plan-fallback-input { flex: 1; }

.plan-confirm-btn {
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--green);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.plan-confirm-btn:active { background: #047857; }
.plan-confirm-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}
.plan-confirm-btn .btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.plan-success-display {
    padding: 60px 24px 24px;
    text-align: center;
}
.plan-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.plan-success-icon svg { width: 40px; height: 40px; color: var(--green); }
.plan-success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.plan-success-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.4;
}
.plan-success-card {
    background: white;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: left;
}
.plan-success-card .label { font-size: 12px; color: var(--gray-500); margin-bottom: 2px; }
.plan-success-card .value { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.plan-success-card .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.plan-success-card .row:last-child { border-bottom: none; }
.plan-success-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--delek-blue);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 10px;
}
.plan-success-btn:active { background: #002070; }
.plan-success-btn.secondary {
    background: none;
    color: var(--delek-blue);
    border: 1.5px solid var(--delek-blue);
}

.my-plan-card {
    background: white;
    border-radius: 14px;
    margin: 8px 14px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.my-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.my-plan-name { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.my-plan-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 8px;
}
.my-plan-status.active { background: var(--green-light); color: var(--green); }
.my-plan-status.trialing { background: #dbeafe; color: #2563eb; }
.my-plan-status.cancelled { background: #fef2f2; color: var(--red); }
.my-plan-status.past-due { background: #fef3c7; color: #92400e; }
.my-plan-detail { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.my-plan-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}
.my-plan-action-btn {
    flex: 1;
    padding: 8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    font-family: inherit;
}
.my-plan-action-btn.danger { border-color: #fecaca; color: var(--red); }
.my-plan-action-btn:active { background: var(--gray-50); }

.billing-card {
    background: white;
    border-radius: 14px;
    margin: 8px 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.billing-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.billing-card-plan { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.billing-card-amount { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.billing-card-meta { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.billing-card-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}
.billing-card-status.paid { background: var(--green-light); color: var(--green); }
.billing-card-status.pending { background: #fef3c7; color: #92400e; }
.billing-card-status.failed { background: #fef2f2; color: var(--red); }

.plans-empty {
    padding: 60px 24px;
    text-align: center;
}
.plans-empty svg { width: 48px; height: 48px; color: var(--gray-300); margin-bottom: 14px; }
.plans-empty h3 { font-size: 16px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.plans-empty p { font-size: 13px; color: var(--gray-400); margin-bottom: 18px; }
.plans-empty-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--delek-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.plans-loading {
    padding: 60px 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}
.plans-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
    border-color: var(--gray-200);
    border-top-color: var(--delek-blue);
    margin: 0 auto 12px;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.payment-processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 50;
}
.payment-processing-overlay.hidden { display: none; }
.payment-processing-overlay .processing-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--delek-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.payment-processing-overlay .processing-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
}

.plan-trial-note {
    text-align: center;
    font-size: 12px;
    color: #2563eb;
    padding: 8px 14px 0;
    font-weight: 500;
}
