@import url("https://fonts.bunny.net/css?family=SolaimanLipi:400,700");
@import url("https://fonts.bunny.net/css?family=Noto+Sans+Bengali:400,500,700");
@import url("https://fonts.bunny.net/css?family=Nunito:400,600");

:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --surface-strong: #e3edf9;
  --border: #e0e6ef;
  --text-primary: #0f1d35;
  --text-secondary: #5c6375;
  --accent: #0f7b4a;
  --accent-soft: rgba(15, 123, 74, 0.1);
  --shadow-soft: 0 16px 38px rgba(15, 29, 56, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Nunito", "Noto Sans Bengali", "SolaimanLipi", system-ui, sans-serif;
  background: linear-gradient(180deg, #f7f9fc, #eef2f7);
  color: var(--text-primary);
  margin: 0;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.app-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.sidebar-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 42px;
  height: 38px;
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(15, 29, 56, 0.25);
  cursor: pointer;
  z-index: 1200;
  grid-column: 1 / -1;
  grid-row: 1;
}

.sidebar-toggle span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
  grid-column: 1 / -1;
  grid-row: 1;
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #1bb27f);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 123, 74, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1190;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top span {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.content-wrapper {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  width: 100%;
  grid-column: 2;
  grid-row: 1;
}

.main-header {
  padding: 1.25rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.header-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  width: 120px;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.35rem;
  background: #fff;
}

.header-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown-toggle {
  gap: 0.4rem;
}

.profile-dropdown-toggle .dropdown-indicator {
  font-size: 0.85rem;
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}

.profile-dropdown.open .profile-dropdown-toggle .dropdown-indicator {
  transform: rotate(-180deg);
}

.profile-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.profile-dropdown.open .profile-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-dropdown-item:hover,
.profile-dropdown-item:focus-within {
  background: rgba(15, 123, 74, 0.08);
  color: var(--accent);
}

.profile-dropdown-action {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0;
}

.profile-link {
  border-radius: 0.8rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(15, 123, 74, 0.4);
  background: rgba(15, 123, 74, 0.08);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-link:hover {
  background: rgba(15, 123, 74, 0.16);
  border-color: rgba(15, 123, 74, 0.6);
}

.profile-logout {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.profile-logout {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 0.75rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid transparent;
  background: var(--surface-muted);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.profile-button:hover,
.profile-button:focus {
  background: rgba(15, 123, 74, 0.12);
  border-color: rgba(15, 123, 74, 0.3);
  color: var(--accent);
}

.profile-button.logout-chip {
  border-radius: 0.7rem;
}

.profile-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.lang-chip {
  border-radius: 999px;
  border: 1px solid var(--accent);
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.user-badge {
  border-radius: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.section-header {
  padding: 1rem 2rem;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  width: 100%;
  min-width: 0;
}

.page-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-content {
  flex: 1;
  padding: 2rem;
  min-width: 0;
  width: 100%;
}

.sidebar {
  background: var(--surface-strong);
  padding: 1.75rem 1.2rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-right: 1px solid var(--border);
  transition: transform 0.25s ease;
  min-height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}

.sidebar-heading {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 29, 56, 0.08);
}

.sidebar-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 123, 74, 0.12);
}

.sidebar-footer-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.25rem;
}

.sidebar-footer-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.sidebar-footer-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.sidebar-footer-copy span {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.3;
  word-break: break-word;
}

.sidebar-footer-copy a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.sidebar-footer-copy a:hover {
  text-decoration: underline;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 0.75rem;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-link {
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-link.active {
  background: rgba(15, 123, 74, 0.12);
  border-color: rgba(15, 123, 74, 0.35);
  transform: translateX(2px);
}

.nav-link:hover {
  background: rgba(15, 123, 74, 0.08);
  border-color: rgba(15, 123, 74, 0.15);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.dashboard-card,
.inline-card,
.pos-card,
.auth-card,
.inventory-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  width: 100%;
  min-width: 0;
}

.form-field,
.form-row {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.input-field,
.x-input-field {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 0.95rem;
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 0.85rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #2da36e);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 123, 74, 0.25);
}

.secondary-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.ghost-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--accent);
}

.table-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow-x: auto;
}
.table-card table,
.table-card-wrapper table {
  width: 100%;
  min-width: 600px;
}
.table-card-wrapper {
  width: 100%;
  overflow-x: auto;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
}

.status-table th,
.status-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.text-right {
  text-align: right;
}

.actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 123, 74, 0.4);
  background: var(--surface-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.category-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.category-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 0.75rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-weight: 600;
}

.toastify-toast {
  font-size: 0.9rem;
}

.guest-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7f9fc, #e4ecf9);
  padding: 2rem;
}

.guest-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-hero {
  background: var(--surface-strong);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  width: min(440px, 100%);
  text-align: center;
}

.auth-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.auth-hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.auth-hero-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.auth-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.landing-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  justify-content: flex-start;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 110px;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 0.35rem;
  background: #fff;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.landing-main {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.hero-showcase {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  align-items: stretch;
}

.hero-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.hero-lead-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(45, 163, 110, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff, #f5fbf7);
}

.hero-status-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 123, 74, 0.08);
  border: 1px solid rgba(15, 123, 74, 0.14);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 2.4rem;
  margin: 0;
  line-height: 1.15;
}

.hero-body,
.hero-subtitle {
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-side-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 123, 74, 0.95), rgba(15, 29, 56, 0.92)),
    #0f1d35;
  color: #fff;
  min-height: 100%;
}

.hero-panel-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -70px;
  right: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
}

