/* ==========================================================================
   NexusCast WHMCS Theme — Custom Overrides
   Matches the 2026 nexuscast.com design: the globe logo's blues and orange, Sora headings over
   Inter, and the Genesis panel's shapes (soft cards, pill buttons, glass header).
   The refresh itself is the last section of this file, "2026 brand refresh".
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ----------
   The 2026 logo pack's palette: Globe Blue, Deep Blue, Sky, Signal Orange, Ink, Night, Paper.
   The greys are the slate scale the pack's Ink (#0f172a) belongs to. */
:root {
  --nc-primary:        #2563eb; /* Globe Blue */
  --nc-primary-dark:   #1d4ed8; /* Deep Blue */
  --nc-primary-deeper: #1e3a8a;
  --nc-primary-light:  #e6eefd;
  --nc-sky:            #38bdf8;
  --nc-accent:         #f97316; /* Signal Orange: one key button and small badges only */
  --nc-accent-dark:    #ea580c;
  --nc-gray-50:  #f6f8fb; /* Paper */
  --nc-gray-100: #eef2f7;
  --nc-gray-200: #e3e8ef;
  --nc-gray-300: #cbd5e1;
  --nc-gray-400: #94a3b8;
  --nc-gray-500: #64748b;
  --nc-gray-600: #475569;
  --nc-gray-700: #334155;
  --nc-gray-800: #1e293b;
  --nc-gray-900: #0f172a; /* Ink */
  --nc-gray-950: #0b1020; /* Night */
  --nc-white:    #fff;

  --nc-card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(51, 65, 85, .07), 0 0 0 1px rgba(15, 23, 42, .05);
  --nc-raised-shadow: 0 2px 5px rgba(15, 23, 42, .08), 0 22px 48px rgba(51, 65, 85, .14);
  --nc-font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Typography ---------- */
body,
input,
button,
select,
textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  color: var(--nc-gray-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 700;
  color: var(--nc-gray-900);
  letter-spacing: -0.02em;
}

html {
  font-size: 18px !important;
}

body {
  background-color: var(--nc-gray-50);
  font-size: 18px !important;
  line-height: 1.65 !important;
}

a {
  color: var(--nc-primary);
}
a:hover,
a:focus {
  color: var(--nc-primary-dark);
}

/* ---------- Hide old Six header/navbar (replaced by unified header) ---------- */
section#header,
section#header + nav.navbar-main,
nav.navbar-main {
  display: none !important;
}

/* ---------- NexusCast Unified Header ---------- */
.nc-unified-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 0;
  position: relative;
  z-index: 1000;
}
.nc-header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 28px;
}

/* Logo */
.nc-header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nc-header-logo img {
  height: 36px;
  width: auto;
}
.nc-header-logo-text {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800;
  font-size: 1.4em;
  color: var(--nc-gray-900) !important;
}

/* Nav */
.nc-header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nc-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.nc-nav-item {
  position: relative;
}
.nc-nav-link {
  color: var(--nc-gray-600) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .15s, background-color .15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.nc-nav-link:hover,
.nc-nav-item.active .nc-nav-link {
  color: var(--nc-gray-900) !important;
  background-color: var(--nc-gray-100);
}
.nc-caret {
  font-size: 0.6em;
  margin-left: 4px;
  opacity: 0.5;
}

/* Dropdown */
.nc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nc-white);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border-top: 2px solid var(--nc-primary);
  min-width: 200px;
  padding: 6px 0;
  margin-top: 4px;
  list-style: none;
  z-index: 1001;
}
.nc-has-dropdown:hover .nc-dropdown {
  display: block;
}
.nc-dropdown li a {
  display: block;
  padding: 8px 16px;
  color: var(--nc-gray-700) !important;
  font-size: 0.85rem;
  transition: background-color .15s, color .15s;
}
.nc-dropdown li a:hover {
  background-color: var(--nc-primary-light);
  color: var(--nc-primary-dark) !important;
  text-decoration: none;
}

