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

/* ── Dark theme (default) ── */
:root{
  --bg:#08090d;
  --surface:#12141b;
  --surface-2:#171a23;
  --border:rgba(255,255,255,.08);
  --border-hover:rgba(255,255,255,.18);
  --text:#ecedf2;
  --muted:#a0a6b5;
  --accent:#6da1ff;
  --accent-hover:#8bb5ff;
  --btn-text:#fff;
  --toggle-bg:rgba(255,255,255,.08);
  --toggle-hover:rgba(255,255,255,.16);
}

/* ── Light theme ── */
:root.light{
  --bg:#f3f5f9;
  --surface:#fff;
  --surface-2:#f7f9ff;
  --border:rgba(12,20,45,.1);
  --border-hover:rgba(12,20,45,.2);
  --text:#1a2236;
  --muted:#62708a;
  --accent:#366ae5;
  --accent-hover:#2d5acc;
  --btn-text:#fff;
  --toggle-bg:rgba(15,28,58,.08);
  --toggle-hover:rgba(15,28,58,.16);
}

html{
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:radial-gradient(circle at 10% 10%,rgba(109,161,255,.18),transparent 40%),var(--bg);
  color:var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:1.5rem 1.2rem 2.5rem;
  line-height:1.6;
  transition:background .3s,color .3s;
}

main{
  width:100%;
  max-width:980px;
}

/* ── Fixed controls ── */
.fixed-controls{
  position:fixed;
  top:1rem;
  right:1rem;
  z-index:120;
  display:flex;
  align-items:center;
  gap:.45rem;
}

.theme-toggle{
  position:fixed;
  top:1rem;
  right:1rem;
  width:42px;
  height:42px;
  border:none;
  border-radius:12px;
  background:var(--toggle-bg);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s,transform .2s;
  z-index:100;
}

.fixed-controls .theme-toggle{
  position:static;
}

.theme-toggle:hover{
  background:var(--toggle-hover);
  transform:translateY(-1px);
}

.theme-toggle:active{transform:translateY(0)}
.theme-icon{font-size:1.1rem;line-height:1}

/* ── Public pages ── */
.site-page{justify-content:flex-start}

.site-header{
  width:100%;
  max-width:980px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.9rem;
  margin-bottom:1rem;
}

.logo-wrap{
  width:110px;
  height:110px;
  border-radius:50%;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 12px 40px rgba(0,0,0,.15);
}

.logo-wrap--top{
  animation:float-logo 5s ease-in-out infinite;
}

.logo{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.site-nav{
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
  justify-content:center;
}

.site-nav a{
  color:var(--muted);
  text-decoration:none;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:999px;
  padding:.4rem .9rem;
  font-size:.86rem;
  transition:.2s ease;
}

.site-nav a:hover,
.site-nav a.active{
  color:var(--text);
  border-color:var(--border-hover);
  background:var(--surface-2);
  transform:translateY(-1px);
}

.lang-switcher{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.14rem;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(0,0,0,.15);
  backdrop-filter:blur(8px);
}

.lang-trigger{
  width:2.15rem;
  height:2.15rem;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#f2f6ff;
  font-size:1.05rem;
  line-height:1;
  cursor:pointer;
  transition:.2s ease;
}

.lang-trigger:hover{
  background:rgba(255,255,255,.12);
}

.lang-menu{
  position:absolute;
  top:calc(100% + .45rem);
  right:0;
  min-width:220px;
  max-height:280px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:.2rem;
  padding:.35rem;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(10,14,24,.86);
  backdrop-filter:blur(9px);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  z-index:150;
}

.lang-menu[hidden]{
  display:none !important;
}

.lang-option{
  display:flex;
  align-items:center;
  gap:.45rem;
  width:100%;
  border:1px solid transparent;
  background:transparent;
  color:#eef3ff;
  border-radius:10px;
  padding:.42rem .5rem;
  font-size:.82rem;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}

.lang-option:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.16);
}

