/* GoCall Customer Portal - Global Styles */

:root {
  --brand-purple: #5C3DE8;
  --brand-navy: #031A49;
  --brand-pink: #FF3FA2;
  --muted: #f6f8fb;
  --sidebar-w: 260px;
}

* {
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
}

body {
  background: #fff;
}

/* ----- App Shell & Layout ----- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

@media (max-width: 767.98px) {
  .app-shell {
    display: block;
  }
  .page-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ----- Sidebar ----- */
.sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 1px solid #eef1f6;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0, 0, 0, .04);
  z-index: 1030;
}

.sidebar .brand {
  padding: 18px 18px 8px 18px;
}

.sidebar .brand img {
  height: 50px;
}

@media (min-width: 768px) {
  .sidebar .brand {
    margin-top: 60px;
  }
}

.sidebar .nav {
  padding: 12px;
}

.sidebar .nav-text {
  padding: 14px 14px;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 10px;
  color: #3b4960;
  font-weight: 700;
  letter-spacing: .2px;
}

.sidebar .nav-link .fa-fw {
  width: 1.25em;
  text-align: center;
}

.sidebar .nav-link:hover {
  color: var(--brand-purple);
}

.sidebar .nav-link.active {
  background: rgba(92, 61, 232, .12);
  color: var(--brand-purple);
}

.sidebar .logout {
  color: #dc3545;
}

.menu-close {
  width: 100%;
  text-align: right;
}

.menu-btn-close {
  font-size: 32px !important;
  margin: 10px;
}

/* ----- Mobile Sidebar & Topbar ----- */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    width: 100vw;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .topbar {
    display: flex !important;
  }
  .backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 26, 73, .35);
    z-index: 1029;
  }
  .backdrop.show {
    display: block;
  }
}

.topbar {
  display: none;
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
}

.topbar .logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topbar button {
  border-color: var(--brand-purple);
}

.topbar button i {
  color: var(--brand-purple);
}

/* ----- Hero Section ----- */
.brand-badge {
  background: rgba(92, 61, 232, .1);
  color: var(--brand-purple);
  border: 1px solid rgba(92, 61, 232, .2);
}

.hero {
  background: radial-gradient(1000px 520px at right -20%, rgba(92, 61, 232, .10) 0%, rgba(3, 26, 73, .04) 55%, transparent 100%),
              linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
}

.hero h1 {
  font-weight: 800;
  color: var(--brand-navy);
}

.hero .lead {
  color: #4f5f74;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 78px;
  }
}

/* ----- Cards & Components ----- */
.card {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.feature-icon {
  color: var(--brand-pink);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--muted);
}

.metric {
  border-radius: 14px;
  background: #fff;
}

.metric .label {
  color: #6b7a90;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
}

.metric .value {
  font-weight: 800;
  color: var(--brand-navy);
  font-size: 1.5rem;
}

/* ----- Progress Bars ----- */
.progress {
  height: 10px;
  background: #edf1f7;
}

.progress-bar {
  background-color: var(--brand-purple);
}

.progress-bar.pink {
  background-color: var(--brand-pink);
}

.progress-bar.navy {
  background-color: var(--brand-navy);
}

.progress.progress-slim {
  height: 6px;
  background: #edf1f7;
}

.progress.progress-slim .progress-bar {
  background-color: var(--brand-purple);
}

/* ----- Buttons ----- */
.btn-brand {
  color: white;
  background: var(--brand-purple);
  border-color: var(--brand-purple);
}

.btn-brand:hover {
  color: var(--brand-purple);
  background: white;
  border-color: var(--brand-purple);
  transition: .3s;
}

