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

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

:root {
  --bg: #080e1a;
  --accent: rgba(140,180,255,0.85);
  --text: rgba(255,255,255,0.9);
  --muted: rgba(255,255,255,0.4);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: linear-gradient(to bottom, rgba(8,14,26,0.95) 0%, transparent 100%);
}

nav .nav-logo {
  height: 24px;
  width: auto;
  display: block;
}

nav .nav-back {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}
nav .nav-back:hover { color: rgba(255,255,255,0.75); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 160px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-label::before,
.hero-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(140,180,255,0.4);
}

.hero-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: rgba(255,255,255,0.95);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Split toggle ─────────────────────────────────────── */
.split-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: none;
  border-radius: 99px;
  padding: 10px 28px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.toggle-btn.active {
  background: rgba(140,180,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(140,180,255,0.2);
}

.toggle-btn:hover:not(.active) {
  color: rgba(255,255,255,0.65);
}

/* ── Portfolio filter tabs ────────────────────────────── */
.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.portfolio-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 7px 18px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.portfolio-tab.active {
  background: rgba(140,180,255,0.12);
  color: rgba(255,255,255,0.9);
  border-color: rgba(140,180,255,0.2);
}

.portfolio-tab:hover:not(.active) {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.2);
}

/* ── Hidden state ─────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Coming soon placeholder ──────────────────────────── */
.coming-soon {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ── Gallery Grid ─────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 20px 60px; }
  .hero { padding: 120px 24px 60px; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; gap: 8px; padding: 0 16px 48px; }
}

/* ── Profile Card ─────────────────────────────────────── */
.profile-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0d1525;
  cursor: pointer;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0, 0, 1);
}

.profile-card:hover img {
  transform: scale(1.04);
}

/* Hover overlay */
.profile-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(4,8,18,0.95) 0%,
    rgba(4,8,18,0.5) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
}

.profile-card:hover .overlay {
  opacity: 1;
}

.overlay .card-category {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(140,180,255,0.8);
  margin-bottom: 6px;
}

.overlay .card-name {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.95);
  line-height: 1.2;
}

/* Always-visible bottom strip (subtle, even without hover) */
.profile-card .card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 14px;
  background: linear-gradient(to top, rgba(4,8,18,0.75) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.card-bottom .card-name-static {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Carousel Section ────────────────────────────────── */
.carousel-section {
  padding: 0 0 80px;
  overflow: hidden;
}

.carousel-section-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.carousel-section-label::before,
.carousel-section-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(140,180,255,0.4);
}

/* ── Profile Ticker ──────────────────────────────────── */
.profile-ticker {
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.profile-ticker-row {
  display: flex;
  overflow: hidden;
}

.profile-ticker-track {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.profile-ticker-track--left {
  animation: profileTickerLeft 40s linear infinite;
}

.profile-ticker-track--right {
  animation: profileTickerRight 40s linear infinite;
}

.profile-ticker-item {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.profile-ticker-item:hover {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.profile-ticker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@keyframes profileTickerLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes profileTickerRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .profile-ticker-item { width: 60px; height: 60px; }
  .profile-ticker { gap: 14px; }
}

/* 3D Carousel — all selectors prefixed with .profiles-carousel to avoid conflicts */
.profiles-carousel {
  --pc-transition-duration: 250ms;
  --pc-transition-ease: ease-out;
  --pc-bg-rgb: 8, 14, 26;
  --pc-shadow-rgb: 128, 128, 128;
  --pc-item-width: 14rem;
  --pc-item-height: 14rem;
  --pc-item-hover-effect: 1.075;
  --pc-item-reflection-blur: 0.25rem;
  --pc-item-empty-rgb: 255, 255, 255;
  --pc-item-glow-rgb: 140, 180, 255;
  --pc-item-glow-size: 4rem;
  --pc-diameter: 70rem;
  --pc-perspective: 1000px;
  --pc-perspective-origin: 50% 20%;
  --pc-control-width: 1.25rem;
  --pc-control-height: 4rem;
  --pc-control-rgb: 255, 255, 255;
  --pc-animation-duration: 40s;
  --pc-animation-play-state: running;
  --pc-direction-play-state: paused;

  --_diameter: var(--pc-diameter);
  --_radius: calc(var(--_diameter) / 2);
  --_item-width: var(--pc-item-width);
  --_item-height: var(--pc-item-height);

  perspective: var(--pc-perspective);
  perspective-origin: var(--pc-perspective-origin);
  width: var(--_diameter);
  height: var(--_diameter);
  position: relative;
}

@media (max-width: 900px) {
  .profiles-carousel {
    --_diameter: calc(var(--pc-diameter) * 0.65);
    --_item-width: calc(var(--pc-item-width) * 0.65);
    --_item-height: calc(var(--pc-item-height) * 0.65);
  }
}
@media (max-width: 540px) {
  .profiles-carousel {
    --_diameter: calc(var(--pc-diameter) * 0.45);
    --_item-width: calc(var(--pc-item-width) * 0.45);
    --_item-height: calc(var(--pc-item-height) * 0.45);
  }
}

.profiles-carousel .pc-control-btn {
  --_width: var(--pc-control-width);
  --_height: var(--pc-control-height);
  z-index: 1;
  width: var(--_width);
  height: var(--_height);
  background-color: rgb(var(--pc-control-rgb));
  opacity: 0.2;
  transition: opacity var(--pc-transition-duration) var(--pc-transition-ease);
  position: absolute;
}
.profiles-carousel .pc-control-btn:hover { opacity: 0.4; }
.profiles-carousel .pc-control-btn:has(input:checked) { opacity: 0.8; }

.profiles-carousel .pc-control-btn input {
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.profiles-carousel .pc-left {
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
  top: calc(var(--_radius) - var(--pc-control-height) / 2);
  left: 0;
}
.profiles-carousel:has(.pc-left input:checked) {
  --pc-direction-play-state: running;
}

.profiles-carousel .pc-right {
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  top: calc(var(--_radius) - var(--pc-control-height) / 2);
  right: 0;
}
.profiles-carousel:has(.pc-right input:checked) {
  --pc-direction-play-state: paused;
}

.profiles-carousel .pc-rotation-direction {
  --_z: calc(var(--_radius) * -1);
  transform: translateZ(var(--_z));
  transform-style: preserve-3d;
  animation: pc-rotation-reverse calc(var(--pc-animation-duration) / 2) reverse linear infinite var(--pc-direction-play-state);
  transition: all var(--pc-transition-duration) var(--pc-transition-ease);
}

@keyframes pc-rotation-reverse {
  from { transform: translateZ(var(--_z)) rotateY(0deg); }
  to   { transform: translateZ(var(--_z)) rotateY(360deg); }
}
@keyframes pc-rotation-normal {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.profiles-carousel .pc-item-wrapper {
  transform-style: inherit;
  width: inherit;
  height: inherit;
  list-style-type: none;
  position: relative;
  animation: pc-rotation-normal var(--pc-animation-duration) normal linear infinite var(--pc-animation-play-state);
  transition: all var(--pc-transition-duration) var(--pc-transition-ease);
}

.profiles-carousel .pc-rotation-direction:has(.pc-item:hover) {
  --pc-animation-play-state: paused;
  --pc-direction-play-state: paused;
}

.profiles-carousel .pc-item {
  --_width: var(--_item-width);
  --_height: var(--_item-height);
  --_rotation: calc(360 / var(--_num-elements) * var(--_index) * 1deg);
  left: calc(var(--_radius) - var(--_item-width) / 2);
  top: calc(var(--_radius) - var(--_item-height) / 2);
  transform: rotateY(var(--_rotation)) translateZ(var(--_radius));
  transform-style: inherit;
  width: var(--_width);
  height: var(--_height);
  transition: all var(--pc-transition-duration) var(--pc-transition-ease);
  box-shadow: 0 0 var(--pc-item-glow-size) transparent;
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
}

.profiles-carousel .pc-item:hover {
  box-shadow: 0 0 var(--pc-item-glow-size) rgba(var(--pc-item-glow-rgb), 0.6);
  transform: rotateY(var(--_rotation)) translateZ(calc(var(--_radius) * var(--pc-item-hover-effect)));
}

.profiles-carousel .pc-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -9999px;
  background-color: rgba(var(--pc-item-empty-rgb), 0.1);
  background-image: var(--_image-url);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  transition: filter var(--pc-transition-duration) var(--pc-transition-ease);
  filter: grayscale(100%);
  border-radius: 50%;
}

.profiles-carousel .pc-item:hover a {
  filter: grayscale(0%);
}

.profiles-carousel .pc-item::before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: rgba(var(--pc-item-empty-rgb), 0.05);
  background-image:
    linear-gradient(to top, rgba(var(--pc-bg-rgb), 0.4) 0%, rgba(var(--pc-bg-rgb), 1.0) 75%),
    var(--_image-url);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
  filter: blur(var(--pc-item-reflection-blur)) grayscale(100%);
  transition: filter var(--pc-transition-duration) var(--pc-transition-ease);
  transform-style: inherit;
  transform-origin: center bottom;
  transform: rotateX(90deg) rotateZ(180deg) rotateY(180deg);
  position: absolute;
  border-radius: 50%;
}

.profiles-carousel .pc-item:hover::before {
  filter: blur(var(--pc-item-reflection-blur)) grayscale(0%);
}

.profiles-carousel .pc-ground {
  --_width: var(--_diameter);
  --_height: var(--_diameter);
  left: calc(var(--_radius) - var(--_width) / 2);
  top: calc(var(--_radius) - var(--_height) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--_item-height) / -2));
  width: var(--_width);
  height: var(--_height);
  border-radius: 50%;
  background: radial-gradient(rgba(var(--pc-shadow-rgb), 0.4) 15%, rgba(var(--pc-bg-rgb), 0) 60%);
  opacity: 0.4;
  transition: opacity var(--pc-transition-duration) var(--pc-transition-ease);
  position: absolute;
}

.profiles-carousel .pc-item-wrapper:has(.pc-item:hover) .pc-ground {
  opacity: 0.65;
}

/* ── Pricing Section ─────────────────────────────────── */
.pricing-section {
  padding: 80px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pricing-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pricing-label::before,
.pricing-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(140,180,255,0.4);
}

.pricing-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.95);
  text-align: center;
  margin-bottom: 56px;
}

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

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-section { padding: 60px 20px 60px; }
}

