:root {
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border-glass: #e2e8f0;
  --border-neon: rgba(16, 185, 129, 0.45);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent-green: #10b981;
  --accent-green-dark: #059669;
  --accent-green-light: #34d399;
  --accent-emerald: #10b981;
  --accent-green-tint: rgba(16, 185, 129, 0.08);
  --green-glow: 0 4px 20px rgba(16, 185, 129, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -6px rgba(15, 23, 42, 0.1), 0 6px 12px -2px rgba(15, 23, 42, 0.05);
}

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

html {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
              radial-gradient(circle at 85% 90%, rgba(5, 150, 105, 0.05) 0%, transparent 45%),
              #ffffff;
  color: var(--text-main);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  overflow-wrap: anywhere;
  color: #0f172a;
  line-height: 1.25;
}

a {
  color: var(--accent-green-dark);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #047857;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
}

/* Header */
.site-header {
  height: 68px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-green-dark);
  font-weight: 600;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #059669;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: var(--green-glow);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

/* Mobile Nav Styles */
@media (max-width: 900px) {
  .site-header {
    height: 56px;
  }
  .nav-desktop, .header-actions {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }
  .mobile-menu.is-visible {
    transform: translateY(0);
  }
  .mobile-menu a {
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-muted);
  }
  .mobile-menu a:hover {
    color: var(--accent-green-dark);
  }
}

/* Main Container */
main {
  flex: 1 0 auto;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Hero Section */
.hero {
  padding: 64px 24px 44px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #0f172a;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
}

/* Interactive Slider Feature */
.simulator-card {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 64px;
  box-shadow: 0 12px 36px -8px rgba(16, 185, 129, 0.12), var(--shadow-sm);
}

.simulator-header {
  text-align: center;
  margin-bottom: 32px;
}

.simulator-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  background: #f8fafc;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.control-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.control-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-green-dark);
  font-size: 1.15rem;
}

.custom-range {
  width: 100%;
  accent-color: var(--accent-green);
  cursor: pointer;
}

/* Visualization Display */
.sim-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sim-item {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sim-item.matched {
  border-color: var(--accent-green);
  background: #f0fdf4;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.15);
}

.sim-item.unmatched {
  opacity: 0.45;
  filter: grayscale(85%);
  background: #f8fafc;
}

.sim-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.matched .sim-status {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.unmatched .sim-status {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-dim);
}

.sim-item-name {
  font-size: 1.15rem;
  margin-bottom: 14px;
  font-weight: 700;
  color: #0f172a;
}

.sim-meter {
  margin-bottom: 12px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.meter-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-weight {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.fill-battery {
  background: linear-gradient(90deg, #10b981, #059669);
}

/* Card Style: Data Grid with Real Image Cover */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 32px;
}

.guide-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.12);
}

/* Media Header with Real Image */
.card-media-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.guide-card:hover .card-media-img {
  transform: scale(1.05);
}

.card-category-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Data Grid Card Header Component */
.card-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 18px;
  gap: 12px;
}

.grid-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.grid-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.grid-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
}

.card-title {
  font-size: 1.3rem;
  color: #0f172a;
}

.card-snippet {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.spec-badge {
  font-size: 0.8rem;
  color: var(--accent-green-dark);
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 600;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link span {
  transition: transform 0.2s ease;
}

.guide-card:hover .card-link span {
  transform: translateX(4px);
}

/* Supporting Section */
.supporting-section {
  padding: 64px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.supporting-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: 2.1rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.matrix-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.matrix-table th {
  padding: 16px 20px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border-glass);
  white-space: nowrap;
}

.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-main);
  white-space: nowrap;
}

.matrix-table tr:hover td {
  background: #f0fdf4;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

/* Article / Editorial Content */
.article-header {
  padding: 56px 24px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.article-category {
  font-size: 0.85rem;
  color: var(--accent-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #0f172a;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
}

.article-featured-wrap {
  max-width: 860px;
  margin: 24px auto 36px;
  padding: 0 24px;
}

.article-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 64px;
  font-size: 1.06rem;
  color: #334155;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 44px 0 16px;
  color: #0f172a;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: #1e293b;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.callout-box {
  background: #f0fdf4;
  border-left: 4px solid var(--accent-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 24px;
  margin: 32px 0;
  color: #166534;
  box-shadow: var(--shadow-sm);
}

.spec-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.spec-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-figure {
  font-size: 2.1rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-green-dark);
  margin-bottom: 8px;
}

.stat-descriptor {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Contact & Forms */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
}

.form-input, .form-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-input.is-invalid, .form-textarea.is-invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.field-error {
  font-size: 0.82rem;
  color: #dc2626;
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}

.submit-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 24px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  opacity: 0.95;
  box-shadow: var(--green-glow);
  transform: translateY(-1px);
}

.form-status {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

/* Facility Visual Container */
.facility-visual-box {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.facility-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.static-map-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
}

.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(16, 185, 129, 0.08) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(16, 185, 129, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
}

.map-pin-pulse {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--accent-green);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

/* Legal Pages */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #0f172a;
  border-bottom: 2px solid var(--border-glass);
  padding-bottom: 8px;
}

.legal-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Cookie Policy Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  background: #ffffff;
}

.cookie-table th, .cookie-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-glass);
  text-align: left;
}

.cookie-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
}

.cookie-table td {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-glass);
  padding: 64px 24px 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-company p {
  margin-top: 12px;
  max-width: 360px;
  line-height: 1.6;
}

.footer-col-title {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--accent-green-dark);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid var(--accent-green);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-cookie-accept {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-cookie-accept:hover {
  background: var(--accent-green-dark);
}

.btn-cookie-reject {
  background: #f1f5f9;
  border-color: var(--border-glass);
  color: var(--text-main);
}

.btn-cookie-reject:hover {
  background: #e2e8f0;
}

.btn-cookie-prefs {
  background: transparent;
  color: var(--text-dim);
  text-decoration: underline;
  border: none;
  padding: 8px;
}

.btn-cookie-prefs:hover {
  color: var(--accent-green-dark);
}

/* Preferences Modal */
.prefs-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.prefs-modal.is-visible {
  display: flex;
}

.prefs-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.prefs-card h3 {
  margin-bottom: 16px;
  color: #0f172a;
}

.prefs-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.prefs-option input[type="checkbox"] {
  accent-color: var(--accent-green);
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.prefs-buttons {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive breakpoint under 400px */
@media (max-width: 399px) {
  .header-inner {
    padding: 0 16px;
  }
  .brand-text {
    font-size: 0.98rem;
  }
  .section-container {
    padding: 40px 16px;
  }
  .simulator-card {
    padding: 20px 16px;
  }
  .controls-grid {
    grid-template-columns: 1fr;
    padding: 16px 12px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-data-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 14px;
  }
  .cookie-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-cookie {
    text-align: center;
    width: 100%;
  }
}