:root {
  --bg: #050711;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(9, 16, 32, 0.12);
  --text: #f8fafc;
  --muted: #a8b3c5;
  --muted-2: #64748b;
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --ink: #0f172a;
  --brand: #52ead2;
  --brand-2: #80a7ff;
  --accent: #f5b85c;
  --good: #4ade80;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

/* Premium Global Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0b1020 !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(82, 234, 210, 0.25) !important;
  border-radius: 10px !important;
  border: 2px solid #0b1020 !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(82, 234, 210, 0.45) !important;
}

/* Firefox compatibility */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 234, 210, 0.25) #0b1020;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Fix Webkit Autofill for Dark Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #0b1020 inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 234, 210, 0.17), transparent 34rem),
    linear-gradient(180deg, #050711 0%, #0a1020 46%, #f7f9fc 46%, #ffffff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 7, 17, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 1.18rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #051013;
  background: linear-gradient(135deg, var(--brand), #ffffff);
  box-shadow: 0 16px 34px rgba(82, 234, 210, 0.16);
}

.brand-mark svg,
.btn svg,
.icon svg,
.mini-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 740;
}

.nav-links a:hover,
.nav-links a.active {
  color: #061218;
  background: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Hamburger Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.13);
}

.hamburger .ham-icon {
  display: block;
  color: var(--text);
  transition: transform 0.3s ease;
}

.hamburger .ham-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Active (X) state */
.hamburger.active .ham-line.top {
  transform: translate(0, 6px) rotate(45deg);
}

.hamburger.active .ham-line.mid {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .ham-line.bot {
  transform: translate(0, -6px) rotate(-45deg);
}

/* ── Mobile Drawer Menu ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  background: rgba(5, 7, 17, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 8px;
  gap: 2px;
}

.mobile-nav-links a {
  padding: 12px 16px;
  border-radius: var(--radius);
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a:last-child {
  border-bottom: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: #061218;
  background: var(--brand);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Nav Row (logo + hamburger on same line) ── */
.nav-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: auto;
  /* desktop: shrink to content */
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
    padding: 0;
    gap: 0;
    width: 100%;
  }

  .nav-row {
    width: 100%;
    /* mobile: full width so logo left, hamburger right */
    padding: 14px 16px;
  }

  .hamburger {
    display: flex;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-menu {
    display: flex;
  }
}

.section {
  padding: 88px 0;
}

.section.dark {
  color: var(--text);
  background: #080c18;
}

.section.light {
  color: var(--ink);
  background: var(--paper);
}

.section.soft {
  color: var(--ink);
  background: var(--paper-soft);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 86px 0 64px;
  text-align: center;
}