/* Right actions */
.nc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nc-header-link {
  color: var(--nc-gray-600) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 10px;
  transition: color .2s;
  text-decoration: none !important;
}
.nc-header-link:hover {
  color: var(--nc-gray-900) !important;
}
.nc-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .2s;
}
.nc-header-btn-account {
  background: var(--nc-gray-900);
  color: var(--nc-white) !important;
  border: 1px solid var(--nc-gray-900);
}
.nc-header-btn-account:hover {
  background: var(--nc-primary);
  border-color: var(--nc-primary);
  color: var(--nc-white) !important;
}
.nc-header-btn-logout {
  background: var(--nc-white);
  color: var(--nc-gray-600) !important;
  border: 1px solid var(--nc-gray-300);
}
.nc-header-btn-logout:hover {
  background: var(--nc-gray-50);
  border-color: var(--nc-gray-400);
  color: var(--nc-gray-900) !important;
}
.nc-header-btn-admin {
  background: var(--nc-accent) !important;
  color: var(--nc-white) !important;
}
.nc-header-btn-admin:hover {
  background: var(--nc-accent-dark) !important;
}

.nc-badge {
  background: var(--nc-accent);
  color: var(--nc-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  margin-left: 2px;
}

/* Mobile toggle */
.nc-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nc-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nc-gray-500);
  border-radius: 2px;
  transition: all .2s;
}

@media (max-width: 991px) {
  .nc-nav-toggle { display: flex; }
  .nc-nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nc-white);
    flex-direction: column;
    padding: 12px 0;
    border-top: 1px solid var(--nc-gray-200);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }
  .nc-nav-list.nc-nav--open { display: flex; }
  .nc-nav-link { padding: 12px 20px; }
  .nc-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    background: var(--nc-gray-50);
    border-radius: 0;
    margin: 0;
    padding: 0;
  }
  .nc-has-dropdown:hover .nc-dropdown { display: block; }
  .nc-dropdown li a { color: var(--nc-gray-600) !important; padding: 10px 32px; }
  .nc-dropdown li a:hover { background: var(--nc-primary-light); color: var(--nc-primary-dark) !important; }
  .nc-header-actions { gap: 4px; }
  .nc-header-link { font-size: 0.8rem; padding: 6px 6px; }
}

/* ---------- Home Banner ---------- */
#home-banner {
  background: linear-gradient(135deg, var(--nc-gray-900) 0%, var(--nc-primary-deeper) 100%);
  padding: 40px 0;
}
#home-banner h2 {
  color: var(--nc-white);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

#home-banner .input-group-lg > .form-control {
  border-radius: 8px 0 0 8px;
  border-color: var(--nc-gray-200);
  font-family: 'Inter', sans-serif;
  height: 46px;
  font-size: 0.9375rem;
}

#home-banner .btn.search,
#home-banner .btn.transfer {
  background-color: var(--nc-accent);
  border-color: var(--nc-accent);
  color: var(--nc-white);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color .2s;
}
#home-banner .btn.search:hover,
#home-banner .btn.transfer:hover {
  background-color: var(--nc-accent-dark);
  border-color: var(--nc-accent-dark);
}

/* ---------- Home Shortcuts ---------- */
.home-shortcuts {
  background-color: var(--nc-white);
  border-bottom: 1px solid var(--nc-gray-200);
  padding: 24px 0;
}
.home-shortcuts .lead {
  color: var(--nc-gray-800);
  font-weight: 700;
  font-size: 1.1rem;
}
.home-shortcuts ul li {
  border-color: var(--nc-gray-200) !important;
  transition: background-color .2s;
}
.home-shortcuts ul li:hover {
  background-color: var(--nc-gray-50);
}
.home-shortcuts ul li a {
  color: var(--nc-gray-700);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color .2s;
}
.home-shortcuts ul li a:hover {
  color: var(--nc-primary);
  text-decoration: none;
}
.home-shortcuts ul li a i {
  color: var(--nc-primary);
  font-size: 1.75rem;
  margin-bottom: 6px;
  transition: transform .2s;
}
.home-shortcuts ul li a:hover i {
  transform: translateY(-2px);
}

/* ---------- Main Body ---------- */
section#main-body {
  background-color: var(--nc-white);
  padding: 32px 0 48px;
}

/* ---------- Page Headers ---------- */
div.header-lined h1 {
  color: var(--nc-gray-900);
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--nc-gray-200);
  padding-bottom: 10px;
}