.lang-option.active{
  background:rgba(58,114,236,.32);
  border-color:rgba(137,176,255,.42);
}

.lang-flag{
  font-size:.98rem;
  line-height:1;
}

.lang-name{
  font-weight:500;
}

.site-main{
  display:flex;
  flex-direction:column;
  gap:1.1rem;
}

.hero,
.guide-hero{
  text-align:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:2rem 1.2rem;
}

h1{
  font-size:clamp(1.8rem,3.6vw,2.7rem);
  line-height:1.15;
  letter-spacing:-.02em;
  margin-bottom:.85rem;
}

h2{
  font-size:clamp(1.15rem,2.2vw,1.5rem);
  line-height:1.25;
}

.tagline,
.guide-hero p{
  color:var(--muted);
  max-width:700px;
  margin:0 auto;
  font-size:1.02rem;
}

.hero-actions{
  display:flex;
  gap:.65rem;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:1.3rem;
}

/* ── Buttons ── */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.78rem 1.15rem;
  font-size:.94rem;
  font-weight:600;
  color:var(--btn-text);
  background:var(--accent);
  border:1px solid transparent;
  border-radius:12px;
  text-decoration:none;
  cursor:pointer;
  transition:all .2s ease;
  box-shadow:0 8px 20px rgba(48,92,206,.22);
}

.btn:hover{
  background:var(--accent-hover);
  transform:translateY(-1px);
}

.btn-secondary{
  color:var(--text);
  background:var(--surface-2);
  border-color:var(--border);
  box-shadow:none;
}

.btn-secondary:hover{
  background:var(--surface);
  border-color:var(--border-hover);
}

/* ── Feature cards ── */
.feature-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
}

.feature{
  padding:1.2rem .95rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  text-align:center;
  transition:.2s ease;
}

.feature:hover{
  border-color:var(--border-hover);
  transform:translateY(-2px);
}

.feature-icon{font-size:1.7rem;margin-bottom:.55rem}
.feature strong{display:block;font-size:1rem;margin-bottom:.35rem}
.feature span{font-size:.88rem;color:var(--muted);line-height:1.45}

.feature--animated{
  animation:pulse-card 5s ease-in-out infinite;
}

.mini-steps{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.2rem;
}

.mini-steps h2{margin-bottom:.85rem;text-align:center}

.mini-steps-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.65rem;
}

.mini-step{
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface-2);
  padding:.8rem;
}

.mini-step span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.5rem;
  height:1.5rem;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  font-size:.82rem;
  margin-bottom:.45rem;
}

.mini-step p{font-size:.88rem;color:var(--muted)}

/* ── Language support ── */
.language-support{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.1rem;
}

.language-support h2{
  text-align:center;
  margin-bottom:.45rem;
}

.language-support p{
  color:var(--muted);
  text-align:center;
  margin-bottom:.85rem;
  font-size:.93rem;
}

.language-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  justify-content:center;
}

.language-badge{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  background:var(--surface-2);
  border-radius:999px;
  padding:.32rem .66rem;
  font-size:.82rem;
  color:var(--muted);
}

/* ── Guide page ── */
.guide-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
}

.guide-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1.15rem;
}

.guide-card--wide{margin-top:.1rem}
.guide-card h2{margin-bottom:.7rem}

.guide-steps{
  list-style-position:inside;
  display:flex;
  flex-direction:column;
  gap:.55rem;
}

.guide-steps li,
.guide-list li{
  color:var(--muted);
}

.guide-list{
  list-style-position:inside;
  display:flex;
  flex-direction:column;
  gap:.4rem;
  margin-top:.45rem;
}

.support-card{
  width:100%;
}

.support-page .guide-hero h1,
.support-page .guide-hero p,
.support-page .support-label,
.support-page .support-hint{
  color:#eef3ff;
}

