/* =========================
   LIGHT REDESIGN — design.css
   (Only CSS changed; HTML/JS untouched)
   ========================= */

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html,body{height:100%;}
:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --ink:#0f172a;         /* dark slate text */
  --muted:#55627a;
  --line:#e6ebf5;
  --accent:#0ea5e9;      /* sky blue */
  --accent-2:#6366f1;    /* indigo */
  --success:#10b981;
  --danger:#ef4444;
  --ring: rgba(14,165,233,.35);
  --shadow: 0 10px 30px rgba(15,23,42,.08);
}

/* Base */
body{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(14,165,233,.08), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(99,102,241,.08), transparent 60%),
    linear-gradient(180deg, #f7f9ff, var(--bg));
  display:flex; justify-content:center;
  padding:48px 16px;
}

/* Container */
.mix-container{
  width:100%; max-width:1120px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:28px 28px 36px;
}

/* Header */
.mix-header{ text-align:center; margin-bottom:22px; }
.mix-logo{ width:200px; height:auto; margin:0 auto 10px; display:block; }
.mix-title{
  font-weight:800;
  font-size:clamp(22px,2.6vw,30px);
  letter-spacing:.2px;
  background:linear-gradient(90deg, #0b1220, #1f2937 40%, var(--accent) 90%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* Exchange panels */
.exchange-panel{
  display:flex; gap:18px; align-items:stretch;
  margin-bottom:18px;
}
.panel{
  flex:1; display:flex; flex-direction:column;
  background:linear-gradient(180deg,#ffffff, #fbfcff);
  border:1px solid var(--line);
  border-radius:16px; overflow:hidden;
}
.panel-label{
  padding:10px 16px;
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  color:var(--muted);
  background:#f7f9fe; border-bottom:1px dashed var(--line);
}
.panel-header{
  padding:14px 16px; display:flex; align-items:center; justify-content:center;
}

/* Amount (from) */
.from-panel .panel-header input{
  width:100%; max-width:220px;
  padding:12px 14px; text-align:center; font-size:18px; font-weight:800;
  border-radius:12px; border:1px solid var(--line); outline:none;
  background:#ffffff;
  transition: box-shadow .2s, border-color .2s, transform .05s;
}
.from-panel .panel-header input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--ring);
}

/* Receive (to) */
.to-panel .panel-header .receive-big{
  display:block; width:100%; max-width:220px;
  padding:12px 14px; text-align:center; font-size:18px; font-weight:800;
  border-radius:12px; border:1px dashed var(--line); background:#fcfdff; color:#0b1220;
}

/* Selects */
.panel-select{ padding:14px 16px; }
.custom-select{ position:relative; }
.select-trigger{
  display:flex; align-items:center; gap:10px; cursor:pointer;
  padding:12px; background:#ffffff; border:1px solid var(--line); border-radius:12px;
  transition: border-color .2s, box-shadow .2s;
}
.select-trigger:focus-visible{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 4px var(--ring);
}
.select-logo{ width:22px; height:22px; border-radius:999px; }
.select-value{ font-weight:700; }
.arrow{ margin-left:auto; color:#7c8aa6; }

/* Dropdown */
.options{
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:40;
  display:none; max-height:280px; overflow:auto;
  background:#ffffff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow);
}
.search-input{
  width:100%; padding:12px; border:none; outline:none;
  border-bottom:1px solid var(--line); background:#fbfcff;
  font-family:inherit;
}
.opt-group{ position:sticky; top:0; background:#fbfcff; padding:8px 12px; font-size:12px; color:var(--muted); }
.option{
  display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer;
  transition: background .12s;
}
.option:hover{ background:#f5f8ff; }
.option img{ width:20px; height:20px; }
.option span{ flex:1; white-space:nowrap; }

/* Swap button */
.mix-swap{
  align-self:center; margin-top:6px;
  border:none; cursor:pointer;
  padding:0 18px; line-height:46px; font-weight:800; font-size:18px; letter-spacing:.2px;
  color:#fff; background:linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:14px;
  box-shadow:0 12px 24px rgba(14,165,233,.25), 0 4px 12px rgba(99,102,241,.18);
  transition: transform .12s ease, filter .2s ease;
}
.mix-swap:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.mix-swap:active{ transform:translateY(0); }

/* Wallet form */
.mix-form label{
  display:block; margin-top:14px; margin-bottom:8px; color:var(--muted); font-weight:600; font-size:14px;
}
.mix-form input[type="text"]{
  width:100%; padding:14px 14px; border-radius:14px;
  border:1px solid var(--line); background:#ffffff; color:var(--ink);
  outline:none; transition:border-color .2s, box-shadow .2s, background .2s;
}
.mix-form input[type="text"]::placeholder{ color:#97a3bb; }
.mix-form input[type="text"]:focus{
  border-color:var(--accent); box-shadow:0 0 0 4px var(--ring);
}

/* Submit */
.mix-submit{
  display:block; width:100%; margin-top:18px;
  border:none; cursor:pointer;
  padding:16px; font-size:16px; font-weight:800; letter-spacing:.2px;
  color:#ffffff; background:linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:16px; box-shadow:0 10px 24px rgba(14,165,233,.25);
  transition: transform .12s ease, filter .2s ease;
}
.mix-submit:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.mix-submit:active{ transform:translateY(0); }

/* SEO section — add real air below button */
.seo-section{
  margin-top:40px;
  padding:24px 20px;
  background:linear-gradient(180deg,#ffffff, #fbfdff);
  border:1px solid var(--line);
  border-radius:18px;
}
.seo-section h2{ font-size:22px; margin-bottom:10px; }
.seo-section h3{ font-size:18px; margin-top:16px; margin-bottom:6px; }
.seo-section p{ color:#2b3345; line-height:1.7; margin:10px 0; }
.seo-section ul{ padding-left:18px; }
.seo-section li{ margin:6px 0; }

/* Responsive */
@media (max-width: 960px){
  .exchange-panel{ flex-direction:column; }
  .mix-logo{ width:170px; }
}

/* ===== PATCH: SEO block tidy, bullets, spacing ===== */
.seo-section{
  margin-top: 48px;              /* нормальный отступ ниже кнопки */
  border-radius: 16px;
  overflow: hidden;              /* сглаженные углы внутри карточки */
}

.seo-section h2{ margin: 0 0 12px; }
.seo-section h3{ margin: 18px 0 8px; }

.seo-section p{
  line-height: 1.7;
  color: #2b3345;
}

/* Красивые маркеры вместо стандартных точек */
.seo-section ul{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.seo-section li{
  position: relative;
  padding-left: 20px;
}
.seo-section li::before{
  content:"";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(90deg, var(--accent, #0ea5e9), var(--accent-2, #6366f1));
}

/* Аккуратная подсветка ссылок (Contact email и т.п.) */
.seo-section a{
  color: #0f73d2;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15,115,210,.35);
}
.seo-section a:hover{ border-bottom-color: rgba(15,115,210,.7); }

/* ===== FIX: dropdown поверх карточек и без обрезания ===== */

/* у панелей было overflow:hidden из-за скруглений — убираем */
.panel,
.panel-select{
  overflow: visible !important;
}

/* если где-то у контейнера стоит overflow, на всякий случай снимаем */
.mix-container,
.exchange-panel{
  overflow: visible !important;
}

/* якорь для absolute-позиционирования и высокий слой */
.custom-select{
  position: relative;
  z-index: 10;
}

/* сам список поверх всего */
.options{
  z-index: 9999 !important;   /* выше кнопки swap и соседней панели */
  box-shadow: 0 14px 34px rgba(15,23,42,.16);
  border-radius: 14px;
}

/* чтобы округлые углы панели не «съедали» выпадающий блок */
.panel { border-radius: 16px; }
.panel .select-trigger { border-radius: 12px; }

/* косметика списка (по скрину) */
.option{ padding: 12px 14px; }
.option:hover{ background: #f0f6ff; }
