:root {
  --bg: #071316;
  --surface: #ffffff;
  --surface-soft: #f3fbfb;
  --text: #13353f;
  --muted: #5e7880;
  --primary: #18a9ad;
  --primary-dark: #0f7f94;
  --secondary: #c7e133;
  --border: #d8ecec;
  --shadow: 0 16px 40px rgba(19, 83, 92, 0.10);
  --danger: #c84545;
  --success: #18a9ad;
  --warning: #d5df3f;
  --accent: #4fc0dd;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 34px;
  --transition: all 0.3s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #effbfb 0%, #f7fbef 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font: inherit; cursor: pointer; }
.section-shell {
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: 48px 0;
}
.page-gap-top { padding-top: 64px; }
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-link { min-width: 0; }
.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(24, 169, 173, 0.18));
}
.brand-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--primary);
  font-weight: 800;
}
.brand-title {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-actions { display: flex; gap: 12px; }

/* Topbar */
.ftc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 5vw;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(214, 229, 237, 0.9);
  box-shadow: 0 8px 24px rgba(13, 53, 77, 0.05);
}
.ftc-nav {
  display: flex;
  gap: 24px;
  font-weight: 700;
}
.ftc-nav a {
  color: var(--muted);
  position: relative;
  padding: 8px 4px;
}
.ftc-nav a:hover {
  color: var(--primary);
}
.ftc-nav a.active {
  color: var(--primary);
}
.ftc-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  animation: navUnderline 0.4s ease;
}
@keyframes navUnderline {
  from { width: 0; left: 50%; }
  to { width: 100%; left: 0; }
}

/* Hero */
.ftc-hero {
  display: grid;
  grid-template-columns: 1.3fr .85fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
}
.ftc-hero-copy {
  padding: 40px 0;
}
.ftc-hero-copy h1 {
  margin: 20px 0;
  font-size: clamp(38px, 5.3vw, 75px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #111827;
  font-weight: 900;
}
.hero-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.8;
  margin-top: 32px;
}
.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-login-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
}
.ftc-hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hero-visual-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(13, 53, 77, 0.08);
  transition: var(--transition);
}
.hero-visual-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(13, 53, 77, 0.12);
}
.visual-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.hero-visual-card h4 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 20px;
}
.hero-visual-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.ftc-accreditation {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: none;
  animation: none;
}
.forgot-link {
  color: var(--primary);
  font-weight: 700;
}
.forgot-link:hover {
  text-decoration: underline;
}
.ftc-home-hero-only {
  min-height: calc(100vh - 140px);
}
.ftc-auth-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 48px rgba(22, 30, 45, 0.12);
}
.ftc-auth-card h3 {
  margin: 0;
  font-size: 28px;
  color: var(--primary);
}
.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.compact-row {
  margin-top: 4px;
}
.pill-btn {
  border-radius: 999px;
}
.checkbox-row,
.auth-form .checkbox-row {
  display: inline-flex !important;
  flex-direction: row !important;
  grid-template-columns: none !important;
  gap: 1px;
  align-items: center;
  justify-content: flex-start;
  width: auto !important;
}
.checkbox-row input {
  width: auto !important;
  margin: 0;
  flex: 0 0 auto;
}
.checkbox-row span {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

/* Body Grid */
.ftc-body-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}
.ftc-filter-panel {
  position: sticky;
  top: 120px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: none;
  transition: var(--transition);
}
.filter-shell {
  display: grid;
  gap: 14px;
}
.filter-stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stack-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text);
}
.stack-toggle strong {
  font-size: 15px;
}
.stack-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.accordion-card:not(.open) .stack-body {
  display: none;
}
.accordion-card.open .stack-toggle {
  box-shadow: inset 0 -2px 0 rgba(24, 169, 173, 0.18);
}
.ftc-filter-panel:hover {
  box-shadow: none;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.filter-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}
