/* styles.css */
:root {
  --container: 1120px;

  /* Light defaults */
  --bg: #ffffff;
  --bg2: #f7f7f8;
  --card: rgba(255, 255, 255, 0.82);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 14px 40px rgba(2, 6, 23, 0.10);

  /* Accent: kurumsal kırmızı (az) */
  --accent: #b91c1c;
  --accent2: #ef4444;
  --accentSoft: rgba(185, 28, 28, 0.10);

  /* Glass header */
  --glassBg: rgba(255, 255, 255, 0.62);
  --glassBorder: rgba(15, 23, 42, 0.10);

  --radius: 18px;
  --radiusSm: 14px;
  --focus: 0 0 0 4px rgba(185, 28, 28, 0.14);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg2: #0f1a30;
  --card: rgba(15, 26, 48, 0.72);
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --border: rgba(229, 231, 235, 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);

  --glassBg: rgba(11, 18, 32, 0.62);
  --glassBorder: rgba(229, 231, 235, 0.12);
  --accentSoft: rgba(239, 68, 68, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 400px at 12% 10%, rgba(185, 28, 28, 0.12), transparent 60%),
    radial-gradient(700px 350px at 88% 18%, rgba(185, 28, 28, 0.08), transparent 60%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

/* Responsive Logo Fix */
@media (max-width: 480px) {
  .header .brand img {
    height: 42px !important;
    width: auto !important;
  }
}

/* Scrollbar (Chrome/Edge/Safari) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar-thumb {
  background: rgba(185, 28, 28, 0.45);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(185, 28, 28, 0.62);
  background-clip: content-box;
}

/* Scrollbar (Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 28, 28, 0.55) rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] * {
  scrollbar-color: rgba(239, 68, 68, 0.55) rgba(255, 255, 255, 0.06);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skiplink {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skiplink:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  z-index: 9999;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Header (Glass) */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--glassBg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glassBorder);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  user-select: none;
}

.brand__name {
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 15px;
}

