* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  text-decoration: none;
}

main {
  width: 100%;
  min-height: 100vh;
}

/* TOP BAR */
.topbar {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar h1 {
  font-size: 28px;
  color: #0f172a;
}

.topbar p {
  margin-top: 3px;
  font-size: 12px;
  color: #64748b;
}

.loginButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  background: #0f172a;
  color: white;
  font-weight: 700;
}

/* HERO */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 70px;
  text-align: center;
  background:
    radial-gradient(circle at top, #dcfce7 0%, transparent 34%),
    #f7f9fc;
}

.heroContent {
  width: 100%;
  max-width: 900px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 24px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
}

.hero h2 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -4px;
  color: #0f172a;
}

.hero p {
  max-width: 700px;
  margin: 26px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #64748b;
}

.heroButtons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.primaryButton,
.secondaryButton {
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.primaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: white;
  border: none;
}

.primaryButton:hover {
  background: #15803d;
}

.secondaryButton {
  background: white;
  color: #0f172a;
  border-color: #dbe2ea;
}

/* FEATURES */
.features {
  padding: 90px 7%;
  background: white;
}

.sectionTitle {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.sectionTitle p,
.pricingLabel {
  margin-bottom: 10px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.sectionTitle h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: #0f172a;
}

.featureGrid {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.featureCard {
  padding: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #f0fdf4;
  font-size: 24px;
}

.featureCard h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #0f172a;
}

.featureCard p {
  color: #64748b;
  line-height: 1.65;
}

/* PRICING */
.pricing {
  padding: 90px 20px;
  text-align: center;
  background: #f8fafc;
}

.pricing > h2 {
  margin-bottom: 36px;
  font-size: clamp(30px, 4vw, 44px);
}

.priceCard {
  max-width: 430px;
  margin: auto;
  padding: 38px;
  border: 1px solid #dcfce7;
  border-radius: 22px;
  background: white;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
}

.priceCard h3 {
  font-size: 22px;
}

.price {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  margin: 25px 0 15px;
}

.price strong {
  font-size: 58px;
  line-height: 1;
  color: #16a34a;
}

.price span {
  padding-bottom: 8px;
  color: #64748b;
}

.priceCard > p {
  margin-bottom: 25px;
  color: #64748b;
}

.priceCard .primaryButton {
  width: 100%;
}

/* FOOTER */
footer {
  padding: 45px 7%;
  text-align: center;
  background: #0f172a;
  color: white;
}

footer strong {
  font-size: 25px;
}

footer p {
  margin: 10px 0 22px;
  color: #94a3b8;
}

footer span {
  color: #64748b;
  font-size: 13px;
}

/* TABLET */
@media (max-width: 900px) {
  .featureGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h2 {
    letter-spacing: -3px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .topbar {
    padding: 16px 18px;
  }

  .topbar h1 {
    font-size: 25px;
  }

  .topbar p {
    display: none;
  }

  .loginButton {
    padding: 10px 16px;
  }

  .hero {
    min-height: auto;
    padding: 70px 18px;
  }

  .hero h2 {
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 16px;
  }

  .heroButtons {
    flex-direction: column;
    align-items: center;
  }

  .primaryButton,
  .secondaryButton {
    width: 100%;
    max-width: 320px;
  }

  .features {
    padding: 65px 18px;
  }

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

  .featureCard {
    padding: 24px;
  }

  .pricing {
    padding: 70px 18px;
  }

  .priceCard {
    padding: 28px 22px;
  }

  }
/* AUTH PAGES - LOGIN & REGISTER */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f8fafc;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.auth-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #16a34a;
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
}

.auth-card h1 {
  font-size: 32px;
  margin-bottom: 5px;
  color: #0f172a;
}

.auth-subtitle {
  color: #64748b;
  margin-bottom: 32px;
}

.auth-card h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: #0f172a;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-top: 5px;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  outline: none;
}

