/* Custom Enhancements & PHP Studio Components Styling */

/* Smooth scroll margin for anchors below fixed header */
#carton-configurator,
#sheet-configurator,
#seller-form,
#inquiry-form,
.product-config-section {
  scroll-margin-top: 100px;
}

/* Typography refinement */
h1,
h2,
h3,
h4,
h5,
h6,
.inquiry-header h2,
.carton-config-header h2 {
  font-family: var(--font-primary);
}

/* Match the homepage hero lettering to the referenced section heading. */
.hero-content h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* DB Test Studio Styles */
.db-studio-page {
  padding-top: 130px;
  min-height: 85vh;
  background: #061e16;
  color: #e5f0ec;
}

.db-studio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.db-studio-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.db-studio-header h1 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 36px);
  margin-top: 6px;
}

.db-card {
  background: #092c21;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.status-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #093326 0%, #062219 100%);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-hero-card.is-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #381212 0%, #1f0b0b 100%);
}

.status-indicator-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e;
  flex-shrink: 0;
}

.status-hero-card.is-error .status-indicator-dot {
  background: #ef4444;
  box-shadow: 0 0 16px #ef4444;
}

.status-metric-latency {
  margin-left: auto;
  text-align: right;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
}

.status-metric-latency small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.db-info-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .db-info-split-grid {
    grid-template-columns: 1fr;
  }
}

.db-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.db-card-header h3 {
  color: #fff;
  font-size: 18px;
}

.db-info-table {
  width: 100%;
  border-collapse: collapse;
}

.db-info-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.db-info-table td:first-child {
  color: rgba(255, 255, 255, 0.7);
  width: 40%;
}

.db-info-table td strong {
  color: var(--gold-light);
}

.db-tables-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.db-table-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.tbl-name {
  color: #fff;
  flex: 1;
}

.tbl-type {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.tbl-query-btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.query-preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.query-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5f0ec;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.query-chip:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.sql-textarea {
  width: 100%;
  background: #03140e;
  color: #7dd3fc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.sql-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.query-result-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.query-result-table-scroll {
  max-height: 380px;
  overflow: auto;
  background: #03140e;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sql-out-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sql-out-table th {
  background: #072a1e;
  color: var(--gold-light);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
}

.sql-out-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

/* Nav Link Special */
.db-nav-link {
  color: var(--gold-light) !important;
  font-weight: 700 !important;
  background: rgba(201, 168, 115, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 115, 0.4);
}

.db-nav-link:hover,
.db-nav-link.active {
  background: var(--gold) !important;
  color: #000 !important;
}

.form-notice-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #86efac;
  padding: 14px;
  border-radius: 8px;
  font-weight: 500;
}

/* Product Cards: Clean Proportions & Equal Height */
.featured-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.featured-products .reveal {
  display: flex;
  height: 100%;
  width: 100%;
}

.product-card {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(5, 39, 29, 0.1);
}

.product-card-image {
  position: relative;
  width: 100%;
  height: 230px !important;
  /* Perfectly fitted height */
  overflow: hidden;
  background: #0f1c16;
  flex-shrink: 0;
}

.product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  flex: 1;
  min-height: 0 !important;
  padding: 22px 24px 26px !important;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  background: #ffffff;
}