.brand__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* Progress bar under header */
.progressWrap {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .progressWrap {
  background: rgba(255, 255, 255, 0.08);
}

.progressBar {
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links a {
  font-weight: 800;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  border: 1px solid transparent;
}

.nav__links a:hover {
  background: var(--accentSoft);
  text-decoration: none;
}

.nav__links a.is-active {
  background: var(--accentSoft);
  border-color: rgba(185, 28, 28, 0.35);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.10) inset;
  text-decoration: none;
}

.iconBtn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.iconBtn:hover {
  border-color: rgba(185, 28, 28, 0.25);
}

.iconBtn:focus {
  outline: none;
  box-shadow: var(--shadow), var(--focus);
}

/* Modern Theme Switch */
.themeSwitch {
  position: relative;
  width: 60px;
  height: 32px;
  border: 2px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.themeSwitch:hover {
  border-color: rgba(185, 28, 28, 0.35);
}

.themeSwitch:focus {
  outline: none;
  box-shadow: var(--shadow), var(--focus);
}

.themeSwitch__icon {
  position: absolute;
  left: 6px;
  font-size: 16px;
  transition: all 0.3s;
  z-index: 2;
}

html[data-theme="dark"] .themeSwitch__icon {
  left: 38px;
}

.themeSwitch__slider {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  transition: all 0.3s;
  left: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .themeSwitch__slider {
  left: 32px;
  background: var(--accent2);
}

html[data-theme="dark"] .themeSwitch {
  background: var(--bg2);
}

/* Story modal navigation buttons responsive */
@media (max-width: 620px) {
  .storyNavBtn {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 10px 5px !important;
    display: inline-block !important;
  }

  .storyNavBtn--prev {
    float: left;
  }

  .storyNavBtn--next {
    float: right;
  }
}

/* Mobile menu (fullscreen overlay) */
.nav__toggle {
  display: none;
}

.mobileOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobilePanel {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.mobileTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.mobileLinks {
  padding: 10px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobileLinks a {
  padding: 14px 14px;
  border-radius: 16px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.mobileLinks a.is-active {
  border-color: rgba(185, 28, 28, 0.45);
  background: var(--accentSoft);
}

.mobileFooter {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

/* Layout */
.hero {
  padding: 44px 0 16px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
  align-items: start;
}

.h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h3 {
  margin: 0 0 10px;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  margin: 10px 0;
}

.kv__k {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.kv__v {
  font-weight: 800;
}

.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.section {
  padding: 30px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
}

html[data-theme="dark"] .section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
}

.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sectionHead h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.sectionHead p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.item h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.item p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 950;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  border-color: rgba(185, 28, 28, 0.25);
}

.btn:focus {
  outline: none;
  box-shadow: var(--shadow), var(--focus);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.form label {
  display: block;
  font-weight: 950;
  font-size: 12px;
  margin-bottom: 6px;
}

/* Only apply chevron to selects */
.form select,
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  cursor: pointer;
}

html[data-theme="dark"] .form select,
html[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Stories */
#storiesContainer .story-item {
  position: relative;
  z-index: 1;
}

#storiesContainer .story-ring {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #e5e5e5;
  transition: transform 0.2s, box-shadow 0.2s;
}

#storiesContainer .story-ring.seen {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--border);
  background: transparent;
}

#storiesContainer .story-item:hover .story-ring {
  transform: scale(1.05);
}

/* Blog & General Card Enhancements */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Modern Form Controls */
.form-control,
.form-select,
.form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  /* input bg */
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accentSoft);
}

/* Custom Select Specifics */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

html[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.card:hover {
  /* Enabled hover effect */
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}



.toast.err {
  color: var(--accent);
}

/* Powered By */
.powered-by {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 10px;
  color: var(--muted);
  z-index: 99;
  background: var(--card);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.powered-by:hover {
  opacity: 1;
  color: var(--accent);
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  z-index: 2000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

.cookie-btns {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  /* WhatsApp Green */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
  border: none;
}

.chat-btn:hover {
  transform: scale(1.1);
}

.chat-popup {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 300px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chat-popup.open {
  display: flex;
}

.chat-header {
  background: #25D366;
  color: white;
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  padding: 16px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--card);
  color: var(--text);
}

.chat-send {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

/* Back-to-top button */
.toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 1000;
}

.toTop:hover {
  border-color: rgba(185, 28, 28, 0.25);
}

.toTop:focus {
  outline: none;
  box-shadow: var(--shadow), var(--focus);
}

.toTop.show {
  display: flex;
}

.footer {
  padding: 18px 0 34px;
  color: var(--muted);
  font-weight: 700;
}

.footerInner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .kv {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 620px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .h1 {
    font-size: 28px;
  }
}

/* SVG Icons */
.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2px;
}

.icon-lg .icon-svg {
  width: 32px;
  height: 32px;
}

.icon-xl .icon-svg {
  width: 40px;
  height: 40px;
}

.icon-2xl .icon-svg {
  width: 48px;
  height: 48px;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
}

/* Custom Select Dropdowns */
.form select,
select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
}

/* Utilities (replacing inline styles) */
.flex-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--muted);
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mt-4 {
  margin-top: 16px;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.fw-900 {
  font-weight: 900;
}

.fw-700 {
  font-weight: 700;
}

.fs-sm {
  font-size: 13px;
}

.fs-xs {
  font-size: 11px;
}

/* Story Ring & Modal */
.story-ring {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transition: transform 0.2s;
}

.story-ring.seen {
  background: var(--border);
}

.story-inner {
  background: var(--card);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  padding: 3px;
  /* border thickness simulation */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Progress Bar */
.modal-progress-container {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 20;
}

.modal-progress-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.modal-progress-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 2px;
}

.modal-progress-bar.active {
  animation: progressLoad linear forwards;
}

.modal-progress-bar.completed {
  width: 100%;
}

@keyframes progressLoad {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Story Modal content adjustments */
#storyModal .icon-svg {
  width: 60px;
  height: 60px;
  stroke-width: 1.5;
}

.themeSwitch__icon svg {
  display: block;
}

/* Map Dark Mode */
html[data-theme="dark"] iframe {
  filter: invert(90%) hue-rotate(180deg);
}

/* Custom Select UI (Generated by JS) */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}

/* Hide native select specifically when inside wrapper */
.custom-select-wrapper select {
  display: none !important;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.custom-select-trigger:after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 10px;
}

html[data-theme="dark"] .custom-select-trigger:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accentSoft);
  z-index: 101;
  /* Above dropdown */
}

.custom-select-wrapper.open .custom-select-trigger:after {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  /* Solid background to prevent overlap issues */
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  /* Very high z-index */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 250px;
  overflow-y: auto;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover,
.custom-option.selected {
  background: var(--accentSoft);
  color: var(--accent);
  font-weight: 700;
}

/* Dark Mode Logo Handling */
html[data-theme="dark"] .brand img {
  content: url("src/logo_dark.svg");
  filter: none;
}