/* ---------- Panels / Cards ---------- */
.panel {
  border-radius: 10px;
  border: 1px solid var(--nc-gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.panel-default > .panel-heading {
  background-color: var(--nc-gray-50);
  border-bottom: 1px solid var(--nc-gray-200);
  border-radius: 10px 10px 0 0;
  color: var(--nc-gray-800);
  font-weight: 600;
  font-size: 0.9rem;
}

.panel-primary > .panel-heading {
  background-color: var(--nc-primary);
  border-color: var(--nc-primary);
  border-radius: 10px 10px 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 8px 18px;
  transition: all .2s ease;
}

.btn-primary {
  background-color: var(--nc-primary);
  border-color: var(--nc-primary);
  color: var(--nc-white);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--nc-primary-dark) !important;
  border-color: var(--nc-primary-dark) !important;
  color: var(--nc-white);
}

.btn-success {
  background-color: #10b981;
  border-color: #10b981;
}
.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}

.btn-danger {
  background-color: #ef4444;
  border-color: #ef4444;
}
.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

.btn-default {
  background-color: var(--nc-white);
  border: 1px solid var(--nc-gray-300);
  color: var(--nc-gray-700);
}
.btn-default:hover {
  background-color: var(--nc-gray-50);
  border-color: var(--nc-gray-400);
  color: var(--nc-gray-900);
}

/* ---------- Forms ---------- */
.form-control {
  border: 1px solid var(--nc-gray-300);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  color: var(--nc-gray-800);
  transition: border-color .2s, box-shadow .2s;
  box-shadow: none;
}
.form-control:focus {
  border-color: var(--nc-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  outline: none;
}

/* ---------- Tables ---------- */
.table > thead > tr > th {
  background-color: var(--nc-gray-50);
  border-bottom: 2px solid var(--nc-gray-200);
  color: var(--nc-gray-700);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table > tbody > tr > td {
  border-color: var(--nc-gray-100);
  vertical-align: middle;
  color: var(--nc-gray-700);
  font-size: 0.875rem;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--nc-gray-50);
}
.table > tbody > tr:hover > td {
  background-color: var(--nc-primary-light);
}

/* ---------- List Groups ---------- */
.list-group-item {
  border-color: var(--nc-gray-100);
  padding: 9px 14px;
  font-size: 0.875rem;
}
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
  background-color: var(--nc-primary);
  border-color: var(--nc-primary);
}

/* ---------- Pagination ---------- */
.pagination > li > a,
.pagination > li > span {
  color: var(--nc-primary);
  border-color: var(--nc-gray-200);
  border-radius: 6px;
  margin: 0 2px;
  font-size: 0.8rem;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
  background-color: var(--nc-primary);
  border-color: var(--nc-primary);
  color: var(--nc-white);
}

/* ---------- Labels / Badges ---------- */
.label {
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 3px 7px;
}
.label-primary { background-color: var(--nc-primary); }
.label-success { background-color: #10b981; }
.label-danger { background-color: #ef4444; }
.label-warning { background-color: var(--nc-accent); }
.label-info { background-color: var(--nc-primary); }

/* ---------- Alerts ---------- */
.alert {
  border-radius: 10px;
  border: none;
  font-size: 0.875rem;
}
.alert-info {
  background-color: var(--nc-primary-light);
  color: var(--nc-primary-deeper);
}
.alert-success {
  background-color: #d1fae5;
  color: #065f46;
}
.alert-warning {
  background-color: #fff7ed;
  color: #9a3412;
}
.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
}

/* ---------- Sidebar ---------- */
.sidebar .panel {
  border-radius: 10px;
}
.sidebar .list-group-item {
  font-size: 0.85rem;
}
.sidebar .panel-heading {
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px 10px 0 0;
}

/* ---------- Login Page ---------- */
.logincontainer {
  max-width: 460px;
  margin: 30px auto;
  padding: 28px;
  background: var(--nc-white);
  border-radius: 12px;
  border: 1px solid var(--nc-gray-200);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.04);
}
.logincontainer.with-social {
  max-width: 620px;
}
.logincontainer .form-group label {
  font-weight: 600;
  color: var(--nc-gray-700);
  font-size: 0.8125rem;
  margin-bottom: 3px;
}

/* ---------- Announcements / News ---------- */
.announcement-single {
  border-left: 3px solid var(--nc-primary);
  padding: 20px 20px 20px 24px;
  margin-bottom: 24px;
  background: var(--nc-gray-50);
  border-radius: 0 10px 10px 0;
  transition: box-shadow .2s, border-color .2s;
}
.announcement-single:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-left-color: var(--nc-primary-dark);
}

