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

/* ==========================================================================
   SHOPPING360 — NORMALIZED MASTER CSS
   ==========================================================================
   Canonical naming: style.css vocabulary.
   Canonical priority: style.css properties win on conflicts.
   Duplicate-purpose systems removed/merged; unique business components retained.
   ========================================================================== */

/* ==========================================================================
   GLOBAL VARIABLES & DESIGN SYSTEM (Amazon Inspired + Custom Brand Colors)
   ========================================================================== */
:root {
  --bg-header-footer: #162232;
  --color-primary-yellow: #FEC503;
  --color-primary-yellow-hover: #e0ac00;
  --color-text-white: #ffffff;
  --color-text-dark: #0F1111;
  --color-text-muted: #565959;
  --color-bg-page: #EAEDED;
  --color-card-bg: #FFFFFF;
  --color-border: #D5D9D9;
  --color-danger: #C40000;
  --color-danger-bg: #FCF4F4;
  --font-family: 'Montserrat', sans-serif;
  --transition-speed: 0.2s ease-in-out;
  --box-shadow-card: 0 2px 5px rgba(15, 17, 17, 0.15);
  --box-shadow-hover: 0 8px 18px rgba(15, 17, 17, 0.2);
  --color-surface-alt: #f1f3f5;
  --color-border-dark: #c8ced6;
  --color-text-light: #8a94a3;
  --color-success: #198754;
  --color-success-bg: #eaf7ef;
  --color-warning: #b77900;
  --color-warning-bg: #fff7df;
  --color-info: #0b6e99;
  --color-info-bg: #eaf6fb;
  --font-base-size: 14px;
  --line-height: 1.55;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --radius-sm: 6px; --radius: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-pill: 999px;
  --box-shadow-sm: 0 1px 3px rgba(22,34,50,.08);
  --box-shadow-md: 0 3px 12px rgba(22,34,50,.10);
  --box-shadow-lg: 0 10px 30px rgba(22,34,50,.14);
  --content-max: 1440px;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-page);
  color: var(--color-text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ==========================================================================
   HEADER & FOOTER STYLING
   ========================================================================== */
.app-header {
  background-color: var(--bg-header-footer);
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.cart-icon {
  width: 26px;
  height: 26px;
  fill: var(--color-text-white);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 0.5px;
}

.brand-highlight {
  color: var(--color-primary-yellow);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--color-text-white);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-icon {
  width: 26px;
  height: 26px;
}

/* Header Install Button */
.install-btn {
  background-color: var(--color-primary-yellow);
  color: var(--color-text-dark);
  border: none;
  padding: 8px 14px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.install-btn:hover {
  background-color: var(--color-primary-yellow-hover);
  transform: translateY(-1px);
}

.install-btn:active {
  transform: scale(0.96);
}

/* Footer */
.app-footer {
  background-color: var(--bg-header-footer);
  color: var(--color-text-white);
  text-align: center;
  padding: 18px 16px;
  font-size: 0.85rem;
  margin-top: auto;
  user-select: none;
}

.footer-brand {
  font-weight: 600;
}

/* ==========================================================================
   DRAWER MENU (AMAZON STYLE)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  backdrop-filter: blur(2px);
  transition: opacity var(--transition-speed);
}

.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: var(--color-card-bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}

.app-drawer.open {
  transform: translateX(0);
}

.drawer-user-header {
  background-color: var(--bg-header-footer);
  color: var(--color-text-white);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-icon {
  font-size: 1.8rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  font-size: 1rem;
}

.user-role {
  font-size: 0.75rem;
  color: var(--color-primary-yellow);
  margin-top: 2px;
}

.drawer-nav {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-speed);
}

.drawer-link:hover {
  background-color: #F3F3F3;
}

.drawer-link:active {
  transform: scale(0.98);
}

.drawer-link.active {
  border-left: 4px solid var(--color-primary-yellow);
  background-color: #FFF9E6;
}

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

/* ==========================================================================
   LAYOUT & SCREEN CONTAINERS
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 20px 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--color-text-dark);
  font-family: var(--font-family);
  font-size: var(--font-base-size);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

.screen-view {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SCREEN-1: LOGIN CARD STYLING
   ========================================================================== */
.login-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px 24px;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: var(--box-shadow-card);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

.form-group {
  margin-bottom: 18px;
  min-width: 0;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-dark);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  border: 1px solid #888C8C;
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
  min-height: 42px;
  color: var(--color-text-dark);
  background: var(--color-text-white);
}

.form-control:focus {
  border-color: #e77600;
  box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.5);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  width: 100%;
  background-color: var(--color-primary-yellow);
  color: var(--color-text-dark);
  border: 1px solid #a88734;
  border-radius: 6px;
  padding: 11px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
  transition: all var(--transition-speed);
  background: var(--bg-header-footer);
  border-color: var(--bg-header-footer);
}

.btn-primary:hover {
  background-color: var(--color-primary-yellow-hover);
  background: #22354c;
  border-color: #22354c;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Alert Styling */
.alert-box {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid transparent;
}

.alert-box.danger {
  background-color: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

/* ==========================================================================
   SCREEN-2: DASHBOARD & LISTVIEW STYLING
   ========================================================================== */
.dashboard-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Responsive Grid / ListView for Feature Modules */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Big Interactive Card */
.feature-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--box-shadow-card);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  user-select: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--color-primary-yellow);
}

