/* ==========================================================================
   Customer Self-Service Portal — Modern, Mobile-First Stylesheet
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);

  /* Curated Palette */
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-accent: #3b82f6;
  --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --brand-green: #16a34a;
  --brand-green-hover: #15803d;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-light: #94a3b8;
  --border-focus: #3b82f6;

  --status-active-bg: #dcfce7;
  --status-active-text: #166534;
  --status-pending-bg: #fef3c7;
  --status-pending-text: #92400e;
  --status-danger-bg: #fee2e2;
  --status-danger-text: #991b1b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Container Layout ────────────────────────────────────────────────────── */
.portal-container {
  max-width: 1040px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Login Screen (Option 2 Approved Reference Layout) ─────────────── */
.login-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  background-image: radial-gradient(circle at 15% 50%, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.login-ambient-blur-1 {
  position: absolute;
  top: -10%;
  left: -8%;
  width: 55vw;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, rgba(8, 28, 56, 0.12) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.login-ambient-blur-2 {
  position: absolute;
  bottom: -15%;
  right: -8%;
  width: 60vw;
  height: 65vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 164, 36, 0.22) 0%, rgba(12, 176, 96, 0.12) 60%, transparent 80%);
  filter: blur(90px);
  pointer-events: none;
}

/* Split Card Wrapper */
.login-split-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  min-height: 520px;
  animation: loginAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginAppear {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Panel: Clean White Brand Card (100% Identical to Tenant Login) */
.login-left-panel {
  background: #ffffff;
  width: 490px;
  min-height: 460px;
  border-radius: 14px;
  padding: 40px 80px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  transform: translateX(40px);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.login-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  margin: auto 0;
}

.login-brand-logo-container {
  width: auto;
  max-width: 320px;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  margin: 0 auto 12px;
}

.login-brand-logo-container img {
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.login-left-panel .brand-sub {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.login-copyright {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.1px;
}

/* Right Panel: Option 2 Golden-Ochre Card (#d4a017) */
.login-right-panel-gold {
  background: linear-gradient(145deg, #d4a017 0%, #b88a14 100%);
  width: 480px;
  min-height: 480px;
  border-radius: 20px;
  padding: 44px 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid #f3c343;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 160, 23, 0.4);
  position: relative;
  z-index: 2;
  transform: translateX(-40px);
  color: #081c38;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.login-right-panel-gold .login-gradient-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #081c38;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}

.login-right-panel-gold .login-field-group {
  margin-bottom: 24px;
  position: relative;
}

.login-right-panel-gold .login-field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #081c38;
  margin-bottom: 8px;
}

.login-right-panel-gold .login-underline-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #081c38;
  border-radius: 0;
  color: #081c38;
  font-size: 14.5px;
  font-family: inherit;
  padding: 6px 0 8px 0;
  outline: none;
  box-sizing: border-box;
  font-weight: 600;
}

.login-right-panel-gold .login-underline-input::placeholder {
  color: rgba(8, 28, 56, 0.6);
  font-weight: 500;
}

.login-right-panel-gold .login-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.login-right-panel-gold .login-forgot-link {
  color: #081c38;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.login-right-panel-gold .login-forgot-link:hover {
  opacity: 0.8;
}

.login-right-panel-gold .btn-login-pill {
  background: #081c38;
  color: #ffffff;
  padding: 10px 32px;
  border-radius: 24px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(8, 28, 56, 0.4);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  transition: all 0.2s ease;
}

.login-right-panel-gold .btn-login-pill:hover {
  background: #0f2d59;
  transform: translateY(-1px);
}

.login-error-alert {
  background: rgba(185, 28, 28, 0.95);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive Split Layout for mobile/tablet */
@media (max-width: 860px) {
  .login-split-wrapper {
    flex-direction: column;
    padding: 16px 0;
  }
  .login-left-panel {
    transform: none;
    width: 100%;
    max-width: 440px;
    min-height: auto;
    padding: 32px 24px 24px;
    border-radius: 14px 14px 0 0;
  }
  .login-right-panel-gold {
    transform: none;
    width: 100%;
    max-width: 440px;
    min-height: auto;
    padding: 32px 24px;
    border-radius: 0 0 14px 14px;
  }
}
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-label .required {
  color: #dc2626;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}

.input-with-prefix:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-with-prefix .prefix {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-right: 1.5px solid #94a3b8;
  line-height: 44px;
  user-select: none;
}

.input-with-prefix .form-control {
  border: none;
  box-shadow: none;
}

.form-control-otp {
  font-size: 22px;
  letter-spacing: 6px;
  text-align: center;
  font-weight: 700;
  font-family: monospace;
}

.form-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── OTP Verification Specifics ─────────────────────────────────────────── */
.otp-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
}

.otp-banner-icon {
  font-size: 24px;
}

.otp-banner-text p {
  font-size: 12.5px;
  color: #1e40af;
  margin: 0;
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12.5px;
}

.cooldown-text {
  color: var(--text-muted);
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 12.5px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link.text-muted {
  color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  text-align: center;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-primary-hover);
}

.btn-success {
  background: var(--brand-green);
  color: var(--text-inverse);
}

.btn-success:hover:not(:disabled) {
  background: var(--brand-green-hover);
}

.btn-upi {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-upi:hover {
  filter: brightness(1.05);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner inside button */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

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

/* ── Alert Boxes ─────────────────────────────────────────────────────────── */
.alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 16px;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Dashboard Layout ────────────────────────────────────────────────────── */
.dashboard-section {
  padding-bottom: 40px;
}

.portal-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.operator-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.operator-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.customer-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-active {
  background: var(--status-active-bg);
  color: var(--status-active-text);
}

.status-pending, .status-sent, .status-unpaid {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
}

.status-danger, .status-overdue {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover {
  background: var(--bg-muted);
  color: #dc2626;
  border-color: #fecaca;
}

/* ── Hero Balance Card ───────────────────────────────────────────────────── */
.hero-balance-card {
  margin: 16px 20px;
  background: var(--brand-gradient);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.balance-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin: 4px 0;
}

.balance-sub {
  font-size: 12.5px;
  opacity: 0.85;
}

/* ── Navigation Tabs ─────────────────────────────────────────────────────── */
.portal-nav-tabs {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.nav-tab:hover {
  color: var(--brand-primary);
}

.nav-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* ── Cards & Details ─────────────────────────────────────────────────────── */
.portal-tab-content {
  padding: 16px 20px;
}

.card {
  background: var(--bg-card);
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

.info-item {
  display: flex;
  flex-direction: column;
}

.info-full {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Support Box */
.support-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.support-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.support-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-muted);
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.support-pill .icon {
  font-size: 20px;
}

.support-pill .label {
  font-size: 11px;
  color: var(--text-muted);
}

.support-pill strong {
  font-size: 13px;
  color: var(--text-primary);
}

/* ── Services Cards (Adaptive Layout per Requirements) ──────────────────── */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Dual services layout on tablet and desktop */
.services-list.has-dual-services {
  grid-template-columns: repeat(2, 1fr);
}

/* Single service takes 100% full content width */
.services-list.has-single-service {
  grid-template-columns: 1fr;
}

@media (max-width: 680px) {
  .services-list.has-dual-services {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

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

.service-title-group h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.service-title-group .service-type-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.hardware-strip {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.hardware-strip .hw-col strong {
  color: var(--text-primary);
}

/* ── Invoices & Payments Lists ───────────────────────────────────────────── */
.invoices-list, .payments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item-card {
  background: var(--bg-card);
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.item-main {
  display: flex;
  flex-direction: column;
}

.item-main .item-ref {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.item-main .item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.item-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

/* ── Checkout Modal ──────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.2s ease-out;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.checkout-summary {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
}

.checkout-row .label {
  color: var(--text-secondary);
}

.checkout-row.total-row {
  border-top: 1px solid var(--border-light);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-primary);
}

.payment-method-card {
  text-align: center;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.payment-method-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.payment-method-card p {
  font-size: 12px;
  color: var(--text-muted);
}

.qr-box {
  margin: 12px 0;
}

.qr-box img {
  max-width: 160px;
  height: auto;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-sm);
}

.qr-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.upi-id-badge {
  display: inline-block;
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.upi-id-badge code {
  font-family: monospace;
  font-weight: 600;
  color: var(--text-primary);
}

.secure-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Toast Notifications ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  max-width: 400px;
  margin: 0 auto;
  z-index: 100;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--text-primary);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: toastIn 0.2s ease-out;
}

.toast.toast-error {
  background: #dc2626;
}

.toast.toast-success {
  background: #16a34a;
}

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

/* ── Loading / Empty States ──────────────────────────────────────────────── */
.loading-state, .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}

.empty-state-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.mt-4 { margin-top: 16px; }

/* ── Mobile Responsiveness (< 480px) ─────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-balance-card {
    padding: 18px;
  }
  .balance-amount {
    font-size: 28px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .support-channels {
    grid-template-columns: 1fr;
  }
  .list-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }
}

/* ==========================================================================
   Customer Portal Dashboard Shell (Matching Approved Design Mockup)
   ========================================================================== */
.portal-dashboard-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #f1f5f9;
  font-family: var(--font-sans);
  color: #0f172a;
}

/* Sidebar */
.portal-sidebar {
  width: 260px;
  min-width: 260px;
  background: #081c38;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  position: relative;
  z-index: 20;
}

.portal-sidebar-brand {
  margin-bottom: 24px;
}

.portal-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.portal-brand-logo-wrap .brand-x {
  color: #ef4444;
}

.portal-sidebar-tagline {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 4px;
}

.portal-user-profile-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Screen 2: AdiMinds Customer Portal Dashboard Styles ───────────── */
:root {
  --adiminds-navy: #081c38;
  --adiminds-gold: #d4a017;
  --adiminds-green: #0cb262;
  --adiminds-blue: #155eef;
  --adiminds-bg: #f8fafc;
  --adiminds-border: #e2e8f0;
}

.portal-root-layout {
  background: var(--adiminds-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #0f172a;
}

/* ── Top Navigation Bar ─────────────────────────────────────────────── */
.portal-nav-header {
  background: var(--adiminds-navy);
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.portal-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-nav-brand {
  display: flex;
  align-items: center;
}

.portal-brand-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
}

.portal-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.portal-nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

.portal-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--adiminds-gold);
  border-radius: 2px 2px 0 0;
}

.portal-nav-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-nav-bell-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.portal-nav-bell-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.portal-nav-bell-btn .bell-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid var(--adiminds-navy);
}

.portal-nav-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.portal-nav-user-pill:hover {
  background: rgba(255, 255, 255, 0.15);
}

.portal-nav-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d4a017;
  color: #081c38;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.portal-logout-mini-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.portal-logout-mini-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* ── Main Content Container ─────────────────────────────────────────── */
.portal-main-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-content-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Top Summary Row ────────────────────────────────────────────────── */
.portal-summary-row {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1.25fr;
  gap: 16px;
  align-items: stretch;
}

.portal-greeting-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-greeting-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--adiminds-navy);
  letter-spacing: -0.4px;
}

.portal-greeting-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.portal-metric-card {
  background: #ffffff;
  border: 1px solid var(--adiminds-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.metric-card-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-text-col {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.metric-val {
  font-size: 25px;
  font-weight: 800;
  color: var(--adiminds-navy);
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 2px 0 3px;
}

.metric-due-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #dc2626;
}

.metric-val-status {
  font-size: 24px;
  font-weight: 800;
  color: var(--adiminds-green);
  line-height: 1.15;
  margin: 2px 0 3px;
}

.metric-status-sub {
  font-size: 11.5px;
  color: #64748b;
}

.btn-pay-now-pill {
  background: var(--adiminds-blue);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(21, 94, 239, 0.25);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-pay-now-pill:hover {
  background: #1249b8;
  transform: translateY(-1px);
}

/* ── Services Section ───────────────────────────────────────────────── */
.portal-section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--adiminds-navy);
  letter-spacing: -0.3px;
}

.portal-adaptive-services-wrap {
  width: 100%;
}

/* Single Service Card (Full Width Horizontal Bar) */
.portal-single-service-card {
  background: #ffffff;
  border: 1px solid var(--adiminds-border);
  border-radius: 14px;
  padding: 16px 24px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.svc-single-brand-col {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.svc-single-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.svc-single-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-single-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--adiminds-navy);
  letter-spacing: 0.3px;
}

.svc-active-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.svc-active-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.svc-single-subtext {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.svc-single-kv-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-kv-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.svc-kv-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.svc-kv-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--adiminds-navy);
}

.btn-manage-service-outline {
  border: 1.5px solid #bfdbfe;
  background: #ffffff;
  color: var(--adiminds-blue);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-manage-service-outline:hover {
  background: #eff6ff;
  border-color: var(--adiminds-blue);
}

/* Dual Services Grid (Two Balanced Cards Side-by-Side) */
.portal-dual-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portal-svc-box-card {
  background: #ffffff;
  border: 1px solid var(--adiminds-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.portal-svc-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-svc-box-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-svc-kv-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.portal-svc-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.portal-svc-kv-row .lbl {
  color: #64748b;
}

.portal-svc-kv-row .val {
  font-weight: 700;
  color: var(--adiminds-navy);
}

/* ── Middle Row: Quick Actions & Recent Activity ─────────────────────── */
.portal-mid-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}

.portal-panel-card {
  background: #ffffff;
  border: 1px solid var(--adiminds-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.portal-panel-heading {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--adiminds-navy);
}

.portal-quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--adiminds-border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.quick-action-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

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

.qa-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.qa-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--adiminds-navy);
}

.qa-item-sub {
  font-size: 11px;
  color: #64748b;
}

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

.portal-viewall-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--adiminds-blue);
  text-decoration: none;
  cursor: pointer;
}

.portal-table-scroll {
  overflow-x: auto;
}

.portal-recent-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-recent-table th {
  text-align: left;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid var(--adiminds-border);
}

.portal-recent-table td {
  padding: 12px 10px;
  font-size: 13px;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}

.portal-status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.portal-status-pill.status-unpaid {
  background: #fee2e2;
  color: #dc2626;
}

.portal-status-pill.status-paid {
  background: #dcfce7;
  color: #15803d;
}

/* ── Bottom AdiMinds Promotional Banner ──────────────────────────────── */
.adiminds-promo-banner {
  background: var(--adiminds-navy);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
  margin-top: 4px;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(8, 28, 56, 0.15);
}

.promo-banner-left {
  padding: 28px 32px;
  max-width: 58%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.promo-headline {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.28;
  letter-spacing: -0.4px;
}

.promo-headline .text-gold {
  color: var(--adiminds-gold);
}

.promo-headline .text-green {
  color: var(--adiminds-green);
}

.promo-subtext {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Exact Match Additions for AdiMinds Customer Portal */
.card-balance {
  background: #edf5fd;
  border: 1px solid #ddecfa;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.balance-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d72fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-status {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.status-icon-outer {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6f9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon-solid {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00b050;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.nav-bell-wrap {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-bell-dot {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 7.5px;
  height: 7.5px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #01244e;
}

.nav-user-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}

.nav-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ffffff;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  object-fit: cover;
}

.nav-user-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.mid-col-left, .mid-col-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mid-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mid-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #081c38;
}

.qa-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.qa-card-box {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
  min-height: 110px;
}

.qa-card-box:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.qa-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #081c38;
  line-height: 1.2;
}

.qa-sub-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
  margin-top: 3px;
}

.activity-table-card {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 110px;
  display: flex;
  flex-direction: column;
}

.promo-5col-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 6px 0;
  border-top: 1px solid #f8fafc;
  padding-top: 4px;
}

.promo-mini-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 0 4px;
  position: relative;
}

.promo-mini-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #f1f5f9;
}

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

.mini-col-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #081c38;
  line-height: 1.25;
}

.promo-banner-right img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* ── Responsive Adaptations ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .portal-summary-row {
    grid-template-columns: 1fr;
  }
  .portal-mid-row {
    grid-template-columns: 1fr;
  }
  .adiminds-promo-banner {
    flex-direction: column;
  }
  .promo-banner-left {
    max-width: 100%;
  }
  .promo-banner-right {
    min-height: 200px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .portal-nav-links {
    display: none;
  }
  .portal-single-service-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-dual-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Service Provider Strip (Dynamic Authenticated Tenant Display) ── */
.service-provider-strip {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}
.sp-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-label {
  color: #064e3b;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sp-name {
  color: #047857;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.2px;
  font-family: var(--font-heading);
  margin-left: 4px;
}
.sp-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
}
.sp-right-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #047857;
  font-weight: 600;
}