.announcement-single h3 a {
  color: var(--nc-primary);
  font-weight: 700;
  font-size: 1.15rem;
  transition: color .2s;
}
.announcement-single h3 a:hover {
  color: var(--nc-primary-dark);
  text-decoration: none;
}

/* Date badges */
.announcement-single .label,
.label-default {
  background-color: var(--nc-gray-800);
  font-size: 0.65rem;
  padding: 4px 8px;
}

/* Read more badge — make it a real button */
.announcement-single .label-info,
a .label-info {
  background-color: var(--nc-accent);
  padding: 5px 12px;
  font-size: 0.7rem;
  border-radius: 20px;
  transition: background-color .2s;
}
.announcement-single .label-info:hover,
a:hover .label-info {
  background-color: var(--nc-accent-dark);
}

blockquote {
  border-left: 3px solid var(--nc-gray-200);
  color: var(--nc-gray-600);
  font-size: 0.95rem;
  padding: 12px 20px;
  margin: 12px 0;
  background: var(--nc-white);
  border-radius: 0 8px 8px 0;
}

/* ---------- Hide old Six footer ---------- */
section#footer {
  display: none !important;
}

/* ---------- NexusCast Footer ---------- */
.nc-whmcs-footer {
  background-color: var(--nc-gray-950);
  padding: 48px 0 0;
  color: var(--nc-gray-400);
}
.nc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
.nc-footer-brand {
  padding-right: 20px;
}
.nc-footer-logo {
  height: 84px;
  width: auto;
  margin-bottom: 20px;
}
.nc-footer-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--nc-white);
  display: block;
  margin-bottom: 16px;
}
.nc-footer-brand p {
  color: var(--nc-gray-400);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
}
.nc-footer-col h4 {
  color: var(--nc-gray-200);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.nc-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nc-footer-col ul li {
  margin-bottom: 10px;
}
.nc-footer-col ul li a {
  color: var(--nc-gray-400);
  font-size: 0.9rem;
  transition: color .2s;
  text-decoration: none;
}
.nc-footer-col ul li a:hover {
  color: var(--nc-white);
}
.nc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  text-align: center;
}
.nc-footer-bottom p {
  color: var(--nc-gray-500);
  font-size: 0.8rem;
  margin: 0 0 4px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .nc-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  background-color: transparent;
  padding-left: 0;
  font-size: 0.75rem;
}
.breadcrumb > .active {
  color: var(--nc-gray-500);
}

