:root {
    --bg: #090d16;
    --bg2: #0f172a;
    --card: #1e293b;
    --border: #334155;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent2: #60a5fa;
    --discord: #5865f2;
    --twitter: #1d9bf0;
    --google: #4285f4;
    --facebook: #1877f2;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* Navbar */
.navbar { background: rgba(15,23,42,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 22px; }
.logo-text { font-size: 18px; font-weight: 800; }
.accent { color: var(--accent2); }
.badge { font-size: 11px; background: rgba(59,130,246,.2); color: var(--accent2); padding: 2px 8px; border-radius: 999px; font-weight: 600; border: 1px solid rgba(59,130,246,.35); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.privacy-chip { font-size: 12px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #34d399; padding: 4px 10px; border-radius: 999px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 13px; }
.nav-link:hover { color: var(--text); }

/* Container */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero { text-align: center; padding: 36px 0 20px; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.gradient-text { background: linear-gradient(135deg, #60a5fa, #38bdf8, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--muted); font-size: 15px; max-width: 720px; margin: 0 auto; }

/* Workspace Grid */
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
@media (max-width: 960px) { .workspace-grid { grid-template-columns: 1fr; } }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.panel-title { font-size: 15px; font-weight: 700; color: var(--text); }

/* Form Controls */
.form-group { margin-bottom: 14px; }
.form-group label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.char-count { font-family: var(--mono); font-size: 11px; color: var(--accent2); }
.char-count.warn { color: #f59e0b; }
.char-count.err { color: #f87171; }
.form-input { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 13px; outline: none; transition: border-color .2s; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 13px; outline: none; resize: vertical; line-height: 1.5; font-family: var(--sans); }
.input-hint { font-size: 11px; color: #64748b; margin-top: 4px; display: block; }

.image-input-row { display: flex; gap: 8px; }
.btn-upload-file { background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.btn-upload-file:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { background: var(--bg2); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; transition: all .2s; }
.btn-sm:hover { color: var(--text); border-color: var(--accent); }

/* Code Export Card */
.code-export-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.code-header { display: flex; justify-content: space-between; align-items: center; background: rgba(15,23,42,.7); padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.btn-copy { background: #0284c7; border: none; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; cursor: pointer; transition: background .2s; }
.btn-copy:hover { background: #0369a1; }
.code-export-card pre { margin: 0; padding: 12px; max-height: 150px; overflow-y: auto; }
.code-export-card code { font-family: var(--mono); font-size: 11px; color: #38bdf8; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }

/* Platform Tabs */
.platform-tabs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.plat-tab { background: none; border: none; color: var(--muted); font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 5px; cursor: pointer; transition: all .2s; }
.plat-tab.active { background: var(--accent); color: #fff; }
.plat-tab:not(.active):hover { color: var(--text); }

/* Preview Box Views */
.preview-box { background: #0f172a; border-radius: 10px; border: 1px solid var(--border); padding: 16px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
.preview-box.hidden { display: none; }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; background: #1e293b; }

/* 1. Discord Embed Style */
.discord-chat-bg { background: #313338; border-radius: 8px; padding: 16px; }
.discord-bot-row { display: flex; gap: 12px; align-items: flex-start; }
.discord-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--discord); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.discord-msg-body { flex: 1; }
.discord-author { font-size: 14px; font-weight: 600; color: #f2f3f5; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.discord-tag { background: #5865f2; color: #fff; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; }
.discord-time { font-size: 11px; color: #949ba4; font-weight: 400; }
.discord-embed { background: #2b2d31; border-left: 4px solid var(--discord); border-radius: 4px; padding: 12px 16px; max-width: 480px; }
.discord-embed-site { font-size: 11px; color: #b5bac1; margin-bottom: 4px; }
.discord-embed-title { font-size: 15px; font-weight: 700; color: #00a8fc; margin-bottom: 6px; line-height: 1.3; }
.discord-embed-desc { font-size: 13px; color: #dbdee1; line-height: 1.4; margin-bottom: 10px; }
.discord-embed-img-wrap { width: 100%; height: 210px; border-radius: 6px; overflow: hidden; background: #1e1f22; }

/* 2. Twitter / X Card Style */
.twitter-card-container { background: #000; border: 1px solid #2f3336; border-radius: 14px; overflow: hidden; max-width: 480px; margin: 0 auto; width: 100%; }
.twitter-img-wrap { width: 100%; height: 240px; overflow: hidden; background: #16181c; }
.twitter-card-text { padding: 12px 14px; }
.twitter-domain { font-size: 12px; color: #71767b; margin-bottom: 3px; }
.twitter-title { font-size: 15px; font-weight: 700; color: #e7e9ea; line-height: 1.3; margin-bottom: 4px; }
.twitter-desc { font-size: 13px; color: #71767b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 3. Google SERP Style */
.google-serp-container { background: #202124; border: 1px solid #3c4043; border-radius: 8px; padding: 18px; max-width: 520px; margin: 0 auto; width: 100%; }
.google-site-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.google-favicon { font-size: 16px; }
.google-site-name { font-size: 13px; color: #dadce0; font-weight: 500; }
.google-url-line { font-size: 11px; color: #bdc1c6; }
.google-title { font-size: 18px; color: #8ab4f8; font-weight: 500; line-height: 1.3; margin-bottom: 6px; cursor: pointer; }
.google-desc { font-size: 13px; color: #bdc1c6; line-height: 1.5; }

/* 4. Facebook Feed Card Style */
.fb-card-container { background: #242526; border: 1px solid #3a3b3c; border-radius: 8px; overflow: hidden; max-width: 480px; margin: 0 auto; width: 100%; }
.fb-img-wrap { width: 100%; height: 240px; overflow: hidden; background: #18191a; }
.fb-text-wrap { padding: 10px 14px; background: #242526; }
.fb-domain { font-size: 11px; text-transform: uppercase; color: #b0b3b8; margin-bottom: 3px; font-weight: 600; }
.fb-title { font-size: 15px; font-weight: 700; color: #e4e6eb; line-height: 1.3; margin-bottom: 3px; }
.fb-desc { font-size: 12px; color: #b0b3b8; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Tool Suite Links */
.tool-matrix { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 24px; text-align: center; }
.matrix-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 14px; }
.matrix-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.matrix-badge { background: var(--bg2); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 12px; padding: 7px 14px; border-radius: 8px; transition: all .2s; display: inline-flex; align-items: center; gap: 5px; }
.matrix-badge:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-1px); }
.matrix-badge.active { border-color: var(--accent); background: rgba(59,130,246,.12); }

/* Ad */
.ad-wrapper { margin: 20px 0; text-align: center; }
.ad-container { display: inline-block; min-height: 90px; background: rgba(15,23,42,.6); border: 1px solid var(--border); border-radius: 8px; padding: 4px; max-width: 100%; overflow-x: auto; }
.ad-caption { font-size: 11px; color: #475569; margin-top: 6px; }

/* Donation */
.donation-bar { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); border-radius: 10px; margin-bottom: 30px; font-size: 13px; }
.amazon-link { color: #fbbf24; text-decoration: none; font-weight: 700; }
.amazon-link:hover { text-decoration: underline; }
.btn-copy-email { background: none; border: 1px dashed rgba(251,191,36,.4); color: #fbbf24; font-size: 12px; font-family: var(--mono); padding: 3px 10px; border-radius: 5px; cursor: pointer; }
.btn-copy-email:hover { background: rgba(251,191,36,.1); }

/* Footer */
.footer { text-align: center; padding: 24px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: #10b981; color: #064e3b; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; transform: translateY(10px); transition: all .2s; pointer-events: none; z-index: 9999; }
.toast.show { opacity: 1; transform: translateY(0); }
