/* Diplosoft Media Concept - Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --color-bg: #0F172A;
  --color-surface: #1E293B;
  --color-surface-hover: #334155;
  --color-surface-glass: rgba(30, 41, 59, 0.75);
  --color-text: #FFFFFF;
  --color-muted: #94A3B8;
  --color-border: rgba(148, 163, 184, 0.14);
  --color-border-glow: rgba(129, 140, 248, 0.3);
  --color-accent: #818CF8; /* Soft Indigo / Periwinkle */
  --color-accent-2: #6366F1;
  --color-yellow: #FACC15; /* Vibrant Yellow highlight & live alerts */
  --max-width: 1240px;
  --ring: 0 0 0 2px rgba(129, 140, 248, 0.4), 0 0 24px rgba(129, 140, 248, 0.25);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  position: relative;
  min-height: 100vh;
  background-color: #0F172A;
}
/* Tech-Noir Ambient Studio Glows & Subtle Studio Matrix */
body:before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(129, 140, 248, 0.12), transparent 60%),
    radial-gradient(800px 600px at 85% 15%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(250, 204, 21, 0.04), transparent 70%),
    radial-gradient(900px 700px at 50% 95%, rgba(129, 140, 248, 0.08), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
/* Subtle Tech-Noir Grid Pattern */
body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #A5B4FC; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; position: relative; }
.section.alt { background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(12px); }

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: 0.3px; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
img.brand-logo { display: block; background: none !important; box-shadow: none !important; animation: none !important; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}
.nav-links a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  background: var(--color-accent);
  border-radius: 2px;
}
.nav-links a:hover:after,
.nav-links a.active:after { transform: scaleX(1); }

/* Header Live Alert & CTA */
.nav-right-actions { display: flex; align-items: center; gap: 16px; }
.nav-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--color-yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 10px var(--color-yellow);
  animation: liveBlink 1.6s infinite ease-in-out;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.nav-cta {
  padding: 10px 18px;
  background: var(--color-accent);
  color: #0F172A !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.3);
}
.nav-cta:hover {
  background: #A5B4FC;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.45);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: rgba(30, 41, 59, 0.8);
  color: #FFFFFF;
  font-size: 20px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0F172A;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .nav-live-pill { display: none; }
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.hero-content-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge-wrap {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.badge-live-broadcast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: var(--color-yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15);
}
.hero h1 {
  font-size: 58px;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  font-weight: 900;
}
.hero-tagline {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgba(129, 140, 248, 0.35);
}
.hero p.hero-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 740px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

/* Primary CTA Button in Soft Indigo */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: rgba(30, 41, 59, 0.8);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}
.btn.primary {
  background: var(--color-accent);
  color: #0F172A !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(129, 140, 248, 0.35);
}
.btn.primary:hover {
  background: #A5B4FC;
  color: #0F172A !important;
  box-shadow: 0 12px 35px rgba(129, 140, 248, 0.55);
  transform: translateY(-2px);
}

/* Hero Tech-Noir Studio Gear Showcase */
.hero-studio-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(129, 140, 248, 0.12);
  backdrop-filter: blur(20px);
  max-width: 960px;
  margin: 0 auto;
}
.studio-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-yellow);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hud-specs {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-muted);
  font-family: monospace;
}
.studio-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.studio-stat-item {
  padding: 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
}
.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-number span {
  color: var(--color-yellow);
}
.stat-label {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}

/* Card Base */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(129, 140, 248, 0.15);
}

/* Accent Badges */
.badge {
  font-size: 12px;
  color: #0F172A;
  background: var(--color-accent);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.3);
}
.badge-yellow {
  background: var(--color-yellow);
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.3);
}

@media (max-width: 1100px) {
  .container { padding: 0 28px; }
}

@media (max-width: 980px) {
  .container { padding: 0 24px; }
  .studio-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 38px; }
  .hero-tagline { font-size: 22px; }
  .hero p.hero-lead { font-size: 16px; }
  .studio-stats-grid { grid-template-columns: 1fr; }
}

/* Grid */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