.support-limits{
  margin-top:.52rem;
  color:#e9efff;
  font-size:.88rem;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(10,14,24,.36);
  border-radius:10px;
  padding:.46rem .7rem;
  display:inline-block;
}

.support-form{
  display:flex;
  flex-direction:column;
  gap:.62rem;
}

.support-label{
  font-size:.92rem;
  color:var(--text);
  font-weight:600;
}

.support-input,
.support-textarea,
.support-file{
  width:100%;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(10,14,24,.48);
  color:#f4f7ff;
  border-radius:12px;
  padding:.72rem .82rem;
  font-size:.94rem;
  outline:none;
}

.support-input::placeholder,
.support-textarea::placeholder{
  color:#dbe4ff;
  opacity:1;
}

.support-file::file-selector-button{
  border:1px solid rgba(255,255,255,.28);
  background:rgba(16,24,40,.68);
  color:#eef3ff;
  border-radius:8px;
  padding:.34rem .62rem;
  margin-right:.52rem;
  cursor:pointer;
}

.support-textarea{
  resize:vertical;
  min-height:130px;
}

.support-file{
  padding:.54rem .64rem;
}

.support-input:focus,
.support-textarea:focus,
.support-file:focus{
  border-color:rgba(156,186,255,.6);
  box-shadow:0 0 0 2px rgba(98,156,255,.16);
}

.support-hint{
  margin-top:-.12rem;
  color:#dbe3f8;
  font-size:.82rem;
}

.support-status{
  min-height:1.2em;
  font-size:.89rem;
  color:#dbe3f8;
}

.support-status.is-success{
  color:#8fe3ae;
}

.support-status.is-error{
  color:#ffb6b6;
}

/* ── Guide with video background ── */
.guide-video{
  position:relative;
  background:transparent;
}

.guide-video .site-header,
.guide-video .guide-hero,
.guide-video .guide-card,
.guide-video .language-support,
.guide-video .trust-note{
  background:rgba(10,14,24,.52);
  border-color:rgba(255,255,255,.14);
  backdrop-filter:blur(7px);
}

.guide-video .site-header{
  width:100%;
  max-width:980px;
  padding:1rem .8rem;
  border-radius:20px;
  margin-top:.5rem;
}

.guide-video .site-nav a{
  background:rgba(10,14,24,.4);
  border-color:rgba(255,255,255,.18);
  color:#eaf0ff;
}

.guide-video .site-nav a:hover,
.guide-video .site-nav a.active{
  background:rgba(20,30,56,.6);
  border-color:rgba(156,186,255,.42);
}

.guide-video .guide-steps li,
.guide-video .guide-list li,
.guide-video .guide-hero p,
.guide-video .guide-hero h1,
.guide-video .guide-card h2,
.guide-video .language-support p,
.guide-video .site-footer,
.guide-video .site-footer a{
  color:#e3e9f8;
}

/* ── Footer ── */
.site-footer,
footer{
  width:100%;
  margin-top:1.35rem;
  font-size:.9rem;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  flex-wrap:wrap;
  max-width:980px;
}

.trust-note{
  width:100%;
  text-align:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:.72rem .86rem;
  color:var(--muted);
  font-size:.88rem;
  margin-bottom:.3rem;
}

.site-footer a,
footer a{
  color:var(--muted);
  text-decoration:none;
  transition:color .2s;
}

.site-footer a:hover,
footer a:hover{color:var(--text)}

.sep{opacity:.35}

/* ── Home minimal landing ── */
.home-landing{
  position:relative;
  height:100svh;
  min-height:100svh;
  overflow:hidden;
  justify-content:space-between;
  padding:1rem;
  background:var(--bg);
}

.home-bg{
  position:fixed;
  inset:0;
  z-index:-3;
  overflow:hidden;
}

.home-bg video{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:blur(1.8px) brightness(.7) saturate(1.05);
  transform:scale(1.015);
}