/* ---------- Misc Utilities ---------- */
.well {
  background-color: var(--nc-gray-50);
  border: 1px solid var(--nc-gray-200);
  border-radius: 10px;
  box-shadow: none;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.modal-header {
  border-bottom: 1px solid var(--nc-gray-200);
  border-radius: 12px 12px 0 0;
}
.modal-footer {
  border-top: 1px solid var(--nc-gray-200);
  border-radius: 0 0 12px 12px;
}

/* ---------- Ticket / Support Area ---------- */
.ticket-reply {
  border-radius: 10px;
  border: 1px solid var(--nc-gray-200);
  margin-bottom: 16px;
}

/* ---------- Powered by — hidden ---------- */
.site-footer-powered-by,
p:has(a[href*="whmcs.com"]),
p:has(a[href*="WHMCompleteSolution"]) {
  display: none !important;
}

/* ---------- Global smooth transitions ---------- */
a, .btn, .panel, .form-control, .list-group-item, .navbar-main .navbar-nav > li > a {
  transition: all .2s ease;
}

/* ---------- Selection color ---------- */
::selection {
  background-color: var(--nc-primary-light);
  color: var(--nc-primary-deeper);
}

/* ---------- Scrollbar (webkit) ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--nc-gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--nc-gray-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--nc-gray-400);
}

/* ---------- Admin Bar ---------- */
.btn-logged-in-admin {
  background-color: var(--nc-accent) !important;
  border-color: var(--nc-accent) !important;
  color: var(--nc-white) !important;
}
.btn-logged-in-admin:hover {
  background-color: var(--nc-accent-dark) !important;
}


/* ==========================================================================
   2026 brand refresh
   Everything below restyles the rules above to the new site's look. It is one
   block on purpose: delete it and the theme is the February 2026 one again
   (bar the colour tokens at the top).
   ========================================================================== */

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ---------- Type: Sora for headings, as in the wordmark ---------- */
h1, h2, h3, h4, h5, h6,
.nc-header-logo-text,
.panel-title,
.home-shortcuts .lead {
  font-family: var(--nc-font-display) !important;
  letter-spacing: -0.025em;
}
h1, h2 { font-weight: 700; }
h3, h4, h5, h6 { font-weight: 600; }

/* ---------- Canvas: Paper with the site's soft wash, cards float on it ---------- */
body {
  background-color: var(--nc-gray-50);
  background-image:
    radial-gradient(ellipse 90% 40rem at 52% -12rem, rgba(255, 255, 255, .94), transparent 72%),
    linear-gradient(145deg, #edf1f8 0%, #f8fafc 46%, #f0f4f9 100%);
  background-attachment: fixed;
}
section#main-body {
  background-color: transparent;
  padding: 40px 0 64px;
}

/* ---------- Header: sticky glass, pill links ---------- */
.nc-unified-header {
  position: sticky;
  top: 0;
  background: rgba(246, 248, 251, .82);
  backdrop-filter: blur(24px) saturate(1.65);
  -webkit-backdrop-filter: blur(24px) saturate(1.65);
  border-bottom: 1px solid var(--nc-gray-200);
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35);
}
.nc-header-logo img {
  height: 34px;
}
.nc-nav-link {
  border-radius: 9999px;
}
.nc-nav-link:hover,
.nc-nav-item.active .nc-nav-link {
  color: var(--nc-primary) !important;
  background-color: var(--nc-primary-light);
}
.nc-dropdown {
  border-top: 0;
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--nc-raised-shadow), 0 0 0 1px rgba(15, 23, 42, .05);
}
.nc-dropdown li a {
  border-radius: 8px;
}
.nc-header-link:hover {
  color: var(--nc-primary) !important;
}
.nc-header-btn-account {
  background: var(--nc-primary);
  border-color: var(--nc-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -6px rgba(37, 99, 235, .55);
}
.nc-header-btn-account:hover {
  background: var(--nc-primary-dark);
  border-color: var(--nc-primary-dark);
}
/* Ink on orange: white on Signal Orange is too faint to read. */
.nc-header-btn-admin,
.nc-badge,
.label-warning,
.btn-logged-in-admin {
  color: var(--nc-gray-900) !important;
}

/* ---------- Home banner: Night with the blue and sky glows of the brand sheet ---------- */
#home-banner {
  background:
    radial-gradient(45% 90% at 5% 0%, rgba(37, 99, 235, .5), transparent 70%),
    radial-gradient(40% 90% at 98% 100%, rgba(56, 189, 248, .25), transparent 70%),
    var(--nc-gray-950);
  padding: 56px 0;
}
#home-banner h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
}
#home-banner .input-group-lg > .form-control {
  border-radius: 9999px 0 0 9999px;
  border-color: transparent;
  padding-left: 22px;
}
/* The one orange button in the portal. */
#home-banner .btn.search,
#home-banner .btn.transfer {
  color: var(--nc-gray-900);
}
#home-banner .btn.search:hover,
#home-banner .btn.transfer:hover {
  background-color: #fb923c;
  border-color: #fb923c;
  color: var(--nc-gray-900);
}
#home-banner .input-group-btn:last-child > .btn:last-child {
  border-radius: 0 9999px 9999px 0;
  padding-right: 22px;
}

/* The welcome that replaced the domain search. */
#home-banner h2 {
  margin-bottom: 10px;
}
.nc-banner-sub {
  max-width: 34rem;
  margin: 0 auto 24px;
  color: #c3ccdb;
  font-size: 1rem;
}
.nc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
/* The stock banner squares its buttons; these two are pills like the rest. */
section#home-banner .btn.nc-banner-btn,
section#home-banner .btn.nc-banner-btn-quiet {
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
}
/* The one orange button in the portal. */
#home-banner .nc-banner-btn {
  padding: 11px 26px;
  background-color: var(--nc-accent);
  border-color: var(--nc-accent);
  color: var(--nc-gray-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -8px rgba(249, 115, 22, .6);
}
#home-banner .nc-banner-btn:hover,
#home-banner .nc-banner-btn:focus {
  background-color: #fb923c;
  border-color: #fb923c;
  color: var(--nc-gray-900);
}
#home-banner .nc-banner-btn-quiet {
  padding: 11px 26px;
  background-color: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: var(--nc-white);
}
#home-banner .nc-banner-btn-quiet:hover,
#home-banner .nc-banner-btn-quiet:focus {
  background-color: rgba(255, 255, 255, .2);
  color: var(--nc-white);
}