/* Carousel */
[data-carousel] { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); background: rgba(18,19,23,0.6); }
[data-carousel-viewport] { overflow: hidden; }
[data-carousel-track] { display: flex; transition: transform .5s ease; }
[data-carousel-slide] { flex: 0 0 100%; }
[data-carousel-controls] { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; pointer-events: none; }
[data-carousel-controls] button { pointer-events: auto; border: 1px solid #2a2d33; background: rgba(0,0,0,0.45); color: #fff; border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; }
[data-carousel-dots] { display: flex; gap: 8px; justify-content: center; padding: 10px; }
[data-carousel-dots] button { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(255,255,255,0.35); }
[data-carousel-dots] button.active { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2)); width: 24px; }

.h-muted { color: var(--color-muted); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; }
.h2 { font-size: 36px; margin: 8px 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--color-muted); }

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, #111827 0%, #0B0F19 100%);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 56px 0 40px;
  text-align: left;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .brand {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}
.footer-grid h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-grid h4.util-title {
  color: var(--color-yellow);
}
.footer-grid a {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 2.1;
  transition: all 0.2s ease;
  display: block;
}
.footer-grid a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}
.footer-grid .lead {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.subfooter {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.admin-footer-link {
  color: rgba(148, 163, 184, 0.4);
  font-size: 12px;
  transition: color .2s;
}
.admin-footer-link:hover { color: var(--color-muted); }

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    padding: 40px 0 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .subfooter { flex-direction: column; text-align: center; gap: 8px; }
}

/* Problem-Solution Service Module Cards */
.services-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}
.services-header .h2 {
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(129, 140, 248, 0.16);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 22px;
}
.service-icon-wrap.yellow {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.3);
  color: var(--color-yellow);
}
.service-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

/* Problem-Solution Rhythm Boxes */
.service-rhythm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.rhythm-box {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.rhythm-problem {
  background: rgba(15, 23, 42, 0.65);
  border-left: 3px solid rgba(148, 163, 184, 0.4);
  color: var(--color-muted);
}
.rhythm-problem strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CBD5E1;
  margin-bottom: 4px;
}
.rhythm-solution {
  background: rgba(129, 140, 248, 0.08);
  border-left: 3px solid var(--color-accent);
  color: #E2E8F0;
}
.rhythm-solution strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 4px;
}

/* Feature Tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.service-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
}

.service-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent);
  transition: gap 0.2s ease;
}
.service-card-action:hover {
  gap: 12px;
  color: #A5B4FC;
}

@media (max-width: 1024px) {
  .service-cards-grid { grid-template-columns: 1fr; }
}

/* Trust & Social Proof: Core Values */
.values-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 72px;
}
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(250, 204, 21, 0.1);
}
.value-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-yellow);
  margin-bottom: 12px;
  font-family: monospace;
}
.value-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.value-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0;
}

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

/* Dynamic Masonry Gallery */
.masonry-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}
.masonry-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #111827;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.masonry-item:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}
.masonry-item.tall {
  grid-row: span 2;
}
.masonry-item.wide {
  grid-column: span 2;
}
.masonry-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.masonry-item:hover .masonry-image {
  transform: scale(1.05);
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 75%, rgba(15, 23, 42, 0.98) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.masonry-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: var(--color-yellow);
  margin-bottom: 8px;
}
.masonry-tag.stream {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #F87171;
}
.masonry-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
}
.masonry-meta {
  font-size: 12px;
  color: var(--color-muted);
  font-family: monospace;
}

@media (max-width: 880px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }
  .masonry-item.tall,
  .masonry-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }
}

/* Forms */
form { text-align: left; }
.input, textarea { width: 100%; background: rgba(15,16,20,0.8); color: var(--color-text); border: 1px solid #2a2d33; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); transition: border-color .2s ease, box-shadow .2s ease; }
.input:focus, textarea:focus { outline: none; border-color: rgba(108,192,255,0.45); box-shadow: var(--ring); }
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

.quote { font-style: italic; color: var(--color-muted); }
.author { margin-top: 8px; font-weight: 600; }

/* Section dividers */
.section { position: relative; }
.section:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(108,192,255,0.25), rgba(167,139,250,0.25), transparent); opacity: 0.4; }
.section.alt:after { opacity: 0.25; }

/* Animations */
@keyframes rotateHue { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; }
  .btn, .card { transition: none; }
  .nav-links a:after { transition: none; }
}

/* Responsive tables: hide headers and show labeled rows on small screens */
.responsive-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.responsive-table th, .responsive-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.responsive-table thead th { font-weight: 700; color: var(--color-text); }