.home-bg-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 42%, rgba(18,24,42,.2) 0%, rgba(8,12,24,.44) 68%, rgba(6,9,16,.62) 100%),
    linear-gradient(180deg, rgba(10,14,26,.26), rgba(8,12,22,.48));
}

.home-top-links{
  width:100%;
  max-width:980px;
  display:flex;
  justify-content:center;
  gap:.55rem;
  padding-top:.2rem;
}

.home-top-links a{
  color:#eef3ff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(10,14,24,.33);
  border-radius:999px;
  padding:.45rem .95rem;
  font-size:.86rem;
  font-weight:500;
  transition:.2s ease;
  backdrop-filter:blur(6px);
}

.home-top-links a:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.34);
  background:rgba(12,18,32,.45);
}

.home-main{
  width:100%;
  max-width:980px;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:2rem;
}

.home-content{
  width:min(760px,100%);
  text-align:center;
  border:1px solid rgba(255,255,255,.2);
  border-radius:24px;
  padding:1.5rem 1.2rem;
  background:linear-gradient(180deg, rgba(9,13,25,.46), rgba(9,13,25,.62));
  backdrop-filter:blur(7px);
  box-shadow:
    0 24px 70px rgba(0,0,0,.33),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.home-logo{
  width:88px;
  height:88px;
  margin:0 auto .85rem;
}

.home-slogan{
  margin:0 auto .8rem;
  font-size:clamp(2rem,4.8vw,4rem);
  line-height:1.06;
  letter-spacing:-.03em;
  font-weight:650;
  max-width:12ch;
  text-wrap:balance;
  text-shadow:0 10px 30px rgba(0,0,0,.45);
  color:#ffffff;
}

.home-count{
  color:#f3f6ff;
  font-size:1rem;
  font-weight:420;
  margin-bottom:1.15rem;
}

.home-count #postsCountValue{
  font-size:clamp(1.45rem,3vw,2.1rem);
  font-weight:800;
  margin-left:.35rem;
  color:#fff;
  text-shadow:0 8px 22px rgba(57,118,255,.55);
}

.home-start-btn{
  min-width:240px;
  font-size:1rem;
  position:relative;
  overflow:hidden;
  border-color:rgba(255,255,255,.18);
  box-shadow:
    0 14px 30px rgba(54,106,229,.35),
    inset 0 1px 0 rgba(255,255,255,.28);
  animation:home-btn-float 3.8s ease-in-out infinite;
}

.home-start-btn::after{
  content:"";
  position:absolute;
  top:0;
  left:-130%;
  width:60%;
  height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
  transform:skewX(-20deg);
  animation:home-btn-shine 3.4s ease-in-out infinite;
}

.home-footer{
  width:100%;
  max-width:980px;
  text-align:center;
  color:rgba(245,247,255,.92);
  font-size:.9rem;
  margin-bottom:.4rem;
}

.home-footer p{
  margin:0;
  padding:.5rem .4rem;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}

@keyframes home-btn-float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-1px)}
}

@keyframes home-btn-shine{
  0%,76%{left:-130%}
  100%{left:145%}
}

/* ── Reveal animation ── */
.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .55s ease,transform .55s ease;
}

.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

.reveal-delay-1{transition-delay:.05s}
.reveal-delay-2{transition-delay:.12s}
.reveal-delay-3{transition-delay:.2s}

@keyframes float-logo{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}

@keyframes pulse-card{
  0%,100%{box-shadow:none}
  50%{box-shadow:0 12px 28px rgba(61,111,236,.12)}
}

/* ── Post page ── */
.post-page{max-width:720px;width:100%;padding:1rem 0}
.post-page h1{font-size:1.8rem;margin-bottom:1rem}

.loading-spinner{text-align:center;padding:3rem 0;color:var(--muted);font-size:1.2rem}

.media-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;margin-bottom:1.5rem}
.gallery-item{width:100%;border-radius:12px;object-fit:cover;max-height:300px;background:var(--surface);border:1px solid var(--border)}
video.gallery-item{max-height:400px}

