:root {
  --primary: #00677A;
  --primary-light: #00A8A8;
  --secondary: #F4C542;
  --dark: #073B4C;
  --text: #425466;
  --light: #F5FAFC;
  --white: #FFFFFF;
  --border: #E3EDF2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  padding: 35px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(7, 59, 76, 0.12);
}

.logo-wrap {
  text-align: center;
  margin-bottom: 25px;
}

.logo-wrap img {
  max-width: 210px;
  height: auto;
}

h1, h2, h3 {
  color: var(--dark);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.auth-card p.subtitle {
  text-align: center;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: bold;
  color: var(--dark);
}

input, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-light);
}

.btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover {
  background: var(--dark);
}

.alert {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.alert-error {
  background: #ffe5e5;
  color: #9b1c1c;
}

.alert-success {
  background: #e8fff1;
  color: #116b35;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.dashboard-layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 250px;
  background: var(--dark);
  color: var(--white);
  padding: 25px;
}

.sidebar img {
  max-width: 180px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 30px;
}

.sidebar a {
  display: block;
  color: var(--white);
  padding: 12px 0;
}

.main-content {
  flex: 1;
  padding: 35px;
}

.wallet-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 25px;
}

.wallet-card h3 {
  color: var(--white);
  margin-top: 0;
}

.wallet-balance {
  font-size: 36px;
  font-weight: bold;
}

.table-card {
  background: var(--white);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(7, 59, 76, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--dark);
}

@media (max-width: 800px) {
  .dashboard-layout {
    display: block;
  }

  .sidebar {
    width: 100%;
  }

  .main-content {
    padding: 20px;
  }
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

.action-card {
  display: block;
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(7, 59, 76, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.action-card:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}

.action-card span {
  font-size: 34px;
}

.action-card h3 {
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
}
.form-card {
  max-width: 650px;
}

.form-card h3 {
  margin-top: 0;
}
.home-container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.home-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-logo img {
  height: 85px;
  width: auto;
  display: block;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.home-nav a {
  color: var(--dark);
}

.home-nav a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 12px 20px;
  border-radius: 999px;
}

.hero-section {
  padding: 95px 0;
  background:
    radial-gradient(circle at top left, rgba(0, 168, 168, 0.16), transparent 35%),
    linear-gradient(180deg, var(--white), var(--light));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 55px;
  align-items: center;
}

.hero-badge,
.section-title span,
.section-small {
  display: inline-block;
  color: var(--primary);
  background: rgba(0, 168, 168, 0.1);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--dark);
}

.hero-content p {
  font-size: 19px;
  max-width: 570px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-btn:hover {
  background: var(--dark);
}

.hero-btn.secondary {
  background: var(--secondary);
  color: var(--dark);
}

.hero-card {
  background: var(--white);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 20px 55px rgba(7, 59, 76, 0.14);
  border: 1px solid var(--border);
}

.wallet-preview {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 18px;
}

.wallet-preview p {
  margin: 0 0 16px;
  opacity: 0.9;
}

.wallet-preview h2 {
  color: var(--white);
  font-size: 36px;
  margin: 0;
}

.mini-service {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: var(--light);
  margin-top: 14px;
}

.mini-service span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 14px;
  font-size: 24px;
}

.mini-service h4,
.mini-service p {
  margin: 0;
}

.services-section,
.how-section,
.about-section {
  padding: 85px 0;
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-title h2,
.about-section h2,
.cta-box h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.service-boxes,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.home-service-card,
.step-card,
.about-panel {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 26px;
  box-shadow: 0 12px 35px rgba(7, 59, 76, 0.08);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--light);
  border-radius: 18px;
  font-size: 30px;
}

.step-card strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  margin-bottom: 18px;
}

.how-section {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.about-section p {
  font-size: 18px;
}

.about-panel ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.about-panel li {
  padding: 10px 0;
}

.about-panel li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 900;
  margin-right: 10px;
}

.cta-section {
  padding: 60px 0 85px;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-align: center;
  padding: 60px 25px;
  border-radius: 32px;
}

.cta-box h2 {
  color: var(--white);
}

.cta-box .hero-btn {
  background: var(--white);
  color: var(--primary);
}

.home-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.78);
  padding-top: 65px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.home-footer img {
  max-width: 180px;
  background: var(--white);
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.home-footer h4 {
  color: var(--white);
  margin-bottom: 14px;
}

.home-footer a {
  display: block;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}

.home-footer a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding: 22px;
  margin-top: 45px;
  border-top: 1px solid rgba(255,255,255,0.12);
}