.hero-panel-kicker {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-panel-title {
  position: relative;
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
}

.hero-panel-body {
  position: relative;
  margin: 0.85rem 0 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.hero-panel-list {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.hero-panel-item {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
}

.section-intro {
  margin-bottom: 1rem;
}

.section-title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.15;
}

.section-subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.55;
}

.payment-rail-section,
.feature-section,
.support-section {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.payment-rail-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.payment-rail-card,
.support-card,
.feature-tile {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.payment-rail-card {
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.payment-rail-card strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.payment-rail-card span,
.support-card p,
.feature-tile p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-tile {
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff, #f7fafc),
    #fff;
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: auto 1.15rem 0.85rem auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(15, 123, 74, 0.06);
}

.feature-tile-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0.9rem;
  background: rgba(15, 123, 74, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-tile h3,
.support-card h3 {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0.45rem;
  font-size: 1.05rem;
}

.support-card {
  padding: 1rem 1.05rem;
}

.support-card p {
  margin: 0;
}

.landing-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.landing-footer-branding {
  margin-top: auto;
  padding: 1rem 1.25rem 0;
}

.landing-footer-branding .brand-mark {
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.landing-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.landing-footer-copy strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.landing-footer-copy span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.landing-footer-copy a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.landing-footer-copy a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .main-header,
  .section-header,
  .main-content {
    padding: 0.9rem 0.85rem;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .header-brand {
    width: 100%;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-brand > div {
    min-width: 0;
  }

  .header-logo {
    width: 88px;
  }

  .header-title {
    font-size: 1.1rem;
  }

  .header-subtitle {
    font-size: 0.78rem;
  }

  .header-meta,
  .profile-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-dropdown {
    width: 100%;
  }

  .profile-button {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
  }

  .profile-dropdown-menu {
    left: 0;
    right: auto;
    width: min(100%, 260px);
    min-width: min(100%, 260px);
  }

  .sidebar-toggle {
    top: 0.75rem;
    left: 0.75rem;
  }

  .back-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 42px;
    height: 42px;
  }

  .sidebar {
    width: min(300px, 92vw);
    padding: 1rem 0.75rem 1.1rem;
    gap: 0.55rem;
  }

  .sidebar-heading {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .nav-link {
    padding: 0.65rem 0.7rem;
    gap: 0.55rem;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
  }

  .nav-title {
    font-size: 0.9rem;
  }

  .sidebar-footer {
    padding-top: 0.75rem;
  }

  .sidebar-footer-brand {
    padding: 0.65rem 0.7rem;
    gap: 0.6rem;
  }

  .sidebar-footer-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .dashboard-card,
  .inline-card,
  .pos-card,
  .auth-card,
  .inventory-card,
  .hero-card,
  .payment-rail-section,
  .feature-section,
  .support-section {
    padding: 1rem;
  }

  .guest-shell,
  .landing-shell {
    padding: 1rem 0.85rem;
  }

  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .page-heading,
  .section-heading,
  .actions-cell {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .actions-cell {
    flex-wrap: wrap;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    padding: 0.7rem 0.95rem;
  }

  .input-field,
  .x-input-field {
    padding: 0.75rem 0.85rem;
  }

  .table-card table,
  .table-card-wrapper table {
    min-width: 520px;
  }

  .status-table th,
  .status-table td {
    padding: 0.65rem 0.55rem;
    font-size: 0.88rem;
  }

  .landing-footer-branding .brand-mark {
    flex-direction: column;
    text-align: center;
  }

  .landing-footer-copy {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main-header,
  .section-header,
  .main-content {
    padding: 0.75rem;
  }

  .sidebar {
    width: min(320px, 94vw);
    padding: 0.9rem 0.65rem 1rem;
  }

  .nav-link {
    padding: 0.6rem 0.65rem;
  }

  .dashboard-card,
  .inline-card,
  .pos-card,
  .auth-card,
  .inventory-card,
  .hero-card,
  .payment-rail-section,
  .feature-section,
  .support-section {
    padding: 0.9rem;
  }

  .brand-mark {
    align-items: flex-start;
  }

  .brand-logo {
    width: 88px;
  }

  .back-to-top {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 40px;
    height: 40px;
  }

  .hero-title,
  .section-title {
    font-size: 1.7rem;
  }

  .feature-card-grid,
  .payment-rail-grid,
  .support-grid,
  .dashboard-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-status-chip,
  .category-pill {
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 1280px) {
  .sidebar-toggle {
    display: flex;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .main-header,
  .section-header {
    padding: 1rem;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: min(260px, 85vw);
    border-right: none;
    padding: 1.5rem 1rem;
    background: var(--surface);
    box-shadow: 8px 0 30px rgba(15, 29, 56, 0.25);
    transform: translateX(-120%);
    z-index: 1100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    grid-column: 1;
    grid-row: 1;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .content-wrapper {
    padding-top: 4rem;
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  .main-header,
  .section-header,
  .main-content {
    padding: 0.9rem 0.85rem;
  }

  .sidebar {
    width: min(300px, 92vw);
    padding: 1rem 0.75rem 1.1rem;
  }
}

@media (max-width: 480px) {
  .main-header,
  .section-header,
  .main-content {
    padding: 0.75rem;
  }

  .sidebar {
    width: min(320px, 94vw);
    padding: 0.9rem 0.65rem 1rem;
  }
}

.branding-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.75rem;
  background: var(--surface-muted);
}

.branding-preview img {
  width: 120px;
  height: auto;
  border-radius: 0.8rem;
  object-fit: contain;
  border: 1px solid var(--border);
}
