/* ========== SELF-HOSTED FONTS ========== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/playfair-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/playfair-700i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========== WARM EARTH — LIGHT (default) ========== */
:root, [data-theme="light"] {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f5f5f3;
  --surface-3: #eeedeb;
  --border: #e7e5e4;
  --primary: #dc6843;
  --primary-bright: #e07a58;
  --primary-glow: rgba(220,104,67,0.2);
  --accent-pink: #c2705a;
  --accent-orange: #e09b3d;
  --accent-cyan: #6a9e7e;
  --gradient-main: linear-gradient(135deg, #dc6843, #e09b3d);
  --gradient-full: linear-gradient(135deg, #dc6843 0%, #e09b3d 50%, #6a9e7e 100%);
  --gradient-mesh: none;
  --text: #292524;
  --text-secondary: #57534e;
  --text-muted: #635e5a;
  --text-dim: #78736e;
  --shadow-glow: 0 0 40px rgba(220,104,67,0.06);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.03);
  --nav-bg: rgba(250,250,248,0.9);
  --header-bg: rgba(250,250,248,0.85);
  --input-bg: #f5f5f3;
  --input-focus-bg: #ffffff;
  --locked-bg: rgba(255,255,255,0.92);
  --radius: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

/* ========== WARM EARTH — DARK ========== */
[data-theme="dark"] {
  --bg: #1c1917;
  --surface: #272220;
  --surface-solid: #272220;
  --surface-2: #302a28;
  --surface-3: #3b3432;
  --border: #4a4240;
  --primary: #e8845c;
  --primary-bright: #f0a07a;
  --primary-glow: rgba(232,132,92,0.25);
  --accent-pink: #d4917a;
  --accent-orange: #f0b86a;
  --accent-cyan: #7ec09a;
  --gradient-main: linear-gradient(135deg, #e8845c, #f0b86a);
  --gradient-full: linear-gradient(135deg, #e8845c 0%, #f0b86a 50%, #7ec09a 100%);
  --gradient-mesh: none;
  --text: #f5f0eb;
  --text-secondary: #c8c0b8;
  --text-muted: #8a8280;
  --text-dim: #5c5452;
  --shadow-glow: 0 0 40px rgba(232,132,92,0.08);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.15);
  --nav-bg: rgba(28,25,23,0.9);
  --header-bg: rgba(28,25,23,0.85);
  --input-bg: #302a28;
  --input-focus-bg: #3b3432;
  --locked-bg: rgba(28,25,23,0.9);
}

/* ========== BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========== HEADER ========== */
.site-header {
  padding: 16px 28px; display: flex;
  justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg); backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 100;
}
.logo {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 22px;
  text-decoration: none; display: flex; align-items: center; gap: 10px; color: var(--text);
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.logo-text { color: var(--primary); font-family: 'DM Sans', sans-serif; }
.header-right { display: flex; gap: 10px; align-items: center; }
.lang-select-wrap { position: relative; display: flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  padding: 7px 28px 7px 30px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 12px; font-weight: 700;
  font-family: inherit; cursor: pointer; text-transform: uppercase;
  letter-spacing: 0.5px; transition: all 0.2s;
}
.lang-select:hover { border-color: var(--primary); }
.lang-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.lang-select option { background: var(--surface-solid, #141230); color: var(--text); }
.lang-select-icon { position: absolute; left: 10px; font-size: 13px; pointer-events: none; }

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  width: 52px; height: 28px; border-radius: 50px; border: none;
  background: var(--surface-3); cursor: pointer; position: relative;
  transition: background 0.3s;
}
.theme-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient-main);
  transition: transform 0.3s cubic-bezier(.4,.0,.2,1);
  box-shadow: 0 2px 8px var(--primary-glow);
}
[data-theme="light"] .theme-toggle::after { transform: translateX(24px); }
.theme-toggle-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 13px; line-height: 1; z-index: 1; pointer-events: none;
}
.theme-toggle-icon.moon { left: 7px; }
.theme-toggle-icon.sun { right: 7px; }

/* ========== BUTTONS ========== */
.btn-glow {
  padding: 15px 34px; border-radius: 50px; border: none;
  background: var(--gradient-main); color: white; font-weight: 700;
  font-size: 15px; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.35s; position: relative; text-decoration: none; display: inline-block;
  box-shadow: 0 6px 30px var(--primary-glow);
}
.btn-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 45px var(--primary-glow); }
.btn-glow.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-glass {
  padding: 13px 26px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 14px;
  cursor: pointer; font-family: inherit; transition: all 0.25s;
  text-decoration: none; display: inline-block;
}
.btn-glass:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ========== HERO ========== */
.hero {
  text-align: center; padding: 72px 28px 40px; position: relative;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; border-radius: 50px;
  background: rgba(255,107,91,0.08); border: 1px solid rgba(255,107,91,0.2);
  font-size: 13px; font-weight: 600; color: var(--primary-bright); margin-bottom: 28px;
}
.hero-chip .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cyan); box-shadow: 0 0 10px rgba(56,232,208,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.8)} }
.hero h1 {
  font-family: 'DM Sans', sans-serif; font-weight: 900;
  font-size: clamp(34px, 5.5vw, 60px); line-height: 1.05;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 .gradient {
  background: var(--gradient-full);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-secondary); font-size: 17px; max-width: 580px; margin: 0 auto; }