/* Final homepage header and hamburger menu */
.menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 851px) {
  .home-nav {
    display: flex;
  }
}

@media (max-width: 850px) {
  .home-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .nav-bar {
    position: relative;
    min-height: 84px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }

  .home-logo img {
    height: 64px;
    width: auto;
    margin: 0;
    display: block;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .home-nav {
    display: none !important;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 18px 45px rgba(7, 59, 76, 0.16);
    z-index: 1000;
  }

  .home-nav.active {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-nav a {
    display: block;
    background: var(--light);
    color: var(--dark);
    padding: 14px 16px;
    border-radius: 14px;
    text-align: left;
    font-weight: 800;
  }

  .home-nav .nav-btn {
    background: var(--primary);
    color: var(--white) !important;
    text-align: center;
    border-radius: 999px;
  }

  .hero-section {
    padding: 55px 0 65px;
  }

  .hero-grid,
  .service-boxes,
  .steps-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  .hero-content p {
    font-size: 17px;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  .hero-card {
    padding: 20px;
    border-radius: 24px;
  }

  .services-section,
  .how-section,
  .about-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .home-logo img {
    height: 58px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-badge,
  .section-title span,
  .section-small {
    font-size: 13px;
  }
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.small-btn {
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  margin: 2px;
}

.approve-btn {
  background: #e8fff1;
  color: #116b35;
}

.reject-btn {
  background: #ffe5e5;
  color: #9b1c1c;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-pending {
  background: #fff6d7;
  color: #8a6200;
}

.status-approved,
.status-successful {
  background: #e8fff1;
  color: #116b35;
}

.status-rejected,
.status-failed {
  background: #ffe5e5;
  color: #9b1c1c;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.small-btn {
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  margin: 2px;
}

.approve-btn {
  background: #e8fff1;
  color: #116b35;
}

.reject-btn {
  background: #ffe5e5;
  color: #9b1c1c;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-pending {
  background: #fff6d7;
  color: #8a6200;
}

.status-approved,
.status-successful {
  background: #e8fff1;
  color: #116b35;
}

.status-rejected,
.status-failed {
  background: #ffe5e5;
  color: #9b1c1c;
}

.filter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-btn {
  width: auto;
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 800px) {
  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    width: 100%;
  }
}
/* ================================
   Upruner Dashboard/App Layout
================================ */

.app-shell {
  min-height: 100vh;
  display: flex;
  background: var(--light);
}

.app-sidebar {
  width: 270px;
  background: linear-gradient(180deg, var(--dark), #052d3a);
  color: var(--white);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-logo {
  background: var(--white);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 28px;
  text-align: center;
}

.sidebar-logo img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sidebar-menu {
  display: grid;
  gap: 8px;
}

.sidebar-menu a {
  color: rgba(255, 255, 255, 0.92);
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 700;
  display: block;
  text-decoration: none;
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.logout-link {
  margin-top: 12px;
  background: rgba(255, 229, 229, 0.12);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.sidebar-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.topbar-title h2 {
  margin: 0 0 4px;
  color: var(--dark);
}

.topbar-title p {
  margin: 0;
  color: var(--text);
}

.role-pill {
  display: inline-block;
  margin-left: 8px;
  background: #e8fff1;
  color: #116b35;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.page-content {
  padding: 32px 34px;
  flex: 1;
}

.app-footer {
  margin: 0 34px 24px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  font-size: 14px;
}

.app-footer p {
  margin: 0;
}

.app-footer span {
  color: var(--primary);
  font-weight: 800;
}

/* Mobile dashboard layout */
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    left: -290px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: 0.25s ease;
    box-shadow: 20px 0 50px rgba(7, 59, 76, 0.25);
  }

  .app-sidebar.active {
    left: 0;
  }

  .sidebar-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .app-topbar {
    padding: 16px 18px;
  }

  .topbar-title h2 {
    font-size: 22px;
  }

  .page-content {
    padding: 22px 18px;
  }

  .app-footer {
    margin: 0 18px 18px;
    display: block;
    text-align: center;
  }

  .app-footer span {
    display: block;
    margin-top: 6px;
  }
}

/* ================================
   Homepage Image Upgrade
================================ */

.hero-image-card {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(7, 59, 76, 0.18);
  border: 1px solid var(--border);
  background: var(--white);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 59, 76, 0.04),
    rgba(7, 59, 76, 0.46)
  );
}

.floating-wallet {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  padding: 22px 26px;
  box-shadow: 0 18px 45px rgba(7, 59, 76, 0.18);
  min-width: 230px;
}

.floating-wallet p {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}

.floating-wallet h2 {
  margin: 0;
  font-size: 34px;
  color: var(--primary);
}

.floating-badge {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 40px rgba(7, 59, 76, 0.16);
}

.floating-badge span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
}

.floating-badge strong,
.floating-badge small {
  display: block;
}

.floating-badge strong {
  color: var(--dark);
}

.floating-badge small {
  color: var(--text);
}

.image-service-card {
  overflow: hidden;
  padding: 0;
}

.image-service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.image-service-card .service-icon,
.image-service-card h3,
.image-service-card p {
  margin-left: 26px;
  margin-right: 26px;
}

.image-service-card .service-icon {
  margin-top: -30px;
  position: relative;
  z-index: 2;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(7, 59, 76, 0.12);
}

.image-service-card p {
  padding-bottom: 28px;
}

/* Payment showcase section */
.payment-showcase {
  padding: 85px 0;
  background:
    radial-gradient(circle at top right, rgba(244, 197, 66, 0.16), transparent 30%),
    var(--white);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 45px;
  align-items: center;
}

.showcase-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 42px;
}

.showcase-card h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.showcase-card p {
  font-size: 18px;
}

.showcase-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 28px;
}

.showcase-points div {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
}

.showcase-points strong {
  display: block;
  color: var(--primary);
  font-size: 22px;
}

.showcase-points span {
  display: block;
  margin-top: 6px;
  color: var(--dark);
  font-weight: 800;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.mock-dashboard {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(7, 59, 76, 0.14);
}

.mock-header {
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin-bottom: 18px;
}

.mock-balance {
  background: var(--dark);
  border-radius: 24px;
  padding: 24px;
  color: var(--white);
  margin-bottom: 18px;
}

.mock-balance small {
  opacity: 0.8;
}

.mock-balance h3 {
  color: var(--white);
  margin: 8px 0 0;
  font-size: 32px;
}

.mock-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--light);
  border-radius: 18px;
  margin-top: 12px;
}

