:root {
  --bg:#0e0f14;
  --surface:#161820;
  --card:#1e2030;
  --border:#2a2d3e;
  --accent:#6c8fff;
  --accent2:#ff6b9d;
  --accent3:#4ecdc4;
  --accent4:#ffd93d;
  --accent5:#a78bfa;
  --text:#e8eaf6;
  --muted:#8b8fa8;
  --fr:#4f8ef7;
  --header-bg:rgba(14,15,20,0.95);
  --soft-surface:rgba(30,32,48,.78);
  --panel-gradient:linear-gradient(135deg, rgba(30,32,48,.96), rgba(22,24,32,.96));
}

@media (max-width: 900px) {
  .blog-summary-toggle {
    position: fixed;
    left: 0;
    top: 46%;
    z-index: 45;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 48px;
    min-height: 0;
    max-width: none;
    overflow: hidden;
    border: 1px solid rgba(79,142,247,.42);
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, rgba(79,142,247,.78), rgba(108,143,255,.72));
    color: transparent;
    padding: 0;
    font-size: 0;
    font-weight: 900;
    opacity: .78;
    box-shadow: 0 10px 24px rgba(79,142,247,.2);
    backdrop-filter: blur(10px);
  }

  .blog-summary-toggle::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: -3px;
    color: inherit;
    font-size: 0;
    line-height: 1;
  }

  .blog-summary-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
    margin-left: 3px;
  }

  .blog-article-summary {
    position: fixed;
    left: 0;
    top: 88px;
    bottom: 0;
    z-index: 44;
    display: grid;
    width: 50vw;
    min-width: 210px;
    max-width: 280px;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-105%);
    transition: transform .22s ease;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 0 14px 0 0;
    background: rgba(18,20,31,.97);
    padding: 1rem .85rem 1.4rem;
    box-shadow: 20px 0 44px rgba(0,0,0,.25);
    gap: 0;
  }

  .blog-article-summary.is-open {
    transform: translateX(0);
  }

  .blog-article-summary strong,
  .blog-article-summary a {
    white-space: normal;
  }

  .blog-article-summary a {
    border: 0;
    border-left: 2px solid transparent;
    justify-self: start;
    width: auto;
    max-width: 100%;
    border-radius: 7px;
    background: transparent;
    padding: .16rem .34rem;
    font-size: .76rem;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  :root[data-theme="light"] .blog-summary-toggle {
    border-color: rgba(79,142,247,.45);
    background: linear-gradient(135deg, rgba(79,142,247,.78), rgba(108,143,255,.72));
    box-shadow: 0 10px 24px rgba(79,142,247,.18);
  }

  :root[data-theme="light"] .blog-article-summary {
    background: rgba(255,255,255,.98);
  }
}

:root[data-theme="light"] {
  --bg:#f7f8ff;
  --surface:#ffffff;
  --card:#ffffff;
  --border:#dfe4f6;
  --accent:#6c8fff;
  --accent2:#f20d2e;
  --accent3:#4ecdc4;
  --accent4:#ffd93d;
  --accent5:#a78bfa;
  --text:#0e0f14;
  --muted:#626981;
  --fr:#4f8ef7;
  --header-bg:rgba(255,255,255,0.86);
  --soft-surface:rgba(255,255,255,.9);
  --panel-gradient:linear-gradient(135deg, rgba(255,255,255,.98), rgba(232,234,246,.9));
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
	background:var(--bg);
	color:var(--text);
	font-family:'DM Sans',sans-serif;
	font-weight:300;
	min-height:100vh;
	overflow-x:hidden;
	margin: auto;
}

:root[data-theme="light"] body {
  color-scheme: light;
  background:
    radial-gradient(circle at 12% 0%, rgba(108,143,255,.16), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(78,205,196,.14), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 48%, #eef2ff 100%);
}

:root[data-theme="light"] .sankru-page-hero,
:root[data-theme="light"] .sankru-setting-panel,
:root[data-theme="light"] .sankru-table-panel,
:root[data-theme="light"] .sankru-dashboard-title,
:root[data-theme="light"] .sankru-hub-card,
:root[data-theme="light"] .sankru-metric-grid article,
:root[data-theme="light"] .sankru-formula-card,
:root[data-theme="light"] .sankru-search-result,
:root[data-theme="light"] .seo-tools-hero,
:root[data-theme="light"] .seo-tool-card,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .favorites-page-hero,
:root[data-theme="light"] .favorites-link-card,
:root[data-theme="light"] .auth-card {
  background: var(--panel-gradient);
  border-color: var(--border);
  box-shadow: 0 20px 55px rgba(79,142,247,.14), 0 1px 0 rgba(255,255,255,.85) inset;
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select,
:root[data-theme="light"] .search-wrap input,
:root[data-theme="light"] .sankru-search-box {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

:root[data-theme="light"] .sankru-main-nav a:hover,
:root[data-theme="light"] .sankru-main-nav a.active,
:root[data-theme="light"] .sankru-admin-nav a:hover,
:root[data-theme="light"] .sankru-admin-nav a.active {
  background: rgba(108,143,255,.14);
  color: #0e0f14;
}

:root[data-theme="light"] .sankru-mobile-menu-btn,
:root[data-theme="light"] .sankru-profile-chip,
:root[data-theme="light"] .profile-dropdown {
  background: #fff;
  border-color: var(--border);
}

:root[data-theme="light"] .sankru-mobile-menu-btn {
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  border-color: rgba(108,143,255,.34);
  box-shadow: 0 10px 24px rgba(79,142,247,.16);
}

:root[data-theme="light"] .sankru-mobile-menu-btn span {
  background: #4f8ef7;
  box-shadow: 0 1px 0 rgba(255,255,255,.75);
}

:root[data-theme="light"] .sankru-mobile-menu-btn:hover,
:root[data-theme="light"] .sankru-app-header.menu-open .sankru-mobile-menu-btn {
  background: linear-gradient(135deg, #6c8fff, #4f8ef7);
  border-color: rgba(79,142,247,.75);
  box-shadow: 0 14px 30px rgba(79,142,247,.24);
}

:root[data-theme="light"] .sankru-mobile-menu-btn:hover span,
:root[data-theme="light"] .sankru-app-header.menu-open .sankru-mobile-menu-btn span {
  background: #ffffff;
}

@media (max-width: 760px) {
  :root[data-theme="light"] .sankru-app-header .sankru-main-nav {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(108,143,255,.18);
    border-radius: 12px;
    padding: .6rem;
    box-shadow: 0 18px 42px rgba(79,142,247,.14);
  }

  :root[data-theme="light"] .sankru-app-header .sankru-main-nav a {
    background: linear-gradient(135deg, #ffffff, #f2f5ff);
    border: 1px solid rgba(108,143,255,.22);
    color: #0e0f14;
    box-shadow: 0 8px 18px rgba(79,142,247,.08);
  }

  :root[data-theme="light"] .sankru-app-header .sankru-main-nav a:hover,
  :root[data-theme="light"] .sankru-app-header .sankru-main-nav a.active {
    background: linear-gradient(135deg, #6c8fff, #4f8ef7);
    border-color: rgba(79,142,247,.65);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79,142,247,.2);
  }
}

:root[data-theme="light"] header {
  box-shadow: 0 12px 34px rgba(14,15,20,.08);
}

:root[data-theme="light"] .sankru-search-box {
  box-shadow: 0 18px 44px rgba(108,143,255,.16), 0 0 0 4px rgba(108,143,255,.05);
}

:root[data-theme="light"] .sankru-search-result:hover,
:root[data-theme="light"] .sankru-hub-card:hover {
  border-color: rgba(78,205,196,.58);
  box-shadow: 0 18px 42px rgba(78,205,196,.14);
}

::-webkit-scrollbar{width:4px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px;}

/* ── HEADER ── */
header{
  position:sticky;
  top:0;
  z-index:200;
  background:var(--header-bg);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  padding:0 1.25rem;
  height:60px;
  display:flex;
  align-items:center;
  gap:.75rem;
}
.cikisbtn{
  padding:.3rem .85rem;
  border-radius:20px;
  background:pink;
  color:white;
  font-size:.75rem;
  font-family:'DM Sans',sans-serif;
  cursor:pointer;
  transition:all .2s;
  white-space:nowrap;
}

@media (max-width: 768px) {
    .cikisbtn {
        display: none !important;
    }
}

.logo{
  font-family:Arial, Helvetica, sans-serif;
  font-size:1.4rem;
  color:var(--text);
  flex-shrink:0;
  white-space:nowrap;
}

.logo span{color:var(--accent);font-style:italic;}
.logo-link{text-decoration:none;}

.favorites-nav-btn{
  padding:.3rem .85rem;
  border-radius:20px;
  border:1px solid var(--accent2);
  background:rgba(255,107,157,.08);
  color:var(--accent2);
  font-size:.75rem;
  font-family:'DM Sans',sans-serif;
  text-decoration:none;
  cursor:pointer;
  transition:all .2s;
  white-space:nowrap;
}

.favorites-nav-btn:hover{
  background:var(--accent2);
  color:#fff;
}

.search-wrap{
  flex:1;
  max-width:340px;
  position:relative;
}

.search-wrap input{
  width:100%;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  padding:.45rem 1rem .45rem 2.2rem;
  color:var(--text);
  font-family:'DM Sans',sans-serif;
  font-size:.85rem;
  outline:none;
  transition:border-color .2s;
}

.search-wrap input:focus{border-color:var(--accent);}
.search-wrap input::placeholder{color:var(--muted);}
.search-icon{position:absolute;left:.65rem;top:50%;transform:translateY(-50%);color:var(--muted);font-size:.85rem;}

.header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}

.header-primary-actions {
  margin-left: .25rem;
}

.header-account-actions {
  margin-left: auto;
  position: relative;
}

.profile-menu {
  position: relative;
}

.profile-toggle {
  padding: .3rem .85rem;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: rgba(108,143,255,.08);
  color: var(--accent);
  font-size: .75rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.profile-toggle:hover,
.profile-menu.open .profile-toggle {
  background: var(--accent);
  color: #fff;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 230px;
  display: grid;
  justify-items: center;
  gap: .45rem;
  border: 1px solid rgba(108,143,255,.28);
  border-radius: 18px;
  background: rgba(22,24,32,.98);
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
  padding: 1rem;
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  pointer-events: none;
  transform-origin: top right;
  transition: opacity .2s ease, transform .28s cubic-bezier(.2, 1.15, .25, 1);
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-avatar,
.profile-card-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent5));
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.profile-avatar img,
.profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  font-size: 1.35rem;
}

.profile-dropdown strong {
  max-width: 100%;
  color: var(--text);
  font-size: .92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown span {
  max-width: 100%;
  color: var(--muted);
  font-size: .75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown a {
  margin-top: .35rem;
  width: 100%;
  border-radius: 10px;
  background: rgba(108,143,255,.14);
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  padding: .55rem;
  text-align: center;
  text-decoration: none;
}

.profile-dropdown a:hover {
  background: var(--accent);
  color: #fff;
}

.formulas-toggle{
  padding:.3rem .85rem;
  border-radius:20px;
  border:1px solid var(--accent5);
  background:rgba(78,205,196,.08);
  color:var(--accent1);
  font-size:.75rem;
  font-family:'DM Sans',sans-serif;
  cursor:pointer;
  transition:all .2s;
  white-space:nowrap;
}

.formulas-toggle:hover,
.formulas-toggle.open{
  background:var(--accent5);
  color:#0e0f14;
}

.randombtn{
  padding:.3rem .85rem;
  border-radius:20px;
  border:1px solid var(--accent2);
  background:rgba(78,205,196,.08);
  color:var(--accent4);
  font-size:.75rem;
  font-family:'DM Sans',sans-serif;
  cursor:pointer;
  transition:all .2s;
  white-space:nowrap;
}

/* ── LAYOUT ── */
.layout{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 60px);}

/* ── SIDEBAR ── */
.sidebar{
  border-right:1px solid var(--border);
  padding:1.25rem 0;
  position:sticky;
  top:60px;
  height:calc(100vh - 60px);
  overflow-y:auto;
}

.sidebar::-webkit-scrollbar{width:2px;}

.verb-btn{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.55rem 1.25rem;
  background:transparent;
  border:none;
  color:var(--muted);
  font-family:'DM Sans',sans-serif;
  font-size:.85rem;
  cursor:pointer;
  justify-content: center;
  transition:all .15s;
  border-left:2px solid transparent;
}



.verb-btn:hover{
  color:var(--text);
  background:rgba(108,143,255,.05);
}

.verb-btn.active{
  color:var(--accent);
  background:rgba(108,143,255,.08);
  border-left-color:var(--accent);
}

.vb-fr{
  font-family:'DM Serif Display',serif;
  font-size:1rem;
  font-style:italic;
  color:inherit;
}

.vb-tr{font-size:.74rem;color:var(--muted);}
.verb-btn.active .vb-tr{color:rgba(108,143,255,.7);}
.verb-level{margin-left:auto;width:7px;height:7px;border-radius:50%;flex-shrink:0;}

/* ── FORMULAS PANEL ── */
.formulas-panel{
  display:none;
  position:fixed;
  top:60px;
  left:0;
  right:0;
  z-index:150;
  background:var(--header-bg);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  padding:1.5rem 2rem;
  max-height:calc(100vh - 60px);
  overflow-y:auto;
}

.formulas-panel.open{display:block;}

.fp-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1rem;
  max-width:1200px;
  margin:0 auto;

}

.fp-title{
  font-family:'DM Serif Display',serif;
  font-size:1.5rem;
  margin-bottom:1.25rem;
  text-align:center;
}

.fp-title em{color:var(--accent);font-style:italic;}

.fp-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px;
  padding:1rem 1.1rem;
}

.fp-tense{
  font-family:'DM Serif Display',serif;
  font-size:1rem;
  color:var(--text);
  margin-bottom:.2rem;
}

.fp-tense-tr{
  font-size:.72rem;
  color:var(--muted);
  margin-bottom:.65rem;
}

.fp-formula{
  font-family:'JetBrains Mono',monospace;
  font-size:.78rem;
  background:rgba(108,143,255,.08);
  border:1px solid rgba(108,143,255,.2);
  border-radius:6px;
  padding:.45rem .75rem;
  color:var(--accent);
  margin-bottom:.6rem;
  line-height:1.5;
}

.fp-endings{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.5rem;}
.fp-end{
  font-family:'JetBrains Mono',monospace;
  font-size:.7rem;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:4px;
  padding:.15rem .45rem;
  color:var(--accent4);
}

.fp-when{font-size:.75rem;color:var(--muted);line-height:1.55;}
.fp-when strong{color:var(--text);}

.fp-close{
  display:block;
  margin:1.5rem auto 0;
  padding:.45rem 1.5rem;
  border-radius:8px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--muted);
  font-family:'DM Sans',sans-serif;
  font-size:.8rem;
  cursor:pointer;
  transition:all .2s;
}

.fp-close:hover{
  border-color:var(--accent2);
  color:var(--accent2);
}

/* ── MAIN ── */
.main{padding:2rem 2.25rem;max-width:980px;}

/* VERB HEADER */
.favorite-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #999;
  padding: 0 8px;
  transition: transform 0.2s;
}

.favorite-btn:hover {
  transform: scale(1.2);
}

.favorite-btn.active {
  color: #e63946;
  animation: heartPop 0.3s ease;
}

.verb-favorite-btn {
  min-height: 42px;
  border: 1px solid rgba(255,107,157,.35);
  border-radius: 999px;
  background: rgba(255,107,157,.12);
  color: var(--accent2);
  padding: .5rem .85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1;
  transform: none;
}

.verb-favorite-btn:hover,
.verb-favorite-btn.active {
  background: var(--accent2);
  color: #ffffff;
  transform: translateY(-1px);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.favorites-section{
  margin-bottom:2rem;
  padding:1rem;
  background:linear-gradient(135deg,rgba(108,143,255,.08),rgba(255,107,157,.05));
  border:1px solid var(--border);
  border-radius:10px;
}

.favorites-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.9rem;
}

.favorites-kicker{
  color:var(--accent);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-weight:600;
  margin-bottom:.2rem;
}

.favorites-head h2{
  font-family:'DM Serif Display',serif;
  font-size:1.35rem;
  font-weight:400;
  font-style:italic;
}

.favorites-count{
  border:1px solid rgba(255,217,61,.22);
  border-radius:999px;
  color:var(--accent4);
  font-size:.72rem;
  padding:.18rem .6rem;
  white-space:nowrap;
}

.favorites-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:.65rem;
}

.favorite-card{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.7rem;
  text-align:left;
  background:rgba(30,32,48,.82);
  border:1px solid var(--border);
  border-radius:8px;
  padding:.72rem .8rem;
  color:var(--text);
  cursor:pointer;
  transition:border-color .2s,background .2s,transform .2s;
}

.favorite-card:hover,
.favorite-card.active{
  border-color:rgba(108,143,255,.65);
  background:rgba(108,143,255,.1);
  transform:translateY(-1px);
}

.favorite-card-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.15rem;
}

.favorite-card-fr{
  font-family:'DM Serif Display',serif;
  font-size:1rem;
  font-style:italic;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.favorite-card-tr{
  color:var(--muted);
  font-size:.72rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.favorite-card-meta{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-shrink:0;
}

.favorite-card-level{
  min-width:28px;
  border-radius:999px;
  color:#0e0f14;
  font-size:.66rem;
  font-weight:700;
  text-align:center;
  padding:.12rem .35rem;
}

.favorite-card-remove{
  color:var(--accent2);
  font-size:1rem;
  line-height:1;
  transition:transform .2s;
}

.favorite-card-remove:hover{transform:scale(1.15);}

.favorites-empty{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  min-height:72px;
  color:var(--muted);
  font-size:.82rem;
  border:1px dashed var(--border);
  border-radius:8px;
  background:rgba(255,255,255,.025);
}

.favorites-empty-icon{
  color:var(--accent2);
  font-size:1.1rem;
}

.favorites-link-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  background:rgba(30,32,48,.82);
  border:1px solid var(--border);
  border-radius:8px;
  padding:.85rem 1rem;
  color:var(--text);
  text-decoration:none;
  transition:border-color .2s,background .2s,transform .2s;
}

.favorites-link-card:hover{
  border-color:rgba(255,107,157,.55);
  background:rgba(255,107,157,.08);
  transform:translateY(-1px);
}

.favorites-link-card strong{
  display:block;
  font-size:.92rem;
  margin-bottom:.2rem;
}

.favorites-link-card small{
  display:block;
  color:var(--muted);
  font-size:.76rem;
}

.favorites-link-arrow{
  color:var(--accent2);
  font-size:1.25rem;
  flex-shrink:0;
}

.favorites-page{
  width:min(1080px,100%);
  margin:0 auto;
  padding:2.25rem;
}

.favorites-page-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  padding-bottom:1.5rem;
  margin-bottom:1.5rem;
  border-bottom:1px solid var(--border);
}

.favorites-page-hero h1{
  font-family:'DM Serif Display',serif;
  font-size:clamp(2.4rem,5vw,3.8rem);
  font-weight:400;
  font-style:italic;
  line-height:1;
  margin-bottom:.65rem;
}

.favorites-page-hero p{
  color:var(--muted);
  font-size:.95rem;
  line-height:1.6;
}

.favorites-page-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:.8rem;
}

.favorite-page-card{
  display:flex;
  align-items:center;
  gap:.75rem;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:8px;
  padding:.9rem;
  transition:border-color .2s,transform .2s,background .2s;
}

.favorite-page-card:hover{
  border-color:rgba(108,143,255,.55);
  background:rgba(108,143,255,.06);
  transform:translateY(-1px);
}

.favorite-page-card-main{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:.2rem;
  color:var(--text);
  text-decoration:none;
}