/* ========== FORM ========== */
.create-section { max-width: 760px; margin: 0 auto; padding: 0 24px 48px; }
.form-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-card);
}
.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient-main); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.step-title { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; }
.form-divider { height: 1px; margin: 28px 0; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input {
  width: 100%; max-width: 100%; min-width: 0; padding: 13px 16px;
  border-radius: var(--radius-xs); border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text);
  font-size: 14px; font-family: inherit; transition: all 0.2s;
  box-sizing: border-box; -webkit-appearance: none;
}
input[type="date"].form-input,
input[type="time"].form-input {
  min-width: 0; max-width: 100%; overflow: hidden;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: var(--input-focus-bg); }
.form-input::placeholder { color: var(--text-dim); }

/* Mode selector */
.mode-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.mode-card {
  padding: 26px 20px; border-radius: var(--radius-md);
  border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all 0.3s; font-family: inherit;
  text-align: center; position: relative; overflow: hidden;
}
.mode-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(255,154,118,0.12); }
.mode-card.selected { border-color: var(--primary); background: rgba(255,154,118,0.05); }
.mode-card.selected::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--gradient-main); }
.mode-card .mode-icon { font-size: 36px; margin-bottom: 10px; }
.mode-card .mode-name { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.mode-card .mode-desc { font-size: 12px; color: var(--text-muted); }
.mode-content { display: none; }
.mode-content.active { display: block; }
/* WYSIWYG shared styles */
.wysiwyg-wrap {
  border: 1.5px solid var(--border); border-radius: var(--radius-xs); overflow: hidden;
}
.wysiwyg-toolbar {
  display: flex; gap: 2px; padding: 6px 10px;
  background: var(--surface-3); border-bottom: 1px solid var(--border);
}
.wysiwyg-toolbar button {
  width: 32px; height: 32px; border-radius: 6px; border: none;
  background: transparent; color: var(--text-secondary); cursor: pointer;
  font-size: 13px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; transition: all 0.15s;
  font-family: inherit;
}
.wysiwyg-toolbar button:hover { background: var(--surface-2); color: var(--text); }
.wys-sep { width: 1px; background: var(--border); margin: 4px 6px; }

.message-richtext, .block-richtext {
  min-height: 120px; padding: 16px;
  background: var(--input-bg); color: var(--text);
  font-size: 15px; font-family: inherit; line-height: 1.7;
  outline: none;
}
.message-richtext:focus, .block-richtext:focus {
  background: var(--input-focus-bg);
}
.message-richtext:empty::before, .block-richtext:empty::before {
  content: attr(data-placeholder); color: var(--text-dim);
}
.message-richtext a, .block-richtext a { color: var(--primary); }
.block-richtext { min-height: 60px; padding: 12px 14px; font-size: 14px; }

/* Option cards */
.option-grid { display: grid; gap: 10px; }
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.option-card {
  padding: 18px 14px; border-radius: var(--radius-md);
  border: 2px solid var(--border); background: var(--surface);
  text-align: center; cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.option-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,154,118,0.1); }
.option-card.selected { border-color: var(--primary); background: rgba(255,154,118,0.05); }
.option-card .icon { font-size: 24px; margin-bottom: 6px; }
.option-card .name { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.option-card .desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.date-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 14px; padding: 16px; overflow: hidden;
  min-width: 0;
  background: var(--surface-2); border-radius: var(--radius-xs); border: 1px solid var(--border);
}

