:root {
    --bg: #0b0d12;             /* deep night */
    --card: #121621;           /* slate blue-gray */
    --muted: #8e9bb3;          /* cool gray */
    --text: #e8eefc;           /* near-white */
    --accent: #7c5cff;         /* electric violet */
    --accent-2: #22d3ee;       /* cyan */
    --accent-3: #f472b6;       /* pink */
    --ring: rgba(124, 92, 255, .55);
    --ok: #22c55e;             /* green */
    --warn: #f59e0b;           /* amber */
    --err: #ef4444;            /* red */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji","Segoe UI Emoji";
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; font-family: var(--sans); color: var(--text); background: radial-gradient(1200px 600px at 20% -10%, rgba(124,92,255,.15), transparent),
    radial-gradient(900px 400px at 100% 0%, rgba(34,211,238,.12), transparent),
    var(--bg);
    line-height: 1.6;
  }
  a { color: var(--accent-2); text-decoration: none; }
  a:hover { text-decoration: underline; }

  header {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: saturate(140%) blur(8px);
    background: linear-gradient(180deg, rgba(11,13,18,.9), rgba(11,13,18,.75));
    border-bottom: 1px solid rgba(124,92,255,.15);
  }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
  .row { display: flex; align-items: center; gap: 12px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important;}
  .logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
    box-shadow: 0 6px 18px rgba(124,92,255,.35);
  }
  .title { font-weight: 700; letter-spacing: .3px; text-align:left; }
  nav { margin-left: auto; }
  nav a { padding: 6px 10px; border-radius: 10px; }
  nav a:hover { background: rgba(124,92,255,.12); text-decoration: none; }

  main { padding: 24px 16px 8px; }

  /* Card */
  .card {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(124,92,255,.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
  }

  h1 { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); margin: 4px 0 12px; }
  .sub { color: var(--muted); margin-top: -6px; }

  .controls { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0 16px; }
  .control { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  label { font-weight: 600; font-size: .95rem; }
  select, button {
    border: 1px solid rgba(124,92,255,.35); background: #0f1320; color: var(--text);
    padding: 10px 12px; border-radius: 12px; outline: none; font-size: .95rem;
  }
  select:focus, button:focus, textarea:focus, input:focus { box-shadow: 0 0 0 3px var(--ring); }
  button { cursor: pointer; transition: transform .08s ease, opacity .2s ease; }
  button:hover { transform: translateY(-1px); }
  button:active { transform: translateY(0); }

  .btn-accent { background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.18)); }
  .btn-ghost { background: transparent; }

  .grid {
    display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start;
  }




/*  post page*/
.blog_header{background:#171a21;padding:24px;text-align:center;border-bottom:1px solid #27303a}
.blog_header h1{margin:0;font-size:2.2rem;color:#ffda8f}
.post_main{max-width:950px;margin:auto;padding:24px}
.post_main h2{color:#ffda8f;margin-top:2rem}
.post_main ul, .post_main ol{margin-left:1.4rem}
.post-card a{color:#8fd3fe;text-decoration:none}


.pages_sec{max-width:950px;margin:auto;padding:24px}
.pages_sec h2{color:#fff;margin-top:2rem}
.pages_sec ul, .pages_sec ol{margin-left:1.4rem}
.post-card a{color:#8fd3fe;text-decoration:none}


  @media (min-width: 900px) {
    .grid { grid-template-columns: 1fr 1fr; }
  }

  .area { position: relative; }
  .textarea {
    width: 100%; min-height: 220px; resize: vertical; padding: 14px 44px 14px 14px;
    border-radius: 14px; border: 1px solid rgba(124,92,255,.35); background: #0f1320; color: var(--text);
    font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.5; font-family: var(--sans);
  }
  .icon-btn {
    position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(124,92,255,.35); background: #0f1320;
  }
  .small { font-size: .85rem; color: var(--muted); }
  .count { display: flex; gap: 10px; align-items: center; }

  .tabbar { display: flex; gap: 8px; flex-wrap: wrap; }
  .tabbar button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(124,92,255,.35); background: #0f1320; }
  .tabbar button.active { background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(244,114,182,.18)); border-color: rgba(244,114,182,.45); }

  .toast { position: fixed; inset-inline: 0; bottom: 18px; display: none; justify-content: center; z-index: 50; }
  .toast .inner { background: #0f1320; border: 1px solid rgba(124,92,255,.35); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); }
  .show { display: flex; }

  .ad { width: 100%; height: 90px; border-radius: 12px; border: 1px dashed rgba(124,92,255,.35); display: grid; place-items: center; color: var(--muted); }

  section { margin: 22px 0; }
  footer { border-top: 1px solid rgba(124,92,255,.2); margin-top: 24px; }
  .foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 18px 16px; color: var(--muted); font-size: .95rem; }
  .foot a { color: var(--muted); }

  /* Prefers reduced motion */
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  } 