.favorite-page-fr{
  font-family:'DM Serif Display',serif;
  font-size:1.25rem;
  font-style:italic;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.favorite-page-tr,
.favorite-page-note{
  color:var(--muted);
  font-size:.78rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.favorite-page-remove{
  width:32px;
  height:32px;
  border:none;
  border-radius:50%;
  background:rgba(255,107,157,.1);
  color:var(--accent2);
  cursor:pointer;
  font-size:1rem;
  flex-shrink:0;
  transition:all .2s;
}

.favorite-page-remove:hover{
  background:var(--accent2);
  color:#fff;
}

.favorites-page-empty{
  grid-column:1/-1;
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  text-align:center;
  border:1px dashed var(--border);
  border-radius:10px;
  background:rgba(255,255,255,.025);
  padding:2rem;
}

.favorites-page-action{
  margin-top:.75rem;
  padding:.55rem 1rem;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-size:.85rem;
  font-weight:600;
}

.verb-header{
  margin-bottom:2rem;
  padding-bottom:1.75rem;
  border-bottom:1px solid var(--border);
}

.verb-title-row{
  display:flex;
  align-items:center;
  gap:1.25rem;
  flex-wrap:wrap;
  margin-bottom:.6rem;
}

.verb-main-title{
  font-family:'DM Serif Display',serif;
  font-size:clamp(2.2rem,5vw,3.5rem);
  font-style:italic;
  color:var(--text);
  line-height:1;
}

.verb-translation{
  font-size:1.1rem;
  color:var(--muted);
  font-weight:300;
}

.verb-tags{display:flex;gap:.4rem;flex-wrap:wrap;}

.verb-tag{
  padding:.18rem .6rem;
  border-radius:4px;
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.04em;
}

.tag-group{background:rgba(78,205,196,.13);color:var(--accent3);}
.tag-level{background:rgba(255,217,61,.1);color:var(--accent4);}
.tag-freq{background:rgba(167,139,250,.1);color:var(--accent5);}

.verb-note{
  margin-top:.85rem;
  padding:.7rem 1rem;
  background:rgba(108,143,255,.06);
  border-left:3px solid var(--accent);
  border-radius:0 6px 6px 0;
  font-size:.85rem;
  color:var(--muted);
  line-height:1.6;
}

.verb-note strong{color:var(--text);font-weight:500;}

/* TENSE NAV */
.tense-nav{
  display:flex;
  gap:.35rem;
  flex-wrap:wrap;
  margin-bottom:1.75rem;
}

.tense-nav-btn{
  padding:.4rem .95rem;
  border-radius:8px;
  border:1px solid rgba(242,13,46,.34);
  background:rgba(242,13,46,.12);
  color:rgba(255,255,255,.82);
  font-size:.77rem;
  font-family:'DM Sans',sans-serif;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(242,13,46,.08);
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tense-nav-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(255,107,157,.72);
  background:linear-gradient(135deg, rgba(255,107,157,.36), rgba(242,13,46,.28));
  color:#ffffff;
  box-shadow:0 14px 30px rgba(242,13,46,.18);
}

.tense-nav-btn.tns-active{
  background:linear-gradient(135deg, #f20d2e, #ff6b9d);
  border-color:rgba(255,107,157,.82);
  color:#fff;
  box-shadow:0 16px 34px rgba(242,13,46,.28);
}

:root[data-theme="light"] .tense-nav-btn{
  border-color:rgba(242,13,46,.24);
  background:rgba(242,13,46,.08);
  color:#8b2032;
  box-shadow:0 10px 24px rgba(242,13,46,.08);
}

:root[data-theme="light"] .tense-nav-btn:hover{
  border-color:rgba(242,13,46,.46);
  background:linear-gradient(135deg, rgba(255,107,157,.2), rgba(242,13,46,.14));
  color:#5e1020;
}

:root[data-theme="light"] .tense-nav-btn.tns-active{
  background:linear-gradient(135deg, #f20d2e, #ff6b9d);
  border-color:rgba(242,13,46,.68);
  color:#ffffff;
}

/* TENSE BLOCK */
.tense-block{margin-bottom:2.25rem;animation:fadeIn .35s ease;}

.tense-header{
  display:flex;
  align-items:center;
  gap:.85rem;
  margin-bottom:1.1rem;
  flex-wrap:wrap;
}

.tense-num{
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  color:var(--muted);
  width:22px;
}

.tense-name{
  font-family:'DM Serif Display',serif;
  font-size:1.25rem;
  color:var(--text);
}

.tense-name-tr{
  font-size:.8rem;
  color:var(--muted);
  font-weight:300;
}

.tense-use-badge{
  margin-left:auto;
  padding:.2rem .65rem;
  border-radius:4px;
  background:rgba(255,107,157,.1);
  color:var(--accent2);
  font-size:.7rem;
  font-weight:500;
  white-space:nowrap;
}

/* inline formula strip */
.tense-formula-strip{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem;
  background:rgba(108,143,255,.06);
  border:1px solid rgba(108,143,255,.15);
  border-radius:6px;
  padding:.35rem .75rem;
  color:var(--accent);
  margin-bottom:1rem;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}

.tfs-label{
  font-family:'DM Sans',sans-serif;
  font-size:.68rem;
  color:var(--muted);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.tense-body{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.1rem;
}

.conj-table{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}

.conj-table-head{
  padding:.55rem .9rem;
  background:rgba(255,255,255,.03);
  border-bottom:1px solid var(--border);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:500;
}

.conj-row{
  display:flex;
  align-items:center;
  padding:.5rem .9rem;
  border-bottom:1px solid rgba(42,45,62,.5);
  transition:background .15s;
}

.conj-row:last-child{border-bottom:none;}
.conj-row:hover{background:rgba(108,143,255,.04);}

.conj-pronoun{
  font-family:'JetBrains Mono',monospace;
  font-size:.75rem;
  color:var(--muted);
  width:78px;
  flex-shrink:0;
}

.conj-form{
  font-family:'DM Serif Display',serif;
  font-size:1.05rem;
  font-style:italic;
  color:var(--fr);
  flex:1;
}

.conj-tr{
  font-size:.74rem;
  color:var(--muted);
  text-align:right;
  font-weight:300;
}

.examples-panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.examples-head{
  padding:.55rem .9rem;
  background:rgba(255,255,255,.03);
  border-bottom:1px solid var(--border);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:500;
}

.example-item{
  padding:.7rem .9rem;
  border-bottom:1px solid rgba(42,45,62,.5);
  transition:background .15s;
}

.example-item:last-child{border-bottom:none;}
.example-item:hover{background:rgba(108,143,255,.04);}

.example-fr{
  font-family:'DM Serif Display',serif;
  font-style:italic;
  font-size:.93rem;
  color:var(--text);
  line-height:1.4;
  margin-bottom:.25rem;
}

.example-fr mark{
  background:rgba(108,143,255,.2);
  color:var(--accent);
  border-radius:3px;
  padding:0 2px;
  font-style:italic;
}

.example-tr{
  font-size:.76rem;
  color:var(--muted);
  font-weight:300;
  line-height:1.4;
}

.usage-note{
  grid-column:1/-1;
  background:rgba(78,205,196,.05);
  border:1px solid rgba(78,205,196,.13);
  border-radius:8px;
  padding:.85rem 1rem;
  font-size:.82rem;
  line-height:1.7;
  color:var(--muted);
}

.usage-note strong{color:var(--accent3);font-weight:500;}

.tip-box{
  grid-column:1/-1;
  background:rgba(255,217,61,.04);
  border:1px solid rgba(255,217,61,.13);
  border-radius:8px;
  padding:.85rem 1rem;
  font-size:.82rem;
  line-height:1.7;
  color:var(--muted);
  margin-top:.25rem;
}

.tip-box strong{color:var(--accent4);font-weight:500;}

.sep{
  height:1px;
  background:linear-gradient(to right,var(--border),transparent);
  margin:1.75rem 0;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

/* ====================== */
/* MOBİL TASARIM */
/* ====================== */
@media(max-width:768px){
  
	.layout{grid-template-columns:1fr;}
  
	.sidebar{
	  position:static;
	  height:auto;
	  border-right:none;
	  border-bottom:1px solid var(--border);
	  padding:0.5rem 0;
	}
  
	.sidebar-group-title{display:none;}
  
	.verb-btn{
	   margin:.4rem .75rem;
       border-radius:12px;
       border:1px solid var(--border);
       background:var(--card);
       padding:.9rem 1rem;
	}
  
  .verb-btn.active{
	  border-color:var(--accent);
      box-shadow: 0 0 0 1px var(--accent), 0 8px 20px rgba(108,143,255,.15);
	}
  
	.vb-tr,.verb-level{display:none;}
  .main{padding:1.25rem;}
  .tense-body{grid-template-columns:1fr;}
  .favorites-section{padding:.85rem;margin-bottom:1.5rem;}
  .favorites-head{align-items:flex-start;}
  .favorites-grid{
    display:flex;
    overflow-x:auto;
    padding-bottom:.2rem;
    scrollbar-width:none;
  }
  .favorites-grid::-webkit-scrollbar{display:none;}
  .favorite-card{min-width:170px;}
  .favorites-nav-btn{padding:.3rem .55rem;font-size:.7rem;}
  .favorites-page{padding:1.25rem;}
  .favorites-page-hero{
    align-items:flex-start;
    flex-direction:column;
    margin-bottom:1rem;
  }
  .favorites-page-grid{grid-template-columns:1fr;}
  .favorite-page-card{padding:.85rem;}
}

/* EMPTY STATE */
.empty-state {
    padding: 0.5rem 0.25rem;
    text-align: center;
    color: var(--muted);
}

.empty-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.6;
}

.empty-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.empty-subtext {
    font-size: 0.82rem;
    line-height: 1.4;
}

/* MOBİL HEADER */
@media(max-width:768px) {

    header { padding: 0 25px !important; 
	margin: 20px 10px 15px 10px;
	border-bottom:none;
	}
    
    .logo { 
        font-size: 1.18rem !important; 
        flex-shrink: 0 !important;
    }

	
	
    .search-wrap { margin: 0 8px !important; }

    .search-wrap input {
        width: 100px !important;
        transition: width 0.4s ease !important;
        padding-left: 2.3rem !important;
    }

    .search-wrap input:focus { width: 85% !important; }

    .header-actions {
        display: flex !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }

    .header-account-actions {
        margin-left: auto !important;
    }

    .formulas-toggle,
    .randombtn {
        padding: 0.3rem 0.55rem !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
}

/* MOBİLDE LOGO GİZLE */
@media(max-width:768px) {
    .logo { display: none !important; }
}


/* ====================== */
/* MOBİL SEVİYE KARTLARI */
/* ====================== */
.mobile-levels {
    display: none;
    padding: 12px 10px;
    background: linear-gradient(to bottom, 
    transparent 0%, 
    transparent 40%, 
    #6c8fff 370%
);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    gap: 10px;
	justify-content: center;
    scrollbar-width: none;
}

.mobile-levels::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-levels {
        display: flex !important;
    }
}

.mobile-level-btn {
    min-width: 68px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #6c8fff;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.mobile-level-btn.active {
    background: #ffffff;
    border-color: var(--accent);
    color:#6c8fff;
    transform: translateY(-3px);
   
}

:root[data-theme="light"] .fiiler-page .mobile-levels {
    background: linear-gradient(to bottom, #ffffff 0%, #f4f7ff 100%);
    border-bottom-color: rgba(79,142,247,.18);
    box-shadow: 0 10px 24px rgba(79,142,247,.08);
}

:root[data-theme="light"] .fiiler-page .mobile-level-btn {
    border-color: rgba(79,142,247,.22);
    background: #ffffff;
    color: #30405f;
    box-shadow: 0 8px 18px rgba(79,142,247,.1);
}

:root[data-theme="light"] .fiiler-page .mobile-level-btn:hover,
:root[data-theme="light"] .fiiler-page .mobile-level-btn.active {
    border-color: rgba(79,142,247,.48);
    background: linear-gradient(135deg, #4f8ef7, #4ecdc4);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79,142,247,.18);
}

:root[data-theme="light"] .fiiler-page .mobile-level-label {
    color: rgba(48,64,95,.72);
}

:root[data-theme="light"] .fiiler-page .mobile-level-btn.active .mobile-level-label,
:root[data-theme="light"] .fiiler-page .mobile-level-btn:hover .mobile-level-label {
    color: rgba(255,255,255,.82);
}

.level-content {
    display: none;
    padding-left: 0.5rem;
}

.level-content.open {
    display: block;
}

.mobile-level-content.open {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 1px 1px;
}

.level-header {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    user-select: none;
}

.level-header:hover {
    background: rgba(108,143,255,.08);
}

.level-header.open {
    background: rgba(108,143,255,.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}



/* HERO LAYOUT */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 60px;
}

/* TEXT SIDE */
.hero-text {
  flex: 1;
}

.tag {
  display: inline-block;
  background: #ffe5ec;
  color: #6c8fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #6c8fff;
}

.hero-text p {
  font-size: 1.1rem;
  color: #aaaaaa;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* CTA */
.cta-dw {
  display: inline-block;
  background: #6c8fff;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta-dw:hover {
  background: white;
  color: #6c8fff;
  transform: translateY(-2px);
}

.cta-log{
  display: inline-block;
  background: #ffd93d;
  
  color: #0e0f14;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta-log:hover {
  background: #0e0f14;
  color: #ffd93d;
  border: 1px solid #ffd93d;
  transform: translateY(-2px);
}

/* FEATURES */
.features {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature {
  background: #6c8fff;
  width: 220px;
  padding: 25px 20px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.icon {
  width: 45px;
  height: 35px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature p {
  font-size: 14px;
  color: white;
  line-height: 1.4;
}

hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 40px 0;
}

/* IMAGE SIDE */
.home-image {
  flex: 1;
  position: relative;
  display: block;
}

.home-image {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 920px;
  border-radius: 20px;
}


footer {
  background: #111;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.homeheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: #111;
  font-family: Arial, sans-serif;
}

/* LOGO */
.logohome a {
  color: #fff;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-decoration: none;
  font-size: 30px;
  font-weight: bold ;
}

/* BOUTON CTA */
.ctaheader .download-btn {
  background: #6c8fff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
  font-weight: bold
}

.ctaheader .download-btn:hover {
  background: white;
  color: #6c8fff;
}

.reg-btn {
  background: #ffd93d;
  color: black;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
  font-weight: bold
}

.reg-btn:hover {
  background: #0e0f14;
  border: 1px solid #ffd93d;
  color: #ffd93d;
}

.log-btn {
  background: #0e0f14;
  color: #ffd93d;
  border: 1px solid #ffd93d;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
  font-weight: bold
}

.log-btn:hover {
  background: #ffd93d;
  border: 1px solid #0e0f14;
  color: #0e0f14;

}




/* RESPONSIVE */
@media (max-width: 600px) {
  .homeheader {
    padding: 15px 20px;
  }

  .logohome a {
    font-size: 18px;
  }

  .ctaheader .download-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Sankru role navigation and hub pages */
.sankru-app-header {
  min-height: 60px;
}

.sankru-app-header + header,
.sankru-app-header + .profile-page-header,
.sankru-admin-main-header + .seo-admin-header {
  display: none;
}

.sankru-main-nav,
.sankru-admin-nav {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}

.sankru-main-nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.sankru-main-nav::-webkit-scrollbar,
.sankru-admin-nav::-webkit-scrollbar {
  display: none;
}

.sankru-main-nav a,
.sankru-admin-nav a {
  flex: 0 0 auto;
  padding: .36rem .7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 600;
  transition: all .2s ease;
}

.sankru-main-nav a:hover,
.sankru-main-nav a.active,
.sankru-admin-nav a:hover,
.sankru-admin-nav a.active {
  color: var(--text);
  border-color: rgba(108,143,255,.42);
  background: rgba(108,143,255,.12);
}

.sankru-main-nav a.panel-nav-link {
  border-color: rgba(78,205,196,.5);
  background: linear-gradient(135deg, rgba(78,205,196,.18), rgba(108,143,255,.16));
  color: var(--text);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 8px 20px rgba(14,15,20,.12);
}

.sankru-main-nav a.panel-nav-link:hover,
.sankru-main-nav a.panel-nav-link.active {
  border-color: rgba(78,205,196,.72);
  background: linear-gradient(135deg, rgba(78,205,196,.34), rgba(108,143,255,.24));
  color: #ffffff;
}

.sankru-profile-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  flex: 0 0 auto;
  font-weight: 700;
}

.sankru-profile-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sankru-mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.sankru-mobile-menu-btn span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.sankru-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 148px;
  height: 52px;
  text-decoration: none;
  position: relative;
}

.sankru-logo-link img,
.sankru-inline-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.sankru-logo-link .sankru-logo-image {
  position: absolute;
  inset: 0;
  transition: opacity .18s ease;
}

.sankru-logo-light {
  opacity: 0;
  pointer-events: none;
}

:root[data-theme="light"] .sankru-logo-dark {
  opacity: 0;
}

:root[data-theme="light"] .sankru-logo-light {
  opacity: 1;
}

.seo-admin-logo.sankru-logo-link {
  width: 140px;
  height: 50px;
}

.sankru-static-logo,
.sankru-auth-logo,
.sankru-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.sankru-static-logo {
  width: 118px;
  height: 42px;
}

.sankru-auth-logo,
.sankru-footer-logo {
  width: 150px;
  height: 54px;
}

.sankru-static-logo img,
.sankru-auth-logo img,
.sankru-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sankru-page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

.sankru-page-hero,
.sankru-setting-panel,
.sankru-table-panel {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(30,32,48,.96), rgba(22,24,32,.96));
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.sankru-page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  margin: .35rem 0 .7rem;
}

.sankru-page-hero p,
.sankru-hub-card p,
.sankru-setting-panel p,
.sankru-faq-list p {
  color: var(--muted);
  line-height: 1.7;
}

.sankru-hub-grid,
.sankru-admin-grid,
.sankru-settings-grid,
.sankru-metric-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.sankru-hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.sankru-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sankru-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sankru-hub-card,
.sankru-metric-grid article {
  border: 1px solid var(--border);
  background: rgba(30,32,48,.75);
  border-radius: 8px;
  padding: 1.1rem;
}

.sankru-hub-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  min-height: 150px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.sankru-setting-link-panel {
  display: block;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.sankru-setting-link-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(78,205,196,.55);
  background: rgba(36,39,58,.92);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.sankru-setting-link-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sankru-hub-card.is-clickable {
  cursor: pointer;
}

.sankru-hub-card.is-clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,157,.55);
  background: rgba(36,39,58,.92);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.sankru-hub-card.is-clickable:focus-visible,
.sankru-primary-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sankru-hub-card span,
.sankru-metric-grid span {
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sankru-hub-card h3,
.sankru-setting-panel h2 {
  margin: .5rem 0;
  font-size: 1.05rem;
}

.sankru-faq-list {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.sankru-faq-list details {
  border: 1px solid var(--border);
  background: rgba(30,32,48,.72);
  border-radius: 8px;
  padding: 1rem;
}

.sankru-faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.sankru-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: .8rem 0;
  color: var(--text);
}

.sankru-theme-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .9rem 0 1rem;
  cursor: pointer;
}

.sankru-theme-switch span {
  display: grid;
  gap: .2rem;
}

.sankru-theme-switch strong {
  color: var(--text);
  font-size: .98rem;
}

.sankru-theme-switch small {
  color: var(--muted);
  line-height: 1.35;
}

.sankru-theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sankru-theme-switch i {
  width: 58px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  flex: 0 0 auto;
  transition: background .2s ease, border-color .2s ease;
}

.sankru-theme-switch i::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 3px;
  left: 4px;
  transition: transform .2s ease, background .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.sankru-theme-switch input:checked + i {
  background: rgba(108,143,255,.18);
  border-color: var(--accent);
}

.sankru-theme-switch input:checked + i::before {
  transform: translateX(25px);
  background: #f20d2e;
}

.sankru-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sankru-metric-grid strong {
  display: block;
  margin-top: .35rem;
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  font-weight: 400;
}

.sankru-table-panel {
  margin-top: 1rem;
  overflow-x: auto;
}

.sankru-table-panel table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.sankru-table-panel th,
.sankru-table-panel td {
  padding: .8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
  font-size: .86rem;
}

.sankru-table-panel th {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 980px) {
  .sankru-home-nav {
    order: 5;
    width: 100%;
    flex-basis: 100%;
  }

  header:has(.sankru-home-nav) {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding-top: .55rem;
    padding-bottom: .55rem;
  }
}

@media (max-width: 760px) {
  .sankru-app-header,
  .sankru-admin-main-header {
    height: auto;
    flex-wrap: wrap;
    padding-top: .65rem;
    padding-bottom: .65rem;
  }

  .sankru-main-nav,
  .sankru-admin-nav {
    order: 4;
    width: 100%;
    overflow-x: auto;
  }

  .sankru-admin-main-header {
    justify-content: space-between;
    overflow: visible;
  }

  .sankru-admin-main-header .sankru-mobile-menu-btn {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }

  .sankru-admin-main-header .sankru-admin-nav {
    order: 10;
    display: none;
    width: 100%;
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    overflow: visible;
    padding-top: .55rem;
  }

  .sankru-admin-main-header.menu-open .sankru-admin-nav {
    display: grid;
  }

  .sankru-admin-main-header .sankru-admin-nav a,
  .sankru-admin-main-header .seo-lang-switch {
    width: 100%;
  }

  .sankru-admin-main-header .sankru-admin-nav a {
    justify-content: center;
    text-align: center;
    padding: .62rem .45rem;
  }

  .sankru-admin-main-header .seo-lang-switch {
    justify-content: center;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
    min-width: 0;
  }

  .sankru-admin-main-header .seo-lang-switch a {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
  }

  .sankru-admin-main-header .sankru-admin-nav > a:not([href="admin-stats.php"]):not([href="admin-mail.php"]):not([href="admin-dashboard.php"]):not([href="profile.php"]) {
    display: none;
  }

  .sankru-admin-main-header .sankru-admin-nav > a.admin-mobile-only-link {
    display: inline-flex;
  }

  .sankru-admin-main-header .admin-profile-link {
    border-color: rgba(167,139,250,.48);
    background: rgba(167,139,250,.14);
    color: var(--text);
    font-weight: 900;
  }

  .sankru-admin-dashboard-grid .sankru-hub-card:not([href="admin-stats.php"]):not([href="admin-mail.php"]):not([href="profile.php"]) {
    display: none;
  }

  .sankru-page-shell {
    width: min(100% - 1rem, 1120px);
  }

  .sankru-admin-main-header .admin-page-link,
  .sankru-admin-dashboard-grid .sankru-hub-card[href="seo-admin.php"] {
    pointer-events: none;
    cursor: not-allowed;
    opacity: .42;
    filter: grayscale(.35);
  }

  .sankru-admin-main-header .admin-page-link:hover,
  .sankru-admin-main-header .admin-page-link.active,
  .sankru-admin-dashboard-grid .sankru-hub-card[href="seo-admin.php"]:hover {
    transform: none;
    border-color: var(--border);
    background: rgba(30,32,48,.45);
    color: var(--muted);
    box-shadow: none;
  }

  :root[data-theme="light"] .sankru-admin-main-header .admin-page-link,
  :root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card[href="seo-admin.php"],
  :root[data-theme="light"] .sankru-admin-main-header .admin-page-link:hover,
  :root[data-theme="light"] .sankru-admin-main-header .admin-page-link.active,
  :root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card[href="seo-admin.php"]:hover {
    border-color: rgba(120,130,155,.22);
    background: #eef1f7;
    color: #8791a8;
    box-shadow: none;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .features {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }
}


/* ============================================================ */
/* HOME PAGE — home.html                                        */
/* ============================================================ */

/* ── NAVBAR ── */
.homeheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 68px;
  background: rgba(14,15,20,0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  font-family: 'DM Sans', sans-serif;
}

.logohome a {
  color: var(--text);
  text-decoration: none;
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

.logohome a span { color: var(--accent); }

.ctaheader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctaheader .download-btn {
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
  font-weight: 500;
}

.ctaheader .download-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ctaheader .blog-btn {
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
  font-weight: 700;
}

.ctaheader .blog-btn:hover {
  border-color: var(--accent3);
  color: var(--accent3);
}

.ctaheader .admin-home-btn {
  background: linear-gradient(135deg, rgba(108,143,255,.26), rgba(78,205,196,.18));
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid rgba(78,205,196,.42);
  box-shadow: 0 10px 24px rgba(78,205,196,.1);
  transition: all 0.2s;
  font-weight: 800;
}

.ctaheader .admin-home-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(78,205,196,.72);
  color: #ffffff;
  background: linear-gradient(135deg, #6c8fff, #4ecdc4);
}

.reg-btn {
  background: var(--accent4);
  color: #0e0f14;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
}

.reg-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.log-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.log-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 90px 8%;
  gap: 60px;
  min-height: calc(100vh - 68px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,143,255,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-text {
  flex: 1;
  max-width: 540px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,143,255,0.12);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(108,143,255,0.2);
  letter-spacing: 0.03em;
}

.tag::before { content: '✦'; font-size: 0.65rem; }

.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 22px;
  font-weight: 400;
}

.hero-text h1 span { color: var(--accent); font-style: italic; }

.hero-text p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-dw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
}

.cta-dw:hover {
  background: #5a7aff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,143,255,0.3);
}

.cta-log {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
}

.stat-label { font-size: 0.75rem; color: var(--muted); }

/* image hero */
.home-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 480px;
}

.home-image img:first-child {
  position: relative;
  z-index: 4;
  width: 200%;
  max-width: 740px;
  border-radius: 24px;
  filter: drop-shadow(20px 30px 80px #6c8fff);
}

.bg-shape {
  position: absolute;
  width: 480px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.03); }
}

/* ── FEATURES ── */
.features-section {
  padding: 80px 8%;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 56px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  width: auto;
  padding: 32px 28px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(108,143,255,0.3); }
.feature:hover::after { transform: scaleX(1); }

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ABOUT ── */
.about-section {
  padding: 100px 8%;
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-image-wrap {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  max-width: 480px;
}

.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

@media (max-width: 768px) {
  .about-image-wrap img {
    display: none;
  }
}


.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(14,15,20,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-badge-icon { font-size: 1.4rem; }
.about-badge-text strong { display: block; font-size: 0.9rem; color: var(--text); }
.about-badge-text span { font-size: 0.75rem; color: var(--muted); }

.about-content { flex: 1; }

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.about-list {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.about-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  padding: 100px 8%;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.carousel-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.testimonial-card:hover { border-color: rgba(108,143,255,0.3); }

.tc-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.star { color: var(--accent4); font-size: 0.85rem; }
.star.empty { color: var(--border); }

.tc-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.tc-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.tc-role { font-size: 0.75rem; color: var(--muted); }

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1rem;
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-dots { display: flex; gap: 7px; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.25s;
}

.dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* ── CTA BANNER ── */
.cta-banner {
  padding: 80px 8%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(108,143,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 8%;
  font-family: 'DM Sans', sans-serif;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
}

.footer-logo span { color: var(--accent); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  color: var(--muted);
  font-size: 0.78rem;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── HOME RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .ctaheader {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(14,15,20,0.98);
    flex-direction: column;
    padding: 16px 5%;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }
  .ctaheader.open { display: flex; }
  .ctaheader a { width: 100%; text-align: center; }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 60px 6%;
    min-height: auto;
    text-align: center;
    gap: 40px;
  }
  .hero-text { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero::before { display: none; }
  .home-image { max-width: 280px; }
  .about-section {
    flex-direction: column-reverse;
    padding: 60px 6%;
    gap: 40px;
  }
  .about-image-wrap { max-width: 100%; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .testimonial-card { min-width: 100%; }
  .hero { padding: 48px 5%; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .features-section,
  .about-section,
  .testimonials-section,
  .cta-banner { padding: 60px 5%; }
}


/* ============================================================ */
/* LOGIN / REGISTER PAGE — login-register.html                  */
/* ============================================================ */

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 68px;
  background: rgba(14,15,20,0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.auth-logo {
  color: var(--text);
  text-decoration: none;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-style: italic;
}

.auth-logo span { color: var(--accent); }

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }


}

     @media (max-width: 768px) {
    .back-link {
        display: none;
         }
}
         

.auth-main {
  flex: 1;
  display: flex;
  background:
    radial-gradient(circle at 18% 12%, rgba(108, 143, 255, 0.08), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(78, 205, 196, 0.07), transparent 28rem),
    rgba(14, 15, 20, 0.24);
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
  position: relative;
  overflow: hidden;
}

.auth-main::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108,143,255,0.05) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

:root[data-theme="light"] .auth-main {
  background:
    radial-gradient(circle at 18% 12%, rgba(108, 143, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(78, 205, 196, 0.1), transparent 28rem),
    rgba(255, 255, 255, 0.28);
}

:root[data-theme="light"] .auth-main::before {
  background: radial-gradient(circle, rgba(79, 142, 247, 0.06) 0%, transparent 65%);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 0 0 4px 4px;
}

.profile-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(108,143,255,.14), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255,107,157,.10), transparent 24%),
    var(--bg);
}

.profile-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 5%;
}

.profile-page-main {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.profile-card {
  width: min(640px, 100%);
  border: 1px solid rgba(108,143,255,.22);
  border-radius: 22px;
  background: rgba(22,24,32,.92);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
  padding: 2.4rem;
  text-align: center;
}

.profile-card-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  font-size: 2.2rem;
}

.profile-avatar-add {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent4);
  color: #11131a;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.profile-card.editing .profile-avatar-add {
  display: grid;
}

.profile-card.avatar-selected .profile-avatar-add {
  background: var(--accent3);
}

.profile-kicker {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-card h1 {
  margin: .35rem 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
}

.profile-email {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  text-align: left;
}

.profile-info-grid div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  padding: .9rem 1rem;
}

.profile-info-grid span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  margin-bottom: .25rem;
}

.profile-info-grid strong {
  color: var(--text);
  font-size: .95rem;
}

.profile-message {
  margin-bottom: 1rem;
  border-radius: 10px;
  padding: .75rem .9rem;
  font-size: .86rem;
  font-weight: 700;
}

.profile-message.success {
  background: rgba(78,205,196,.14);
  color: var(--accent3);
}

.profile-message.error {
  background: rgba(255,107,157,.14);
  color: var(--accent2);
}

.profile-edit-toggle {
  margin: .25rem 0 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: rgba(108,143,255,.12);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  padding: .65rem 1rem;
}

.profile-edit-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.profile-edit-form {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.25rem;
  text-align: left;
}

.profile-card.editing .profile-edit-form {
  display: grid;
}

.profile-card.editing .profile-info-grid {
  display: none;
}

.profile-edit-form label {
  display: grid;
  gap: .35rem;
}

.profile-edit-form span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}

.profile-edit-form input,
.profile-password-form input,
.profile-email-forms input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14,15,20,.74);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  padding: .75rem .85rem;
  outline: 0;
}

.profile-edit-form input:focus,
.profile-password-form input:focus,
.profile-email-forms input:focus {
  border-color: var(--accent);
}

.profile-avatar-input {
  display: none;
}

.profile-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: .65rem;
  justify-content: flex-end;
}

.profile-save-btn,
.profile-cancel-btn,
.profile-remove-avatar-form button {
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  padding: .7rem 1rem;
}

.profile-save-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.profile-cancel-btn {
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.profile-remove-avatar-form {
  display: none;
  margin-top: .9rem;
}

.profile-card.editing .profile-remove-avatar-form {
  display: block;
}

.profile-remove-avatar-form button {
  width: 100%;
  background: rgba(255,107,157,.10);
  border-color: rgba(255,107,157,.35);
  color: var(--accent2);
}

.profile-password-panel,
.profile-email-panel {
  display: none;
  margin-top: .9rem;
  text-align: left;
}

.profile-card.editing .profile-password-panel,
.profile-card.editing .profile-email-panel {
  display: block;
}

.profile-password-toggle,
.profile-email-toggle {
  width: 100%;
  border: 1px solid rgba(108,143,255,.35);
  border-radius: 10px;
  background: rgba(108,143,255,.10);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  padding: .75rem 1rem;
}

.profile-password-toggle:hover,
.profile-email-toggle:hover {
  background: rgba(108,143,255,.18);
}

.profile-password-form,
.profile-email-forms {
  display: none;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-top: .85rem;
}

.profile-card.password-open .profile-password-form,
.profile-card.email-open .profile-email-forms {
  display: grid;
}

.profile-password-form label,
.profile-email-forms label {
  display: grid;
  gap: .35rem;
}

.profile-password-form span,
.profile-email-forms span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}

.profile-email-forms form {
  display: grid;
  gap: .75rem;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  padding: .9rem;
}

@media (max-width: 640px) {
  .profile-info-grid,
  .profile-edit-form {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 1.5rem;
  }
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-brand-logo span { color: var(--accent); }

.auth-brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-tabs {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,143,255,0.1);
}

.form-input::placeholder { color: var(--muted); opacity: 0.6; }

.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 44px; }

.input-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.input-eye:hover { color: var(--text); }

.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: -10px;
  margin-bottom: 18px;
  transition: opacity 0.2s;
}

.forgot-link:hover { opacity: 0.75; }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 4px;
}

.btn-submit:hover {
  background: #5a7aff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108,143,255,0.3);
}

.btn-submit.yellow {
  background: var(--accent4);
  color: #0e0f14;
}