/* ========== BLOCK EDITOR ========== */
.block-editor { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.block-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.block-item { border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface-2); overflow: hidden; transition: all 0.2s; }
.block-item:hover { border-color: rgba(255,107,91,0.3); }
.block-item.dragging { opacity: 0.5; }
.block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--surface-3); border-bottom: 1px solid var(--border); cursor: grab;
}
.block-type { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.block-wys-btns {
  display: flex; gap: 2px; margin-left: 8px;
}
.block-wys-btns button {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: transparent; color: var(--text-secondary); cursor: pointer;
  font-size: 12px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; transition: all 0.15s;
  font-family: inherit;
}
.block-wys-btns button:hover { background: var(--surface-2); color: var(--text); }
.block-wys-btns button.wys-active { background: var(--primary); color: white; }
.wysiwyg-toolbar button.wys-active { background: var(--primary); color: white; }
.block-header { flex-wrap: nowrap; }
.block-actions { display: flex; gap: 2px; }
.block-actions button {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.block-actions button:hover { background: var(--surface); color: var(--text); }
.block-actions button.delete:hover { color: #ef4444; }
.block-body { padding: 14px; }
.block-heading-input {
  font-family: 'Playfair Display', serif; font-size: 24px; color: var(--text);
  font-weight: 700; border: none; background: transparent; width: 100%; outline: none;
}
.block-text {
  color: var(--text-secondary); font-size: 14px; line-height: 1.8;
  border: none; background: transparent; width: 100%; resize: none; min-height: 60px;
  outline: none; font-family: inherit;
}
.image-upload-zone { position: relative; cursor: pointer; }
.image-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.upload-placeholder {
  padding: 32px 20px; text-align: center; border: 2px dashed var(--border);
  border-radius: var(--radius-xs); color: var(--text-muted); font-size: 13px;
  transition: all 0.2s;
}
.upload-placeholder:hover { border-color: var(--primary); }
.image-thumb { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-xs); }
.caption-input {
  width: 100%; padding: 10px 14px; border: none; margin-top: 8px;
  background: var(--surface-3); color: var(--text-muted); border-radius: var(--radius-xs);
  font-size: 12px; font-style: italic; font-family: inherit; outline: none;
}
.block-quote-inner {
  border-left: 3px solid; border-image: var(--gradient-main) 1;
  padding: 12px 16px; background: rgba(255,107,91,0.04);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.block-quote-inner textarea {
  width: 100%; border: none; background: transparent; color: var(--text-secondary);
  font-size: 14px; font-style: italic; font-family: inherit; resize: none; min-height: 40px; outline: none;
}
.block-callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--radius-xs); background: rgba(251,146,60,0.06); border: 1px solid rgba(251,146,60,0.15);
}
.block-callout .callout-emoji { font-size: 22px; cursor: pointer; flex-shrink: 0; }
.block-callout textarea {
  flex: 1; border: none; background: transparent; color: var(--text-secondary);
  font-size: 13px; font-family: inherit; resize: none; min-height: 32px; outline: none;
}
.block-divider-line {
  height: 2px; margin: 8px 0;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--accent-pink), var(--border), transparent);
}
.block-link-row { display: flex; gap: 10px; }
.block-link-row input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--surface-3);
  color: var(--text); font-size: 13px; font-family: inherit; outline: none;
}
.block-link-row input:focus { border-color: var(--primary); }
.add-block-bar {
  display: flex; gap: 6px; padding: 12px; border-top: 1px solid var(--border);
  background: var(--surface-2); flex-wrap: wrap; justify-content: center;
}
.add-block-btn {
  padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); font-size: 11px;
  font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.add-block-btn:hover { border-color: var(--primary); color: var(--primary-bright); transform: translateY(-2px); }

