/* ============================================================
   Halyard theme for Crystal Sky
   Loaded after main.css / custom.css / color.php in both the
   frontend layout (layouts/app.blade.php) and the dashboard layout
   (layouts/master.blade.php), so every rule here reaches the whole
   site. Restyles the existing component classes in place -- no
   markup changes, no new templates -- so functionality, forms and
   JS bindings in the underlying script are untouched.
   ============================================================ */

:root {
  /* Typography: plain system stacks, no external font requests */
  --heading-font: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body-font: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Ink (headings / primary text, and reused below as the dark
     navy ground for the sidebar/header) -> was near-black cyan */
  --black-h: 223;
  --black-s: 26%;
  --black-l: 10%;

  /* Soft ink (body copy) -> slightly cool grey, was neutral 33% grey */
  --light-h: 205;
  --light-s: 8%;
  --light-l: 32%;

  /* Section backgrounds -> warm-grey paper, was pale blue */
  --section-bg: 95 14% 93%;

  /* Hairline borders -> soft ink-tinted, was flat neutral grey */
  --border-color: 223 14% 86%;

  /* Dark band color (footer / dark sections) -> true ink navy */
  --navy-blue-color: 222 34% 8%;

  /* Local tokens for this stylesheet only */
  --hly-radius: 14px;
  --hly-radius-sm: 8px;
  --hly-hairline: hsl(var(--black) / 0.1);
}

/* Note: this app has no dark-mode infrastructure (no toggle, no
   per-component dark styling), so we deliberately don't hook
   prefers-color-scheme here -- doing so would leave hardcoded white
   backgrounds/logo images fighting a dark ground across 200+ views. */


/* ============ Typography rhythm ============ */

body, table, .user-account-card__amount, .ballance, .trx-id,
h1, h2, h3, h4, h5, h6 {
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: -0.01em;
}

/* Section eyebrow: swap the highlighter-bar subtitle for a small
   uppercase ledger label with a thin rule, not a marker stripe */
.section-heading__subtitle {
  background: none;
  color: hsl(var(--base));
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading__subtitle::before {
  height: 2px;
  bottom: 0;
  background-color: hsl(var(--base) / 0.35);
}

.section-heading.style-three .section-heading__subtitle {
  color: hsl(var(--black) / 0.4);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}


/* ============ Buttons: pill shape, brass reads as metal ============ */

.btn {
  border-radius: 999px;
}

.btn--icon {
  border-radius: 50%;
}

.btn--base {
  background-image: linear-gradient(180deg, hsl(var(--base-h) var(--base-s) calc(var(--base-l) + 6%)) 0%, hsl(var(--base)) 100%);
  border-color: transparent !important;
}

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

.btn-outline--base {
  border-width: 1.5px !important;
}


/* ============ Cards: ledger hairline + top rule instead of shadow ============ */

.custom--card {
  border-radius: var(--hly-radius);
  border: 1px solid var(--hly-hairline) !important;
  border-top: 3px solid hsl(var(--base)) !important;
  box-shadow: none;
}

.custom--card .card-header {
  border-bottom: 1px solid var(--hly-hairline);
}

.custom--card .card-footer {
  border-top: 1px solid var(--hly-hairline);
}


/* ============ Badges: quieter pill, outline-first ============ */

.badge {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
}


/* ============ Tables: hairline ledger rows ============ */

.table thead tr th {
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.75rem;
}

.table tbody tr td {
  border-bottom: 1px solid var(--hly-hairline);
}


/* ============ Pricing cards (DPS / FDR / Loan plans) ============ */

.pricing-card__header {
  border-radius: var(--hly-radius) var(--hly-radius) 0 0;
  background-image: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-two)));
}

.pricing-card__content {
  border-radius: 0 0 var(--hly-radius) var(--hly-radius);
  border: 1px solid var(--hly-hairline);
  border-top: 0;
}

.pricing-card__icon {
  color: hsl(var(--base));
}


/* ============ Dashboard sidebar: navy ledger rail ============ */

.dashboard .sidebar-menu {
  background-color: hsl(var(--black));
  border-right: 0;
}

.dashboard .sidebar-menu-list__link {
  color: hsl(var(--base-two-h) var(--base-two-s) 68%);
}

.dashboard .sidebar-menu-list__link:hover {
  background-color: hsl(0 0% 100% / 0.06);
}

.dashboard .sidebar-menu-list__link.active {
  color: hsl(var(--white));
}

.dashboard .sidebar-menu-list__item.active > a {
  background-color: hsl(var(--base));
  color: hsl(var(--white));
  border-radius: var(--hly-radius-sm);
}

.dashboard .sidebar-menu-list__item.has-dropdown > a:after {
  color: hsl(var(--white) / 0.5);
}

.dashboard .sidebar-menu .menu-title {
  color: hsl(var(--white) / 0.4);
}

.dashboard .sidebar-menu hr {
  border-color: hsl(var(--white) / 0.12);
  opacity: 1;
}

.dashboard .sidebar-menu__close {
  color: hsl(var(--white) / 0.7);
}

.user-logout {
  background: hsl(var(--black));
  border-top: 1px solid hsl(var(--white) / 0.08);
}


/* ============ Frontend header: consistent ink bar ============ */

.header,
.header.fixed-header {
  background-color: hsl(var(--black));
}