.btn-submit.yellow:hover {
  background: #f5ce30;
  box-shadow: 0 8px 20px rgba(255,217,61,0.25);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-social {
  width: 100%;
  padding: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  text-decoration: none;
}

.btn-social:hover {
  border-color: var(--accent);
  background: rgba(108,143,255,0.05);
}

.social-icon { font-size: 1rem; }

.terms-text {
  font-size: 0.73rem;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.terms-text a {
  color: var(--accent);
  text-decoration: none;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent4), transparent);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(108,143,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-close {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover { background: #5a7aff; }

.auth-footer {
  padding: 20px 5%;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}

@media (max-width: 500px) {
  .auth-card { padding: 32px 22px; }
}
     }

/* ============================================================ */
/* RESPONSIVE OVERFLOW FIXES                                    */
/* ============================================================ */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

header,
main,
section,
footer,
.layout,
.main,
.sidebar,
.hero,
.hero-text,
.home-image,
.features,
.feature,
.about-section,
.about-content,
.testimonials-section,
.carousel-wrap,
.auth-main,
.auth-card,
.favorites-page,
.favorites-page-grid,
.formulas-panel,
.fp-grid,
.tense-body,
.conj-table,
.examples-panel {
  min-width: 0;
}

.main,
.favorites-page {
  width: 100%;
  max-width: 100%;
}

.tense-formula-strip,
.fp-formula,
.usage-note,
.tip-box,
.example-fr,
.example-tr,
.conj-form,
.conj-tr,
.verb-note,
.favorites-link-card,
.favorites-empty,
.modal-text {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 900px) {
  .home-image img:first-child {
    width: min(100%, 420px);
    max-width: 100%;
    filter: drop-shadow(0 18px 44px rgba(108,143,255,.45));
  }

  .hero {
    overflow-x: clip;
  }
}

@media (max-width: 768px) {
  header:not(.homeheader):not(.auth-header) {
    width: 100%;
    height: auto;
    min-height: 60px;
    margin: 0 !important;
    padding: .65rem .75rem !important;
    flex-wrap: wrap;
    align-content: center;
    gap: .5rem;
  }

  header:not(.homeheader):not(.auth-header) .search-wrap {
    order: 1;
    flex: 1 1 100%;
    max-width: none;
    margin: 0 !important;
  }

  header:not(.homeheader):not(.auth-header) .search-wrap input,
  header:not(.homeheader):not(.auth-header) .search-wrap input:focus {
    width: 100% !important;
  }

  header:not(.homeheader):not(.auth-header) .header-primary-actions {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: .4rem !important;
  }

  header:not(.homeheader):not(.auth-header) .header-account-actions {
    order: 3;
    margin-left: auto;
    flex: 0 0 auto;
    gap: .4rem !important;
  }

  header:not(.homeheader):not(.auth-header) .formulas-toggle,
  header:not(.homeheader):not(.auth-header) .randombtn,
  header:not(.homeheader):not(.auth-header) .favorites-nav-btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    text-align: center;
  }

  .formulas-panel {
    top: 0;
    padding: 1rem;
  }

  .fp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout {
    width: 100%;
  }

  .sidebar {
    width: 100%;
  }

  .mobile-levels {
    justify-content: flex-start;
    padding-inline: .75rem;
  }

  .mobile-level-content.open {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: .5rem;
    padding: .25rem .75rem .75rem;
  }

  .verb-btn {
    width: 100%;
    margin: 0 !important;
  }

  .main {
    padding: 1rem .85rem;
  }

  .tense-header {
    align-items: flex-start;
  }

  .tense-use-badge {
    margin-left: 0;
    max-width: 100%;
    white-space: normal;
  }

  .tense-formula-strip {
    display: flex;
    width: 100%;
  }

  .conj-row {
    gap: .5rem;
  }

  .conj-pronoun {
    width: 58px;
  }

  .conj-form,
  .conj-tr {
    min-width: 0;
  }

  .conj-tr {
    text-align: left;
  }

  .favorites-head,
  .favorites-page-hero {
    min-width: 0;
  }

  .favorites-page-actions {
    justify-content: flex-end;
  }

  .homeheader {
    width: 100%;
    margin: 0 !important;
    padding: 0 5% !important;
  }

  .hero {
    width: 100%;
    padding-inline: 5%;
    gap: 28px;
  }

  .hero-stats {
    width: 100%;
  }

  .about-content,
  .about-list,
  .footer-inner {
    width: 100%;
  }

  .auth-header {
    margin: 0 !important;
    padding: 0 5% !important;
  }

  .auth-main {
    padding: 36px 1rem;
  }

  .auth-card {
    max-width: 420px;
    padding-inline: clamp(1.25rem, 6vw, 2.5rem);
  }
}

@media (max-width: 420px) {
  .hero-text h1,
  .favorites-page-hero h1,
  .verb-main-title {
    font-size: clamp(2rem, 14vw, 2.65rem);
  }

  .hero-ctas,
  .cta-banner-btns {
    width: 100%;
  }

  .hero-ctas a,
  .cta-banner-btns a {
    width: 100%;
    justify-content: center;
  }

  .stat-item {
    flex: 1 1 86px;
  }

  .features-section,
  .about-section,
  .testimonials-section,
  .cta-banner {
    padding-inline: 1rem;
  }

  .feature,
  .testimonial-card {
    padding-inline: 1rem;
  }
}

@supports not (overflow: clip) {
  @media (max-width: 900px) {
    .hero {
      overflow: hidden;
    }
  }
}

/* ============================================================ */
/* SEO ADMIN PANEL                                               */
/* ============================================================ */
body.seo-home .hero-text > .tag:not(.seo-tag),
body.seo-home .hero-text > h1:not(.seo-title),
body.seo-home .hero-text > p:not(.seo-paragraph) {
  display: none;
}

:root[data-theme="light"] body.seo-home {
  background:
    radial-gradient(circle at top right, rgba(108,143,255,.14), transparent 34%),
    linear-gradient(180deg, #f7f8ff 0%, #ffffff 46%, #f7f9ff 100%);
  color: var(--text);
}

:root[data-theme="light"] .homeheader {
  background: rgba(255,255,255,.9);
  border-bottom-color: rgba(108,143,255,.16);
  box-shadow: 0 14px 34px rgba(79,142,247,.08);
}

:root[data-theme="light"] .ctaheader .download-btn,
:root[data-theme="light"] .ctaheader .blog-btn,
:root[data-theme="light"] .log-btn,
:root[data-theme="light"] .cta-log {
  background: rgba(255,255,255,.72);
  border-color: rgba(108,143,255,.2);
  color: #0e0f14;
}

:root[data-theme="light"] .ctaheader .download-btn:hover,
:root[data-theme="light"] .ctaheader .blog-btn:hover,
:root[data-theme="light"] .log-btn:hover,
:root[data-theme="light"] .cta-log:hover {
  background: #ffffff;
  border-color: rgba(79,142,247,.5);
  color: var(--fr);
}

:root[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(79,142,247,.18) 0%, transparent 70%);
}

:root[data-theme="light"] .tag {
  background: rgba(79,142,247,.1);
  border-color: rgba(79,142,247,.18);
  color: #315fc7;
}

:root[data-theme="light"] .home-image img:first-child {
  filter: drop-shadow(18px 28px 58px rgba(79,142,247,.2));
}

:root[data-theme="light"] .features-section,
:root[data-theme="light"] .testimonials-section,
:root[data-theme="light"] footer {
  background: #ffffff;
  border-color: rgba(108,143,255,.14);
}

:root[data-theme="light"] .feature,
:root[data-theme="light"] .testimonial-card {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border-color: rgba(108,143,255,.16);
  box-shadow: 0 18px 42px rgba(79,142,247,.09);
}

:root[data-theme="light"] .about-image-wrap img {
  box-shadow: 0 22px 54px rgba(79,142,247,.14);
}

:root[data-theme="light"] .cta-banner {
  background:
    radial-gradient(circle at top left, rgba(78,205,196,.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #eef4ff);
  border-color: rgba(108,143,255,.18);
}

:root[data-theme="light"] .carousel-btn {
  background: #ffffff;
  border-color: rgba(108,143,255,.22);
  color: #0e0f14;
  box-shadow: 0 12px 26px rgba(79,142,247,.1);
}

.hero-text h1,
.seo-preview-hero h1 {
  font-size: var(--seo-h1-size, clamp(2.4rem, 5vw, 3.8rem));
}

.section-title,
.seo-preview-blocks h2 {
  font-size: var(--seo-h2-size, clamp(1.8rem, 3vw, 2.4rem));
}

.hero-text p,
.about-content p,
.feature p,
.tc-text,
.seo-preview-blocks pre {
  font-size: var(--seo-paragraph-size, 1rem);
}

.seo-admin-body {
  background: var(--bg);
  color: var(--text);
}

.seo-admin-header {
  justify-content: space-between;
  height: 64px;
}

.seo-admin-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.seo-menu-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.seo-menu-toggle span {
  display: none;
}

.seo-menu-toggle strong {
  display: block;
  font: inherit;
  line-height: 1;
}

.seo-admin-logo {
  color: var(--text);
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  font-style: italic;
  text-decoration: none;
}

.seo-admin-logo span {
  color: var(--accent);
}

.seo-admin-nav {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.seo-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .2rem;
  border: 1px solid rgba(108, 143, 255, .22);
  border-radius: 9px;
  background: rgba(30, 32, 48, .72);
}

.seo-lang-switch a {
  min-width: 34px;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: .32rem .5rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.seo-lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.seo-admin-nav a {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .45rem .7rem;
  text-decoration: none;
  font-size: .8rem;
}

.seo-admin-nav .seo-lang-switch a {
  min-width: 34px;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: .32rem .5rem;
  font-size: .72rem;
  font-weight: 800;
}

.seo-admin-nav .seo-lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.seo-admin-nav a.admin-dashboard-link {
  border-color: rgba(78,205,196,.5);
  background: linear-gradient(135deg, rgba(78,205,196,.2), rgba(108,143,255,.18));
  color: var(--text);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(14,15,20,.14);
}

.seo-admin-nav a.admin-dashboard-link:hover,
.seo-admin-nav a.admin-dashboard-link.active {
  border-color: rgba(78,205,196,.72);
  background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
  color: #ffffff;
}

.seo-admin-nav a.admin-page-link {
  border-color: rgba(255,217,61,.4);
  background: rgba(255,217,61,.1);
  color: #ffd93d;
  font-weight: 850;
}

.seo-admin-nav a.admin-page-link:hover,
.seo-admin-nav a.admin-page-link.active {
  border-color: rgba(255,217,61,.72);
  background: linear-gradient(135deg, rgba(255,217,61,.28), rgba(255,107,157,.14));
  color: #ffffff;
}

.seo-admin-nav a.admin-logout-link {
  margin-left: .15rem;
  border-color: rgba(242,13,46,.42);
  background: rgba(242,13,46,.1);
  color: #ff8c9f;
  font-weight: 900;
}

.seo-admin-nav a.admin-logout-link:hover,
.seo-admin-nav a.admin-logout-link.active {
  border-color: rgba(242,13,46,.76);
  background: linear-gradient(135deg, #f20d2e, #ff5b7c);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(242,13,46,.22);
}

.seo-admin-nav a.admin-mobile-only-link {
  display: none;
}

:root[data-theme="light"] .seo-lang-switch {
  border-color: rgba(79,142,247,.24);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(79,142,247,.12);
}

:root[data-theme="light"] .seo-lang-switch a,
:root[data-theme="light"] .seo-admin-nav .seo-lang-switch a {
  color: #4d5871;
  background: transparent;
}

:root[data-theme="light"] .seo-lang-switch a:hover,
:root[data-theme="light"] .seo-admin-nav .seo-lang-switch a:hover {
  background: #eef4ff;
  color: #0e0f14;
}

:root[data-theme="light"] .seo-lang-switch a.active,
:root[data-theme="light"] .seo-admin-nav .seo-lang-switch a.active {
  background: linear-gradient(135deg, #4f8ef7, #4ecdc4);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(79,142,247,.22);
}

:root[data-theme="light"] .seo-admin-nav a.admin-dashboard-link {
  border-color: rgba(78,205,196,.45);
  background: linear-gradient(135deg, #effdfb, #eef4ff);
  color: #18364a;
  box-shadow: 0 10px 24px rgba(79,142,247,.12);
}

:root[data-theme="light"] .seo-admin-nav a.admin-dashboard-link:hover,
:root[data-theme="light"] .seo-admin-nav a.admin-dashboard-link.active {
  background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
  color: #ffffff;
}

:root[data-theme="light"] .seo-admin-nav a.admin-page-link {
  border-color: rgba(208,158,18,.32);
  background: #fff8dc;
  color: #765600;
}

:root[data-theme="light"] .seo-admin-nav a.admin-page-link:hover,
:root[data-theme="light"] .seo-admin-nav a.admin-page-link.active {
  background: linear-gradient(135deg, #ffd93d, #ff8bb2);
  color: #211600;
}

:root[data-theme="light"] .seo-admin-nav a.admin-logout-link {
  border-color: rgba(242,13,46,.28);
  background: #fff0f3;
  color: #b70b25;
}

:root[data-theme="light"] .seo-admin-nav a.admin-logout-link:hover,
:root[data-theme="light"] .seo-admin-nav a.admin-logout-link.active {
  background: linear-gradient(135deg, #f20d2e, #ff5b7c);
  color: #ffffff;
}

.seo-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.seo-sidebar-panel {
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  background: rgba(22, 24, 32, .72);
}

.seo-drawer-backdrop {
  display: none;
}

.seo-panel-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.seo-drawer-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
}

.seo-panel-head,
.seo-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seo-kicker {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seo-panel-head h1,
.seo-editor-toolbar h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.seo-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
}

.seo-page-list {
  display: grid;
  gap: .65rem;
  margin-top: 1.25rem;
}

.seo-page-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  margin-top: 1rem;
  padding: .25rem;
  border: 1px solid rgba(108, 143, 255, .18);
  border-radius: 10px;
  background: rgba(14, 15, 20, .52);
}

.seo-page-filter button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}

.seo-page-filter button.active {
  background: var(--accent);
  color: #fff;
}

.seo-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: .45rem;
}

.seo-page-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  padding: .85rem;
  text-align: left;
}

.seo-page-row > a {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(108, 143, 255, .1);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  padding: 0 .7rem;
  text-decoration: none;
}

.seo-page-delete {
  border: 1px solid rgba(255, 107, 107, .34);
  border-radius: 8px;
  background: rgba(255, 107, 107, .11);
  color: #ff8f8f;
  cursor: pointer;
  padding: 0 .75rem;
  font-size: .78rem;
  font-weight: 800;
}

.seo-empty-list {
  border: 1px dashed rgba(108, 143, 255, .24);
  border-radius: 10px;
  padding: .9rem;
  color: var(--muted);
  font-size: .82rem;
}

.seo-page-item span,
.seo-page-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-item small {
  color: var(--muted);
  margin-top: .25rem;
}

.seo-editor {
  padding: 1.5rem;
}

.seo-editor-toolbar {
  margin-bottom: 1.2rem;
}

.seo-actions,
.seo-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.seo-editor-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid rgba(108, 143, 255, .2);
  border-radius: 10px;
  background: rgba(14, 15, 20, .52);
}

.seo-editor-mode-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  padding: .35rem .7rem;
}

.seo-editor-mode-switch button.active {
  background: var(--accent);
  color: #fff;
}

.seo-viewport-switch button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.seo-device-btn {
  min-width: 38px;
  width: 38px;
  padding: 0;
  text-align: center;
}

.seo-plugin-bar {
  position: sticky;
  top: 64px;
  z-index: 120;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(22, 24, 32, .96);
  padding: .55rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.seo-tool-group {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  padding: .28rem;
}

.seo-tool-label {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 0 .35rem;
  text-transform: uppercase;
}

.seo-plugin-bar button,
.seo-plugin-bar input {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #202437;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
}

.seo-plugin-bar button {
  min-width: 42px;
  cursor: pointer;
  padding: 0 .7rem;
  transition: background .18s, border-color .18s, color .18s;
}

.seo-plugin-bar button:hover {
  background: rgba(108, 143, 255, .16);
  border-color: rgba(108, 143, 255, .55);
  color: #fff;
}

.seo-plugin-bar input {
  width: 64px;
  padding: 0 .45rem;
}

.seo-selection-status {
  color: var(--muted);
  font-size: .78rem;
  margin-left: .35rem;
}

.seo-live-stage {
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    #11131a;
  background-size: 22px 22px;
  margin-bottom: 1.15rem;
  overflow: hidden;
  padding: 1rem;
}

.seo-live-page {
  min-height: 390px;
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at top right, rgba(108,143,255,.10), transparent 32%),
    #0e1017;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.seo-live-page .tag {
  display: inline-flex;
  margin-bottom: 1rem;
}

.seo-live-page h1 {
  max-width: 760px;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1rem;
}

.seo-live-page p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.seo-editable {
  border-radius: 6px;
  outline: 1px dashed transparent;
  outline-offset: 6px;
  min-height: 1.2em;
  transition: outline-color .18s, background .18s;
}

.seo-editable:empty::before {
  content: attr(data-placeholder);
  color: rgba(232, 234, 246, .32);
}

.seo-editable:hover {
  outline-color: rgba(108, 143, 255, .45);
}

.seo-editable.selected {
  background: rgba(108, 143, 255, .08);
  outline-color: var(--accent);
}

.seo-btn,
.seo-shortcuts button {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  padding: .65rem .9rem;
}

.seo-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.seo-btn.soft {
  background: rgba(255, 217, 61, .12);
  border-color: rgba(255, 217, 61, .35);
  color: var(--accent4);
}

.seo-btn.ghost,
.seo-shortcuts button {
  background: var(--card);
}

.seo-form {
  display: grid;
  gap: 1rem;
  max-width: 980px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(22, 24, 32, .38);
  padding: 1rem;
}

.seo-grid,
.seo-size-grid {
  display: grid;
  gap: 1rem;
}

.seo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-size-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-field {
  display: grid;
  gap: .45rem;
}

.seo-field span,
.seo-section-title {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-field input,
.seo-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  outline: none;
  padding: .8rem .9rem;
}

.seo-field textarea {
  min-height: 84px;
  resize: vertical;
}

.seo-status {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: .85rem;
}

.seo-status.success {
  color: var(--accent3);
}

.seo-status.error {
  color: var(--accent2);
}

.seo-preview-modal {
  display: none;
  position: fixed;
  inset: 24px;
  z-index: 900;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.seo-preview-modal.open {
  display: grid;
  grid-template-rows: 52px 1fr;
}

.seo-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
}

.seo-preview-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.seo-preview-head button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  padding: .45rem .75rem;
}

.seo-preview-head button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.seo-preview-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.seo-preview-modal.mobile-preview iframe {
  width: 390px;
  max-width: calc(100vw - 48px);
  justify-self: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.seo-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 980;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, .58);
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.seo-confirm-modal.open {
  display: flex;
}

.seo-confirm-box {
  width: min(420px, 100%);
  border: 1px solid rgba(108, 143, 255, .32);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30, 32, 48, .98), rgba(16, 18, 24, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  padding: 1.25rem;
}

.seo-confirm-box h3 {
  margin: .15rem 0 .45rem;
  color: var(--text);
  font-size: 1.15rem;
}

.seo-confirm-box p {
  color: var(--muted);
  line-height: 1.55;
}

.seo-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1rem;
}

.seo-preview-blocks {
  padding: 3rem 8%;
  background: var(--surface);
}

.seo-preview-blocks h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  margin-bottom: 1rem;
}

.seo-preview-blocks pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 1rem;
}

@media (max-width: 900px) {
  .seo-shell,
  .seo-grid,
  .seo-size-grid {
    grid-template-columns: 1fr;
  }

  .seo-sidebar-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .seo-editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================ */
/* SEO BLOCK DESIGNER                                           */
/* ============================================================ */
.seo-designer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: calc(100vh - 64px);
}

.seo-designer-shell .seo-sidebar-panel {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  z-index: 620;
  width: min(340px, 92vw);
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform .24s ease;
  background: rgba(22, 24, 32, .98);
  backdrop-filter: blur(18px);
  box-shadow: 24px 0 60px rgba(0, 0, 0, .34);
}

body.seo-pages-open .seo-designer-shell .seo-sidebar-panel {
  transform: translateX(0);
}

body.seo-pages-open .seo-drawer-backdrop {
  display: block;
  position: fixed;
  inset: 64px 0 0;
  z-index: 610;
  background: rgba(0, 0, 0, .46);
}

.seo-designer-main {
  min-width: 0;
  padding: 1.25rem;
}

.seo-meta-bar {
  display: grid;
  grid-template-columns: 180px minmax(180px, 1fr) minmax(220px, 1.3fr);
  gap: .75rem;
  margin-bottom: .85rem;
}

.seo-meta-bar label,
.seo-inspector label {
  display: grid;
  gap: .35rem;
}

.seo-meta-bar span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-meta-bar input,
.seo-inspector input,
.seo-inspector textarea,
.seo-inspector select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1e2030;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .86rem;
  outline: none;
  padding: .7rem .8rem;
}

.seo-file-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(22, 24, 32, .78);
  padding: 1rem;
  margin-bottom: .85rem;
}

.seo-file-editor[hidden] {
  display: none;
}

.seo-file-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.seo-file-editor-head h3 {
  margin: .1rem 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.seo-code-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .8rem;
  border: 1px solid rgba(108, 143, 255, .16);
  border-radius: 10px;
  background: rgba(14, 15, 20, .5);
  padding: .45rem;
}

.seo-code-shortcuts button {
  min-height: 32px;
  border: 1px solid rgba(42, 45, 62, .95);
  border-radius: 8px;
  background: rgba(30, 32, 48, .95);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .76rem;
  font-weight: 800;
  padding: .35rem .6rem;
}

.seo-code-shortcuts button:hover {
  border-color: rgba(108, 143, 255, .55);
  background: rgba(108, 143, 255, .14);
}

.seo-file-editor textarea {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b0c11;
  color: #eef1ff;
  padding: 1rem;
  font-family: Consolas, 'Courier New', monospace;
  font-size: .86rem;
  line-height: 1.55;
  resize: vertical;
}

.seo-code-hint {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.seo-btn.danger {
  border-color: rgba(255, 107, 107, .38);
  background: rgba(255, 107, 107, .12);
  color: #ff9c9c;
}

.seo-file-mode .seo-meta-bar,
.seo-file-mode .seo-builder-toolbar,
.seo-file-mode .seo-builder-stage,
.seo-file-mode .seo-inspector {
  display: none;
}

.seo-file-mode .seo-designer-main {
  grid-column: span 2;
}

.seo-builder-toolbar {
  position: sticky;
  top: 64px;
  z-index: 140;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(30, 32, 48, .92), rgba(16, 18, 24, .96));
  padding: .65rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.seo-builder-toolbar .seo-tool-group {
  gap: .4rem;
  border-color: rgba(108, 143, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  padding: .35rem;
}

.seo-builder-toolbar .seo-tool-group.dragging {
  opacity: .55;
  outline: 1px dashed rgba(108, 143, 255, .65);
}

.seo-builder-toolbar .seo-toolbar-grip {
  min-width: 24px;
  width: 24px;
  padding: 0;
  color: var(--muted);
  cursor: grab;
  font-weight: 800;
  letter-spacing: -.12em;
}

.seo-builder-toolbar .seo-toolbar-grip:active {
  cursor: grabbing;
}

.seo-builder-toolbar .seo-tool-label {
  color: rgba(139, 143, 168, .9);
  min-width: 44px;
}

.seo-builder-toolbar button {
  min-height: 34px;
  border: 1px solid rgba(42, 45, 62, .95);
  border-radius: 8px;
  background: rgba(30, 32, 48, .95);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  padding: .42rem .65rem;
  transition: transform .16s, border-color .16s, background .16s, color .16s;
}

.seo-builder-toolbar button:hover {
  background: rgba(108, 143, 255, .14);
  border-color: rgba(108, 143, 255, .55);
  color: #fff;
  transform: translateY(-1px);
}

.seo-builder-toolbar button:active {
  transform: translateY(0);
}

.seo-builder-toolbar button.danger {
  background: rgba(255, 107, 157, .08);
  border-color: rgba(255, 107, 157, .34);
  color: var(--accent2);
}

.seo-builder-toolbar button.danger:hover {
  background: rgba(255, 107, 157, .16);
  border-color: rgba(255, 107, 157, .65);
  color: #ff8ab4;
}

.seo-builder-toolbar .seo-toolbar-reset {
  min-width: 34px;
  width: 34px;
  padding: 0;
}

.seo-builder-toolbar .seo-selection-status {
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
  margin-left: .15rem;
  padding-left: .85rem;
}

.seo-saved-theme-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}

.seo-saved-theme-panel:has(.seo-saved-themes:empty)::after {
  content: "Yok";
  color: var(--muted);
  font-size: .78rem;
}

.seo-builder-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 680px;
  border: 2px solid rgba(108, 143, 255, .55);
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%),
    #11131a;
  background-size: 24px 24px;
  padding: 1.25rem;
  overflow: auto;
  overflow-x: auto;
  overflow-y: auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 18px 44px rgba(0, 0, 0, .28);
}

.seo-builder-page {
  position: relative;
  width: 1440px;
  min-width: 1440px;
  max-width: 1440px;
  min-height: 810px;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: clamp(2rem, 5vw, 5rem);
  outline: 1px dashed rgba(108, 143, 255, .5);
  outline-offset: 6px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(108, 143, 255, .16);
}

.seo-builder-stage.mobile-mode .seo-builder-page {
  width: 390px;
  min-width: 390px;
  max-width: 390px;
  min-height: 760px;
  padding: 2rem 1rem;
}

.seo-builder-page.show-guides::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 143, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 143, 255, .18) 1px, transparent 1px);
  background-size: 40px 40px;
}

.seo-anchor-lines {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}

.seo-anchor-lines path {
  fill: none;
  stroke: rgba(174, 180, 200, .34);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 8;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, .25));
}

.seo-empty-canvas {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: rgba(232, 234, 246, .45);
  font-size: .95rem;
  text-align: center;
  padding: 2rem;
}

.seo-builder-element {
  position: relative;
  display: block;
  max-width: 100%;
  margin-bottom: 1rem;
  border: 1px dashed transparent;
  border-radius: 8px;
  cursor: grab;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  touch-action: none;
}

.seo-builder-page.show-guides .seo-builder-element {
  z-index: 1;
}

.seo-builder-element:hover {
  border-color: rgba(108, 143, 255, .45);
}

.seo-builder-element.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 143, 255, .12);
}

.seo-builder-element.dragging {
  cursor: grabbing;
  opacity: .92;
  z-index: 999;
}

.seo-builder-element.resizing {
  box-shadow: 0 0 0 4px rgba(108, 143, 255, .18);
  z-index: 999;
}

.seo-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  cursor: nwse-resize;
  z-index: 10;
  touch-action: none;
}

.seo-saved-themes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.seo-saved-theme {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid rgba(108, 143, 255, .22);
  border-radius: 8px;
  background: rgba(18, 20, 31, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
  padding: .2rem;
}

.seo-saved-theme button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  padding: .32rem .52rem;
}

.seo-saved-theme button:hover {
  background: rgba(108, 143, 255, .12);
}

.seo-saved-theme-delete {
  min-width: auto;
  border: 1px solid rgba(255, 107, 107, .46) !important;
  background: rgba(255, 107, 107, .12) !important;
  color: #ff9c9c !important;
  font-size: .7rem;
}

.seo-saved-theme-delete:hover {
  background: rgba(255, 107, 107, .16) !important;
  color: #fff !important;
}

.seo-builder-heading {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1;
}

.seo-builder-paragraph {
  line-height: 1.75;
}

.seo-builder-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: .75rem 1.1rem;
  text-decoration: none;
}

.seo-builder-card {
  white-space: pre-wrap;
  line-height: 1.6;
  border: 1px solid var(--border);
  padding: 1.2rem;
}

.seo-builder-faq,
.seo-public-faq {
  display: block;
  overflow: auto;
}

.seo-faq-item {
  border-bottom: 1px solid rgba(232, 234, 246, .16);
  color: inherit;
}

.seo-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  outline: 0;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item summary::after {
  content: "⌄";
  flex: 0 0 auto;
  font-size: 1.05em;
  opacity: .78;
}

.seo-faq-item[open] summary::after {
  content: "⌃";
}

.seo-faq-item p {
  margin: 0;
  padding: 0 0 1.35rem;
  color: rgba(232, 234, 246, .78);
  line-height: 1.55;
}

.seo-builder-summary {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  padding: 1rem;
}

.seo-anchor-link-handle {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 12;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: crosshair;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  padding: .35rem .5rem;
}

.seo-anchor-link-handle:hover {
  background: rgba(108, 143, 255, .32);
  border-color: rgba(108, 143, 255, .62);
}

.seo-builder-summary strong,
.seo-public-summary strong {
  display: block;
  margin-bottom: .25rem;
  font-weight: 700;
}

.seo-builder-summary a,
.seo-public-summary a {
  display: block;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(108, 143, 255, .2);
  padding-bottom: .35rem;
}

.seo-builder-summary a:hover,
.seo-public-summary a:hover {
  color: var(--accent);
}

.seo-builder-line {
  min-width: 2px;
  min-height: 2px;
  border-radius: 0;
}

.seo-public-line {
  min-width: 2px;
  min-height: 2px;
}

.seo-builder-image {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.seo-builder-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
}

.seo-builder-image span {
  color: var(--muted);
}

.seo-builder-spacer {
  min-height: 56px;
}

.seo-inspector {
  border-left: 1px solid var(--border);
  background: rgba(22, 24, 32, .72);
  padding: 1.25rem;
}

.seo-inspector h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.seo-field.compact {
  margin-bottom: .85rem;
}

.seo-hidden-panel {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.seo-hidden-panel .seo-kicker {
  margin-bottom: .8rem;
}

.seo-hidden-panel textarea {
  min-height: 88px;
  resize: vertical;
}

/* ============================================================ */
/* SEO TOOLS DASHBOARD                                          */
/* ============================================================ */
.seo-tools-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
}

