/* Mobile Customer Layout Container */
.customer-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--bg-app);
  padding-bottom: 84px; /* Space for bottom nav */
  position: relative;
}

/* Mobile Customer Header (Floating Rounded Island with Frosted Glassmorphism) */
.customer-header {
  position: sticky;
  top: 10px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 14px 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(108, 92, 231, 0.16);
  box-shadow: 0 8px 28px -4px rgba(108, 92, 231, 0.12), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .customer-header {
  background: rgba(14, 16, 27, 0.76);
  border: 1.5px solid rgba(139, 124, 246, 0.24);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
  .customer-header {
    display: none !important;
  }
}

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

.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  cursor: pointer;
}

.customer-brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.customer-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.header-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

.header-icon-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  background-color: var(--error);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

/* Mobile Main Content View Area */
.customer-view-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero Balance Card */
.balance-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.balance-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.balance-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.balance-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.balance-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* 2-Column Action Buttons */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-action-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.quick-action-card:active {
  transform: scale(0.97);
  background-color: var(--bg-subtle);
}

.action-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #6C5CE7;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.action-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* Section Header */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

/* Recent Orders Mobile Cards (Matching Screenshot 4) */
.mobile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-order-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.mobile-order-card:active {
  transform: scale(0.985);
  border-color: var(--primary);
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.order-platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.order-card-info {
  flex: 1;
  min-width: 0;
}

.order-service-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-id-sub {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.order-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  flex-shrink: 0;
}

.order-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.order-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Service Picker Chips */
.platform-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.platform-chips-scroll::-webkit-scrollbar { display: none; }

.platform-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.platform-chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(108, 92, 231, 0.3);
}

