/* ==========================================================================
   OgaCard Gift Card Rate Calculator & Multi-WhatsApp Styles
   Matches Tbay-style interactive calculator and multi-agent trade desk
   ========================================================================== */

/* Main Calculator Section Canvas */
.calc-section {
  background: #f8fafc;
  padding: 60px max(24px, calc((100vw - 1140px) / 2)) 90px;
  position: relative;
  overflow: hidden;
}

.calc-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(22, 201, 106, 0.10) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
}

.calc-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.calc-title {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  color: #0d2c44;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.calc-subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: #55697d;
  line-height: 1.6;
  margin: 0 auto;
}

/* Currency Switcher Pill */
.calc-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.calc-currency-toggle {
  display: inline-flex;
  background: rgba(13, 44, 68, 0.08);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.calc-curr-btn {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 14px;
  color: #61778c;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-curr-btn.active {
  background: #ffffff;
  color: #0d2c44;
  box-shadow: 0 3px 10px rgba(13, 44, 68, 0.12);
}

/* Calculator Card Container */
.calc-card-container {
  background: transparent;
  max-width: 960px;
  margin: 0 auto;
}

/* Three Input Fields Row */
.calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field-label {
  font-size: 15px;
  font-weight: 700;
  color: #0d2c44;
  letter-spacing: -0.01em;
}

.calc-picker-trigger {
  background: #ffffff;
  border: 1px solid rgba(13, 44, 68, 0.08);
  border-radius: 14px;
  padding: 15px 18px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(13, 44, 68, 0.04);
}

.calc-picker-trigger:hover {
  border-color: rgba(7, 156, 77, 0.4);
  box-shadow: 0 6px 18px rgba(7, 156, 77, 0.08);
  transform: translateY(-1px);
}

.calc-trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.calc-card-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #0d2c44;
  flex-shrink: 0;
}

.calc-trigger-val {
  font-size: 15px;
  font-weight: 600;
  color: #0d2c44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-chevron-icon {
  width: 18px;
  height: 18px;
  color: #00a896;
  flex-shrink: 0;
  stroke-width: 2.5;
}

/* Amount Input Field */
.calc-input-box {
  background: #ffffff;
  border: 1px solid rgba(13, 44, 68, 0.08);
  border-radius: 14px;
  padding: 4px 18px;
  min-height: 58px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(13, 44, 68, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-input-box:focus-within {
  border-color: #00a896;
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
}

.calc-num-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 17px;
  font-weight: 600;
  color: #0d2c44;
  font-family: inherit;
}

.calc-num-input::placeholder {
  color: #9cb1c2;
  font-weight: 400;
}

/* Quick Amount Pills */
.calc-quick-amounts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.calc-quick-amt-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(13, 44, 68, 0.08);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0d2c44;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-quick-amt-btn:hover {
  background: #0d2c44;
  color: #ffffff;
}

/* Calculation Results Section */
.calc-result-box {
  text-align: center;
  padding: 34px 20px 28px;
}

.calc-result-kicker {
  font-size: 15px;
  font-weight: 600;
  color: #55697d;
  margin-bottom: 8px;
}

.calc-points-val {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  color: #00a896;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.calc-cash-val {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  color: #e59500;
  letter-spacing: -0.02em;
  margin-top: 4px;
  line-height: 1.2;
}

/* Big Sell Now CTA */
.calc-sell-btn {
  width: 100%;
  min-height: 62px;
  background: #0d2c44;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(13, 44, 68, 0.25);
  transition: all 0.25s ease;
  margin-top: 10px;
}

.calc-sell-btn:hover {
  background: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
}

.calc-sell-btn svg {
  flex-shrink: 0;
}

.calc-sell-btn:hover svg:last-child {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Interactive Dropdown Modal (Card & Range Selection)
   ========================================================================== */
.calc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 44, 68, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.calc-modal-panel {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(13, 44, 68, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calc-modal-backdrop.active .calc-modal-panel {
  transform: translateY(0);
}

.calc-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(13, 44, 68, 0.08);
}

.calc-modal-top h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0d2c44;
  margin: 0;
}

.calc-modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #55697d;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.calc-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0d2c44;
}

/* Modal Search Bar */
.calc-search-box {
  padding: 14px 24px;
  position: relative;
}

.calc-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #8c9fae;
  pointer-events: none;
}

.calc-search-input {
  width: 100%;
  background: #f4f8fa;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px 12px 44px;
  font-size: 14px;
  color: #0d2c44;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.calc-search-input:focus {
  background: #ffffff;
  border-color: #00a896;
}

/* Modal Currency Filter Tabs */
.calc-currency-tabs-scroll {
  display: flex;
  gap: 8px;
  padding: 0 24px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.calc-currency-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.calc-curr-tab {
  background: #f4f8fa;
  border: none;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 700;
  color: #55697d;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.calc-curr-tab.active {
  background: #00a896;
  color: #ffffff;
}

/* Modal Items List */
.calc-modal-list-body {
  overflow-y: auto;
  padding: 8px 16px 20px;
  flex: 1;
}

.calc-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(13, 44, 68, 0.04);
}

