:root{
  --bg: #0f1016;
  --bg-soft: #171925;
  --panel: #1d2030;
  --panel-2: #24283a;
  --text: #f5f7ff;
  --text-soft: #c7cbe0;
  --muted: #8c92ad;
  --border: rgba(255,255,255,0.08);
  --accent: #8a2be2;
  --accent-2: #b66dff;
  --accent-soft: rgba(138, 43, 226, 0.14);
  --danger: #ff5d73;
  --success: #25c481;
  --warning: #ffbf47;
  --shadow: 0 18px 40px rgba(0,0,0,0.34);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1100px;
  --header-h: 72px;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(138, 43, 226, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(182, 109, 255, 0.10), transparent 22%),
    linear-gradient(180deg, #0b0d13 0%, #10121a 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select{
  font: inherit;
}

button{
  border: 0;
  cursor: pointer;
  background: none;
}

ul{
  list-style: none;
}

.container{
  width: min(100% - 24px, var(--container));
  margin: 0 auto;
}

.page-wrap{
  padding-bottom: 100px;
}

.hidden{
  display: none !important;
}

/* =========================================================
   TOPBAR / HEADER
========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 300;
  backdrop-filter: blur(18px);
  background: rgba(11,13,19,0.78);
  border-bottom: 1px solid var(--border);
}

.site-header-inner{
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(138,43,226,0.35);
}

.brand-text{
  min-width: 0;
}

.brand-name{
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
}

.brand-tagline{
  font-size: 0.78rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.lang-switch a{
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: 0.22s ease;
}

.lang-switch a.active,
.lang-switch a:hover{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.header-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 700;
  transition: 0.22s ease;
}

.header-btn:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

/* =========================================================
   HERO
========================================================= */
.hero{
  padding: 26px 0 18px;
}

.hero .container{
  max-width: 560px;
}

.hero-card{
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(31,34,48,0.96), rgba(21,24,35,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  padding: 26px 18px;
}

.hero-card::before{
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(182,109,255,0.30), transparent 60%);
  pointer-events: none;
}

.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: #f5eaff;
  border: 1px solid rgba(182,109,255,0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-title{
  font-size: clamp(1.55rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-text{
  font-size: 0.98rem;
  color: var(--text-soft);
  max-width: 700px;
}

.hero-actions{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(138,43,226,0.34);
}

.btn-primary:hover{
  transform: translateY(-2px);
}

.btn-secondary{
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.1);
}

/* =========================================================
   SECTION
========================================================= */
.section{
  padding: 18px 0;
}

.section-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title{
  font-size: 1.18rem;
  font-weight: 900;
}

.section-subtitle{
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* =========================================================
   TIKTOK-STYLE STORY FEED
========================================================= */
#stories .container{
  max-width: 560px;
}

.story-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.story-card{
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 50px rgba(0,0,0,0.42);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.story-card:hover{
  transform: translateY(-2px);
  border-color: rgba(182,109,255,0.35);
}

.story-cover-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0f0f0f;
}

.story-cover{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-cover-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.10) 25%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.85) 100%);
}