.filter-group-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  gap: 10px;
}
.filter-group-toggle strong {
  flex: 1;
  text-align: left;
  color: var(--text);
  font-size: 15px;
}
.filter-group-toggle span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
  transition: var(--transition);
}
.filter-group-body {
  display: grid;
  gap: 4px;
}
.filter-group.collapsible:not(.open) .filter-group-body {
  display: none;
}
.filter-group.collapsible:not(.open) .filter-group-toggle span,
.accordion-card:not(.open) .stack-toggle span {
  transform: rotate(-90deg);
}
.filter-group label {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.filter-group label:hover {
  background: var(--surface-soft);
}
.filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.filter-actions .ghost-btn,
.filter-actions .primary-btn {
  width: 100%;
  justify-content: center;
}
.ftc-content-panel {
  display: grid;
  gap: 24px;
}
.tight-head {
  margin-bottom: 20px;
}
.section-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 800;
}
.filter-kicker {
  font-size: 15px;
}
.home-kicker {
  font-size: 20px;
  margin-bottom: 1px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #eef8fb;
  border: 1px solid #d5edf5;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.katalog-page {
  padding-top: 28px;
}
.katalog-head {
  align-items: flex-end;
  margin-bottom: 14px;
}
.katalog-head h2 {
  margin: 4px 0 4px;
}
.katalog-subcopy {
  margin: 4px 0 0;
  color: var(--muted);
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 16px;
  padding: 24px;
  margin-bottom: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.toolbar-search, .toolbar-sort {
  display: grid;
  gap: 8px;
}
.toolbar-search label, .toolbar-sort label {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.toolbar-search input, .toolbar-sort select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}
.results-head strong {
  color: var(--text);
  font-size: 18px;
}
.catalog-empty {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
}
.catalog-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Activity Card */
.ftc-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.modern-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  height: 100%;
}
.modern-surface {
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(19, 83, 92, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ftc-card-flyer-top {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eaf7f7;
  min-height: 250px;
}
.ftc-card-flyer-top img,
.ftc-card-flyer-placeholder {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: grid;
  place-items: center;
}
.ftc-card-flyer-placeholder {
  color: white;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.15;
  background: linear-gradient(180deg, #6bc7ce 0%, #2b8fa1 100%);
  text-align: left;
  align-content: end;
  padding: 18px;
}
.ftc-card-top-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17,24,39,0.82);
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.ftc-card-top-badge.left { left: 14px; }
.ftc-card-top-badge.right { right: 14px; }
.modern-copy {
  min-height: auto;
  padding: 18px 18px 20px;
  background: #fff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.modern-copy h3,
.ftc-content-panel .modern-copy h3 {
  margin: 0 0 6px !important;
  font-size: 25px !important;
  line-height: 1.18 !important;
  text-transform: uppercase !important;
  letter-spacing: -.01em !important;
  min-height: 0 !important;
  color: var(--primary) !important;
  font-weight: 900 !important;
}
.info-top-row {
  margin-bottom: 10px;
}
.top-info-text {
  font-size: 15px;
  font-weight: 700;
  color: #5f6d7a;
}
.compact-desc {
  margin: 0 0 12px;
  min-height: auto;
  font-size: 20px;
  line-height: 1.25;
  color: #4e5a66;
}
.ftc-card-meta-stack {
  display: grid;
  gap: 6px;
  color: #6d7682;
  font-weight: 600;
  font-size: 12px;
}
.compact-meta span {
  padding-bottom: 0;
  border-bottom: 0;
}
.slim-meta {
  font-size: 20px;
  margin-bottom: 16px;
  color: #111827;
  font-weight: 800;
}
.price-method-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
}
.big-price {
  font-size: 50px !important;
  line-height: 1;
  color: #111827;
}
.method-tag-inline {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  text-transform: capitalize;
}
.modern-bottom {
  gap: 10px;
  padding-top: 12px;
}
.dual-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  width: 100%;
}
.dual-actions .ghost-btn,
.dual-actions .primary-btn,
.dual-actions .disabled-btn {
  flex: 1 1 0;
  width: auto !important;
  text-align: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 20px;
  white-space: nowrap;
}
.full-detail-btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.ftc-activity-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, rgba(139,15,77,0.7), rgba(26,163,122,0.3), rgba(139,15,77,0.4));
  box-shadow: 0 20px 50px rgba(62, 19, 43, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 0.6s ease;
}
.ftc-activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(62, 19, 43, 0.25);
}
.ftc-card-surface {
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 24px;
  background: linear-gradient(135deg, #f8d4e3 0%, #d7ebfb 45%, #f4d1de 100%);
}
.ftc-card-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ftc-card-tags span {
  background: white;
  color: #111827;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
  transition: var(--transition);
}
.ftc-card-tags span:hover {
  transform: scale(1.05);
}
.ftc-card-main {
  display: grid;
  grid-template-columns: 1.45fr .72fr;
  gap: 24px;
}
.ftc-card-copy {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}
.ftc-card-copy h3 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: .94;
  color: var(--primary);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 900;
}
.ftc-card-date {
  margin: 20px 0 14px;
  font-weight: 800;
  color: #303d4d;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .05em;
}
.ftc-card-meta-line {
  display: flex;
  gap: 48px;
  margin-bottom: 16px;
  color: #243647;
  font-weight: 700;
}
.ftc-card-listing {
  margin-top: 12px;
  color: #2d3748;
  line-height: 1.8;
}
.ftc-card-listing ul {
  margin: 12px 0 0 22px;
  padding: 0;
}
.ftc-card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding-top: 28px;
}
.price-stack {
  display: grid;
  gap: 8px;
}
.ftc-price {
  font-size: 20px;
  letter-spacing: .01em;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.5;
}
.price-note {
  font-size: 13px;
  color: var(--muted);
}
.ftc-card-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ftc-card-flyer {
  border-radius: var(--radius-lg);
  min-height: 480px;
  background: linear-gradient(180deg, #c6ecff 0%, #dff5ff 38%, #d7efaf 39%, #8eba00 100%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.05);
}
.ftc-card-flyer span {
  font-size: clamp(38px, 3.5vw, 58px);
  line-height: .94;
  text-transform: uppercase;
  color: #111827;
  max-width: 240px;
  font-weight: 900;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.ftc-flyer-cloud {
  position: absolute;
  top: 50px;
  width: 140px;
  height: 56px;
  background: white;
  border-radius: 999px;
  box-shadow: 48px 0 0 0 white, 20px -20px 0 10px white;
  opacity: 0.9;
  animation: cloudFloat 6s infinite ease-in-out;
}
@keyframes cloudFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Timeline */
.timeline-shell {
  padding-top: 24px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline-card {
  min-height: 180px;
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(13, 53, 77, 0.12);
}
.timeline-card strong {
  font-size: 32px;
  color: var(--primary);
  font-weight: 900;
}
.timeline-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.timeline-card.past {
  opacity: 0.7;
  filter: grayscale(0.3);
}
.timeline-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.timeline-card[data-timeline="past"] .timeline-badge {
  background: var(--muted);
}

/* Footer */
.ftc-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, #111827, #0c1420);
  color: #d9e5f3;
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.footer-grid h4 {
  margin-top: 0;
  color: white;
  font-size: 20px;
  font-weight: 800;
}
.footer-grid p, .footer-grid li, .footer-grid a {
  color: #c8d5e4;
  line-height: 1.8;
  transition: var(--transition);
}
.footer-grid a:hover {
  color: white;
  text-decoration: underline;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Common */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  box-shadow: 0 20px 40px rgba(13, 53, 77, 0.12);
}
.about-layout, .about-stack {
  display: grid;
  gap: 24px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-columns, .split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.dashboard-hero {
  min-height: 180px;
}
.admin-dashboard-shell {
  padding-bottom: 48px;
}
.admin-head {
  align-items: flex-end;
}
.admin-head-copy,
.admin-muted {
  margin: 10px 0 0;
  color: var(--muted);
}
.admin-overview-grid {
  align-items: stretch;
}
.admin-hero-card {
  background: linear-gradient(135deg, rgba(139,15,77,.08), rgba(26,163,122,.08), rgba(255,255,255,1));
  border: 1px solid rgba(139,15,77,.15);
}
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.admin-stat-card {
  background: linear-gradient(180deg, #fff, #f9fcff);
}
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-card strong {
  font-size: 40px;
  color: var(--primary);
  font-weight: 900;
}
.table-like {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.card-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.subtle-pill {
  background: #f8fbfe;
  border-color: var(--border);
  color: var(--muted);
}
.revenue-value {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--primary);
  font-weight: 900;
  line-height: 1.1;
  margin-top: 10px;
}
.admin-action-card .action-list,
.admin-list-card .table-like {
  margin-top: 18px;
}
.action-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.metric-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}
.activity-meta {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.8;
}
.contact-grid {
  display: grid;
  gap: 14px;
}
.contact-grid > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.table-like > div, .training-row, .user-row {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
}
.table-like > div:hover, .training-row:hover, .user-row:hover {
  background: var(--surface);
  border-color: var(--primary);
}
.user-row > div:first-child, .training-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.role-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.role-controls select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.role-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.role-user {
  background: #eef6ff;
  color: #245f97;
}
.role-admin {
  background: #edf9f5;
  color: #117f61;
}
.role-super_admin {
  background: #fff2ea;
  color: #b85b22;
}

/* Buttons */
.primary-btn, .ghost-btn, .disabled-btn, .danger-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 20px rgba(139, 15, 77, 0.3);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 15, 77, 0.4);
}
.ghost-btn {
  color: var(--primary-dark);
  background: white;
  border: 1px solid var(--border);
}
.ghost-btn:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.danger-btn {
  color: white;
  background: var(--danger);
  box-shadow: 0 8px 20px rgba(200, 69, 69, 0.3);
}
.danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 69, 69, 0.4);
}
.disabled-btn {
  background: #edf2f5;
  color: #8c9aa5;
  cursor: not-allowed;
}
.block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.small {
  padding: 10px 14px;
  font-size: 14px;
}