.seo-tools-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0 1.4rem;
  margin-bottom: 1.25rem;
}

.seo-tools-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  margin: .25rem 0 .55rem;
}

.seo-tools-hero p {
  color: var(--muted);
  max-width: 680px;
}

.seo-metric-grid,
.seo-tools-grid {
  display: grid;
  gap: .9rem;
}

.seo-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: .9rem;
}

.seo-tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .9rem;
}

.seo-metric-card,
.seo-tool-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(30, 32, 48, .72);
}

.seo-metric-card {
  padding: 1rem;
}

.seo-metric-card span {
  color: var(--muted);
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-metric-card strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-top: .35rem;
}

.seo-tool-card {
  padding: 1rem;
}

.seo-tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.seo-tool-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.seo-tool-card p {
  color: var(--muted);
  line-height: 1.65;
}

.seo-competitor-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: .9rem;
  margin-bottom: .9rem;
}

.seo-competitor-results {
  display: grid;
  gap: .9rem;
}

.seo-competitor-results .seo-tool-card {
  padding: 1.05rem;
}

.seo-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: .85rem 0 1rem;
}

.seo-brief-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(14, 15, 20, .28);
  padding: .75rem;
}

.seo-brief-row span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-brief-row strong {
  display: block;
  margin-top: .25rem;
  font-size: 1.1rem;
  color: rgba(232, 234, 246, .9);
  font-weight: 700;
}

.seo-brief-list {
  display: grid;
  gap: .55rem;
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
}

.seo-brief-list li {
  border: 1px solid rgba(108, 143, 255, .12);
  border-radius: 8px;
  background: rgba(14, 15, 20, .24);
  color: rgba(232, 234, 246, .72);
  line-height: 1.55;
  padding: .72rem .82rem;
}

.seo-brief-list li::before {
  content: "";
  display: inline-block;
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: rgba(108, 143, 255, .55);
  box-shadow: 0 0 0 4px rgba(108, 143, 255, .08);
  margin-right: .65rem;
  transform: translateY(-1px);
}

.seo-brief-list li span {
  vertical-align: middle;
}

.seo-term-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .7rem;
}

.seo-term-cloud span {
  border: 1px solid rgba(108, 143, 255, .22);
  border-radius: 8px;
  background: rgba(108, 143, 255, .07);
  color: rgba(232, 234, 246, .76);
  font-size: .78rem;
  padding: .42rem .62rem;
}

.seo-term-cloud b {
  color: var(--accent);
  margin-left: .25rem;
}

.seo-page-analysis {
  border: 1px solid rgba(108, 143, 255, .13);
  border-radius: 10px;
  background: rgba(14, 15, 20, .22);
  margin-top: .7rem;
  overflow: hidden;
}

.seo-page-analysis summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: .85rem .95rem;
}

.seo-page-analysis summary::-webkit-details-marker {
  display: none;
}

.seo-page-analysis summary::after {
  content: "+";
  align-items: center;
  border: 1px solid rgba(108, 143, 255, .24);
  border-radius: 8px;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.seo-page-analysis[open] summary {
  border-bottom: 1px solid rgba(108, 143, 255, .12);
}

.seo-page-analysis[open] summary::after {
  content: "-";
}

.seo-page-summary-main,
.seo-page-summary-main strong,
.seo-page-summary-main small {
  display: block;
  min-width: 0;
}

.seo-page-summary-main strong {
  color: rgba(232, 234, 246, .88);
  font-size: .95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-summary-main small {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-muted {
  color: var(--muted);
  font-size: .78rem;
}

.seo-page-summary-meta {
  border: 1px solid rgba(78, 205, 196, .22);
  border-radius: 999px;
  color: var(--accent3);
  flex: 0 0 auto;
  font-size: .72rem;
  padding: .2rem .5rem;
}

.seo-page-analysis > .seo-brief-grid,
.seo-page-analysis > .seo-page-meta,
.seo-page-analysis > .seo-report-subtitle,
.seo-page-analysis > .seo-heading-line,
.seo-page-analysis > .seo-term-cloud,
.seo-page-analysis > .seo-muted {
  margin-left: .95rem;
  margin-right: .95rem;
}

.seo-page-analysis > .seo-brief-grid {
  margin-top: .95rem;
}

.seo-heading-line {
  border: 1px solid rgba(108, 143, 255, .11);
  border-left: 2px solid rgba(108, 143, 255, .42);
  border-radius: 0 8px 8px 0;
  color: rgba(232, 234, 246, .72);
  line-height: 1.45;
  margin-top: .4rem;
  padding: .52rem .62rem;
}

.seo-heading-line span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  margin-right: .45rem;
}

.seo-report-subtitle {
  color: rgba(232, 234, 246, .8);
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: .95rem;
  text-transform: uppercase;
}

.seo-page-meta {
  border: 1px solid rgba(108, 143, 255, .12);
  border-radius: 8px;
  background: rgba(14, 15, 20, .22);
  color: rgba(232, 234, 246, .68);
  line-height: 1.6;
  margin-top: .3rem;
  padding: .75rem;
}

.seo-page-meta b {
  color: var(--accent);
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .seo-competitor-layout,
  .seo-brief-grid {
    grid-template-columns: 1fr;
  }

  .seo-page-analysis summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .seo-page-summary-main {
    flex: 1 1 100%;
  }

  .seo-page-summary-meta {
    order: 2;
  }

  .seo-page-analysis summary::after {
    order: 3;
  }
}

.seo-loading {
  color: var(--muted);
  border: 1px dashed rgba(108, 143, 255, .24);
  border-radius: 10px;
  padding: 1rem;
}

.seo-tool-card-head span,
.seo-audit-row em {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
  padding: .22rem .55rem;
  white-space: nowrap;
}

.seo-tool-card-head span.ok,
.seo-audit-row em.ok {
  border-color: rgba(78, 205, 196, .35);
  color: var(--accent3);
}

.seo-tool-card-head span.warn,
.seo-audit-row em.warn {
  border-color: rgba(255, 217, 61, .38);
  color: var(--accent4);
}

.seo-tool-card-head span.soon {
  border-color: rgba(108, 143, 255, .35);
  color: var(--accent);
}

.seo-audit-list {
  display: grid;
  gap: .55rem;
  list-style: none;
}

.seo-audit-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: .55rem;
}

.seo-audit-list span {
  color: var(--muted);
  font-size: .84rem;
  text-align: right;
}

.seo-integration-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.seo-integration-row button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  cursor: not-allowed;
  padding: .55rem .75rem;
}

.seo-tool-form {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.seo-tool-form label {
  display: grid;
  gap: .35rem;
}

.seo-tool-form span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-tool-form input,
.seo-tool-form textarea,
.seo-tool-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  outline: none;
  padding: .72rem .8rem;
}

.seo-tool-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.seo-verb-form .seo-tool-form-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-inline-link {
  color: #fff;
  font-weight: 800;
  margin-left: .75rem;
  text-decoration: underline;
}

.seo-verb-custom[hidden] {
  display: none;
}

.seo-verb-action-cell {
  align-items: end;
  display: flex;
  min-height: 100%;
}

.seo-verb-subhead {
  border-top: 1px solid var(--border);
  margin: .25rem 0 0;
  padding-top: .85rem;
}

.seo-manual-tenses {
  display: grid;
  gap: 1rem;
}

.seo-manual-tense {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem;
}

.seo-manual-forms {
  display: grid;
  gap: .55rem;
  margin: .75rem 0;
}

.seo-manual-examples {
  display: grid;
  gap: .55rem;
  margin-top: .75rem;
}

.seo-manual-form-row {
  display: grid;
  grid-template-columns: .65fr 1fr 1fr;
  gap: .55rem;
}

.seo-manual-tenses[hidden] {
  display: none;
}

.seo-tool-form textarea {
  resize: vertical;
}

.seo-tool-form [hidden] {
  display: none;
}

.seo-tool-form button,
.seo-tool-form a,
.seo-mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid rgba(108, 143, 255, .45);
  border-radius: 8px;
  background: rgba(108, 143, 255, .12);
  color: var(--accent);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: .55rem .75rem;
  text-decoration: none;
}

.seo-story-repeat-list {
  display: grid;
  gap: .7rem;
}

.seo-story-subhead {
  margin-top: .75rem;
}

.seo-story-thumbnail-preview {
  display: grid;
  gap: .45rem;
  align-self: end;
}

.seo-story-thumbnail-preview[hidden] {
  display: none;
}

.seo-story-thumbnail-preview span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.seo-story-thumbnail-preview img {
  width: min(220px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.seo-mini-link.danger {
  border-color: rgba(242,13,46,.35);
  background: rgba(242,13,46,.1);
  color: #ff6b9d;
}

.seo-api-settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-api-settings-form button {
  grid-column: 1 / -1;
}

.seo-api-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1rem;
}

.seo-api-result span {
  border: 1px solid rgba(108, 143, 255, .28);
  border-radius: 8px;
  background: rgba(108, 143, 255, .08);
  color: var(--muted);
  padding: .75rem;
}

.seo-api-result strong {
  color: var(--text);
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: .2rem;
}

.seo-api-result-list {
  grid-template-columns: 1fr;
}

.seo-api-result-list span {
  overflow-wrap: anywhere;
}

.seo-pagespeed-result {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-pagespeed-result small {
  display: block;
  line-height: 1.45;
  margin-top: .25rem;
  overflow-wrap: anywhere;
}

.seo-query-table {
  display: grid;
  gap: .35rem;
  margin-top: 1rem;
}

.seo-query-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) 80px 90px 70px 80px;
  gap: .6rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  font-size: .84rem;
  padding: .55rem 0;
}

.seo-query-row.head {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-query-row span:first-child {
  overflow-wrap: anywhere;
}

.seo-backlink-table {
  display: grid;
  gap: .35rem;
  margin-top: 1rem;
}

.seo-backlink-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 70px;
  gap: .7rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .65rem 0;
}

.seo-backlink-row.head {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-backlink-row small {
  color: var(--muted);
  display: block;
  margin-top: .18rem;
  overflow-wrap: anywhere;
}

.seo-api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.seo-api-grid a {
  display: grid;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  padding: .9rem;
  text-decoration: none;
  transition: border-color .18s, background .18s, transform .18s;
}

.seo-api-grid a:hover {
  border-color: rgba(108, 143, 255, .55);
  background: rgba(108, 143, 255, .08);
  transform: translateY(-1px);
}

.seo-api-grid span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.seo-page-audit-card {
  overflow: hidden;
}

.seo-audit-table {
  display: grid;
  gap: .4rem;
}

.seo-audit-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 80px 90px minmax(260px, 2fr);
  gap: .75rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .75rem 0;
}

.seo-audit-row.head {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-audit-row small {
  color: var(--muted);
  display: block;
  margin-top: .15rem;
}

.seo-audit-row span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

@media (max-width: 900px) {
  .seo-tools-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .sankru-admin-hero-actions {
    width: 100%;
  }

  .sankru-admin-hero-actions .seo-btn {
    width: 100%;
    justify-content: center;
  }

  .seo-metric-grid,
  .seo-tools-grid,
  .seo-audit-row,
  .seo-api-grid,
  .seo-api-settings-form,
  .seo-api-result,
  .seo-verb-form .seo-tool-form-row,
  .seo-manual-form-row,
  .seo-tool-form-row,
  .seo-query-row,
  .seo-backlink-row {
    grid-template-columns: 1fr;
  }
}

.seo-grid.one {
  grid-template-columns: 1fr;
}

.seo-public-body {
  margin: 0;
  background: #0e0f14;
  color: var(--text);
}

.seo-public-page {
  min-height: 100vh;
}

.seo-public-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.seo-public-header a {
  color: var(--text);
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-style: italic;
  text-decoration: none;
}

.seo-public-header span {
  color: var(--accent);
}

.seo-public-canvas {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.seo-public-element {
  display: block;
  max-width: 100%;
  margin-bottom: 1rem;
}

.seo-public-heading {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1;
}

.seo-public-paragraph {
  line-height: 1.75;
}

.seo-public-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: .75rem 1.1rem;
  text-decoration: none;
}

.seo-public-card {
  white-space: pre-wrap;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}

.seo-public-summary {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.seo-public-image {
  overflow: hidden;
  border-radius: 10px;
}

.seo-public-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
}

.seo-public-spacer {
  min-height: 56px;
}

.seo-public-empty {
  min-height: 50vh;
}

@media (max-width: 1100px) {
  .seo-designer-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-inspector {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .seo-designer-shell,
  .seo-meta-bar {
    grid-template-columns: 1fr;
  }

  .seo-builder-stage {
    padding: .75rem;
  }

  .seo-builder-page {
    width: 1440px;
    min-width: 1440px;
    max-width: 1440px;
    min-height: 810px;
    padding: 1.25rem;
  }

  .seo-builder-stage.mobile-mode .seo-builder-page {
    width: 390px;
    min-width: 390px;
    max-width: 390px;
    min-height: 760px;
    padding: 2rem 1rem;
  }
}

.sankru-user-dashboard {
  display: grid;
  gap: 1rem;
}

.sankru-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);
  gap: 1rem;
  align-items: start;
}

.sankru-dashboard-menu,
.sankru-dashboard-side {
  display: grid;
  gap: 1rem;
}

.sankru-dashboard-title {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: linear-gradient(135deg, rgba(30,32,48,.96), rgba(22,24,32,.96));
}

.sankru-dashboard-title h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin: .25rem 0 .5rem;
}

.sankru-dashboard-title p {
  color: var(--muted);
  line-height: 1.7;
}

.sankru-dashboard-hero {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 76px;
}

.sankru-dashboard-profile {
  min-width: 170px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sankru-dashboard-profile span,
.sankru-primary-action span {
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sankru-dashboard-profile strong {
  color: #ffffff;
  margin-top: .3rem;
  font-family: 'DM Serif Display', serif;
  font-size: 2.1rem;
  font-weight: 400;
}

.sankru-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sankru-primary-action {
  min-height: 150px;
  border: 1px solid rgba(255,107,157,.38);
  border-radius: 8px;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(255,107,157,.18), rgba(30,32,48,.9));
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .2s ease, border-color .2s ease;
}

.sankru-primary-action.soft {
  border-color: rgba(78,205,196,.38);
  background: linear-gradient(135deg, rgba(78,205,196,.15), rgba(30,32,48,.9));
}

.sankru-primary-action:hover {
  transform: translateY(-2px);
  border-color: var(--accent2);
}

.sankru-primary-action strong {
  margin: .45rem 0;
  font-size: 1.25rem;
}

.sankru-primary-action small {
  color: var(--muted);
  line-height: 1.55;
}

.sankru-dashboard-card-grid .sankru-hub-card {
  min-height: 175px;
}

.sankru-dashboard-card-grid .sankru-hub-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(108,143,255,.2), rgba(30,32,48,.92));
}

.sankru-dashboard-card-grid .sankru-hub-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255,217,61,.18), rgba(30,32,48,.92));
}

.sankru-dashboard-card-grid .sankru-hub-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(78,205,196,.18), rgba(30,32,48,.92));
}

.sankru-dashboard-card-grid .sankru-hub-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(167,139,250,.2), rgba(30,32,48,.92));
}

.sankru-dashboard-card-grid .sankru-hub-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(255,107,157,.17), rgba(30,32,48,.92));
}

.sankru-dashboard-card-grid .sankru-hub-card:nth-child(6) {
  background: linear-gradient(135deg, rgba(79,142,247,.18), rgba(30,32,48,.92));
}

.sankru-formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(.85rem, 2vw, 1.1rem);
  margin-top: 1rem;
}

.sankru-formula-card {
  position: relative;
  display: grid;
  gap: .65rem;
  overflow: hidden;
  border: 1px solid rgba(79,142,247,.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(79,142,247,.12), rgba(255,77,109,.045)),
    rgba(30,32,48,.72);
  box-shadow: 0 18px 42px rgba(14,15,20,.16);
  padding: 1rem;
}

.sankru-formula-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #4f8ef7, #ff4d6d);
}

.sankru-formula-card span {
  justify-self: start;
  border: 1px solid rgba(79,142,247,.22);
  border-radius: 999px;
  background: rgba(79,142,247,.1);
  color: #8eb7ff;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  padding: .38rem .58rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sankru-formula-card h2 {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.18;
  margin: 0;
}

.sankru-formula-section {
  display: grid;
  gap: .25rem;
}

.sankru-formula-section small,
.sankru-formula-card strong small {
  display: block;
  color: #8eb7ff;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
  margin-bottom: .18rem;
  text-transform: uppercase;
}

.sankru-formula-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.sankru-formula-card strong {
  display: block;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.5;
  padding: .7rem .75rem;
}

.sankru-tenses-tabs {
  display: none;
}

.sankru-tenses-filter {
  display: grid;
  gap: .35rem;
  max-width: 360px;
  margin: .35rem 0 .15rem;
}

.sankru-tenses-filter span {
  color: #ff9aad;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sankru-tenses-filter select {
  width: 100%;
  border: 1px solid rgba(255,77,109,.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,77,109,.09), rgba(79,142,247,.045)),
    rgba(30,32,48,.72);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 900;
  outline: none;
  padding: .72rem .85rem;
}

.sankru-tenses-formula-grid.is-filtered .sankru-formula-card:not(.active) {
  display: none;
}

.sankru-tenses-page {
  gap: 1rem;
}

.sankru-tenses-hero {
  margin-bottom: 0;
}

:root[data-theme="light"] .sankru-formula-card {
  border-color: rgba(79,142,247,.18);
  background:
    linear-gradient(135deg, rgba(79,142,247,.08), rgba(255,77,109,.035)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(79,142,247,.1);
}

:root[data-theme="light"] .sankru-formula-card span {
  border-color: rgba(79,142,247,.18);
  background: rgba(79,142,247,.08);
  color: #2f6fd6;
}

:root[data-theme="light"] .sankru-formula-section small,
:root[data-theme="light"] .sankru-formula-card strong small {
  color: #2f6fd6;
}

:root[data-theme="light"] .sankru-formula-card strong {
  border-color: rgba(79,142,247,.12);
  background: #f7f9ff;
  color: #25324a;
}

:root[data-theme="light"] .sankru-tenses-filter span {
  color: #b70b25;
}

:root[data-theme="light"] .sankru-tenses-filter select {
  background: #fff5f7;
  border-color: rgba(255,77,109,.2);
  color: #132033;
}

@media (max-width: 760px) {
  .sankru-tenses-page {
    gap: .8rem;
  }

  .sankru-tenses-tabs {
    display: none;
  }

  .sankru-tenses-filter {
    position: sticky;
    top: .5rem;
    z-index: 8;
    max-width: none;
    margin: .65rem 0 .75rem;
  }

  .sankru-tenses-filter select {
    background:
      linear-gradient(135deg, rgba(255,77,109,.12), rgba(79,142,247,.06)),
      rgba(30,32,48,.96);
    padding: .75rem .85rem;
    box-shadow: 0 12px 28px rgba(14,15,20,.16);
  }

  .sankru-tenses-formula-grid {
    display: block;
    margin-top: 0;
  }

  .sankru-tenses-formula-grid .sankru-formula-card {
    display: none;
    min-height: 0;
  }

  .sankru-tenses-formula-grid .sankru-formula-card.active {
    display: grid;
  }

  .sankru-formula-card {
    gap: .75rem;
    padding: .95rem;
  }

  .sankru-formula-card h2 {
    font-size: 1.1rem;
  }

  .sankru-formula-card p,
  .sankru-formula-card strong {
    font-size: .88rem;
  }

  :root[data-theme="light"] .sankru-tenses-filter select {
    background: #fff5f7;
    box-shadow: 0 12px 28px rgba(255,77,109,.08);
  }
}

@media (max-width: 980px) {
  .sankru-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sankru-dashboard-side {
    order: -1;
  }

  .sankru-dashboard-hero {
    position: static;
  }
}

@media (max-width: 760px) {
  .sankru-dashboard-actions {
    grid-template-columns: 1fr;
  }

  .sankru-dashboard-card-grid .sankru-hub-card,
  .sankru-primary-action {
    min-height: 132px;
  }
}

/* User dashboard compact UX */
.sankru-user-dashboard {
  gap: .9rem;
}

.sankru-user-dashboard .sankru-dashboard-hero {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: .9rem;
  min-height: 168px;
  border: 1px solid rgba(108,143,255,.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(108,143,255,.18), rgba(30,32,48,.92) 58%),
    linear-gradient(90deg, transparent 0%, rgba(78,205,196,.08) 100%);
  box-shadow: 0 24px 70px rgba(14,15,20,.28);
  padding: 1.5rem;
  overflow: hidden;
}

.sankru-dashboard-greeting {
  min-width: 0;
}

.sankru-dashboard-greeting h1 {
  max-width: 100%;
  color: #ffffff;
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 10px 32px rgba(14,15,20,.28);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.sankru-dashboard-greeting p {
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  line-height: 1.65;
}

.sankru-dashboard-inline-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}

.sankru-dashboard-inline-stats span {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  padding: .65rem .7rem;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sankru-dashboard-inline-stats strong {
  color: #ffffff;
  font-size: 1rem;
  margin-right: .25rem;
}

.sankru-user-dashboard .sankru-dashboard-actions,
.sankru-user-dashboard .sankru-dashboard-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sankru-user-dashboard .sankru-primary-action,
.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card {
  aspect-ratio: auto;
  min-height: 92px;
  border-radius: 12px;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.sankru-user-dashboard .sankru-primary-action {
  background: linear-gradient(135deg, rgba(255,107,157,.32), rgba(108,143,255,.2) 52%, rgba(30,32,48,.95));
}

.sankru-user-dashboard .sankru-primary-action.soft {
  background: linear-gradient(135deg, rgba(78,205,196,.28), rgba(255,217,61,.16) 52%, rgba(30,32,48,.95));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(108,143,255,.38), rgba(30,32,48,.92));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255,217,61,.34), rgba(30,32,48,.92));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(78,205,196,.34), rgba(30,32,48,.92));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(167,139,250,.36), rgba(30,32,48,.92));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(255,107,157,.34), rgba(30,32,48,.92));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(6) {
  background: linear-gradient(135deg, rgba(79,142,247,.34), rgba(30,32,48,.92));
}

@media (max-width: 760px) {
  .sankru-page-shell.sankru-user-dashboard {
    width: min(100% - .75rem, 1120px);
    padding-top: .85rem;
  }

  .sankru-user-dashboard .sankru-dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: .65rem;
    min-height: 0;
    padding: 1rem;
  }

  .sankru-dashboard-greeting h1 {
    font-size: clamp(1.32rem, 7vw, 2rem);
    line-height: 1.06;
  }

  .sankru-dashboard-greeting p {
    display: none;
  }

  .sankru-dashboard-profile {
    min-width: 0;
    padding: .42rem;
    align-items: center;
    text-align: center;
  }

  .sankru-dashboard-profile strong {
    font-size: .95rem;
  }

  .sankru-dashboard-profile span {
    font-size: .56rem;
  }

  .sankru-dashboard-inline-stats {
    display: flex;
    gap: .35rem;
  }

  .sankru-dashboard-inline-stats span {
    flex: 1 1 0;
    padding: .45rem .28rem;
    border-radius: 7px;
    font-size: .62rem;
    text-align: center;
  }

  .sankru-dashboard-inline-stats strong {
    display: block;
    margin: 0 0 .12rem;
    font-size: .9rem;
  }

  .sankru-user-dashboard .sankru-dashboard-actions,
  .sankru-user-dashboard .sankru-dashboard-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }

  .sankru-user-dashboard .sankru-primary-action,
  .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card {
    aspect-ratio: auto;
    min-height: 76px;
    padding: .65rem;
    border-radius: 12px;
  }

  .sankru-user-dashboard .sankru-primary-action strong,
  .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card h3 {
    font-size: .82rem;
    line-height: 1.12;
  }

  .sankru-user-dashboard .sankru-primary-action small {
    display: none;
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card p {
    display: none;
  }

  .sankru-user-dashboard .sankru-primary-action span,
  .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card span {
    font-size: .52rem;
  }
}

/* Latest dashboard refinements */
.sankru-dashboard-name-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.sankru-dashboard-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
}