/* ---------- Home shortcuts ---------- */
.home-shortcuts {
  background-color: rgba(255, 255, 255, .7);
}
.home-shortcuts ul li a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

/* ---------- Cards: large radius, soft layered shadow, no hard border ---------- */
.panel,
.well,
.logincontainer,
.ticket-reply {
  border: 0;
  border-radius: 20px;
  background-color: var(--nc-white);
  box-shadow: var(--nc-card-shadow);
}
.panel > .panel-heading,
.panel-default > .panel-heading,
.sidebar .panel-heading {
  background-color: transparent;
  border-bottom: 1px solid var(--nc-gray-200);
  border-radius: 20px 20px 0 0;
  padding: 14px 18px;
  color: var(--nc-gray-900);
}
.panel-primary > .panel-heading {
  background-color: var(--nc-primary);
  border-bottom-color: var(--nc-primary);
  color: var(--nc-white);
}
.panel > .panel-footer {
  background-color: var(--nc-gray-50);
  border-top: 1px solid var(--nc-gray-200);
  border-radius: 0 0 20px 20px;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.logincontainer {
  padding: 32px;
}
div.header-lined h1 {
  font-size: 1.75rem;
  border-bottom: 1px solid var(--nc-gray-200);
  padding-bottom: 14px;
}

/* ---------- Buttons: pills ---------- */
.btn {
  border-radius: 9999px;
  padding: 9px 20px;
}
.btn-sm, .btn-xs {
  padding: 5px 14px;
}
.btn-lg {
  padding: 12px 26px;
}
.btn-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -6px rgba(37, 99, 235, .55);
}
.btn-info {
  background-color: var(--nc-primary-light);
  border-color: var(--nc-primary-light);
  color: var(--nc-primary-dark);
}
.btn-info:hover,
.btn-info:focus {
  background-color: #d5e3fc;
  border-color: #d5e3fc;
  color: var(--nc-primary-dark);
}
.btn-default:hover {
  border-color: var(--nc-primary);
  color: var(--nc-primary);
}
.btn-link {
  color: var(--nc-primary);
}
/* Joined buttons and inputs keep their square inner edges. */
.btn-group > .btn:not(:first-child):not(:last-child),
.input-group .btn,
.input-group-btn > .btn {
  border-radius: 0;
}
.btn-group > .btn:first-child:not(:last-child) {
  border-radius: 9999px 0 0 9999px;
}
.btn-group > .btn:last-child:not(:first-child),
.input-group-btn:last-child > .btn:last-child {
  border-radius: 0 12px 12px 0;
}
.btn-group > .btn:last-child:not(:first-child) {
  border-radius: 0 9999px 9999px 0;
}
.input-group-btn:first-child > .btn:first-child {
  border-radius: 12px 0 0 12px;
}

/* ---------- Forms ---------- */
.form-control {
  border-radius: 12px;
  height: auto;
  min-height: 42px;
}
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; }
.input-group .form-control:first-child:not(:last-child) { border-radius: 12px 0 0 12px; }
.input-group .form-control:last-child:not(:first-child) { border-radius: 0 12px 12px 0; }
.input-group-addon {
  border-color: var(--nc-gray-300);
  background-color: var(--nc-gray-100);
  color: var(--nc-gray-600);
}
.input-group-addon:first-child { border-radius: 12px 0 0 12px; }
.input-group-addon:last-child { border-radius: 0 12px 12px 0; }

/* ---------- Tables and lists ---------- */
.table > thead > tr > th {
  background-color: transparent;
  border-bottom: 1px solid var(--nc-gray-200);
  color: var(--nc-gray-500);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: transparent;
}
.table > tbody > tr:hover > td {
  background-color: var(--nc-primary-light);
}
a.list-group-item:hover,
a.list-group-item:focus {
  background-color: var(--nc-primary-light);
  color: var(--nc-primary-dark);
}
.pagination > li > a,
.pagination > li > span {
  border-radius: 9999px !important;
}
.label {
  border-radius: 9999px;
  padding: 4px 9px;
}