.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover {
  border-color: rgba(140,180,255,0.25);
  transform: translateY(-4px);
}
.pricing-card--featured {
  border-color: rgba(140,180,255,0.2);
  background: rgba(140,180,255,0.05);
}

.pricing-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d1525;
}
.pricing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0, 0, 1);
}
.pricing-card:hover .pricing-img-wrap img {
  transform: scale(1.04);
}

.pricing-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(140,180,255,0.04);
  border-bottom: 1px solid rgba(140,180,255,0.08);
}
.pricing-img-placeholder span {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.pricing-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pricing-tag {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(140,180,255,0.7);
  margin-bottom: 10px;
}
.pricing-tag--highlight {
  color: rgba(140,255,200,0.8);
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.pricing-freq {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
}

.pricing-desc {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  flex: 1;
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  height: 42px;
  border-radius: 99px;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  width: 100%;
}
.pricing-cta:hover {
  border-color: rgba(140,180,255,0.5);
  color: rgba(140,180,255,0.95);
  background: rgba(140,180,255,0.07);
}
.pricing-card--featured .pricing-cta {
  border-color: rgba(140,180,255,0.3);
  color: rgba(140,180,255,0.9);
}

/* ── CTA Section ──────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 60px 40px 100px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cta-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-label {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  height: 48px;
  border-radius: 99px;
  color: rgba(255,255,255,0.75);
  padding: 0 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cta-btn:hover {
  border-color: rgba(140,180,255,0.5);
  color: rgba(140,180,255,0.95);
  background: rgba(140,180,255,0.07);
}

.cta-btn--secondary {
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.1);
}
.cta-btn--secondary:hover {
  border-color: rgba(140,180,255,0.35);
  color: rgba(140,180,255,0.75);
  background: rgba(140,180,255,0.05);
}

/* ===================================================
   TECH STACK — ARCHITECTURE DIAGRAM
   =================================================== */

.tech-section {
  padding: 4rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.tech-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}

.tech-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.tech-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 3rem;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.arch-layer {
  display: grid;
  grid-template-columns: 28px 260px 1fr;
  gap: 0 2.5rem;
  align-items: start;
  padding: 0.25rem 0 2.25rem;
  border-radius: 12px;
  transition: background 0.3s ease;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.arch-layer:last-child { padding-bottom: 0; }

.arch-layer:hover { background: rgba(var(--lc-rgb), 0.03); }

.arch-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.2rem;
}

.arch-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lc);
  box-shadow: 0 0 14px var(--lc), 0 0 28px rgba(var(--lc-rgb), 0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: archNodePulse 3s ease-in-out infinite;
}

.arch-layer:nth-child(1) .arch-node { animation-delay: 0.0s; }
.arch-layer:nth-child(2) .arch-node { animation-delay: 0.6s; }
.arch-layer:nth-child(3) .arch-node { animation-delay: 1.2s; }
.arch-layer:nth-child(4) .arch-node { animation-delay: 1.8s; }
.arch-layer:nth-child(5) .arch-node { animation-delay: 2.4s; }

@keyframes archNodePulse {
  0%, 100% { box-shadow: 0 0 12px var(--lc), 0 0 24px rgba(var(--lc-rgb), 0.2); }
  50%       { box-shadow: 0 0 20px var(--lc), 0 0 40px rgba(var(--lc-rgb), 0.4); }
}

.arch-node::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--lc-rgb), 0.35);
  animation: archRingExpand 3s ease-in-out infinite;
}

.arch-layer:nth-child(1) .arch-node::before { animation-delay: 0.0s; }
.arch-layer:nth-child(2) .arch-node::before { animation-delay: 0.6s; }
.arch-layer:nth-child(3) .arch-node::before { animation-delay: 1.2s; }
.arch-layer:nth-child(4) .arch-node::before { animation-delay: 1.8s; }
.arch-layer:nth-child(5) .arch-node::before { animation-delay: 2.4s; }

@keyframes archRingExpand {
  0%, 100% { transform: scale(1);   opacity: 0.35; }
  50%       { transform: scale(1.5); opacity: 0; }
}

.arch-connector {
  flex: 1;
  width: 1px;
  min-height: 48px;
  margin-top: 6px;
  background: linear-gradient(to bottom, rgba(var(--lc-rgb), 0.5), rgba(255,255,255,0.06) 80%, transparent);
  position: relative;
}

.arch-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--lc-rgb), 1);
  box-shadow: 0 0 6px rgba(var(--lc-rgb), 0.8);
  animation: archFlow 2s linear infinite;
}

.arch-layer:nth-child(1) .arch-connector::after { animation-delay: 0.0s; }
.arch-layer:nth-child(2) .arch-connector::after { animation-delay: 0.5s; }
.arch-layer:nth-child(3) .arch-connector::after { animation-delay: 1.0s; }
.arch-layer:nth-child(4) .arch-connector::after { animation-delay: 1.5s; }

@keyframes archFlow {
  0%   { top: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.arch-info {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-top: 0.05rem;
}

.arch-num {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--lc);
  opacity: 0.75;
  letter-spacing: 0.06em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  padding-top: 0.22rem;
  flex-shrink: 0;
}

.arch-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.arch-name {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}

.arch-desc {
  font-size: 0.73rem;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
  margin: 0;
}

.arch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
  padding-top: 0.05rem;
}

.arch-pill {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(var(--lc-rgb), 0.8);
  background: rgba(var(--lc-rgb), 0.07);
  border: 1px solid rgba(var(--lc-rgb), 0.18);
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  cursor: default;
}

.arch-pill:hover {
  background: rgba(var(--lc-rgb), 0.15);
  border-color: rgba(var(--lc-rgb), 0.38);
  color: rgba(var(--lc-rgb), 1);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .arch-layer {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1.5rem;
  }
  .arch-pills { grid-column: 2 / 3; padding-top: 0.9rem; }
}

@media (max-width: 600px) {
  .arch-layer {
    grid-template-columns: 22px 1fr;
    gap: 0 1.1rem;
    padding-bottom: 1.75rem;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .arch-node { width: 11px; height: 11px; }
  .arch-name { font-size: 0.85rem; }
  .arch-desc { font-size: 0.7rem; }
  .arch-pill { font-size: 0.65rem; padding: 0.22rem 0.55rem; }
}

/* ═══════════════════════════════════════════════════════
   SOFTWARE SHOWCASE
   ═══════════════════════════════════════════════════════ */

#gallery-software { display: block; }

.sw-section { width: 100%; }

/* ── Project header ─────────────────────────────────── */
.sw-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.sw-project-meta { flex: 1; min-width: 260px; }

.sw-project-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(139,207,183,0.75);
  margin-bottom: 12px;
}

.sw-project-name {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 12px;
  line-height: 1.1;
}

.sw-project-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 500px;
}

.sw-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  padding-top: 4px;
}

.sw-tech-tags span {
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(139,207,183,0.7);
  background: rgba(139,207,183,0.07);
  border: 1px solid rgba(139,207,183,0.18);
  border-radius: 6px;
  padding: 5px 12px;
}

/* ── Screen tabs ────────────────────────────────────── */
.sw-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 99px;
  padding: 4px;
  width: fit-content;
}

.sw-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: none;
  border-radius: 99px;
  padding: 8px 20px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.sw-tab.active {
  background: rgba(139,207,183,0.12);
  color: rgba(139,207,183,0.9);
  border: 1px solid rgba(139,207,183,0.2);
}

.sw-tab:hover:not(.active) { color: rgba(255,255,255,0.6); }

/* ── Browser mockup ─────────────────────────────────── */
.sw-browser {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  max-width: 1100px;
}

