/* ==========================================================================
   ZayanPay Modern Payment Gateway & Checkout UI Stylesheet
   Based on BDETOPUP / Saikot.bd live mobile & desktop checkout screenshots
   ========================================================================== */

:root {
  --primary-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --bangla-font: 'Hind Siliguri', 'Kalpurush', 'SolaimanLipi', var(--primary-font);
  
  /* Theme Colors (Matched with ZayanPay Landing Page http://127.0.0.1:8088/) */
  --bg-gradient-start: #f0f9ff;
  --bg-gradient-mid: #e0f2fe;
  --bg-gradient-end: #f8fafc;
  
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --accent-purple: #0284c7;
  --accent-purple-hover: #0369a1;
  --accent-blue: #0284c7;
  --accent-sky: #0ea5e9;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-emerald: #059669;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  
  /* bKash Branding */
  --bkash-primary: #d12053;
  --bkash-dark: #b01040;
  --bkash-light: #fbebf0;
  
  /* Nagad Branding */
  --nagad-primary: #f7941d;
  --nagad-dark: #d87607;
  
  /* Rocket Branding */
  --rocket-primary: #8c388e;
  --rocket-dark: #6e2770;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(14, 165, 233, 0.12), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-modal: 0 25px 50px -12px rgba(15, 61, 145, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--primary-font);
  background: radial-gradient(ellipse at 50% 0%, #dbeafe 0%, #e0f2fe 30%, #f0f9ff 65%, #f8fafc 100%);
  min-height: 100vh;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

/* ---------------- Top Simulation & Navigation Bar ---------------- */
.prototype-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  color: #0f172a;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.prototype-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.prototype-logo .badge-version {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.prototype-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
}

.prototype-tab-btn {
  background: transparent;
  border: none;
  color: #475569;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.prototype-tab-btn:hover {
  color: #0284c7;
  background: rgba(255, 255, 255, 0.85);
}

.prototype-tab-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.prototype-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sim {
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-sim-sms {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.btn-sim-sms:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
}

.btn-sim-fail {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.btn-sim-fail:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* ---------------- Main Layout Wrapper ---------------- */
.app-container {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 20px;
  width: 100%;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VIEW 1: E-Commerce Checkout Store (with Complete Order AJAX trigger)
   ========================================================================== */
.store-checkout-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.store-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-brand .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.store-brand h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.store-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .store-body {
    grid-template-columns: 1fr;
  }
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.order-item-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.order-item-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.order-item-price {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.payment-method-selector-box {
  background: #fafafa;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
}

.payment-option-pill {
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.payment-option-pill.active {
  border-color: #0284c7;
  background: #f0f9ff;
}

.payment-option-pill input[type="radio"] {
  accent-color: #0284c7;
  width: 18px;
  height: 18px;
}

.btn-complete-order {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s;
}

.btn-complete-order:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* ==========================================================================
   AJAX PAYMENT POPUP MODAL (Screen 1 Flow)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.open {
  display: flex;
}

.payment-modal-box {
  background: #fff;
  width: 95vw;
  max-width: 1240px;
  height: 92vh;
  max-height: 880px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-fallback-window {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-fallback-window:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.btn-close-modal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-body-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden !important;
  position: relative;
  background: #ffffff;
}

.modal-body-content::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
}

/* Ensure embedded checkout instance inside modal is seamless and has NO horizontal scrollbar */
#modalCheckoutInstance {
  max-width: 100% !important;
  width: 100% !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 24px 32px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#modalCheckoutInstance .checkout-main-grid {
  grid-template-columns: 360px 1fr !important;
  gap: 24px !important;
  width: 100% !important;
  min-width: 0 !important;
}

#modalCheckoutInstance .gateway-chooser-panel {
  min-width: 0 !important;
  width: 100% !important;
}

#modalCheckoutInstance .gateway-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  max-height: 480px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 860px) {
  #modalCheckoutInstance .checkout-main-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Loading Spinner Overlay */
.modal-loading-state {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 50;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   SCREEN 1: ZAYANPAY HOSTED PAYMENT CHECKOUT (Exact match to Screenshot 1)
   ========================================================================== */
.ZayanPay-checkout-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 32px 36px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .ZayanPay-checkout-container {
    padding: 16px;
    border-radius: 16px;
  }
}

/* Top Navigation / Header */
.checkout-top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.title-with-back {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-circle-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.btn-circle-back:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(-2px);
}

.checkout-heading-wrap h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.checkout-heading-wrap h1 span {
  color: #0284c7;
}

.checkout-heading-wrap p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.security-trust-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shield-icon-wrap {
  width: 34px;
  height: 34px;
  background: #d1fae5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
}

.trust-badge-text .title {
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
}

.trust-badge-text .subtitle {
  font-size: 11px;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

/* Two-Column Grid */
.checkout-main-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .checkout-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Card: Order & Customer Details */
.order-summary-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.merchant-order-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.merchant-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.merchant-logo-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.merchant-avatar {
  width: 46px;
  height: 46px;
  background: #1e293b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.merchant-details h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.merchant-details .trx-ref {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.merchant-details .expiry-pill {
  font-size: 11px;
  color: #e11d48;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.amount-tag-badge {
  background: #fee2e2;
  color: #e11d48;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subtotal-calc-box {
  border-top: 1px dashed #cbd5e1;
  padding-top: 14px;
  margin-top: 14px;
}

.subtotal-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.total-line .big-amount {
  font-size: 22px;
  font-weight: 800;
  color: #0284c7;
}

/* Customer Details Inset Card */
.customer-details-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.cust-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cust-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-edit-cust {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cust-info-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.cust-row .icon {
  color: #64748b;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.time-warning-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.4;
}

.time-warning-banner .info-icon {
  font-size: 16px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 1px;
}

.sidebar-bottom-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 12px;
}

.sidebar-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.sidebar-bottom-links a:hover {
  color: #2563eb;
}

.lang-select-wrap select {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
}

/* Right Card: Gateway Chooser */
.gateway-chooser-panel {
  display: flex;
  flex-direction: column;
}

.gateway-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gateway-panel-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.gateway-panel-title p {
  font-size: 13px;
  color: var(--text-muted);
}

.secure-tag-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Category Filter Tabs */
.gateway-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.cat-tab-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-tab-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.cat-tab-btn.active {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

.gateway-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.gateway-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
  color: #0f172a;
}

.gateway-search-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.gateway-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Gateway Cards Grid */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px;
  padding-right: 8px;
}

.gateway-grid::-webkit-scrollbar {
  width: 6px;
}

.gateway-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

@media (max-width: 540px) {
  .gateway-grid {
    grid-template-columns: 1fr;
  }
}

.gateway-card {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.gateway-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gateway-card.selected {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.gateway-card .check-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.gateway-card.selected .check-badge {
  display: flex;
}

.gateway-logo-wrap {
  height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.gateway-card:hover .gateway-logo-wrap,
.gateway-card.selected .gateway-logo-wrap {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.gateway-logo-wrap img, .gateway-logo-wrap svg {
  max-height: 38px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gateway-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.gateway-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-popular {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.tag-trusted {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

.tag-instant, .tag-digital {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.tag-fast, .tag-fast-payment {
  background: #faf5ff;
  color: #9333ea;
  border: 1px solid #f3e8ff;
}

.tag-crypto {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
}

.tag-aggregator {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.tag-global {
  background: #ecfeff;
  color: #0891b2;
  border: 1px solid #cffafe;
}

.tag-ibbl-app, .tag-active {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Pay Note & CTA */
.gateway-redirect-note {
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.gateway-redirect-note .icon {
  font-size: 16px;
  color: #0284c7;
}

.btn-primary-pay {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-pay:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.btn-cancel-return {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.btn-cancel-return:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* Trust footer */
.checkout-trust-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-pillars {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item .icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: 14px;
}

.trust-item .text h5 {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.trust-item .text p {
  font-size: 11px;
  color: var(--text-muted);
}

.trust-stamp-badge {
  color: #0284c7;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  text-align: right;
  letter-spacing: -0.2px;
  transform: rotate(-3deg);
  border: 2px dashed rgba(2, 132, 199, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
}

/* ==========================================================================
   SCREEN 2: GATEWAY STEP 1 - CUSTOMER MOBILE NUMBER (Exact match to Screenshot 2)
   ========================================================================== */
.gateway-step-container {
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  padding: 24px 20px;
}

.gateway-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand-left-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-left-title .merchant-cube,
.brand-left-title .bdetopup-cube {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.brand-left-title h3 {
  font-size: 16px;
  font-weight: 800;
}

.secure-checkout-tag {
  background: #e6f9f0;
  color: #0d9488;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

/* Sub-header inside gateway view */
.sub-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sub-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-arrow-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d12053;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-arrow-back:hover {
  background: #fdf2f8;
}

.paying-with-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paying-with-meta img, .paying-with-meta svg {
  height: 28px;
}

.paying-with-meta .text .label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.paying-with-meta .text .name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.total-due-box {
  text-align: right;
}

.total-due-box .label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.total-due-box .amount {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

/* The Signature Magenta bKash Card */
.bkash-branded-card {
  background: var(--bkash-primary);
  border-radius: 20px;
  padding: 24px 20px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(209, 32, 83, 0.25);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Phone Icon in circular badge */
.phone-badge-circle {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bkash-primary);
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 6px;
}

.phone-badge-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.bkash-branded-card .card-heading {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bkash-branded-card .card-subheading {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

/* Mobile Input Field */
.bkash-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.bkash-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bkash-input-field {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
}

.bkash-input-field:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.bkash-info-pill {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.dual-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-soft-cancel {
  background: #f1f5f9;
  color: #334155;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-soft-cancel:hover {
  background: #e2e8f0;
}

.btn-soft-submit {
  background: #e2e8f0;
  color: #64748b;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: not-allowed;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-soft-submit.active {
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-soft-submit.active:hover {
  background: #1d4ed8;
}

.ssl-footer {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   SCREEN 3 & 4: GATEWAY STEP 2 - SEND MONEY & LIVE VERIFICATION
   (Exact match to Screenshots 3 & 4)
   ========================================================================== */
.bkash-step2-card {
  background: var(--bkash-primary);
  border-radius: 20px;
  padding: 20px 16px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(209, 32, 83, 0.25);
  margin-bottom: 20px;
}

.send-money-header-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

/* Authentic bKash App Graphic Banner */
.bkash-app-mockup-graphic {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin-bottom: 16px;
}

.app-graphic-topbar {
  background: linear-gradient(135deg, #e11d48, #be123c);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.app-graphic-topbar .left-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-graphic-topbar .bird-icon {
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  flex-shrink: 0;
}

.app-graphic-topbar .bird-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.app-graphic-topbar .user-text {
  font-size: 12px;
  font-weight: 700;
}

.app-graphic-topbar .balance-pill {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-graphic-topbar .right-icons {
  display: flex;
  gap: 10px;
}

.app-graphic-icons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 8px;
  background: #ffffff;
  text-align: center;
  position: relative;
}

.app-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-icon-item .circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-item .label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

/* Highlighted "Send Money" item */
.app-icon-item.highlighted .circle-icon {
  background: #ffe4e6;
  border: 2px dashed #e11d48;
  position: relative;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Bangla Instructions List */
.bangla-instructions-card {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-instruction-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--bangla-font);
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.step-number-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--bkash-primary);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Copyable Data Boxes */
.copyable-field-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.copyable-field-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.copyable-text-wrap .field-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.copyable-text-wrap .field-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.btn-copy-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fdf2f8;
  color: var(--bkash-primary);
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-copy-icon:hover {
  background: var(--bkash-primary);
  color: #fff;
}

/* Countdown pill */
.step2-timer-pill {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 16px auto 12px auto;
  max-width: 240px;
}

/* Pulsing Radar Live Verification */
.live-checking-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.pulse-radar-dot {
  width: 12px;
  height: 12px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
}

.pulse-radar-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #4ade80;
  animation: radarWave 1.4s ease-out infinite;
}

@keyframes radarWave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Collapsible TrxID Accordion Link */
.accordion-trxid-toggle {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--bangla-font);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.accordion-trxid-toggle:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Collapsed Inset TrxID Card (Screenshot 4) */
.trxid-fallback-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
  display: none;
  animation: slideDown 0.25s ease-out forwards;
}

.trxid-fallback-card.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.trxid-fallback-card .input-label {
  font-family: var(--bangla-font);
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.trxid-input-field {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: monospace;
  text-transform: uppercase;
  color: #0f172a;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.trxid-input-field:focus {
  border-color: var(--bkash-primary);
}

.btn-verify-bangla {
  width: 100%;
  padding: 12px;
  background: var(--bkash-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--bangla-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-verify-bangla:hover {
  background: var(--bkash-dark);
}

/* Bottom Action Buttons for Step 2 */
.step2-dual-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-check-status {
  background: var(--bkash-primary);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(209, 32, 83, 0.3);
}

.btn-check-status:hover {
  background: var(--bkash-dark);
}

/* ==========================================================================
   VIEW 5: PAYMENT SUCCESS / COMPLETED VIEW
   ========================================================================== */
.success-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 40px 32px;
  text-align: center;
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.2);
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.success-receipt-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.receipt-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  padding-top: 10px;
}

.success-actions {
  display: flex;
  gap: 12px;
}

.btn-download-receipt {
  flex: 1;
  padding: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-go-dashboard {
  flex: 1.2;
  padding: 12px;
  background: #0284c7;
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* ==========================================================================
   VIEW 6: ARCHITECTURE & COMPANION APP SIMULATOR PANEL
   ========================================================================== */
.specs-panel-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 32px;
}

.specs-nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.spec-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.spec-tab-btn.active {
  background: #f0f9ff;
  color: #0284c7;
}

.code-block-wrap {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  max-height: 520px;
}

/* Notification Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-modal);
  font-size: 14px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-notice.show {
  display: flex;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VIEW 7: ALL 48 PP-GATEWAYS LOGO GALLERY SHOWCASE
   ========================================================================== */
.gallery-container {
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-hero-header {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-hero-title h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.gallery-hero-title p {
  font-size: 14px;
  color: var(--text-muted);
}

.gallery-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
}

.gallery-hero-pill.pill-green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.gallery-hero-pill.pill-purple {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.gallery-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-filter-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.gallery-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.gallery-search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 400px;
}

.gallery-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
  color: #0f172a;
}

.gallery-search-input:focus {
  background: #fff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.gallery-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.gallery-item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.gallery-item-card:hover {
  transform: translateY(-3px);
  border-color: #0284c7;
  box-shadow: 0 12px 24px -6px rgba(2, 132, 199, 0.18);
}

.gallery-card-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
}

.gallery-logo-preview {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 10px;
  transition: all 0.2s;
}

.gallery-item-card:hover .gallery-logo-preview {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gallery-logo-preview img {
  max-height: 52px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.gallery-gw-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.gallery-gw-slug code {
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', Consolas, monospace;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.gallery-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.gallery-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.gallery-path-badge {
  font-size: 10px;
  color: #10b981;
  font-weight: 600;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
}

.gallery-actions {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.btn-use-gw {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-use-gw:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