.post-info{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.5rem;margin-bottom:1.5rem}
.info-row{padding:.4rem 0;font-size:.95rem}
.info-row .label{color:var(--muted);font-weight:500}
.info-row a{color:var(--accent);text-decoration:none}
.info-row a:hover{text-decoration:underline}

/* ── Status badges ── */
.status-badge{display:inline-block;padding:.35rem .75rem;border-radius:8px;font-size:.85rem;font-weight:600;margin-bottom:1rem}
.badge-active{background:rgba(34,197,94,.15);color:#22c55e}
.badge-pending{background:rgba(245,158,11,.15);color:#f59e0b}
.badge-closed{background:rgba(239,68,68,.15);color:#ef4444}
.badge-hidden{background:rgba(107,114,128,.15);color:#6b7280}

.status-actions{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.5rem;margin-bottom:1.5rem;text-align:center}
.status-actions p{margin-bottom:1rem;color:var(--muted)}
.btn-status{margin:.25rem;padding:.6rem 1.2rem;font-size:.9rem}
.btn-secondary{background:var(--surface-2);color:var(--text);box-shadow:none;border:1px solid var(--border)}
.btn-secondary:hover{background:var(--border-hover);transform:none;box-shadow:none}
.btn-danger{background:#ef4444;box-shadow:0 4px 12px rgba(239,68,68,.25)}
.btn-danger:hover{background:#dc2626}

.closed-banner{background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.3);border-radius:12px;padding:1rem;text-align:center;font-size:1.1rem;font-weight:600;color:#22c55e;margin-bottom:1.5rem}

/* ── Comments ── */
.comments-section{margin-top:1.5rem}
.comments-section h2{font-size:1.3rem;margin-bottom:1rem}
.comments-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}
.comment{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem}
.comment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem}
.comment-header strong{font-size:.9rem}
.comment-date{font-size:.8rem;color:var(--muted)}
.comment p{font-size:.9rem;line-height:1.5;margin:0}
.comment-media{display:flex;gap:.5rem;margin-top:.5rem;flex-wrap:wrap}
.comment-media-item{width:120px;height:120px;object-fit:cover;border-radius:8px;border:1px solid var(--border);cursor:pointer}
.comment-media-item:hover{opacity:.85}
.no-comments{color:var(--muted);text-align:center;padding:1rem 0}

.comment-form{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem}
.comment-form p{margin-bottom:.6rem;color:var(--muted)}
.comment-form textarea{width:100%;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.75rem;font-family:inherit;font-size:.9rem;resize:vertical}
.comment-form textarea:focus{outline:none;border-color:var(--accent)}
.taking-select{width:100%;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.7rem;margin-bottom:.6rem}
.comment-form-actions{display:flex;align-items:center;gap:.75rem;margin-top:.75rem;flex-wrap:wrap}
.file-upload-label{cursor:pointer;color:var(--accent);font-size:.9rem;font-weight:500}
.media-preview{display:flex;gap:.5rem;flex-wrap:wrap}
.media-thumb{width:50px;height:50px;object-fit:cover;border-radius:6px;border:1px solid var(--border)}
.btn-small{padding:.5rem 1rem;font-size:.85rem;border-radius:8px}

.auth-notice{text-align:center;padding:1rem;color:var(--muted);font-size:.9rem}

/* ── Media viewer ── */
.media-viewer{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:1rem;
}
.media-viewer-content{
  max-width:95vw;
  max-height:90vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.media-viewer-content img,
.media-viewer-content video{
  max-width:95vw;
  max-height:90vh;
  border-radius:10px;
  border:1px solid var(--border);
  background:#000;
}
.media-viewer-close{
  position:absolute;
  top:1rem;
  right:1rem;
  width:40px;
  height:40px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  color:#fff;
  background:rgba(255,255,255,.16);
  font-size:1.2rem;
}

.app-toast{
  position:fixed;
  left:50%;
  bottom:1.25rem;
  transform:translateX(-50%) translateY(10px);
  background:rgba(16,185,129,.95);
  color:#fff;
  padding:.7rem 1rem;
  border-radius:10px;
  font-size:.9rem;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  opacity:0;
  transition:all .2s ease;
  z-index:10000;
}
.app-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* ── Admin page ── */
.admin-page{max-width:900px;width:100%;padding:1rem 0}
.admin-page h1{font-size:1.8rem;margin-bottom:1.5rem}

.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-bottom:1.5rem}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem;text-align:center}
.stat-card span{display:block;font-size:2rem;font-weight:700}
.stat-card small{color:var(--muted);font-size:.85rem}

.admin-filters{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
.filter-btn{padding:.5rem 1rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer;font-size:.85rem;transition:all .2s}
.filter-btn:hover{border-color:var(--accent)}
.filter-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}

.admin-posts-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}
.admin-post-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem}
.admin-post-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}
.admin-post-id{font-weight:700;font-size:1.1rem}
.admin-post-body{font-size:.9rem;margin-bottom:.75rem;line-height:1.6}
.admin-post-actions{display:flex;gap:.5rem;flex-wrap:wrap}