/* ---------- Announcements ---------- */
.announcement-single {
  border-left: 0;
  border-radius: 20px;
  padding: 24px 26px;
  background: var(--nc-white);
  box-shadow: var(--nc-card-shadow);
}
.announcement-single:hover {
  box-shadow: var(--nc-raised-shadow), 0 0 0 1px rgba(15, 23, 42, .05);
}
.announcement-single .label-info,
a .label-info {
  background-color: var(--nc-primary);
}
.announcement-single .label-info:hover,
a:hover .label-info {
  background-color: var(--nc-primary-dark);
}

/* Labels on the dark pills of the news list were dark text on dark. */
a .label,
a:hover .label,
.announcement-single .label,
.announcement-single a.label {
  color: var(--nc-white) !important;
}

/* ---------- Modals ---------- */
.modal-content {
  border-radius: 20px;
}
.modal-header {
  border-radius: 20px 20px 0 0;
}
.modal-footer {
  border-radius: 0 0 20px 20px;
}

/* ---------- Footer: Night, with the logo at its proper size ---------- */
.nc-whmcs-footer {
  background:
    radial-gradient(40% 80% at 0% 0%, rgba(37, 99, 235, .28), transparent 70%),
    var(--nc-gray-950);
  padding-top: 56px;
}
.nc-footer-logo {
  height: 40px;
  margin-bottom: 18px;
}
.nc-footer-col h4 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--nc-white);
}
.nc-footer-col ul li a:hover {
  color: var(--nc-sky);
}

/* ---------- Stock rules that outrank the theme's own selectors ---------- */
/* The home search button was still the stock green. */
section#home-banner .btn.search {
  background-color: var(--nc-accent);
  border-color: var(--nc-accent);
  color: var(--nc-gray-900);
}
section#home-banner .btn.search:hover,
section#home-banner .btn.search:focus {
  background-color: #fb923c;
  border-color: #fb923c;
}
section#home-banner .btn.transfer {
  background-color: rgba(255, 255, 255, .14);
  border-color: transparent;
  color: var(--nc-white);
}
section#home-banner .btn.transfer:hover,
section#home-banner .btn.transfer:focus {
  background-color: rgba(255, 255, 255, .24);
  color: var(--nc-white);
}
/* The current sidebar item was the stock charcoal. */
.panel-sidebar a.list-group-item.active,
.panel-sidebar a.list-group-item.active:focus,
.panel-sidebar a.list-group-item.active:hover {
  background-color: var(--nc-primary);
  border-color: var(--nc-primary);
  color: var(--nc-white);
}
.panel-sidebar .list-group-item {
  border-left: 0;
  border-right: 0;
}
.panel-sidebar .list-group-item:last-child {
  border-bottom: 0;
  border-radius: 0 0 20px 20px;
}

/* ---------- Order form (Legacy Boxes) ----------
   Its sheet loads inside the page, after this one, so these carry a "body" to win. */
body #order-boxes .fields-container {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--nc-white);
  box-shadow: var(--nc-card-shadow);
}
body #order-boxes .fields-container .field-row:nth-child(n) {
  padding: 16px 20px;
  background-color: transparent;
  color: var(--nc-gray-700);
}
body #order-boxes .fields-container .field-row + .field-row {
  border-top: 1px solid var(--nc-gray-200);
}
body #order-boxes .fields-container .field-row:nth-child(n):hover {
  background-color: var(--nc-primary-light);
}
body #order-boxes .secure-warning {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background-color: var(--nc-gray-100);
  color: var(--nc-gray-600);
}
body #order-boxes .line-padded .btn {
  margin-top: 6px;
}

/* ---------- Phones: the wider logo needs the room ---------- */
@media (max-width: 480px) {
  .nc-header-inner {
    gap: 10px;
  }
  .nc-header-logo img {
    height: 28px;
  }
  /* Register stays one tap away, on the login page. */
  .nc-header-actions a[href*="register.php"] {
    display: none;
  }
}

/* ---------- Terms and Privacy (legal-terms.tpl, legal-privacy.tpl) ---------- */
.nc-legal {
  max-width: 46rem;
  color: var(--nc-gray-600);
  font-size: 1rem;
  line-height: 1.7;
}
.nc-legal-sub {
  color: var(--nc-gray-500);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.nc-legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.25rem 0 .6rem;
}
.nc-legal p {
  margin: 0 0 .9rem;
}
.nc-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Focus and motion ---------- */
a:focus-visible,
.btn:focus-visible,
.nc-nav-link:focus-visible {
  outline: 2px solid var(--nc-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  a, .btn, .panel, .form-control, .list-group-item {
    transition: none !important;
  }
}