.sankru-dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sankru-user-dashboard .sankru-dashboard-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card {
  aspect-ratio: auto;
  min-height: 92px;
  padding: .78rem 4.1rem .78rem .9rem;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card h3 {
  font-size: 1rem;
  line-height: 1.18;
  margin: .42rem 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card p {
  display: none;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(1) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(2) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 5a4 4 0 0 1 4-2h5v18H7a4 4 0 0 0-4 2Z'/%3E%3Cpath d='M21 5a4 4 0 0 0-4-2h-5v18h5a4 4 0 0 1 4 2Z'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(3) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(4) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3Cpath d='M8 7h7'/%3E%3Cpath d='M8 11h5'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(5) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M8 8h8'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 16h5'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(6) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12'/%3E%3Cpath d='M9 9v6'/%3E%3Cpath d='M15 9v6'/%3E%3Cpath d='M8 17h8a5 5 0 0 0 0-10H8a5 5 0 0 0 0 10Z'/%3E%3Cpath d='M7 12h.01'/%3E%3Cpath d='M17 12h.01'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(7) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(8) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.4 5.4 0 0 0-7.6 0L12 5.8l-1.2-1.2a5.4 5.4 0 1 0-7.6 7.6L12 21l8.8-8.8a5.4 5.4 0 0 0 0-7.6Z'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(9) {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .6 1.7 1.7 0 0 0-.4 1V21a2 2 0 1 1-4 0v-.09a1.7 1.7 0 0 0-1.1-1.51 1.7 1.7 0 0 0-1.88.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-.6-1 1.7 1.7 0 0 0-1-.4H3a2 2 0 1 1 0-4h.09a1.7 1.7 0 0 0 1.51-1.1 1.7 1.7 0 0 0-.34-1.88l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-.6 1.7 1.7 0 0 0 .4-1V3a2 2 0 1 1 4 0v.09a1.7 1.7 0 0 0 1.1 1.51 1.7 1.7 0 0 0 1.88-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.2.36.5.68.86.88.22.12.48.18.74.18H21a2 2 0 1 1 0 4h-.09a1.7 1.7 0 0 0-1.51 1.1Z'/%3E%3C/svg%3E");
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(7) {
  background: linear-gradient(135deg, rgba(255,140,90,.32), rgba(30,32,48,.92));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(8) {
  background: linear-gradient(135deg, rgba(130,220,120,.28), rgba(30,32,48,.92));
}

@media (max-width: 980px) {
  .sankru-user-dashboard .sankru-dashboard-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sankru-app-header {
    position: sticky;
    top: 0;
    overflow: visible;
    justify-content: space-between;
  }

  .sankru-app-header .logo {
    display: block !important;
  }

  .sankru-mobile-menu-btn {
    display: inline-flex;
    margin-left: auto;
    order: 4;
  }

  .sankru-app-header .header-account-actions {
    order: 3;
    margin-left: 0;
  }

  .sankru-app-header .sankru-profile-chip,
  .sankru-app-header .cikisbtn {
    display: none;
  }

  .sankru-app-header .sankru-main-nav {
    order: 10;
    display: none;
    width: 100%;
    flex: 0 0 100%;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    padding-top: .55rem;
  }

  .sankru-app-header.menu-open .sankru-main-nav {
    display: grid;
  }

  .sankru-app-header .sankru-main-nav a {
    width: 100%;
    text-align: center;
    padding: .62rem .45rem;
    border-color: var(--border);
    background: rgba(30,32,48,.75);
  }

  .sankru-app-header .sankru-main-nav a.panel-nav-link {
    border-color: rgba(78,205,196,.72);
    background: linear-gradient(135deg, rgba(78,205,196,.34), rgba(108,143,255,.28));
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(14,15,20,.22);
  }

  :root[data-theme="light"] .sankru-app-header .sankru-main-nav a.panel-nav-link {
    border-color: rgba(78,205,196,.48);
    background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(79,142,247,.2);
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card {
    aspect-ratio: auto;
    min-height: 76px;
    padding: .6rem 3.25rem .6rem .64rem;
    border-radius: 10px;
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card::after {
    right: .42rem;
    width: 42px;
    height: 42px;
    opacity: .68;
  }
}

/* Final navigation and dashboard refinements */
.fiiler-page .favorites-section {
  display: none !important;
}

.favorite-btn:not(.verb-favorite-btn),
.favorite-card-remove,
.favorite-page-remove,
.favorites-empty-icon {
  font-size: 0;
}

.favorite-btn:not(.verb-favorite-btn)::before,
.favorite-card-remove::before,
.favorite-page-remove::before,
.favorites-empty-icon::before {
  content: "\2661";
  font-size: 1.05rem;
  line-height: 1;
}

.favorite-btn.active:not(.verb-favorite-btn)::before,
.favorite-card-remove::before,
.favorite-page-remove::before {
  content: "\2665";
}

.mobile-levels {
  justify-content: center !important;
  padding-inline: 1rem;
}

.fiiler-page .mobile-levels {
  gap: .5rem;
  padding: .8rem 1rem;
  background: rgba(14,15,20,.72);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}

.fiiler-page .mobile-level-btn {
  min-width: 76px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  flex-direction: column;
  gap: .1rem;
}

.fiiler-page .mobile-level-btn:hover,
.fiiler-page .mobile-level-btn.active {
  background: linear-gradient(135deg, rgba(108,143,255,.95), rgba(78,205,196,.86));
  border-color: rgba(255,255,255,.38);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79,142,247,.28);
}

.mobile-level-code {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.mobile-level-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: .72;
}

:root[data-theme="light"] .fiiler-page .mobile-levels {
  background: #ffffff;
  border-bottom-color: rgba(79,142,247,.18);
  box-shadow: 0 10px 24px rgba(79,142,247,.08);
}

:root[data-theme="light"] .fiiler-page .mobile-level-btn {
  border-color: rgba(79,142,247,.22);
  background: #f7f9ff;
  color: #30405f;
  box-shadow: 0 8px 18px rgba(79,142,247,.1);
}

:root[data-theme="light"] .fiiler-page .mobile-level-btn:hover,
:root[data-theme="light"] .fiiler-page .mobile-level-btn.active {
  border-color: rgba(79,142,247,.48);
  background: linear-gradient(135deg, #4f8ef7, #4ecdc4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(79,142,247,.18);
}

:root[data-theme="light"] .fiiler-page .mobile-level-label {
  color: rgba(48,64,95,.72);
}

:root[data-theme="light"] .fiiler-page .mobile-level-btn.active .mobile-level-label,
:root[data-theme="light"] .fiiler-page .mobile-level-btn:hover .mobile-level-label {
  color: rgba(255,255,255,.82);
}

.fiiler-page .level-accordion {
  margin: 0 0 .55rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}

.fiiler-page .level-header {
  min-height: 58px;
  padding: .62rem .72rem;
  gap: .65rem;
  border-radius: 0;
  color: var(--text);
  transition: background .2s ease, border-color .2s ease;
}

.fiiler-page .level-header:hover,
.fiiler-page .level-header.open {
  background: rgba(108,143,255,.1);
}

.level-header-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: .55rem;
  flex: 1 1 auto;
}

.level-pill {
  display: inline-flex;
  width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #6c8fff, #4ecdc4);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(79,142,247,.22);
}

.level-title {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
}

.level-count {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .22rem .48rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  background: rgba(255,255,255,.05);
}

.fiiler-page .accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  color: var(--accent);
  font-weight: 800;
}

.sankru-admin-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sankru-admin-dashboard {
  position: relative;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("public/images/admin-dashboard-panel/darkmode.svg") center top / max(1420px, 100vw) auto repeat-y;
  opacity: .055;
  filter: drop-shadow(0 20px 38px rgba(0,0,0,.12));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.74), rgba(0,0,0,.58) 46%, rgba(0,0,0,.28));
  mask-image: linear-gradient(180deg, rgba(0,0,0,.74), rgba(0,0,0,.58) 46%, rgba(0,0,0,.28));
}

body > *,
.sankru-admin-dashboard > .seo-tools-hero,
.sankru-admin-dashboard > .sankru-admin-dashboard-grid {
  position: relative;
  z-index: 1;
}

.sankru-admin-dashboard-grid .sankru-hub-card {
  aspect-ratio: auto;
  min-height: 104px;
  padding: .9rem;
  border-radius: 12px;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(108,143,255,.36), rgba(30,32,48,.92));
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(78,205,196,.32), rgba(30,32,48,.92));
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(255,217,61,.28), rgba(30,32,48,.92));
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(255,107,157,.32), rgba(30,32,48,.92));
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(167,139,250,.34), rgba(30,32,48,.92));
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(6) {
  background: linear-gradient(135deg, rgba(79,142,247,.32), rgba(30,32,48,.92));
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(7) {
  background: linear-gradient(135deg, rgba(255,140,90,.3), rgba(30,32,48,.92));
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(8) {
  background: linear-gradient(135deg, rgba(130,220,120,.28), rgba(30,32,48,.92));
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card,
.sankru-admin-dashboard-grid .sankru-hub-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(14,15,20,.28);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card::before,
.sankru-admin-dashboard-grid .sankru-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 42%);
  pointer-events: none;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card::after,
.sankru-admin-dashboard-grid .sankru-hub-card::after {
  content: none;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card::after {
  content: "";
  position: absolute;
  right: .62rem;
  top: 50%;
  width: clamp(50px, 6.2vw, 68px);
  height: clamp(50px, 6.2vw, 68px);
  background: rgba(255,255,255,.34);
  opacity: .76;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  -webkit-mask: var(--card-icon) center / contain no-repeat;
  mask: var(--card-icon) center / contain no-repeat;
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card::after {
  background: rgba(11,46,111,.22);
  opacity: .72;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card span,
.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card h3,
.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card p,
.sankru-admin-dashboard-grid .sankru-hub-card span,
.sankru-admin-dashboard-grid .sankru-hub-card h3,
.sankru-admin-dashboard-grid .sankru-hub-card p {
  position: relative;
  z-index: 1;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card span,
.sankru-admin-dashboard-grid .sankru-hub-card span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: #ffffff;
  background: rgba(14,15,20,.2);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .24rem .52rem;
  letter-spacing: .04em;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card h3,
.sankru-admin-dashboard-grid .sankru-hub-card h3 {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 14px rgba(14,15,20,.24);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card p,
.sankru-admin-dashboard-grid .sankru-hub-card p {
  color: rgba(255,255,255,.88);
  font-weight: 500;
}

.sankru-admin-dashboard-grid .sankru-hub-card h3 {
  font-size: .98rem;
  line-height: 1.18;
  margin: .42rem 0 .3rem;
}

.sankru-admin-dashboard-grid .sankru-hub-card p {
  font-size: .86rem;
  line-height: 1.32;
  margin: 0;
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card.is-clickable:hover,
.sankru-admin-dashboard-grid .sankru-hub-card.is-clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 22px 54px rgba(14,15,20,.32);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(1),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(108,143,255,.72) 0%, rgba(79,142,247,.7) 54%, rgba(47,95,216,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(2),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(78,205,196,.72) 0%, rgba(79,142,247,.7) 58%, rgba(37,99,199,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(3),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(255,217,61,.74) 0%, rgba(255,159,67,.72) 48%, rgba(242,13,46,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(4),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(255,107,157,.72) 0%, rgba(242,13,46,.7) 58%, rgba(178,10,38,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(5),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(167,139,250,.72) 0%, rgba(108,143,255,.7) 52%, rgba(79,70,229,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(6),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(6) {
  background: linear-gradient(135deg, rgba(79,142,247,.72) 0%, rgba(78,205,196,.7) 58%, rgba(15,118,110,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(7),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(7) {
  background: linear-gradient(135deg, rgba(242,13,46,.72) 0%, rgba(255,107,157,.7) 50%, rgba(167,139,250,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(8),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(8) {
  background: linear-gradient(135deg, rgba(14,15,20,.78) 0%, rgba(30,32,48,.74) 42%, rgba(108,143,255,.72) 100%);
}

.sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(9),
.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(9) {
  background: linear-gradient(135deg, rgba(255,217,61,.74) 0%, rgba(78,205,196,.7) 52%, rgba(79,142,247,.72) 100%);
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(10) {
  background: linear-gradient(135deg, rgba(108,143,255,.72) 0%, rgba(167,139,250,.7) 52%, rgba(255,107,157,.72) 100%);
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(11) {
  background: linear-gradient(135deg, rgba(78,205,196,.72) 0%, rgba(79,142,247,.7) 52%, rgba(108,143,255,.72) 100%);
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(12) {
  background: linear-gradient(135deg, rgba(255,217,61,.72) 0%, rgba(167,139,250,.7) 52%, rgba(79,142,247,.72) 100%);
}

.sankru-admin-dashboard-grid .sankru-hub-card:nth-child(13) {
  background: linear-gradient(135deg, rgba(255,140,90,.72) 0%, rgba(255,107,157,.7) 52%, rgba(108,143,255,.72) 100%);
}

.sankru-dashboard-settings-card {
  display: none;
}

.sankru-card-main-link {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  text-decoration: none;
}

.sankru-card-logout-btn {
  position: relative;
  z-index: 2;
  display: none;
  width: fit-content;
  margin-top: .62rem;
  padding: .42rem .72rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: rgba(242,13,46,.86);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.sankru-card-logout-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #f20d2e;
}

:root[data-theme="light"] .sankru-card-logout-btn {
  border-color: rgba(255,255,255,.54);
  background: rgba(242,13,46,.9);
  color: #ffffff;
}

.sankru-page-hero .sankru-setting-logout-panel {
  display: none;
}

.sankru-setting-logout-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .72rem;
}

.sankru-settings-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1rem;
  border: 1px solid rgba(242,13,46,.7);
  border-radius: 8px;
  background: #f20d2e;
  color: #ffffff;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.sankru-settings-logout-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #ffffff;
  color: #f20d2e;
}

:root[data-theme="light"] .sankru-settings-logout-btn:hover {
  border-color: rgba(242,13,46,.2);
  box-shadow: 0 12px 28px rgba(242,13,46,.12);
}

.seo-admin-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(108,143,255,.08), transparent 320px),
    linear-gradient(135deg, rgba(78,205,196,.08), transparent 42%),
    var(--bg);
}

.seo-admin-body .seo-tools-shell {
  width: min(1180px, calc(100% - 2rem));
  padding: 1.5rem 0 3rem;
}

.seo-admin-body .seo-tools-hero {
  position: relative;
  align-items: center;
  min-height: 168px;
  border: 1px solid rgba(108,143,255,.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(108,143,255,.18), rgba(30,32,48,.92) 58%),
    linear-gradient(90deg, transparent 0%, rgba(78,205,196,.08) 100%);
  box-shadow: 0 24px 70px rgba(14,15,20,.28);
  margin-bottom: 1.2rem;
  padding: 1.5rem;
  overflow: hidden;
}

.seo-admin-body .seo-tools-hero::after {
  content: none;
}

.seo-admin-body .seo-tools-hero > * {
  position: relative;
  z-index: 1;
}

.seo-admin-body .seo-tools-hero .seo-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(78,205,196,.36);
  border-radius: 999px;
  background: rgba(78,205,196,.12);
  color: #4ecdc4;
  padding: .32rem .62rem;
  letter-spacing: 0;
}

.seo-admin-body .seo-tools-hero h1 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 10px 32px rgba(14,15,20,.28);
}

.seo-admin-body .seo-tools-hero p {
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  line-height: 1.65;
}

.sankru-admin-hero-actions {
  display: grid;
  gap: .6rem;
  min-width: 170px;
}

.seo-admin-body .seo-tools-hero .seo-btn,
.seo-admin-body .seo-tools-hero .favorites-nav-btn {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(14,15,20,.18);
}

.seo-admin-body .seo-tools-hero .seo-btn:hover,
.seo-admin-body .seo-tools-hero .favorites-nav-btn:hover {
  background: #ffffff;
  color: #0e0f14;
}

.seo-admin-body .sankru-hub-grid:not(.sankru-admin-dashboard-grid),
.seo-admin-body .seo-tools-grid,
.seo-admin-body .seo-metric-grid {
  gap: .85rem;
}

.seo-admin-body .sankru-hub-grid:not(.sankru-admin-dashboard-grid) .sankru-hub-card,
.seo-admin-body .seo-tool-card,
.seo-admin-body .seo-metric-card {
  border-color: rgba(108,143,255,.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(30,32,48,.76)),
    rgba(30,32,48,.72);
  box-shadow: 0 16px 42px rgba(14,15,20,.18);
}

.seo-admin-body .sankru-hub-grid:not(.sankru-admin-dashboard-grid) .sankru-hub-card:hover,
.seo-admin-body .seo-tool-card:hover,
.seo-admin-body .seo-metric-card:hover {
  border-color: rgba(78,205,196,.38);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(14,15,20,.24);
}

:root[data-theme="light"] .seo-admin-body {
  background:
    linear-gradient(180deg, rgba(108,143,255,.14), transparent 340px),
    linear-gradient(135deg, rgba(78,205,196,.12), transparent 44%),
    #f5f7ff;
}

:root[data-theme="light"] .seo-admin-body .seo-tools-hero {
  border-color: rgba(108,143,255,.22);
  background:
    linear-gradient(135deg, rgba(108,143,255,.14), rgba(255,255,255,.86) 58%),
    linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(78,205,196,.08) 100%);
  box-shadow: 0 24px 70px rgba(79,142,247,.16);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-hero {
  border-color: rgba(108,143,255,.22);
  background:
    linear-gradient(135deg, rgba(108,143,255,.14), rgba(255,255,255,.86) 58%),
    linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(78,205,196,.08) 100%);
  box-shadow: 0 24px 70px rgba(79,142,247,.16);
}

:root[data-theme="light"] .seo-admin-body .seo-tools-hero::after {
  content: none;
}

:root[data-theme="light"] .seo-admin-body .seo-tools-hero h1 {
  color: #0e0f14;
  text-shadow: none;
}

:root[data-theme="light"] .sankru-dashboard-greeting h1 {
  color: #0e0f14;
  text-shadow: none;
}

:root[data-theme="light"] .seo-admin-body .seo-tools-hero p {
  color: #4b587c;
}

:root[data-theme="light"] .sankru-dashboard-greeting p {
  color: #4b587c;
}

:root[data-theme="light"] .sankru-dashboard-profile,
:root[data-theme="light"] .sankru-dashboard-inline-stats span {
  border-color: rgba(79,142,247,.18);
  background: rgba(255,255,255,.72);
  color: #4b587c;
}

:root[data-theme="light"] .sankru-dashboard-profile strong,
:root[data-theme="light"] .sankru-dashboard-inline-stats strong {
  color: #0e0f14;
}

:root[data-theme="light"] .sankru-dashboard-profile span {
  color: #0b2e6f;
}

:root[data-theme="light"] .sankru-dashboard-avatar {
  border-color: rgba(79,142,247,.24);
  background: rgba(79,142,247,.12);
  color: #0b2e6f;
}

:root[data-theme="light"] .seo-admin-body .seo-tools-hero .seo-btn,
:root[data-theme="light"] .seo-admin-body .seo-tools-hero .favorites-nav-btn {
  border-color: rgba(79,142,247,.22);
  background: #ffffff;
  color: #0e0f14;
}

:root[data-theme="light"] .seo-admin-body .sankru-hub-grid:not(.sankru-admin-dashboard-grid) .sankru-hub-card,
:root[data-theme="light"] .seo-admin-body .seo-tool-card,
:root[data-theme="light"] .seo-admin-body .seo-metric-card {
  background: #ffffff;
  border-color: rgba(108,143,255,.18);
  box-shadow: 0 18px 42px rgba(79,142,247,.1);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card,
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card {
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 18px 46px rgba(79,142,247,.22);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(1),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(1) {
  background: linear-gradient(135deg, #4d6fc9 0%, #3d77c4 54%, #2f5aaf 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(2),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(2) {
  background: linear-gradient(135deg, #2f8f8a 0%, #3777bd 58%, #2f5f9f 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(3),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(3) {
  background: linear-gradient(135deg, #b68a20 0%, #b5652b 48%, #a83246 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(4),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(4) {
  background: linear-gradient(135deg, #b64874 0%, #a93246 58%, #743d99 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(5),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(5) {
  background: linear-gradient(135deg, #7a61bf 0%, #536fc5 52%, #4541a8 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(6),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(6) {
  background: linear-gradient(135deg, #3d77bd 0%, #2f8f8a 58%, #277368 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(7),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(7) {
  background: linear-gradient(135deg, #a83246 0%, #b64874 50%, #7a61bf 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(8),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(8) {
  background: linear-gradient(135deg, #35394c 0%, #30364f 42%, #4d6fc9 100%);
}

:root[data-theme="light"] .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card:nth-child(9),
:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(9) {
  background: linear-gradient(135deg, #b68a20 0%, #2f8f8a 52%, #3d77bd 100%);
}

:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(10) {
  background: linear-gradient(135deg, #536fc5 0%, #7a61bf 52%, #b64874 100%);
}

:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(11) {
  background: linear-gradient(135deg, #2f8f8a 0%, #3d77bd 52%, #536fc5 100%);
}

:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(12) {
  background: linear-gradient(135deg, #b68a20 0%, #7a61bf 52%, #3d77bd 100%);
}

:root[data-theme="light"] .sankru-admin-dashboard-grid .sankru-hub-card:nth-child(13) {
  background: linear-gradient(135deg, #b5652b 0%, #b64874 52%, #536fc5 100%);
}

:root[data-theme="light"] body::before {
  background-image: url("public/images/admin-dashboard-panel/lightmode.svg");
  opacity: .07;
  filter: drop-shadow(0 18px 34px rgba(79,142,247,.1));
}

@media (max-width: 980px) {
  .sankru-admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-admin-body .seo-tools-hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 760px) {
  .seo-admin-body .seo-tools-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 1rem;
  }

  .seo-admin-body .seo-tools-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 1rem;
  }

  .seo-admin-body .seo-tools-hero h1 {
    font-size: 2rem;
  }

  .sankru-app-header .header-account-actions {
    order: 4;
  }

  .sankru-mobile-menu-btn {
    order: 5;
    margin-left: .35rem;
  }

  .sankru-app-header .header-account-actions .favorites-nav-btn {
    display: inline-flex;
    align-items: center;
  }

  .mobile-levels {
    justify-content: center !important;
    overflow-x: hidden;
  }

  .sankru-admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }

  .sankru-admin-dashboard-grid .sankru-hub-card {
    aspect-ratio: auto;
    min-height: 88px;
    padding: .64rem;
  }

  .sankru-admin-dashboard-grid .sankru-hub-card h3 {
    font-size: .86rem;
    line-height: 1.15;
    margin: .34rem 0 .24rem;
  }

  .sankru-admin-dashboard-grid .sankru-hub-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .72rem;
    line-height: 1.3;
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid > .sankru-hub-card[href="settings.php"],
  .sankru-admin-dashboard-grid > .sankru-hub-card[href="profile.php"] {
    display: none;
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid > .sankru-dashboard-settings-card,
  .sankru-admin-dashboard-grid > .sankru-dashboard-settings-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: auto;
    min-height: 96px;
    padding: .64rem 3.25rem .64rem .64rem;
    background: linear-gradient(135deg, rgba(255,217,61,.74) 0%, rgba(78,205,196,.7) 52%, rgba(79,142,247,.72) 100%);
    --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .6 1.7 1.7 0 0 0-.4 1V21a2 2 0 1 1-4 0v-.09a1.7 1.7 0 0 0-1.1-1.51 1.7 1.7 0 0 0-1.88.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-.6-1 1.7 1.7 0 0 0-1-.4H3a2 2 0 1 1 0-4h.09a1.7 1.7 0 0 0 1.51-1.1 1.7 1.7 0 0 0-.34-1.88l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-.6 1.7 1.7 0 0 0 .4-1V3a2 2 0 1 1 4 0v.09a1.7 1.7 0 0 0 1.1 1.51 1.7 1.7 0 0 0 1.88-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.2.36.5.68.86.88.22.12.48.18.74.18H21a2 2 0 1 1 0 4h-.09a1.7 1.7 0 0 0-1.51 1.1Z'/%3E%3C/svg%3E");
  }

  .sankru-admin-dashboard-grid > .sankru-admin-account-card {
    background: linear-gradient(135deg, rgba(255,140,90,.3), rgba(30,32,48,.92));
    padding-right: .64rem;
  }

  .sankru-card-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid .sankru-hub-card::after {
    right: .42rem;
    width: 42px;
    height: 42px;
    opacity: .68;
  }

  body::before {
    background-position: center top;
    background-size: 1080px auto;
    opacity: .052;
  }

  :root[data-theme="light"] body::before {
    opacity: .058;
  }

  .sankru-admin-game-panel {
    grid-template-columns: 1fr;
  }

  .word-match-head,
  .word-match-board,
  .icon-quiz-stage,
  .icon-quiz-options {
    grid-template-columns: 1fr;
  }

  .word-match-head {
    display: grid;
  }
}

.favorites-page.sankru-page-shell {
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

.favorites-page .favorites-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(108,143,255,.2), rgba(78,205,196,.1) 52%, rgba(30,32,48,.82)),
    var(--panel-gradient);
  padding: clamp(1rem, 3vw, 1.6rem);
  margin-bottom: 1rem;
  box-shadow: 0 18px 46px rgba(14,15,20,.22);
}

.favorites-page .favorites-page-hero h1 {
  font-style: normal;
  margin-bottom: .45rem;
}

.favorites-page .favorites-count {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(108,143,255,.16);
  color: var(--text);
  padding: .45rem .8rem;
  font-weight: 800;
}

.favorites-count-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
}

.favorites-tab-shell {
  display: grid;
  gap: 1rem;
}

.favorites-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.72);
  padding: .35rem;
  box-shadow: 0 14px 32px rgba(14,15,20,.16);
}

.favorites-tabs button {
  min-width: 112px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  padding: .62rem .9rem;
}

.favorites-tabs button.active,
.favorites-tabs button:hover {
  border-color: rgba(108,143,255,.55);
  background: linear-gradient(135deg, rgba(108,143,255,.28), rgba(78,205,196,.16));
  color: var(--text);
}

:root[data-theme="light"] .favorites-tabs {
  border-color: rgba(79,142,247,.18);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(79,142,247,.1);
}

:root[data-theme="light"] .favorites-tabs button {
  color: #53617c;
  background: transparent;
}

:root[data-theme="light"] .favorites-tabs button:hover,
:root[data-theme="light"] .favorites-tabs button.active {
  border-color: rgba(79,142,247,.45);
  background: linear-gradient(135deg, #4f8ef7, #4ecdc4);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(79,142,247,.18);
}

.favorites-tab-panel {
  display: grid;
  gap: 1rem;
}

.favorites-tab-panel[hidden] {
  display: none;
}

.sankru-games-page,
.sankru-admin-games-page {
  display: grid;
  gap: 1rem;
}

.sankru-games-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.sankru-games-hero > .favorites-nav-btn {
  justify-self: end;
}

.sankru-games-hero .sankru-game-score-summary {
  grid-template-columns: 1fr;
  gap: .55rem;
  width: 100%;
}

.sankru-games-hero .sankru-game-score-summary div {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: .75rem;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: .65rem .75rem;
}

.sankru-games-hero .sankru-game-score-summary span {
  margin-bottom: 0;
}

.sankru-games-hero .sankru-game-score-summary strong {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.sankru-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.35rem);
}

.sankru-game-score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}

.sankru-game-score-summary div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(78,205,196,.16), rgba(108,143,255,.1)),
    rgba(255,255,255,.06);
  padding: .85rem 1rem;
}

.sankru-game-score-summary div::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #4ecdc4, #4f8ef7);
}

.sankru-game-score-summary div:nth-child(2)::before {
  background: linear-gradient(180deg, #ffd93d, #4ecdc4);
}

.sankru-game-score-summary div:nth-child(3)::before {
  background: linear-gradient(180deg, #ff6b7a, #ffd93d);
}

.sankru-game-score-summary div:nth-child(4)::before {
  background: linear-gradient(180deg, #8ea7ff, #4ecdc4);
}

.sankru-game-score-summary span,
.sankru-game-card small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.sankru-game-score-summary span {
  display: block;
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sankru-game-score-summary strong {
  color: #ffffff;
  font-size: 1.3rem;
}

.word-match-game,
.word-memory-game,
.icon-quiz-game {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(78,205,196,.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(78,205,196,.22), transparent 32%),
    radial-gradient(circle at top right, rgba(255,217,61,.1), transparent 28%),
    linear-gradient(135deg, rgba(108,143,255,.18), rgba(30,32,48,.84));
  box-shadow:
    inset 0 0 0 1px rgba(108,143,255,.08),
    0 18px 42px rgba(14,15,20,.18);
  padding: clamp(1rem, 3vw, 1.35rem);
}

.word-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.word-match-head span,
.word-match-column h3 {
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.word-match-head h2 {
  margin-top: .25rem;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.word-match-score {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: .25rem;
  min-width: 96px;
  border: 1px solid rgba(78,205,196,.24);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(78,205,196,.15), rgba(108,143,255,.11)),
    rgba(255,255,255,.06);
  padding: .65rem .8rem;
  text-align: center;
}

.word-match-score::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #4ecdc4, #4f8ef7, #ffd93d);
}

.word-match-score strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.word-match-timer-panel {
  display: grid;
  gap: .55rem;
  border: 1px solid rgba(255,217,61,.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,217,61,.1), rgba(78,205,196,.08)),
    rgba(255,255,255,.045);
  padding: .9rem clamp(.85rem, 3vw, 1.3rem);
}

.word-match-clock {
  color: var(--text);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  text-align: center;
}

.word-match-clock.is-warning {
  color: #ff8c9f;
}

.word-match-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.word-match-progress-head strong {
  color: var(--accent3);
}

.word-match-progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}

.word-match-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ecdc4, #ffd93d);
  transition: width .22s ease;
}

.word-match-progress-marks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.word-match-progress-marks span {
  text-align: center;
}

.word-match-progress-marks span:first-child {
  text-align: left;
}

.word-match-progress-marks span:last-child {
  text-align: right;
}

.word-match-modal[hidden] {
  display: none;
}

.word-match-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(5,8,16,.72);
  backdrop-filter: blur(14px);
  padding: clamp(.9rem, 4vw, 1.4rem);
}

.word-match-modal-card {
  position: relative;
  display: grid;
  gap: .78rem;
  width: min(100%, 430px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(36,40,58,.98), rgba(17,20,31,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
  overflow: hidden;
  padding: clamp(1.15rem, 4vw, 1.55rem);
  text-align: center;
}

.word-match-modal-card span {
  justify-self: center;
  border: 1px solid rgba(78,205,196,.3);
  border-radius: 999px;
  background: rgba(78,205,196,.12);
  color: #6de3da;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  padding: .48rem .7rem;
  text-transform: uppercase;
}

.word-match-modal-card h3 {
  color: #ffffff;
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  line-height: 1.1;
  margin: 0;
}

.word-match-modal-card p {
  color: rgba(236,242,255,.76);
  font-size: .94rem;
  line-height: 1.62;
  margin: 0;
}

.word-match-modal-card .word-match-next {
  justify-self: center;
  margin-top: .18rem;
  min-width: 150px;
  border: 0;
  background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
  box-shadow: 0 14px 30px rgba(79,142,247,.24);
  color: #ffffff;
  padding: .78rem 1.1rem;
}

.word-match-modal-card .word-match-next:hover {
  box-shadow: 0 18px 38px rgba(79,142,247,.32);
  transform: translateY(-1px);
}

.word-match-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.word-match-column {
  display: grid;
  gap: .7rem;
  border: 1px solid rgba(108,143,255,.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(108,143,255,.08), rgba(78,205,196,.05)),
    rgba(255,255,255,.025);
  padding: .85rem;
}

.word-match-column:nth-child(2) {
  border-color: rgba(78,205,196,.18);
  background:
    linear-gradient(135deg, rgba(78,205,196,.08), rgba(255,217,61,.05)),
    rgba(255,255,255,.025);
}

.word-match-list {
  display: grid;
  gap: .55rem;
}

.word-match-card {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .98rem;
  font-weight: 900;
  padding: .75rem;
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.word-match-card:hover,
.word-match-card.selected {
  transform: translateY(-1px);
  border-color: rgba(108,143,255,.58);
  background: rgba(108,143,255,.16);
}

.word-match-card.matched {
  border-color: rgba(78,205,196,.72);
  background: rgba(78,205,196,.18);
  color: #4ecdc4;
  cursor: default;
}

.word-match-card.wrong {
  border-color: rgba(242,13,46,.68);
  background: rgba(242,13,46,.14);
  color: #ff8c9f;
}

.word-match-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
}

.word-game-save-status {
  color: var(--accent3);
}

.word-memory-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed rgba(78,205,196,.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(78,205,196,.08), rgba(108,143,255,.06)),
    rgba(255,255,255,.04);
  padding: clamp(1rem, 4vw, 1.6rem);
}

.word-memory-card {
  position: relative;
  display: grid;
  gap: .85rem;
  width: min(100%, 520px);
  min-height: 330px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(31,35,53,.98), rgba(15,18,29,.98));
  box-shadow: 0 28px 70px rgba(14,15,20,.32);
  overflow: hidden;
  padding: clamp(1.35rem, 5vw, 2rem);
  text-align: center;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.word-memory-card::before {
  content: '';
  position: absolute;
  inset: .7rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  pointer-events: none;
}

.word-memory-card.is-correct {
  border-color: rgba(78,205,196,.7);
  background: linear-gradient(145deg, rgba(20,70,67,.96), rgba(13,34,39,.98));
  box-shadow: 0 28px 70px rgba(78,205,196,.2);
}

.word-memory-card.is-wrong {
  border-color: rgba(242,13,46,.72);
  background: linear-gradient(145deg, rgba(74,22,34,.96), rgba(31,14,23,.98));
  box-shadow: 0 28px 70px rgba(242,13,46,.18);
}

.word-memory-card span {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(78,205,196,.28);
  border-radius: 999px;
  background: rgba(78,205,196,.1);
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  padding: .42rem .68rem;
  text-transform: uppercase;
}

.word-memory-card strong {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
}

.word-memory-card p {
  position: relative;
  z-index: 2;
  color: rgba(236,242,255,.72);
  font-weight: 800;
  margin: 0;
}

.word-memory-card em {
  position: relative;
  z-index: 2;
  color: #6de3da;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-style: normal;
  font-weight: 900;
}

.word-memory-answer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  width: min(100%, 360px);
}

.word-memory-answer input {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  outline: none;
  padding: .78rem 1rem;
  text-align: center;
}

.word-memory-answer input:focus {
  border-color: rgba(78,205,196,.62);
  box-shadow: 0 0 0 4px rgba(78,205,196,.14);
}

.word-memory-answer input::placeholder {
  color: rgba(236,242,255,.52);
}

.word-memory-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
}

#wordMemoryReveal,
#wordMemoryRepeat,
#wordMemoryKnown {
  display: none;
}

.word-memory-lives {
  border: 1px solid rgba(255,217,61,.34);
  border-radius: 999px;
  background: rgba(255,217,61,.12);
  color: #ffd93d;
  font-weight: 900;
  padding: .62rem .9rem;
}

.word-memory-repeat,
.word-memory-known {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  padding: .65rem 1rem;
}

.word-memory-repeat {
  background: rgba(255,217,61,.12);
  border-color: rgba(255,217,61,.32);
}

.word-memory-known {
  background: rgba(78,205,196,.14);
  border-color: rgba(78,205,196,.42);
}

.word-memory-repeat:hover,
.word-memory-known:hover {
  transform: translateY(-1px);
}

.word-memory-actions button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.icon-quiz-stage {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 1.5rem);
  border: 1px dashed rgba(255,217,61,.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,217,61,.1), rgba(108,143,255,.08)),
    rgba(255,255,255,.04);
  padding: clamp(1rem, 4vw, 1.5rem);
}

.icon-quiz-image-wrap {
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 1px solid rgba(78,205,196,.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(255,217,61,.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(78,205,196,.14), transparent 32%),
    rgba(255,255,255,.06);
  padding: 1.25rem;
}

.icon-quiz-image-wrap img {
  display: block;
  width: min(100%, 210px);
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.icon-quiz-meta {
  display: grid;
  gap: .55rem;
}

.icon-quiz-meta span {
  color: var(--accent3);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.icon-quiz-meta strong {
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.icon-quiz-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.icon-quiz-option {
  min-height: 58px;
  border: 1px solid rgba(108,143,255,.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(108,143,255,.08), rgba(78,205,196,.05)),
    rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .98rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  padding: .75rem;
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.icon-quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(108,143,255,.58);
  background: rgba(108,143,255,.16);
}

.icon-quiz-option.is-correct {
  border-color: rgba(78,205,196,.72);
  background: rgba(78,205,196,.18);
  color: #4ecdc4;
}

.icon-quiz-option.is-wrong {
  border-color: rgba(242,13,46,.68);
  background: rgba(242,13,46,.14);
  color: #ff8c9f;
}

.icon-quiz-option:disabled {
  cursor: not-allowed;
}

.icon-quiz-timer-panel .word-match-progress-track span {
  width: 100%;
  background: linear-gradient(90deg, #ffd93d, #4ecdc4);
}

.word-match-next {
  justify-self: start;
  border: 1px solid rgba(78,205,196,.5);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(78,205,196,.24), rgba(108,143,255,.18));
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  padding: .65rem 1rem;
}

.word-match-next:hover {
  background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
  color: #ffffff;
}

.sankru-game-card,
.sankru-admin-game-panel {
  border: 1px solid rgba(78,205,196,.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(78,205,196,.16), transparent 34%),
    linear-gradient(135deg, rgba(108,143,255,.14), rgba(30,32,48,.82));
  box-shadow: 0 18px 42px rgba(14,15,20,.18);
}

.sankru-game-card {
  box-shadow:
    inset 0 0 0 1px rgba(108,143,255,.08),
    0 18px 42px rgba(14,15,20,.18);
}

.sankru-game-card:nth-child(2) {
  border-color: rgba(255,217,61,.22);
  box-shadow:
    inset 0 0 0 1px rgba(78,205,196,.08),
    0 18px 42px rgba(14,15,20,.18);
}

.sankru-game-card:nth-child(3) {
  border-color: rgba(255,107,122,.2);
  box-shadow:
    inset 0 0 0 1px rgba(255,217,61,.07),
    0 18px 42px rgba(14,15,20,.18);
}

.sankru-game-card:nth-child(4) {
  border-color: rgba(142,167,255,.22);
  box-shadow:
    inset 0 0 0 1px rgba(78,205,196,.07),
    0 18px 42px rgba(14,15,20,.18);
}

.sankru-games-grid > .sankru-game-card:not(.sankru-game-link) {
  opacity: .62;
  filter: grayscale(.18) saturate(.72);
  border-color: rgba(255,255,255,.1);
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(30,32,48,.62));
}

.sankru-games-grid > .sankru-game-card:not(.sankru-game-link) .sankru-game-card-media img {
  filter: grayscale(.32) saturate(.72);
}

.sankru-game-card {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto auto minmax(4.8rem, 1fr) auto;
  gap: .72rem;
  min-height: 430px;
  overflow: hidden;
  padding: .72rem;
}

.sankru-game-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 .2rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 16px 32px rgba(14,15,20,.16);
}

.sankru-game-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .28s ease;
}

.sankru-game-link {
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sankru-game-link:hover {
  transform: translateY(-3px);
  border-color: rgba(78,205,196,.52);
  box-shadow: 0 22px 52px rgba(14,15,20,.24);
}

.sankru-game-link:hover .sankru-game-card-media img {
  transform: scale(1.045);
}

.sankru-game-link strong {
  align-self: end;
  justify-self: start;
  border: 1px solid rgba(78,205,196,.45);
  border-radius: 999px;
  background: rgba(78,205,196,.12);
  color: var(--accent3);
  padding: .55rem .9rem;
  font-size: .86rem;
}

.sankru-game-card small {
  justify-self: start;
  border: 1px solid rgba(78,205,196,.28);
  border-radius: 999px;
  background: rgba(78,205,196,.1);
  padding: .34rem .6rem;
}

.sankru-game-card span,
.sankru-admin-game-panel span,
.sankru-admin-game-form label span {
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sankru-game-card h2,
.sankru-admin-game-panel h2 {
  color: var(--text);
  font-size: 1.2rem;
}

.sankru-game-card h2 {
  margin: 0;
}

.sankru-game-card p,
.sankru-admin-game-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.sankru-game-card p {
  margin: 0;
}

.sankru-game-card .favorites-nav-btn,
.sankru-game-card button {
  align-self: end;
  justify-self: start;
}

.sankru-game-card button,
.sankru-admin-game-form button {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  padding: .55rem .9rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
}

.sankru-game-card button:disabled,
.sankru-admin-game-form button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.sankru-admin-game-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.sankru-admin-game-form {
  display: grid;
  gap: .75rem;
  margin: 0;
}

.sankru-admin-game-form label {
  display: grid;
  gap: .35rem;
}

.sankru-admin-game-form input,
.sankru-admin-game-form select {
  min-height: 42px;
  border: 1px solid rgba(108,143,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: .55rem .7rem;
  font-family: 'DM Sans', sans-serif;
}

.sankru-admin-inline-form {
  margin-top: .9rem;
}

.sankru-vocab-admin-panel .sankru-admin-game-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sankru-vocab-admin-panel .sankru-admin-game-form button {
  align-self: end;
  justify-self: start;
}

.sankru-vocab-table-panel {
  grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr);
}

.sankru-vocab-table-wrap {
  overflow-x: auto;
}

.sankru-vocab-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: .9rem;
}

.sankru-vocab-table th,
.sankru-vocab-table td {
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: .65rem .55rem;
  text-align: left;
  white-space: nowrap;
}

.sankru-vocab-table th {
  color: var(--accent3);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sankru-vocab-table tr.is-passive {
  opacity: .52;
}

.sankru-vocab-table form {
  margin: 0;
}

.sankru-vocab-table button,
.sankru-admin-inline-form button {
  border: 1px solid rgba(78,205,196,.35);
  border-radius: 999px;
  background: rgba(78,205,196,.12);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  padding: .5rem .75rem;
}

@media (max-width: 760px) {
  .sankru-games-hero {
    grid-template-columns: 1fr;
  }

  .sankru-games-hero > .favorites-nav-btn {
    justify-self: start;
  }

  .sankru-games-page.is-game-active .sankru-games-hero {
    display: none;
  }

  .sankru-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .sankru-games-hero .sankru-game-score-summary,
  .sankru-game-score-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .sankru-games-hero .sankru-game-score-summary div,
  .sankru-game-score-summary div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: .62rem .68rem;
  }

  .sankru-games-hero .sankru-game-score-summary strong {
    margin-left: 0;
    text-align: left;
  }

  .sankru-game-score-summary span {
    font-size: .62rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .sankru-game-score-summary strong {
    font-size: 1.02rem;
    line-height: 1.15;
  }

  .sankru-game-card {
    min-height: 0;
    gap: .55rem;
    padding: .55rem;
  }

  .sankru-game-card-media {
    border-radius: 8px;
    margin-bottom: .05rem;
  }

  .sankru-game-card h2 {
    font-size: .96rem;
    line-height: 1.18;
  }

  .sankru-game-card p {
    font-size: .78rem;
    line-height: 1.45;
  }

  .sankru-game-card span,
  .sankru-game-card small {
    font-size: .66rem;
  }

  .sankru-game-link strong,
  .sankru-game-card button {
    padding: .48rem .62rem;
    font-size: .74rem;
  }

  .word-match-modal {
    place-items: center;
    padding: .75rem;
  }

  .word-match-modal-card {
    width: 100%;
    border-radius: 14px;
    gap: .68rem;
    padding: 1rem;
  }

  .word-match-modal-card p {
    font-size: .86rem;
    line-height: 1.5;
  }

  .word-match-modal-card .word-match-next {
    width: 100%;
  }

  .word-memory-card {
    min-height: 300px;
    padding: 1.05rem;
  }

  .word-memory-answer {
    grid-template-columns: 1fr;
    width: min(100%, 300px);
  }

  .sankru-vocab-admin-panel .sankru-admin-game-form,
  .sankru-vocab-table-panel {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .sankru-game-card,
:root[data-theme="light"] .sankru-admin-game-panel,
:root[data-theme="light"] .sankru-game-score-summary div,
:root[data-theme="light"] .word-match-game,
:root[data-theme="light"] .word-memory-game,
:root[data-theme="light"] .icon-quiz-game {
  background: #ffffff;
  border-color: rgba(79,142,247,.16);
  box-shadow: 0 18px 42px rgba(79,142,247,.1);
}

:root[data-theme="light"] .sankru-game-card button,
:root[data-theme="light"] .sankru-game-card-media,
:root[data-theme="light"] .sankru-admin-game-form input,
:root[data-theme="light"] .sankru-admin-game-form select,
:root[data-theme="light"] .sankru-vocab-table th,
:root[data-theme="light"] .sankru-vocab-table td,
:root[data-theme="light"] .word-match-card,
:root[data-theme="light"] .word-match-score,
:root[data-theme="light"] .word-match-timer-panel,
:root[data-theme="light"] .word-match-progress-track,
:root[data-theme="light"] .word-memory-stage,
:root[data-theme="light"] .word-memory-card,
:root[data-theme="light"] .icon-quiz-stage,
:root[data-theme="light"] .icon-quiz-image-wrap,
:root[data-theme="light"] .icon-quiz-option {
  background: #f7f9ff;
  border-color: rgba(79,142,247,.18);
  color: #25324a;
}

:root[data-theme="light"] .word-match-card:hover,
:root[data-theme="light"] .word-match-card.selected,
:root[data-theme="light"] .icon-quiz-option:hover {
  border-color: rgba(79,142,247,.48);
  background: #eef4ff;
}

:root[data-theme="light"] .word-match-game,
:root[data-theme="light"] .word-memory-game,
:root[data-theme="light"] .icon-quiz-game {
  border-color: rgba(78,205,196,.28);
  background:
    radial-gradient(circle at top left, rgba(78,205,196,.18), transparent 32%),
    radial-gradient(circle at top right, rgba(255,217,61,.14), transparent 28%),
    linear-gradient(135deg, #ffffff, #f3f7ff);
}

:root[data-theme="light"] .word-match-score {
  border-color: rgba(78,205,196,.24);
  background:
    linear-gradient(135deg, rgba(78,205,196,.14), rgba(79,142,247,.1)),
    #ffffff;
}

:root[data-theme="light"] .word-match-score strong {
  color: #132033;
}

:root[data-theme="light"] .word-match-timer-panel {
  border-color: rgba(255,190,35,.24);
  background:
    linear-gradient(135deg, rgba(255,217,61,.16), rgba(78,205,196,.08)),
    #ffffff;
}

:root[data-theme="light"] .word-match-column,
:root[data-theme="light"] .word-memory-stage,
:root[data-theme="light"] .icon-quiz-stage {
  border-color: rgba(79,142,247,.2);
  background:
    linear-gradient(135deg, rgba(79,142,247,.08), rgba(78,205,196,.06)),
    #f7f9ff;
}

:root[data-theme="light"] .word-match-column:nth-child(2) {
  border-color: rgba(78,205,196,.22);
  background:
    linear-gradient(135deg, rgba(78,205,196,.1), rgba(255,217,61,.08)),
    #f7f9ff;
}

:root[data-theme="light"] .icon-quiz-image-wrap {
  border-color: rgba(78,205,196,.24);
  background:
    radial-gradient(circle at top right, rgba(255,217,61,.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(78,205,196,.14), transparent 32%),
    #ffffff;
}

:root[data-theme="light"] .icon-quiz-option {
  border-color: rgba(79,142,247,.22);
  background:
    linear-gradient(135deg, rgba(79,142,247,.08), rgba(78,205,196,.06)),
    #ffffff;
}

:root[data-theme="light"] .word-memory-card {
  border-color: rgba(79,142,247,.2);
  background: linear-gradient(145deg, #ffffff, #eef6ff);
  box-shadow: 0 28px 70px rgba(79,142,247,.16);
}

:root[data-theme="light"] .word-memory-card::before {
  border-color: rgba(79,142,247,.12);
}

:root[data-theme="light"] .word-memory-card strong {
  color: #132033;
}

:root[data-theme="light"] .word-memory-card p {
  color: #53617c;
}

:root[data-theme="light"] .word-memory-card em {
  color: #0f766e;
}

:root[data-theme="light"] .word-memory-answer input {
  border-color: rgba(79,142,247,.18);
  background: #ffffff;
  color: #25324a;
}

:root[data-theme="light"] .word-memory-answer input::placeholder {
  color: #7a879d;
}

:root[data-theme="light"] .word-memory-card.is-correct {
  border-color: rgba(15,118,110,.36);
  background: linear-gradient(145deg, #f4fffb, #dff9f5);
  box-shadow: 0 28px 70px rgba(15,118,110,.16);
}

:root[data-theme="light"] .word-memory-card.is-wrong {
  border-color: rgba(242,13,46,.36);
  background: linear-gradient(145deg, #fff7f8, #ffe8ed);
  box-shadow: 0 28px 70px rgba(242,13,46,.12);
}

:root[data-theme="light"] .sankru-game-score-summary div {
  background:
    linear-gradient(135deg, rgba(78,205,196,.18), rgba(79,142,247,.1)),
    #ffffff;
  border-color: rgba(79,142,247,.18);
}

:root[data-theme="light"] .sankru-game-score-summary div:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255,217,61,.2), rgba(78,205,196,.1)),
    #ffffff;
}

:root[data-theme="light"] .sankru-game-score-summary div:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255,107,122,.16), rgba(255,217,61,.12)),
    #ffffff;
}

:root[data-theme="light"] .sankru-game-score-summary div:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(142,167,255,.18), rgba(78,205,196,.1)),
    #ffffff;
}

:root[data-theme="light"] .sankru-game-score-summary strong {
  color: #132033;
}

:root[data-theme="light"] .sankru-game-card {
  border-color: rgba(79,142,247,.24);
  box-shadow:
    inset 0 0 0 1px rgba(78,205,196,.08),
    0 18px 42px rgba(79,142,247,.1);
}

:root[data-theme="light"] .sankru-game-card:nth-child(2) {
  border-color: rgba(255,190,35,.28);
}

:root[data-theme="light"] .sankru-game-card:nth-child(3) {
  border-color: rgba(255,107,122,.24);
}

:root[data-theme="light"] .sankru-game-card:nth-child(4) {
  border-color: rgba(79,142,247,.28);
}

:root[data-theme="light"] .sankru-games-grid > .sankru-game-card:not(.sankru-game-link) {
  border-color: rgba(83,97,124,.14);
  background:
    linear-gradient(135deg, rgba(83,97,124,.08), rgba(247,249,255,.92)),
    #ffffff;
}

:root[data-theme="light"] .word-match-modal {
  background: rgba(15,28,48,.42);
}

:root[data-theme="light"] .word-match-modal-card {
  border-color: rgba(79,142,247,.18);
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 30px 80px rgba(43,85,145,.22);
}

:root[data-theme="light"] .word-match-modal-card span {
  border-color: rgba(15,118,110,.2);
  background: rgba(78,205,196,.14);
  color: #0f766e;
}

:root[data-theme="light"] .word-match-modal-card h3 {
  color: #132033;
}

:root[data-theme="light"] .word-match-modal-card p {
  color: #53617c;
}

.word-match-game,
.word-memory-game,
.icon-quiz-game {
  border-color: rgba(79,142,247,.3);
  background:
    radial-gradient(circle at top left, rgba(79,142,247,.24), transparent 34%),
    radial-gradient(circle at top right, rgba(255,77,109,.13), transparent 30%),
    linear-gradient(135deg, rgba(21,28,48,.96), rgba(16,18,30,.92));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 20px 48px rgba(4,10,24,.22);
}

.word-match-score {
  border-color: rgba(79,142,247,.28);
  background:
    linear-gradient(135deg, rgba(79,142,247,.16), rgba(255,77,109,.08)),
    rgba(255,255,255,.055);
}

.word-match-score::before {
  background: linear-gradient(90deg, #4f8ef7, #ff4d6d);
}

.word-match-timer-panel,
.word-match-column,
.word-memory-stage,
.icon-quiz-stage {
  border-color: rgba(79,142,247,.22);
  background:
    linear-gradient(135deg, rgba(79,142,247,.1), rgba(255,77,109,.045)),
    rgba(255,255,255,.035);
}

.word-match-column:nth-child(2) {
  border-color: rgba(255,77,109,.2);
  background:
    linear-gradient(135deg, rgba(255,77,109,.08), rgba(79,142,247,.06)),
    rgba(255,255,255,.03);
}

.word-match-progress-head strong,
.word-match-head span,
.word-match-column h3,
.icon-quiz-meta span,
.word-game-save-status {
  color: #8eb7ff;
}

.word-match-progress-track span,
.icon-quiz-timer-panel .word-match-progress-track span {
  background: linear-gradient(90deg, #4f8ef7, #ff4d6d);
}

.word-match-card,
.icon-quiz-option {
  border-color: rgba(79,142,247,.2);
  background:
    linear-gradient(135deg, rgba(79,142,247,.075), rgba(255,77,109,.035)),
    rgba(255,255,255,.055);
}

.word-match-card:hover,
.word-match-card.selected,
.icon-quiz-option:hover {
  border-color: rgba(79,142,247,.58);
  background: rgba(79,142,247,.15);
}

.word-match-card.matched,
.icon-quiz-option.is-correct {
  border-color: rgba(34,197,94,.76);
  background: rgba(34,197,94,.18);
  color: #86efac;
}

.word-match-card.wrong,
.icon-quiz-option.is-wrong {
  border-color: rgba(255,77,109,.72);
  background: rgba(255,77,109,.16);
  color: #ff9aad;
}

.icon-quiz-image-wrap {
  border-color: rgba(79,142,247,.26);
  background:
    radial-gradient(circle at top right, rgba(79,142,247,.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255,77,109,.1), transparent 34%),
    rgba(255,255,255,.055);
}

.word-memory-card span,
.word-memory-lives,
.word-memory-repeat {
  border-color: rgba(255,77,109,.28);
  background: rgba(255,77,109,.1);
  color: #ff9aad;
}

.word-memory-answer input:focus {
  border-color: rgba(79,142,247,.68);
  box-shadow: 0 0 0 4px rgba(79,142,247,.15);
}

.word-match-modal-card span {
  border-color: rgba(79,142,247,.32);
  background: rgba(79,142,247,.13);
  color: #9fc4ff;
}

.word-match-modal-card .word-match-next,
.word-match-next:hover {
  background: linear-gradient(135deg, #4f8ef7, #ff4d6d);
}

:root[data-theme="light"] .word-match-game,
:root[data-theme="light"] .word-memory-game,
:root[data-theme="light"] .icon-quiz-game {
  border-color: rgba(79,142,247,.26);
  background:
    radial-gradient(circle at top left, rgba(79,142,247,.16), transparent 34%),
    radial-gradient(circle at top right, rgba(255,77,109,.1), transparent 30%),
    linear-gradient(135deg, #ffffff, #f5f8ff);
}

:root[data-theme="light"] .word-match-score,
:root[data-theme="light"] .word-match-timer-panel,
:root[data-theme="light"] .word-match-column,
:root[data-theme="light"] .word-memory-stage,
:root[data-theme="light"] .icon-quiz-stage,
:root[data-theme="light"] .icon-quiz-option {
  border-color: rgba(79,142,247,.22);
  background:
    linear-gradient(135deg, rgba(79,142,247,.09), rgba(255,77,109,.045)),
    #ffffff;
}

:root[data-theme="light"] .word-match-column:nth-child(2) {
  border-color: rgba(255,77,109,.18);
  background:
    linear-gradient(135deg, rgba(255,77,109,.07), rgba(79,142,247,.055)),
    #ffffff;
}

:root[data-theme="light"] .word-match-progress-head strong,
:root[data-theme="light"] .word-match-head span,
:root[data-theme="light"] .word-match-column h3,
:root[data-theme="light"] .icon-quiz-meta span,
:root[data-theme="light"] .word-game-save-status {
  color: #2f6fd6;
}

:root[data-theme="light"] .icon-quiz-image-wrap {
  border-color: rgba(79,142,247,.24);
  background:
    radial-gradient(circle at top right, rgba(79,142,247,.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255,77,109,.08), transparent 34%),
    #ffffff;
}

:root[data-theme="light"] .word-match-card.matched,
:root[data-theme="light"] .icon-quiz-option.is-correct {
  border-color: rgba(22,163,74,.46);
  background: #eafaf0;
  color: #15803d;
}

:root[data-theme="light"] .word-match-card.wrong,
:root[data-theme="light"] .icon-quiz-option.is-wrong {
  border-color: rgba(255,77,109,.38);
  background: #fff0f4;
  color: #b70b25;
}

:root[data-theme="light"] .word-match-modal-card span {
  border-color: rgba(79,142,247,.2);
  background: rgba(79,142,247,.1);
  color: #255fb8;
}

@media (max-width: 760px) {
  .icon-quiz-game {
    gap: .65rem;
    padding: .75rem;
  }

  .icon-quiz-game .word-match-head {
    gap: .55rem;
  }

  .icon-quiz-game .word-match-head h2 {
    font-size: 1rem;
    line-height: 1.18;
  }

  .icon-quiz-game .word-match-score {
    min-width: 0;
    padding: .5rem .58rem;
  }

  .icon-quiz-game .word-match-score strong {
    font-size: .88rem;
  }

  .icon-quiz-timer-panel {
    gap: .42rem;
    padding: .62rem;
  }

  .icon-quiz-timer-panel .word-match-clock {
    font-size: 1.15rem;
  }

  .icon-quiz-stage {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: .7rem;
  }

  .icon-quiz-image-wrap {
    min-height: 132px;
    padding: .65rem;
  }

  .icon-quiz-image-wrap img {
    width: min(100%, 128px);
    max-height: 128px;
  }

  .icon-quiz-meta {
    gap: .25rem;
    text-align: center;
  }

  .icon-quiz-meta strong {
    font-size: 1rem;
  }

  .icon-quiz-options {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .icon-quiz-option {
    min-height: 44px;
    padding: .55rem .65rem;
    font-size: .86rem;
  }

  .icon-quiz-game .word-match-status {
    min-height: 0;
    font-size: .78rem;
    line-height: 1.35;
  }

  .word-match-modal {
    padding: .65rem;
  }

  .word-match-modal-card {
    width: min(100%, 360px);
    max-height: calc(100dvh - 1.3rem);
    overflow: auto;
    padding: .95rem;
  }

  .word-match-modal-card h3 {
    font-size: 1.35rem;
  }

  .word-match-modal-card p {
    font-size: .82rem;
  }
}

:root[data-theme="light"] .word-match-card.matched,
:root[data-theme="light"] .icon-quiz-option.is-correct {
  border-color: rgba(78,205,196,.62);
  background: #e9fbf8;
  color: #14766e;
}

:root[data-theme="light"] .word-match-card.wrong,
:root[data-theme="light"] .icon-quiz-option.is-wrong {
  border-color: rgba(242,13,46,.42);
  background: #fff0f3;
  color: #b70b25;
}

:root[data-theme="light"] .word-match-card.matched,
:root[data-theme="light"] .icon-quiz-option.is-correct {
  border-color: rgba(22,163,74,.46);
  background: #eafaf0;
  color: #15803d;
}

:root[data-theme="light"] .word-match-card.wrong,
:root[data-theme="light"] .icon-quiz-option.is-wrong {
  border-color: rgba(255,77,109,.38);
  background: #fff0f4;
  color: #b70b25;
}

.favorites-page .favorites-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.favorites-level-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.7);
  padding: 1rem;
  box-shadow: 0 16px 38px rgba(14,15,20,.18);
}

.favorites-level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}

.favorites-level-head strong {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.favorites-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .75rem;
}

.favorites-content-block {
  display: grid;
  gap: .9rem;
}

.favorites-content-block + .favorites-content-block {
  margin-top: .5rem;
}

.favorites-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.72);
  padding: .85rem 1rem;
}

.favorites-block-head h2 {
  color: var(--text);
  font-size: 1.05rem;
}

.favorites-block-head span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.favorite-verb-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.favorite-verb-column {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.7);
  padding: .85rem;
  box-shadow: 0 16px 38px rgba(14,15,20,.18);
}

.favorite-verb-column.is-empty {
  opacity: .72;
}

.favorite-column-empty {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.favorite-verb-column-list {
  display: grid;
  gap: .7rem;
  margin-top: .75rem;
}

.favorite-verb-column .favorites-level-head {
  margin-bottom: 0;
}

.favorite-verb-column .favorite-page-card {
  padding: .78rem;
}

.favorite-verb-column .favorite-page-fr {
  font-size: 1.1rem;
}

.favorites-page .favorite-page-card {
  min-width: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(14,15,20,.16);
}

.favorites-page .favorite-page-card:hover {
  border-color: rgba(108,143,255,.55);
  background: linear-gradient(135deg, rgba(108,143,255,.16), rgba(78,205,196,.08));
  transform: translateY(-2px);
}

:root[data-theme="light"] .favorites-page .favorites-page-hero,
:root[data-theme="light"] .favorites-level-group,
:root[data-theme="light"] .favorite-verb-column {
  background: var(--panel-gradient);
  box-shadow: 0 18px 46px rgba(79,142,247,.14);
}

:root[data-theme="light"] .favorites-page .favorite-page-card {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 12px 30px rgba(79,142,247,.1);
}

.sankru-stories-page {
  display: grid;
  gap: 1rem;
}

.stories-filter-toolbar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.72);
  padding: .85rem 1rem;
  box-shadow: 0 16px 36px rgba(14,15,20,.18);
}

.stories-filter-toggle {
  display: none;
}

.stories-filter-group {
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  gap: .7rem;
  min-width: 0;
}

.stories-filter-group > span {
  flex: 0 0 auto;
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stories-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-width: 0;
}

.stories-filter-select {
  width: min(100%, 260px);
  border: 1px solid rgba(255,77,109,.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,77,109,.09), rgba(79,142,247,.045)),
    rgba(30,32,48,.78);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 900;
  outline: none;
  padding: .68rem .8rem;
}

.stories-filter-toolbar .stories-filter-options {
  display: none;
}

.stories-filter-options button {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: .42rem .72rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

.stories-filter-options button.active,
.stories-filter-options button:hover {
  background: linear-gradient(135deg, #6c8fff, #4f8ef7);
  border-color: rgba(108,143,255,.7);
  color: #ffffff;
}

.stories-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .9rem;
}

.story-card {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,143,255,.24), rgba(30,32,48,.86));
  box-shadow: 0 18px 42px rgba(14,15,20,.22);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.story-card.has-thumbnail {
  min-height: 224px;
  background: #1e2030;
  border-color: rgba(108,143,255,.26);
}

.story-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--story-thumb);
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  transition: transform .24s ease;
  z-index: 0;
}

.story-card.has-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,21,38,.76) 0%, rgba(18,21,38,.58) 42%, rgba(18,21,38,.78) 100%),
    linear-gradient(90deg, rgba(18,21,38,.62), rgba(18,21,38,.18) 72%);
  pointer-events: none;
  z-index: 1;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108,143,255,.55);
  box-shadow: 0 22px 54px rgba(14,15,20,.28);
}

.story-card-cover:hover::before {
  transform: scale(1.045);
}

.story-card-main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: .45rem;
  min-height: 100%;
  padding: .72rem 1rem 1rem .72rem;
  color: var(--text);
  text-decoration: none;
}

.story-card.has-thumbnail .story-card-main {
  align-content: start;
  min-height: 224px;
  padding: 1.15rem 1.2rem;
}

.story-card-thumb {
  aspect-ratio: 16 / 9;
  margin: 0 0 .25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}

.story-card.has-thumbnail .story-card-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.story-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.story-card:hover .story-card-thumb img {
  transform: scale(1.035);
}

.story-card-meta {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--accent3);
  padding: .24rem .55rem;
  font-size: .72rem;
  font-weight: 800;
}

.story-card.has-thumbnail .story-card-meta {
  background: transparent;
  color: rgba(255,255,255,.7);
  padding: 0;
  box-shadow: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: none;
}

.story-card h2 {
  font-size: 1.22rem;
  line-height: 1.15;
}

.story-card.has-thumbnail h2 {
  color: #ffffff;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: .98;
  margin-top: .15rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.36);
}

.story-card p {
  color: var(--muted);
  line-height: 1.55;
}

.story-card.has-thumbnail p {
  max-width: 30ch;
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  line-height: 1.55;
  margin-top: .2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.32);
}

.story-favorite-btn {
  border: 1px solid rgba(255,107,157,.35);
  border-radius: 999px;
  background: rgba(255,107,157,.12);
  color: var(--accent2);
  padding: .5rem .8rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
}

.story-favorite-btn.compact {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 36px;
  height: 36px;
  padding: 0;
}

.story-favorite-btn.active,
.story-favorite-btn:hover {
  background: var(--accent2);
  color: #ffffff;
}

.sankru-story-reader-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 260px;
  overflow: hidden;
}

.sankru-story-hero-copy,
.sankru-story-reader-hero .story-favorite-btn {
  position: relative;
  z-index: 1;
}

.sankru-story-hero-copy {
  max-width: min(620px, 100%);
}

.sankru-story-hero-thumb {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(52%, 520px);
  height: 100%;
  object-fit: cover;
  opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
  pointer-events: none;
}

.sankru-story-reader-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30,32,48,.18), rgba(30,32,48,.38));
  pointer-events: none;
}

