/* ============================
   FUN SUN — Excursion Knowledge Base
   Premium internal portal styles
   ============================ */

:root {
  /* Palette — desert luxury */
  --bg: #0e0d0b;
  --bg-2: #161410;
  --surface: #1c1916;
  --surface-2: #221e1a;
  --line: #2d2722;
  --line-soft: #25201c;
  --text: #f3ecdf;
  --text-2: #c5bba8;
  --text-3: #8a8170;
  --muted: #6a6155;
  --gold: #d4a655;
  --gold-2: #e8c378;
  --gold-deep: #a8823a;
  --sand: #d8c8a8;
  --accent: #c75a3c;
  --good: #6ba368;
  --warn: #d4a655;
  --bad: #c75a3c;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  --shadow-soft: 0 4px 16px -4px rgba(0,0,0,.25);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================
   TOP BAR
   ============================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -2px rgba(212,166,85,.4);
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name span {
  color: var(--gold);
  margin-left: 2px;
  font-style: italic;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
}
.search-wrap input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 50px 10px 40px;
  color: var(--text);
  font-size: 14px;
  width: 320px;
  transition: all 0.2s ease;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(212,166,85,.1);
}
.search-wrap kbd {
  position: absolute;
  right: 10px;
  font-size: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--text-3);
  font-family: var(--font-body);
}

.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.lang-toggle button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: 7px;
  transition: all 0.18s ease;
  letter-spacing: 0.04em;
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--bg);
}
.lang-toggle button:not(.active):hover {
  color: var(--text);
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.18s ease;
}
.admin-link:hover {
  background: var(--surface-2);
  border-color: var(--gold-deep);
  color: var(--text);
}
.admin-link svg { width: 15px; height: 15px; }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  padding: 90px 32px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,166,85,.08) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, rgba(199,90,60,.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg::before {
  display: none;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--gold-deep);
  border-radius: 100px;
  margin-bottom: 28px;
  background: rgba(212,166,85,.04);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.hero-stats span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

/* ============================
   CATEGORY NAV
   ============================ */
.cat-nav {
  position: sticky;
  top: 80px;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.cat-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.cat-pill:hover {
  border-color: var(--gold-deep);
  color: var(--text);
}
.cat-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.cat-pill em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0,0,0,.18);
  border-radius: 100px;
  padding: 1px 7px;
  min-width: 22px;
  text-align: center;
}
.cat-pill:not(.active) em {
  background: var(--bg);
  color: var(--text-3);
}

/* ============================
   GRID
   ============================ */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.5), 0 0 0 1px rgba(212,166,85,.1);
}

.card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card-image::before {
  display: none;
}
.card-image-placeholder {
  font-family: var(--font-display);
  font-size: 60px;
  color: rgba(212,166,85,.18);
  position: relative;
  z-index: 1;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14,13,11,.92);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  z-index: 2;
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}

.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-meta-info {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-meta-cta {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-meta-cta svg { width: 12px; height: 12px; }

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-3);
}
.no-results svg { width: 48px; height: 48px; opacity: 0.4; }