/* Forms */
.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.auth-form label {
  display: grid;
  gap: 10px;
  font-weight: 700;
}
.auth-form input, .auth-form select, .auth-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
}
.auth-form textarea {
  resize: vertical;
  min-height: 96px;
}
.auth-note {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.auth-form input:focus, .auth-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 15, 77, 0.1);
}
.auth-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  background: #f6fbfe;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 33, 47, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.modal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-card {
  width: min(560px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 32px 64px rgba(10, 34, 51, .25);
  animation: modalSlideUp 0.4s ease;
}
.auth-switch-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-pane.hidden {
  display: none;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: #eef4f7;
  color: var(--primary-dark);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.close-btn:hover {
  background: var(--primary);
  color: white;
}
.map-embed-wrap {
  margin-top: 16px;
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.map-embed-wrap iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

/* Calendar */
.calendar-shell {
  padding-top: 40px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.calendar-month {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.calendar-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.calendar-day:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
}
.calendar-day.empty {
  background: transparent;
  border: 1px dashed var(--border);
  opacity: 0.5;
}
.day-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.day-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.event-tag {
  display: inline-flex;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-legend {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1160px) {
  .ftc-hero, .ftc-body-grid, .ftc-card-main, .footer-grid, .timeline-grid, .dashboard-grid, .dashboard-columns, .split-panels, .catalog-toolbar {
    grid-template-columns: 1fr;
  }
  .ftc-card-list {
    grid-template-columns: 1fr;
  }
  .ftc-filter-panel {
    position: static;
  }
}
@media (max-width: 760px) {
  .ftc-topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 4vw;
    gap: 14px;
  }
  .brand-wrap {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .ftc-nav, .nav-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .ftc-nav {
    gap: 10px 16px;
    font-size: 14px;
  }
  .nav-actions {
    gap: 10px;
  }
  .ftc-auth-card,
  .card,
  .stat-card,
  .modal-card,
  .catalog-toolbar {
    padding: 20px;
  }
  .ftc-card-copy {
    min-height: auto;
    padding: 24px;
  }
  .ftc-card-copy h3 {
    font-size: 34px;
  }
  .ftc-card-flyer {
    min-height: 220px;
  }
  .ftc-card-bottom, .remember-row, .results-head, .calendar-nav, .card-head-inline, .role-controls, .table-like > div, .training-row, .user-row {
    flex-direction: column;
    align-items: stretch;
  }
  .timeline-grid, .footer-grid, .ftc-card-list {
    grid-template-columns: 1fr;
  }
  .section-shell {
    width: min(94vw, 100%);
    padding: 28px 0;
  }
  .page-gap-top {
    padding-top: 28px;
  }
  .ftc-hero {
    padding-top: 28px;
    gap: 20px;
  }
  .ftc-hero-copy {
    padding: 16px 0;
  }
  .ftc-hero-copy h1 {
    font-size: 40px;
  }
  .hero-lead {
    font-size: 17px;
    line-height: 1.7;
  }
  .hero-cta,
  .action-list {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    display: grid;
  }
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calendar-day {
    min-height: 88px;
    padding: 12px;
  }
  .toolbar-search input,
  .toolbar-sort select,
  .auth-form input,
  .auth-form select,
  .primary-btn,
  .ghost-btn,
  .disabled-btn,
  .danger-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .brand-title {
    font-size: 18px;
  }
  .brand-kicker {
    font-size: 11px;
  }
  .ftc-hero-copy h1 {
    font-size: 34px;
  }
  .ftc-accreditation {
    font-size: 12px;
    line-height: 1.5;
  }
  .ftc-card-tags {
    gap: 8px;
  }
  .ftc-card-tags span,
  .hero-chip,
  .pill {
    font-size: 11px;
    padding: 8px 10px;
  }
  .ftc-price,
  .revenue-value,
  .stat-card strong {
    font-size: 28px;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day.empty {
    display: none;
  }
  .event-tag {
    white-space: normal;
  }
  .table-like > div,
  .training-row,
  .user-row,
  .contact-grid > div {
    padding: 14px;
  }
}

  }
  .event-tag {
    font-size: 9px;
    padding: 4px 4px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .calendar-legend {
    gap: 10px;
    justify-content: flex-start;
  }
  .legend-item {
    font-size: 12px;
  }
  .table-like > div,
  .training-row,
  .user-row,
  .contact-grid > div {
    padding: 14px;
  }
}
  padding: 14px;
  }
}
row,
  .contact-grid > div {
    padding: 14px;
  }
}
  padding: 14px;
  }
}
row,
  .contact-grid > div {
    padding: 14px;
  }
}
  padding: 14px;
  }
}
