/* style.css - Complete Authentic Theme matching akallindia.in/recharge & utility-credits */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --utility-border: #e5e7f2;
  --utility-slate: #082844;
  --utility-mini-bg: #075e96;
  --utility-primary: #0877b9;
  
  --bg-gradient: linear-gradient(135deg, #f0f6fc 0%, #e6f0fa 50%, #eef5fc 100%);
  --surface-color: #ffffff;
  --surface-border: #d4e3f2;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary-color: #062b54;
  --primary-hover: #1e40af;
  
  --card-bg: #f4f8fc;
  --input-bg: #f0f5fa;
  --input-border: #d0e1f2;
  
  --shadow-sm: 0 10px 30px rgba(180, 200, 225, 0.3);
  --shadow-md: 0 15px 35px rgba(160, 185, 210, 0.35);
  --shadow-modal: 0 25px 60px rgba(15, 35, 60, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  padding-bottom: 2rem;
}

/* Background Ambient Glow Circles */
.bg-shape {
  position: fixed;
  filter: blur(140px);
  opacity: 0.6;
  animation: float 14s infinite alternate ease-in-out;
  z-index: -1;
  border-radius: 50%;
}
.shape-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #d0e3f7 0%, #c2d9f2 100%);
  top: -150px;
  left: -150px;
}
.shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #d8e7f8 0%, #cae0f5 100%);
  bottom: -200px;
  right: -150px;
  animation-delay: -7s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 55px) scale(1.08); }
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

/* Diamond Gem Image Styling */
.diamond-img, .utility-diamond img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.35));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.utility-card:hover .diamond-img, .credit-item:hover .diamond-img {
  transform: scale(1.25) rotate(4deg);
}