:root[data-theme="light"] .sankru-story-reader-hero::after {
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.5));
}

.sankru-story-reader-hero > * {
  position: relative;
  z-index: 1;
}

.sankru-story-reader-hero > .sankru-story-hero-thumb {
  position: absolute;
  z-index: 0;
}

.sankru-story-reader {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.72);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 18px 42px rgba(14,15,20,.2);
}

.story-audio-panel,
.story-audio-admin-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(78,205,196,.18), transparent 32%),
    linear-gradient(135deg, rgba(108,143,255,.16), rgba(30,32,48,.82));
  box-shadow: 0 18px 42px rgba(14,15,20,.18);
}

.story-audio-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.story-audio-panel span,
.story-audio-admin-card span,
.story-audio-config-note {
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.story-audio-panel h2 {
  margin: .2rem 0 .35rem;
  color: var(--text);
  font-size: 1.08rem;
}

.story-audio-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.sankru-audio-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: fit-content;
  min-height: 42px;
  border: 1px solid rgba(78,205,196,.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(78,205,196,.18), rgba(108,143,255,.16));
  color: var(--text);
  padding: .55rem .9rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(14,15,20,.14);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sankru-audio-play:hover,
.sankru-audio-play.is-playing {
  transform: translateY(-1px);
  border-color: rgba(78,205,196,.72);
  background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
  color: #ffffff;
}

.sankru-audio-play.has-error {
  border-color: rgba(242,13,46,.36);
  background: rgba(242,13,46,.1);
  color: #ff6b9d;
}

.sankru-audio-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: .7rem;
  line-height: 1;
}