.mock-row span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 14px;
  font-size: 23px;
}

.mock-row strong,
.mock-row small {
  display: block;
}

.mock-row strong {
  color: var(--dark);
}

.mock-row small {
  color: var(--text);
}

@media (max-width: 850px) {
  .hero-image-card {
    min-height: 420px;
  }

  .hero-image-card img {
    min-height: 420px;
  }

  .floating-wallet {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: auto;
  }

  .floating-badge {
    left: 16px;
    right: 16px;
    top: 16px;
    border-radius: 20px;
  }

  .image-service-card img {
    height: 210px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    padding: 28px;
  }

  .showcase-points {
    grid-template-columns: 1fr;
  }
}
/* ================================
   FINAL MOBILE DASHBOARD FIX
================================ */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  background: var(--light);
}

.app-sidebar {
  width: 270px;
  background: linear-gradient(180deg, var(--dark), #052d3a);
  color: var(--white);
  padding: 22px 16px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-logo {
  background: var(--white);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.sidebar-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sidebar-menu {
  display: grid;
  gap: 8px;
}

.sidebar-menu a {
  display: block;
  color: var(--white);
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.logout-link {
  margin-top: 12px;
  background: rgba(255, 229, 229, 0.12);
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 13px;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.topbar-brand {
  display: none;
}

.topbar-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.topbar-title h2 {
  margin: 0 0 4px;
  color: var(--dark);
}

.topbar-title p {
  margin: 0;
  color: var(--text);
}

.role-pill {
  display: inline-block;
  margin-left: 8px;
  background: #e8fff1;
  color: #116b35;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.page-content {
  flex: 1;
  padding: 28px;
}

.app-footer {
  margin: 0 28px 22px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
}

.app-footer p {
  margin: 0;
}

.app-footer span {
  color: var(--primary);
  font-weight: 800;
}

.sidebar-backdrop {
  display: none;
}

/* Phone view */
@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: fixed !important;
    left: -290px;
    top: 0;
    width: 270px;
    height: 100vh;
    transition: 0.25s ease;
    box-shadow: 20px 0 50px rgba(7, 59, 76, 0.28);
  }

  .app-sidebar.active {
    left: 0;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 59, 76, 0.45);
    z-index: 950;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .sidebar-toggle {
    display: grid !important;
    place-items: center;
    flex-shrink: 0;
  }

  .topbar-brand {
    display: block;
  }

  .topbar-brand img {
    height: 38px;
  }

  .app-topbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .topbar-title h2 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .topbar-title p {
    font-size: 13px;
  }

  .role-pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .page-content {
    padding: 18px 14px;
  }

  .quick-actions {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .action-card {
    padding: 18px;
    border-radius: 18px;
  }

  .action-card span {
    font-size: 28px;
  }

  .wallet-card {
    padding: 22px;
    border-radius: 20px;
  }

  .wallet-balance {
    font-size: 28px;
  }

  .table-card {
    padding: 18px;
    border-radius: 18px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 720px;
  }

  .app-footer {
    margin: 0 14px 18px;
    display: block;
    text-align: center;
    font-size: 13px;
  }

  .app-footer span {
    display: block;
    margin-top: 6px;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .topbar-brand img {
    height: 34px;
  }

  .topbar-title h2 {
    font-size: 16px;
  }

  .topbar-title p {
    font-size: 12px;
  }

  .page-content {
    padding: 16px 10px;
  }

  .action-card h3 {
    font-size: 16px;
  }

  .action-card p {
    font-size: 13px;
  }
}
/* ================================
   FINAL SIDEBAR RESPONSIVE FIX
================================ */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh !important;
  display: flex !important;
  background: var(--light) !important;
}

.app-sidebar {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  background: linear-gradient(180deg, var(--dark), #052d3a) !important;
  padding: 20px 16px !important;
  overflow-y: auto !important;
  flex-shrink: 0 !important;
  z-index: 1000 !important;
}

.sidebar-logo {
  background: var(--white) !important;
  border-radius: 20px !important;
  padding: 12px !important;
  margin-bottom: 22px !important;
  text-align: center !important;
}

.sidebar-logo img {
  width: 100% !important;
  max-width: 180px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.sidebar-menu {
  display: grid !important;
  gap: 8px !important;
}

.sidebar-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--white) !important;
  padding: 13px 14px !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255, 255, 255, 0.14) !important;
}

.logout-link {
  margin-top: 14px !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.app-main {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.app-topbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 18px 28px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
}

.sidebar-toggle {
  display: none !important;
  width: 44px !important;
  height: 44px !important;
  border: none !important;
  border-radius: 13px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.topbar-title h2 {
  margin: 0 0 4px !important;
  color: var(--dark) !important;
}

.topbar-title p {
  margin: 0 !important;
  color: var(--text) !important;
}

.page-content {
  padding: 28px !important;
  flex: 1 !important;
}

.sidebar-backdrop {
  display: none;
}

/* Tablet and phone */
@media (max-width: 900px) {
  .app-shell {
    display: block !important;
  }

  .app-sidebar {
    position: fixed !important;
    left: -300px !important;
    top: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 100vh !important;
    transition: left 0.25s ease !important;
    box-shadow: 18px 0 45px rgba(7, 59, 76, 0.28) !important;
  }

  .app-sidebar.active {
    left: 0 !important;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(7, 59, 76, 0.45) !important;
    z-index: 950 !important;
  }

  .sidebar-backdrop.active {
    display: block !important;
  }

  .sidebar-toggle {
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
  }

  .app-topbar {
    padding: 13px 14px !important;
  }

  .topbar-title h2 {
    font-size: 18px !important;
  }

  .topbar-title p {
    font-size: 13px !important;
  }

  .page-content {
    padding: 16px 12px !important;
  }

  .quick-actions {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .action-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .table-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  table {
    min-width: 760px !important;
  }

  .app-footer {
    margin: 0 12px 18px !important;
    display: block !important;
    text-align: center !important;
    font-size: 13px !important;
  }

  .app-footer span {
    display: block !important;
    margin-top: 6px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .app-sidebar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    left: -280px !important;
  }

  .app-sidebar.active {
    left: 0 !important;
  }

  .sidebar-logo img {
    max-width: 155px !important;
  }

  .sidebar-menu a {
    font-size: 14px !important;
    padding: 12px 13px !important;
  }

  .topbar-title h2 {
    font-size: 16px !important;
  }

  .topbar-title p {
    font-size: 12px !important;
  }
}
/* ================================
   FIX: Sidebar fixed, main dashboard scrolls
================================ */

html,
body {
  height: 100%;
  overflow: hidden !important;
}

.app-shell {
  height: 100vh !important;
  min-height: 100vh !important;
  display: flex !important;
  overflow: hidden !important;
  background: var(--light) !important;
}

/* Sidebar stays in place */
.app-sidebar {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: 100vh !important;
  position: relative !important;
  top: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex-shrink: 0 !important;
}

/* Main side scrolls instead of the whole page */
.app-main {
  flex: 1 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Topbar sticks at the top of the main scroll area */
.app-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
  flex-shrink: 0 !important;
}

/* Content scrolls under the topbar */
.page-content {
  flex: 1 !important;
  padding: 28px !important;
}

/* Footer stays inside the main scrolling area */
.app-footer {
  flex-shrink: 0 !important;
}

/* Nice sidebar scrollbar */
.app-sidebar::-webkit-scrollbar,
.app-main::-webkit-scrollbar {
  width: 8px;
}

.app-sidebar::-webkit-scrollbar-thumb,
.app-main::-webkit-scrollbar-thumb {
  background: rgba(7, 59, 76, 0.35);
  border-radius: 999px;
}

.app-sidebar::-webkit-scrollbar-track,
.app-main::-webkit-scrollbar-track {
  background: transparent;
}

/* Phone/tablet: normal page scroll, sidebar becomes slide menu */
@media (max-width: 900px) {
  html,
  body {
    height: auto;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .app-shell {
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
    overflow: visible !important;
  }

  .app-main {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  .app-sidebar {
    position: fixed !important;
    left: -300px !important;
    top: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    transition: left 0.25s ease !important;
  }

  .app-sidebar.active {
    left: 0 !important;
  }

  .sidebar-backdrop.active {
    display: block !important;
  }

  .app-topbar {
    position: sticky !important;
    top: 0 !important;
  }

  .page-content {
    padding: 16px 12px !important;
  }
}
/* ================================
   FIX USERS TABLE LARGE SPACING
================================ */

.admin-users-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
  vertical-align: middle !important;
  padding: 14px 16px !important;
  line-height: 1.35 !important;
}

.admin-users-table tr {
  height: auto !important;
}

.user-update-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 260px !important;
}

.user-update-form .form-group {
  margin-bottom: 0 !important;
}

.user-update-form label {
  display: none !important;
}

.user-update-form select {
  height: 42px !important;
  padding: 8px 10px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
}

.user-update-form .small-btn {
  height: 42px !important;
  padding: 8px 16px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.admin-users-table .status-badge {
  white-space: nowrap !important;
}

.admin-users-table small {
  font-size: 13px !important;
}

/* On smaller screens, keep the user table scrollable */
@media (max-width: 900px) {
  .admin-users-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-users-table table {
    min-width: 1050px !important;
  }

  .user-update-form {
    min-width: 260px !important;
  }
}
/* ================================
   DStv / StarTimes Monitoring Tables
================================ */

.dstv-monitor-table th,
.dstv-monitor-table td {
  vertical-align: middle !important;
}

.dstv-monitor-table table {
  min-width: 1350px !important;
}

.dstv-monitor-table small {
  font-size: 13px !important;
}
/* ================================
   StarTimes Monitoring Table
================================ */

.startimes-monitor-table th,
.startimes-monitor-table td {
  vertical-align: middle !important;
}

.startimes-monitor-table table {
  min-width: 1350px !important;
}

.startimes-monitor-table small {
  font-size: 13px !important;
}
/* ================================
   Receipt Buttons / Missing Receipt
================================ */

.proof-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #e8fff1 !important;
  color: #116b35 !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border: 1px solid rgba(17, 107, 53, 0.12) !important;
}

.proof-btn:hover {
  background: #d7fbe7 !important;
  transform: translateY(-1px);
}

.proof-missing {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* ================================
   Customer Dashboard Recent Table
================================ */

.customer-dashboard-table th,
.customer-dashboard-table td {
  vertical-align: middle !important;
}

.customer-dashboard-table table {
  min-width: 850px !important;
}

.customer-dashboard-table small {
  font-size: 13px !important;
}

/* ================================
   Customer Transactions Table
================================ */

.customer-transactions-table th,
.customer-transactions-table td {
  vertical-align: middle !important;
}

.customer-transactions-table table {
  min-width: 1150px !important;
}

.customer-transactions-table small {
  font-size: 13px !important;
}

/* ================================
   Admin Transaction / Payment Tables
================================ */

.transactions-monitor-table th,
.transactions-monitor-table td,
.dstv-monitor-table th,
.dstv-monitor-table td,
.startimes-monitor-table th,
.startimes-monitor-table td {
  vertical-align: middle !important;
}

.transactions-monitor-table table {
  min-width: 1450px !important;
}

.dstv-monitor-table table,
.startimes-monitor-table table {
  min-width: 1350px !important;
}

.transactions-monitor-table small,
.dstv-monitor-table small,
.startimes-monitor-table small {
  font-size: 13px !important;
}