.feature-card:active {
  transform: scale(0.96);
}

.feature-card-icon {
  width: 54px;
  height: 54px;
  background-color: #FFF9E6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.6rem;
  color: var(--bg-header-footer);
}

.feature-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* ==========================================================================
   FULLSCREEN SECURITY OVERLAYS
   ========================================================================== */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background-color: #162232;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.overlay-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.overlay-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.overlay-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (100% Device Fitting)
   ========================================================================== */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .login-card {
    margin: 20px auto;
    padding: 20px 16px;
  }
}
/* Login Button Spinner Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.main-content * {
  box-sizing: border-box;
}
.main-content button {
  font: inherit;
}
.main-content input {
  font: inherit;
}
.main-content select {
  font: inherit;
}
.main-content textarea {
  font: inherit;
}
.main-content img {
  display: block;
  max-width: 100%;
}
.main-content a {
  color: var(--bg-header-footer);
  text-decoration: none;
}
.main-content a:hover {
  color: #0b5e8e;
  text-decoration: underline;
}
.main-content h1 {
  margin: 0;
  color: var(--bg-header-footer);
  line-height: 1.25;
  font-weight: 700;
  font-size: 24px;
}
.main-content h2 {
  margin: 0;
  color: var(--bg-header-footer);
  line-height: 1.25;
  font-weight: 700;
  font-size: 19px;
}
.main-content h3 {
  margin: 0;
  color: var(--bg-header-footer);
  line-height: 1.25;
  font-weight: 700;
  font-size: 16px;
}
.main-content h4 {
  margin: 0;
  color: var(--bg-header-footer);
  line-height: 1.25;
  font-weight: 700;
}
.main-content p {
  margin: 0;
}
.muted {
  color: var(--color-text-muted);
}
.required {
  color: var(--color-danger);
}
.section {
  margin-bottom: var(--space-6);
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.section-title {
  font-size: 18px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-left: auto;
}
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-sm);
  padding: var(--space-4);
}
.card-hover {
  transition:
    transform var(--transition-speed),
    box-shadow var(--transition-speed),
    border-color var(--transition-speed);
}
.card-hover:hover {
  border-color: var(--color-border-dark);
  box-shadow: var(--box-shadow-md);
  transform: translateY(-1px);
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.card-title {
  font-size: 16px;
  font-weight: 700;
}
.card-body {
  min-width: 0;
}
.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 {
  grid-template-columns: 1fr;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-4 {
  grid-template-columns: 1fr;
}
.grid-auto {
  grid-template-columns: 1fr;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.stat {
  padding: var(--space-4);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-sm);
}
.stat-label {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.stat-value {
  margin-top: 6px;
  color: var(--bg-header-footer);
  font-size: 22px;
  font-weight: 700;
}
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color var(--transition-speed),
    border-color var(--transition-speed),
    color var(--transition-speed),
    box-shadow var(--transition-speed),
    transform var(--transition-speed);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 3px solid rgba(254, 197, 3, .35);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.btn-gold {
  color: var(--bg-header-footer);
  background: var(--color-primary-yellow);
  border-color: var(--color-primary-yellow);
}
.btn-gold:hover {
  background: #e6b100;
  border-color: #e6b100;
}
.btn-secondary {
  color: var(--bg-header-footer);
  background: var(--color-text-white);
  border-color: var(--color-border-dark);
}
.btn-secondary:hover {
  background: var(--color-surface-alt);
  border-color: var(--bg-header-footer);
}
.btn-danger {
  color: var(--color-text-white);
  background: var(--color-danger);
  border-color: var(--color-danger);
}
.btn-danger:hover {
  background: #bb2d3b;
  border-color: #bb2d3b;
}
.btn-success {
  color: var(--color-text-white);
  background: var(--color-success);
  border-color: var(--color-success);
}
.btn-success:hover {
  background: #146c43;
  border-color: #146c43;
}
.btn-link {
  min-height: auto;
  padding: 0;
  color: var(--bg-header-footer);
  background: transparent;
  border: 0;
}
.btn-sm {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
.btn-lg {
  min-height: 46px;
  padding: 11px 20px;
}
.btn-block {
  width: 100%;
}
.form {
  display: grid;
  gap: var(--space-4);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.form-group-full {
  grid-column: 1 / -1;
}
textarea.form-control {
  min-height: 110px;
  resize: vertical;
}
.form-control::placeholder {
  color: var(--color-text-light);
  opacity: 1;
}
.form-control:hover {
  border-color: #aab3be;
}
.form-control:disabled {
  color: var(--color-text-light);
  background: var(--color-surface-alt);
  cursor: not-allowed;
}
.form-help {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 11px;
}
.error-text {
  margin-top: 5px;
  color: var(--color-danger);
  font-size: 11px;
}
.form-group.error .form-control {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .08);
}
.form-group.success .form-control {
  border-color: var(--color-success);
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.checkbox input {
  accent-color: var(--bg-header-footer);
}
.radio input {
  accent-color: var(--bg-header-footer);
}
.search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.search .form-control {
  padding-left: 40px;
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--color-text-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--bg-header-footer);
  background: var(--color-surface-alt);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 13px;
}
.table tbody tr {
  transition: background-color var(--transition-speed);
}
.table tbody tr:hover {
  background: #fafbfc;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.list {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--color-text-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-sm);
}
.list-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.list-item:last-child {
  border-bottom: 0;
}
.list-item:hover {
  background: #fafbfc;
}
.detail-list {
  display: grid;
  gap: 0;
}
.detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
}
.detail-row:last-child {
  border-bottom: 0;
}
.detail-label {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
}
.detail-value {
  color: var(--color-text-dark);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.detail-value-strong {
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-neutral {
  color: var(--bg-header-footer);
  background: #eef1f4;
  border-color: #dfe3e8;
}
.badge-success {
  color: #12653f;
  background: var(--color-success-bg);
  border-color: #bfe6cf;
}
.badge-danger {
  color: #a51f2d;
  background: var(--color-danger-bg);
  border-color: #f4c2c8;
}
.badge-warning {
  color: #805700;
  background: var(--color-warning-bg);
  border-color: #f2dda1;
}
.badge-info {
  color: #075978;
  background: var(--color-info-bg);
  border-color: #b9dfef;
}
.badge-gold {
  color: var(--bg-header-footer);
  background: var(--color-primary-yellow);
  border-color: #e4b000;
}
.alert-content {
  min-width: 0;
  flex: 1;
}
.alert-title {
  margin-bottom: 2px;
  font-weight: 700;
}
.alert-box.success {
  color: #12653f;
  background: var(--color-success-bg);
  border-color: #bfe6cf;
}
.alert-box.warning {
  color: #805700;
  background: var(--color-warning-bg);
  border-color: #f2dda1;
}
.alert-box.info {
  color: #075978;
  background: var(--color-info-bg);
  border-color: #b9dfef;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.page-btn {
  min-width: 38px;
  min-height: 36px;
  padding: 7px 11px;
  color: var(--bg-header-footer);
  background: var(--color-text-white);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-speed);
}
.page-btn:hover {
  border-color: var(--bg-header-footer);
  background: var(--color-surface-alt);
}
.page-btn.active {
  color: var(--color-text-white);
  background: var(--bg-header-footer);
  border-color: var(--bg-header-footer);
}
.page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(10, 18, 28, .58);
}
.modal.open {
  display: flex;
}
.modal-dialog {
  width: min(100%, 620px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--color-text-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--box-shadow-lg);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.modal-title {
  font-size: 17px;
}
.modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}
.modal-close:hover {
  color: var(--bg-header-footer);
  background: var(--color-surface-alt);
}
.modal-body {
  padding: var(--space-5);
}
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
}
.danger-zone {
  padding: var(--space-4);
  background: var(--color-danger-bg);
  border: 1px solid #f4c2c8;
  border-radius: var(--radius);
}
.danger-zone h2 {
  color: #a51f2d;
}
.danger-zone h3 {
  color: #a51f2d;
}
.warning-zone {
  padding: var(--space-4);
  background: var(--color-warning-bg);
  border: 1px solid #f2dda1;
  border-radius: var(--radius);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--color-text-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-sm);
  transition:
    transform var(--transition-speed),
    box-shadow var(--transition-speed),
    border-color var(--transition-speed);
}
.product-card:hover {
  border-color: var(--color-border-dark);
  box-shadow: var(--box-shadow-md);
  transform: translateY(-2px);
}
.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: var(--space-3);
}
.product-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--bg-header-footer);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.price {
  color: var(--bg-header-footer);
  font-size: 16px;
  font-weight: 700;
}
.gallery {
  display: grid;
  gap: var(--space-3);
}
.gallery-main {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}
.gallery-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-text-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gallery-thumb:hover {
  border-color: var(--bg-header-footer);
}
.gallery-thumb.active {
  border-color: var(--bg-header-footer);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stepper {
  display: flex;
  overflow-x: auto;
  gap: var(--space-2);
  padding-bottom: 4px;
  margin-bottom: var(--space-5);
}
.step {
  flex: 1 0 120px;
  min-width: 120px;
  padding: 10px 12px;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.step.active {
  color: var(--color-text-white);
  background: var(--bg-header-footer);
  border-color: var(--bg-header-footer);
}
.step.complete {
  color: var(--bg-header-footer);
  background: var(--color-primary-yellow);
  border-color: var(--color-primary-yellow);
}
.summary {
  overflow: hidden;
  background: var(--color-text-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-sm);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
}
.summary-row:last-child {
  border-bottom: 0;
}
.summary-row-total {
  color: var(--bg-header-footer);
  background: var(--color-surface-alt);
  font-weight: 700;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.pricing-card {
  position: relative;
  padding: var(--space-5);
  background: var(--color-text-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--box-shadow-sm);
  transition: all var(--transition-speed);
}
.pricing-card:hover {
  border-color: var(--bg-header-footer);
  box-shadow: var(--box-shadow-md);
  transform: translateY(-2px);
}
.pricing-card.selected {
  border-color: var(--bg-header-footer);
  box-shadow: var(--box-shadow-md);
  transform: translateY(-2px);
}
.pricing-card.highlighted {
  border-color: var(--color-primary-yellow);
  box-shadow: 0 0 0 2px rgba(254, 197, 3, .18);
}
.pricing-price {
  margin: 12px 0;
  color: var(--bg-header-footer);
  font-size: 28px;
  font-weight: 700;
}
.empty-state {
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
  text-align: center;
  border: 1px dashed var(--color-border-dark);
  border-radius: var(--radius);
  background: var(--color-text-white);
}
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--color-text-muted);
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--bg-header-footer);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.w-full {
  width: 100%;
}
@media (min-width: 600px) {
  .main-content {
    padding: var(--space-5);
  }

  .dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .detail-row {
    grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4);
  }

  .list-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .main-content {
    padding: var(--space-6);
  }

  .page-title {
    font-size: 28px;
  }

  .main-content h1 {
    font-size: 28px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    align-items: start;
  }
}
@media (min-width: 1200px) {
  .main-content {
    padding: var(--space-7);
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .main-content * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .main-content *::before {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .main-content *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.agreement-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.agreement-consent label:first-of-type {
  margin-top: 0;
}

.agreement-consent h2 {
  margin-bottom: 8px;
}

.agreement-consent > p {
  margin-bottom: 16px;
}

.agreement-consent label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.agreement-consent label:first-of-type {
  margin-top: 0;
}

.application-form-card .page-title {
  margin-bottom: 8px;
}