/* Service Details Info Box */
.service-details-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.service-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-item-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.meta-item-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* Price Calculation Box */
.calculation-summary-card {
  background: var(--primary-light);
  border: 1.5px solid rgba(108, 92, 231, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.calc-row.total-row {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 1px dashed rgba(108, 92, 231, 0.3);
  padding-top: 8px;
}

.balance-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Stepper & Preset Chips */
.qty-preset-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.qty-preset-btn {
  flex: 1;
  padding: 6px 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

/* Bottom Navigation (Strictly Mobile Only, Fixed to Viewport) */
.customer-bottom-nav {
  display: none;
}

@media (min-width: 768px) {
  .customer-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .customer-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 68px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-top: 1px solid rgba(108, 92, 231, 0.15) !important;
    box-shadow: 0 -4px 20px rgba(108, 92, 231, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 10px !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
  }

  [data-theme="dark"] .customer-bottom-nav {
    background: rgba(14, 16, 27, 0.92) !important;
    border-top: 1px solid rgba(139, 124, 246, 0.2) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5) !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  min-width: 58px;
}

.bottom-nav-item .nav-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active .nav-icon {
  transform: translateY(-2px);
}

.bottom-nav-item.active .nav-icon-bg {
  background-color: var(--primary);
  color: #FFFFFF;
  width: 44px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Refill Button in Order Card */
.btn-refill {
  background-color: var(--accent-light);
  color: var(--primary);
  border: 1px solid rgba(108, 92, 231, 0.3);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-refill:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* Chat & Ticket Styles */
.ticket-chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 0;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.4;
  position: relative;
}

.chat-bubble.customer-bubble {
  align-self: flex-end;
  background-color: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.chat-bubble.admin-bubble {
  align-self: flex-start;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-color);
}

.chat-bubble-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.75;
  text-align: right;
}

@media (max-width: 767px) {
  .customer-container,
  .customer-desktop-container {
    padding-bottom: 100px !important;
  }
}

/* ==========================================================================
   ORDERS HISTORY REDESIGN (MATCHING SCREENSHOT)
   ========================================================================== */
.orders-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.orders-history-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.orders-search-bar {
  position: relative;
  margin-bottom: 14px;
}

.orders-search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
}

.orders-search-icon {
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.orders-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.orders-filter-chips::-webkit-scrollbar {
  display: none;
}

.orders-filter-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.orders-filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.order-history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-history-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-history-id-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-history-id {
  font-weight: 800;
  font-size: 15px;
  color: #4F46E5;
  font-family: var(--font-mono);
}

.order-history-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-history-title-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.order-history-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.order-history-qty {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.order-history-qty strong {
  color: var(--text-main);
  font-weight: 700;
}

.order-history-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.order-stats-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: #F3F4F6;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

[data-theme="dark"] .order-stats-trio {
  background: rgba(255, 255, 255, 0.06);
}

.stat-trio-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-trio-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-trio-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.btn-refill-full {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: #5B48EE;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(91, 72, 238, 0.25);
  transition: transform 0.15s ease, background 0.2s ease;
}

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

/* Bottom navigation item fix to prevent top-clipping */
.customer-bottom-nav .bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  height: 100% !important;
}

.customer-bottom-nav .nav-icon {
  width: 44px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px !important;
  margin: 0 auto 2px auto !important;
  transition: all 0.2s ease !important;
}

.customer-bottom-nav .bottom-nav-item.active .nav-icon {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #4F46E5 !important;
}

.customer-bottom-nav .bottom-nav-item.active span {
  color: #4F46E5 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   SLIDE-OUT SIDE MENU DRAWER & STREAMLINED HEADER
   ========================================================================== */

/* Header Hamburger & Brand Group */
.customer-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-hamburger-btn {
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.14);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.drawer-hamburger-btn:hover {
  background: rgba(108, 92, 231, 0.12);
  transform: scale(1.05);
}

.drawer-hamburger-btn:active {
  transform: scale(0.94);
}

/* Header Balance Pill with Add Funds + */
.header-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.header-balance-pill:active {
  transform: scale(0.96);
}

.header-balance-val {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.add-plus-badge {
  background: #ffffff;
  color: #4F46E5;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* Side Drawer Backdrop */
.side-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

/* Side Drawer Panel */
.side-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-surface);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10001;
}

.side-drawer-backdrop.active .side-drawer-panel {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(99, 102, 241, 0.04));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Drawer Menu Sections */
.drawer-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.drawer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.drawer-menu-item:hover,
.drawer-menu-item:active {
  background: var(--bg-subtle);
}

.drawer-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-item-icon {
  font-size: 18px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Segmented Currency Toggle inside Drawer */
.segmented-currency-toggle {
  display: flex;
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.segmented-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.segmented-toggle-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   REFRACTION GLOSS & CONFIRMATION SHIMMER ANIMATION
   ========================================================================== */
@keyframes refraction-glare {
  0% {
    transform: translateX(-140%) skewX(-25deg);
  }
  40%, 100% {
    transform: translateX(260%) skewX(-25deg);
  }
}

@keyframes pulse-emerald {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes refraction-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.btn-refraction {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6C5CE7 0%, #4F46E5 50%, #7C3AED 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 24px -2px rgba(108, 92, 231, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-refraction::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-140%) skewX(-25deg);
  animation: refraction-glare 3.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.btn-refraction:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -2px rgba(108, 92, 231, 0.55) !important;
}

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

/* ==========================================================================
   PREMIUM PLACE NEW ORDER STYLES
   ========================================================================== */
.order-premium-card {
  background: var(--bg-surface);
  border: 1px solid rgba(108, 92, 231, 0.16);
  border-radius: 24px;
  box-shadow: 0 12px 36px -8px rgba(108, 92, 231, 0.09), 0 2px 6px rgba(0, 0, 0, 0.03);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .order-premium-card {
  background: rgba(23, 25, 42, 0.85);
  border: 1px solid rgba(139, 124, 246, 0.2);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

.order-hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.order-title-group h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-title-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.live-services-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
}

[data-theme="dark"] .live-services-pill {
  color: #34D399;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-emerald 2s infinite ease-in-out;
}

/* Modern Branded Platform Chips */
.platform-chips-scroll-pro {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.platform-chips-scroll-pro::-webkit-scrollbar { display: none; }

.platform-chip-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.platform-chip-pro:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 92, 231, 0.4);
}

.platform-chip-pro.active {
  background: linear-gradient(135deg, #6C5CE7 0%, #5B47E0 100%);
  color: #FFFFFF;
  border-color: #6C5CE7;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
}

/* High-Tech VIP Service Details Terminal */
.vip-spec-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 1.5px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .vip-spec-card {
  background: rgba(31, 35, 56, 0.6);
  border-color: rgba(139, 124, 246, 0.25);
}

.vip-spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vip-spec-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.spec-tile {
  background: var(--bg-surface);
  border: 1px solid rgba(108, 92, 231, 0.12);
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-tile-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-tile-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Stepper Preset Pills */
.qty-steppers-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.qty-pill-btn {
  flex: 1;
  min-width: 60px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.qty-pill-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(108, 92, 231, 0.3);
}

.qty-pill-btn:active {
  transform: scale(0.95);
}

/* Luxury Receipt / Price Calculation Box */
.receipt-calc-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.07) 0%, rgba(139, 92, 246, 0.04) 100%);
  border: 1.5px solid rgba(108, 92, 231, 0.25);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.receipt-row.total-charge-row {
  border-top: 1.5px dashed rgba(108, 92, 231, 0.3);
  padding-top: 12px;
  margin-top: 2px;
}

.receipt-total-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Avatar Picker Styles */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin: 16px 0;
}

.avatar-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-pick-card:hover {
  transform: translateY(-2px);
  background: var(--bg-hover);
}

.avatar-pick-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.25);
}

.avatar-pick-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
  border: 2px solid rgba(108, 92, 231, 0.2);
}

.avatar-pick-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
}

.avatar-active-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* Side Drawer Avatar Edit Trigger */
.drawer-avatar-wrap {
  position: relative;
  cursor: pointer;
}

.drawer-avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--primary);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Refraction Order Success Modal */
.order-success-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 10px 0;
  animation: refraction-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-check-refraction {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  position: relative;
}

.success-check-refraction::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #34D399;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   PAYTM QR & WALLET ADD FUNDS STYLES
   ========================================================================== */
.paytm-qr-box {
  background: var(--bg-surface);
  border: 1.5px solid rgba(108, 92, 231, 0.2);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px -5px rgba(108, 92, 231, 0.08);
}

[data-theme="dark"] .paytm-qr-box {
  background: rgba(23, 25, 42, 0.85);
  border-color: rgba(139, 124, 246, 0.25);
}

.paytm-qr-img {
  width: 220px;
  max-width: 100%;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transition: transform 0.2s ease;
}

.paytm-qr-img:hover {
  transform: scale(1.02);
}

.upi-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upi-id-badge:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON WITH EXPANDING PULSE RINGS
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 58px;
  height: 58px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
}