.btn-outline-brand {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.btn-outline-brand:hover {
  color: white;
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  transition: .3s;
}

.btn-manage {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.btn-manage:hover {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  color: white;
  transition: 0.3s;
}

/* ----- Status Banners (Billing) ----- */
.status-banner {
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-banner.due {
  background: #fff9e6;
  border-color: #ffe9a8;
}

.status-banner.overdue {
  background: #ffeaea;
  border-color: #ffb8b8;
}

.status-banner.clear {
  background: #eef9f1;
  border-color: #c8ebd2;
}

/* ----- Accordions ----- */
.help-accordion .accordion-item,
.svc-accordion .accordion-item {
  border: 1px solid #eef1f6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}

.help-accordion .accordion-item + .accordion-item,
.svc-accordion .accordion-item + .accordion-item {
  margin-top: 14px;
}

.help-accordion .accordion-button,
.svc-accordion .accordion-button {
  background: #fff;
  padding: 16px 18px;
  gap: 12px;
}

.help-accordion .accordion-button {
  font-weight: 800;
}

.help-accordion .accordion-button i {
  color: var(--brand-pink);
}

.help-accordion .accordion-button:not(.collapsed),
.svc-accordion .accordion-button:not(.collapsed) {
  box-shadow: inset 0 -1px 0 #f0f3f8;
}

.svc-accordion .accordion-button::after {
  filter: hue-rotate(320deg) saturate(1.1);
}

.accordion-body {
  text-align: center;
}

/* ----- Services Page Specific ----- */
.usage-pill {
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(92, 61, 232, .10);
  color: var(--brand-purple);
  border: 1px solid rgba(92, 61, 232, .2);
}

.svc-topline {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--brand-purple);
  font-weight: 800;
}

.svc-subtle {
  color: #6b7a90;
}

.svc-meta small {
  color: #6b7a90;
}

.svc-actions .btn {
  min-width: 160px;
}

@media (max-width: 767.98px) {
  .svc-actions .btn {
    width: 100%;
  }
}

/* ----- Help Center ----- */
.section-title {
  font-weight: 800;
  color: var(--brand-navy);
}

.muted {
  color: #6b7a90;
}

/* ----- Footer ----- */
.footer {
  background: var(--brand-purple);
  color: #cfe0f3;
  margin-top: auto !important;
}

.footer a {
  color: #cfe0f3;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* ========================================
   SETTINGS PAGE SPECIFIC STYLES
   ======================================== */

/* Horizontal Settings Tabs */
.settings-tabs { 
  border-bottom: 1px solid #eef1f6; 
}

@media (max-width: 768px) { 
  .settings-tabs { 
    overflow-x: scroll; 
    display: -webkit-inline-box; 
  } 
}

.settings-tabs .nav-link { 
  font-weight: 800; 
  color: #4b5a71; 
  border: none; 
  border-bottom: 3px solid transparent; 
  border-radius: 0; 
  padding: 14px 18px; 
}

.settings-tabs .nav-link:hover { 
  color: var(--brand-purple); 
}

.settings-tabs .nav-link.active { 
  color: var(--brand-purple); 
  border-color: var(--brand-purple); 
  background: transparent; 
}

/* Badge soft variant */
.badge-soft { 
  background: rgba(92,61,232,.10); 
  color: var(--brand-purple); 
  border: 1px solid rgba(92,61,232,.2); 
}

/* Auth page body - full screen centered layout */
body.auth-page {
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: radial-gradient(circle at 70% 30%, rgba(92,61,232,.25), transparent 60%), 
              linear-gradient(160deg, rgba(3,26,73,.8), rgba(92,61,232,.9));
  padding: 24px;
}

.auth { 
  width: min(1060px, 96vw); 
}

/* Auth card with two columns */
.card-auth { 
  border: none; 
  border-radius: 20px; 
  overflow: hidden; 
  box-shadow: 0 18px 60px rgba(0,0,0,.08); 
  background: white; 
}

.card-auth .left { 
  background: #fff; 
}

.card-auth .right {
  background: radial-gradient(1000px 520px at right -20%, rgba(92,61,232,.10) 0%, rgba(3,26,73,.04) 55%, transparent 100%),
              linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  /*color: #fff;*/
  position: relative;
}

/* Background watermark/pattern */
.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/gocall-logo-symbol.png') no-repeat center/200px;
  opacity: 0.08;
  z-index: 0;
}

.right-content { 
  position: relative; 
  z-index: 1; 
}

.right-content h3 { 
  color: var(--brand-purple); 
}

.right-content p { 
  color: var(--brand-navy); 
}

/* Auth page typography */
.brand-title { 
  font-weight: 900; 
  color: var(--brand-navy); 
  letter-spacing: .2px; 
}

.subtle { 
  color: #6b7a90; 
}

/* Auth buttons */
.btn-login { 
  height: 50px; 
}

/* Input styling for auth forms */
.input-icon { 
  position: relative; 
}

.input-icon .fa-fw { 
  position: absolute; 
  left: 12px; 
  top: 50%; 
  transform: translateY(-50%); 
  color: #7b8aa3; 
}

.input-icon input { 
  padding-left: 0.8rem; 
}

/* Divider for "or" sections */
.divider { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  color: #7b8aa3; 
  font-weight: 700; 
}

.divider::before, 
.divider::after { 
  content: ""; 
  flex: 1; 
  height: 1px; 
  background: #e7ecf4; 
}

/* Footer text */
.foot { 
  color: #8aa0be; 
}

.foot a {
  color: var(--brand-purple);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

/* Eyebrow label */
.eyebrow { 
  display: inline-block; 
  font-weight: 800; 
  font-size: .75rem; 
  letter-spacing: .2px; 
  color: var(--brand-purple); 
  background: rgba(92,61,232,.10); 
  border: 1px solid rgba(92,61,232,.20); 
  border-radius: 999px; 
  padding: 6px 10px; 
}

/* Help links */
.help-links a { 
  color: #6b7a90; 
  text-decoration: none; 
}

.help-links a:hover { 
  color: var(--brand-purple); 
}

/* Password strength meter */
.pw-meter { 
  height: 8px; 
  background: #edf1f7; 
  border-radius: 6px; 
  overflow: hidden; 
}

.pw-meter > div { 
  height: 100%; 
  width: 0%; 
  background: var(--brand-purple); 
  transition: width .25s ease; 
}

/* ========================================
   EMAIL VERIFICATION PAGE
   ======================================== */

/* Single centered card for verification pages */
.verify-card {
  background: radial-gradient(1000px 520px at right -20%, rgba(92,61,232,.10) 0%, rgba(3,26,73,.04) 55%, transparent 100%),
              linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  position: relative;
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
  max-width: 820px;
}

.verify-card::before {
  content: ""; 
  position: absolute; 
  inset: 0;
  background: url('images/gocall-logo-symbol.png') no-repeat center/200px;
  opacity: 0.08; 
  z-index: 0;
}

.verify-inner { 
  position: relative; 
  z-index: 1; 
  max-width: 560px; 
  margin-inline: auto; 
}

/* Lead text for verify pages */
.lead-text { 
  color: #4f5f74; 
}

/* Support text */
.support { 
  color: #6b7a90; 
}


/* Page-specific styles for 2FA setup */
.qr-container {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 24px;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.qr-placeholder {
  width: 232px;
  height: 232px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.secret-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: all;
}

.secret-box:hover {
  background: #e9ecef;
  border-color: var(--brand-purple);
}

.secret-box.copied {
  background: #d1e7dd;
  border-color: #198754;
  color: #198754;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--brand-purple);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-right: 8px;
}

.step-title {
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.verify-input {
  font-size: 24px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
}