.sw-browser-chrome {
  height: 40px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.sw-dots { display: flex; gap: 6px; flex-shrink: 0; }

.sw-dot--red, .sw-dot--yellow, .sw-dot--green {
  width: 10px; height: 10px; border-radius: 50%; display: block;
}
.sw-dot--red    { background: #ff5f57; }
.sw-dot--yellow { background: #febc2e; }
.sw-dot--green  { background: #28c840; }

.sw-url-bar {
  flex: 0 1 240px;
  height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
  margin: 0 auto;
}

/* ── Viewport & screens ─────────────────────────────── */
.sw-viewport {
  height: 520px;
  position: relative;
  overflow: hidden;
  background: #f9fafb;
}

.sw-screen {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sw-screen.active { opacity: 1; z-index: 1; pointer-events: auto; }

/* ── Sidebar ────────────────────────────────────────── */
.sw-sidebar {
  width: 160px;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sw-sb-logo {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
  padding: 0 14px;
}

.sw-sb-logo-mark {
  height: 28px;
  width: 80px;
  border-radius: 6px;
  background: #8bcfb7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
}

.sw-sb-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
  overflow: hidden;
}

.sw-sb-item {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.sw-sb-item.active { background: #8bcfb7; color: white; }
.sw-sb-item svg { flex-shrink: 0; }

.sw-sb-footer {
  border-top: 1px solid #e5e7eb;
  width: 100%;
  padding: 12px 14px;
}

.sw-sb-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-sb-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}

.sw-sb-user-info { overflow: hidden; }
.sw-sb-user-name {
  font-size: 0.68rem;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-sb-user-role {
  font-size: 0.56rem;
  color: #9ca3af;
  text-transform: capitalize;
}

/* ── Dashboard main area ────────────────────────────── */
.sw-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f9fafb;
}

.sw-main-header {
  height: 56px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.sw-main-title {
  font-size: 0.88rem;
  font-weight: 400;
  color: #111827;
  letter-spacing: -0.01em;
}
.sw-main-title strong { font-weight: 600; }

.sw-main-sub {
  font-size: 0.62rem;
  color: #9ca3af;
  margin-top: 2px;
}

.sw-header-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.65rem;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  padding: 5px 12px;
}

.sw-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8bcfb7;
  box-shadow: 0 0 6px #8bcfb7;
  animation: swPulse 2s ease-in-out infinite;
}

@keyframes swPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ── Dashboard top cards ─────────────────────────────── */
.sw-stats-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
  flex-shrink: 0;
}

.sw-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 120px;
  justify-content: space-between;
}

.sw-stat-card--cta {
  background: linear-gradient(135deg, #8bcfb7, #5aab94);
  border: none;
  cursor: pointer;
}

.sw-stat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.sw-stat-icon--green  { background: rgba(139,207,183,0.15); color: #5aab94; }
.sw-stat-icon--blue   { background: rgba(96,165,250,0.12);  color: #3b82f6; }
.sw-stat-icon--purple { background: rgba(167,139,250,0.12); color: #8b5cf6; }
.sw-stat-icon--amber  { background: rgba(251,191,36,0.12);  color: #d97706; }
.sw-stat-icon--cta    { background: rgba(255,255,255,0.2);  color: white; }

.sw-stat-cta-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sw-stat-cta-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.sw-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sw-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: 2px;
}

.sw-stat-sublabel {
  font-size: 0.6rem;
  color: #9ca3af;
  margin-top: 2px;
}

.sw-stat-change {
  font-size: 0.58rem;
  font-weight: 400;
  margin-top: 4px;
}

.sw-stat-change--up   { color: #5aab94; }
.sw-stat-change--down { color: #ef4444; }

/* ── Bottom panels ──────────────────────────────────────── */
.sw-bottom-panels {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  padding: 0 20px 16px;
  overflow: hidden;
}

.sw-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Table ──────────────────────────────────────────── */
.sw-table-section {
  flex: 1;
  padding: 0 20px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sw-table-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sw-table {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.sw-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 92px;
  padding: 9px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.sw-table-head span {
  font-size: 0.58rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sw-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 92px;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

.sw-table-row:last-child { border-bottom: none; }

.sw-table-row span {
  font-size: 0.7rem;
  font-weight: 400;
  color: #374151;
}

.sw-badge {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
  width: fit-content;
}

.sw-badge--green {
  background: #dcfce7;
  color: #16a34a;
}

.sw-badge--yellow {
  background: #fef3c7;
  color: #d97706;
}

/* ── Low stock panel ─────────────────────────────────── */
.sw-low-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
}
.sw-low-stock-item:last-child { border-bottom: none; }
.sw-low-stock-name {
  font-size: 0.68rem;
  font-weight: 400;
  color: #374151;
}
.sw-low-stock-qty {
  font-size: 0.62rem;
  font-weight: 600;
  color: #ef4444;
  background: #fee2e2;
  border-radius: 99px;
  padding: 2px 8px;
}

/* ═══════════════════════════════════════════════════════
   MC (MedicurPOS) — new accurate classes
   ═══════════════════════════════════════════════════════ */

/* Sidebar logo image */
.mc-sb-logo-img {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

/* Recent transactions rows in dashboard */
.mc-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
}
.mc-tx-row:last-child { border-bottom: none; }
.mc-tx-name { font-size: 0.68rem; font-weight: 500; color: #111827; }
.mc-tx-time { font-size: 0.58rem; color: #9ca3af; margin-top: 1px; }

/* ── POS Screen (standalone, no sidebar) ── */
.mc-pos-screen {
  display: flex !important;
  flex-direction: column !important;
  background: #f9fafb;
}

/* POS Header bar */
.mc-pos-hdr {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  flex-shrink: 0;
}
.mc-pos-hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mc-pos-back {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
  cursor: pointer;
}
.mc-pos-hdr-logo { height: 22px; width: auto; }
.mc-pos-hdr-divider {
  width: 1px; height: 28px;
  background: #d1d5db;
}
.mc-pos-hdr-title { font-size: 0.78rem; font-weight: 400; color: #111827; }
.mc-pos-hdr-store { font-size: 0.6rem; color: #9ca3af; }
.mc-pos-hdr-right {
  display: flex; align-items: center; gap: 10px;
}
.mc-pos-hdr-user { font-size: 0.68rem; font-weight: 500; color: #111827; }
.mc-pos-hdr-role { font-size: 0.58rem; color: #9ca3af; }
.mc-pos-hdr-signout {
  font-size: 0.62rem; font-weight: 500;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}

/* POS Tabs */
.mc-pos-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0 16px;
  flex-shrink: 0;
}
.mc-pos-tab {
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
}
.mc-pos-tab--active {
  color: #8bcfb7;
  border-bottom: 2px solid #8bcfb7;
  margin-bottom: -1px;
}

/* POS Body: two columns */
.mc-pos-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  gap: 0;
}

/* Products column (left, ~60%) */
.mc-pos-products-col {
  flex: 3;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 10px 12px;
  overflow: hidden;
  border-right: 1px solid #e5e7eb;
}

/* Search bar in POS */
.mc-pos-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.65rem;
  color: #9ca3af;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* Category tiles grid */
.mc-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
  align-content: start;
}
.mc-cat-tile {
  border-radius: 10px;
  height: 68px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px 7px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.mc-cat-tile::before {
  content: '';
  position: absolute;
  inset-x: 0; top: 0;
  height: 20px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px 10px 0 0;
}
.mc-cat-count {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.22);
  color: white;
  font-size: 0.52rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  line-height: 1.4;
}
.mc-cat-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  line-height: 1.2;
}

/* Cart column (right, ~40%) */
.mc-pos-cart-col {
  flex: 2;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  overflow: hidden;
  gap: 8px;
}
.mc-cart-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mc-cart-sec-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.mc-member-selected {
  display: flex; align-items: center; justify-content: space-between;
  background: #f9fafb;
  border-radius: 8px;
  padding: 7px 10px;
}
.mc-member-name { font-size: 0.68rem; font-weight: 500; color: #111827; }
.mc-member-meta { font-size: 0.58rem; color: #9ca3af; margin-top: 1px; }
.mc-member-clear { font-size: 0.8rem; color: #9ca3af; cursor: pointer; }

.mc-cart-item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f3f4f6;
}
.mc-cart-item-row:last-of-type { border-bottom: none; }
.mc-cart-item-info { flex: 1; }
.mc-cart-item-name { font-size: 0.65rem; font-weight: 500; color: #111827; }
.mc-cart-item-ctrl {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px;
}
.mc-cart-item-ctrl span {
  font-size: 0.6rem; color: #6b7280;
  background: #f3f4f6;
  border-radius: 4px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mc-cart-item-ctrl span:nth-child(2) {
  background: transparent; font-weight: 600; color: #111827;
}
.mc-cart-item-price {
  font-size: 0.68rem; font-weight: 600; color: #111827;
  flex-shrink: 0;
}
.mc-cart-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.65rem; color: #6b7280;
  padding: 3px 0;
}
.mc-cart-total-row--main {
  font-size: 0.72rem; font-weight: 700; color: #111827;
  padding-top: 5px;
}
.mc-pay-methods {
  display: flex; gap: 5px;
  margin: 8px 0 6px;
}
.mc-pay-btn {
  flex: 1;
  font-size: 0.62rem; font-weight: 500;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
}
.mc-pay-btn--active {
  background: #8bcfb7;
  border-color: #8bcfb7;
  color: #ffffff;
}
.mc-process-btn {
  background: #8bcfb7;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.02em;
}

/* ── Login screen ── */
.mc-login-screen {
  display: flex !important;
  flex-direction: row !important;
}
.mc-login-left {
  width: 48%;
  background: #8bcfb7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  flex-shrink: 0;
}
.mc-login-logo { height: 52px; width: auto; margin-bottom: 18px; }
.mc-login-headline {
  font-size: 0.9rem;
  font-weight: 300;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.mc-login-divider {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}
.mc-login-desc {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.6;
}
.mc-login-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}
.mc-login-form { width: 100%; }
.mc-login-heading {
  font-size: 1.1rem;
  font-weight: 300;
  color: #111827;
  margin-bottom: 4px;
}
.mc-login-sub {
  font-size: 0.65rem;
  color: #9ca3af;
  margin-bottom: 20px;
}
.mc-login-field { margin-bottom: 14px; }
.mc-login-field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}
.mc-login-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.68rem;
  color: #374151;
  display: flex;
  align-items: center;
  background: #ffffff;
  box-sizing: border-box;
}
.mc-login-input--pass { color: #9ca3af; letter-spacing: 0.1em; }
.mc-login-btn {
  width: 100%;
  background: #8bcfb7;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 16px;
}
.mc-login-help {
  font-size: 0.6rem;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

/* ── POS screen ─────────────────────────────────────── */
.sw-pos-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sw-pos-products {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 14px 16px;
  overflow: hidden;
}

.sw-pos-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.sw-pos-search {
  flex: 1;
  height: 36px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 0.7rem;
  color: #9ca3af;
}

.sw-pos-member-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  background: rgba(139,207,183,0.1);
  border: 1px solid rgba(139,207,183,0.25);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.7rem;
  color: #8bcfb7;
  flex-shrink: 0;
}

.sw-pos-member-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8bcfb7;
}

.sw-pos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  flex: 1;
}

.sw-pos-tile {
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sw-pos-tile:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.sw-pos-tile-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.2;
}

.sw-pos-tile-price {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.02em;
}

/* ── Cart ───────────────────────────────────────────── */
.sw-cart {
  width: 230px;
  border-left: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 16px;
  flex-shrink: 0;
}

.sw-cart-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.sw-cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.sw-cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-cart-item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sw-cart-item-info { flex: 1; }

.sw-cart-item-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: #374151;
  line-height: 1;
}

.sw-cart-item-qty {
  font-size: 0.58rem;
  color: #9ca3af;
  margin-top: 2px;
}

.sw-cart-item-price {
  font-size: 0.7rem;
  font-weight: 500;
  color: #111827;
  flex-shrink: 0;
}

.sw-cart-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0;
  flex-shrink: 0;
}

.sw-cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sw-cart-total-row span {
  font-size: 0.68rem;
  font-weight: 400;
  color: #6b7280;
}

.sw-cart-total-row--disc span { color: #5aab94; font-size: 0.66rem; }
.sw-cart-total-row--main { margin-top: 4px; margin-bottom: 18px; }
.sw-cart-total-row--main span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}

.sw-cart-pay-btn {
  width: 100%;
  height: 40px;
  background: #8bcfb7;
  border: none;
  border-radius: 8px;
  color: #0d1a26;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-top: auto;
}

.sw-cart-pay-btn:hover { background: #7bc0a8; }

/* ── Login screen ───────────────────────────────────── */
.sw-login-left {
  flex: 1;
  background: linear-gradient(140deg, #8bcfb7 0%, #5aab94 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sw-login-decoration { position: absolute; inset: 0; }

.sw-login-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.sw-login-circle--1 { width: 320px; height: 320px; bottom: -110px; right: -90px; }
.sw-login-circle--2 { width: 200px; height: 200px; top: -60px; left: -50px; }
.sw-login-circle--3 { width: 100px; height: 100px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,0.05); }

.sw-login-brand {
  position: relative;
  z-index: 1;
  text-align: center;
}

.sw-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sw-login-logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.sw-login-logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
}

.sw-login-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  text-align: center;
}

.sw-login-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.sw-login-form { width: 100%; max-width: 300px; }

.sw-login-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.sw-login-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 28px;
  font-weight: 300;
}

.sw-login-field { margin-bottom: 14px; }

.sw-login-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #374151;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.sw-login-input {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.78rem;
  color: #6b7280;
  background: #f9fafb;
  display: flex;
  align-items: center;
}

.sw-login-input--pass {
  letter-spacing: 0.12em;
  color: #374151;
}

.sw-login-btn {
  width: 100%;
  height: 42px;
  background: #8bcfb7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  margin-top: 24px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.sw-login-btn:hover { background: #7bc0a8; }

/* ── Arden Risk Website Demo ────────────────────────── */
.ar-viewport .sw-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ar-viewport {
  width: 100%;
  overflow: hidden;
  background: #fff;
  background: #001F3F;
  font-family: 'Inter', sans-serif;
  position: relative;
}

/* ── Header (white frosted — same on all 3 screens) ── */
.ar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.ar-logo-img {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.ar-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ar-nav-link {
  font-size: 0.62rem;
  font-weight: 500;
  color: #4A4A4A;
  cursor: pointer;
  white-space: nowrap;
}

.ar-nav-link--active {
  color: #000;
  font-weight: 600;
}

.ar-header-cta {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: #001F3F;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Hero ── */
.ar-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  background: #0d1f2d;
}

/* Actual video background */
.ar-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay — layered to ensure text legibility at mockup scale */
.ar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* White curved bottom — matches real site hero::before */
.ar-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #fff;
  clip-path: ellipse(100% 100% at 50% 100%);
  z-index: 2;
}

.ar-hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px 8px;
  position: relative;
  z-index: 10;
}

/* Badge: frosted white, white dot with pulse */
.ar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 14px;
  width: fit-content;
}

.ar-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.ar-hero-badge span {
  font-size: 0.57rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero h1: white, very heavy */
.ar-hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9);
}

.ar-hero-sub {
  font-size: 0.67rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 380px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.ar-hero-btns {
  display: flex;
  gap: 10px;
}

/* Navy pill button */
.ar-btn-primary {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: #001F3F;
  padding: 7px 18px;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Transparent outlined button */
.ar-btn-secondary {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 7px 18px;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
}

/* Stats: dark grey card (#3A3A3A), rounded, 4 columns */
.ar-stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr) repeat(3, 12px);
  /* alternating: stat stat stat stat | divider divider divider */
  grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr;
  background: #3A3A3A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  margin: 0 20px 28px;
  padding: 14px 20px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.ar-stat {
  text-align: center;
}

.ar-stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

.ar-stat-lbl {
  font-size: 0.5rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.ar-stat-div {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: center;
  height: 28px;
  justify-self: center;
}

/* ── Services Section ── */
.ar-services-section {
  flex: 1;
  background: #F5F7FA;
  padding: 18px 20px 16px;
  overflow: hidden;
}

.ar-section-header {
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ar-section-label {
  font-size: 0.57rem;
  font-weight: 700;
  color: #001F3F;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 5px;
}

.ar-section-label--light {
  color: rgba(255,255,255,0.9);
}

.ar-section-title {
  font-size: 1.0rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* 12-column asymmetric grid — matches real site */
.ar-services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.ar-service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ar-svc--6 { grid-column: span 6; }
.ar-svc--4 { grid-column: span 4; }
.ar-svc--8 { grid-column: span 8; }
.ar-svc--7 { grid-column: span 7; }
.ar-svc--5 { grid-column: span 5; }

.ar-svc-icon {
  font-size: 1.1rem;
  color: #001F3F;
  display: block;
  margin-bottom: 6px;
}

.ar-svc-icon-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.ar-svc-icon--secondary {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0;
}

.ar-svc-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.ar-svc-desc {
  font-size: 0.55rem;
  font-weight: 400;
  color: #4A4A4A;
  line-height: 1.5;
  flex: 1;
}

.ar-svc-link {
  font-size: 0.55rem;
  font-weight: 600;
  color: #001F3F;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Contact Section ── */
.ar-contact-section {
  flex: 1;
  background: #3A3A3A;
  padding: 16px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ar-contact-top {
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ar-contact-title {
  font-size: 1.0rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.ar-contact-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.ar-contact-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

.ar-contact-info {
  display: flex;
  flex-direction: column;
}

.ar-contact-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.ar-contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ar-contact-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 40% 20% 40% 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.ar-contact-detail-title {
  font-size: 0.57rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.ar-contact-detail-val {
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
}

/* Contact form card: dark grey #4A4A4A, rounded */
.ar-contact-form-card {
  background: #4A4A4A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.ar-form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ar-form-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: #fff;
}

.ar-form-input {
  height: 28px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
}

.ar-form-textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  min-height: 44px;
  line-height: 1.4;
}

.ar-form-submit {
  background: #001F3F;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 2px;
}


/* ── Footnote ───────────────────────────────────────── */
/* ── Project separator ──────────────────────────────────── */
.sw-project + .sw-project {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sw-more-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.04em;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .sw-stats-grid { grid-template-columns: 1fr 1fr; }
  .sw-stat-card--cta { grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center; }
  .sw-pos-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
  .sw-cart { width: 190px; }
  .sw-sidebar { width: 52px; }
  .sw-sb-item span { display: none; }
  .sw-sb-user-info { display: none; }
  .sw-sb-logo-mark { width: 28px; font-size: 0; }
}

@media (max-width: 700px) {
  .sw-viewport { height: 420px; }
  .sw-cart { width: 160px; padding: 12px; }
  .sw-pos-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-sidebar { width: 44px; }
}

@media (max-width: 520px) {
  .sw-viewport { height: 360px; }
  .sw-cart { display: none; }
  .sw-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sw-stat-card--cta { grid-column: 1 / -1; }
  .sw-main-header { padding: 0 14px; }
  .sw-stats-grid { padding: 10px 12px; }
  .sw-bottom-panels { padding: 0 12px 12px; }
  .sw-pos-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-project-header { flex-direction: column; }
  .sw-sidebar { display: none; }
}

/* ═══════════════════════════════════════════════════════
   CROP COMPLIANCE TRACKER (light theme)
   ═══════════════════════════════════════════════════════ */

.cc-viewport { background: #f8fafc; }

/* ── CC App Bar (Flutter-style top bar) ─────────────── */
.cc-appbar {
  height: 48px;
  background: #43A047;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}
.cc-appbar-menu {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: white;
  opacity: 0.9;
}
.cc-appbar-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.01em;
  flex: 1;
}
.cc-appbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cc-appbar-icon {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  border-radius: 50%;
}

/* ── CC screen with app bar layout ─────────────────── */
.cc-screen-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* ── CC Sidebar ─────────────────────────────────────── */
.cc-sidebar {
  width: 112px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.cc-sb-farm {
  height: 42px;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 40%, #43a047 80%, #66bb6a 100%);
  flex-shrink: 0;
}
.cc-sb-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.cc-sb-avatar2 {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #43A047;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cc-sb-user-info { flex: 1; min-width: 0; }
.cc-sb-uname {
  font-size: 0.6rem;
  font-weight: 600;
  color: #1e1e1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-sb-urole {
  font-size: 0.49rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cc-sb-section-lbl {
  font-size: 0.47rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 8px 3px;
  flex-shrink: 0;
}
.cc-sb-item2 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 0.59rem;
  font-weight: 400;
  color: #6b7280;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}
.cc-sb-item2 svg { flex-shrink: 0; color: #9ca3af; }
.cc-sb-item2--active { background: #e8f5e9; color: #2e7d32; font-weight: 600; }
.cc-sb-item2--active svg { color: #43A047; }
.cc-sb-item2--logout { color: #ef4444; border-top: 1px solid #f3f4f6; }
.cc-sb-item2--logout svg { color: #ef4444; }
.cc-sb-collapse-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  font-size: 0.57rem;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

/* ── CC Main layout ─────────────────────────────────── */
.cc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}

.cc-main-header {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.cc-main-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e1e1e;
  letter-spacing: -0.01em;
}

.cc-company-badge {
  font-size: 0.63rem;
  font-weight: 500;
  color: #43A047;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 99px;
  padding: 4px 11px;
}

.cc-main-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* ── CC Cards ───────────────────────────────────────── */
.cc-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.cc-card-title {
  font-size: 0.6rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Compliance ring chart ──────────────────────────── */
.cc-compliance-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cc-ring-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.cc-ring { width: 100%; height: 100%; }

.cc-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cc-ring-pct {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1;
}

.cc-ring-sub {
  font-size: 0.55rem;
  color: #9ca3af;
  margin-top: 3px;
}

/* ── CC Stats row ───────────────────────────────────── */
.cc-stats-row {
  display: flex;
  align-items: center;
  flex: 1;
}

.cc-stat { flex: 1; text-align: center; }

.cc-stat-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1;
}

.cc-stat-lbl {
  font-size: 0.56rem;
  color: #9ca3af;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cc-stat-div {
  width: 1px;
  height: 36px;
  background: #e5e7eb;
  flex-shrink: 0;
}

/* ── CC Documents table ─────────────────────────────── */
.cc-doc-table { margin-top: 4px; }

.cc-doc-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding: 6px 0 8px;
  border-bottom: 1px solid #e5e7eb;
}

.cc-doc-head span {
  font-size: 0.56rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-doc-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

.cc-doc-row:last-child { border-bottom: none; }

.cc-doc-row > span {
  font-size: 0.7rem;
  font-weight: 400;
  color: #374151;
}

.cc-badge {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
}

.cc-badge--green  { background: #e8f5e9; color: #2e7d32; }
.cc-badge--amber  { background: #fff8e1; color: #f57f17; }
.cc-badge--red    { background: #ffebee; color: #c62828; }

/* ── CC KPI strip (companies screen) ────────────────── */
.cc-kpi-strip {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cc-kpi { flex: 1; text-align: center; }

.cc-kpi-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1;
}

.cc-kpi-amber { color: #FFA000; }

.cc-kpi-lbl {
  font-size: 0.56rem;
  color: #9ca3af;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-kpi-sep {
  width: 1px;
  height: 32px;
  background: #e5e7eb;
  flex-shrink: 0;
}

/* ── CC Search bar ──────────────────────────────────── */
.cc-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  background: #f3f4f6;
  border-radius: 8px;
  margin: 10px 16px 0;
  padding: 0 12px;
  font-size: 0.7rem;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ── CC Company grid ────────────────────────────────── */
.cc-company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 16px 16px;
  overflow: hidden;
}

.cc-company-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.cc-company-card--alert { border-color: #ffcc80; }

.cc-co-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cc-co-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #e8f5e9;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cc-co-info { flex: 1; min-width: 0; }

.cc-co-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-co-addr {
  font-size: 0.58rem;
  color: #9ca3af;
  margin-top: 2px;
}

.cc-co-pct {
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cc-co-pct--high { color: #43A047; }
.cc-co-pct--mid  { color: #FB8C00; }
.cc-co-pct--low  { color: #e53935; }

.cc-co-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.cc-pkg {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}

.cc-pkg--siza { background: #e8f5e9; color: #2e7d32; }
.cc-pkg--gap  { background: #e3f2fd; color: #1565c0; }

.cc-pending-count {
  font-size: 0.58rem;
  color: #FB8C00;
  font-weight: 600;
  margin-left: auto;
}

/* ── CC Login screen ────────────────────────────────── */
.cc-login-left {
  flex: 0 0 55%;
  background: #2E7D32;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
}

.cc-login-deco { position: absolute; inset: 0; }

.cc-login-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cc-login-circle--1 { width: 300px; height: 300px; bottom: -100px; right: -80px; }
.cc-login-circle--2 { width: 160px; height: 160px; top: -50px; right: 30px; }

.cc-login-brand { position: relative; z-index: 1; }

.cc-login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.cc-login-logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-login-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.cc-login-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 18px;
}

.cc-login-accent-bar {
  width: 56px;
  height: 4px;
  background: #FFA000;
  border-radius: 2px;
  margin-bottom: 26px;
}

.cc-login-bullets {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cc-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
}

.cc-login-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.cc-login-form { width: 100%; max-width: 280px; }

.cc-form-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.cc-form-sub {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 22px;
  line-height: 1.5;
}

.cc-field { margin-bottom: 13px; }

.cc-field label {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.cc-input {
  width: 100%;
  height: 40px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  font-size: 0.73rem;
  color: #6b7280;
}

.cc-input svg { color: #9ca3af; flex-shrink: 0; }
.cc-input--pass { letter-spacing: 0.12em; color: #374151; }

.cc-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 4px;
}

.cc-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #374151;
}

.cc-checkbox-box {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: #2E7D32;
}

.cc-forgot {
  font-size: 0.67rem;
  font-weight: 600;
  color: #2E7D32;
  cursor: pointer;
}

.cc-sign-in-btn {
  width: 100%;
  height: 44px;
  background: #2E7D32;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.cc-sign-in-btn:hover { background: #1b5e20; }

/* ── CC Compliance Tracker main ─────────────────────── */
.cc-ct-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e1e1e;
  padding: 10px 12px 8px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.cc-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 10px 12px;
  background: #f8fafc;
  flex-shrink: 0;
}
.cc-kpi-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 9px;
  border-left-width: 3px;
}
.cc-kpi-card--blue  { border-left-color: #1976d2; }
.cc-kpi-card--green { border-left-color: #43a047; }
.cc-kpi-card--orange{ border-left-color: #fb8c00; }
.cc-kpi-card--red   { border-left-color: #e53935; }
.cc-kpi-label {
  font-size: 0.54rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-kpi-card--blue   .cc-kpi-label { color: #1976d2; }
.cc-kpi-card--green  .cc-kpi-label { color: #43a047; }
.cc-kpi-card--orange .cc-kpi-label { color: #fb8c00; }
.cc-kpi-card--red    .cc-kpi-label { color: #e53935; }
.cc-kpi-val { font-size: 1rem; font-weight: 700; color: #1e1e1e; line-height: 1; }
.cc-kpi-sub { font-size: 0.51rem; color: #9ca3af; margin-top: 3px; }

/* ── Tab bar ─────────────────────────────────────────── */
.cc-tab-bar { display: flex; flex-shrink: 0; }
.cc-tab-btn {
  flex: 1;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border-bottom: 2px solid #e5e7eb;
}
.cc-tab-btn--active { background: #43A047; color: white; border-bottom-color: #43A047; }

/* ── Filter pills ────────────────────────────────────── */
.cc-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}
.cc-filter-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 0.61rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  background: #fff;
}
.cc-filter-pill--active { background: #FFA000; color: white; border-color: #FFA000; }

/* ── Action items list ───────────────────────────────── */
.cc-action-list {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
}
.cc-action-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  flex-shrink: 0;
}
.cc-action-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.cc-action-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #1e1e1e;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-action-expiry {
  font-size: 0.57rem;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
}
.cc-action-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.57rem;
  color: #9ca3af;
  margin-bottom: 6px;
}
.cc-action-meta svg { color: #9ca3af; flex-shrink: 0; }
.cc-action-btns { display: flex; justify-content: flex-end; gap: 5px; }
.cc-act-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.57rem;
  font-weight: 600;
}
.cc-act-btn--update  { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.cc-act-btn--resubmit{ background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* ── Audit Index list ────────────────────────────────── */
.cc-main--white { background: #fff; }
.cc-ai-list { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cc-ai-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.cc-ai-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #e8f5e9;
  color: #43A047;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-ai-info { flex: 1; min-width: 0; }
.cc-ai-name {
  font-size: 0.66rem;
  font-weight: 600;
  color: #1e1e1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-ai-desc {
  font-size: 0.55rem;
  color: #9ca3af;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-ai-chevron { color: #d1d5db; flex-shrink: 0; }

/* ── Login updates ───────────────────────────────────── */
.cc-login-left {
  background: #2E7D32;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cc-login-brand {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cc-bullet-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFA000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-login-copyright {
  font-size: 0.57rem;
  color: rgba(255,255,255,0.4);
  margin-top: auto;
  padding-top: 20px;
}
.cc-sign-in-btn { width: fit-content; padding: 0 28px; }
.cc-login-support {
  font-size: 0.65rem;
  color: #6b7280;
  margin-top: 14px;
  text-align: center;
}
.cc-login-support-link { color: #2E7D32; font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   ON THE GROW
   ═══════════════════════════════════════════════════════ */

.otg-viewport { background: #0a0a0a; }

/* ── Landing Page ───────────────────────────────────── */
.otg-landing { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.otg-nav {
  height: 44px;
  background: rgba(5,5,5,0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.otg-nav-logo { font-size: 0.88rem; font-weight: 700; color: #22c55e; letter-spacing: 0.01em; }
.otg-nav-links { display: flex; align-items: center; gap: 16px; }
.otg-nav-link { font-size: 0.63rem; color: rgba(255,255,255,0.55); }
.otg-nav-cta {
  height: 27px; padding: 0 13px;
  background: #22c55e; border-radius: 6px;
  font-size: 0.63rem; font-weight: 600; color: #000;
  display: flex; align-items: center;
}
.otg-hero { flex: 1; position: relative; overflow: hidden; }
.otg-hero-bg { position: absolute; inset: 0; }
.otg-hero-img { width: 100%; height: 100%; object-fit: cover; }
.otg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.72) 50%, rgba(0,0,0,0.25) 100%);
}
.otg-hero-content { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; padding: 0 28px; }
.otg-hero-inner { max-width: 280px; }
.otg-hero-logo { width: 68px; height: 68px; object-fit: contain; margin-bottom: 10px; display: block; }
.otg-eyebrow { font-size: 0.58rem; font-weight: 600; color: #22c55e; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 7px; }
.otg-hero-title { font-size: 1.9rem; font-weight: 700; color: white; line-height: 1.08; margin-bottom: 10px; font-family: Georgia, 'Times New Roman', serif; }
.otg-hero-desc { font-size: 0.66rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 16px; }
.otg-hero-btns { display: flex; gap: 9px; align-items: center; }
.otg-btn-primary {
  height: 33px; padding: 0 15px;
  background: #22c55e; border-radius: 7px;
  font-size: 0.67rem; font-weight: 600; color: #000;
  display: flex; align-items: center; gap: 6px;
}
.otg-btn-secondary {
  height: 33px; padding: 0 15px;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 7px;
  font-size: 0.67rem; color: rgba(255,255,255,0.7);
  display: flex; align-items: center;
}
.otg-features-strip {
  display: flex;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.otg-feat {
  flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.otg-feat:last-child { border-right: none; }
.otg-feat-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(34,197,94,0.12); color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.otg-feat-title { font-size: 0.62rem; font-weight: 600; color: white; }
.otg-feat-sub { font-size: 0.54rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── Mobile App (phone frame) ────────────────────────── */
.otg-app-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0a;
}
.otg-phone-frame {
  width: 210px; height: 390px;
  background: #111;
  border-radius: 26px;
  border: 5px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  display: flex; flex-direction: column;
}
.otg-app-bar {
  height: 40px; background: #111;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.otg-app-bar-left { color: rgba(255,255,255,0.6); }
.otg-app-bar-title { font-size: 0.72rem; font-weight: 700; color: white; }
.otg-app-bar-right { color: rgba(255,255,255,0.7); }
.otg-app-search {
  margin: 8px 10px 4px;
  height: 28px; background: rgba(255,255,255,0.07);
  border-radius: 7px; display: flex; align-items: center;
  gap: 7px; padding: 0 10px; flex-shrink: 0; color: #9ca3af;
}
.otg-app-search span { font-size: 0.59rem; }
.otg-app-cats {
  display: flex; gap: 5px;
  padding: 6px 10px 8px; flex-shrink: 0; overflow: hidden;
}
.otg-app-cat {
  height: 22px; padding: 0 9px;
  border-radius: 99px; font-size: 0.54rem; font-weight: 500;
  color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap; display: flex; align-items: center;
}
.otg-app-cat--active { background: #22c55e; color: #000; border-color: #22c55e; font-weight: 700; }
.otg-app-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; padding: 0 10px; flex: 1; overflow: hidden;
}
.otg-app-card {
  background: rgba(255,255,255,0.05);
  border-radius: 9px; padding: 7px;
  border: 1px solid rgba(255,255,255,0.07);
}
.otg-app-prod-img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.otg-app-prod-name { font-size: 0.58rem; font-weight: 700; color: white; margin-top: 4px; }
.otg-app-prod-type { font-size: 0.5rem; color: rgba(255,255,255,0.38); margin-bottom: 5px; }
.otg-app-prod-foot { display: flex; align-items: center; justify-content: space-between; }
.otg-app-price { font-size: 0.62rem; font-weight: 700; color: #22c55e; }
.otg-app-add {
  width: 18px; height: 18px; background: #22c55e;
  border-radius: 5px; display: flex; align-items: center;
  justify-content: center; color: #000; font-size: 0.85rem; font-weight: 700; line-height: 1;
}
.otg-bottom-nav {
  height: 46px; background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-around;
  flex-shrink: 0;
}
.otg-bottom-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; color: rgba(255,255,255,0.3);
}
.otg-bottom-item--active { color: #22c55e; }
.otg-bottom-item span { font-size: 0.47rem; }

/* ── Portal Dashboard ────────────────────────────────── */
.otg-portal { background: #f5f7fa; display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.otg-portal-hdr {
  background: white; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.otg-portal-brand { display: flex; align-items: center; gap: 8px; }
.otg-portal-logo-img { height: 28px; object-fit: contain; }
.otg-portal-brand-text { font-size: 0.75rem; font-weight: 700; color: #1B5E20; }
.otg-portal-user-row { display: flex; align-items: center; gap: 10px; }
.otg-portal-uname { font-size: 0.63rem; font-weight: 600; color: #333; }
.otg-portal-urole { font-size: 0.54rem; color: #999; }
.otg-portal-logout {
  height: 26px; padding: 0 10px;
  background: #f5f5f5; border: 1px solid #e0e0e0;
  border-radius: 6px; font-size: 0.59rem; color: #555;
  display: flex; align-items: center;
}
.otg-portal-tabs {
  display: flex; background: white;
  border-bottom: 2px solid #e8e8e8;
  padding: 0 14px; flex-shrink: 0; overflow: hidden;
}
.otg-portal-tab {
  height: 36px; padding: 0 11px;
  font-size: 0.61rem; font-weight: 500; color: #888;
  white-space: nowrap; display: flex; align-items: center;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.otg-portal-tab--active { color: #1B5E20; border-bottom-color: #1B5E20; font-weight: 700; }
.otg-portal-body { flex: 1; overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; }
.otg-portal-section-title { font-size: 0.77rem; font-weight: 700; color: #333; flex-shrink: 0; }
.otg-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; flex-shrink: 0; }
.otg-stat-card {
  background: white; border-radius: 10px; padding: 10px 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 9px;
}
.otg-stat-emoji { font-size: 1.15rem; flex-shrink: 0; }
.otg-stat-val { font-size: 0.95rem; font-weight: 700; color: #1B5E20; line-height: 1; }
.otg-stat-lbl { font-size: 0.54rem; color: #999; margin-top: 3px; }
.otg-stat-change { font-size: 0.5rem; color: #22c55e; margin-top: 2px; font-weight: 600; }
.otg-table-card {
  background: white; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex: 1; overflow: hidden; display: flex; flex-direction: column;
}
.otg-table-hdr {
  padding: 9px 13px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.otg-table-title { font-size: 0.71rem; font-weight: 700; color: #333; }
.otg-badge {
  height: 20px; padding: 0 8px; background: #1B5E20;
  border-radius: 99px; font-size: 0.54rem; font-weight: 700; color: white;
  display: flex; align-items: center;
}
.otg-table-wrap { flex: 1; overflow: hidden; }
.otg-table { width: 100%; border-collapse: collapse; }
.otg-table thead th {
  padding: 6px 11px; font-size: 0.56rem; font-weight: 600;
  color: #999; text-transform: uppercase; letter-spacing: 0.05em;
  text-align: left; border-bottom: 1px solid #f0f0f0; background: #fafafa;
}
.otg-table tbody td { padding: 7px 11px; font-size: 0.63rem; color: #333; border-bottom: 1px solid #f7f7f7; }
.otg-status {
  display: inline-flex; align-items: center;
  height: 19px; padding: 0 8px; border-radius: 99px;
  font-size: 0.54rem; font-weight: 600;
}
.otg-status--delivering { background: #e8f5e9; color: #2e7d32; }
.otg-status--pending    { background: #fff3e0; color: #e65100; }
.otg-status--ready      { background: #e3f2fd; color: #1565c0; }
.otg-action-btn {
  height: 21px; padding: 0 8px;
  background: #f5f5f5; border: 1px solid #e0e0e0;
  border-radius: 5px; font-size: 0.54rem; color: #444;
  display: inline-flex; align-items: center;
}

/* ═══════════════════════════════════════════════════════
   COPLA — Document & Contract Management
   ═══════════════════════════════════════════════════════ */

:root {
  --cp-primary: #3b5897;
  --cp-primary-light: #eff3fb;
}

.cp-viewport { background: #111827; }

/* ── App shell ─────────────────────────────────────────── */
.cp-app { display: flex; flex: 1; overflow: hidden; }

/* ── Sidebar ───────────────────────────────────────────── */
.cp-sidebar {
  width: 128px; flex-shrink: 0;
  background: #111827;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.cp-sb-logo {
  height: 42px; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cp-sb-logo-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--cp-primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.cp-sb-brand { font-size: 0.72rem; font-weight: 700; color: #fff; line-height: 1.2; }
.cp-sb-sub   { font-size: 0.48rem; color: #6b7280; letter-spacing: 0.06em; text-transform: uppercase; }

.cp-sb-nav { flex: 1; padding: 8px 6px; display: flex; flex-direction: column; gap: 1px; }
.cp-sb-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px;
  font-size: 0.65rem; color: #9ca3af;
  border-radius: 6px; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}
.cp-sb-item--active { background: rgba(255,255,255,0.13); color: #fff; }
.cp-sb-item svg { flex-shrink: 0; }

.cp-sb-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 7px 6px; display: flex; flex-direction: column; gap: 2px;
}
.cp-sb-settings {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px;
  font-size: 0.65rem; color: #9ca3af;
  border-radius: 6px;
}
.cp-sb-user-row {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; margin-top: 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cp-sb-avatar {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--cp-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.48rem; font-weight: 700; color: #fff; letter-spacing: 0.01em;
}
.cp-sb-uname { font-size: 0.62rem; font-weight: 600; color: #fff; line-height: 1.2; }
.cp-sb-urole { font-size: 0.5rem; color: #6b7280; }

/* ── Main content area ────────────────────────────────── */
.cp-main {
  flex: 1; overflow: hidden;
  background: #f9fafb;
  display: flex; flex-direction: column;
  padding: 14px 14px 0 14px;
  gap: 10px;
}

/* ── Welcome ──────────────────────────────────────────── */
.cp-welcome { flex-shrink: 0; }
.cp-welcome-title { font-size: 0.82rem; font-weight: 700; color: #111827; }
.cp-welcome-sub   { font-size: 0.62rem; color: #6b7280; margin-top: 1px; }

/* ── Urgent Alert ─────────────────────────────────────── */
.cp-alert-box {
  flex-shrink: 0;
  border: 2px solid #fecaca; background: #fef2f2;
  border-radius: 8px; padding: 8px 9px;
  display: flex; flex-direction: column; gap: 5px;
}
.cp-alert-hdr {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.65rem; font-weight: 600; color: #b91c1c;
}
.cp-alert-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #fee2e2;
  border-radius: 6px; padding: 5px 8px; gap: 6px;
}
.cp-alert-name { font-size: 0.65rem; font-weight: 500; color: #111827; }
.cp-alert-co   { font-size: 0.57rem; color: #9ca3af; margin-top: 1px; }

/* ── Badges ───────────────────────────────────────────── */
.cp-badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  height: 17px; padding: 0 7px;
  border-radius: 99px; font-size: 0.54rem; font-weight: 600;
  white-space: nowrap;
}
.cp-badge--red    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.cp-badge--amber  { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.cp-badge--blue   { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.cp-badge--gray   { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }

/* ── Stats grid ───────────────────────────────────────── */
.cp-stats-grid {
  flex-shrink: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.cp-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.cp-stat-top {
  display: flex; align-items: center; justify-content: space-between;
}
.cp-stat-lbl {
  font-size: 0.54rem; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cp-stat-icon {
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}
.cp-stat-icon--default { background: var(--cp-primary-light); color: var(--cp-primary); }
.cp-stat-icon--red     { background: #fef2f2; color: #dc2626; }
.cp-stat-icon--amber   { background: #fffbeb; color: #d97706; }
.cp-stat-icon--blue    { background: #eff6ff; color: #2563eb; }
.cp-stat-val { font-size: 1.25rem; font-weight: 700; color: #111827; line-height: 1; }
.cp-stat-sub { font-size: 0.54rem; color: #9ca3af; line-height: 1.3; }

/* ── Two-column section grid ──────────────────────────── */
.cp-two-col {
  flex: 1; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.cp-section { display: flex; flex-direction: column; overflow: hidden; }
.cp-sec-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 5px; flex-shrink: 0;
}
.cp-sec-title {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.65rem; font-weight: 600; color: #111827;
}
.cp-sec-link { font-size: 0.57rem; color: var(--cp-primary); }
.cp-list { display: flex; flex-direction: column; gap: 4px; }
.cp-list-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 6px; padding: 5px 8px; gap: 6px;
}
.cp-li-info { flex: 1; min-width: 0; overflow: hidden; }
.cp-li-name { font-size: 0.63rem; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-li-sub  { font-size: 0.55rem; color: #9ca3af; margin-top: 1px; }
.cp-li-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.cp-pct { font-size: 0.6rem; font-weight: 700; color: var(--cp-primary); }

/* ── Page header (Documents / Contracts) ─────────────── */
.cp-page-hdr {
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.cp-page-title { font-size: 0.82rem; font-weight: 700; color: #111827; }
.cp-page-sub   { font-size: 0.6rem; color: #6b7280; margin-top: 2px; }
.cp-sub-red    { color: #dc2626; font-weight: 500; }
.cp-sub-amber  { color: #d97706; font-weight: 500; }
.cp-btn-primary {
  display: flex; align-items: center; gap: 5px;
  height: 27px; padding: 0 11px;
  background: var(--cp-primary); border-radius: 6px;
  font-size: 0.6rem; font-weight: 600; color: #fff;
  flex-shrink: 0;
}

/* ── Filter row ───────────────────────────────────────── */
.cp-filter-row {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.cp-search-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 10px;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.cp-search-wrap--full { flex: 0 0 28px; width: 100%; margin-bottom: 2px; }
.cp-search-placeholder { font-size: 0.6rem; color: #9ca3af; }
.cp-select-mini {
  height: 28px; padding: 0 9px;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 6px; font-size: 0.6rem; color: #374151;
  display: flex; align-items: center; flex-shrink: 0;
}

/* ── Document groups ──────────────────────────────────── */
.cp-doc-group { margin-bottom: 8px; }
.cp-group-label {
  font-size: 0.54rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.cp-doc-list {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; overflow: hidden;
}
.cp-doc-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #f3f4f6;
}
.cp-doc-row:last-child { border-bottom: none; }
.cp-doc-name {
  flex: 1; min-width: 0;
  font-size: 0.63rem; font-weight: 500; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Category pills */
.cp-cat-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  height: 16px; padding: 0 6px;
  border-radius: 99px; font-size: 0.5rem; font-weight: 600;
}
.cp-cat-pill--renewal    { background: #f5f3ff; color: #7c3aed; }
.cp-cat-pill--commercial { background: #fff7ed; color: #c2410c; }
.cp-cat-pill--minutes    { background: #f1f5f9; color: #475569; }
.cp-cat-pill--financial  { background: #f0fdf4; color: #16a34a; }
.cp-cat-pill--submission { background: #ecfeff; color: #0e7490; }
.cp-cat-pill--general    { background: #f9fafb; color: #6b7280; }

/* Expiry text */
.cp-expiry-text          { flex-shrink: 0; font-size: 0.57rem; color: #9ca3af; }
.cp-expiry-text--expired { color: #dc2626; }
.cp-expiry-text--amber   { color: #d97706; }

/* Status pills */
.cp-status-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  height: 17px; padding: 0 7px;
  border-radius: 99px; font-size: 0.52rem; font-weight: 600;
  border: 1px solid;
}
.cp-status-pill--active   { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.cp-status-pill--expiring { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.cp-status-pill--expired  { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.cp-status-pill--pending  { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }

/* ── Contract list ────────────────────────────────────── */
.cp-contract-list {
  flex: 1; overflow: hidden;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.cp-contract-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; gap: 10px;
  border-bottom: 1px solid #f3f4f6;
}
.cp-contract-row:last-child { border-bottom: none; }
.cp-con-main { flex: 1; min-width: 0; }
.cp-con-name { font-size: 0.65rem; font-weight: 500; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-con-meta { font-size: 0.57rem; color: #9ca3af; margin-top: 2px; }
.cp-con-dot  { margin: 0 3px; }
.cp-con-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   SAFE ROOTS LEARNING — Food Safety LMS
   ═══════════════════════════════════════════════════════ */

:root { --srl-green: #7CB518; --srl-green-dark: #6a9e15; --srl-text: #1c1d1f; --srl-muted: #6a6f73; --srl-border: #d1d7dc; --srl-bg: #f7f9fa; }

.srl-viewport { background: var(--srl-bg); }

/* ── Shared layout ─────────────────────────────────────── */
.srl-layout { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

/* ── Header ────────────────────────────────────────────── */
.srl-header {
  height: 46px; flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--srl-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 12px;
}
.srl-logo { height: 24px; object-fit: contain; }
.srl-nav { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: center; }
.srl-nav-link { font-size: 0.62rem; color: var(--srl-muted); font-weight: 500; white-space: nowrap; }
.srl-nav-link--active { color: var(--srl-text); }
.srl-header-btns { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.srl-btn-outline {
  height: 28px; padding: 0 11px;
  border: 1px solid var(--srl-border); border-radius: 4px;
  font-size: 0.6rem; color: var(--srl-text);
  display: flex; align-items: center;
}
.srl-btn-primary-sm {
  height: 28px; padding: 0 11px;
  background: var(--srl-green); border-radius: 4px;
  font-size: 0.6rem; font-weight: 600; color: #fff;
  display: flex; align-items: center;
}
.srl-user-avatar {
  width: 28px; height: 28px;
  background: var(--srl-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; color: #fff;
}

/* ── Hero ──────────────────────────────────────────────── */
.srl-hero { flex: 1; position: relative; overflow: hidden; }
.srl-hero-bg { position: absolute; inset: 0; }
.srl-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.srl-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,20,5,0.93) 0%, rgba(10,20,5,0.75) 55%, rgba(10,20,5,0.3) 100%);
}
.srl-hero-content { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; padding: 0 24px; }
.srl-hero-inner { max-width: 300px; }
.srl-hero-tag {
  display: inline-block;
  font-size: 0.56rem; font-weight: 600; color: var(--srl-green);
  background: rgba(124,181,24,0.12); border: 1px solid rgba(124,181,24,0.3);
  border-radius: 99px; padding: 3px 9px; margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.srl-hero-title {
  font-size: 1.75rem; font-weight: 700; color: #fff;
  line-height: 1.1; margin-bottom: 9px;
}
.srl-hero-desc {
  font-size: 0.64rem; color: rgba(255,255,255,0.65);
  line-height: 1.6; margin-bottom: 16px;
}
.srl-hero-btns { display: flex; gap: 9px; align-items: center; }
.srl-hero-btn-primary {
  height: 32px; padding: 0 15px;
  background: var(--srl-green); border-radius: 5px;
  font-size: 0.65rem; font-weight: 600; color: #fff;
  display: flex; align-items: center;
}
.srl-hero-btn-ghost {
  height: 32px; padding: 0 15px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 5px;
  font-size: 0.65rem; color: rgba(255,255,255,0.85);
  display: flex; align-items: center;
}

/* ── Industries strip ──────────────────────────────────── */
.srl-industries {
  flex-shrink: 0;
  background: #fff; border-top: 1px solid var(--srl-border);
  padding: 10px 14px 12px;
}
.srl-ind-heading {
  font-size: 0.68rem; font-weight: 700; color: var(--srl-text);
  margin-bottom: 8px;
}
.srl-ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.srl-ind-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px;
  background: var(--srl-bg); border: 1px solid var(--srl-border);
  border-radius: 8px; cursor: pointer;
}
.srl-ind-icon { font-size: 1.1rem; line-height: 1; }
.srl-ind-name { font-size: 0.5rem; color: var(--srl-text); text-align: center; font-weight: 500; line-height: 1.2; }

/* ── Page header (Courses) ─────────────────────────────── */
.srl-page-hdr {
  flex-shrink: 0;
  background: linear-gradient(135deg, #5a8a0f 0%, var(--srl-green) 60%, #94cc22 100%);
  padding: 14px 18px;
}
.srl-page-title { font-size: 1rem; font-weight: 700; color: #fff; }
.srl-page-sub { font-size: 0.6rem; color: rgba(255,255,255,0.8); margin-top: 2px; }

/* ── Filter row ────────────────────────────────────────── */
.srl-filter-row {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; background: #fff; border-bottom: 1px solid var(--srl-border);
}
.srl-select-box {
  height: 29px; padding: 0 10px;
  border: 1px solid var(--srl-border); border-radius: 4px;
  font-size: 0.6rem; color: var(--srl-text);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  background: #fff;
}
.srl-chevron { font-size: 0.55rem; color: var(--srl-muted); }
.srl-search-box {
  flex: 1; height: 29px; padding: 0 10px;
  border: 1px solid var(--srl-border); border-radius: 4px;
  font-size: 0.6rem; color: var(--srl-muted);
  display: flex; align-items: center; gap: 7px;
  background: #fff;
}
.srl-results-count {
  flex-shrink: 0;
  font-size: 0.58rem; color: var(--srl-muted);
  padding: 5px 14px 0;
}

/* ── Course cards grid ─────────────────────────────────── */
.srl-courses-grid {
  flex: 1; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
  padding: 8px 14px;
  align-content: start;
}
.srl-course-card {
  background: #fff; border: 1px solid var(--srl-border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.srl-cc-img-wrap {
  height: 62px; background: linear-gradient(135deg, #e8f5c8 0%, #d4ee99 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.srl-cc-img-placeholder { font-size: 1.6rem; }
.srl-diff-badge {
  position: absolute; top: 6px; right: 6px;
  height: 16px; padding: 0 6px; border-radius: 99px;
  font-size: 0.48rem; font-weight: 600;
}
.srl-diff-badge--beginner   { background: #d4edda; color: #155724; }
.srl-diff-badge--intermediate { background: #fff3cd; color: #856404; }
.srl-diff-badge--advanced   { background: #f8d7da; color: #721c24; }
.srl-cc-body { flex: 1; padding: 7px 9px 4px; }
.srl-cc-industry { font-size: 0.5rem; color: var(--srl-green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.srl-cc-title { font-size: 0.64rem; font-weight: 600; color: var(--srl-text); line-height: 1.3; margin-bottom: 5px; }
.srl-cc-meta { display: flex; gap: 8px; font-size: 0.52rem; color: var(--srl-muted); }
.srl-cc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 9px; border-top: 1px solid var(--srl-border);
}
.srl-cc-price { font-size: 0.68rem; font-weight: 700; color: var(--srl-text); }
.srl-cc-price--free { color: var(--srl-green); }
.srl-cc-btn {
  height: 22px; padding: 0 9px;
  background: var(--srl-green); border-radius: 4px;
  font-size: 0.54rem; font-weight: 600; color: #fff;
  display: flex; align-items: center;
}

/* ── Dashboard ─────────────────────────────────────────── */
.srl-dash {
  flex: 1; overflow: hidden;
  padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px;
  background: var(--srl-bg);
}
.srl-dash-greeting { font-size: 0.82rem; font-weight: 700; color: var(--srl-text); }
.srl-dash-sub { font-size: 0.6rem; color: var(--srl-muted); margin-top: 1px; }

/* Stats */
.srl-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; flex-shrink: 0; }
.srl-stat-card {
  background: #fff; border: 1px solid var(--srl-border);
  border-radius: 8px; padding: 10px 8px; text-align: center;
}
.srl-stat-card--streak { background: #fffbf0; border-color: #f59e0b; }
.srl-stat-val { font-size: 1.1rem; font-weight: 700; color: var(--srl-text); line-height: 1; }
.srl-stat-lbl { font-size: 0.5rem; color: var(--srl-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Section header */
.srl-section-hdr { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.srl-section-title { font-size: 0.72rem; font-weight: 700; color: var(--srl-text); }
.srl-section-link { font-size: 0.58rem; color: var(--srl-green); font-weight: 500; }

/* Learn cards */
.srl-learn-grid { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
.srl-learn-card {
  background: #fff; border: 1px solid var(--srl-border);
  border-radius: 8px; padding: 9px 11px;
  display: flex; align-items: center; gap: 10px;
}
.srl-learn-card--completed { opacity: 0.8; }
.srl-learn-icon { font-size: 1.3rem; flex-shrink: 0; }
.srl-learn-info { flex: 1; min-width: 0; }
.srl-learn-title { font-size: 0.63rem; font-weight: 600; color: var(--srl-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srl-learn-meta { font-size: 0.54rem; color: var(--srl-muted); margin-top: 1px; }
.srl-learn-prog-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.srl-prog-bar { flex: 1; height: 4px; background: #e8e8e8; border-radius: 99px; overflow: hidden; }
.srl-prog-fill { height: 100%; background: var(--srl-green); border-radius: 99px; }
.srl-prog-fill--done { background: #28a745; }
.srl-prog-pct { font-size: 0.52rem; color: var(--srl-muted); flex-shrink: 0; }
.srl-prog-pct--done { color: #28a745; font-weight: 600; }
.srl-learn-continue {
  flex-shrink: 0;
  height: 24px; padding: 0 9px;
  background: var(--srl-green); border-radius: 4px;
  font-size: 0.55rem; font-weight: 600; color: #fff;
  display: flex; align-items: center;
}
.srl-learn-cert {
  flex-shrink: 0;
  height: 24px; padding: 0 9px;
  background: #fff; border: 1px solid #28a745; border-radius: 4px;
  font-size: 0.55rem; font-weight: 600; color: #28a745;
  display: flex; align-items: center;
}
