/* secreti.site — site, sign-up and dashboard. Deep plum night, crimson / coral / blush from the logo. */
:root {
    --bg: #12040c;
    --bg2: #1b0712;
    --panel: rgba(255, 255, 255, .045);
    --panel2: rgba(255, 255, 255, .075);
    --line: rgba(255, 214, 228, .12);
    --text: #fcf1f5;
    --muted: #cfa9bb;
    --pink: #ff4d7d;
    --rose: #e8195a;
    --coral: #ff7a6b;
    --plum: #6b0f3a;
    --blush: #ffd1dc;
    --gold: #ffd28a;
    --ok: #3ddc97;
    --err: #ff6b6b;
    --grad: linear-gradient(135deg, #ff7a6b 0%, #ff4d7d 35%, #e8195a 65%, #a3104f 100%);
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --font: 'Nunito', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Fredoka', 'Cairo', 'Nunito', sans-serif;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
[dir="rtl"] body { --font: 'Cairo', 'Nunito', system-ui, sans-serif; --display: 'Cairo', 'Fredoka', sans-serif; }
a { color: var(--blush); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(520px, 100% - 32px); margin: 40px auto 70px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(18, 4, 12, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 34px; width: auto; display: block; }
.top nav { display: flex; gap: 22px; margin-inline-start: 12px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: #fff; }
.top .right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.lang:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 860px) { .top nav { display: none; } }
@media (max-width: 520px) { .top .signin { display: none; } .logo img { height: 28px; } .top .wrap { gap: 10px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 14px; border: 1px solid transparent; font: 800 15px/1.1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(232, 25, 90, .38); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(232, 25, 90, .5); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: var(--panel2); }
.btn-light { background: #fff; color: #5a0f2e; }
.btn-light:hover { color: #5a0f2e; transform: translateY(-2px); }
.btn-danger { background: rgba(255, 107, 107, .12); color: #ffb3b3; border-color: rgba(255, 107, 107, .35); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 11px; }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 17px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.glow { position: relative; isolation: isolate; }
.glow::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--grad); filter: blur(16px); opacity: .55; z-index: -1; animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .9; transform: scale(1.03); } }

/* cards & forms */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 77, 125, .12); border: 1px solid rgba(255, 77, 125, .3); color: var(--blush); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 600; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); color: var(--text); font: 600 16px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 77, 125, .18); }
input::placeholder, textarea::placeholder { color: rgba(207, 169, 187, .55); }
input[type="file"] { padding: 10px; min-height: 0; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--rose); }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); cursor: pointer; }
.check input { flex-shrink: 0; margin-top: 2px; }
.check b { display: block; }
.alert { padding: 13px 16px; border-radius: 14px; margin: 0 0 16px; font-weight: 700; font-size: 15px; }
.alert ul { margin: 0; padding-inline-start: 18px; }
.alert-ok { background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .35); color: #b5f5d8; }
.alert-err { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: #ffc9c9; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--panel2); border: 1px solid var(--line); }
.badge-ok { background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .35); color: #b5f5d8; }
.badge-wait { background: rgba(255, 210, 138, .12); border-color: rgba(255, 210, 138, .35); color: #ffe2b0; }
.badge-err { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); color: #ffc9c9; }
.inline { display: inline; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price-was { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 700; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot a { color: var(--blush); }

/* ---------- home ---------- */
.fx-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.home main, .home .foot { position: relative; z-index: 1; }
.aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; background:
    radial-gradient(40% 35% at 20% 15%, rgba(232, 25, 90, .28), transparent 70%),
    radial-gradient(35% 30% at 85% 25%, rgba(255, 122, 107, .18), transparent 70%),
    radial-gradient(45% 40% at 60% 90%, rgba(107, 15, 58, .45), transparent 70%);
    animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, -2%, 0) rotate(4deg) scale(1.05); } }
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 18px 0 18px; }
.hero h1 .line2 { display: block; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: #f3d7e2; max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 700; font-size: 14px; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; }
.typed::after { content: "|"; margin-inline-start: 2px; color: var(--pink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 30px; } .hero { padding-top: 34px; } .hero .phone-wrap { order: 2; } }

/* phone mock-up: lock → password → envelope → letter, on a loop */
.phone-wrap { position: relative; display: flex; justify-content: center; perspective: 1200px; }
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #3a1027, #12040c); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .08), 0 0 80px rgba(232, 25, 90, .25); transform: rotateY(-12deg) rotateX(6deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-12px); } }
.phone .screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #ff4d7d 0%, #8e1150 45%, #2a0618 100%); }
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #0b0207; z-index: 5; }
.phone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px; text-align: center; color: #fff; }
.scene-lock { animation: sceneLock 12s infinite; }
.scene-letter { animation: sceneLetter 12s infinite; opacity: 0; }
@keyframes sceneLock { 0%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes sceneLetter { 0%, 50% { opacity: 0; transform: translateY(30px); } 56%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.lockmark { width: 92px; height: 92px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); animation: wiggle 12s infinite; }
@keyframes wiggle { 0%, 36% { transform: none; } 38% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 42% { transform: rotate(-4deg) scale(1.08); } 46% { transform: scale(1.25); opacity: 1; } 50% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
.scene .for { font: 700 15px var(--display); margin: 14px 0 4px; opacity: .9; }
.scene .who { font: 700 26px 'Dancing Script', cursive; margin: 0 0 16px; }
.dots { display: flex; gap: 10px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.dots i:nth-child(1) { animation: dot 12s infinite; }
.dots i:nth-child(2) { animation: dot 12s infinite .5s; }
.dots i:nth-child(3) { animation: dot 12s infinite 1s; }
.dots i:nth-child(4) { animation: dot 12s infinite 1.5s; }
@keyframes dot { 0%, 12% { background: rgba(255, 255, 255, .3); } 16%, 44% { background: #fff; box-shadow: 0 0 10px #fff; } 50%, 100% { background: rgba(255, 255, 255, .3); } }
.mini-letter { width: 100%; background: #fff5f7; color: #5a0f2e; border-radius: 16px; padding: 18px 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); text-align: start; }
.mini-letter .t { font: 700 24px 'Dancing Script', cursive; color: #e8195a; margin: 0 0 8px; text-align: center; }
.mini-letter .ph { height: 92px; border-radius: 10px; margin: 0 0 10px; background: url('sunset-mini.jpg') center / cover, linear-gradient(180deg, #2a0b3d, #b8325f 55%, #ff8a5b); }
.mini-letter .l { height: 7px; border-radius: 4px; background: rgba(90, 15, 46, .16); margin: 7px 0; }
.mini-letter .l.s { width: 70%; }
.mini-letter .sig { font: 700 18px 'Dancing Script', cursive; text-align: end; margin-top: 8px; }
.floaty { position: absolute; font-size: 30px; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.floaty.a { top: 6%; inset-inline-start: 2%; }
.floaty.b { bottom: 14%; inset-inline-start: -2%; animation-delay: -2s; font-size: 36px; }
.floaty.c { top: 18%; inset-inline-end: 0; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(8deg); } }

.section { padding: 70px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 18px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* occasion marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
[dir="rtl"] .marquee .track { animation-name: slideRtl; }
.marquee span { padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 800; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes slideRtl { to { transform: translateX(50%); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 77, 125, .14); border: 1px solid rgba(255, 77, 125, .3); margin-bottom: 14px; }
.step .n { position: absolute; top: 18px; inset-inline-end: 20px; font: 700 40px var(--display); color: rgba(255, 255, 255, .07); }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* theme gallery */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.tcard { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--bg); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.tcard:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); color: #fff; }
.tcard .paper { position: absolute; inset: 18% 14% auto; height: 40%; border-radius: 12px; background: var(--paper); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transform: rotate(-4deg); transition: transform .35s; display: grid; place-items: center; }
.tcard:hover .paper { transform: rotate(2deg) translateY(-6px); }
.tcard .paper b { font: 700 19px var(--font-display); color: var(--accent); text-align: center; padding: 0 8px; line-height: 1.1; }
.tcard .em { font-size: 28px; }
.tcard .nm { font: 700 17px var(--display); text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(255, 77, 125, .4); }
.feature .ico { font-size: 30px; margin-bottom: 10px; display: block; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* gift ideas */
.ideas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.idea { padding: 26px 20px; border-radius: var(--radius); text-align: center; background: linear-gradient(160deg, rgba(255, 77, 125, .14), rgba(107, 15, 58, .18)); border: 1px solid rgba(255, 77, 125, .22); }
.idea .em { font-size: 40px; display: block; margin-bottom: 10px; animation: bob 5s ease-in-out infinite; }
.idea:nth-child(2) .em { animation-delay: -1.2s; }
.idea:nth-child(3) .em { animation-delay: -2.4s; }
.idea:nth-child(4) .em { animation-delay: -3.6s; }
.idea p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .ideas { grid-template-columns: 1fr 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; max-width: 960px; margin: 0 auto; }
.plan { position: relative; padding: 32px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 77, 125, .16), rgba(107, 15, 58, .25)); border: 1px solid rgba(255, 77, 125, .4); box-shadow: 0 30px 70px rgba(232, 25, 90, .2); overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255, 122, 107, .35), transparent 70%); pointer-events: none; }
.plan .tag { position: absolute; top: 20px; inset-inline-end: 20px; }
.plan .amount { font: 700 64px/1 var(--display); margin: 12px 0 4px; }
.plan .amount small { font-size: 18px; color: var(--muted); font-weight: 700; }
.plan ul, .addons ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.plan li, .addons li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.plan li::before { content: "💗"; flex-shrink: 0; }
.addons { padding: 28px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); }
.addons li { justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.addons li b { font: 700 22px var(--display); color: var(--blush); }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 22px var(--display); color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

.final { text-align: center; padding: 70px 24px; border-radius: 32px; background: radial-gradient(80% 120% at 50% 0%, rgba(255, 77, 125, .35), rgba(107, 15, 58, .3) 60%, rgba(18, 4, 12, .2)); border: 1px solid rgba(255, 77, 125, .35); overflow: hidden; position: relative; }
.final .big-heart { font-size: 64px; display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

/* ---------- dashboard ---------- */
.dash { padding: 30px 0 60px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.scard { border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.scard .cover { position: relative; height: 150px; background: var(--bg); display: grid; place-items: center; color: #fff; text-align: center; padding: 16px; }
.scard .cover .em { font-size: 34px; }
.scard .cover b { display: block; font: 700 22px var(--font-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.scard .body { padding: 18px; display: grid; gap: 12px; flex: 1; }
.scard .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { min-height: 42px; font-size: 14px; direction: ltr; }
.newcard { display: grid; place-items: center; text-align: center; min-height: 280px; border: 2px dashed rgba(255, 77, 125, .35); border-radius: 22px; padding: 24px; text-decoration: none; color: var(--text); background: rgba(255, 77, 125, .04); transition: background .2s, transform .2s; }
.newcard:hover { background: rgba(255, 77, 125, .1); transform: translateY(-3px); color: #fff; }
.newcard .plus { font-size: 46px; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.editor .preview { position: sticky; top: 86px; }
@media (max-width: 980px) { .editor { grid-template-columns: 1fr; } .editor .preview { position: static; order: -1; } }
.stepbox { margin-bottom: 18px; }
.stepbox h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stepbox h2 .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); font-size: 15px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.picker label { position: relative; cursor: pointer; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; color: #fff; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.picker label:hover { transform: translateY(-2px); }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker .em { font-size: 26px; position: absolute; top: 10px; inset-inline-start: 10px; }
.picker .nm { font-weight: 800; font-size: 13.5px; line-height: 1.2; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.picker label:has(input:checked) { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 77, 125, .5); }
.picker label:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; }
.counter { text-align: end; }
.mock { position: relative; border-radius: 28px; overflow: hidden; min-height: 520px; background: var(--bg); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .1); }
.mock canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock .letter { position: relative; margin: 34px 22px; padding: 22px 20px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.mock .letter .to { font-family: var(--font-body); font-weight: 700; opacity: .7; font-size: 14px; margin: 0; }
.mock .letter .ttl { font-family: var(--font-display); color: var(--accent); font-size: 30px; font-weight: 700; line-height: 1.15; margin: 4px 0 12px; overflow-wrap: anywhere; }
.mock .letter img { width: 100%; border-radius: 12px; margin-bottom: 12px; transform: rotate(-1.5deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); border: 6px solid #fff; }
.mock .letter .msg { font-family: var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; max-height: 260px; overflow: hidden; margin: 0; }
.mock .letter .from { font-family: var(--font-display); font-size: 22px; text-align: end; margin: 12px 0 0; color: var(--accent); }
.edit-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 210, 138, .08); border: 1px solid rgba(255, 210, 138, .3); color: #ffe2b0; font-weight: 700; font-size: 14.5px; margin-bottom: 18px; }

/* share page */
.share { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .share { grid-template-columns: 1fr; } }
.qr { background: #fff; border-radius: 22px; padding: 18px; text-align: center; color: #5a0f2e; }
.qr img { width: 100%; max-width: 260px; image-rendering: pixelated; }
.stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.stat b { font: 700 22px var(--display); }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }

/* pay page */
.paybox { display: grid; gap: 14px; }
.payline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.payline .amt { font: 700 30px var(--display); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* admin */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.search { display: flex; gap: 8px; }
.search input { min-height: 42px; }
.pager { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