.wa-icon-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
  border: 2.5px solid #FFFFFF;
}

.wa-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: wa-ring-expand 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

.wa-pulse-ring-2 {
  animation-delay: 1.2s;
}

@keyframes wa-ring-expand {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

.wa-tooltip-pill {
  position: absolute;
  right: 70px; /* Floats to the left of the button, taking 0 layout width */
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.floating-whatsapp-btn:hover .wa-tooltip-pill {
  opacity: 1;
  transform: translateX(0);
}

/* Position strictly at bottom-right above mobile bottom nav */
@media (max-width: 767px) {
  .floating-whatsapp-btn {
    bottom: 84px !important;
    right: 16px !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
  }
  .wa-tooltip-pill {
    display: none !important;
  }
  .wa-icon-wrap {
    width: 48px !important;
    height: 48px !important;
  }
  .wa-icon-wrap svg {
    width: 26px !important;
    height: 26px !important;
  }
  .wa-pulse-ring {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ==========================================================================
   PLACE NEW ORDER HERO BANNER (MATCHING IMAGE 3)
   ========================================================================== */
.order-hero-banner-pro {
  position: relative;
  text-align: center;
  padding: 42px 24px 34px;
  border-radius: 24px;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(108, 92, 231, 0.16) 0%, rgba(139, 92, 246, 0.06) 55%, transparent 100%),
    var(--bg-surface);
  border: 1.5px solid rgba(108, 92, 231, 0.18);
  box-shadow: 0 12px 36px -6px rgba(108, 92, 231, 0.09), 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

[data-theme="dark"] .order-hero-banner-pro {
  background: 
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(108, 92, 231, 0.26) 0%, rgba(139, 92, 246, 0.1) 60%, transparent 100%),
    rgba(23, 25, 42, 0.88);
  border-color: rgba(139, 124, 246, 0.28);
}

/* Subtle dot grid pattern in top-left & top-right corners */
.order-hero-banner-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 120px;
  background-image: radial-gradient(rgba(108, 92, 231, 0.28) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse at 0% 0%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 0% 0%, black 50%, transparent 85%);
  pointer-events: none;
}

.order-hero-banner-pro::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 120px;
  background-image: radial-gradient(rgba(108, 92, 231, 0.28) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse at 100% 0%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 50%, transparent 85%);
  pointer-events: none;
}

.order-hero-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #0F172A;
  margin: 0;
  line-height: 1.15;
}

[data-theme="dark"] .order-hero-title {
  color: #F8FAFC;
}

.order-hero-accent-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.order-hero-accent-bar {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6C5CE7, #8B5CF6);
}

.order-hero-accent-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8B5CF6;
}

.order-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 500;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.order-hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(108, 92, 231, 0.09);
  border: 1.5px solid rgba(108, 92, 231, 0.3);
  border-radius: 999px;
  padding: 8px 24px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(108, 92, 231, 0.14);
  transition: all 0.2s ease;
}

.order-hero-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-purple 2s infinite ease-in-out;
}

@media (max-width: 767px) {
  .order-hero-banner-pro {
    padding: 28px 18px 24px;
  }
  .order-hero-title {
    font-size: 27px;
  }
  .order-hero-sub {
    font-size: 13.5px;
  }
  .order-hero-pill-badge {
    font-size: 13.5px;
    padding: 6px 18px;
    margin-top: 16px;
  }
}