.story-badges{
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(11,13,19,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.74rem;
  font-weight: 800;
}

.badge-featured{
  background: linear-gradient(135deg, rgba(138,43,226,0.92), rgba(182,109,255,0.92));
}

.story-body{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px;
}

.story-title{
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.story-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.story-meta-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}

.story-footer{
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-read-btn{
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(138,43,226,0.28);
}

.story-like-mini{
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.story-like-mini.liked{
  background: rgba(255,93,115,0.15);
  border-color: rgba(255,93,115,0.32);
  color: #ffd3db;
}

/* =========================================================
   STORY PAGE
========================================================= */
.story-shell{
  padding: 16px 0 110px;
}

.story-top{
  margin-bottom: 18px;
}

.story-top-card{
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31,34,48,0.95), rgba(20,22,32,0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
}

.story-top-title{
  font-size: clamp(1.28rem, 3.3vw, 2.2rem);
  line-height: 1.12;
  font-weight: 900;
  margin-bottom: 10px;
}

.story-top-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.story-reader{
  display: grid;
  gap: 16px;
}

.story-progress{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.story-progress::-webkit-scrollbar{
  display: none;
}

.story-progress-dot{
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  flex: 0 0 auto;
}

.story-progress-dot.active{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.reader-card{
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(31,34,48,0.96), rgba(18,20,29,0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.reader-card-image-wrap{
  position: relative;
  background: #111;
}

.reader-card-image{
  width: 100%;
  height: auto;
  object-fit: contain;
}

.reader-card-footer{
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reader-card-count{
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.reader-card-swipe{
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.story-actions-bar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 250;
}

.story-actions-inner{
  width: min(100%, 720px);
  margin: 0 auto;
  background: rgba(18,20,29,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.42);
  backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.story-action-btn{
  min-height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  padding: 0 8px;
  text-align: center;
}

.story-action-btn:hover{
  background: rgba(255,255,255,0.10);
}

.story-action-btn.like-btn.liked{
  background: rgba(255,93,115,0.15);
  border-color: rgba(255,93,115,0.32);
  color: #ffd3db;
}

/* =========================================================
   CTA SOCIAL
========================================================= */
.social-cta{
  margin-top: 18px;
}

.social-cta-card{
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(138,43,226,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(182,109,255,0.22);
  box-shadow: var(--shadow);
  padding: 18px;
}

.social-cta-title{
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.social-cta-text{
  color: var(--text-soft);
  font-size: 0.93rem;
  margin-bottom: 14px;
}

.social-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 800;
  transition: 0.22s ease;
}

.social-link:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
}

/* =========================================================
   ADS
========================================================= */
.ad-block{
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31,34,48,0.92), rgba(19,21,31,0.98));
  border: 1px dashed rgba(182,109,255,0.25);
  box-shadow: var(--shadow);
  padding: 14px;
}

.ad-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ad-code-wrap{
  color: var(--text-soft);
  overflow: auto;
}

/* =========================================================
   EMPTY / ALERTS
========================================================= */
.empty-state{
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31,34,48,0.92), rgba(19,21,31,0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px 18px;
  text-align: center;
}

.empty-state h3{
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.empty-state p{
  color: var(--text-soft);
  font-size: 0.95rem;
}

.flash{
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.flash-success{
  background: rgba(37,196,129,0.12);
  border-color: rgba(37,196,129,0.24);
  color: #cff8e5;
}

.flash-error{
  background: rgba(255,93,115,0.12);
  border-color: rgba(255,93,115,0.24);
  color: #ffd5db;
}

.flash-warning{
  background: rgba(255,191,71,0.12);
  border-color: rgba(255,191,71,0.24);
  color: #ffe9b9;
}

/* =========================================================
   PAGINATION
========================================================= */
.pagination{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pagination a,
.pagination span{
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 800;
}

.pagination a:hover{
  background: rgba(255,255,255,0.10);
}

.pagination .active{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  padding: 26px 0 34px;
}

.footer-card{
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   ADMIN
========================================================= */
.admin-shell{
  min-height: 100vh;
  padding: 18px 0 90px;
}

.admin-auth-wrap{
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.admin-auth-card{
  width: min(100%, 460px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(31,34,48,0.96), rgba(18,20,29,0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-auth-title{
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.admin-auth-subtitle{
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.admin-topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-title{
  font-size: 1.35rem;
  font-weight: 900;
}

.admin-subtitle{
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 4px;
}

.admin-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-card{
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31,34,48,0.96), rgba(18,20,29,0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-card-title{
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-box{
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 16px;
}

.stat-label{
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-value{
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.table-wrap{
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.admin-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255,255,255,0.02);
}

.admin-table th,
.admin-table td{
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
}

.admin-table th{
  color: #fff;
  font-weight: 900;
  background: rgba(255,255,255,0.03);
}

.admin-table td{
  color: var(--text-soft);
}

.table-title{
  color: #fff;
  font-weight: 800;
}

.admin-row-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.mini-btn:hover{
  background: rgba(255,255,255,0.10);
}

.mini-btn-danger{
  background: rgba(255,93,115,0.12);
  border-color: rgba(255,93,115,0.24);
  color: #ffd6dc;
}

.mini-btn-success{
  background: rgba(37,196,129,0.12);
  border-color: rgba(37,196,129,0.24);
  color: #d2f8e7;
}

/* =========================================================
   FORMS
========================================================= */
.form-grid{
  display: grid;
  gap: 14px;
}

.form-grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-group{
  display: grid;
  gap: 8px;
}

.form-label{
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-hint{
  color: var(--muted);
  font-size: 0.8rem;
}

.input,
.textarea,
.select,
.file-input{
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0 15px;
  outline: none;
  transition: 0.2s ease;
}

.textarea{
  min-height: 120px;
  padding: 14px 15px;
  resize: vertical;
}

.file-input{
  padding: 12px 15px;
}

.input:focus,
.textarea:focus,
.select:focus,
.file-input:focus{
  border-color: rgba(182,109,255,0.52);
  box-shadow: 0 0 0 4px rgba(138,43,226,0.12);
}

.form-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dual-block{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 14px;
}

.dual-block-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.dual-block-title{
  font-size: 0.98rem;
  font-weight: 900;
}

.lang-chip{
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(182,109,255,0.14);
  border: 1px solid rgba(182,109,255,0.22);
  color: #f3e8ff;
  font-size: 0.76rem;
  font-weight: 900;
}

.preview-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-box{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  min-height: 120px;
}

.preview-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-note{
  font-size: 0.82rem;
  color: var(--muted);
}

.code-box{
  width: 100%;
  min-height: 160px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 14px;
  resize: vertical;
  outline: none;
}

.code-box:focus{
  border-color: rgba(182,109,255,0.52);
  box-shadow: 0 0 0 4px rgba(138,43,226,0.12);
}

/* =========================================================
   UTILITIES
========================================================= */
.icon{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.text-muted{
  color: var(--muted);
}

.text-soft{
  color: var(--text-soft);
}

.text-danger{
  color: var(--danger);
}

.text-success{
  color: var(--success);
}

.text-center{
  text-align: center;
}

.mt-8{ margin-top: 8px; }
.mt-10{ margin-top: 10px; }
.mt-12{ margin-top: 12px; }
.mt-16{ margin-top: 16px; }
.mt-20{ margin-top: 20px; }
.mb-8{ margin-bottom: 8px; }
.mb-10{ margin-bottom: 10px; }
.mb-12{ margin-bottom: 12px; }
.mb-16{ margin-bottom: 16px; }
.mb-20{ margin-bottom: 20px; }

/* =========================================================
   DESKTOP
========================================================= */
@media (min-width: 700px){
  .container{
    width: min(100% - 36px, var(--container));
  }

  .hero-card{
    padding: 34px 26px;
  }

  .story-grid{
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .form-grid-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .preview-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-grid{
    grid-template-columns: 1.1fr 1.9fr;
  }
}

@media (min-width: 1024px){
  .story-grid{
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .brand-tagline{
    max-width: 280px;
  }

  .hero-card{
    padding: 40px 32px;
  }

  .story-shell{
    width: min(100% - 24px, 820px);
    margin: 0 auto;
  }
}

/* =========================================================
   VERY SMALL SCREENS
========================================================= */
@media (max-width: 420px){
  .site-header-inner{
    gap: 8px;
  }

  .brand-name{
    font-size: 0.94rem;
  }

  .brand-tagline{
    max-width: 120px;
  }

  .lang-switch a{
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .story-actions-inner{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-action-btn{
    min-height: 50px;
    font-size: 0.82rem;
  }

  .story-top-card,
  .hero-card,
  .admin-card,
  .admin-auth-card,
  .social-cta-card,
  .story-card,
  .reader-card{
    border-radius: 20px;
  }
}