/* ============ Rufaida Echo — site styles ============ */
:root {
  --white: #FFFFFF;
  --platinum: #F4F6F9;
  --rose: #F2619C;
  --rose-soft: #FDE7F1;
  --amber: #EDE986;
  --amber-soft: #FAF8D9;
  --mauve: #E7BEF8;
  --mauve-soft: #F7EBFD;
  --wisteria: #93ABD9;
  --wisteria-soft: #E4EBF7;
  --ink: #1B1A21;
  --ink-soft: #4A4857;
  --muted: #8B8999;
  --line: #E8EAF1;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --r-lg: 32px;
  --r-md: 22px;
  --shadow: 0 1px 2px rgba(27,26,33,.04), 0 12px 32px -12px rgba(27,26,33,.14);
  --shadow-lg: 0 2px 4px rgba(27,26,33,.04), 0 30px 60px -20px rgba(27,26,33,.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--white); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 500; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  max-width: calc(100% - 24px);
}
.logo {
  width: 38px; height: 38px; border-radius: 12px; background: var(--rose); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-style: italic;
  font-weight: 700; font-size: 20px; flex: none;
}
.nav a.link {
  font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px;
  border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap;
}
.nav a.link:hover { background: var(--platinum); color: var(--ink); }
.nav a.link.active { color: var(--rose); }
.nav .btn { margin-left: 4px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 14px; font-weight: 500; padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 10px 24px -10px rgba(27,26,33,.6); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { box-shadow: 0 10px 24px -10px rgba(242,97,156,.8); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { box-shadow: 0 10px 24px -10px rgba(190,180,40,.7); }
.btn-ghost { background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff;
}
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--platinum); color: var(--ink-soft);
}
.tag.editing { background: var(--mauve-soft); color: #8A3FAE; }
.tag.ai { background: var(--wisteria-soft); color: #3E5E9C; }
.tag.photo { background: var(--amber-soft); color: #7A7420; }
.tag.strategy { background: var(--rose-soft); color: #C2306D; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--rose);
}
.spark { position: absolute; fill: currentColor; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }

/* ---------- section headings ---------- */
.section { padding: 110px 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; max-width: 680px; }
.sec-title em { color: var(--rose); }
.sec-sub { color: var(--ink-soft); max-width: 460px; margin-top: 12px; }
.label-chip {
  display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: .7em;
  background: var(--amber); padding: 0 .35em; border-radius: 8px; transform: rotate(-3deg); color: var(--ink);
  box-shadow: 0 4px 0 rgba(27,26,33,.08);
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 0; text-align: center; overflow: hidden; }
.hero .grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--platinum) 1px, transparent 1px), linear-gradient(90deg, var(--platinum) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero h1 {
  font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--rose);
  font-size: clamp(64px, 12vw, 150px); line-height: .95; letter-spacing: -.02em; margin: 18px 0 18px;
}
.hero h1 .sans { font-family: var(--sans); font-style: normal; font-weight: 700; color: var(--ink); letter-spacing: -.04em; }
.hero .lede { max-width: 540px; margin: 22px auto 0; color: var(--ink-soft); font-size: 17px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero .floating { position: absolute; z-index: 2; font-size: 15px; box-shadow: var(--shadow); }
.hero .floating.f1 { left: 9%; top: 330px; transform: rotate(-9deg); }
.hero .floating.f2 { right: 9%; top: 270px; transform: rotate(7deg); }

/* folder / pocket */
.pocket { position: relative; width: min(820px, 100%); height: 480px; margin: 30px auto 0; }
.pocket .back {
  position: absolute; left: 4%; right: 4%; bottom: 0; height: 300px; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #CDB6F0, #B9A3E8);
}
.pocket .back::before { /* folder tab */
  content: ''; position: absolute; top: -22px; left: 28px; width: 150px; height: 40px;
  background: #CDB6F0; border-radius: 14px 14px 0 0;
}
.pocket .front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 5;
  background: linear-gradient(180deg, var(--mauve), #D7AEF2); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 30px -12px rgba(120,60,160,.35);
  display: grid; place-items: center;
}
.pocket .front::before {
  content: ''; position: absolute; inset: 14px; border: 2px dashed rgba(255,255,255,.7); border-radius: 14px 14px 0 0; border-bottom: 0;
}
.pocket .front .mark {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 88px; color: #fff; line-height: 1;
  text-shadow: 0 3px 0 rgba(120,60,160,.18); margin-top: 10px;
}
.pocket .card {
  position: absolute; bottom: 90px; z-index: 3; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.pocket .card:hover { z-index: 6 !important; }
.pocket .card.note { z-index: 4; }
.card.polaroid { bottom: 120px; left: 4%; width: 235px; padding: 12px 12px 40px; transform: rotate(-8deg); }
.card.polaroid:hover { transform: rotate(-4deg) translateY(-40px); }
.card.polaroid .photo {
  height: 250px; border-radius: 8px; background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 40%),
    linear-gradient(160deg, var(--wisteria), var(--mauve) 60%, var(--rose));
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 500; text-align: center; padding: 10px;
}
.card.polaroid .cap { position: absolute; bottom: 9px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; }
.card.note { bottom: 178px; left: 36%; width: 255px; padding: 26px 24px; transform: rotate(3deg); text-align: left; background: #FFFDF2; }
.card.note:hover { transform: rotate(0) translateY(-40px); }
.card.note p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--ink-soft); }
.card.note p + p { margin-top: 14px; font-size: 15px; font-family: var(--sans); font-style: normal; font-weight: 500; color: var(--rose); }
.card.guide { bottom: 110px; right: 3%; width: 225px; height: 295px; padding: 22px; transform: rotate(-3deg); background: var(--amber); text-align: left; display: flex; flex-direction: column; }
.card.guide:hover { transform: rotate(0) translateY(-40px); }
.card.guide small { font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.card.guide b { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.05; margin-top: 10px; }
.card.guide .pdf { margin-top: auto; font-size: 11px; font-weight: 600; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; align-self: flex-start; }
  height: 100%; background-color: var(--platinum);
  background-image: linear-gradient(115deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
    linear-gradient(20deg, transparent 47%, #fff 47%, #fff 52%, transparent 52%),
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 22px 22px, 22px 22px; position: relative;
}

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--platinum); overflow: hidden; padding: 16px 0; }
.marquee .track { display: flex; gap: 40px; width: max-content; animation: scroll 32s linear infinite; }
.marquee span { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee span em { color: var(--rose); font-size: 18px; }
.marquee svg { width: 14px; fill: var(--rose); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.tile { border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; min-height: 250px; display: flex; flex-direction: column; }
.tile h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.tile p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; max-width: 300px; }
.tile .bottom { margin-top: auto; }
.tile.t-edit { grid-row: span 2; background: linear-gradient(180deg, var(--mauve-soft), var(--mauve)); }
.tile.t-ai { grid-column: span 2; background: linear-gradient(120deg, var(--rose-soft) 0%, #FBD2E4 50%, var(--amber) 100%); }
.tile.t-photo { background: var(--amber-soft); }
.tile.t-strat { background: var(--wisteria-soft); }
.stack { position: relative; height: 250px; margin: 20px 0; }
.stack .ph {
  position: absolute; width: 150px; height: 190px; background: #fff; padding: 8px 8px 28px; border-radius: 10px; box-shadow: var(--shadow);
  left: 50%; top: 20px;
}
.stack .ph div { height: 100%; border-radius: 6px; }
.stack .ph:nth-child(1) { transform: translateX(-85%) rotate(-10deg); }
.stack .ph:nth-child(1) div { background: linear-gradient(160deg, #F6C9A6, #C97C5D 70%, #6B3E3A); }
.stack .ph:nth-child(2) { transform: translateX(-15%) rotate(8deg); }
.stack .ph:nth-child(2) div { background: linear-gradient(160deg, #B9D3C4, #6F9A86 60%, #2F4E43); }
.stack .ph b { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 13px; font-weight: 500; }
.chips-cloud { position: absolute; right: 22px; top: 18px; width: 52%; height: 85%; }
.chips-cloud .pill { position: absolute; background: #fff; border: 0; box-shadow: var(--shadow); font-size: 13px; }
.slider-ui { margin-top: 18px; display: grid; gap: 10px; max-width: 260px; }
.slider-ui label { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.slider-ui .bar { height: 4px; border-radius: 4px; background: rgba(27,26,33,.1); position: relative; }
.slider-ui .bar i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transform: translate(-50%,-50%); }
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 18px; }
.mini-chart span { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--wisteria); }
.mini-chart span:last-child { background: var(--rose); }

/* ---------- guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.gcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gcover { height: 230px; display: grid; place-items: center; position: relative; overflow: hidden; }
.gcover.editing { background: var(--mauve-soft); }
.gcover.ai { background: var(--wisteria-soft); }
.gcover.photo { background: var(--amber-soft); }
.gcover.strategy { background: var(--rose-soft); }
.gcover img { width: 100%; height: 100%; object-fit: cover; }
.doc {
  width: 150px; height: 196px; background: #fff; border-radius: 10px; padding: 16px 14px; box-shadow: var(--shadow-lg);
  transform: rotate(-4deg) translateY(16px); transition: transform .4s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column;
  position: relative;
}
.doc::after { content: ''; position: absolute; inset: 0; border-radius: 10px; transform: rotate(7deg) translate(10px, 4px); background: rgba(255,255,255,.65); z-index: -1; }
.gcard:hover .doc { transform: rotate(0) translateY(6px); }
.doc small { font-size: 8px; letter-spacing: .2em; font-weight: 600; color: var(--muted); }
.doc b { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.1; margin-top: 8px; font-weight: 600; }
.doc .lines { margin-top: 12px; display: grid; gap: 6px; }
.doc .lines i { display: block; height: 4px; border-radius: 4px; background: var(--platinum); }
.doc .lines i:nth-child(2) { width: 80%; } .doc .lines i:nth-child(3) { width: 60%; }
.doc .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 600; }
.doc .foot span:first-child { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--rose); }
.doc.editing b { color: #8A3FAE; } .doc.ai b { color: #3E5E9C; } .doc.photo b { color: #6E6818; } .doc.strategy b { color: #C2306D; }
.gbody { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.gbody h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin-top: 12px; }
.gbody p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.gmeta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; gap: 10px; }
.gmeta small { font-size: 12px; color: var(--muted); }
.new-badge { position: absolute; top: 14px; right: 14px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; transform: rotate(6deg); }

/* ---------- echo universe ---------- */
.universe { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ucard {
  border-radius: var(--r-lg); padding: 38px; min-height: 420px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s;
}
.ucard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ucard .kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.ucard h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; margin-top: 12px; font-weight: 600; letter-spacing: -.02em; }
.ucard h3 em { font-weight: 600; }
.ucard p { color: var(--ink-soft); margin-top: 12px; max-width: 340px; }
.ucard .btn { margin-top: 24px; align-self: flex-start; position: relative; z-index: 2; }
.ucard.studio { background: #fff; }
.ucard.studio h3 em { color: var(--rose); }
.ucard.tools { background: var(--ink); color: #fff; border-color: var(--ink); }
.ucard.tools p { color: #C9C7D4; }
.ucard.tools h3 em { color: var(--amber); }
.ucard.tools .kicker { color: var(--wisteria); }
.ucard.studio .kicker { color: var(--rose); }
.reels { position: absolute; right: -10px; bottom: -30px; display: flex; gap: 12px; transform: rotate(-8deg); }
.reels div { width: 92px; height: 164px; border-radius: 16px; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.reels div:nth-child(1) { background: linear-gradient(170deg, var(--mauve), var(--rose)); margin-top: 40px; }
.reels div:nth-child(2) { background: linear-gradient(170deg, var(--amber), #F6B98A); }
.reels div:nth-child(3) { background: linear-gradient(170deg, var(--wisteria), var(--mauve)); margin-top: 26px; }
.toolchips { position: absolute; right: 26px; bottom: 30px; display: grid; gap: 10px; justify-items: end; }
.toolchips span { font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; gap: 8px; }
.toolchips span i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- CTA + footer ---------- */
.big-cta { text-align: center; padding: 120px 0 100px; position: relative; overflow: hidden; }
.big-cta h2 { font-size: clamp(34px, 5vw, 62px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.big-cta a.handle { display: inline-block; font-family: var(--serif); font-style: italic; color: var(--rose); font-size: clamp(42px, 7vw, 92px); font-weight: 600; margin-top: 8px; transition: transform .3s; }
.big-cta a.handle:hover { transform: rotate(-2deg) scale(1.03); }
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer nav { display: flex; gap: 20px; }
.footer nav a:hover { color: var(--ink); }

/* ---------- guides page ---------- */
.page-hero { padding: 150px 0 50px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(42px, 7vw, 86px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.page-hero h1 em { color: var(--rose); font-weight: 600; letter-spacing: -.01em; }
.page-hero p { color: var(--ink-soft); max-width: 520px; margin: 18px auto 0; }
.toolbar { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-width: 260px; background: #fff; }
.search input { border: 0; outline: 0; flex: 1; font-size: 14px; background: transparent; }
.search svg { width: 16px; height: 16px; flex: none; stroke: var(--muted); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); display: none; }

/* ---------- admin ---------- */
.admin-body { background: var(--platinum); min-height: 100vh; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: #fff; border-radius: var(--r-lg); padding: 44px 40px; width: min(420px, 100%); box-shadow: var(--shadow-lg); text-align: center; position: relative; }
.login-card .logo { width: 54px; height: 54px; font-size: 28px; border-radius: 16px; margin: 0 auto 18px; }
.login-card h1 { font-size: 26px; font-weight: 600; }
.login-card h1 em { color: var(--rose); }
.login-card p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.field { display: grid; gap: 6px; text-align: left; margin-top: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; background: #fff; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.field textarea { resize: vertical; min-height: 84px; }
.login-card .btn { width: 100%; margin-top: 22px; padding: 13px; }

.dash { display: none; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.topbar .brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.topbar .brand small { font-weight: 400; color: var(--muted); display: block; font-size: 12px; line-height: 1; }
.topbar .actions { display: flex; gap: 8px; }
.notice { background: var(--amber-soft); border: 1px solid #EDE7A6; color: #6E6818; padding: 10px 16px; border-radius: 14px; font-size: 13px; margin: 24px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.stat { background: #fff; border-radius: var(--r-md); padding: 20px 22px; border: 1px solid var(--line); }
.stat small { font-size: 13px; color: var(--muted); }
.stat b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.stat:nth-child(1) b { color: var(--rose); }
.dash-grid { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; padding-bottom: 60px; }
.panel { background: #fff; border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); }
.panel h2 { font-size: 19px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.panel h2 em { color: var(--rose); }
.panel .hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
.drop {
  border: 2px dashed #D6D9E4; border-radius: 18px; padding: 22px; text-align: center; cursor: pointer; transition: all .2s;
  font-size: 13px; color: var(--ink-soft); background: var(--platinum); position: relative;
}
.drop:hover, .drop.over { border-color: var(--rose); background: var(--rose-soft); }
.drop b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 6px; }
.drop .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin: 0 auto; box-shadow: var(--shadow); font-size: 18px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.has { border-style: solid; border-color: var(--rose); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #D6D9E4; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--rose); }
.switch input:checked + span::before { transform: translateX(18px); }
.panel .btn-full { width: 100%; margin-top: 20px; padding: 13px; }
.glist { margin-top: 18px; display: grid; gap: 10px; }
.gitem { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); transition: background .2s; }
.gitem:hover { background: var(--platinum); }
.gthumb { width: 56px; height: 68px; border-radius: 10px; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 20px; }
.gthumb.editing { background: var(--mauve-soft); color: #8A3FAE; }
.gthumb.ai { background: var(--wisteria-soft); color: #3E5E9C; }
.gthumb.photo { background: var(--amber-soft); color: #7A7420; }
.gthumb.strategy { background: var(--rose-soft); color: #C2306D; }
.gitem h4 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.gitem .sub { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; cursor: pointer; border: 0; }
.status.live { background: #E3F6EA; color: #23824B; }
.status.draft { background: var(--platinum); color: var(--muted); }
.icon-btns { display: flex; gap: 4px; }
.icon-btns button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); }
.icon-btns button:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.icon-btns button.del:hover { color: var(--rose); }
.icon-btns svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.links-panel { margin-top: 20px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 99px; font-size: 14px; transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: 100; }
.toast.show { transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.t-edit { grid-row: span 1; }
  .tile.t-ai { grid-column: span 2; }
  .universe { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero .floating { display: none; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .card.polaroid { width: 200px; } .card.polaroid .photo { height: 215px; }
  .card.note { width: 215px; padding: 22px 20px; left: 33%; bottom: 182px; } .card.note p { font-size: 18px; }
  .card.guide { width: 195px; height: 260px; right: 1%; } .card.guide b { font-size: 27px; }
}
@media (max-width: 640px) {
  .nav a.link.hide-sm { display: none; }
  .nav a.link { padding: 8px 10px; font-size: 13px; }
  .nav .btn { padding: 9px 14px; font-size: 13px; }
  .section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile.t-ai { grid-column: span 1; min-height: 360px; }
  .chips-cloud { position: relative; width: 100%; height: 160px; right: auto; top: auto; margin-top: 16px; }
  .pocket { height: 330px; }
  .pocket .front { height: 150px; }
  .pocket .front .mark { font-size: 64px; }
  .pocket .card { bottom: 90px !important; transform-origin: bottom center; }
  .card.polaroid { left: 0; width: 160px; } .card.polaroid .photo { height: 170px; }
  .card.note { display: none; }
  .card.guide { right: 0; width: 155px; height: 210px; } .card.guide b { font-size: 23px; }
    .ucard { padding: 28px; min-height: 460px; }
  .search { min-width: 0; width: 100%; }
  .gitem { grid-template-columns: 48px 1fr; }
  .gitem .status, .gitem .icon-btns { grid-column: 2; justify-self: start; }
  .row2 { grid-template-columns: 1fr; }
  .topbar .actions .btn-ghost span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* links not set yet in admin */
.btn.link-pending, .footer a.link-pending, .nav a.link-pending { display: none; }
.ucard.link-pending { cursor: default; }
.ucard.link-pending:hover { transform: none; box-shadow: none; }
.ucard.link-pending .btn { opacity: .75; pointer-events: none; }

/* loading / empty states */
.loading-card { border-radius: var(--r-md); height: 400px; background: linear-gradient(90deg, var(--platinum), #fff, var(--platinum)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--ink-soft); background: #fff; }
.empty-state b { display: block; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--rose); font-weight: 600; margin-bottom: 4px; }

/* admin extras */
.form-error { color: #C2306D; background: var(--rose-soft); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-top: 14px; display: none; }
.form-error.show { display: block; }
.progress { height: 6px; border-radius: 6px; background: var(--platinum); overflow: hidden; margin-top: 14px; display: none; }
.progress.show { display: block; }
.progress i { display: block; height: 100%; width: 0; background: var(--rose); transition: width .2s; }
.edit-banner { display: none; align-items: center; justify-content: space-between; gap: 10px; background: var(--wisteria-soft); color: #3E5E9C; font-size: 13px; padding: 10px 14px; border-radius: 12px; margin-top: 14px; }
.edit-banner.show { display: flex; }
.edit-banner button { border: 0; background: #fff; border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: 12px; font-weight: 500; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gitem.editing-row { border-color: var(--wisteria); background: var(--wisteria-soft); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* privacy / text pages */
.prose { max-width: 720px; padding-bottom: 100px; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 40px 0 10px; }
.prose p { color: var(--ink-soft); margin-top: 12px; }
.prose a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.prose a.link-pending { display: inline; color: var(--ink-soft); text-decoration: none; }