/* ============================
   MODAL
   ============================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 30px 16px;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.85);
}
.modal-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  z-index: 10;
  transition: all 0.18s ease;
}
.modal-close:hover {
  background: var(--surface);
  color: var(--text);
}
.modal-close svg { width: 16px; height: 16px; }

.modal-hero {
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.modal-hero::before {
  display: none;
}
.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.modal-hero-icon {
  font-family: var(--font-display);
  font-size: 110px;
  color: rgba(212,166,85,.22);
  position: relative;
  z-index: 1;
}

.modal-body {
  padding: 36px 44px 44px;
}

.modal-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 5px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: 100px;
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.modal-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 32px;
}

.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-row:last-child { border-bottom: none; }
.info-row dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  padding-top: 2px;
}
.info-row dd {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 36px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.ticket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 13.5px;
}
.ticket-table th {
  background: var(--surface);
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.ticket-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  vertical-align: top;
}
.ticket-table tr:last-child td { border-bottom: none; }
.ticket-table td:first-child {
  color: var(--text);
  font-weight: 500;
}
.ticket-table .prime-cell {
  color: var(--accent);
  font-weight: 500;
}

.itinerary {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  margin-left: 12px;
}
.itinerary-item {
  position: relative;
  padding: 8px 0 18px;
}
.itinerary-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 14px;
  width: 11px;
  height: 11px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--gold-deep);
}
.itinerary-time {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.itinerary-activity {
  font-size: 14.5px;
  color: var(--text);
}

.bullet-list { list-style: none; padding: 0; }
.bullet-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid var(--line-soft);
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.notice-box {
  background: linear-gradient(135deg, rgba(212,166,85,.05), rgba(199,90,60,.04));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 12px;
}
.notice-box li::before { background: var(--gold-2); }

.restrict-box {
  background: linear-gradient(135deg, rgba(199,90,60,.08), transparent);
  border: 1px solid rgba(199,90,60,.4);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.restrict-box li::before { background: var(--accent); }

.notice-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.restrict-box .notice-title { color: var(--accent); }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.package-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.package-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 8px;
}
.package-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.flight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.flight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.flight-card-name {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.flight-card-duration {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
}

.yacht-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.yacht-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.yacht-pill::before {
  content: '⚓';
  color: var(--gold);
  opacity: 0.6;
}

.stops-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stop-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.stop-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 4px;
}
.stop-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 36px 32px;
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ============================
   ADMIN PAGE
   ============================ */
.admin-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.admin-header h1 em { font-style: italic; color: var(--gold); }

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-2);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--gold-deep);
}
.btn-danger {
  background: transparent;
  color: var(--accent);
  border-color: rgba(199,90,60,.4);
}
.btn-danger:hover {
  background: rgba(199,90,60,.1);
  border-color: var(--accent);
}

.admin-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.admin-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.admin-info-icon svg { width: 22px; height: 22px; }
.admin-info-text { flex: 1; }
.admin-info-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 3px;
}
.admin-info-text span {
  font-size: 13px;
  color: var(--text-2);
}

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table thead th {
  background: var(--surface-2);
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.admin-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--text);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table .cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 9px;
  border: 1px solid var(--gold-deep);
  border-radius: 100px;
  background: rgba(212,166,85,.04);
}
.admin-table .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.icon-btn.danger:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.icon-btn svg { width: 14px; height: 14px; }

/* Editor modal */
.editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,7,6,.88);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.editor-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.editor-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.editor-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}
.editor-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}
.editor-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.field {
  margin-bottom: 20px;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.18s ease;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-2);
}
.field-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}
.field-help {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.lang-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 10px;
  width: fit-content;
}
.lang-tabs button {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: 6px;
  transition: all 0.15s ease;
  letter-spacing: 0.04em;
}
.lang-tabs button.active {
  background: var(--gold);
  color: var(--bg);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--gold-deep);
  border-radius: 10px;
  padding: 12px 22px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  z-index: 400;
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast svg { width: 16px; height: 16px; color: var(--gold); }
@keyframes toastIn {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .topbar-inner { padding: 14px 18px; flex-wrap: wrap; }
  .search-wrap { order: 3; width: 100%; }
  .search-wrap input { width: 100%; }
  .brand-sub { display: none; }
  .hero { padding: 60px 20px 50px; }
  .hero-stats { gap: 36px; }
  .cat-nav-inner { padding: 0 20px; }
  .main { padding: 32px 20px 60px; }
  .modal-body { padding: 28px 24px 32px; }
  .modal-title { font-size: 28px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .info-row dt { padding-top: 0; }
  .admin-shell { padding: 24px 18px; }
  .admin-header h1 { font-size: 28px; }
  .admin-table thead { display: none; }
  .admin-table tbody td {
    display: block;
    border: none;
    padding: 4px 20px;
  }
  .admin-table tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .admin-table .actions { padding-top: 10px; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-stats strong { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .modal-card { max-height: 95vh; }
}