.auth-card input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.auth-card form button {
  min-height: 50px;
  margin-top: 14px;
  border: none;
  border-radius: 10px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.auth-card form button:hover {
  background: #15803d;
}

.auth-card form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-message {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 14px;
}

.auth-footer {
  margin-top: 25px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.auth-footer a {
  color: #16a34a;
  font-weight: 700;
  margin-left: 5px;
}

@media (max-width: 600px) {
  .auth-page {
    padding: 24px 16px;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-card h1 {
    font-size: 28px;
  }
}


/* ===== MAMUL DASHBOARD ===== */

.dashboard-page {
  min-height: 100vh;
  background: #f6f8fb;
  padding: 50px 24px;
  font-family: Arial, Helvetica, sans-serif;
}

.dashboard-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.dashboard-label,
.dashboard-section-title > p {
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.dashboard-header h1 {
  font-size: 42px;
  color: #0f172a;
  letter-spacing: -1px;
}

.dashboard-subtitle {
  margin-top: 10px;
  color: #64748b;
  font-size: 18px;
}

.dashboard-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 40px 0;
}

.dashboard-section-title {
  margin-bottom: 24px;
}

.dashboard-section-title h2 {
  font-size: 28px;
  color: #0f172a;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.dashboard-icon {
  font-size: 28px;
  margin-bottom: 18px;
}

.dashboard-card h3 {
  font-size: 17px;
  color: #475569;
  margin-bottom: 12px;
}

.dashboard-card strong {
  display: block;
  color: #0f172a;
  font-size: 30px;
  margin-bottom: 7px;
}

.dashboard-card p {
  color: #94a3b8;
  font-size: 14px;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.management-card {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  transition: 0.2s ease;
}

.management-card:hover {
  transform: translateY(-2px);
  border-color: #86efac;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

.management-card > span {
  font-size: 28px;
}

.management-card h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.management-card p {
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .dashboard-page {
    padding: 30px 18px;
  }

  .dashboard-header h1 {
    font-size: 32px;
  }

  .dashboard-grid,
  .management-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   PRODUCTS & STOCK
========================= */

.products-page {
  min-height: 100vh;
  background: #f6f8fb;
  padding: 48px 24px;
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
}

.products-container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 34px;
}

.products-label {
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.products-header h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0;
}

.products-subtitle {
  margin-top: 10px;
  color: #64748b;
  font-size: 17px;
}

.products-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.products-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.products-stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.products-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  border-radius: 13px;
  font-size: 24px;
}

.products-stat-card p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 5px;
}

.products-stat-card strong {
  font-size: 25px;
  color: #0f172a;
}

.products-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.products-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.products-toolbar h2 {
  font-size: 27px;
  margin-bottom: 7px;
}

.products-toolbar > div > p:last-child {
  color: #64748b;
}

.add-product-button {
  border: 0;
  border-radius: 11px;
  background: #16a34a;
  color: #ffffff;
  padding: 13px 20px;
  min-height: 46px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.add-product-button:hover {
  background: #15803d;
}

.products-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
}

.products-search {
  width: 100%;
  max-width: 470px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  background: #f8fafc;
}

.products-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
}

.products-count {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.products-empty {
  text-align: center;
  padding: 65px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
}

.products-empty-icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.products-empty h3 {
  font-size: 22px;
  margin-bottom: 9px;
}

.products-empty p {
  max-width: 500px;
  margin: 0 auto 20px;
  color: #64748b;
  line-height: 1.6;
}

.products-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.products-table th {
  text-align: left;
  padding: 14px 12px;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
}

.products-table td {
  padding: 17px 12px;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
}

.product-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-small-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  border-radius: 9px;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stock-good {
  background: #dcfce7;
  color: #15803d;
}

.stock-low {
  background: #fef3c7;
  color: #b45309;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-edit,
.product-delete {
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 700;
  cursor: pointer;
}

.product-edit {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.product-delete {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* PRODUCT MODAL */

.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
}

.product-modal {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.product-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.product-modal-header h2 {
  font-size: 27px;
}

.product-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 25px;
  cursor: pointer;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.product-form > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-form-full {
  grid-column: 1 / -1;
}

.product-form label {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.product-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
}

.product-form input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.product-form-actions {
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end;
  gap: 12px !important;
  margin-top: 8px;
}

.product-cancel-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

/* PRODUCTS TABLET */

@media (max-width: 900px) {
  .products-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PRODUCTS MOBILE */

@media (max-width: 600px) {
  .products-page {
    padding: 30px 18px;
  }

  .products-header {
    flex-direction: column;
  }

  .products-header h1 {
    font-size: 32px;
  }

  .products-summary {
    grid-template-columns: 1fr;
  }

  .products-content {
    padding: 20px;
  }

  .products-toolbar {
    flex-direction: column;
  }

  .add-product-button {
    width: 100%;
  }

  .products-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .products-search {
    max-width: none;
  }

  .product-form {
    grid-template-columns: 1fr;
  }

  .product-form-full,
  .product-form-actions {
    grid-column: auto;
  }

  .product-modal {
    padding: 22px 18px;
  }
}