/* Top Announcement Bar */
.site-announcement {
  background: #061a33;
  border-bottom: 1px solid #0d2847;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #70a3d4;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.site-announcement__icon {
  display: flex;
  align-items: center;
  color: #70a3d4;
  flex-shrink: 0;
}
.site-announcement__viewport {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.site-announcement__track {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  padding-left: 100%;
}
@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Mini Header Bar */
.utility-mini-bar {
  background: #075e96;
  padding: 0.62rem 5vw;
  box-shadow: 0 14px 34px rgba(5, 8, 35, 0.14);
  position: relative;
  z-index: 50;
  margin-bottom: 1.75rem;
}
.utility-mini-header {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility-mini-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.utility-mini-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.utility-mini-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(180deg);
}

/* Main Layout */
.app-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.service-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 850px) {
  .service-form {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Main Form Card & Support Cards */
.utility-form-card, .info-card {
  background: var(--surface-color);
  border-radius: 28px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-border);
}

/* Profile ID Input Field */
.utility-profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.utility-profile-field__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.utility-profile-control {
  position: relative;
  display: flex;
  align-items: center;
}
.utility-profile-control__icon {
  position: absolute;
  left: 1.1rem;
  color: #3b82f6;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.utility-profile-control input {
  width: 100%;
  padding: 0.95rem 3.2rem 0.95rem 2.9rem;
  border-radius: 20px;
  border: 1px solid var(--input-border);
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: all 0.25s ease;
}
.utility-profile-control input::placeholder {
  color: var(--text-muted);
}
.utility-profile-control input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.utility-profile-help-btn {
  position: absolute;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.utility-profile-help-btn:hover {
  background: #bfdbfe;
}
.helper-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Select Recharge Credit List Grid */
.utility-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.refresh-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: 6px;
  transition: transform 0.3s ease;
}
.refresh-icon:hover {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

/* Package Card */
.utility-card, .credit-item {
  background: var(--card-bg);
  border: 1.5px solid #d4e3f2;
  border-radius: 20px;
  padding: 1.25rem 0.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.utility-card:hover, .credit-item:hover {
  border-color: #062b54;
  background: #ebf3fb;
}

/* Selected Card */
.utility-card.selected, .credit-item.selected {
  border: 2px solid #062b54;
  background: #ebf3fb;
  box-shadow: 0 0 0 1px #062b54, 0 8px 24px rgba(6, 43, 84, 0.12);
}

.check-icon {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: #062b54;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  align-items: center;
  justify-content: center;
}
.utility-card.selected .check-icon, .credit-item.selected .check-icon {
  display: flex;
}

.utility-card strong, .credit-item .diamond-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.utility-card span, .credit-item .price-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Quantity Card & Stepper */
.quantity-card {
  background: #eaf2fa;
  border: 1px solid #d0e1f2;
  border-radius: 20px;
  padding: 0.9rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: #bfdbfe;
}
.qty-input {
  width: 50px;
  height: 34px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
}
.quantity-summary {
  text-align: right;
}
.quantity-summary p {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.quantity-summary p strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Action Button */
.payment-controls {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
.btn.primary, .btn-proceed {
  width: 220px;
  max-width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 22px;
  border: none;
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(71, 85, 105, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.primary:enabled, .btn-proceed:enabled {
  width: 100%;
  background: linear-gradient(135deg, #062b54 0%, #1e40af 100%);
  box-shadow: 0 10px 25px rgba(6, 43, 84, 0.3);
}
.btn.primary:enabled:hover, .btn-proceed:enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 43, 84, 0.4);
}
.btn.primary:disabled, .btn-proceed:disabled {
  opacity: 0.9;
  cursor: not-allowed;
}

.btn.ghost {
  background: #e0ecfa;
  border: 1px solid #c2dae8;
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}
.btn.ghost:hover {
  background: #d4e5f7;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.85rem;
  text-align: center;
}
.link-button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Support & History Cards */
.support-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.utility-support-card__head h3, .utility-history-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.utility-support-card__head p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.utility-support-card__grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.utility-support-link {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.utility-support-link:hover {
  transform: translateX(4px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.utility-support-link__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.imo-bg { background: #dbeafe; color: #1d4ed8; }
.wa-bg { background: #dcfce7; color: #16a34a; }

.utility-support-link__label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.utility-support-link__value {
  display: block;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* History Search Form & Result Card (Matching official design) */
.utility-history-card h3 {
  font-family: serif, 'Inter', sans-serif;
  color: #0c3866;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.history-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.history-form input {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #dce8f5;
  background: #f4f8fc;
  color: #0f172a;
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  width: 100%;
}
.history-form input::placeholder {
  color: #94a3b8;
}
.history-form input:focus {
  border-color: #062b54;
  background: #ffffff;
}

#search-history-btn {
  background: #eef6fc;
  border: 1px solid #d0e2f5;
  color: #0f2b4c;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem;
  border-radius: 16px;
  width: 100%;
  cursor: pointer;
  text-align: center;
  margin-top: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
#search-history-btn:hover {
  background: #e2effa;
  border-color: #b8d7f2;
}

.history-results {
  margin-top: 0.5rem;
}

.history-result-card {
  background: #ffffff;
  border: 1px solid #e8eeef;
  border-radius: 20px;
  padding: 1.25rem 1rem;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}
.history-row:last-child {
  border-bottom: none;
}

.history-label {
  color: #64748b;
  font-weight: 500;
}
.history-val {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
}

.history-status-pill {
  padding: 4px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
}
.history-status-pill.pending {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}
.history-status-pill.success, .history-status-pill.completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.history-status-pill.failed {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Live Support FAB Chat Widget */
.utility-chat-fab {
  position: fixed;
  right: 6px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2200;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.utility-chat-fab:hover {
  transform: scale(1.08);
}
.utility-chat-fab img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid #ffb300;
  box-shadow: 0 8px 25px rgba(255, 179, 0, 0.45);
}
.mascot-fab-label {
  background: #ff3b30;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.62rem;
  padding: 1.5px 6px;
  border-radius: 8px;
  margin-top: -6px;
  box-shadow: 0 3px 10px rgba(255, 59, 48, 0.45);
  border: 1px solid #ffffff;
  white-space: nowrap;
  letter-spacing: 0.01em;
  font-family: 'Outfit', sans-serif;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: var(--shadow-modal);
  color: var(--text-primary);
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.modal-content::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ID Unban Modal */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.checkout-modal.active {
  display: flex;
}
.checkout-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}
.checkout-modal__dialog {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  width: 95%;
  max-width: 500px;
  padding: 1.75rem;
  z-index: 10;
  box-shadow: var(--shadow-modal);
}
.checkout-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 0.75rem;
}
.badge {
  display: inline-block;
  background: #062b54;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.checkout-modal__header h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
}
.checkout-modal__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.checkout-modal__close {
  background: #f1f5f9;
  border: none;
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}
.checkout-receipt-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.form-row input, #unban-imo-number {
  flex: 1;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-weight: 600;
  outline: none;
}
.checkout-success-actions {
  display: flex;
  gap: 0.5rem;
}
.checkout-channel-summary {
  background: var(--card-bg);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 1rem;
  margin-top: 1.25rem;
}
.checkout-summary-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.checkout-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.checkout-summary-grid dt {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.checkout-summary-grid dd {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Status Modal */
.status-modal-card {
  max-width: 420px;
  width: 90%;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-modal);
  border-radius: 28px;
}
.status-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.status-icon-wrapper.success {
  background: #dcfce7;
  color: #16a34a;
  border: 2px solid #86efac;
}
.status-icon-wrapper.failed {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #fca5a5;
}
.status-icon-wrapper.pending {
  background: #fef3c7;
  color: #d97706;
  border: 2px solid #fde68a;
}
.status-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.status-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.status-details-box {
  background: var(--card-bg);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.status-detail-row .detail-label {
  color: var(--text-muted);
  font-weight: 600;
}
.status-detail-row .detail-value {
  color: var(--text-primary);
  font-weight: 700;
  font-family: monospace;
}
.status-badge-pill {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-badge-pill.success {
  background: #dcfce7;
  color: #15803d;
}
.status-badge-pill.failed {
  background: #fee2e2;
  color: #b91c1c;
}
.status-badge-pill.pending {
  background: #fef3c7;
  color: #b45309;
}
.status-modal-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 18px;
  border: none;
  background: #062b54;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