.hero-copy {
  width: min(940px, 100%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.light .eyebrow,
.soft .eyebrow,
.page-hero .eyebrow {
  color: #0e766f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto 20px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.page-title {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.94;
}

h2 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero .lead {
  margin: 0 auto;
  color: #b9c6d8;
  font-size: clamp(1rem, 2vw, 1.26rem);
}

.light .lead,
.soft .lead,
.page-hero .lead {
  color: var(--muted-2);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.actions.left {
  justify-content: flex-start;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.btn.primary {
  color: #061218;
  background: linear-gradient(135deg, var(--brand), #ffffff);
  box-shadow: 0 18px 42px rgba(82, 234, 210, 0.2);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.light .btn.secondary,
.soft .btn.secondary,
.page-hero .btn.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line-dark);
}

.btn:hover {
  transform: translateY(-1px);
}

.product-stage {
  position: relative;
  margin: 58px auto 0;
  width: min(1100px, 100%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.app-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--text);
  background: #0c1222;
}

.window-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
}

.dots span:nth-child(2) {
  background: #f59e0b;
}

.dots span:nth-child(3) {
  background: #22c55e;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 520px;
}

.sidebar {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #aab7cb;
  font-weight: 700;
  font-size: 0.92rem;
}

.side-item.active,
.side-item:hover {
  color: #061218;
  background: var(--brand);
}

.board {
  padding: 18px;
}

.board-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.glass-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.fleet-visual {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(5, 7, 17, 0.08), rgba(5, 7, 17, 0.72)),
    url("rydaris-hero.png") center / cover no-repeat;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.stat strong {
  display: block;
  color: #ffffff;
  font-size: 1.55rem;
}

.stat span {
  color: #94a3b8;
  font-size: 0.86rem;
}

.rental-list {
  display: grid;
  gap: 10px;
}

.rental-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.rental-item span {
  color: #94a3b8;
  font-size: 0.86rem;
}

.status {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: #061218;
  background: var(--brand);
  font-size: 0.75rem;
  font-weight: 850;
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.ticker-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 18px 0;
  animation: scroll 26s linear infinite;
}

.ticker span {
  color: #cbd5e1;
  font-weight: 850;
  white-space: nowrap;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: none;
  color: var(--text);
}

.feature-card,
.pricing-card,
.info-card,
.faq-item,
.contact-panel {
  padding: 24px;
}

.feature-card p,
.pricing-card p,
.info-card p,
.faq-item p,
.contact-panel p {
  color: var(--muted-2);
}

.dark .feature-card p,
.dark .pricing-card p,
.dark .info-card p,
.dark .faq-item p,
.dark .contact-panel p {
  color: #aab7cb;
}

.icon,
.mini-icon {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #061218;
  background: linear-gradient(135deg, var(--brand), #ffffff);
}

.mini-icon {
  width: 32px;
  height: 32px;
  color: var(--brand);
  background: rgba(82, 234, 210, 0.1);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.flow {
  display: grid;
  gap: 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.flow-step p {
  color: var(--muted-2);
}

.contact-details {
  margin-top: 22px;
}

.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #061218;
  background: linear-gradient(135deg, var(--brand), #ffffff);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
}

th {
  color: var(--muted-2);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-hero {
  padding: 92px 0 76px;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(128, 167, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 15%, rgba(82, 234, 210, 0.18), transparent 24rem),
    #050711;
}

.page-hero .lead {
  max-width: 740px;
}

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(82, 234, 210, 0.55);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 20px 0;
}

.price strong {
  font-size: 2.9rem;
  line-height: 1;
}

.price span {
  color: var(--muted-2);
  padding-bottom: 6px;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  color: #475569;
}

.dark .list li {
  color: #b9c6d8;
}

.check {
  color: #0e766f;
  font-weight: 900;
}

.dark .check {
  color: var(--brand);
}

.faq-stack {
  display: grid;
  gap: 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: #0e766f;
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 14px 0 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 780;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(82, 234, 210, 0.22);
  border-color: #0e766f;
}

.footer {
  color: #cbd5e1;
  background: #050711;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 30px;
  padding: 58px 0 38px;
}

.footer p {
  color: #94a3b8;
}

.footer h3 {
  color: #ffffff;
  font-size: 0.93rem;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #94a3b8;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #cbd5e1;
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: var(--radius);
  }

  .nav-actions {
    width: 100%;
  }

  .dashboard,
  .board-grid,
  .split,
  .contact-layout,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 560px) {

  .wrap,
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 58px;
  }

  .section {
    padding: 62px 0;
  }

  .product-stage {
    padding: 8px;
    border-radius: 12px;
  }

  .dashboard {
    min-height: auto;
  }

  .sidebar,
  .stat-row,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .feature-card,
  .pricing-card,
  .info-card,
  .faq-item,
  .contact-panel {
    padding: 20px;
  }
}

/* Admin dashboard */
.admin-body {
  color: #17202a;
  background: #eef3f7;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  color: var(--text);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
}

.admin-sidebar .brand {
  min-height: 44px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #aab7cb;
  font-size: 0.92rem;
  font-weight: 780;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: #061218;
  background: var(--brand);
}

.admin-nav svg,
.admin-action svg,
.admin-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-sidebar-foot p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-main {
  min-width: 0;
  background: var(--bg);
  color: var(--text);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 24px;
  background: var(--bg-2, #0b1020);
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.14));
}

.admin-topbar .user-greeting {
  color: var(--text, #f8fafc) !important;
}

.admin-topbar .admin-action {
  color: var(--muted, #a8b3c5) !important;
}

.admin-topbar .admin-action:hover {
  color: var(--text, #f8fafc) !important;
}

.admin-search {
  width: min(440px, 100%);
  position: relative;
}

.admin-search input {
  padding-left: 40px;
  border-color: #d7e0e8;
  background: #ffffff;
}

.admin-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #64748b;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #d7e0e8;
  border-radius: var(--radius);
  color: #17202a;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(82, 234, 210, 0.15);
}

.form-control::placeholder {
  color: var(--muted-2);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-action.primary {
  color: #061218;
  border-color: transparent;
  background: var(--brand);
}

.admin-content {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.admin-hero h1 {
  max-width: none;
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
}

.admin-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-date-card {
  min-width: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.kpi-card {
  padding: 18px;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #0f766e;
  background: #e2fbf6;
}

.kpi-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
}

.kpi-card span,
.panel-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.delta {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  color: #067647;
  background: #dcfce7;
  font-size: 0.78rem;
  font-weight: 900;
}

.delta.warn {
  color: #9a3412;
  background: #ffedd5;
}

.delta.bad {
  color: #b91c1c;
  background: #fee2e2;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
}

.admin-panel {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}

.panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.panel-muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-body {
  padding: 18px;
}

.panel-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  margin-top: 12px;
  margin-bottom: 6px;
}

.panel-filter-bar .btn,
.panel-filter-bar a.btn {
  border-radius: var(--radius);
  padding: 6px 14px;
  font-weight: bold;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.panel-filter-bar .btn:hover,
.panel-filter-bar a.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.panel-filter-bar .btn.active,
.panel-filter-bar a.btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  color: #051013 !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(82, 234, 210, 0.15) !important;
}

.panel-filter-bar .btn span,
.panel-filter-bar a.btn span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.75rem;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.panel-filter-bar .btn.active span,
.panel-filter-bar a.btn.active span {
  background: rgba(0, 0, 0, 0.15);
  color: #051013;
}

/* Table Action Icon Buttons */
.icon-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: var(--radius) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--line) !important;
  color: var(--brand) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.icon-button:hover {
  background: rgba(82, 234, 210, 0.1) !important;
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

.icon-button.delete-btn {
  color: #f43f5e !important;
  border: 1px solid var(--line) !important;
}

.icon-button.delete-btn:hover {
  background: rgba(244, 63, 94, 0.1) !important;
  border-color: #f43f5e !important;
  color: #f43f5e !important;
}

/* Status Badges */
.status-badge-active {
  background: rgba(82, 234, 210, 0.15) !important;
  color: var(--brand) !important;
  border: 1px solid rgba(82, 234, 210, 0.2) !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  display: inline-block;
  cursor: pointer;
  text-decoration: none !important;
  border-style: solid !important;
}

.status-badge-inactive {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  display: inline-block;
  cursor: pointer;
  text-decoration: none !important;
  border-style: solid !important;
}

.chart-bars {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(12, minmax(20px, 1fr));
  align-items: end;
  gap: 10px;
  padding-top: 20px;
}

.bar {
  position: relative;
  min-height: 24px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #52ead2, #0f766e);
}

.bar::after {
  content: attr(data-month);
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.analytics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.mini-metric {
  padding: 12px;
  border: 1px solid #d7e0e8;
  border-radius: var(--radius);
  background: #f8fafc;
}

.mini-metric strong {
  display: block;
  color: var(--text, #f8fafc);
  font-size: 1.15rem;
}

.donut {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 12px auto 24px;
  border-radius: 999px;
  background: conic-gradient(#52ead2 0 62%, #80a7ff 62% 84%, #f5b85c 84% 94%, #e2e8f0 94% 100%);
}

.donut-inner {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  text-align: center;
}

.donut-inner strong {
  display: block;
  font-size: 1.8rem;
}

.legend {
  display: grid;
  gap: 10px;
}

.legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 0.9rem;
}

.legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.legend span:nth-child(2) i {
  background: var(--brand-2);
}

.legend span:nth-child(3) i {
  background: var(--accent);
}

.legend span:nth-child(4) i {
  background: #cbd5e1;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.admin-panel table th {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--line);
}

.admin-panel table td {
  padding: 16px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #061218;
  background: #c8fff6;
  font-weight: 900;
}

.customer-cell strong,
.admin-table strong {
  color: var(--text, #f8fafc);
}

.customer-cell span,
.admin-table small {
  display: block;
  color: #64748b;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: #dffcf6;
  font-size: 0.76rem;
  font-weight: 900;
}

.badge.blue {
  color: #3154c7;
  background: #e7edff;
}

.badge.orange {
  color: #9a4b00;
  background: #fff2d8;
}

.badge.red {
  color: #b91c1c;
  background: #fee2e2;
}

.badge.gray {
  color: #475569;
  background: #e2e8f0;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e0e8;
  border-radius: var(--radius);
  color: #475569;
  background: #ffffff;
  cursor: pointer;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.section-tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #d7e0e8;
  border-radius: 999px;
  color: #475569;
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.section-tabs button.active {
  color: #061218;
  border-color: transparent;
  background: var(--brand);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.payment-card {
  padding: 16px;
  border: 1px solid #d7e0e8;
  border-radius: var(--radius);
  background: #f8fafc;
}

.payment-card strong {
  display: block;
  color: var(--text, #f8fafc);
  font-size: 1.45rem;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
}

.activity-item p {
  margin: 0;
  color: #334155;
}

.activity-item small {
  color: #64748b;
}

.health-grid {
  display: grid;
  gap: 12px;
}

.health-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, var(--brand));
}

@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-kpis,
  .payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-grid,
  .admin-kpis,
  .analytics-row,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .activity-item {
    grid-template-columns: 38px 1fr;
  }

  .activity-item>small {
    grid-column: 2;
  }
}

/* Form validation styling */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #ef4444 !important;
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  outline: 3px solid rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-icon {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* Dark Theme Overrides for Inline Styles in Blade files */
.icon-button {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
}

.icon-button:hover {
  background: var(--panel-strong) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}

td div[style*="#e2e8f0"] {
  background: var(--panel) !important;
  color: var(--brand) !important;
  border: 1px solid var(--line) !important;
}

.btn.btn-primary,
.btn-primary {
  color: #061218 !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(82, 234, 210, 0.2) !important;
}

.btn.btn-primary:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand)) !important;
  transform: translateY(-1px);
}

.badge[style*="#dcfce7"] {
  background: rgba(74, 222, 128, 0.15) !important;
  color: var(--good) !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

.badge[style*="#f1f5f9"] {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
}

/* Common Form Styles */
.form-label-custom {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.form-input-custom,
.form-control,
.form-select {
  border: 1px solid var(--line-dark, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.95rem;
  background-color: var(--bg-2, #0b1020);
  color: var(--text, #f8fafc);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8fafc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
}

.form-input-custom:focus,
.form-control:focus,
.form-select:focus {
  background-color: var(--bg, #050711);
  color: var(--text, #f8fafc);
  border-color: var(--brand, #52ead2);
  outline: none;
  box-shadow: 0 0 0 2px rgba(82, 234, 210, 0.25);
}

.form-select option {
  background-color: var(--bg-2, #0b1020);
  color: var(--text, #f8fafc);
}

input[type="file"]::file-selector-button {
  background-color: var(--panel, rgba(255, 255, 255, 0.07));
  color: var(--text, #f8fafc);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: calc(var(--radius) - 2px);
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--panel-strong, rgba(255, 255, 255, 0.11));
  border-color: var(--brand, #52ead2);
}

/* For older webkit browsers */
input[type="file"]::-webkit-file-upload-button {
  background-color: var(--panel, rgba(255, 255, 255, 0.07));
  color: var(--text, #f8fafc);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: calc(var(--radius) - 2px);
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: var(--panel-strong, rgba(255, 255, 255, 0.11));
  border-color: var(--brand, #52ead2);
}

.panel-title {
  font-size: 1.4rem;
  color: var(--text, #f8fafc);
  margin: 0;
}

.action-btn {
  min-height: 40px;
  font-weight: 800;
  font-size: 0.9rem;
}

.cancel-link {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Select2 Dark Theme Overrides */
.select2-container--default .select2-selection--multiple {
  background-color: var(--bg-2, #0b1020) !important;
  border: 1px solid var(--line-dark, rgba(255, 255, 255, 0.14)) !important;
  border-radius: var(--radius) !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 4px 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #007bff !important;
  border: 1px solid #0069d9 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 2px 8px 2px 0px !important;
  margin-top: 6px !important;
  display: flex !important;
  align-items: center !important;
}

  /* ============================================
   Tom Select Theme Override – matches site theme
   ============================================ */
  .ts-control {
    background-color: var(--bg-2, #0b1020) !important;
    border: 1px solid var(--brand, #52ead2) !important;
    border-radius: var(--radius, 8px) !important;
    min-height: 48px !important;
    padding: 6px 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    color: #e2e8f0 !important;
  }

  .ts-control.focus {
    border-color: var(--brand, #52ead2) !important;
    box-shadow: 0 0 0 3px rgba(82, 234, 210, 0.15) !important;
  }

  .ts-control>input {
    color: #e2e8f0 !important;
    font-size: 0.9rem !important;
  }

  .ts-control>input::placeholder {
    color: var(--muted-2, #94a3b8) !important;
  }

  .ts-control .item {
    background-color: var(--brand, #52ead2) !important;
    border: none !important;
    border-radius: 6px !important;
    color: #051013 !important;
    /* Dark text on bright cyan background */
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 4px 6px 4px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  .ts-control .item .remove {
    color: rgba(5, 16, 19, 0.7) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .ts-control .item .remove:hover {
    color: #000000 !important;
    background: transparent !important;
  }

  .ts-dropdown {
    background: var(--bg, #050711) !important;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.14)) !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    margin-top: 4px !important;
  }

  .ts-dropdown .option {
    color: #e2e8f0 !important;
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
    background-color: #d1d5db !important;
    /* light gray for unselected like screenshot */
    color: #1f2937 !important;
    /* dark text for light gray background */
  }

  .ts-dropdown .option.active,
  .ts-dropdown .option.selected {
    background-color: #0c1527 !important;
    /* dark blue for selected like screenshot */
    color: var(--brand, #52ead2) !important;
    font-weight: 600 !important;
  }

  /* Premium Glassmorphism SweetAlert2 Redesign */
  body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
    background-color: rgba(5, 7, 17, 0.4) !important;
    backdrop-filter: blur(8px) !important;
  }

  div.swal2-container.swal2-backdrop-show {
    background: transparent !important;
  }

  div.swal2-popup {
    background: rgba(11, 16, 32, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(82, 234, 210, 0.25) !important;
    border-radius: 16px !important;
    color: var(--text) !important;
    box-shadow: 0 0 40px rgba(82, 234, 210, 0.1), 0 24px 80px rgba(0, 0, 0, 0.5) !important;
    padding: 2.5em 2em !important;
  }

  div.swal2-title {
    color: var(--text) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.5em !important;
  }

  div.swal2-html-container {
    color: var(--muted) !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }

  /* Icons */
  .swal2-icon.swal2-success {
    border-color: rgba(82, 234, 210, 0.5) !important;
    color: var(--brand) !important;
    box-shadow: 0 0 20px rgba(82, 234, 210, 0.1) !important;
  }

  .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(82, 234, 210, 0.4) !important;
  }

  .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: var(--brand) !important;
  }

  .swal2-icon.swal2-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1) !important;
  }

  .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ef4444 !important;
  }

  .swal2-icon.swal2-warning {
    border-color: rgba(245, 184, 92, 0.5) !important;
    color: var(--accent) !important;
  }

  /* Buttons */
  .swal2-actions {
    margin-top: 2em !important;
    gap: 12px !important;
  }

  .swal2-confirm,
  .swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, var(--brand), #2bc2a8) !important;
    color: #050711 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    border: none !important;
    box-shadow: 0 8px 16px rgba(82, 234, 210, 0.2) !important;
    transition: all 0.3s ease !important;
  }

  .swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 20px rgba(82, 234, 210, 0.3) !important;
  }

  .swal2-cancel,
  .swal2-styled.swal2-cancel {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text) !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
  }

  .swal2-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }

  /* Toast Mode */
  div.swal2-popup.swal2-toast {
    background: rgba(11, 16, 32, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(82, 234, 210, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 12px 20px !important;
  }

  div.swal2-popup.swal2-toast .swal2-title {
    font-size: 1rem !important;
    margin: 0 !important;
  }

/* ============================================================
   MOBILE RESPONSIVE & DESKTOP COLLAPSE SYSTEM
   ============================================================ */

/* Hamburger button — hidden on desktop */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius);
  background: transparent;
  color: var(--text, #f8fafc);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger-btn:hover {
  background: rgba(82, 234, 210, 0.1);
}

/* Close button inside sidebar — hidden on desktop */
.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted, #a8b3c5);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.sidebar-close-btn:hover {
  color: var(--text, #f8fafc);
  background: rgba(255, 255, 255, 0.06);
}

/* Dark backdrop overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.visible {
  opacity: 1;
}

/* ── Tablet/Mobile ≤ 1180px Breakpoint (Off-canvas triggers) ── */
@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 1fr !important;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: -280px;
    width: 268px !important;
    height: 100vh !important;
    z-index: 300;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none;
  }

  .admin-sidebar.open {
    left: 0 !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  }

  .sidebar-overlay {
    display: block;
  }
  .sidebar-overlay.visible {
    pointer-events: all;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .sidebar-close-btn {
    display: flex !important;
  }

  .admin-main {
    width: 100%;
    min-width: 0;
  }

  .admin-topbar {
    padding: 12px 16px !important;
    min-height: 60px !important;
  }

  .admin-content {
    padding: 16px !important;
  }

  /* KPI cards — 2 column on tablet */
  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ── Mobile ≤ 640px Breakpoint ── */
@media (max-width: 640px) {
  .admin-kpis {
    grid-template-columns: 1fr !important;
  }

  .admin-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .admin-hero h1 {
    font-size: 1.6rem !important;
  }

  .admin-date-card {
    min-width: 100% !important;
    width: 100% !important;
  }

  .panel-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .panel-head .admin-action {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Tables overflow on small screens */
  .table-wrapper,
  .table-wrap,
  .admin-panel .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Stacked form rows on mobile */
  .row[style*="grid-template-columns: 1fr 1fr"],
  .row[style*="grid-template-columns:1fr 1fr"],
  .row[style*="grid-template-columns: repeat(2, 1fr)"],
  .row[style*="grid-template-columns:repeat(2,1fr)"],
  .row[style*="grid-template-columns: 260px 1fr"],
  .row[style*="grid-template-columns:260px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .admin-content {
    padding: 12px !important;
  }

  .admin-topbar .user-greeting {
    display: none;
  }
}

/* Desktop Collapse Mode CSS (Applies only when viewport width > 1180px) */
@media (min-width: 1181px) {
  body.sidebar-collapsed .admin-shell {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }
  body.sidebar-collapsed .admin-sidebar {
    width: 78px !important;
    padding: 18px 8px !important;
    align-items: center !important;
  }
  body.sidebar-collapsed .admin-sidebar > div:first-child {
    justify-content: center !important;
    width: 100% !important;
  }
  body.sidebar-collapsed .admin-sidebar .brand-full {
    display: none !important;
  }
  body.sidebar-collapsed .admin-sidebar .brand-mini {
    display: block !important;
  }
  body.sidebar-collapsed .admin-sidebar .admin-nav a,
  body.sidebar-collapsed .admin-sidebar .admin-nav button,
  body.sidebar-collapsed .admin-sidebar .admin-nav .nav-toggle {
    font-size: 0px !important;
    justify-content: center !important;
    padding: 10px 0 !important;
    gap: 0 !important;
  }
  body.sidebar-collapsed .admin-sidebar .admin-nav a svg,
  body.sidebar-collapsed .admin-sidebar .admin-nav button svg,
  body.sidebar-collapsed .admin-sidebar .admin-nav .nav-toggle svg {
    margin: 0 !important;
  }
  body.sidebar-collapsed .admin-sidebar .admin-nav a .chevron,
  body.sidebar-collapsed .admin-sidebar .admin-nav button .chevron,
  body.sidebar-collapsed .admin-sidebar .admin-nav .nav-toggle .chevron {
    display: none !important;
  }
  body.sidebar-collapsed .admin-sidebar .admin-nav a > span,
  body.sidebar-collapsed .admin-sidebar .admin-nav button > span,
  body.sidebar-collapsed .admin-sidebar .admin-nav .nav-toggle > span {
    font-size: 0px !important;
    gap: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  body.sidebar-collapsed .admin-sidebar .admin-nav a > span span,
  body.sidebar-collapsed .admin-sidebar .admin-nav button > span span,
  body.sidebar-collapsed .admin-sidebar .admin-nav .nav-toggle > span span {
    display: none !important;
  }
  body.sidebar-collapsed .admin-sidebar-foot {
    display: none !important;
  }
  body.sidebar-collapsed .admin-submenu {
    display: none !important;
  }
  body.sidebar-collapsed .chevron-left-icon {
    display: none !important;
  }
  body.sidebar-collapsed .chevron-right-icon {
    display: block !important;
  }
}

/* Desktop collapse toggle style rules */
.desktop-collapse-btn {
  cursor: pointer;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius);
  background: transparent;
  color: var(--text, #f8fafc);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.desktop-collapse-btn:hover {
  background: rgba(82, 234, 210, 0.1);
}
@media (max-width: 1180px) {
  .desktop-collapse-btn {
    display: none !important;
  }
}