@media (max-width: 720px) {
  .responsive-table { border: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tbody tr { display: block; margin-bottom: 12px; background: rgba(18,19,23,0.6); border-radius: 12px; padding: 10px; }
  .responsive-table tbody td { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: none; }
  .responsive-table tbody td:before { content: attr(data-label); color: var(--color-muted); font-weight: 600; margin-right: 8px; }
}

/* Pricing (Online Radio) */
.pricing { position: relative; isolation: isolate; }
.pricing::before {
  content: "";
  position: absolute;
  inset: -40px -16px auto -16px;
  height: 320px;
  z-index: -1;
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(108,192,255,0.18), transparent 65%),
    radial-gradient(700px 240px at 80% 20%, rgba(167,139,250,0.16), transparent 65%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}
.pricing-header { max-width: 820px; margin: 0 auto 28px; }
.pricing-title { margin-top: 10px; }
.pricing-subtitle { margin: 0 auto; max-width: 720px; }
.pricing-controls { margin-top: 16px; display: flex; justify-content: center; }
.pricing-toggle {
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: 999px;
  padding: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 16px 40px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(108,192,255,0.24);
  box-shadow: 0 18px 56px rgba(0,0,0,0.42), 0 0 0 1px rgba(108,192,255,0.06) inset;
}
.pricing-toggle:focus { outline: none; }
.pricing-toggle:focus-visible { box-shadow: 0 18px 56px rgba(0,0,0,0.42), var(--ring); border-color: rgba(108,192,255,0.35); }
.pricing-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 200px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.pricing-toggle-option {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(238,242,246,0.78);
  user-select: none;
}
.pricing-toggle-thumb {
  position: absolute;
  inset: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 16px 46px rgba(0,0,0,0.45);
  transform: translateX(0%);
  transition: transform .22s ease;
}
.pricing-toggle[aria-checked="true"] .pricing-toggle-thumb { transform: translateX(100%); }
.pricing-toggle[aria-checked="false"] .pricing-toggle-option--ngn,
.pricing-toggle[aria-checked="true"] .pricing-toggle-option--usd { color: #081018; }
.pricing-toggle[aria-checked="false"] .pricing-toggle-option--usd,
.pricing-toggle[aria-checked="true"] .pricing-toggle-option--ngn { color: rgba(238,242,246,0.82); }
.pricing-toggle-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pricing-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: left;
  border-radius: 22px;
  padding: 22px;
  background: rgba(18,19,23,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 50px rgba(0,0,0,0.42);
  backdrop-filter: blur(20px) saturate(130%);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 240px at 10% 0%, rgba(255,255,255,0.06), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,192,255,0.22);
  box-shadow: 0 22px 70px rgba(0,0,0,0.50), 0 0 0 1px rgba(108,192,255,0.07) inset;
}
.pricing-card-top { position: relative; z-index: 1; }
.pricing-plan {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  color: color-mix(in srgb, var(--color-muted) 92%, white 8%);
}
.pricing-kicker { margin: 10px 0 0; color: var(--color-muted); }
.pricing-price-block { margin-top: 14px; display: grid; gap: 10px; }
.pricing-price-line { margin: 0; display: grid; gap: 4px; }
.pricing-price {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--color-text);
}
.pricing-price-inline { font-weight: 800; }
.pricing-price-meta { color: var(--color-muted); font-size: 14px; }
.pricing-features {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.pricing-features li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--color-muted);
  line-height: 1.5;
}
.pricing-features li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}
.pricing-card-cta {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 10px;
}
.pricing-btn {
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  border-radius: 14px;
  transform: translateZ(0);
}
.btn.primary.pricing-btn { position: relative; overflow: hidden; }
.btn.primary.pricing-btn::after {
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.22), transparent 65%);
  transform: translateX(-35%);
  opacity: 0;
  transition: opacity .2s ease, transform .35s ease;
}
.btn.primary.pricing-btn:hover::after { opacity: 1; transform: translateX(0%); }
.pricing-card--popular {
  border-color: rgba(108,192,255,0.35);
  box-shadow: 0 26px 90px rgba(0,0,0,0.52), 0 0 0 1px rgba(108,192,255,0.12) inset;
  transform: translateY(-6px);
}
.pricing-card--popular:hover { transform: translateY(-10px); }
.pricing-popular {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #081018;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

.pricing-compare { margin-top: 34px; text-align: left; }
.pricing-compare-head { max-width: 820px; margin: 0 auto 14px; text-align: center; }
.pricing-compare-title { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.pricing-compare-subtitle { margin: 8px auto 0; max-width: 720px; }
.pricing-compare-card { padding: 8px 12px 14px; }
.pricing-table { margin-top: 0; }
.pricing-table th:first-child, .pricing-table td:first-child { width: 44%; }
.pricing-table td { color: var(--color-muted); }
.pricing-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.pricing-table-check { color: var(--color-text) !important; font-weight: 900; }
.pricing-table-dash { color: rgba(183,192,204,0.65); }

.pricing-faq { margin-top: 30px; text-align: left; }
.pricing-faq-head { max-width: 820px; margin: 0 auto 14px; text-align: center; }
.pricing-faq-grid { display: grid; gap: 12px; max-width: 920px; margin: 0 auto; }
.faq-item {
  background: rgba(18,19,23,0.60);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0,0,0,0.38);
  backdrop-filter: blur(18px) saturate(125%);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--color-text);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary::after {
  content: "–";
  transform: rotate(0deg);
  border-color: rgba(108,192,255,0.25);
}
.faq-panel { padding: 0 18px 16px; }
.faq-panel .lead { margin: 0; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--popular { transform: translateY(0); }
  .pricing-card--popular:hover { transform: translateY(-4px); }
  .pricing-table th:first-child, .pricing-table td:first-child { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card, .btn.primary.pricing-btn::after { transition: none; }
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  touch-action: none;
  overscroll-behavior: contain;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.6);
  backdrop-filter: blur(10px) saturate(140%);
}
.modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 36px));
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: rgba(18,19,23,0.72);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 120px rgba(0,0,0,0.65);
  backdrop-filter: blur(22px) saturate(140%);
  text-align: center;
}
.modal__title { margin: 10px 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.modal__desc { margin: 0; }
.modal__actions { margin-top: 14px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Online radio showcase image */
.dbs-showcase-card {
  margin-top: 18px;
  padding: 12px;
  overflow: hidden;
}
.dbs-showcase-image {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}

/* Downloads (free software list) */
.downloads-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 12px;
}
.downloads-list > li {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(18,19,23,0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.downloads-list a {
  color: var(--color-text);
  font-weight: 600;
}
.downloads-list a:hover {
  color: var(--color-accent);
}
.downloads-list__desc {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.55;
}
.downloads-list__desc p {
  margin: 0 0 8px;
}
.downloads-list__desc p:last-child {
  margin-bottom: 0;
}
.downloads-list__desc strong {
  color: var(--color-text);
  font-weight: 600;
}
.downloads-list__features {
  margin: 0;
  padding-left: 1.15rem;
}
.downloads-list__features li {
  margin-bottom: 4px;
}
.downloads-list__btn {
  width: fit-content;
  margin-top: 4px;
}
.downloads-list__meta {
  font-size: 13px;
  color: var(--color-muted);
}
.downloads-list code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Legal pages */
.legal-page .legal-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.legal-content h2 {
  font-size: 22px;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.legal-content h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.legal-content p,
.legal-content li {
  color: var(--color-muted);
  line-height: 1.7;
}
.legal-content ul {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}
.legal-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cookie consent (AdSense) */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(18,19,23,0.95);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  backdrop-filter: blur(16px) saturate(140%);
  display: grid;
  gap: 12px;
}
.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.55;
  text-align: left;
}
.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .cookie-consent__actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Modal mobile compatibility */
@media (max-width: 600px) {
  .modal {
    padding: 10px;
  }
  .modal__panel {
    padding: 16px 14px 14px;
    width: calc(100vw - 20px);
  }
  .modal__actions .btn {
    flex: 1 1 auto;
    text-align: center;
    width: 100%;
  }
}

/* ── Gallery pages ── */
.gallery-page {
  min-height: 80vh;
  padding: 120px 20px 60px;
  background-color: #0a0a0a;
}
.gallery-page__header {
  text-align: center;
  margin-bottom: 60px;
}
.gallery-page__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.gallery-page__subtitle {
  color: #aaa;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.gallery-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(108,192,255,0.2);
}
.gallery-card__cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #111;
}
.gallery-card__body {
  padding: 20px;
  text-align: left;
}
.gallery-card__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.3;
}
.gallery-card__meta {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

/* Gallery detail */
.gallery-detail {
  min-height: 80vh;
  padding: 120px 20px 60px;
  background-color: #0a0a0a;
  color: #fff;
}
.gallery-detail__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.gallery-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}
.gallery-detail__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.gallery-detail__date {
  color: #aaa;
  margin: 0;
  font-size: 0.95rem;
}
.gallery-detail__download {
  padding: 12px 24px;
  background-color: #f1c40f;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.15s ease;
  min-height: 48px;
  white-space: nowrap;
}
.gallery-detail__download:hover {
  background-color: #d4ac0d;
  transform: translateY(-1px);
}
.gallery-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(600px, 70vh);
  background-color: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