.admin-pagination{display:flex;justify-content:center;align-items:center;gap:1rem}
.admin-pagination span{font-size:.9rem;color:var(--muted)}

/* ── Responsive ── */
@media(max-width:860px){
  .feature-cards,
  .mini-steps-grid,
  .guide-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .site-main{gap:.8rem}
  .hero,.guide-hero,.guide-card,.mini-steps{padding:1rem}
  .logo-wrap{width:96px;height:96px}
  .site-nav{gap:.35rem}
  .site-nav a{font-size:.8rem}
  .fixed-controls{top:.65rem;right:.65rem}
  .lang-switcher{padding:.12rem}
  .lang-trigger{width:1.95rem;height:1.95rem;font-size:.98rem}
  .lang-menu{min-width:190px;max-height:240px}
  .lang-option{font-size:.76rem;padding:.38rem .45rem}
  .trust-note{font-size:.82rem;padding:.65rem .72rem}
  .theme-toggle{width:38px;height:38px}
  .media-gallery{grid-template-columns:1fr}
  .admin-stats{grid-template-columns:1fr}

  .home-landing{padding:.8rem}
  .home-main{padding-top:2.3rem}
  .home-top-links{padding-top:.05rem}
  .home-top-links a{font-size:.8rem;padding:.4rem .78rem}
  .home-content{padding:1rem .8rem;border-radius:16px}
  .home-logo{width:74px;height:74px;margin-bottom:.55rem}
  .home-count{font-size:.95rem;margin-bottom:.9rem}
  .home-start-btn{min-width:210px}
  .home-footer{font-size:.78rem}
  .home-bg video{filter:blur(1px) brightness(.78) saturate(1.05)}
  .home-bg-overlay{
    background:
      radial-gradient(circle at 50% 42%, rgba(18,24,42,.12) 0%, rgba(8,12,24,.32) 68%, rgba(6,9,16,.48) 100%),
      linear-gradient(180deg, rgba(10,14,26,.16), rgba(8,12,22,.36));
  }
  .guide-video .site-header{padding:.8rem .55rem;border-radius:16px}
}

@media(max-height:700px){
  .home-main{padding-top:2rem}
  .home-top-links a{padding:.36rem .74rem}
  .home-content{padding:1rem .9rem}
  .home-logo{width:70px;height:70px;margin-bottom:.5rem}
  .home-slogan{font-size:clamp(1.6rem,4.4vw,2.4rem);margin-bottom:.55rem}
  .home-count{font-size:.9rem;margin-bottom:.65rem}
  .home-count #postsCountValue{font-size:clamp(1.5rem,3.2vw,2.2rem)}
  .home-start-btn{padding:.66rem 1rem}
  .home-footer{font-size:.74rem}
}