.sankru-speaker-audio-group,
.audio-speaker-options,
.audio-speaker-preview-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sankru-speaker-audio-group {
  margin-left: 8px;
  min-width: 0;
}

.sankru-audio-legacy-hidden {
  display: none !important;
}

.audio-speaker-options {
  margin: 8px 0;
  width: 100%;
}

.audio-speaker-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: .86rem;
  cursor: pointer;
}

.audio-speaker-preview-list {
  width: 100%;
  align-items: stretch;
}

.audio-speaker-preview {
  display: grid;
  gap: 5px;
  flex: 1 1 220px;
  min-width: min(220px, 100%);
}

.audio-speaker-preview span {
  font-size: .78rem;
  font-weight: 800;
  color: var(--muted);
}

.audio-speaker-preview audio {
  width: 100%;
}

@media (max-width: 640px) {
  .sankru-speaker-audio-group {
    width: 100%;
    margin-left: 0;
  }

  .sankru-speaker-audio-group .sankru-audio-play {
    flex: 1 1 120px;
  }
}

.story-audio-player {
  justify-self: end;
  width: min(100%, 460px);
}

.story-audio-player audio {
  width: 100%;
}

.verb-audio-play {
  margin-left: .25rem;
}

audio[data-sankru-audio]:not([controls]) {
  display: none;
}

.story-audio-panel audio,
.story-audio-admin-card audio {
  width: 100%;
  min-width: 0;
  accent-color: #4ecdc4;
}

.story-audio-missing {
  justify-self: end;
  border: 1px dashed rgba(255,217,61,.38);
  border-radius: 10px;
  background: rgba(255,217,61,.08);
  padding: .75rem .9rem;
  color: var(--text) !important;
  font-weight: 700;
}

.story-audio-admin-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
  padding: 1rem;
}

.story-audio-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.story-audio-admin-head h2,
.story-audio-admin-card h3 {
  color: var(--text);
}

.story-audio-config-note {
  border: 1px solid rgba(78,205,196,.32);
  border-radius: 999px;
  background: rgba(78,205,196,.1);
  padding: .55rem .75rem;
  white-space: nowrap;
}

.story-audio-flash {
  border-radius: 10px;
  padding: .75rem .9rem;
  font-weight: 800;
}

.story-audio-flash.success {
  border: 1px solid rgba(78,205,196,.38);
  background: rgba(78,205,196,.12);
  color: #4ecdc4;
}

.story-audio-flash.error {
  border: 1px solid rgba(242,13,46,.35);
  background: rgba(242,13,46,.12);
  color: #ff6b9d;
}

.story-audio-admin-list {
  display: grid;
  gap: .85rem;
}

.audio-manager-shell {
  display: grid;
  gap: 1rem;
}

.audio-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.74);
  padding: .75rem;
  box-shadow: 0 16px 38px rgba(14,15,20,.16);
}

.audio-manager-tabs,
.audio-manager-filters {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.audio-manager-tabs {
  flex-wrap: wrap;
}

.audio-manager-tabs button,
.audio-manager-filters select,
.audio-manager-filters input {
  min-height: 40px;
  border: 1px solid rgba(108,143,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
}

.audio-manager-tabs button {
  cursor: pointer;
  padding: .55rem .85rem;
}

.audio-manager-tabs button.active,
.audio-manager-tabs button:hover {
  border-color: rgba(78,205,196,.55);
  background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
  color: #ffffff;
}

.audio-manager-filters select,
.audio-manager-filters input {
  padding: .55rem .7rem;
}

.audio-manager-filters input {
  width: min(320px, 42vw);
}

.audio-manager-section {
  display: none;
}

.audio-manager-section.active {
  display: grid;
}

.story-audio-admin-card[hidden] {
  display: none;
}

.example-fr-with-audio {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.example-audio-play {
  flex: 0 0 auto;
  min-height: 34px;
  padding: .38rem .62rem;
  font-size: .82rem;
}

.example-audio-admin-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: .98rem;
  line-height: 1.45;
}

.verb-audio-bulk-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
}

.story-audio-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  align-items: center;
  gap: .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  padding: .9rem;
}

.story-audio-admin-card p {
  margin-top: .25rem;
  color: var(--muted);
}

.story-audio-admin-card form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
  margin: 0;
  width: 100%;
}

.story-audio-admin-card form .story-favorite-btn,
.verb-audio-bulk-form .story-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  white-space: nowrap;
}

.story-audio-admin-card .audio-speaker-options,
.verb-audio-bulk-form .audio-speaker-options {
  width: auto;
  margin: 0;
}

.story-translation-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.story-translation-pair:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.story-translation-pair span {
  display: inline-flex;
  margin-bottom: .45rem;
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sankru-story-reader p,
.story-translation-pair p {
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.85;
}

.story-learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.story-learning-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.72);
  padding: 1rem;
  box-shadow: 0 16px 36px rgba(14,15,20,.16);
}

.story-learning-card h2 {
  margin-bottom: .8rem;
  color: var(--text);
  font-size: 1.05rem;
}

.story-vocabulary-list {
  display: grid;
  gap: .55rem;
}

.story-vocabulary-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  padding: .65rem .75rem;
  color: var(--muted);
}

.story-vocabulary-list strong {
  color: var(--text);
}

.story-learning-card ul {
  display: grid;
  gap: .65rem;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.sankru-story-back {
  justify-self: start;
}

.stories-empty-message {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.favorite-story-card {
  border-color: rgba(167,139,250,.35);
}

.favorite-stories-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.sankru-blog-page {
  gap: 1.6rem;
}

.blog-public-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.blog-filter-toolbar {
  max-width: 100%;
  margin: .15rem 0 .55rem;
}

.blog-filter-toolbar details {
  padding: .55rem .65rem;
}

.blog-filter-toolbar summary {
  margin-bottom: .5rem;
  padding: 0;
  font-size: .82rem;
}

.blog-filter-toolbar .stories-filter-options {
  gap: .75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
}

.blog-filter-toolbar .stories-filter-options button {
  flex: 0 0 auto;
  border-radius: 7px;
  padding: .42rem .72rem;
  min-width: 76px;
  min-height: 32px;
  font-size: .78rem;
}

.blog-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: .85rem;
}

.blog-card {
  min-height: 250px;
}

.blog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .15rem;
  color: var(--text);
}

.blog-section-head h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.blog-section-head span,
.blog-read-time {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}

.blog-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-color: rgba(255,255,255,.1);
  background:
    linear-gradient(135deg, rgba(30,32,48,.96) 0%, rgba(30,32,48,.82) 52%, rgba(20,22,34,.92) 100%);
  box-shadow: 0 16px 36px rgba(14,15,20,.18);
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(30,32,48,.94) 0%, rgba(30,32,48,.82) 48%, rgba(30,32,48,.38) 100%),
    radial-gradient(circle at 88% 14%, rgba(78,205,196,.18), transparent 14rem);
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(78,205,196,.32);
  box-shadow: 0 22px 46px rgba(14,15,20,.24);
}

.blog-card-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(46%, 240px);
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.blog-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}

.blog-card .story-card-main {
  position: relative;
  z-index: 2;
  min-height: 250px;
  padding: 1.1rem 7rem 1.1rem 1.1rem;
}

.blog-card .story-card-meta {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(78,205,196,.24);
  border-radius: 999px;
  background: rgba(78,205,196,.1);
  padding: .24rem .58rem;
  color: var(--accent3);
}

.blog-card h2 {
  max-width: 560px;
  margin-top: .85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.05;
}

.blog-card p {
  max-width: 560px;
  margin-top: .8rem;
  color: rgba(244,246,255,.76);
  line-height: 1.62;
}

.blog-card .blog-read-time {
  display: inline-flex;
  margin-top: 1rem;
}

.blog-card-actions {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.blog-card-actions .story-favorite-btn {
  position: static;
  display: inline-grid;
  place-items: center;
}

.blog-save-btn {
  min-height: 36px;
  padding: 0 .72rem;
  border-radius: 8px;
  white-space: nowrap;
}

.blog-share-btn {
  border-color: rgba(78,205,196,.35);
  background: rgba(78,205,196,.12);
  color: var(--accent3);
}

.blog-share-btn:hover {
  background: var(--accent3);
  color: #0e0f14;
}

:root[data-theme="light"] .blog-card {
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  border-color: rgba(79,142,247,.2);
  box-shadow: 0 16px 38px rgba(79,142,247,.1);
}

:root[data-theme="light"] .blog-card::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(247,251,255,.88) 48%, rgba(247,251,255,.56) 100%),
    radial-gradient(circle at 88% 14%, rgba(79,142,247,.14), transparent 14rem);
}

:root[data-theme="light"] .blog-card:hover {
  border-color: rgba(78,205,196,.36);
  box-shadow: 0 22px 46px rgba(79,142,247,.16);
}

:root[data-theme="light"] .blog-card-art img {
  opacity: .4;
}

:root[data-theme="light"] .blog-card p {
  color: #4f5c77;
}

:root[data-theme="light"] .blog-card .story-card-meta {
  background: rgba(78,205,196,.12);
  border-color: rgba(78,205,196,.32);
}

.blog-saved-section {
  display: grid;
  gap: .85rem;
  margin-top: .5rem;
}

.blog-saved-empty {
  grid-column: 1 / -1;
}

.blog-article-placeholder {
  min-height: 220px;
}

.blog-article-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.blog-save-inline {
  min-height: 40px;
}

.blog-article-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-share-footer-btn {
  border-color: rgba(78,205,196,.35);
  background: rgba(78,205,196,.12);
  color: var(--accent3);
}

.admin-blog-list {
  display: grid;
  gap: .75rem;
}

.admin-blog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  padding: .9rem;
}

.admin-blog-row span {
  display: inline-flex;
  margin-bottom: .35rem;
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.admin-blog-row h3 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.admin-blog-row p {
  max-width: 760px;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.admin-blog-row-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-blog-row-actions form {
  margin: 0;
}

.admin-blog-block-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}

.admin-blog-block-list {
  display: grid;
  gap: .65rem;
}

.admin-blog-block-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(180px, .55fr) auto;
  gap: .55rem;
  align-items: start;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  padding: .65rem;
}

.admin-blog-block-row textarea {
  min-height: 74px;
}

.admin-blog-faq-list {
  display: grid;
  gap: .65rem;
}

.admin-blog-faq-row {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: start;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  padding: .65rem;
}

.admin-blog-faq-row textarea {
  min-height: 74px;
}

:root[data-theme="light"] .admin-blog-row {
  background: rgba(255,255,255,.74);
  border-color: rgba(79,142,247,.18);
}

:root[data-theme="light"] .admin-blog-block-row {
  background: rgba(255,255,255,.74);
  border-color: rgba(79,142,247,.18);
}

:root[data-theme="light"] .admin-blog-faq-row {
  background: rgba(255,255,255,.74);
  border-color: rgba(79,142,247,.18);
}

.blog-article-shell {
  display: grid;
  gap: 2rem;
}

.blog-article-intro-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(.4rem, 1.8vw, 1rem) 0 0;
  isolation: isolate;
}

.blog-article-title,
.blog-article-left,
.blog-author-card {
  position: relative;
  z-index: 2;
}

.blog-article-title {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.blog-article-title h1 {
  max-width: 760px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.1rem, 4.7vw, 4.15rem);
  line-height: 1.04;
  color: var(--text);
  overflow-wrap: anywhere;
}

.blog-article-intro {
  max-width: 720px;
  margin-top: .8rem;
  color: var(--muted);
  font-size: clamp(.94rem, 1.35vw, 1.05rem);
  font-style: italic;
  line-height: 1.65;
}

.blog-article-hero-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  justify-self: center;
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 42px rgba(14,15,20,.18);
}

.blog-article-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-author-card {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: 1.2rem;
}

.blog-author-card img,
.blog-author-bio img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 0;
}

.blog-author-card strong,
.blog-author-card span {
  display: block;
}

.blog-author-card strong {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.2;
}

.blog-author-card span {
  margin-top: .22rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: .5rem;
  clear: both;
}

.blog-article-left {
  position: sticky;
  top: 76px;
  align-self: start;
}

.blog-article-summary {
  display: grid;
  gap: .45rem;
  border-right: 1px solid var(--border);
  padding: 1rem .8rem 1rem 0;
  max-height: calc(100vh - 182px);
  overflow-y: auto;
  margin-top: .2rem;
}

.blog-summary-toggle {
  display: none;
}

.blog-article-summary strong {
  color: var(--text);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.blog-summary-items {
  display: grid;
  gap: .45rem;
}

.blog-article-summary a {
  border-left: 2px solid transparent;
  padding: .45rem .65rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .16s ease;
}

.blog-article-summary a:hover {
  border-left-color: var(--accent);
  background: rgba(108,143,255,.08);
  color: var(--text);
}

.blog-article-body {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.74);
  padding: clamp(1.05rem, 2.4vw, 1.7rem);
  box-shadow: 0 16px 36px rgba(14,15,20,.16);
}

.blog-article-body section,
.blog-author-bio,
.blog-article-wide-image,
.blog-split-section,
.blog-process {
  scroll-margin-top: 86px;
}

.blog-article-body section {
  padding: 0;
}

.blog-article-body section + section,
.blog-author-bio {
  margin-top: .9rem;
}

.blog-article-body h2,
.blog-author-bio h2 {
  margin-bottom: .8rem;
  color: var(--text);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.blog-article-body p,
.blog-faq p,
.blog-author-bio p {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.09rem);
  line-height: 1.85;
}

.blog-article-body p + p {
  margin-top: .85rem;
}

.blog-article-wide-image,
.blog-split-section figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}

.blog-article-wide-image img,
.blog-split-section img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-wide-image {
  aspect-ratio: 16 / 7;
}

.blog-split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: 1rem;
  align-items: stretch;
}

.blog-split-section figure {
  min-height: 280px;
}

.blog-keyword-grid,
.blog-number-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}

.blog-keyword-grid div,
.blog-number-strip div {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  padding: .85rem;
}

.blog-keyword-grid span,
.blog-keyword-grid small,
.blog-number-strip span,
.blog-author-bio span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.blog-keyword-grid strong,
.blog-number-strip strong {
  display: block;
  margin: .28rem 0;
  color: var(--text);
}

.blog-number-strip strong {
  color: var(--accent3);
  font-family: 'DM Serif Display', serif;
  font-size: 2.3rem;
  line-height: 1;
}

.blog-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}

.blog-process-steps span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 76px;
  border: 1px solid rgba(78,205,196,.28);
  border-radius: 10px;
  background: rgba(78,205,196,.08);
  color: var(--text);
  font-weight: 900;
}

.blog-process-steps span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -.52rem;
  color: var(--accent3);
}

.blog-faq {
  display: grid;
  gap: .75rem;
}

.blog-faq details {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  padding: .85rem 1rem;
}

.blog-faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}

.blog-faq summary::-webkit-details-marker {
  display: none;
}

.blog-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent3);
  font-weight: 900;
}

.blog-faq details[open] summary::after {
  content: "-";
}

.blog-faq summary + p {
  margin-top: .7rem;
  color: var(--muted);
}

.blog-author-bio {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.blog-author-bio img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

:root[data-theme="light"] .blog-article-body {
  background: linear-gradient(135deg, #f7fbff, #edf5ff);
  border-color: rgba(79,142,247,.24);
  box-shadow: 0 16px 38px rgba(79,142,247,.1);
}

:root[data-theme="light"] .blog-author-card,
:root[data-theme="light"] .blog-keyword-grid div,
:root[data-theme="light"] .blog-number-strip div,
:root[data-theme="light"] .blog-faq details,
:root[data-theme="light"] .blog-process-steps span {
  border-color: rgba(79,142,247,.18);
}

:root[data-theme="light"] .blog-article-summary {
  border-right-color: rgba(79,142,247,.2);
}

@media (max-width: 900px) {
  .sankru-blog-page {
    width: min(100%, 100vw);
    padding-inline: clamp(.85rem, 4vw, 1.2rem);
    overflow-x: hidden;
  }

  .blog-article-shell {
    gap: 1.15rem;
    min-width: 0;
  }

  .blog-article-intro-section,
  .blog-article-layout,
  .blog-split-section {
    grid-template-columns: 1fr;
  }

  .blog-article-intro-section {
    gap: .9rem;
    padding-top: 0;
  }

  .blog-article-title {
    grid-column: 1;
    grid-row: 1;
  }

  .blog-article-title h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.02;
  }

  .blog-article-intro {
    margin-top: .65rem;
    font-size: .96rem;
    line-height: 1.58;
  }

  .blog-article-hero-image {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    grid-column: 1;
    grid-row: 2;
  }

  .blog-author-card {
    justify-self: stretch;
    margin-bottom: .75rem;
  }

  .blog-article-left {
    position: static;
    min-width: 0;
  }

  .blog-article-summary {
    position: relative;
    top: auto;
    z-index: 1;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow-x: visible;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: .2rem 0 .85rem;
  }

  .blog-article-summary a {
    padding: .42rem .55rem;
    font-size: .8rem;
  }

  .blog-article-summary strong {
    align-self: center;
    padding-right: .35rem;
  }

  .blog-article-body {
    border-radius: 10px;
    padding: 1rem;
    gap: .95rem;
  }

  .blog-article-body h2,
  .blog-author-bio h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .blog-article-body p,
  .blog-faq p,
  .blog-author-bio p {
    font-size: .98rem;
    line-height: 1.72;
  }

  .blog-keyword-grid,
  .blog-number-strip,
  .blog-process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-article-wide-image {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .sankru-blog-page {
    padding-inline: .75rem;
  }

  .blog-public-header {
    padding-inline: .75rem;
  }

  .blog-public-header .ctaheader {
    gap: .35rem;
  }

  .blog-public-header .ctaheader a {
    min-height: 34px;
    padding: .45rem .55rem;
    font-size: .78rem;
    white-space: nowrap;
  }

  .admin-blog-row {
    grid-template-columns: 1fr;
  }

  .admin-blog-row-actions {
    justify-content: flex-start;
  }

  .admin-blog-block-row {
    grid-template-columns: 1fr;
  }

  .admin-blog-faq-row {
    grid-template-columns: 1fr;
  }

  .blog-article-intro-section {
    gap: .75rem;
  }

  .blog-article-hero-image {
    aspect-ratio: 1.18 / 1;
    max-height: 245px;
    border-radius: 10px;
    width: min(100%, 340px);
    justify-self: center;
  }

  .blog-article-title h1 {
    font-size: clamp(1.82rem, 11vw, 2.45rem);
    overflow-wrap: break-word;
  }

  .blog-article-intro {
    font-size: .9rem;
    line-height: 1.5;
  }

  .blog-author-card {
    align-items: center;
    gap: .55rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--border);
  }

  .blog-author-card img,
  .blog-author-bio img {
    width: 44px;
    height: 44px;
  }

  .blog-author-card strong {
    font-size: .86rem;
  }

  .blog-author-card span {
    font-size: .7rem;
  }

  .blog-article-summary {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding-bottom: .7rem;
    scrollbar-width: none;
  }

  .blog-article-summary::-webkit-scrollbar {
    display: none;
  }

  .blog-article-summary strong,
  .blog-article-summary a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .blog-article-summary a {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
  }

  .blog-article-body {
    padding: .9rem;
  }

  .blog-article-body h2,
  .blog-author-bio h2 {
    font-size: clamp(1.35rem, 8vw, 1.8rem);
  }

  .blog-article-body p,
  .blog-faq p,
  .blog-author-bio p {
    font-size: .94rem;
    line-height: 1.68;
  }

  .blog-article-wide-image {
    aspect-ratio: 4 / 3;
  }

  .blog-author-bio {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
  }

  .blog-author-bio div,
  .blog-author-card div {
    min-width: 0;
  }

  .blog-article-footer-actions {
    justify-content: stretch;
  }

  .blog-article-footer-actions .story-favorite-btn {
    width: 100%;
  }

  .blog-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .blog-card,
  .blog-card .story-card-main {
    min-height: 210px;
  }

  .blog-card .story-card-main {
    padding: .75rem;
  }

  .blog-card .story-card-meta {
    padding: .18rem .42rem;
    font-size: .58rem;
  }

  .blog-card h2 {
    margin-top: .55rem;
    font-size: .95rem;
    line-height: 1.08;
  }

  .blog-card p {
    margin-top: .45rem;
    font-size: .72rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-card .blog-read-time {
    margin-top: .55rem;
    font-size: .68rem;
  }

  .blog-card-actions {
    top: .45rem;
    right: .45rem;
    gap: .25rem;
  }

  .blog-card-actions .story-favorite-btn {
    min-width: 28px;
    min-height: 28px;
    font-size: .68rem;
  }

  .blog-save-btn {
    display: none !important;
  }

  .blog-card-art {
    width: 100%;
  }

  .blog-card-art img {
    opacity: .16;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  }

  .blog-card::after {
    background: linear-gradient(180deg, rgba(30,32,48,.94), rgba(30,32,48,.82));
  }

  .blog-article-intro-section {
    padding: 1rem;
  }

  .blog-keyword-grid,
  .blog-number-strip,
  .blog-process-steps {
    grid-template-columns: 1fr;
  }

  .blog-process-steps span:not(:last-child)::after {
    display: none;
  }

  .blog-author-bio {
    display: grid;
  }
}

:root[data-theme="light"] .stories-filter-toolbar,
:root[data-theme="light"] .sankru-story-reader,
:root[data-theme="light"] .story-audio-panel,
:root[data-theme="light"] .story-audio-admin-panel,
:root[data-theme="light"] .story-learning-card,
:root[data-theme="light"] .favorites-block-head {
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(79,142,247,.12);
}

:root[data-theme="light"] .story-audio-admin-card {
  background: #f7f8ff;
  border-color: rgba(108,143,255,.18);
}

:root[data-theme="light"] .audio-manager-toolbar {
  background: #ffffff;
  border-color: rgba(108,143,255,.18);
  box-shadow: 0 18px 42px rgba(79,142,247,.1);
}

:root[data-theme="light"] .audio-manager-tabs button,
:root[data-theme="light"] .audio-manager-filters select,
:root[data-theme="light"] .audio-manager-filters input {
  background: #f7f8ff;
  color: #0e0f14;
}

:root[data-theme="light"] .sankru-audio-play {
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  border-color: rgba(78,205,196,.45);
  color: #0e0f14;
}

:root[data-theme="light"] .sankru-audio-play:hover,
:root[data-theme="light"] .sankru-audio-play.is-playing {
  background: linear-gradient(135deg, #4ecdc4, #4f8ef7);
  color: #ffffff;
}

:root[data-theme="light"] .story-vocabulary-list span {
  background: #f7f8ff;
  border-color: rgba(108,143,255,.16);
}

:root[data-theme="light"] .stories-filter-options button {
  background: #f7f8ff;
  border-color: rgba(108,143,255,.2);
  color: #0e0f14;
}

:root[data-theme="light"] .stories-filter-select {
  background: #fff5f7;
  border-color: rgba(255,77,109,.2);
  color: #132033;
}

:root[data-theme="light"] .story-card {
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  border-color: rgba(108,143,255,.24);
  box-shadow: 0 18px 42px rgba(79,142,247,.14);
}

:root[data-theme="light"] .story-card.has-thumbnail {
  background: #ffffff;
  border-color: rgba(79,142,247,.28);
  box-shadow: 0 20px 48px rgba(79,142,247,.16);
}

:root[data-theme="light"] .story-card-cover::before {
  filter: saturate(1.04) contrast(.96);
}

:root[data-theme="light"] .story-card.has-thumbnail::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.5) 42%, rgba(255,255,255,.86) 100%),
    linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.18) 72%);
}