.product-index {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding-top: 2px;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.product-en {
  color: var(--green-800) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-card-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.product-arrow {
  font-size: 16px;
  color: var(--green-900);
  transition: transform 0.2s ease, color 0.2s ease;
  padding-top: 2px;
}

.product-card:hover .product-arrow {
  transform: translateX(4px);
  color: var(--gold);
}

@media (max-width: 900px) {
  .featured-products {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card-image {
    height: 240px !important;
  }
}

/* Sustainability Feature: Balanced & Fitted Height */
.sustainability-feature {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  min-height: auto !important;
  height: 520px !important;
  background: var(--green-950) !important;
  overflow: hidden !important;
}

.sustainability-image-wrap {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.sustainability-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.sustainability-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.sustainability-copy {
  padding: 40px clamp(30px, 5vw, 70px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  background: #05261b !important;
  height: 100% !important;
}

.sustainability-copy .reveal {
  max-width: 540px;
  width: 100%;
}

.sustainability-copy h2 {
  font-size: clamp(24px, 2.5vw, 36px) !important;
  line-height: 1.3 !important;
  margin: 10px 0 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

.sustainability-copy p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-bottom: 22px !important;
}

.sustainability-points {
  margin: 22px 0 28px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
  color: var(--gold-light) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.sustainability-points span {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(201, 168, 115, 0.3) !important;
}

@media (max-width: 900px) {
  .sustainability-feature {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .sustainability-image-wrap,
  .sustainability-image {
    height: 300px !important;
  }

  .sustainability-copy {
    padding: 40px 24px !important;
  }
}

/* About Us Page: Balanced & Fitted Layout */
.page-hero {
  position: relative;
  min-height: 480px !important;
  display: flex !important;
  align-items: flex-end !important;
  color: white;
  background: var(--green-950);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px !important;
  padding-bottom: 65px !important;
  max-width: 960px;
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 54px) !important;
  line-height: 1.25 !important;
  margin-bottom: 16px !important;
  font-weight: 600 !important;
  color: #ffffff;
}

.page-hero-content>p:last-child {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 860px;
}

.split-story {
  display: grid !important;
  grid-template-columns: 1.25fr 1fr !important;
  gap: 50px !important;
  align-items: center !important;
}

.story-image {
  position: relative;
  width: 100%;
  height: 420px !important;
  /* Balanced fitted height */
  overflow: hidden;
  border-radius: 6px;
  background: #0f1c16;
  box-shadow: 0 16px 40px rgba(5, 39, 29, 0.08);
}

.story-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Value Grid: Equal Height & Clean Spacing */
.value-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  margin-top: 40px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.value-grid .reveal {
  display: flex;
  height: 100%;
  width: 100%;
}

.value-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  height: 100%;
  min-height: 220px !important;
  padding: 30px 24px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: transparent;
}

.value-grid .reveal:last-child .value-card {
  border-right: none !important;
}

.value-card>span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.value-card h3 {
  margin: 0 0 10px !important;
  font-size: 24px !important;
  font-weight: 600;
  color: #ffffff;
}

.value-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* Manufacturing Process: 2-Column Clean Grid */
.about-process {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  margin-top: 40px !important;
  border-bottom: 1px solid var(--line);
}

.about-process article {
  padding: 26px 32px !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 20px !important;
  border-top: 1px solid var(--line) !important;
  align-items: start;
}

.about-process article:nth-child(odd) {
  border-right: 1px solid var(--line) !important;
}

.about-process span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding-top: 2px;
}

.about-process h3 {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  font-weight: 600;
  color: var(--ink);
}

.about-process p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .split-story {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .story-image {
    height: 300px !important;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .about-process {
    grid-template-columns: 1fr !important;
  }

  .about-process article:nth-child(odd) {
    border-right: none !important;
  }
}

@media (max-width: 600px) {
  .value-grid {
    grid-template-columns: 1fr !important;
  }

  .value-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

/* Product Catalogue Page: Clean Fitted Layout & Alternating Cards */
.product-catalogue {
  background: var(--paper);
  padding: 60px 0 90px;
}

.product-catalogue-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.catalogue-row {
  scroll-margin-top: 100px;
  min-height: 440px;
  display: grid !important;
  grid-template-columns: 1fr 1.15fr !important;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(5, 39, 29, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogue-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(5, 39, 29, 0.08);
}

.catalogue-row.is-reversed {
  grid-template-columns: 1.15fr 1fr !important;
}

.catalogue-row.is-reversed .catalogue-image-link {
  order: 2;
}

.catalogue-row.is-reversed .catalogue-copy {
  order: 1;
}

.catalogue-image-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  background: #0f1c16;
  text-decoration: none;
}

.catalogue-image {
  width: 100%;
  height: 100% !important;
  min-height: 100% !important;
  position: relative;
  overflow: hidden;
}

.catalogue-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalogue-image-link:hover .catalogue-image img {
  transform: scale(1.06);
}

.image-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 39, 29, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-hover-overlay span {
  background: #ffffff;
  color: var(--green-950);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.catalogue-image-link:hover .image-hover-overlay {
  opacity: 1;
}

.catalogue-image-link:hover .image-hover-overlay span {
  transform: translateY(0);
}

.catalogue-copy {
  position: relative;
  padding: 40px 48px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  background: #ffffff;
}

.catalogue-index {
  position: absolute;
  top: 32px;
  right: 40px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.catalogue-title-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.catalogue-title-link:hover {
  color: var(--green-800);
}

.catalogue-copy h2 {
  font-size: clamp(24px, 2.5vw, 34px) !important;
  font-weight: 600;
  margin: 4px 0 10px;
  line-height: 1.3;
}

.catalogue-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 580px;
}

.catalogue-specs-list {
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100%;
}

.catalogue-specs-list li {
  padding: 7px 0 7px 20px !important;
  position: relative !important;
  font-size: 13px !important;
  color: var(--ink);
  border-bottom: 1px solid var(--line) !important;
}

.catalogue-specs-list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 15px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--gold) !important;
}

.catalogue-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

@media (max-width: 900px) {

  .catalogue-row,
  .catalogue-row.is-reversed {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .catalogue-row.is-reversed .catalogue-image-link {
    order: 1;
  }

  .catalogue-row.is-reversed .catalogue-copy {
    order: 2;
  }

  .catalogue-image-link {
    height: 280px !important;
    min-height: 280px !important;
  }

  .catalogue-copy {
    padding: 32px 24px !important;
  }
}

/* ==========================================================================
   PRODUCT DETAIL HERO & RELATED PRODUCTS
   ========================================================================== */
.product-hero-media {
  position: relative;
  width: 100%;
}

.product-detail-hero-img {
  position: relative !important;
  width: 100% !important;
  height: 420px !important;
  /* Clean fitted height */
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #0f1c16 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.product-detail-hero-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.other-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.other-product-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.other-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(5, 39, 29, 0.08);
}

.other-product-image {
  position: relative !important;
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  background: #0f1c16 !important;
  flex-shrink: 0 !important;
}

.other-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.other-product-card:hover .other-product-image img {
  transform: scale(1.06);
}

.other-product-copy {
  flex: 1 !important;
  padding: 22px 24px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ==========================================================================
   SUSTAINABILITY: IMPACT & PILLARS
   ========================================================================== */
.impact-section {
  min-height: auto !important;
  height: 500px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  color: white !important;
  background: var(--green-950) !important;
  overflow: hidden !important;
}

.impact-image {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #0f1c16 !important;
}

.impact-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.impact-copy {
  padding: 40px clamp(30px, 5vw, 70px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: #05261b !important;
  height: 100% !important;
}

.impact-copy h2 {
  font-size: clamp(26px, 3vw, 42px) !important;
  line-height: 1.3 !important;
  margin: 8px 0 16px !important;
  color: #ffffff !important;
}

.impact-copy p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.pillar-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.pillar-grid .reveal {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
}

.pillar-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  padding: 28px 24px !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}

.pillar-card>span {
  color: var(--gold) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}

.pillar-card h3 {
  font-size: 18px !important;
  margin: 0 0 10px !important;
  color: var(--ink) !important;
}

.pillar-card p {
  color: var(--muted) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ==========================================================================
   NEWS LISTING & CARDS
   ========================================================================== */
.news-listing,
.news-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.news-listing .reveal,
.news-grid .reveal {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
}

.news-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 20px 20px 24px !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(5, 39, 29, 0.08);
}

.news-image {
  position: relative !important;
  width: 100% !important;
  height: 210px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  margin-bottom: 18px !important;
  background: #0f1c16 !important;
  flex-shrink: 0 !important;
}

.news-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.45s ease !important;
}

.news-card:hover .news-image img {
  transform: scale(1.06);
}

.news-meta {
  margin-bottom: 10px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  color: var(--muted) !important;
  font-size: 11px !important;
}

.news-meta span {
  color: var(--green-800) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.news-card h2,
.news-card h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  line-height: 1.4 !important;
  margin: 0 0 8px !important;
}

.news-card p {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 0 18px !important;
  flex: 1 !important;
}

.news-link {
  color: var(--green-900) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  margin-top: auto !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  display: inline-block !important;
}

.news-link:hover {
  color: var(--gold) !important;
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .product-detail-hero-img {
    height: 300px !important;
  }

  .impact-section {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .impact-image {
    height: 280px !important;
  }

  .impact-copy {
    padding: 36px 24px !important;
  }

  .pillar-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .news-listing,
  .news-grid,
  .other-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   AUTHENTICATION, RBAC HEADER, DASHBOARD & AUTH MODAL STYLES
   ========================================================================== */

/* Header Auth Buttons & User Dropdown */
.header-user-desktop {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

@media screen and (min-width: 1081px) {
  .drawer-user-card {
    display: none !important;
  }
}

.nav-auth-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--gold);
  color: var(--green-950) !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
  white-space: nowrap;
}

.nav-auth-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 115, 0.35);
}

.nav-user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.user-name-text {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.site-header.is-scrolled .nav-user-btn {
  background: rgba(7, 53, 38, 0.08);
  border-color: rgba(7, 53, 38, 0.18);
  color: var(--ink);
}

.nav-user-btn:hover {
  background: rgba(201, 168, 115, 0.2);
  border-color: var(--gold);
}

.user-avatar-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  overflow: hidden;
}

.user-avatar-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-role-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-role-badge.role-admin {
  background: #ef4444;
  color: white;
}

.user-role-badge.role-salesman {
  background: #3b82f6;
  color: white;
}

.user-role-badge.role-user {
  background: #10b981;
  color: white;
}

.dropdown-caret {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #0d382b;
  border: 1px solid rgba(201, 168, 115, 0.3);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-user-dropdown:hover .nav-dropdown-menu,
.nav-user-dropdown:focus-within .nav-dropdown-menu,
.nav-user-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header-info {
  padding: 8px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.dropdown-header-info strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.dropdown-header-info small {
  font-size: 11px;
  color: var(--gold-light);
  opacity: 0.8;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #e5f0ec !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(201, 168, 115, 0.15);
  color: var(--gold-light) !important;
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171 !important;
}

/* ==========================================================================
   AUTH PAGES & AUTH MODAL
   ========================================================================== */
.auth-section {
  padding-top: 130px;
  padding-bottom: 90px;
  min-height: 85vh;
  background: linear-gradient(135deg, #05271d 0%, #0d4d38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-shell {
  max-width: 480px;
  margin: 0 auto;
}

.auth-card {
  background: rgba(10, 42, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 115, 0.3);
  border-radius: 16px;
  padding: 36px 32px;
  color: white;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.oauth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: white;
  color: #1f2937 !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.oauth-google-btn:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-divider span {
  padding: 0 12px;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-submit-btn {
  margin-top: 6px;
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-demo-box {
  margin-top: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(201, 168, 115, 0.35);
  border-radius: 8px;
  text-align: center;
}

.auth-demo-box small {
  display: block;
  color: var(--gold-light);
  font-size: 12px;
  margin-bottom: 8px;
}

.demo-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-chip:hover {
  background: var(--gold);
  color: var(--green-950);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-link {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Global Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.auth-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 39, 29, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #092c21;
  border: 1px solid rgba(201, 168, 115, 0.35);
  border-radius: 16px;
  padding: 28px 24px;
  color: white;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal.is-active .auth-modal-dialog {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-head {
  text-align: center;
  margin-bottom: 18px;
}

.modal-brand-badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
}

.auth-modal-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.auth-modal-head p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.auth-modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 16px;
}

.modal-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab-btn.active {
  background: var(--gold);
  color: var(--green-950);
}

.modal-oauth-btn {
  margin-bottom: 14px;
}

.modal-demo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.modal-demo-row small {
  color: var(--gold-light);
  font-size: 11px;
}

.modal-demo-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  cursor: pointer;
}

.modal-demo-btn:hover {
  background: var(--gold);
  color: var(--green-950);
}

/* Quotation Submission Choice Modal Elements */
.auth-choice-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.auth-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 115, 0.3);
  transition: all 0.25s ease;
}

.auth-choice-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 115, 0.1);
  transform: translateY(-2px);
}

.auth-choice-card-guest {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.auth-choice-card-guest:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

.auth-choice-icon {
  font-size: 24px;
  line-height: 1;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.auth-choice-content {
  flex: 1;
}

.auth-choice-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.auth-choice-content p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin-bottom: 12px;
}

.auth-choice-action-btn {
  width: 100%;
  font-size: 13px;
  padding: 9px 14px;
  justify-content: center;
}

/* ==========================================================================
   DASHBOARD & ADMIN NEWS STYLES
   ========================================================================== */
.dashboard-section,
.admin-news-page {
  padding-top: 130px;
  padding-bottom: 90px;
  min-height: 85vh;
  background: #061e16;
  color: #e5f0ec;
}

.dash-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-user-welcome {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.dash-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dash-email-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.dash-user-welcome h1 {
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  margin-bottom: 4px;
}

.dash-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.dash-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat-card {
  background: #092c21;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-stat-icon {
  font-size: 26px;
}

.dash-stat-card small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.dash-stat-card strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
}

.dash-tabs-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.dash-tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.dash-panel {
  background: #092c21;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.dash-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.dash-panel-header h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
}

.dash-panel-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

.dash-search-input {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  min-width: 240px;
}

.table-responsive {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.dash-table th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.quote-num-text {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 14px;
}

.badge-type {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-top: 2px;
}

.contact-quick-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
  font-size: 12px;
}

.contact-quick-links a {
  color: var(--gold-light);
  text-decoration: underline;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact-quick-links a:hover {
  color: #fff;
}

.qty-pill {
  font-size: 13px;
  color: #fff;
  display: block;
}

.btn-link-spec {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

.btn-link-spec:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.dash-stats-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dash-stat-card-highlight {
  border-color: rgba(234, 179, 8, 0.4);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), #092c21);
}

.dash-status-select {
  padding: 8px 14px;
  background: #ffffff !important;
  border: 1.5px solid var(--gold) !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.dash-status-select option {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-reviewing {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.status-needs-revision {
  background: rgba(249, 115, 22, 0.25);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.5);
  font-weight: 700;
}

.status-pending-approval {
  background: rgba(234, 179, 8, 0.22);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.5);
  font-weight: 700;
}

.status-quoted {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-completed {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.admin-feedback-box {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.admin-feedback-alert {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(234, 179, 8, 0.12));
  border: 1px solid rgba(249, 115, 22, 0.45);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.admin-feedback-pending {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-feedback-approved {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-feedback-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fdba74;
  margin-bottom: 2px;
}

.admin-feedback-pending .admin-feedback-header {
  color: #93c5fd;
}

.admin-feedback-approved .admin-feedback-header {
  color: #6ee7b7;
}

.admin-feedback-body {
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  word-break: break-word;
}

.modal-admin-revision-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 179, 8, 0.15));
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 8px;
  padding: 12px 14px;
}

.btn-action-reject {
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-reject:hover {
  background: #ef4444;
  color: #fff;
}

.btn-action-urgent {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 179, 8, 0.3)) !important;
  border-color: #f97316 !important;
  color: #fef08a !important;
  font-weight: 700 !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.35);
}

.btn-action-urgent:hover {
  background: #f97316 !important;
  color: #000 !important;
}

.badge-pending-approval-sub {
  display: inline-block;
  font-size: 10.5px;
  color: #fde047;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

.badge-approved-sub {
  display: inline-block;
  font-size: 10.5px;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

.modal-approval-alert {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.btn-action-approve {
  padding: 6px 12px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #05271d;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3);
  transition: all 0.15s ease;
}

.btn-action-approve:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.45);
}

.price-text {
  font-size: 15px;
  color: #34d399;
  font-weight: 700;
}

.sales-note-preview {
  color: var(--gold-light);
  cursor: help;
  font-size: 11px;
}

.action-btn-group {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.btn-action-reorder {
  padding: 6px 12px;
  background: var(--gold);
  color: var(--green-950);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-action-reorder:hover {
  transform: translateY(-1px);
}

.btn-action-view {
  padding: 7px 12px;
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid #10b981;
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-action-view:hover {
  background: #10b981;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-action-edit {
  padding: 7px 12px;
  background: rgba(201, 168, 115, 0.18);
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-action-edit:hover {
  background: var(--gold);
  color: #05271d !important;
  text-shadow: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 115, 0.35);
}

.btn-action-contact {
  padding: 7px 12px;
  background: var(--gold);
  border: 1.5px solid var(--gold-light);
  border-radius: 6px;
  color: #05271d !important;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-contact:hover {
  background: #ffffff;
  color: #05271d !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.btn-action-delete {
  padding: 6px 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-delete:hover {
  background: #ef4444;
  color: white;
}

.btn-action-delete.is-disabled,
.btn-action-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  background: rgba(148, 163, 184, 0.1) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #94a3b8 !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-action-edit-user {
  padding: 5px 10px;
  background: rgba(201, 168, 115, 0.15);
  border: 1px solid rgba(201, 168, 115, 0.35);
  border-radius: 6px;
  color: var(--gold, #c9a873);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-edit-user:hover {
  background: var(--gold, #c9a873);
  color: #0c1017;
  transform: translateY(-1px);
}

.role-select {
  padding: 6px 10px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--gold) !important;
  border-radius: 6px !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.role-select option {
  color: #0f172a !important;
  background-color: #ffffff !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
}

.oauth-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

/* Modals */
.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.dash-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.dash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 39, 29, 0.85);
  backdrop-filter: blur(8px);
}

.dash-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: #092c21;
  border: 1px solid rgba(201, 168, 115, 0.35);
  border-radius: 16px;
  padding: 28px;
  color: white;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Form Controls inside Dashboard & Modals */
.dash-modal-dialog select,
.dash-modal-dialog select.inquiry-select,
.dash-panel select.inquiry-select,
.dash-status-select,
.inquiry-select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid var(--gold) !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

select option,
.dash-modal-dialog select option,
.inquiry-select option,
.dash-status-select option {
  color: #0f172a !important;
  background-color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
}

.dash-modal-dialog input,
.dash-modal-dialog textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid rgba(201, 168, 115, 0.4) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
}

.dash-modal-dialog input:focus,
.dash-modal-dialog textarea:focus,
.dash-modal-dialog select:focus,
.dash-status-select:focus,
.role-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 115, 0.35) !important;
  outline: none !important;
}

.dash-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13.5px;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px;
  border-radius: 8px;
}

.quote-note-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 4px;
}

.sales-note-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #6ee7b7;
  margin-top: 4px;
}

.specs-json-pre {
  background: #051a13;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #a7f3d0;
  max-height: 200px;
  overflow-y: auto;
}

.news-thumb-wrap {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: #051a13;
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-image-upload-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.image-upload-flex {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.image-preview-slot {
  width: 110px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  background: #051a13;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.image-preview-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Customer Inquiries & Contact Messages Section */
.dash-tab-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.contact-subject-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(201, 168, 115, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 115, 0.3);
}

.contact-msg-snippet {
  max-width: 260px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.status-badge.status-unread {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-badge.status-read {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-badge.status-contacted {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-badge.status-closed {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.contact-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.contact-detail-item strong {
  color: var(--gold);
  display: inline-block;
  margin-right: 4px;
}

.contact-message-full {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #f1f5f9;
  white-space: pre-wrap;
  margin-bottom: 16px;
}

/* ==========================================================
   Dashboard Pagination Bar & Navigation Controls
   ========================================================== */
.dash-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.pagination-info {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.pagination-info span {
  color: var(--gold-light);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--gold);
  color: #05271d;
  border-color: var(--gold);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 4px;
  align-items: center;
}

.page-num-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num-btn:hover {
  background: rgba(201, 168, 115, 0.3);
  border-color: var(--gold);
}

.page-num-btn.active {
  background: var(--gold) !important;
  color: #05271d !important;
  border-color: var(--gold) !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(201, 168, 115, 0.4);
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.page-jump-input {
  width: 54px !important;
  padding: 5px 6px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid var(--gold) !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.page-btn-go {
  padding: 6px 13px;
  background: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  color: #05271d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn-go:hover {
  background: #ffffff;
}

/* ==========================================================
   Mobile Phone Emulation Card Design (max-width: 768px)
   Transforms all Dashboard Tables into Mobile-Friendly Cards
   ========================================================== */
@media screen and (max-width: 768px) {
  .dash-pagination-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .pagination-info {
    text-align: center !important;
  }

  .pagination-controls {
    justify-content: center !important;
  }

  .pagination-jump {
    justify-content: center !important;
  }

  .dashboard-section {
    padding: 16px 10px !important;
  }

  .dash-panel {
    padding: 16px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 18px !important;
  }

  .dash-top-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .dash-top-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .dash-top-actions .button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Quick Stats Grid on Phone */
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .dash-stat-card {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    gap: 10px !important;
  }

  .dash-stat-icon {
    font-size: 22px !important;
  }

  .dash-stat-card strong {
    font-size: 19px !important;
  }

  /* Navigation Tabs on Phone */
  .dash-tabs-bar {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .dash-tab-btn {
    flex: 0 0 auto !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  /* Search & Filter Controls on Phone */
  .dash-filter-wrap {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }

  .dash-search-input,
  .dash-status-select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Table Container */
  .table-responsive {
    overflow-x: visible !important;
    width: 100% !important;
  }

  /* Transform Tables to Responsive Cards */
  .dash-table {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
  }

  .dash-table thead {
    display: none !important;
    /* Hide header row on phone */
  }

  .dash-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* Row styled as a distinct Card */
  .dash-table tr {
    display: flex;
    flex-direction: column;
    background: #06261c !important;
    border: 1.5px solid rgba(201, 168, 115, 0.35) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    gap: 9px !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
  }

  .dash-table tr.is-hidden,
  .dash-table tr[style*="display: none"],
  .dash-table tr[style*="display:none"] {
    display: none !important;
  }

  .dash-table tr:active {
    transform: scale(0.99) !important;
  }

  .dash-table tr.quote-row-urgent {
    border-color: #f97316 !important;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.15), #06261c) !important;
  }

  /* Individual Cell rows inside Card */
  .dash-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 7px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    font-size: 13.5px !important;
    color: #f1f5f9 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    text-align: right !important;
    word-break: break-word !important;
  }

  /* Data-label badge on left of cell */
  .dash-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--gold);
    font-size: 12px;
    text-align: left;
    flex-shrink: 0;
    margin-right: 12px;
    display: inline-block;
  }

  /* First cell (Header of card: Ref number & type) */
  .dash-table td:first-child {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1.5px solid rgba(201, 168, 115, 0.25) !important;
    font-size: 15px !important;
  }

  /* Action buttons cell (Footer of card) */
  .dash-table td:last-child {
    border-bottom: none !important;
    padding-top: 12px !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .dash-table td:last-child[data-label]::before {
    display: none !important;
  }

  .dash-table td:last-child .action-btn-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: stretch !important;
  }

  .dash-table td:last-child .action-btn-group button,
  .dash-table td:last-child .action-btn-group .btn-action-view,
  .dash-table td:last-child .action-btn-group .btn-action-reorder,
  .dash-table td:last-child .action-btn-group .btn-action-edit,
  .dash-table td:last-child .action-btn-group .btn-action-approve,
  .dash-table td:last-child .action-btn-group .btn-action-reject,
  .dash-table td:last-child .action-btn-group .btn-action-delete,
  .dash-table td:last-child .btn-action-contact,
  .dash-table td:last-child .btn-action-delete {
    flex: 1 1 auto !important;
    padding: 11px 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  /* Inside Card content adjustments */
  .contact-quick-links {
    text-align: right !important;
    align-items: flex-end !important;
    font-size: 12.5px !important;
  }

  .contact-msg-snippet {
    max-width: 100% !important;
    text-align: right !important;
    -webkit-line-clamp: 3 !important;
  }

  .role-select {
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    text-align: left !important;
  }

  .news-thumb-wrap {
    width: 100% !important;
    height: 140px !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
  }

  .admin-feedback-box {
    text-align: left !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  /* Modals on Phone */
  .dash-modal-dialog {
    max-width: 95vw !important;
    padding: 20px 16px !important;
    border-radius: 14px !important;
    margin: 10px !important;
  }

  .spec-grid-2,
  .contact-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* ==========================================================
   Comprehensive Tablet & Phone Responsive System
   Supports: iPads, Galaxy Tabs, Surface, iPhone, Android
   ========================================================== */

/* 1. Global Viewport & Touch Safety */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
  box-sizing: border-box;
}

/* Prevent iOS Safari input auto-zoom on mobile */
@media screen and (max-width: 768px) {

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* 2. Tablet Responsive Breakpoint (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .section {
    padding: 70px 0 !important;
  }

  .section-shell {
    width: min(calc(100% - 40px), 960px) !important;
  }

  /* 2-Column Grid on Tablets */
  .featured-products,
  .news-listing,
  .impact-grid,
  .cert-grid,
  .waste-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }

  .carton-config-layout,
  .sheet-config-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .viewer-canvas-wrap {
    height: 400px !important;
  }

  .product-card-image {
    height: 220px !important;
  }

  .sustainability-feature {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .sustainability-image-wrap,
  .sustainability-image {
    height: 340px !important;
  }

  .sustainability-copy {
    padding: 40px 30px !important;
  }
}

/* 3. Responsive Header & Dynamic Navbar Adaptations */

/* Desktop Laptop Fluid Scaling (1081px to 1380px) */
@media screen and (min-width: 1081px) and (max-width: 1380px) {
  .brand-cert,
  .brand-divider {
    display: none !important;
  }
  .brand-mark img {
    height: 44px !important;
  }
}

@media screen and (min-width: 1081px) and (max-width: 1260px) {
  .brand-copy small {
    display: none !important;
  }
  .brand-copy strong {
    font-size: 14.5px !important;
  }
  .main-nav {
    gap: 8px !important;
  }
  .main-nav > a {
    font-size: 13.5px !important;
  }
  .main-nav .db-nav-link {
    display: none !important; /* Accessible inside User Dropdown */
  }
  .user-name-text {
    display: none !important; /* Shows compact [ Avatar | ADMIN ▼ ] */
  }
  .nav-user-btn {
    padding: 4px 8px 4px 5px !important;
    gap: 5px !important;
  }
}

@media screen and (min-width: 1081px) and (max-width: 1140px) {
  .main-nav > a[href*="dashboard.php"] {
    display: none !important; /* Accessible inside User Dropdown */
  }
  .main-nav {
    gap: 6px !important;
  }
  .main-nav > a {
    font-size: 13px !important;
    padding: 4px 2px !important;
  }
}

/* Tablet & Mobile Nav Drawer (<= 1080px) */
@media screen and (max-width: 1080px) {
  .brand-cert,
  .brand-divider {
    display: none !important;
  }

  .brand-copy small {
    display: none !important;
  }

  .brand-copy strong {
    font-size: 15px !important;
  }

  .brand-mark img {
    height: 42px !important;
  }

  .main-nav {
    display: flex;
    padding: calc(var(--header-height) + 16px) 24px 60px !important;
  }

  /* Hide desktop header user container on mobile/tablet */
  .header-user-desktop {
    display: none !important;
  }

  /* Dedicated User Profile Card in Mobile Drawer */
  .drawer-user-card {
    order: -1 !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 115, 0.28);
    border-radius: 14px;
    padding: 14px;
    box-sizing: border-box;
  }

  .drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .drawer-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--green-950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    border: 2px solid var(--gold);
    overflow: hidden;
    flex-shrink: 0;
  }

  .drawer-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .drawer-user-details {
    flex: 1;
    min-width: 0;
  }

  .drawer-user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }

  .drawer-user-name-row strong {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drawer-user-details small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drawer-user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .drawer-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
  }

  .drawer-action-btn:hover {
    background: rgba(201, 168, 115, 0.2);
    border-color: var(--gold);
    color: var(--gold-light);
  }

  .drawer-action-logout {
    grid-column: 1 / -1;
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
  }

  .drawer-action-logout:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
  }

  .drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gold), #b89354);
    color: var(--green-950) !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(201, 168, 115, 0.3);
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .drawer-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 115, 0.4);
  }

  /* Prevent duplicate links in drawer since they are inside the user card */
  .main-nav > a[href*="dashboard.php"],
  .desktop-dashboard-link {
    display: none !important;
  }
  .main-nav .db-nav-link {
    display: none !important;
  }
}

/* 4. Phone Screen Optimizations (<= 640px) */
@media screen and (max-width: 640px) {
  .section {
    padding: 50px 0 !important;
  }

  .section-shell {
    width: min(calc(100% - 24px), 100%) !important;
  }

  /* Form Field Rows to Single Column */
  .auth-field-row,
  .inquiry-group-row,
  .inquiry-field-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  /* 3D Viewer on Phones */
  .viewer-canvas-wrap {
    height: 300px !important;
  }

  .builder-step-section {
    padding: 18px 14px !important;
  }

  .dimension-inputs-triplet {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .step-head h3 {
    font-size: 16px !important;
  }

  .hero-slide {
    padding: 0 0 40px !important;
  }

  .hero-content h1 {
    font-size: clamp(24px, 7vw, 36px) !important;
    line-height: 1.25 !important;
  }

  .hero-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .page-hero {
    min-height: 360px !important;
  }

  .page-hero-content {
    padding-top: 110px !important;
    padding-bottom: 40px !important;
  }

  .page-hero-content h1 {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  /* Contact page Google Maps */
  .map-placeholder iframe {
    height: 320px !important;
  }
}

/* 5. Extra Small Compact Phones (<= 380px) */
@media screen and (max-width: 380px) {
  .dash-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .dash-stat-card {
    padding: 10px 12px !important;
  }

  .viewer-canvas-wrap {
    height: 250px !important;
  }

  .hud-angle-controls button {
    padding: 4px 6px !important;
    font-size: 10px !important;
  }

  .button {
    font-size: 13.5px !important;
    padding: 0 14px !important;
  }
}

/* ==========================================================
   TPM Modern Dialogs & Toast Notifications
   ========================================================== */

/* Toast Container */
.tpm-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 32px);
}

.tpm-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #05261c;
  background: linear-gradient(145deg, #073526 0%, #031e15 100%);
  border: 1.5px solid rgba(201, 168, 115, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(201, 168, 115, 0.1);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  animation: tpmToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tpm-toast.is-leaving {
  opacity: 0;
  transform: translateX(50px) scale(0.95);
}

@keyframes tpmToastIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tpm-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.tpm-toast-success .tpm-toast-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tpm-toast-error .tpm-toast-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.tpm-toast-warning .tpm-toast-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tpm-toast-info .tpm-toast-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.tpm-toast-content {
  flex: 1;
  font-weight: 500;
  color: #f8fafc;
}

.tpm-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.tpm-toast-close:hover {
  color: #ffffff;
}

.tpm-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gold);
  animation: tpmProgress linear forwards;
}

@keyframes tpmProgress {
  0% {
    width: 100%;
  }

  100% {
    width: 0%;
  }
}

/* Dialog Overlay & Modal */
body.tpm-dialog-open {
  overflow: hidden !important;
}

.tpm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(2, 20, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.tpm-dialog-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.tpm-dialog-card {
  width: min(100%, 460px);
  background: #05261c;
  background: linear-gradient(155deg, #073526 0%, #031c14 100%);
  border: 1.5px solid rgba(201, 168, 115, 0.45);
  border-radius: 20px;
  padding: 32px 28px 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(201, 168, 115, 0.15);
  text-align: center;
  transform: scale(0.9) translateY(16px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.tpm-dialog-overlay.is-open .tpm-dialog-card {
  transform: scale(1) translateY(0);
}

.tpm-dialog-icon-wrap {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.tpm-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: tpmIconPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes tpmIconPop {
  0% {
    transform: scale(0.4) rotate(-15deg);
    opacity: 0;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.tpm-icon-success {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(5, 39, 29, 0.8) 100%);
  color: #34d399;
  border: 1.5px solid rgba(52, 211, 153, 0.5);
}

.tpm-icon-error {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(5, 39, 29, 0.8) 100%);
  color: #f87171;
  border: 1.5px solid rgba(248, 113, 113, 0.5);
}

.tpm-icon-warning {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(5, 39, 29, 0.8) 100%);
  color: #fbbf24;
  border: 1.5px solid rgba(251, 191, 36, 0.5);
}

.tpm-icon-info,
.tpm-icon-question {
  background: radial-gradient(circle, rgba(201, 168, 115, 0.3) 0%, rgba(5, 39, 29, 0.8) 100%);
  color: var(--gold-light);
  border: 1.5px solid rgba(201, 168, 115, 0.5);
}

.tpm-dialog-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.tpm-dialog-message {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: break-word;
}

.tpm-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.tpm-btn {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.tpm-btn-primary {
  background: linear-gradient(135deg, #e0c99f 0%, #c9a873 100%);
  color: #05271d;
  border: 1px solid #f3e6cd;
}

.tpm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201, 168, 115, 0.45);
  background: #ffffff;
}

.tpm-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tpm-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.tpm-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid #f87171;
}

.tpm-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.45);
  background: #b91c1c;
}

@media (max-width: 480px) {
  .tpm-toast-container {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .tpm-dialog-card {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }

  .tpm-dialog-actions {
    flex-direction: column-reverse;
  }

  .tpm-btn {
    width: 100%;
    padding: 13px;
  }
}

.tpm-prompt-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  margin-top: 4px;
}

.tpm-prompt-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(201, 168, 115, 0.4);
}

/* ==========================================================
   TPM Luxury Spec Details Modal & Product Visualizer
   ========================================================== */

.spec-modal-dialog {
  max-width: 780px !important;
  width: 100% !important;
  border-radius: 20px !important;
  background: linear-gradient(155deg, #093425 0%, #031c13 100%) !important;
  border: 1.5px solid rgba(201, 168, 115, 0.45) !important;
  padding: 26px 28px !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 35px rgba(201, 168, 115, 0.15) !important;
}

.spec-modal-header-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 115, 0.25);
}

.spec-modal-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.spec-modal-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.spec-modal-dialog .dash-modal-close {
  position: static !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.spec-modal-dialog .dash-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.spec-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 115, 0.15);
  border: 1px solid rgba(201, 168, 115, 0.4);
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.spec-btn-copy:hover {
  background: var(--gold);
  color: #05271d;
  border-color: #f3e6cd;
  transform: translateY(-1px);
}

.spec-section {
  background: rgba(2, 26, 18, 0.65);
  border: 1px solid rgba(201, 168, 115, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.spec-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.spec-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.spec-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.spec-tile:hover {
  background: rgba(201, 168, 115, 0.08);
  border-color: rgba(201, 168, 115, 0.3);
}

.spec-tile-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}

.spec-tile-value {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.spec-tile-value a {
  color: var(--gold-light);
  text-decoration: none;
}

.spec-tile-value a:hover {
  text-decoration: underline;
}

/* Corrugated Recipe Highlights */
.spec-recipe-hero {
  background: linear-gradient(135deg, rgba(201, 168, 115, 0.2) 0%, rgba(5, 39, 29, 0.75) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spec-recipe-hero-code {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.spec-recipe-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-tag {
  background: rgba(5, 39, 29, 0.85);
  border: 1px solid rgba(201, 168, 115, 0.4);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Visual Layer Stack */
.layer-stack-visual {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
}

.layer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.layer-bar-liner-top,
.layer-bar-liner-bottom {
  background: rgba(212, 163, 89, 0.18);
  border-left: 4px solid #d4a359;
  border-right: 1px solid rgba(212, 163, 89, 0.3);
  color: #fef08a;
}

.layer-bar-flute {
  background: rgba(52, 211, 153, 0.15);
  border-left: 4px solid #34d399;
  border-right: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.layer-bar-liner-center {
  background: rgba(148, 163, 184, 0.18);
  border-left: 4px solid #94a3b8;
  border-right: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.layer-bar-role {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.layer-bar-spec {
  font-weight: 800;
  font-size: 14px;
}

/* Raw JSON Collapsible Toggle */
.spec-raw-toggle-btn {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(201, 168, 115, 0.35);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 10px;
}

.spec-raw-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-color: var(--gold);
}

.spec-raw-pre {
  margin-top: 8px;
  background: #02120c;
  border: 1px solid rgba(201, 168, 115, 0.25);
  border-radius: 8px;
  padding: 14px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12.5px;
  color: #86efac;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 240px;
}

@media (max-width: 640px) {
  .spec-modal-dialog {
    padding: 20px 16px !important;
  }

  .spec-modal-header-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .spec-btn-copy {
    width: 100%;
    justify-content: center;
    padding: 9px;
  }

  .spec-tiles-grid {
    grid-template-columns: 1fr;
  }

  .spec-recipe-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   SUSTAINABILITY: VIDEO SHOWCASE SECTION (PAPER BANK)
   ========================================================================== */
.video-showcase-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 40%, #edf7f1 100%);
  padding: 85px 0 95px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 56, 43, 0.07);
}

.video-showcase-header {
  max-width: 820px;
  margin: 0 auto 42px auto;
  text-align: center;
}

.video-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: pulseRadar 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRadar {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.video-section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--green-950, #00382b);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px 0;
}

.video-section-lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #4b5563;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}

/* Stage & Player Container */
.video-stage-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto 48px auto;
}

.video-stage-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.25) 0%, rgba(0, 56, 43, 0.08) 55%, transparent 75%);
  filter: blur(32px);
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
}

.video-player-container {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #041911;
  box-shadow: 
    0 24px 60px -12px rgba(0, 45, 30, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 4px 16px rgba(0, 0, 0, 0.12);
}

.video-poster-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.92);
}

.video-poster-wrap:hover .video-poster-img {
  transform: scale(1.035);
  filter: brightness(0.85);
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 20, 14, 0.45) 50%, rgba(0, 18, 12, 0.88) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transition: background 0.3s ease;
}

.video-poster-wrap:hover .video-poster-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 25, 18, 0.55) 50%, rgba(0, 20, 14, 0.92) 100%);
}

/* Center Radial Scrim to eliminate background text clutter */
.video-hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(3, 24, 17, 0.72) 0%, rgba(3, 20, 15, 0.55) 45%, rgba(2, 16, 12, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.video-poster-wrap:hover .video-hero-scrim {
  background: radial-gradient(circle at center, rgba(3, 24, 17, 0.82) 0%, rgba(3, 20, 15, 0.65) 45%, rgba(2, 16, 12, 0.94) 100%);
}

.video-play-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90%;
}

/* Play Button with Multi-Ring Halo & Specular Glass */
.video-play-btn-pro {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-ripple-wave {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
  opacity: 0;
}

.play-wave-1 {
  animation: rippleHaloPro 2.8s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
}

.play-wave-2 {
  animation: rippleHaloPro 2.8s cubic-bezier(0.1, 0.8, 0.2, 1) infinite 1.4s;
}

@keyframes rippleHaloPro {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.75);
  }
  50% {
    opacity: 0.45;
    border-color: rgba(52, 211, 153, 0.65);
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
    border-color: rgba(16, 185, 129, 0);
  }
}

.play-btn-disc {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 45%, #e2f7ed 100%);
  color: var(--green-950, #00382b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 16px 38px rgba(0, 25, 18, 0.5),
    0 0 0 6px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.95) inset;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.play-btn-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 65%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.video-poster-wrap:hover .play-btn-shimmer {
  transform: rotate(25deg) translateY(100%);
}

.play-icon-arrow {
  position: relative;
  z-index: 2;
  margin-left: 5px; /* Optical centering */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-icon-arrow svg {
  filter: drop-shadow(0 2px 4px rgba(0, 45, 30, 0.25));
}

.play-arrowhead-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(14%) sepia(51%) saturate(2200%) hue-rotate(130deg) brightness(92%) contrast(101%) drop-shadow(0 2px 4px rgba(0, 45, 30, 0.25));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.video-poster-wrap:hover .play-btn-disc {
  transform: scale(1.1);
  background: #ffffff;
  color: #059669;
  box-shadow: 
    0 22px 48px rgba(0, 35, 25, 0.6),
    0 0 0 8px rgba(16, 185, 129, 0.38),
    0 0 28px rgba(16, 185, 129, 0.45),
    0 0 0 1px #ffffff inset;
}

.video-poster-wrap:hover .play-icon-arrow {
  transform: scale(1.1);
}

.video-poster-wrap:hover .play-arrowhead-img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(85%) saturate(712%) hue-rotate(119deg) brightness(95%) contrast(92%) drop-shadow(0 3px 6px rgba(5, 150, 105, 0.35));
}

.video-poster-wrap:active .play-btn-disc {
  transform: scale(0.96);
}

/* Professional Cinema Badge */
.video-cinema-badge {
  background: rgba(4, 28, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px 28px;
  text-align: center;
  box-shadow: 
    0 16px 36px rgba(0, 20, 15, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: all 0.35s ease;
  max-width: 520px;
}

.video-poster-wrap:hover .video-cinema-badge {
  background: rgba(3, 32, 23, 0.94);
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-3px);
  box-shadow: 
    0 22px 44px rgba(0, 30, 20, 0.48),
    0 0 22px rgba(16, 185, 129, 0.2);
}

.cinema-badge-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cinema-hd-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(201, 168, 115, 0.18);
  color: #f7dfb0;
  border: 1px solid rgba(201, 168, 115, 0.4);
}

.cinema-duration-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 3px 10px;
  border-radius: 9999px;
}

.cinema-title {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cinema-subtitle {
  font-size: 0.85rem;
  color: #a7f3d0;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.video-poster-wrap:hover .cinema-subtitle {
  color: #6ee7b7;
}

.video-iframe-slot {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-iframe-slot iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  border-radius: inherit;
}

/* Highlights Grid */
.video-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 40px auto;
}

.video-highlight-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 8px 24px rgba(0, 40, 25, 0.05);
  border: 1px solid rgba(0, 56, 43, 0.08);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 45, 25, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}

.highlight-icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.video-highlight-card:hover .highlight-icon-box {
  background: #10b981;
  color: #ffffff;
}

.highlight-content h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-950, #00382b);
  line-height: 1.35;
}

.highlight-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #526071;
  line-height: 1.62;
}

/* Action & Meta Bar */
.video-action-bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 28px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 56, 43, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 6px 20px rgba(0, 40, 25, 0.04);
}

.video-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #556272;
}

.meta-divider {
  color: #cbd5e1;
}

.video-action-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-action-links .button-outline-dark {
  padding: 10px 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-action-links .button-dark {
  padding: 11px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .video-highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .video-action-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px;
  }
  .video-meta-info {
    justify-content: center;
    flex-wrap: wrap;
  }
  .video-action-links {
    flex-direction: column;
    width: 100%;
  }
  .video-action-links .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .video-showcase-section {
    padding: 55px 0 65px;
  }
  .video-player-container {
    border-radius: 16px;
  }
  .video-play-btn-pro {
    width: 78px;
    height: 78px;
  }
  .play-btn-disc {
    width: 68px;
    height: 68px;
  }
  .play-icon-arrow svg {
    width: 24px;
    height: 24px;
  }
  .video-cinema-badge {
    padding: 10px 16px;
    border-radius: 14px;
    max-width: 95%;
  }
  .cinema-title {
    font-size: 14.5px;
  }
  .cinema-subtitle {
    font-size: 0.76rem;
  }
  .video-highlight-card {
    padding: 20px 16px;
  }
}