.calc-modal-item:hover {
  background: #f2faf9;
}

.calc-item-media {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d2c44;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.calc-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calc-item-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f8fa;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

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

.calc-item-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calc-item-row-top h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0d2c44;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-item-rate-badge {
  font-size: 15px;
  font-weight: 800;
  color: #e59500;
  white-space: nowrap;
}

.calc-item-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.calc-tag {
  background: #eef7f6;
  color: #008779;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.calc-empty-list {
  text-align: center;
  padding: 40px 20px;
  color: #8c9fae;
  font-size: 14px;
}

/* ==========================================================================
   Multi-WhatsApp Trade Desks Modal
   ========================================================================== */
.ogacard-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 44, 68, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.ogacard-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(13, 44, 68, 0.3);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.ogacard-modal-backdrop.active .ogacard-modal-card {
  transform: translateY(0);
}

.ogacard-modal-header {
  padding: 24px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(13, 44, 68, 0.08);
  background: #fafdfc;
}

.wa-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wa-header-brand h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0d2c44;
  margin: 0 0 3px;
}

.wa-header-brand p {
  font-size: 13px;
  color: #62778c;
  margin: 0;
}

.ogacard-modal-close {
  background: #f1f5f9;
  border: none;
  font-size: 24px;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.ogacard-modal-close:hover {
  background: #e2e8f0;
  color: #0d2c44;
}

.wa-desks-list {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}

.wa-desk-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(13, 44, 68, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wa-desk-item:hover {
  background: #f0fdf4;
  border-color: rgba(7, 156, 77, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 156, 77, 0.1);
}

.wa-desk-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.wa-desk-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0d2c44;
}

.wa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.wa-desk-info {
  flex: 1;
  min-width: 0;
}

.wa-desk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.wa-desk-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0d2c44;
  margin: 0;
}

.wa-desk-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.wa-desk-role {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 6px;
}

.wa-desk-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: #94a3b8;
}

.wa-meta-time {
  color: #059669;
  font-weight: 600;
}

.wa-desk-cta {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.wa-desk-cta:hover {
  background: #1eb956;
  transform: scale(1.05);
}

.ogacard-modal-footer {
  padding: 14px 28px;
  background: #f8fafc;
  border-top: 1px solid rgba(13, 44, 68, 0.06);
  text-align: center;
}

.wa-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #079c4d;
}

/* ==========================================================================
   Informational SEO Sections (About & Why Rates Change)
   ========================================================================== */
.calc-info-section {
  padding: 90px max(24px, calc((100vw - 1140px) / 2));
  background: #ffffff;
}

.calc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.calc-info-card h3 {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #0d2c44;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.calc-info-card p {
  font-size: 16px;
  color: #55697d;
  line-height: 1.75;
  margin: 0 0 16px;
}

/* Popular Mainstream Gift Card Showcase Grid */
.calc-popular-section {
  padding: 60px max(24px, calc((100vw - 1140px) / 2)) 80px;
  background: #f8fafc;
}

.calc-popular-title {
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0d2c44;
  margin: 0 0 10px;
}

.calc-popular-sub {
  text-align: center;
  color: #64748b;
  margin: 0 auto 40px;
}

.calc-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.calc-popular-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(13, 44, 68, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-popular-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 44, 68, 0.08);
  border-color: #00a896;
}

.calc-pop-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #0d2c44;
}

.calc-pop-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0d2c44;
  margin: 0 0 4px;
}

.calc-pop-info span {
  font-size: 12px;
  color: #00a896;
  font-weight: 700;
}

/* Download App Banner Section */
.calc-download-section {
  padding: 90px max(24px, calc((100vw - 1140px) / 2));
  background: #e8f7f5;
}

.calc-download-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.calc-dl-copy h2 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  color: #0d2c44;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.calc-dl-copy p {
  font-size: 17px;
  color: #55697d;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 520px;
}

.calc-dl-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.calc-dl-phone-art {
  display: flex;
  justify-content: center;
}

.calc-dl-phone-art img {
  max-height: 520px;
  width: auto;
  filter: drop-shadow(0 25px 40px rgba(13, 44, 68, 0.2));
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .calc-inputs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .calc-info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .calc-download-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .calc-dl-actions {
    justify-content: center;
  }

  .calc-dl-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .calc-section {
    padding-top: 100px;
    padding-bottom: 70px;
  }

  .calc-top-bar {
    justify-content: center;
  }

  .wa-float-tooltip {
    display: none;
  }

  .ogacard-floating-wa {
    bottom: 20px;
    right: 20px;
  }

  .wa-float-bubble {
    width: 52px;
    height: 52px;
  }
}