:root[data-theme="light"] .story-card.has-thumbnail .story-card-meta {
  color: #31507e;
}

:root[data-theme="light"] .story-card.has-thumbnail h2 {
  color: #172033;
  text-shadow: 0 2px 18px rgba(255,255,255,.78);
}

:root[data-theme="light"] .story-card.has-thumbnail p {
  color: #4b5870;
  text-shadow: 0 1px 14px rgba(255,255,255,.74);
}

:root[data-theme="light"] .story-card-meta {
  background: rgba(78,205,196,.14);
  color: #0f766e;
}

@media (max-width: 760px) {
  .favorites-page.sankru-page-shell {
    width: min(100% - .9rem, 1120px);
    padding-top: 1rem;
  }

  .favorites-page .favorites-page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .favorites-level-grid {
    grid-template-columns: 1fr;
  }

  .favorite-verb-columns {
    grid-template-columns: 1fr;
  }

  .stories-filter-toolbar,
  .sankru-story-reader-hero,
  .story-audio-panel,
  .story-audio-admin-card,
  .story-translation-pair,
  .story-learning-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stories-filter-toolbar {
    gap: .65rem;
    padding: .75rem;
  }

  .stories-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid rgba(255,77,109,.26);
    border-radius: 10px;
    background: linear-gradient(135deg, #ff4d6d, #c9184a);
    color: #ffffff;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    font-weight: 900;
    padding: .78rem .9rem;
    box-shadow: 0 12px 28px rgba(255,77,109,.16);
  }

  .stories-filter-toolbar {
    display: none;
  }

  .stories-filter-toolbar.is-open {
    display: grid;
  }

  .stories-filter-group {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .stories-filter-select {
    width: 100%;
    padding: .72rem .8rem;
  }

  .sankru-story-reader-hero {
    min-height: 300px;
  }

  .sankru-story-hero-thumb {
    width: 100%;
    opacity: .28;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
    mask-image: linear-gradient(180deg, #000, transparent 88%);
  }

  :root[data-theme="light"] .sankru-story-hero-thumb {
    opacity: .5;
  }

  .story-audio-admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .audio-manager-toolbar,
  .audio-manager-filters,
  .example-fr-with-audio {
    align-items: stretch;
    flex-direction: column;
  }

  .audio-manager-filters input {
    width: 100%;
  }

  .story-audio-missing {
    justify-self: stretch;
  }

  .story-audio-player,
  .verb-audio-play {
    justify-self: stretch;
    width: 100%;
  }

  .stories-card-grid {
    grid-template-columns: 1fr;
  }
}

.sankru-speaker-audio-group .verb-audio-play,
.sankru-speaker-audio-group .example-audio-play {
  width: auto;
  margin-left: 0;
}

@media (max-width: 760px) {
  .sankru-speaker-audio-group .verb-audio-play,
  .sankru-speaker-audio-group .example-audio-play {
    flex: 1 1 120px;
    width: auto;
  }
}

@media (max-width: 900px) {
  .story-audio-admin-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .story-audio-admin-card form,
  .verb-audio-bulk-form {
    justify-content: flex-start;
  }
}

.sankru-search-page {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.2rem, 8vw, 5rem) 0;
}

.sankru-search-hero {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.sankru-search-logo {
  width: min(280px, 68vw);
  height: 110px;
  display: block;
  position: relative;
}

.sankru-search-logo-animated {
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.18));
  animation: sankruSearchLogoIntro .72s cubic-bezier(.22, 1, .36, 1) both;
}

.sankru-search-logo-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity .18s ease;
}

.sankru-search-logo-animated .sankru-logo-light {
  opacity: 0;
}

:root[data-theme="light"] .sankru-search-logo-animated .sankru-logo-dark {
  opacity: 0;
}

:root[data-theme="light"] .sankru-search-logo-animated .sankru-logo-light {
  opacity: 1;
}

@keyframes sankruSearchLogoIntro {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sankru-search-logo-animated {
    animation: none !important;
  }
}

.sankru-search-box {
  width: min(680px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(30,32,48,.88);
  padding: 0 1.15rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.sankru-search-box span {
  color: var(--muted);
  font-size: 1.05rem;
}

.sankru-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
}

.sankru-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .75rem;
}

.sankru-search-result {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(30,32,48,.78);
  color: var(--text);
  text-decoration: none;
  padding: .9rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.sankru-search-result:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,157,.5);
  background: rgba(36,39,58,.92);
}

.sankru-search-result span {
  color: var(--accent3);
  font-size: .68rem;
  font-weight: 700;
}

.sankru-search-result strong,
.sankru-search-result small {
  display: block;
}

.sankru-search-result strong {
  margin-top: .35rem;
  font-size: 1.05rem;
}

.sankru-search-result small,
.sankru-search-empty {
  color: var(--muted);
}

@media (max-width: 760px) {
  .sankru-logo-link {
    width: 118px;
    height: 42px;
  }

  .sankru-search-page {
    width: min(100% - .9rem, 900px);
    padding-top: 1.5rem;
  }

  .sankru-search-logo {
    width: min(230px, 72vw);
    height: 92px;
  }

  .sankru-search-box {
    min-height: 52px;
  }
}

@media (max-width: 760px) {
  .sankru-user-dashboard .sankru-dashboard-card-grid > .sankru-hub-card[href="settings.php"],
  .sankru-admin-dashboard-grid > .sankru-hub-card[href="profile.php"] {
    display: block !important;
  }

  .sankru-user-dashboard .sankru-dashboard-card-grid > .sankru-dashboard-settings-card,
  .sankru-admin-dashboard-grid > .sankru-dashboard-settings-card {
    display: none !important;
  }
}

/* Light mode comfort test for the verbs page */
:root[data-theme="light"] body.fiiler-page {
  --bg: #eef6ff;
  --surface: #eaf3ff;
  --card: #f5f9ff;
  --border: #cddcf4;
  --soft-surface: rgba(245,249,255,.92);
  --panel-gradient: linear-gradient(135deg, #f7fbff, #eaf3ff);
  background:
    radial-gradient(circle at 12% 0%, rgba(79,142,247,.14), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(78,205,196,.12), transparent 24rem),
    linear-gradient(180deg, #eef6ff 0%, #eaf3ff 48%, #e6f0ff 100%);
}

:root[data-theme="light"] body.fiiler-page::before {
  opacity: .09;
}

:root[data-theme="light"] .fiiler-page header,
:root[data-theme="light"] .fiiler-page .homeheader {
  background: rgba(240,247,255,.9);
  border-bottom-color: rgba(79,142,247,.16);
  box-shadow: 0 12px 34px rgba(79,142,247,.1);
}

:root[data-theme="light"] .fiiler-page .sidebar,
:root[data-theme="light"] .fiiler-page .mobile-levels {
  background: rgba(234,243,255,.82);
  border-color: rgba(79,142,247,.16);
}

:root[data-theme="light"] .fiiler-page .verb-btn,
:root[data-theme="light"] .fiiler-page .mobile-level-btn,
:root[data-theme="light"] .fiiler-page .level-accordion {
  background: rgba(245,249,255,.78);
  border-color: rgba(79,142,247,.18);
}

:root[data-theme="light"] .fiiler-page .verb-btn:hover,
:root[data-theme="light"] .fiiler-page .verb-btn.active,
:root[data-theme="light"] .fiiler-page .level-header:hover,
:root[data-theme="light"] .fiiler-page .level-header.open {
  background: rgba(223,236,255,.9);
  border-color: rgba(79,142,247,.34);
}

:root[data-theme="light"] .fiiler-page .search-wrap input,
:root[data-theme="light"] .fiiler-page .profile-dropdown,
:root[data-theme="light"] .fiiler-page .verb-note,
:root[data-theme="light"] .fiiler-page .tense-formula-strip,
:root[data-theme="light"] .fiiler-page .conj-table,
:root[data-theme="light"] .fiiler-page .examples-panel {
  background: linear-gradient(135deg, #f7fbff, #edf5ff);
  border-color: rgba(79,142,247,.2);
  box-shadow: 0 14px 34px rgba(79,142,247,.08);
}

:root[data-theme="light"] .fiiler-page .conj-table-head,
:root[data-theme="light"] .fiiler-page .examples-head {
  background: rgba(225,238,255,.82);
  border-bottom-color: rgba(79,142,247,.16);
}

:root[data-theme="light"] .fiiler-page .conj-row,
:root[data-theme="light"] .fiiler-page .example-item {
  border-bottom-color: rgba(79,142,247,.12);
}

:root[data-theme="light"] .fiiler-page .conj-row:hover,
:root[data-theme="light"] .fiiler-page .example-item:hover {
  background: rgba(223,236,255,.62);
}

.sankru-dictionary-page {
  display: grid;
  gap: 1rem;
}

.dictionary-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(78,205,196,.16), transparent 30rem),
    linear-gradient(135deg, rgba(108,143,255,.18), rgba(30,32,48,.86));
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 18px 42px rgba(14,15,20,.2);
  overflow: hidden;
}

.dictionary-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(30,32,48,.9) 0%, rgba(30,32,48,.74) 46%, rgba(30,32,48,.28) 100%),
    radial-gradient(circle at 76% 48%, rgba(108,143,255,.22), transparent 24rem);
  pointer-events: none;
}

.dictionary-head > div {
  position: relative;
  z-index: 2;
  max-width: min(660px, 100%);
}

.dictionary-head h1 {
  max-width: 760px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: .95;
}

.dictionary-head p:not(.favorites-kicker) {
  max-width: 620px;
  margin-top: .7rem;
  color: var(--muted);
  line-height: 1.6;
}

.dictionary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: .5rem;
}

.dictionary-stats span {
  display: grid;
  gap: .1rem;
  min-height: 72px;
  align-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
  padding: .75rem;
  text-align: center;
}

.dictionary-stats strong {
  color: var(--text);
  font-size: 1.3rem;
}

.dictionary-toolbar {
  position: sticky;
  top: 76px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .26fr);
  gap: .7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.9);
  padding: .75rem;
  box-shadow: 0 16px 38px rgba(14,15,20,.18);
  backdrop-filter: blur(16px);
}

.dictionary-toolbar label {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dictionary-toolbar input,
.dictionary-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  padding: 0 .85rem;
}

.dictionary-letters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.dictionary-letters button {
  min-width: 36px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(108,143,255,.25);
  border-radius: 8px;
  background: rgba(108,143,255,.1);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.dictionary-letters button:hover,
.dictionary-letters button.active {
  border-color: rgba(78,205,196,.58);
  background: rgba(78,205,196,.16);
}

.dictionary-list {
  display: grid;
  gap: 1rem;
}

.dictionary-letter-section {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: .85rem;
  scroll-margin-top: 150px;
}

.dictionary-letter-head {
  position: sticky;
  top: 154px;
  align-self: start;
  display: grid;
  gap: .25rem;
  border: 1px solid rgba(108,143,255,.22);
  border-radius: 12px;
  background: rgba(30,32,48,.82);
  padding: .85rem;
  text-align: center;
}

.dictionary-letter-head span {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1;
}

.dictionary-letter-head small {
  color: var(--muted);
  font-size: .72rem;
}

.dictionary-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .75rem;
}

.dictionary-entry {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(78,205,196,.09), transparent 12rem),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(14,15,20,.16);
}

.dictionary-entry-type {
  width: fit-content;
  display: inline-flex;
  border-radius: 999px;
  background: rgba(78,205,196,.12);
  color: var(--accent3);
  padding: .22rem .55rem;
  font-size: .68rem;
  font-weight: 900;
}

.dictionary-entry h2 {
  margin-top: .45rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  line-height: 1;
}

.dictionary-entry strong {
  display: block;
  margin-top: .3rem;
  color: var(--fr);
  font-size: .98rem;
}

.dictionary-entry p {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.dictionary-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.dictionary-entry-meta span {
  border: 1px solid rgba(108,143,255,.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  padding: .22rem .55rem;
}

.dictionary-empty {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(30,32,48,.78);
  color: var(--muted);
  padding: 1.25rem;
  text-align: center;
}

.dictionary-entry[hidden],
.dictionary-letter-section[hidden],
.dictionary-empty[hidden],
.dictionary-entry.is-hidden,
.dictionary-letter-section.is-hidden {
  display: none !important;
}

:root[data-theme="light"] .dictionary-head,
:root[data-theme="light"] .dictionary-toolbar,
:root[data-theme="light"] .dictionary-letter-head,
:root[data-theme="light"] .dictionary-entry,
:root[data-theme="light"] .dictionary-empty {
  background: linear-gradient(135deg, #f7fbff, #edf5ff);
  border-color: rgba(79,142,247,.26);
  box-shadow: 0 16px 38px rgba(79,142,247,.1);
}

:root[data-theme="light"] .dictionary-entry {
  background:
    radial-gradient(circle at top right, rgba(78,205,196,.16), transparent 10rem),
    linear-gradient(145deg, #eef6ff, #e3efff);
  border-color: rgba(79,142,247,.34);
  box-shadow: 0 14px 34px rgba(79,142,247,.14), 0 1px 0 rgba(255,255,255,.86) inset;
}

:root[data-theme="light"] .dictionary-entry:nth-child(3n + 2) {
  background:
    radial-gradient(circle at top right, rgba(255,107,157,.12), transparent 10rem),
    linear-gradient(145deg, #f3f7ff, #e8f1ff);
}

:root[data-theme="light"] .dictionary-entry:nth-child(3n + 3) {
  background:
    radial-gradient(circle at top right, rgba(167,139,250,.13), transparent 10rem),
    linear-gradient(145deg, #f0f5ff, #e4eeff);
}

:root[data-theme="light"] .dictionary-head {
  background:
    radial-gradient(circle at top left, rgba(78,205,196,.14), transparent 30rem),
    linear-gradient(135deg, #f7fbff, #eaf3ff);
}

:root[data-theme="light"] .dictionary-head::after {
  background:
    linear-gradient(90deg, rgba(247,251,255,.96) 0%, rgba(247,251,255,.78) 48%, rgba(247,251,255,.2) 100%),
    radial-gradient(circle at 76% 48%, rgba(79,142,247,.18), transparent 24rem);
}

:root[data-theme="light"] .dictionary-toolbar input,
:root[data-theme="light"] .dictionary-toolbar select {
  background: #f5f9ff;
  border-color: rgba(79,142,247,.22);
}

:root[data-theme="light"] .dictionary-letters button {
  background: #edf5ff;
  border-color: rgba(79,142,247,.24);
}

:root[data-theme="light"] .dictionary-letters button:hover,
:root[data-theme="light"] .dictionary-letters button.active {
  background: #dff0ff;
  border-color: rgba(78,205,196,.46);
}

@media (max-width: 760px) {
  .dictionary-head {
    grid-template-columns: 1fr;
    min-height: 360px;
    align-items: start;
  }

  .dictionary-head::after {
    background:
      linear-gradient(180deg, rgba(30,32,48,.94) 0%, rgba(30,32,48,.72) 54%, rgba(30,32,48,.26) 100%),
      radial-gradient(circle at 50% 78%, rgba(108,143,255,.2), transparent 18rem);
  }

  :root[data-theme="light"] .dictionary-head::after {
    background:
      linear-gradient(180deg, rgba(247,251,255,.98) 0%, rgba(247,251,255,.82) 52%, rgba(247,251,255,.3) 100%),
      radial-gradient(circle at 50% 78%, rgba(79,142,247,.16), transparent 18rem);
  }

  .dictionary-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .dictionary-toolbar {
    position: static;
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .dictionary-toolbar label {
    gap: .28rem;
  }

  .dictionary-toolbar input,
  .dictionary-toolbar select {
    min-height: 42px;
  }

  .dictionary-letters {
    gap: .32rem;
  }

  .dictionary-letters button {
    min-width: 32px;
    min-height: 31px;
    border-radius: 7px;
    font-size: .74rem;
    padding: 0 .42rem;
  }

  .dictionary-letter-section {
    grid-template-columns: 1fr;
  }

  .dictionary-letter-head {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .dictionary-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .dictionary-entry {
    gap: .55rem;
    padding: .72rem;
  }

  .dictionary-entry-type,
  .dictionary-entry-meta span {
    font-size: .62rem;
    padding: .18rem .42rem;
  }

  .dictionary-entry h2 {
    font-size: 1.18rem;
  }

  .dictionary-entry strong {
    font-size: .82rem;
  }

  .dictionary-entry p {
    font-size: .76rem;
    line-height: 1.38;
  }

  .dictionary-entry-meta {
    gap: .25rem;
  }
}

@media (max-width: 380px) {
  .dictionary-entry-grid {
    grid-template-columns: 1fr;
  }
}

/* Dictionary hero art override: match story-reader background image treatment */
.sankru-dictionary-page .dictionary-head {
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 300px;
  overflow: hidden;
}

.sankru-dictionary-page .dictionary-head > div {
  position: relative;
  z-index: 2;
  max-width: min(650px, 100%);
}

.sankru-dictionary-page .dictionary-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(30,32,48,.24), rgba(30,32,48,.42));
}

:root[data-theme="light"] .sankru-dictionary-page .dictionary-head::after {
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.56));
}

@media (max-width: 760px) {
  .sankru-dictionary-page .dictionary-head {
    min-height: 330px;
  }

  .sankru-dictionary-page .dictionary-head::after {
    background: linear-gradient(180deg, rgba(30,32,48,.92), rgba(30,32,48,.34));
  }

  :root[data-theme="light"] .sankru-dictionary-page .dictionary-head::after {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.36));
  }
}

/* Hard reset for dictionary hero: supports both current background mode and any cached old figure markup */
main.sankru-dictionary-page > section.dictionary-head {
  position: relative !important;
  display: block !important;
  min-height: 300px !important;
  padding: clamp(1.1rem, 3vw, 2rem) !important;
  overflow: hidden !important;
}

main.sankru-dictionary-page > section.dictionary-head > div {
  position: relative !important;
  z-index: 3 !important;
  max-width: min(650px, 58%) !important;
}

main.sankru-dictionary-page > section.dictionary-head > .dictionary-hero-art {
  position: absolute !important;
  inset: 0 0 0 auto !important;
  z-index: 0 !important;
  width: min(52%, 620px) !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

main.sankru-dictionary-page > section.dictionary-head > .dictionary-hero-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: .36 !important;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%) !important;
  mask-image: linear-gradient(90deg, transparent, #000 28%) !important;
}

main.sankru-dictionary-page > section.dictionary-head::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, rgba(30,32,48,.18), rgba(30,32,48,.42)) !important;
}

:root[data-theme="light"] main.sankru-dictionary-page > section.dictionary-head::after {
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.58)) !important;
}

@media (max-width: 760px) {
  main.sankru-dictionary-page > section.dictionary-head {
    display: block !important;
    min-height: 0 !important;
  }

  main.sankru-dictionary-page > section.dictionary-head > div {
    max-width: 100% !important;
  }

  main.sankru-dictionary-page > section.dictionary-head > .dictionary-hero-art {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  main.sankru-dictionary-page > section.dictionary-head > .dictionary-hero-art img {
    opacity: .18 !important;
    object-position: center top !important;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 68%) !important;
    mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 68%) !important;
  }

  :root[data-theme="light"] main.sankru-dictionary-page > section.dictionary-head > .dictionary-hero-art img {
    opacity: .3 !important;
  }

  main.sankru-dictionary-page > section.dictionary-head::after {
    background: linear-gradient(180deg, rgba(30,32,48,.9) 0%, rgba(30,32,48,.62) 48%, rgba(12,14,22,.88) 100%) !important;
  }

  :root[data-theme="light"] main.sankru-dictionary-page > section.dictionary-head::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(247,251,255,.72) 44%, rgba(233,242,255,.95) 100%),
      linear-gradient(0deg, rgba(79,142,247,.12), transparent 48%) !important;
  }
}

@media (max-width: 900px) {
  .sankru-blog-page .blog-summary-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 45;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 48px;
    min-height: 0;
    max-width: none;
    overflow: hidden;
    border: 1px solid rgba(79,142,247,.42);
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, rgba(79,142,247,.78), rgba(108,143,255,.72));
    color: transparent;
    padding: 0;
    font-size: 0;
    font-weight: 900;
    opacity: .78;
    box-shadow: 0 10px 24px rgba(79,142,247,.2);
    backdrop-filter: blur(10px);
    transform: translate(var(--summary-offset, 0), -50%);
    transition: transform .22s ease, opacity .18s ease, box-shadow .18s ease;
  }

  .sankru-blog-page .blog-summary-toggle::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: -3px;
    color: inherit;
    font-size: 0;
    line-height: 1;
  }

  .sankru-blog-page .blog-summary-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
    margin-left: 3px;
  }

  .sankru-blog-page .blog-article-summary {
    position: fixed;
    left: 0;
    top: 88px;
    bottom: 0;
    z-index: 44;
    display: grid;
    width: 50vw;
    min-width: 210px;
    max-width: 280px;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-105%);
    transition: transform .22s ease;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 0 14px 0 0;
    background: rgba(18,20,31,.97);
    padding: 1rem .85rem 1.4rem;
    box-shadow: 20px 0 44px rgba(0,0,0,.25);
    gap: 0;
  }

  .sankru-blog-page .blog-article-summary.is-open {
    transform: translateX(0);
  }

  .sankru-blog-page .blog-article-summary strong,
  .sankru-blog-page .blog-article-summary a {
    flex: initial;
    white-space: normal;
  }

  .sankru-blog-page .blog-article-summary a {
    border: 0;
    border-left: 2px solid transparent;
    justify-self: start;
    width: auto;
    max-width: 100%;
    border-radius: 7px;
    background: transparent;
    padding: .16rem .34rem;
    font-size: .76rem;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  :root[data-theme="light"] .sankru-blog-page .blog-summary-toggle {
    border-color: rgba(79,142,247,.45);
    background: linear-gradient(135deg, rgba(79,142,247,.78), rgba(108,143,255,.72));
    box-shadow: 0 10px 24px rgba(79,142,247,.18);
  }

  :root[data-theme="light"] .sankru-blog-page .blog-article-summary {
    background: rgba(255,255,255,.98);
  }

  :root[data-theme="light"] .sankru-blog-page .blog-article-summary a {
    border-bottom-color: rgba(79,142,247,.12);
  }
}

@media (max-width: 900px) {
  .sankru-blog-page #articleSummary.blog-article-summary {
    display: block;
    top: 50%;
    bottom: auto;
    width: fit-content;
    min-width: 168px;
    max-width: min(62vw, 240px);
    max-height: calc(100vh - 120px);
    padding: .7rem .7rem .8rem;
    border-radius: 0 12px 12px 0;
    overflow-y: auto;
    transform: translate(-105%, -50%);
  }

  .sankru-blog-page #articleSummary.blog-article-summary.is-open {
    transform: translate(0, -50%);
  }

  .sankru-blog-page #articleSummary.blog-article-summary strong {
    display: block;
    margin: 0 0 .38rem;
    padding: 0;
    font-size: .7rem;
    line-height: 1.1;
  }

  .sankru-blog-page .blog-summary-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .28rem;
  }

  .sankru-blog-page #articleSummary .blog-summary-link {
    display: inline-block;
    width: auto;
    max-width: 210px;
    margin: 0;
    padding: .14rem .24rem;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.16;
    text-decoration: none;
  }

  .sankru-blog-page #articleSummary .blog-summary-link:hover {
    background: rgba(108,143,255,.08);
    color: var(--text);
  }

  :root[data-theme="light"] .sankru-blog-page #articleSummary .blog-summary-link {
    border-bottom-color: rgba(79,142,247,.12);
  }
}