/* ========== BENTO FEATURES ========== */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 760px; margin: 40px auto 0; padding: 0 24px;
}
.bento-card {
  padding: 22px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: var(--surface);
  text-align: center; transition: all 0.35s;
}
.bento-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.bento-card .icon { font-size: 28px; margin-bottom: 8px; }
.bento-card .bento-title { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.bento-card h3 { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.bento-card p { font-size: 11px; color: var(--text-muted); }

/* ========== CREATED PAGE ========== */
.created-page { text-align: center; padding: 60px 24px; }
.created-emoji { font-size: 72px; margin-bottom: 12px; }
.created-page h2 { font-family: 'DM Sans', sans-serif; font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.created-page .sub { color: var(--text-muted); font-size: 15px; margin-bottom: 36px; }
.link-glass {
  max-width: 600px; margin: 0 auto 36px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px;
}
.link-glass .url {
  font-family: 'Outfit', monospace; font-size: 20px; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px; word-break: break-all;
}
.link-glass .copy-row { display: flex; gap: 8px; }
.link-glass .copy-input {
  flex: 1; padding: 12px 14px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--primary-bright); font-family: monospace; font-weight: 600;
}
.link-glass .copy-btn {
  padding: 12px 20px; border-radius: var(--radius-xs); border: none;
  background: var(--gradient-main); color: white; font-weight: 700; cursor: pointer;
}
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.share-pill {
  padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; color: var(--text-secondary); transition: all 0.25s;
}
.share-pill:hover { transform: translateY(-3px); }
.share-pill.wa { color: #25d366; border-color: rgba(37,211,102,0.3); }
.share-pill.fb { color: #1877f2; border-color: rgba(24,119,242,0.3); }
.share-pill.ig { color: #e4405f; border-color: rgba(228,64,95,0.3); }
.share-pill.tw { color: var(--accent-cyan); border-color: rgba(34,211,238,0.3); }
.share-pill.tg { color: #60a5fa; border-color: rgba(96,165,250,0.3); }
.info-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.info-chip {
  padding: 10px 18px; border-radius: 30px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 12px;
  display: flex; align-items: center; gap: 6px; color: var(--text-secondary);
}
.info-chip .val { font-weight: 700; color: var(--primary-bright); }

/* ========== COUNTDOWN ========== */
.countdown-page { text-align: center; padding: 40px 24px; }
.teaser-card {
  max-width: 700px; margin: 0 auto 36px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); background: var(--surface);
}
.teaser-top {
  padding: 18px 24px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.teaser-avatar {
  width: 42px; height: 42px; border-radius: 14px; background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px; font-family: 'DM Sans', sans-serif;
}
.teaser-info .name { font-weight: 700; font-size: 14px; }
.teaser-info .date { font-size: 11px; color: var(--text-muted); }
.teaser-content { padding: 28px 24px; text-align: left; }
.teaser-content h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 8px; }
.teaser-content p { color: var(--text-secondary); font-size: 14px; }
.teaser-locked { padding: 0 24px 24px; position: relative; min-height: 120px; }
.locked-blur {
  filter: blur(8px); user-select: none; pointer-events: none;
  font-size: 14px; color: var(--text-secondary); line-height: 1.8;
  overflow: hidden; max-height: 140px;
}
.locked-badge-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gate-intro {
  text-align: center; font-size: 17px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 20px;
}
.locked-badge {
  padding: 13px 28px; border-radius: 50px; background: var(--locked-bg);
  backdrop-filter: blur(24px); border: 1.5px solid var(--primary);
  color: var(--primary-bright); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 0 40px var(--primary-glow); font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.locked-badge.gate-btn {
  padding: 16px 36px; font-size: 15px; cursor: pointer;
  background: var(--gradient-main); color: white; border: none;
  box-shadow: 0 6px 24px var(--primary-glow);
  transition: all 0.3s;
}
.locked-badge.gate-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 36px var(--primary-glow);
}
.timer-section { margin: 40px auto; max-width: 520px; }
.timer-label {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px;
}
.timer-grid { display: flex; justify-content: center; gap: 12px; }
.timer-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 22px 18px; min-width: 88px;
  backdrop-filter: blur(14px); transition: all 0.3s;
}
.timer-card .num {
  font-family: 'DM Sans', sans-serif; font-size: 44px; font-weight: 900;
  background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.timer-card .unit { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; font-weight: 700; }
.progress-wrap { max-width: 520px; margin: 24px auto; }
.progress-track { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 2px; background: var(--gradient-main); position: relative;
}

/* ========== REVEAL ========== */
.reveal-page { padding: 40px 24px; text-align: center; }
.reveal-title {
  font-family: 'DM Sans', sans-serif; font-size: 26px; font-weight: 800;
  margin-bottom: 24px; color: var(--text);
}
.reveal-head { text-align: center; margin-bottom: 28px; }
.reveal-head .emoji { font-size: 56px; margin-bottom: 8px; }
.reveal-head h2 {
  font-family: 'DM Sans', sans-serif; font-size: 28px; font-weight: 900;
  background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.reveal-head .sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.expiry-alert {
  max-width: 760px; margin: 0 auto 24px; padding: 14px 20px; border-radius: var(--radius-sm);
  background: rgba(251,146,60,0.08); border: 1px solid rgba(251,146,60,0.2);
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accent-orange);
}
.content-page {
  max-width: 760px; margin: 0 auto 36px; border-radius: var(--radius);
  overflow: hidden; border: 1.5px solid var(--border); background: var(--surface);
  backdrop-filter: blur(24px); box-shadow: var(--shadow-glow);
}
.content-top {
  padding: 20px 28px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.content-author { display: flex; align-items: center; gap: 12px; }
.content-author .av {
  width: 44px; height: 44px; border-radius: 14px; background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px; font-family: 'DM Sans', sans-serif;
}
.content-author .meta .name { font-weight: 700; font-size: 15px; }
.content-author .meta .date { font-size: 11px; color: var(--text-muted); }
.badge-expiry { padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-expiry.single { background: rgba(244,114,182,0.1); color: var(--accent-pink); border: 1px solid rgba(244,114,182,0.2); }
.badge-expiry.timed { background: rgba(251,146,60,0.1); color: var(--accent-orange); border: 1px solid rgba(251,146,60,0.2); }
.content-body { padding: 36px 28px; text-align: left; }

/* Rendered blocks */
.rendered-block { margin-bottom: 20px; }
.rendered-block:last-child { margin-bottom: 0; }
.r-heading { font-family: 'Playfair Display', serif; font-size: 28px; line-height: 1.3; color: var(--text); }
.r-text { color: var(--text-secondary); font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.r-image { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.r-image img { width: 100%; height: auto; display: block; }
.r-image .r-caption { padding: 10px 14px; font-size: 12px; color: var(--text-muted); font-style: italic; text-align: center; background: var(--surface-2); }
.r-quote {
  padding: 20px 24px; border-left: 3px solid; border-image: var(--gradient-main) 1;
  background: rgba(255,107,91,0.04); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-style: italic; color: var(--text-secondary); font-size: 15px; line-height: 1.7;
}
.r-divider { height: 2px; margin: 8px 0; background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--accent-pink), var(--border), transparent); }
.r-callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px;
  border-radius: var(--radius-sm); background: rgba(251,146,60,0.06);
  border: 1px solid rgba(251,146,60,0.12); font-size: 14px; color: var(--text-secondary);
}
.r-callout-emoji { font-size: 22px; flex-shrink: 0; }
.r-action-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 34px; border-radius: 50px; background: var(--gradient-main);
  color: white; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 30px var(--primary-glow); transition: all 0.35s;
  font-family: 'DM Sans', sans-serif;
}
.r-action-link:hover { transform: translateY(-3px); }

/* ========== EXPIRED ========== */
.expired-page { text-align: center; padding: 120px 24px; }
.expired-page .icon { font-size: 72px; margin-bottom: 16px; }
.expired-page h2 { font-family: 'DM Sans', sans-serif; font-size: 30px; font-weight: 900; margin-bottom: 8px; }
.expired-page p { color: var(--text-muted); font-size: 15px; max-width: 420px; margin: 0 auto 36px; }

/* ========== AD ZONES ========== */
.ad-wrap { padding: 14px 28px; text-align: center; max-width: 760px; margin: 0 auto; }
.ad-zone {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); text-align: center; color: var(--text-muted);
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center;
}
.ad-zone.leaderboard { height: 90px; }
.ad-zone.rectangle { height: 250px; max-width: 336px; margin: 0 auto; }

/* ========== FOOTER ========== */
.footer {
  padding: 24px; text-align: center; color: var(--text-muted); font-size: 11px;
  border-top: 1px solid var(--border); margin-top: 40px;
}
.footer a { color: var(--text-secondary); text-decoration: none; margin: 0 12px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .hero { padding: 40px 16px 24px; }
  .hero h1 { font-size: 28px; }
  .create-section { padding: 0 16px 32px; }
  .form-card { padding: 20px; }
  .option-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .option-grid.cols-2 { grid-template-columns: 1fr; }
  .date-row { grid-template-columns: 1fr; }
  .date-row .form-group { min-width: 0; overflow: hidden; }
  .timer-card { min-width: 68px; padding: 14px 10px; }
  .timer-card .num { font-size: 32px; }
  .bento { grid-template-columns: 1fr; }
  .content-body { padding: 24px 20px; }
  .r-heading { font-size: 22px; }
  .mode-selector { grid-template-columns: 1fr; }
  .block-link-row { flex-direction: column; }
  .site-header { padding: 12px 16px; }
  .ad-wrap { padding: 10px 16px; }
  .legal-page { padding: 32px 16px; }
}

/* ========== LEGAL PAGE ========== */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-page h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
.legal-page p, .legal-page li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-page li { margin-bottom: 4px; }

/* ========== REPORT BUTTON ========== */
.report-link {
  text-align: center;
  margin: 24px 0 8px;
}
.btn-report {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-report:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .cookie-actions { width: 100%; justify-content: center; }
}

/* How it works */
.howto { max-width:900px; margin:60px auto; padding:0 20px; text-align:center; color:var(--text); }
.howto h2 { font-family:'Playfair Display',serif; font-size:28px; margin-bottom:40px; color:var(--text); }
.howto-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.howto-step { text-align:center; }
.howto-num { width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,#dc6843,#e09b3d); color:#fff; font-weight:700; font-size:20px; display:inline-flex; align-items:center; justify-content:center; margin-bottom:16px; }
.howto-step h3 { font-size:18px; margin-bottom:8px; color:var(--text); }
.howto-step p { font-size:14px; color:var(--text-secondary); line-height:1.5; }

/* Use cases */
.usecases { max-width:900px; margin:60px auto; padding:0 20px; text-align:center; }
.usecases h2 { font-family:'Playfair Display',serif; font-size:28px; margin-bottom:40px; color:var(--text); }
.usecases-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.usecase-card { background:var(--surface); border:2px solid var(--border); border-radius:16px; padding:28px 20px; text-align:left; color:var(--text); }
.usecase-icon { font-size:28px; margin-bottom:12px; }
.usecase-card h3 { font-size:16px; margin-bottom:8px; color:var(--text); }
.usecase-card p { font-size:14px; color:var(--text-secondary); line-height:1.5; }

/* FAQ */
.faq { max-width:700px; margin:60px auto; padding:0 20px; }
.faq h2 { font-family:'Playfair Display',serif; font-size:28px; margin-bottom:32px; text-align:center; color:var(--text); }
.faq-list { display:flex; flex-direction:column; gap:12px; }
.faq-item { background:var(--surface); border:2px solid var(--border); border-radius:12px; overflow:hidden; }
.faq-item summary { padding:16px 20px; cursor:pointer; font-weight:600; font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center; color:var(--text); }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; font-size:20px; font-weight:400; opacity:0.5; transition:transform 0.2s; }
.faq-item[open] summary::after { content:'-'; }
.faq-item p { padding:0 20px 16px; font-size:14px; color:var(--text-secondary); line-height:1.6; margin:0; }

.gate-action { margin: 36px 0; display: flex; justify-content: center; }
.gate-action .gate-btn { display: inline-flex; }

/* CTA create (on gate/countdown pages) */
.cta-create { text-align:center; margin:32px 0; }
.cta-create p { margin-bottom:12px; font-size:15px; }

/* Footer tagline */
.footer-tagline { font-size:13px; opacity:0.6; margin:8px 0 4px; }
.footer-links { margin-bottom:8px; }
.footer-links a { margin:0 8px; }

.optional { font-weight: 400; color: var(--text-muted); font-size: 13px; }

/* ========== CODE MODE ========== */
.code-textarea {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.6; tab-size: 2;
  resize: vertical; min-height: 200px;
  background: var(--bg); color: var(--text);
}
.code-reveal {
  max-width: 760px; margin: 0 auto 36px; border-radius: var(--radius);
  overflow: hidden; border: 1.5px solid var(--border); background: var(--surface);
  text-align: left;
}
.code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.code-lang-badge {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px;
}
.code-copy-btn {
  padding: 5px 14px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.code-copy-btn:hover { background: var(--surface-3); }
.code-copy-btn.copied { background: rgba(166,227,161,0.2); color: #16a34a; border-color: rgba(166,227,161,0.3); }
.code-block {
  margin: 0; padding: 20px; background: var(--surface-2); overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.7; text-align: left;
}
.code-block code { background: none; padding: 0; color: var(--text); }
.code-block code.hljs { background: transparent; padding: 0; }

/* Responsive for new sections */
@media (max-width:640px) {
  .howto-grid { grid-template-columns:1fr; gap:24px; }
  .usecases-grid { grid-template-columns:1fr; }
}