.gallery-slideshow__slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease-in-out;
}
.gallery-slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-slideshow__nav:hover {
  background-color: rgba(0,0,0,0.75);
}
.gallery-slideshow__nav--prev { left: 12px; }
.gallery-slideshow__nav--next { right: 12px; }
.gallery-slideshow__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  pointer-events: none;
}
.gallery-slideshow__progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gallery-slideshow__progress-track {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}
.gallery-slideshow__progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #f1c40f;
  transition: width 0.4s ease;
}
.gallery-slideshow__progress-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-slideshow__caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(rgba(0,0,0,0.55), transparent);
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-photo-list {
  margin-top: 40px;
}
.gallery-photos__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gallery-photo-list__heading,
.gallery-photos__heading {
  font-size: 1.1rem;
  color: #aaa;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.gallery-view-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18,19,23,0.8);
}
.gallery-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: #aaa;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-view-toggle__btn:hover {
  color: #eef2f6;
  background: rgba(255,255,255,0.05);
}
.gallery-view-toggle__btn--active {
  background: rgba(241,196,15,0.15);
  color: #f1c40f;
}
.gallery-view-toggle__btn + .gallery-view-toggle__btn {
  border-left: 1px solid rgba(255,255,255,0.12);
}
.gallery-photos__items--list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-photos__items--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 16px;
}
.gallery-photo-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-photo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(26,26,26,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  text-align: left;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.gallery-photo-item:hover,
.gallery-photo-item--active {
  border-color: rgba(241,196,15,0.45);
  background: rgba(30,30,30,0.95);
}
.gallery-photo-item--active {
  box-shadow: 0 0 0 1px rgba(241,196,15,0.25) inset;
}
.gallery-photo-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #222;
}
.gallery-photo-item__name {
  color: #eef2f6;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}
.gallery-photo-item__index {
  color: #666;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 28px;
  flex-shrink: 0;
}
.gallery-photo-tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: rgba(26,26,26,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.gallery-photo-tile:hover,
.gallery-photo-tile--active {
  border-color: rgba(241,196,15,0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.gallery-photo-tile--active {
  box-shadow: 0 0 0 1px rgba(241,196,15,0.25) inset, 0 8px 24px rgba(0,0,0,0.35);
}
.gallery-photo-tile__image {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: #222;
}
.gallery-photo-tile__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-photo-tile__index {
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
}
.gallery-photo-tile__name {
  color: #eef2f6;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-empty {
  padding: 48px 24px;
  text-align: center;
  background-color: #1a1a1a;
  border-radius: 16px;
  color: #888;
}
.gallery-loading,
.gallery-error {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0a0a0a;
  color: #fff;
  padding: 24px;
  text-align: center;
}
.gallery-error { color: #f87171; }

/* Gallery password modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  padding: 16px;
  touch-action: none;
  overscroll-behavior: contain;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
}
.gallery-modal__panel {
  background-color: #1e1e1e;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.gallery-modal__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.35rem;
}
.gallery-modal__desc {
  color: #aaa;
  margin-bottom: 30px;
  line-height: 1.6;
}
.gallery-modal__input {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #333;
  background-color: #0a0a0a;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.gallery-modal__input:focus {
  outline: none;
  border-color: rgba(241,196,15,0.5);
}
.gallery-modal__error {
  color: #f87171;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.gallery-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-modal__btn {
  flex: 1;
  min-width: 120px;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  min-height: 48px;
}
.gallery-modal__btn--cancel {
  background-color: transparent;
  border: 1px solid #555;
  color: #fff;
}
.gallery-modal__btn--submit {
  flex: 2;
  background-color: #f1c40f;
  border: none;
  color: #000;
  font-weight: 700;
}
.gallery-modal__btn--submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Gallery photo lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: auto;
}
.gallery-lightbox__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-shrink: 0;
}
.gallery-lightbox__title {
  color: #eef2f6;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.gallery-lightbox__close {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-lightbox__close:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}
.gallery-lightbox__stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 8px 16px;
}
.gallery-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  pointer-events: none;
}
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.gallery-lightbox__nav--prev { left: 12px; }
.gallery-lightbox__nav--next { right: 12px; }
.gallery-lightbox__footer {
  flex-shrink: 0;
  padding: 10px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gallery-lightbox__counter {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Homepage gallery section header */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 16px;
  flex-wrap: wrap;
}
.home-gallery-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: block;
}
.home-gallery-card__cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.home-gallery-card__body {
  padding: 20px;
  text-align: left;
}
.home-gallery-card__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
}
.home-gallery-card__meta {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

/* ── Premium mobile enhancements (site-wide) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .cookie-consent {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  header .container.nav {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 880px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 48px; }
  .gallery-page,
  .gallery-detail {
    padding: 96px 16px 48px;
  }
  .gallery-page__header { margin-bottom: 40px; }
  .subfooter {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .brand span {
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .hero { padding: 64px 0 40px; }
  .container { padding: 0 16px; }
  .input,
  textarea,
  select,
  .gallery-modal__input {
    font-size: 16px;
  }
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .gallery-page,
  .gallery-detail {
    padding: 88px 12px 40px;
  }
  .gallery-grid { gap: 16px; }
  .gallery-detail__header {
    flex-direction: column;
    align-items: stretch;
  }
  .gallery-detail__download {
    width: 100%;
    text-align: center;
  }
  .gallery-slideshow {
    aspect-ratio: 4 / 3;
    max-height: min(420px, 55vh);
    border-radius: 12px;
  }
  .gallery-slideshow__nav {
    width: 44px;
    height: 44px;
  }
  .gallery-slideshow__nav--prev { left: 8px; }
  .gallery-slideshow__nav--next { right: 8px; }
  .gallery-photo-item__thumb {
    width: 52px;
    height: 52px;
  }
  .gallery-photos__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .gallery-view-toggle {
    width: 100%;
  }
  .gallery-view-toggle__btn {
    flex: 1;
    justify-content: center;
  }
  .gallery-photos__items--grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
    gap: 12px;
  }
  .gallery-lightbox__header {
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .gallery-lightbox__close {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 40px;
  }
  .gallery-lightbox__stage {
    padding: 0 4px 8px;
    max-height: calc(100dvh - 100px);
  }
  .gallery-lightbox__footer {
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .gallery-lightbox__counter { font-size: 0.75rem; }
  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .gallery-lightbox__nav--prev { left: 4px; }
  .gallery-lightbox__nav--next { right: 4px; }
  .gallery-modal {
    padding: 12px;
  }
  .gallery-modal__panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .gallery-modal__actions {
    flex-direction: column;
  }
  .gallery-modal__btn { width: 100%; flex: none; }
  .section-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .section-header-row .btn {
    width: 100%;
    text-align: center;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    padding: 18px 0 14px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2px;
  }
  .footer-grid h4 {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  .footer-grid a { font-size: 12px; line-height: 1.7; }
  .footer-grid .lead {
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  footer .brand { gap: 8px; }
  footer .brand-logo { width: 28px; height: 28px; }
  footer .brand span { font-size: 0.82rem; max-width: none; }
  footer .subfooter {
    font-size: 10px;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 8px;
  }
  footer .subfooter > div:first-child {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
  }
  .admin-footer-link { font-size: 10px; }
  h1.h2, .h2 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .card h3, .card h4 { font-size: 1.05rem; }
  .nav { padding: 12px 0; }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .nav-links a {
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .legal-page .legal-content { padding: 0 4px; }
  .downloads-list > li { padding: 12px 14px; }
  .downloads-list__btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .brand span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gallery-photo-item {
    padding: 8px 10px;
    gap: 10px;
  }
  .gallery-photo-item__name { font-size: 0.875rem; }
}