/* ── Complaints & Support Layout ── */
.complaints-2col-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .complaints-2col-layout {
    grid-template-columns: 1fr;
  }
}
.support-card {
  background: #ffffff;
  border: 1px solid var(--adiminds-border, #e2e8f0);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.card-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.title-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.card-subtext {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}
.form-col-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}
.field-label span { color: #ef4444; }
.field-input, .field-select {
  height: 36px;
  background: #ffffff;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.field-textarea {
  height: 70px;
  background: #ffffff;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
  resize: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.field-help {
  font-size: 10px;
  color: #94a3b8;
}
.btn-submit-complaint {
  height: 38px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease;
  width: 100%;
}
.btn-submit-complaint:hover { background: #1d4ed8; }

/* ── Complaints Tracker & Table ── */
.workflow-tracker-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 14px;
}
.workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.wf-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #081c38;
}
.wf-sub {
  font-size: 9.5px;
  color: #64748b;
}
.wf-arrow {
  color: #cbd5e1;
  font-size: 14px;
}

.filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.filter-tab {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab:hover { background: #f1f5f9; }
.filter-tab.active {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
}

.table-container-scroll {
  overflow-x: auto;
  border: 1px solid #edf2f7;
  border-radius: 10px;
}
.complaints-table {
  width: 100%;
  border-collapse: collapse;
}
.complaints-table th {
  text-align: left;
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.complaints-table td {
  padding: 10px 12px;
  font-size: 11.5px;
  color: #0f172a;
  border-bottom: 1px solid #f8fafc;
  vertical-align: middle;
}
.status-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}
.tag-new { background: #fef3c7; color: #b45309; }
.tag-assigned { background: #e0e7ff; color: #4338ca; }
.tag-in_progress, .tag-in-progress { background: #eff6ff; color: #2563eb; }
.tag-resolved { background: #dcfce7; color: #15803d; }
.tag-closed { background: #f1f5f9; color: #64748b; }

.btn-view-details {
  border: 1px solid #2563eb;
  background: #ffffff;
  color: #2563eb;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.btn-view-details:hover {
  background: #eff6ff;
}

/* ── Timeline & Modal Styles ── */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 20px;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e2e8f0;
}
.timeline-item {
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -20px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #93c5fd;
}
.timeline-content {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
}




/* ==========================================================================
   APPROVED ADIMINDS PORTAL LAYOUT & MOCKUP STYLES (from dashboard_with_complaint.html)
   ========================================================================== */

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html, body {
      width: 100%;
      min-height: 100vh;
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      overflow-y: auto;
      background: #f4f7fc;
      color: #0f172a;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      -webkit-font-smoothing: antialiased;
      line-height: 1.3;
    }
    body {
      display: flex;
      flex-direction: column;
    }

    /* Main Container (Full screen, fluid edge-to-edge) */
    .portal-app-wrapper {
      width: 100%;
      min-height: 100vh;
      background: #f4f7fc;
      display: flex;
      flex-direction: column;
      overflow: visible;
    }

    /* Top Navbar */
    .portal-nav-header {
      background: #01244e;
      width: 100%;
      height: 48px;
      min-height: 48px;
      display: flex;
      align-items: center;
      padding: 0 20px;
      flex-shrink: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      box-sizing: border-box;
    }
    .portal-nav-inner {
      width: 100%;
      margin: 0 auto;
      padding: 0 4px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .portal-brand-img {
      height: 28px;
      width: auto;
      object-fit: contain;
    }
    .portal-nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      height: 48px;
    }
    .portal-nav-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #94a3b8;
      font-size: 11.5px;
      font-weight: 500;
      text-decoration: none;
      position: relative;
      height: 100%;
      padding: 0 4px;
      transition: color 0.15s ease;
    }
    .portal-nav-link:hover { color: #ffffff; }
    .portal-nav-link.active { color: #ffffff; font-weight: 700; }
    .portal-nav-link.active::after {
      content: '';
      position: absolute;
      bottom: 0px;
      left: 0;
      right: 0;
      height: 3px;
      background: #d4a017;
      border-radius: 2px 2px 0 0;
    }
    .portal-nav-user-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .nav-bell-wrap {
      position: relative;
      cursor: pointer;
      display: flex;
      align-items: center;
    }
    .nav-bell-dot {
      position: absolute;
      top: -2px;
      right: -1px;
      width: 7px;
      height: 7px;
      background: #ef4444;
      border-radius: 50%;
      border: 1.5px solid #01244e;
    }
    .nav-user-divider {
      width: 1px;
      height: 20px;
      background: rgba(255, 255, 255, 0.22);
    }
    .nav-user-profile {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      color: #ffffff;
    }
    .nav-user-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #e5a91e;
      color: #01244e;
      font-size: 13px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1.5px solid rgba(255, 255, 255, 0.45);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      user-select: none;
      text-transform: uppercase;
      flex-shrink: 0;
    }
    .nav-user-name {
      font-size: 12px;
      font-weight: 600;
    }

    /* Main Container Content */
    .portal-main-container {
      flex: 1;
      width: 100%;
      margin: 0 auto;
      padding: 8px 16px 20px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      overflow: visible;
      box-sizing: border-box;
      gap: 7px;
    }

    /* ── ROW 1: ENCLOSED HEADER AREA (Greeting Stretched to Service Level & Balanced Row) ── */
    .portal-enclosed-header {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      padding: 8px 16px;
      display: grid;
      grid-template-columns: 360px 225px 210px 1fr;
      gap: 12px;
      align-items: center;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 12px rgba(15, 23, 42, 0.02);
      flex-shrink: 0;
      min-height: 80px;
      height: auto;
      box-sizing: border-box;
    }

    /* Col 1: Greeting (Stretched to Service Area Level with Prominent Typography) */
    .header-user-col {
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-right: 1.5px solid #f1f5f9;
      padding-right: 16px;
    }
    .portal-greeting-title {
      font-size: 19.5px;
      font-weight: 800;
      color: #081c38;
      letter-spacing: -0.3px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Outfit', 'Inter', sans-serif;
      white-space: nowrap;
    }
    .portal-greeting-sub {
      font-size: 12px;
      color: #64748b;
      font-weight: 500;
      margin-top: 3px;
      white-space: nowrap;
    }

    /* Col 2: Outstanding Balance Box (Aligned on Row) */
    .header-balance-col {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-right: 1.5px solid #f1f5f9;
      padding-right: 12px;
      gap: 6px;
    }
    .balance-card-inner {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .balance-icon-wrap {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: #eff6ff;
      color: #2563eb;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border: 1px solid #dbeafe;
    }
    .balance-text-group { display: flex; flex-direction: column; }
    .balance-label { font-size: 9px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.2px; }
    .balance-amount { font-size: 17px; font-weight: 800; color: #081c38; margin: 0; line-height: 1.15; font-family: 'Outfit', 'Inter', sans-serif; }
    .balance-due { font-size: 9px; font-weight: 700; color: #dc2626; }
    .btn-pay-now-pill {
      background: #0066ff;
      color: #ffffff;
      border: none;
      border-radius: 14px;
      padding: 5px 11px;
      font-size: 10.5px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0, 102, 255, 0.25);
      white-space: nowrap;
      transition: all 0.15s ease;
    }
    .btn-pay-now-pill:hover {
      background: #0052cc;
      transform: translateY(-1px);
    }

    /* Col 3: Current Account Status Box (RESTORED Under Dedicated Enclosed Box!) */
    .header-status-box {
      background: #f0fdf4;
      border: 1.5px solid #86efac;
      border-radius: 10px;
      padding: 5px 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      height: 54px;
      box-sizing: border-box;
      box-shadow: 0 1px 4px rgba(22, 163, 74, 0.08);
      border-right: 1.5px solid #86efac;
    }
    .status-solid-circle {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: #16a34a;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 2px 5px rgba(22, 163, 74, 0.35);
    }
    .status-text-col {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    .status-card-label {
      font-size: 8.5px;
      font-weight: 700;
      color: #059669;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      line-height: 1.1;
    }
    .status-card-val {
      font-size: 15.5px;
      font-weight: 900;
      color: #16a34a;
      line-height: 1.15;
      font-family: 'Outfit', 'Inter', sans-serif;
    }
    .status-card-sub {
      font-size: 8.5px;
      color: #64748b;
      white-space: nowrap;
    }

    /* Col 4: Quick Actions (Enclosed in Header Area) */
    .header-qa-col {
      display: flex;
      align-items: center;
      height: 100%;
    }
    .header-qa-group {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      width: 100%;
    }
    .header-qa-item {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 9px;
      padding: 5px 7px;
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      transition: all 0.15s ease;
      height: 54px;
      box-sizing: border-box;
      min-width: 0;
    }
    .header-qa-icon {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #2563eb;
    }
    .header-qa-text {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    .header-qa-title {
      font-size: 10.5px;
      font-weight: 700;
      color: #081c38;
      line-height: 1.15;
      white-space: nowrap;
    }
    .header-qa-sub {
      font-size: 8.5px;
      color: #64748b;
      line-height: 1.1;
      white-space: nowrap;
    }
    .header-qa-item:hover {
      background: #ffffff;
      border-color: #cbd5e1;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      transform: translateY(-1px);
    }
    .hqa-icon {
      width: 26px;
      height: 26px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .hqa-title {
      font-size: 10px;
      font-weight: 700;
      color: #081c38;
      line-height: 1.15;
      white-space: nowrap;
    }
    .hqa-desc {
      font-size: 8px;
      color: #64748b;
      white-space: nowrap;
      margin-top: 1px;
    }

    /* ── ROW 2: SERVICE PROVIDER STRIP (Bigger & Bolder Tenant Name) ── */
    .service-provider-strip {
      background: #ecfdf5;
      border: 1.5px solid #a7f3d0;
      border-radius: 10px;
      padding: 5px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-shrink: 0;
      height: 38px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
      box-sizing: border-box;
    }
    .sp-left-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .sp-icon-box {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      background: #d1fae5;
      color: #059669;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .sp-label {
      color: #064e3b;
      font-weight: 700;
      font-size: 11.5px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .sp-name {
      color: #047857;
      font-weight: 900;
      font-size: 17px;
      letter-spacing: -0.2px;
      font-family: 'Outfit', 'Inter', sans-serif;
    }
    .sp-badge {
      background: #d1fae5;
      color: #065f46;
      font-size: 9.5px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 10px;
      margin-left: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .sp-right-contacts {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 11.5px;
      color: #047857;
      font-weight: 700;
    }

    /* ── ROW 3: YOUR SERVICES (Data usage replaced by User Name and User IP) ── */
    .portal-section-block {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex-shrink: 0;
    }
    .portal-section-title {
      font-size: 13.5px;
      font-weight: 800;
      color: #081c38;
      letter-spacing: -0.2px;
    }
    .portal-services-stack {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .portal-single-service-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      padding: 6px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 2px 6px rgba(15, 23, 42, 0.02);
      height: 62px;
      box-sizing: border-box;
      transition: all 0.15s ease;
    }
    .portal-single-service-card:hover {
      border-color: #cbd5e1;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    }
    .svc-single-brand-col {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 250px;
    }
    .svc-single-badge-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #dcfce7;
      color: #059669;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .svc-single-title-row { display: flex; align-items: center; gap: 7px; }
    .svc-single-title { font-size: 14px; font-weight: 800; color: #081c38; font-family: 'Outfit', 'Inter', sans-serif; }
    .svc-active-tag {
      background: #dcfce7;
      color: #059669;
      font-size: 9.5px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .svc-active-tag::before {
      content: '';
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: #059669;
    }
    .svc-single-subtext { font-size: 10px; color: #64748b; margin-top: 1px; }
    .svc-col-divider {
      width: 1px;
      height: 30px;
      background: #f1f5f9;
      flex-shrink: 0;
    }
    .svc-single-kv-item { display: flex; align-items: center; gap: 9px; }
    .svc-kv-icon { color: #475569; display: flex; align-items: center; }
    .svc-kv-label { font-size: 9px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
    .svc-kv-value { font-size: 13px; font-weight: 800; color: #081c38; margin-top: 1px; }
    
    /* Technical badges for username & IP */
    .tech-pill-user {
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      padding: 3px 9px;
      border-radius: 6px;
      font-family: 'Inter', monospace;
      font-size: 12px;
      font-weight: 700;
      color: #1e293b;
    }
    .tech-pill-ip {
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
      padding: 3px 9px;
      border-radius: 6px;
      font-family: 'Inter', monospace;
      font-size: 12px;
      font-weight: 800;
      color: #047857;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .ip-live-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #10b981;
    }

    .btn-manage-service-outline {
      border: 1.5px solid #2563eb;
      background: #ffffff;
      color: #2563eb;
      border-radius: 18px;
      padding: 7px 18px;
      font-size: 11.5px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      transition: all 0.15s ease;
    }
    .btn-manage-service-outline:hover {
      background: #2563eb;
      color: #ffffff;
    }

    /* ── ROW 4: COMBINED ROW: MY COMPLAINTS (50%) & RECENT ACTIVITY (50%) ── */
    .portal-complaints-activity-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      height: 116px;
      flex-shrink: 0;
    }
    .complaints-half-col, .activity-half-col {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .col-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 16px;
    }
    .col-section-title {
      font-size: 13px;
      font-weight: 800;
      color: #081c38;
      letter-spacing: -0.2px;
    }
    .btn-raise-complaint-pill {
      background: #0066ff;
      color: #ffffff;
      border: none;
      border-radius: 12px;
      padding: 3px 10px;
      font-size: 10px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0, 102, 255, 0.25);
      transition: all 0.15s ease;
    }
    .btn-raise-complaint-pill:hover { background: #0052cc; }
    .portal-viewall-link {
      font-size: 10px;
      font-weight: 700;
      color: #2563eb;
      text-decoration: none;
    }
    .portal-viewall-link:hover { text-decoration: underline; }

    /* Complaint Status Card */
    .complaint-status-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 3px 8px rgba(15, 23, 42, 0.02);
      height: 94px;
      box-sizing: border-box;
    }
    .cmp-ticket-col {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 150px;
    }
    .cmp-icon-bubble {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #e0f2fe;
      color: #0284c7;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .cmp-ticket-id {
      font-size: 12px;
      font-weight: 800;
      color: #081c38;
      font-family: 'Outfit', 'Inter', sans-serif;
    }
    .cmp-issue-sub {
      font-size: 9.5px;
      color: #64748b;
      margin-top: 1px;
    }
    .cmp-steps-track {
      display: flex;
      align-items: center;
      gap: 0;
    }
    .track-step-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      text-align: center;
    }
    .track-step-circle {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      font-weight: 800;
      z-index: 2;
    }
    .circle-green { background: #00b050; color: #ffffff; }
    .circle-blue {
      background: #0066ff;
      color: #ffffff;
      box-shadow: 0 0 0 3px #dbeafe;
    }
    .circle-gray {
      background: #ffffff;
      border: 1.5px solid #94a3b8;
      color: #cbd5e1;
    }
    .track-line-blue {
      width: 40px;
      height: 2px;
      background: #0066ff;
      margin-bottom: 20px;
    }
    .track-line-gray {
      width: 40px;
      height: 2px;
      background: #cbd5e1;
      margin-bottom: 20px;
    }
    .track-label {
      font-size: 8.5px;
      font-weight: 700;
      color: #081c38;
      margin-top: 3px;
      white-space: nowrap;
    }
    .track-sublabel {
      font-size: 8px;
      color: #64748b;
      white-space: nowrap;
    }
    .badge-in-progress-pill {
      background: #e0f2fe;
      color: #0284c7;
      font-size: 9.5px;
      font-weight: 700;
      padding: 2.5px 8px;
      border-radius: 6px;
    }
    .btn-view-complaint-outline {
      border: 1.5px solid #0066ff;
      background: #ffffff;
      color: #0066ff;
      border-radius: 14px;
      padding: 4px 10px;
      font-size: 9.5px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
      transition: all 0.15s ease;
    }
    .btn-view-complaint-outline:hover {
      background: #0066ff;
      color: #ffffff;
    }

    /* Recent Activity Card */
    .activity-table-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 3px 8px rgba(15, 23, 42, 0.02);
      height: 94px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 2px 8px;
      box-sizing: border-box;
    }
    .portal-recent-table {
      width: 100%;
      border-collapse: collapse;
    }
    .portal-recent-table thead tr { background: #f8fafc; }
    .portal-recent-table th {
      text-align: left;
      font-size: 8.5px;
      color: #64748b;
      font-weight: 600;
      padding: 3px 8px;
      border-bottom: 1px solid #edf2f7;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .portal-recent-table td {
      padding: 4.5px 8px;
      font-size: 10px;
      color: #0f172a;
      border-bottom: 1px solid #f8fafc;
      vertical-align: middle;
    }
    .portal-recent-table tbody tr:last-child td {
      border-bottom: none;
    }
    .portal-status-pill {
      display: inline-block;
      padding: 2px 7px;
      border-radius: 6px;
      font-size: 9px;
      font-weight: 700;
    }
    .portal-status-pill.status-unpaid { background: #ffe4e6; color: #e11d48; }
    .portal-status-pill.status-paid { background: #d1fae5; color: #059669; }

    /* ── ROW 5: WIDE PROMOTIONAL BANNER (Crisp HD 2560px Asset) ── */
    .adiminds-promo-banner-wrap {
      background: #ffffff;
      border-radius: 14px;
      border: 1.5px solid #e2e8f0;
      overflow: hidden;
      display: block;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03), 0 4px 14px rgba(15, 23, 42, 0.02);
      flex-shrink: 0;
      box-sizing: border-box;
      position: relative;
    }
    .adiminds-banner-link {
      display: block;
      width: 100%;
      text-decoration: none;
    }
    .adiminds-full-banner-img {
      width: 100%;
      height: auto;
      display: block;
      image-rendering: -webkit-optimize-contrast;
      image-rendering: high-quality;
    }

    /* ── MAKE A PAYMENT FULL-PAGE VIEW (MATCHING APPROVED IMAGE 2) ────────── */
    .payment-main-content {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }
    .payment-header-block {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .breadcrumb-row {
      font-size: 11.5px;
      color: #64748b;
      font-weight: 500;
    }
    .breadcrumb-row a {
      color: #64748b;
      text-decoration: none;
    }
    .breadcrumb-row a:hover {
      text-decoration: underline;
    }
    .breadcrumb-row span {
      color: #94a3b8;
      margin: 0 4px;
    }
    .payment-header-block .page-title {
      font-size: 24px;
      font-weight: 800;
      color: #081c38;
      letter-spacing: -0.4px;
      margin: 2px 0 0 0;
    }
    .payment-header-block .page-subtext {
      font-size: 12px;
      color: #64748b;
      margin: 2px 0 0 0;
    }
    .payment-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 18px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
      display: flex;
      flex-direction: column;
      gap: 10px;
      box-sizing: border-box;
    }
    .bill-summary-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .status-badge-outstanding {
      background: #dcfce7;
      color: #15803d;
      font-size: 10.5px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 12px;
    }
    .bill-meta-grid {
      display: grid;
      grid-template-columns: 180px 180px 220px 1fr;
      gap: 16px;
      align-items: center;
    }
    .meta-item {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .meta-label {
      font-size: 10.5px;
      color: #64748b;
      font-weight: 500;
    }
    .meta-amount {
      font-size: 24px;
      font-weight: 800;
      color: #081c38;
      letter-spacing: -0.5px;
      line-height: 1.1;
    }
    .meta-value-row {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12.5px;
      font-weight: 700;
      color: #081c38;
    }
    .meta-icon-mini {
      color: #64748b;
      display: flex;
      align-items: center;
    }
    .meta-service-title {
      font-size: 12.5px;
      font-weight: 700;
      color: #081c38;
    }
    .meta-service-sub {
      font-size: 10.5px;
      color: #64748b;
    }
    .upi-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }
    .alert-verify-merchant {
      background: #fef3c7;
      color: #b45309;
      border: 1px solid #fde68a;
      border-radius: 6px;
      padding: 4px 12px;
      font-size: 11px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .upi-content-grid {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 28px;
      align-items: center;
    }
    .qr-card-box {
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      background: #fcfdfd;
      gap: 6px;
    }
    .qr-title {
      font-size: 13px;
      font-weight: 700;
      color: #081c38;
    }
    .qr-sub {
      font-size: 10.5px;
      color: #64748b;
    }
    .qr-img-wrapper {
      width: 140px;
      height: 140px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      background: #ffffff;
      padding: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    .qr-img-wrapper svg, .qr-img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .qr-footer-text {
      font-size: 10px;
      color: #94a3b8;
    }
    .upi-details-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .vpa-section-label {
      font-size: 13px;
      font-weight: 700;
      color: #081c38;
    }
    .vpa-sub-label {
      font-size: 10.5px;
      color: #64748b;
      margin-top: 1px;
      margin-bottom: 4px;
    }
    .vpa-input-group {
      display: flex;
      align-items: center;
      gap: 8px;
      max-width: 580px;
    }
    .vpa-input {
      flex: 1;
      height: 38px;
      background: #f8fafc;
      border: 1.5px solid #94a3b8;
      border-radius: 7px;
      padding: 0 12px;
      font-size: 13px;
      font-weight: 600;
      color: #081c38;
      font-family: monospace;
      outline: none;
    }
    .btn-copy-upi {
      height: 38px;
      background: #0066ff;
      color: #ffffff;
      border: none;
      border-radius: 7px;
      padding: 0 16px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: background 0.15s ease;
      white-space: nowrap;
      box-shadow: 0 2px 5px rgba(0, 102, 255, 0.2);
    }
    .btn-copy-upi:hover {
      background: #0052cc;
    }
    .how-to-pay-title {
      font-size: 12.5px;
      font-weight: 700;
      color: #081c38;
      margin-top: 2px;
    }
    .steps-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .step-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 11.5px;
      color: #334155;
      line-height: 1.4;
    }
    .step-num {
      width: 17px;
      height: 17px;
      border-radius: 50%;
      background: #e0f2fe;
      color: #0284c7;
      font-size: 9.5px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .confirm-card-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .confirm-left {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      max-width: 580px;
    }
    .confirm-heading {
      font-size: 14px;
      font-weight: 800;
      color: #081c38;
    }
    .confirm-subtext {
      font-size: 11.5px;
      color: #64748b;
      margin-top: 2px;
    }
    .btn-confirm-payment {
      background: #0066ff;
      color: #ffffff;
      border: none;
      border-radius: 7px;
      padding: 9px 20px;
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 6px rgba(0, 102, 255, 0.25);
      margin-top: 8px;
      transition: background 0.15s ease;
    }
    .btn-confirm-payment:hover {
      background: #0052cc;
    }
    .confirm-right {
      flex: 1;
      max-width: 360px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .ref-label {
      font-size: 11px;
      color: #64748b;
      font-weight: 600;
    }
    .ref-input {
      width: 100%;
      height: 38px;
      background: #ffffff;
      border: 1.5px solid #94a3b8;
      border-radius: 7px;
      padding: 0 12px;
      font-size: 12px;
      color: #0f172a;
      outline: none;
      box-sizing: border-box;
    }
    .ref-input:focus {
      border-color: #0066ff;
    }
  
/* Cosmetic refinement: clarity, responsive layouts, and readable cards.
   Presentation only; application behavior and data flows are unchanged. */
:root {
  --portal-navy: #08264b;
  --portal-blue: #1769e8;
  --portal-green: #07885c;
  --portal-page: #f4f7fb;
  --portal-border: #dce5f0;
  --portal-shadow: 0 8px 24px rgba(15, 35, 65, .055);
}
html, body { background: var(--portal-page); color: #10233f; line-height: 1.45; }
.portal-nav-header {
  min-height: 52px; height: 52px; padding: 0 clamp(16px, 2.4vw, 34px);
  box-shadow: 0 2px 10px rgba(2, 22, 48, 0.16) !important;
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; z-index: 1000 !important;
}
.portal-nav-inner { min-height: 52px; gap: 18px; }
.portal-brand-img { height: 34px; }
.portal-nav-links { gap: clamp(12px, 2vw, 28px); min-width: 0; }
.portal-nav-link { font-size: 12.5px; white-space: nowrap; padding-inline: 5px; }
.portal-nav-link.active::after { height: 3px; background: #f3b51b; }
.portal-nav-user-actions { gap: 12px; flex-shrink: 0; }
.portal-main-container { padding: clamp(14px, 1.7vw, 24px) clamp(14px, 2vw, 30px) 28px; gap: 14px; margin-top: 52px !important; }

.portal-enclosed-header {
  grid-template-columns: minmax(230px, 1.15fr) minmax(230px, .95fr) minmax(230px, .95fr) minmax(340px, 1.3fr);
  gap: 14px; min-height: 92px; padding: 14px 18px;
  border: 1px solid var(--portal-border); border-radius: 16px; box-shadow: var(--portal-shadow);
}
.header-user-col, .header-balance-col { min-width: 0; }
.portal-greeting-title { font-size: clamp(18px, 1.5vw, 22px); }
.portal-greeting-sub { font-size: 13px; white-space: normal; }
.balance-label, .status-card-label { font-size: 10px; }
.balance-amount { font-size: 20px; }
.balance-due { font-size: 10px; }
.btn-pay-now-pill { padding: 8px 13px; font-size: 12px; border-radius: 10px; }
.header-status-box { min-width: 0; height: auto; min-height: 62px; padding: 9px 12px; }
.status-card-val { font-size: 17px; }
.status-card-sub { font-size: 10px; white-space: normal; }
.header-qa-group { gap: 8px; }
.header-qa-item { min-height: 62px; height: auto; padding: 9px 8px; gap: 8px; }
.hqa-title { font-size: 11px; white-space: normal; line-height: 1.25; }
.hqa-desc { font-size: 9px; white-space: normal; line-height: 1.25; }
.hqa-icon { flex: 0 0 30px; width: 30px; height: 30px; }

.service-provider-strip {
  min-height: 50px; height: auto; margin: 0; padding: 9px 16px;
  gap: 12px 20px; border-radius: 13px;
}
.sp-left-group { min-width: 0; flex-wrap: wrap; gap: 8px 10px; }
.sp-label { font-size: 11px; }
.sp-name { font-size: 16px; overflow-wrap: anywhere; }
.sp-right-contacts { flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; }

.portal-section-block { gap: 8px; }
.portal-section-title, .col-section-title { font-size: 15px; }
.portal-services-stack { gap: 10px; }
.portal-single-service-card {
  height: auto; min-height: 84px; padding: 12px 16px; display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1px minmax(200px, 1.55fr) 1px minmax(140px, 1.05fr) 1px minmax(130px, .95fr) 1px minmax(125px, .9fr);
  gap: 12px; border: 1px solid var(--portal-border); border-radius: 14px;
  box-shadow: 0 3px 10px rgba(15, 35, 65, .035);
}
.svc-single-brand-col { min-width: 0; gap: 10px; }
.svc-single-title { font-size: 14px; }
.svc-single-subtext { font-size: 11px; line-height: 1.35; white-space: normal; }
.svc-col-divider { height: 42px; background: #e8eef6; }
.svc-single-kv-item { min-width: 0; gap: 8px; }
.svc-single-kv-item > div:last-child { min-width: 0; }
.svc-kv-label { font-size: 9.5px; line-height: 1.25; }
.svc-kv-value { font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.tech-pill-user, .tech-pill-ip { max-width: 100%; font-size: 11px; overflow-wrap: anywhere; }

.portal-complaints-activity-row {
  height: auto; min-height: 168px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 16px;
}
.complaints-half-col, .activity-half-col { min-width: 0; gap: 8px; }
.col-header-row { height: auto; min-height: 24px; gap: 10px; }
.btn-raise-complaint-pill { min-height: 34px; padding: 7px 12px; font-size: 11px; border-radius: 9px; }
.portal-viewall-link { font-size: 11px; white-space: nowrap; }
.complaint-status-card {
  min-height: 124px; height: auto; padding: 16px; gap: 16px;
  border: 1px solid var(--portal-border); border-radius: 14px;
}
.cmp-ticket-col { min-width: 0; }
.cmp-ticket-id { font-size: 13px; }
.cmp-issue-sub { font-size: 11px; line-height: 1.35; }
.cmp-steps-track { flex-shrink: 0; }
.track-label { font-size: 10px; }
.track-sublabel { font-size: 9px; }
.track-line-blue, .track-line-gray { width: clamp(18px, 3vw, 40px); }
.btn-view-complaint-outline { min-height: 34px; padding: 7px 11px; font-size: 10.5px; border-radius: 9px; }
.activity-table-card {
  height: auto; max-height: 240px; overflow-y: auto; overflow-x: auto; scrollbar-width: thin;
  justify-content: flex-start; padding: 2px 8px;
  border: 1px solid var(--portal-border); border-radius: 12px;
}
.activity-table-card::-webkit-scrollbar { width: 5px; }
.activity-table-card::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.portal-recent-table { width: 100%; min-width: 440px; border-collapse: collapse; }
.portal-recent-table th {
  font-size: 9.5px !important; font-weight: 700; color: #64748b; padding: 4px 6px !important;
  position: sticky; top: 0; background: #ffffff; z-index: 2; border-bottom: 1px solid #f1f5f9;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.portal-recent-table td {
  font-size: 11px !important; padding: 2.5px 6px !important; line-height: 1.15 !important;
  border-bottom: 1px solid #f8fafc; vertical-align: middle;
}
.portal-recent-table tr { height: 28px !important; }
.portal-recent-table tr:last-child td { border-bottom: none; }
.adiminds-promo-banner-wrap {
  border-radius: 16px; border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow); margin-top: 10px;
}
.adiminds-banner-link:focus-visible, .portal-nav-link:focus-visible,
.header-qa-item:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(23, 105, 232, .5); outline-offset: 3px;
}

/* Apply the same clean card and form treatment to the remaining portal tabs. */
.portal-panel-card, .support-card, .payment-card {
  border-color: var(--portal-border); border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 35, 65, .045);
}
.portal-panel-heading, .page-title { letter-spacing: -.025em; }
.form-control, select, textarea, input { max-width: 100%; }
.portal-panel-card button, .support-card button, .payment-card button { min-height: 40px; }
.complaints-table th, .complaints-table td { padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 1260px) {
  .portal-enclosed-header { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr); }
  .header-user-col, .header-balance-col { min-height: 62px; }
  .header-user-col, .header-balance-col { border-right: 0; }
  .header-status-box, .header-qa-col { min-height: 64px; }
  .portal-single-service-card {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 12px; align-items: center;
  }
  .portal-single-service-card > .svc-col-divider { display: none; }
  .portal-single-service-card > .svc-single-kv-item:nth-child(7) { display: none; }
}
@media (max-width: 900px) {
  .portal-nav-header { padding: 8px 14px; }
  .portal-nav-inner { min-height: 0; flex-wrap: wrap; gap: 8px 14px; }
  .portal-brand-img { height: 32px; }
  .portal-nav-links {
    order: 3; width: 100%; height: 42px; overflow-x: auto; gap: 20px;
    scrollbar-width: none;
  }
  .portal-nav-links::-webkit-scrollbar { display: none; }
  .portal-nav-link { height: 42px; font-size: 12px; }
  .portal-nav-user-actions { margin-left: auto; }
  .portal-main-container { padding: 14px; }
  .portal-complaints-activity-row { grid-template-columns: 1fr; }
  .complaint-status-card { flex-wrap: wrap; justify-content: flex-start; }
  .cmp-steps-track { margin-left: 42px; }
  .btn-view-complaint-outline { margin-left: auto; }
  .bill-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upi-content-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .portal-main-container { padding: 10px; gap: 11px; }
  .portal-enclosed-header { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .header-user-col, .header-balance-col { border: 0; padding: 0; }
  .header-balance-col { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
  .header-status-box { min-height: 60px; }
  .header-qa-group { grid-template-columns: 1fr; }
  .header-qa-item { min-height: 54px; }
  .service-provider-strip { align-items: flex-start; flex-direction: column; }
  .sp-left-group { align-items: flex-start; }
  .sp-right-contacts { align-items: flex-start; flex-direction: column; }
  .sp-right-contacts > span:nth-child(2) { display: none; }
  .portal-single-service-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px;
  }
  .portal-single-service-card > .svc-single-brand-col { grid-column: 1 / -1; }
  .portal-single-service-card > .svc-col-divider { display: none; }
  .portal-single-service-card > .svc-single-kv-item { display: flex !important; align-items: flex-start; }
  .portal-single-service-card > .svc-single-kv-item:nth-child(3) { grid-column: 1 / -1; }
  .svc-single-subtext { max-width: 38ch; }
  .svc-kv-label { font-size: 9px; }
  .svc-kv-value { font-size: 11.5px; }
  .tech-pill-user, .tech-pill-ip { padding: 3px 6px; font-size: 10px; }
  .col-header-row { align-items: flex-start; }
  .col-section-title { font-size: 14px; }
  .btn-raise-complaint-pill { font-size: 10px; padding: 6px 9px; }
  .complaint-status-card { align-items: flex-start; padding: 13px; gap: 12px; }
  .cmp-ticket-col { width: 100%; }
  .cmp-steps-track { margin-left: 0; }
  .track-line-blue, .track-line-gray { width: clamp(16px, 9vw, 44px); }
  .btn-view-complaint-outline { margin-left: 0; }
  .activity-table-card { min-height: 110px; }
  .portal-recent-table { min-width: 440px; }
  .adiminds-promo-banner-wrap { border-radius: 12px; }
  .payment-card { padding: 14px; }
  .bill-meta-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .confirm-card-content { align-items: stretch; flex-direction: column; gap: 14px; }
  .confirm-right { max-width: none; }
  .vpa-input-group { flex-wrap: wrap; }
  .vpa-input { min-width: 0; }
}


/* Requested overview header polish: equal-height summary blocks, softer fills. */
.portal-enclosed-header {
  grid-template-columns: minmax(200px, 1fr) minmax(270px, 1.15fr) minmax(270px, 1.15fr) minmax(420px, 1.75fr);
  align-items: stretch;
  min-height: 116px;
  padding: 14px 16px;
}
.header-user-col,
.header-balance-col,
.header-status-box,
.header-qa-col {
  min-height: 84px;
  height: 100%;
}
.header-user-col { justify-content: center; }
.header-balance-col {
  padding: 12px;
  border: 1px solid #d3e3f8;
  border-radius: 14px;
  background: #eff6ff;
}
.header-status-box {
  padding: 12px 14px;
  border: 1px solid #b8e5cc;
  border-radius: 14px;
  background: #f2fbf5;
  box-shadow: none;
}
.status-card-sub { display: none; }
.header-qa-col { align-items: stretch; }
.header-qa-group { height: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.header-qa-item {
  height: auto;
  min-height: 84px;
  background: #fbfcfe;
  border-color: #e1e8f1;
  border-radius: 14px;
  padding: 10px;
}
.portal-enclosed-header .balance-label { text-transform: none; font-size: 10px; }
.portal-enclosed-header .status-card-label { text-transform: none; font-size: 10px; }

.service-provider-strip {
  background: #ffffff;
  border-color: #8bd2ad;
  box-shadow: none;
}
.sp-label { color: #5d7187; }
.sp-name { color: #12375c; }
.sp-badge {
  background: #ffffff;
  border: 1px solid #c8e7d5;
  color: #317351;
}
.sp-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #01244e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(1, 36, 78, 0.25);
  border: none;
}
.sp-right-contacts { color: #48627b; }
.sp-right-contacts strong { color: #173a5f !important; }

/* Service Details Modal: Broadcaster & A-la-carte Packages List */
.svc-pkg-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.15s ease;
}
.svc-pkg-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.svc-pkg-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.svc-pkg-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}
.svc-pkg-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.svc-pkg-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.svc-pkg-tag.mso { background: #dbeafe; color: #1e40af; }
.svc-pkg-tag.broadcaster { background: #ede9fe; color: #6d28d9; }
.svc-pkg-tag.alacarte { background: #fef3c7; color: #b45309; }
.svc-pkg-tag.internet { background: #dcfce7; color: #166534; }
.svc-pkg-price {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
  font-family: 'Outfit', 'Inter', sans-serif;
}

#servicesSection .svc-single-subtext { display: none; }
#pane-services .sp-badge { display: none; }

@media (max-width: 1260px) {
  .portal-enclosed-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .portal-enclosed-header { grid-template-columns: 1fr; }
  .header-user-col, .header-balance-col, .header-status-box, .header-qa-col { min-height: 74px; }
  .header-qa-item { min-height: 62px; }
  .service-provider-strip { background: #ffffff; }
}


/* Overview: five matched summary/action cards. */
.portal-enclosed-header {
  grid-template-columns: minmax(205px, 1.15fr) repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.header-qa-col, .header-qa-group { display: contents; }
.header-balance-col, .header-status-box, .header-qa-item {
  height: 84px;
  min-height: 84px;
  box-sizing: border-box;
  border-radius: 14px;
  padding: 10px;
  box-shadow: none;
}
.header-balance-col { background: #f1f6ff; border-color: #d5e2f3; }
.header-status-box { background: #f2faf6; border-color: #cde7d8; }
.header-qa-item { background: #f5f8ff; border-color: #dce5f2; }
.header-qa-item:nth-child(2) { background: #f7f4ff; border-color: #e3daf4; }
.header-qa-item:nth-child(3) { background: #f2faf7; border-color: #d5e9df; }
.header-qa-group { grid-template-columns: none; }
@media (max-width: 1260px) {
  .portal-enclosed-header { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-user-col { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .portal-enclosed-header { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-user-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .portal-enclosed-header { grid-template-columns: 1fr; }
  .header-user-col { grid-column: auto; }
  .header-balance-col, .header-status-box, .header-qa-item { min-height: 72px; height: auto; }
}
/* ═══════════════════════════════════════════════════════════════════
   OPTION 3: MODERN PRISTINE (SIDE ACCENT BARS + SOLID CIRCLE ICONS)
   ═══════════════════════════════════════════════════════════════════ */
.portal-enclosed-header.header-opt3 {
  width: 100% !important;
  max-width: 100% !important;
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
  display: grid !important;
  grid-template-columns: minmax(180px, auto) minmax(185px, 1.35fr) minmax(115px, 0.95fr) repeat(3, minmax(125px, 1fr)) !important;
  grid-auto-rows: 72px !important;
  gap: 8px !important;
  align-items: center !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: auto !important;
}

.opt1-greeting {
  font-size: 17.5px !important;
  font-weight: 800 !important;
  color: #0A1931 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding-left: 6px !important;
  white-space: nowrap !important;
}

/* Solid Circle Icon Badge (Status box type across all cards) */
.solid-circle-icon {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border-radius: 50% !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}
.bg-circle-red { background: #DC2626 !important; }
.bg-circle-green { background: #00A859 !important; }
.bg-circle-sky { background: #0284C7 !important; }
.bg-circle-purple { background: #7C3AED !important; }
.bg-circle-amber { background: #EA580C !important; }

/* White Card Base with Colored Left Border Accent */
.opt3-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  height: 72px !important;
  max-height: 72px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.15s ease !important;
}
.opt3-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06) !important;
}
.opt3-card::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3.5px !important;
}
.opt3-card-bal::before { background: #DC2626 !important; }
.opt3-card-status::before { background: #00A859 !important; }
.opt3-card-inv::before { background: #0284C7 !important; }
.opt3-card-pay::before { background: #7C3AED !important; }
.opt3-card-cmp::before { background: #EA580C !important; }

.opt3-card-bal {
  justify-content: space-between !important;
  background: #FFFBFB !important;
  border-color: #FED7D7 !important;
}

.opt1-balance-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.opt1-balance-texts {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}
.opt1-bal-label {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1 !important;
}
.opt1-bal-val {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #DC2626 !important;
  line-height: 1.15 !important;
  margin: 2px 0 1px !important;
}
.opt1-bal-due {
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #DC2626 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.opt3-pay-pill {
  background: #0A1931 !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 0 10px !important;
  height: 28px !important;
  border-radius: 14px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(10, 25, 49, 0.25) !important;
  transition: background 0.15s !important;
}
.opt3-pay-pill:hover {
  background: #1E3A8A !important;
}

.opt1-card-label {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1 !important;
}
.opt1-card-val {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #00A859 !important;
  line-height: 1.15 !important;
  margin-top: 2px !important;
}

.opt1-action-title {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #0A1931 !important;
  line-height: 1.15 !important;
}
.opt1-action-desc {
  font-size: 9.5px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  line-height: 1.15 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

@media (max-width: 1260px) {
  .portal-enclosed-header.header-opt3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
  }
  .portal-enclosed-header.header-opt3 .header-user-col {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 820px) {
  .portal-enclosed-header.header-opt3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 580px) {
  .portal-enclosed-header.header-opt3 {
    grid-template-columns: 1fr !important;
  }
}

/* Overview refinements: centered greeting and an always-visible complaints row. */
.header-user-col { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.header-user-col .portal-greeting-sub { display:none !important; }
.portal-complaints-activity-row { display:grid !important; position:relative; height:auto !important; min-height:0 !important; overflow:visible !important; align-self:stretch; z-index:0; }
.complaints-half-col, .activity-half-col, #overviewComplaintCardWrap { min-width:0; overflow:visible; }
.complaint-status-card { min-height:124px; height:auto; overflow:visible; }


/* Keep invoice download and payment actions clear on every billing row. */
.item-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .item-actions { width: 100%; justify-content: flex-start; } }


/* ── Multi-Invoice Settlement & FIFO Payment Styles ───────────────────────── */
.invoice-selection-card {
  background: #ffffff;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(15, 35, 65, 0.04);
  margin-bottom: 20px;
}
.multi-inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}
.multi-inv-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}
.multi-inv-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.multi-inv-table tr:hover {
  background: #f8fafc;
}
.inv-checkbox {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
  cursor: pointer;
}
.inv-ref-title {
  font-weight: 700;
  color: #081c38;
  font-size: 12.5px;
}
.inv-ref-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}
.inv-balance-col {
  font-weight: 800;
  color: #dc2626;
  font-size: 13px;
  font-family: 'Outfit', 'Inter', sans-serif;
}
.fifo-notice-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.payment-calc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.calc-outstanding-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.calc-outstanding-val {
  font-size: 20px;
  font-weight: 800;
  color: #081c38;
  font-family: 'Outfit', sans-serif;
}
.amount-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.amount-custom-input {
  width: 135px;
  height: 36px;
  font-size: 15px;
  font-weight: 700;
  color: #081c38;
  padding: 0 10px;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  outline: none;
  font-family: 'Outfit', sans-serif;
}
.amount-custom-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ── Compact 8-Row Recent Activity & Complaints ───────────────────────────── */
.compact-activity-scroll {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.compact-activity-scroll::-webkit-scrollbar {
  width: 5px;
}
.compact-activity-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.portal-activity-table td {
  padding: 2.5px 6px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}
.portal-activity-table th {
  padding: 4px 6px !important;
  font-size: 9.5px !important;
  line-height: 1.15 !important;
}

/* Compact Overview Complaints List */
.compact-complaints-scroll {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ── Compact & Fully Scrollable "View Plan Details" Modal ─────────────────── */
#serviceDetailsModal {
  overflow-y: auto !important;
}
#serviceDetailsModal .modal-dialog {
  max-width: 720px !important;
  width: 95% !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
  margin: auto !important;
}
#serviceDetailsModal .modal-header {
  flex-shrink: 0 !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
#serviceDetailsModal .modal-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
}
.plan-modal-body {
  padding: 12px 18px !important;
  background: #fbfcfe !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
}
.plan-modal-body::-webkit-scrollbar {
  width: 5px;
}
.plan-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.provider-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: none;
}
.provider-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.provider-name-title {
  font-size: 14px;
  font-weight: 800;
  color: #047857;
}
.details-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-item .lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.detail-item .val {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}
.detail-item .val.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  color: #0f172a;
  font-size: 11.5px;
}
.packages-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.packages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.packages-title {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pkg-list-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.pkg-list-container::-webkit-scrollbar {
  width: 5px;
}
.pkg-list-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.svc-pkg-card {
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.modal-action-footer {
  flex-shrink: 0 !important;
  padding: 10px 18px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.modal-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}
.modal-footer-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-action {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1.5px solid #94a3b8;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-outline-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.btn-primary-action {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
  transition: all 0.15s ease;
}
.btn-primary-action:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

/* ── Spacious Support Desk Grid Layout ────────────────────────────────────── */
.support-spacious-grid {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 22px;
  width: 100%;
}
@media (max-width: 1024px) {
  .support-spacious-grid {
    grid-template-columns: 1fr;
  }
  .details-3col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .details-3col-grid {
    grid-template-columns: 1fr;
  }
  .modal-action-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-footer-buttons {
    flex-direction: column;
    width: 100%;
  }
}


.complaints-2col-layout {
  display: grid !important;
  grid-template-columns: 440px minmax(0, 1fr) !important;
  gap: 22px !important;
  width: 100% !important;
}
@media (max-width: 1024px) {
  .complaints-2col-layout {
    grid-template-columns: 1fr !important;
  }
}


/* Universal high-visibility input boundary enforcement for customer portal */
.portal-app input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.portal-app select,
.portal-app textarea,
.form-control,
.field-input,
.field-select,
.field-textarea,
.vpa-input,
.ref-input,
.amount-custom-input,
.input-with-prefix {
  border: 1.5px solid #94a3b8 !important;
  background-color: #ffffff !important;
  box-sizing: border-box;
}

.portal-app input:focus,
.portal-app select:focus,
.portal-app textarea:focus,
.form-control:focus,
.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.vpa-input:focus,
.ref-input:focus,
.amount-custom-input:focus,
.input-with-prefix:focus-within {
  border-color: #1769e8 !important;
  box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.18) !important;
  outline: none !important;
}
