/* ============ THEME VARIABLES ============ */
:root {
    --bg: #f5f7fa;
    --bg-alt: #eef2f7;
    --bg-card: #ffffff;
    --bg-dark: #1a2332;
    --text: #1a2332;
    --text-muted: #4a5f75;
    --text-light: #8fa3b5;
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #ecfdf5;
    --accent: #0d9488;
    --border: #dce8ec;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 4px 8px rgba(26, 35, 50, 0.1);
    --shadow-lg: 0 16px 32px rgba(26, 35, 50, 0.15);
    --gradient-1: #0d9488;
    --gradient-2: #ff6b6b;
    --surface: #ffffff;
    --surface-hover: #f0f8f9;
    --border-strong: #c1dde5;
    --ink: #1a2332;
    --ink-soft: #4a5f75;
    --muted: #8fa3b5;
    --accent-teal: #0d9488;
    --accent-teal-dark: #0f766e;
    --accent-teal-soft: #ecfdf5;
    --accent-coral: #ff6b6b;
    --accent-coral-dark: #ee5a52;
    --accent-coral-soft: #fff5f5;
    --accent-violet: #6366f1;
    --accent-violet-dark: #4f46e5;
    --accent-violet-soft: #f4f3ff;
    --accent-amber: #f59e0b;
    --accent-amber-dark: #d97706;
    --accent-amber-soft: #fffbeb;
    --accent-emerald: #059669;
    --accent-emerald-dark: #047857;
    --accent-emerald-soft: #ecfdf5;
    --accent-sky: #0284c7;
    --accent-sky-dark: #0369a1;
    --accent-sky-soft: #f0f9ff;
    --accent-rose: #e11d48;
    --accent-rose-dark: #be185d;
    --accent-rose-soft: #fff1f5;
    --accent-dark: #0f766e;
    --accent-soft: #ecfdf5;
    --accent-ring: rgba(13, 148, 136, 0.15);
    --shadow-xs: 0 2px 4px rgba(26, 35, 50, 0.08);
    --shadow-sm: 0 4px 8px rgba(26, 35, 50, 0.1);
    --shadow-md: 0 8px 24px rgba(26, 35, 50, 0.12);
    --radius-card: 14px;
    --radius-input: 10px;
    --radius-pill: 999px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============ BASE ============ */
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; letter-spacing: 0.3px; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.row { display: flex; width: 100%; flex-wrap: wrap; }

/* ============ LAYOUT ============ */
.page-layout { display: grid; grid-template-columns: 30% 70%; gap: 24px; align-items: start; grid-template-areas: "sidebar main"; }
.page-main { min-width: 0; grid-area: main; }
.page-sidebar { position: sticky; top: 88px; grid-area: sidebar; }
@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; grid-template-areas: "main" "sidebar"; }
    .page-sidebar { position: static; }
}



/* ============ NAVBAR ============ */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-xs); position: sticky; top: 0; z-index: 100; padding: 0 20px; }
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; height: 64px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--ink); flex-shrink: 0; font-family: 'Playfair Display', serif; }
.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-pill); transition: all 0.2s; font-family: 'Playfair Display', 'DM Sans', serif; }
.nav-links a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-lang-select select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 0.8rem; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ============ HERO ============ */
.hero { padding: 60px 0 40px; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; max-width: 700px; margin: 0 auto 16px; font-family: 'Playfair Display', serif; }
.gradient-text { background: linear-gradient(135deg, green, red); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ============ GENERATOR LAYOUT ============ */
.generator-layout { display: flex; flex-direction: column; gap: 20px; margin-top: 302px; text-align: left; }
.panel-header { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.panel-icon { font-size: 1.2rem; }
.panel-title { font-size: 1rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.panel-tabs { display: flex; gap: 4px; }
.panel-tab-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #00f1ff; color: #000; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.panel-tab-btn.active { background: #00f1ff; color: #000; border-color: blue; }
.panel-tab-btn .tab-icon { font-size: 1rem; }
.preview-badge { background: var(--bg-alt); color: var(--text-muted); font-size: 0.75rem; padding: 2px 8px; border-radius: 50px; margin-left: 4px; }
.panel-tab-btn.active .preview-badge { background: #00f1ff; color: #fff; }
.generator-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.generator-card-compact { padding: 16px; }
.generator-input-sticky { position: relative; }
.input-group { display: flex; flex-direction: column; gap: 12px; }
.input-wrapper { position: relative; }
.name-input { width: 100%; padding: 12px 16px; text-align: center; font-size: 1rem; border: 4px solid blue; border-radius: var(--radius-sm); background: #fff; color: #000; outline: none; transition: border-color 0.2s; }
.name-input:focus { border-color: var(--primary); }
.input-wrapper .char-counter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: var(--text-light); }
.input-actions { display: flex; gap: 8px; }
.btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border: none; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: #00f1ff; color: #000; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: rgb(22, 155, 207); }
.btn-secondary { background: #00f1ff; color: #000; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.preview-panel { min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-content-area { min-height: 200px; }
.panel-content-area .panel-view { padding-top: 4px; }
.panel-view { display: none; }
.panel-view.active { display: block; }
.preview-card--stacked { padding: 0; }
.preview-card-scroll { max-height: 500px; overflow-y: auto; }
.results-infinite-sentinel { height: 1px; }

/* ============ RESULTS / STYLE CARDS ============ */
.results-grid { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; }
.result-card, .style-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-xs); }
.style-card { display: flex; align-items: center; justify-content: center; padding: 16px 20px; overflow: hidden; gap: 12px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.result-card { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; text-align: center; position: relative; overflow: hidden; gap: 12px; transition: all var(--transition); }
.result-card:hover, .style-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.result-name { font-size: 1.05rem; font-weight: 600; word-break: break-all; color: var(--ink); letter-spacing: 0.3px; }
.style-card .style-text { flex: 1; font-size: 1.05rem; font-weight: 600; word-break: break-all; text-align: center; color: var(--ink); letter-spacing: 0.3px; }
.style-card .rock { font-size: 0rem; font-weight: 100; color: var(--text-muted); flex-shrink: 0; min-width: 0; }
.result-style-label { font-size: 0rem; color: var(--text-light); margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.result-actions { display: flex; gap: 6px; flex-shrink: 0; }
.copy-btn-text { font-size: 0.78rem; }
.result-actions .copy-btn, .style-card .copy-btn { flex-shrink: 0; padding: 8px 18px; background: linear-gradient(135deg, var(--primary), #5350ff); border: none; border-radius: 8px; color: #000; font-weight: 600; cursor: pointer; font-size: 0.82rem; transition: all 0.3s; box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25); }
.result-actions .copy-btn:hover, .style-card .copy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35); }
.result-card:nth-child(7n+1) { border-left: 4px solid var(--accent-teal); }
.result-card:nth-child(7n+2) { border-left: 4px solid blue; }
.result-card:nth-child(7n+3) { border-left: 4px solid blue; }
.result-card:nth-child(7n+4) { border-left: 4px solid blue; }
.result-card:nth-child(7n+5) { border-left: 4px solid blue; }
.result-card:nth-child(7n+6) { border-left: 4px solid blue; }
.result-card:nth-child(7n+7) { border-left: 4px solid blue; }

.styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.name-styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 8px; }
.style-copy { display: inline-block; margin-top: 8px; font-size: 0.8rem; font-weight: 700; color: #3b55e7; cursor: pointer; }
.category-h3 { margin: 26px 0 12px; font-size: 1.25rem; font-weight: 800; color: #0f1419; padding: 12px 18px; border-radius: 8px; background: linear-gradient(135deg, #f0f0ff 0%, #fff5f0 100%); border-left: 4px solid var(--primary); box-sizing: border-box; }
.extra-styles-section { margin-top: 20px; padding-top: 20px; border-top: 2px solid #e8e8f0; }
.extra-styles-section h4 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; padding: 8px 14px; border-radius: 8px; background: linear-gradient(135deg, #0f0fec, #0f0fec); border-left: 4px solid var(--accent); color: var(--text); display: inline-block; }

/* ============ CATEGORY NAV ============ */
.cat-nav { display: flex; gap: 0; padding: 0; overflow-x: auto; white-space: nowrap; background: var(--surface); border-bottom: 2px solid var(--border); box-shadow: var(--shadow-xs); scrollbar-width: none; position: sticky; top: 64px; z-index: 99; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; transition: background 0.08s, color 0.08s, border-color 0.08s; flex: 1; text-decoration: none; }
.cat-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.cat-nav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* ============ INPUT BAR ============ */
.input-bar { display: flex; position: sticky; top: 98px; z-index: 40; gap: 5px; align-items: center; padding: 10px; background: linear-gradient(var(--bg) 85%, transparent); }
.input-bar .wrap { width: 100%; position: relative; }
.input-bar textarea { width: 100%; height: 72px; padding: 18px 40px 10px 16px; border-radius: 8px; border: 8px solid blue; background: var(--surface); box-shadow: var(--shadow-md); font-family: 'DM Sans', var(--font); font-size: 1.1rem; color: #000; outline: none; text-align: center; resize: none; box-sizing: border-box; }
.input-bar textarea::placeholder { color: var(--muted); }
.input-bar:focus-within textarea { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.input-bar .char-counter { position: absolute; right: 44px; bottom: 10px; font-size: 9px; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.clear-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 14px; }
.clear-x:hover { color: var(--accent); background: var(--accent-soft); }

/* ============ SIZE BAR ============ */
.size-bar { display: flex; align-items: center; gap: 14px; justify-content: flex-end; padding: 10px 0; }
.size-bar span { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.size-bar input[type="range"] { width: 200px; height: 3px; background: #e8edee; border-radius: 9999px; outline: none; -webkit-appearance: none; cursor: pointer; }
.size-bar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--accent); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); }

/* ============ RANDOM CLOUD ============ */
.random-cloud { text-align: center; height: 120px; overflow: hidden; margin-top: 10px; }
.random-cloud ul { list-style: none; padding: 0; margin: 0; }
.random-cloud p { color: var(--ink-soft); font-size: 17px; padding: 5px; margin: 0 4px; cursor: pointer; transition: color 0.08s, transform 0.15s; }
.random-cloud p:hover { color: var(--accent); transform: scale(1.12); }

/* ============ FONT GRID ============ */
.font-grid { display: block; list-style: none; padding: 0; margin: 0; }
.font-grid h2 { margin: 20px 0 8px; padding-left: 2px; font-size: 1.2rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.font-grid li { display: flex; align-items: stretch; position: relative; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); border-left: 4px solid var(--accent-teal); background: var(--surface); box-shadow: var(--shadow-xs); transition: all var(--transition); }
.font-grid li:hover { border-color: rgba(0, 0, 0, 0.16); box-shadow: var(--shadow-lg); }
.font-grid li:nth-child(7n+2) { border-left-color: blue; }
.font-grid li:nth-child(7n+3) { border-left-color: blue; }
.font-grid li:nth-child(7n+4) { border-left-color: blue; }
.font-grid li:nth-child(7n+5) { border-left-color: blue; }
.font-grid li:nth-child(7n+6) { border-left-color: blue; }
.font-grid li:nth-child(7n+7) { border-left-color: blue; }
.font-grid li:nth-child(7n+1):hover { border-color: var(--accent-teal); background: linear-gradient(135deg, #fff, var(--accent-teal-soft)); }
.font-grid li:nth-child(7n+2):hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-coral-soft)); }
.font-grid li:nth-child(7n+3):hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-violet-soft)); }
.font-grid li:nth-child(7n+4):hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-amber-soft)); }
.font-grid li:nth-child(7n+5):hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-emerald-soft)); }
.font-grid li:nth-child(7n+6):hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-sky-soft)); }
.font-grid li:nth-child(7n+7):hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-rose-soft)); }
.font-grid li p { margin: 0; padding: 16px 14px 34px; text-align: center; color: #000; cursor: pointer; user-select: none; width: 100%; white-space: normal; word-break: break-word; background: transparent; border: none; line-height: 1.5; font-size: 17px; font-family: 'DM Sans', var(--font); box-sizing: border-box; }
.font-grid li p:hover { outline: none; background: transparent; }
.font-grid li .meta { position: absolute; bottom: 5px; left: 14px; display: flex; gap: 6px; flex-direction: row-reverse; user-select: none; z-index: 0; }
.font-grid li i { font-size: 9px; color: var(--muted); letter-spacing: 0.05em; font-style: normal; }
.font-grid li button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; width: 70px; font-size: 16px; color: #fff; background: #2328ff; border: none; border-left: 1px solid rgba(0, 0, 0, 0.06); cursor: pointer; }
.font-grid li button:hover { color: #fff; background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%); }

/* ============ LOAD MORE ============ */
.load-more { text-align: center; padding: 12px 0; }
.load-more button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 36px; border-radius: var(--radius-pill); background: var(--accent); color: #fff; border: none; font-size: 0.9rem; font-weight: 800; min-width: 200px; cursor: pointer; box-shadow: var(--shadow-md); transition: all 0.2s; }
.load-more button:hover { box-shadow: 0 12px 28px rgba(13, 148, 136, 0.35); transform: translateY(-3px); opacity: 0.92; }

/* ============ DECO OVERLAY ============ */
.deco-overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.92); display: flex; align-items: center; justify-content: center; z-index: 999; animation: fadeIn 0.14s ease; }
.deco-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.deco-box { background: #fff; width: 92%; max-width: 600px; max-height: 80vh; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(0, 0, 0, 0.10); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8); animation: popIn 0.2s ease; }
@keyframes popIn { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.deco-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0, 0, 0, 0.10); }
.deco-head h3 { font-size: 1.1rem; font-weight: 800; padding: 12px 16px; margin: 0; }
.deco-head button { background: none; border: none; color: #0f1419; font-size: 18px; padding: 8px; border-radius: 50%; cursor: pointer; width: 48px; height: 48px; margin-right: 8px; }
.deco-head button:hover { background: #f7f9f9; }
.deco-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.10); }
.deco-tabs button { padding: 6px 12px; border-radius: 9999px; border: 1px solid rgba(0, 0, 0, 0.10); background: transparent; color: #536471; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.deco-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.deco-tabs button:hover:not(.active) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.deco-list { padding: 8px; overflow-y: auto; list-style: none; flex: 1; margin: 0; }
.deco-list li { margin-bottom: 4px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.10); background: #f7f9f9; }
.deco-list li:hover { border-color: var(--accent); background: #fff; }
.deco-list li p { font-size: 1rem; color: #0f1419; border: none; background: transparent; text-align: center; padding: 10px 14px; cursor: pointer; margin: 0; }
.deco-list li p:hover { background: var(--accent-soft); }

/* ============ GALLERY (POST TEMPLATE + CHIPS) ============ */
.section { padding: 10px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; font-family: 'Playfair Display', serif; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
#gallery .leftcolumn { padding: 15px; width: 95%; min-height: 400px; margin-top: 15px; border-radius: 15px; background-color: #fff; box-shadow: 2px 2px 12px 1px #d8d8d8; }
#gallery .leftcolumn h3, #gallery .leftcolumn h4 { border-bottom: 3px solid #04da39; margin-top: 5px; margin-bottom: 5px; }
#gallery .leftcolumn p { margin-top: 5px; margin-bottom: 5px; padding: 5px; }
#gallery .leftcolumn a { color: #000; }
#gallery .inlinedata { display: none; }
#gallery .thish2 { margin: -15px -15px 20px; padding: 12px 8px; color: #fff; font-size: 20px; font-weight: 800; text-align: center; border-radius: 12px 12px 0 0; background: linear-gradient(135deg, var(--accent-teal) 0%, blue 50%, blue 100%); background-size: 350% 350%; font-family: 'Playfair Display', serif; animation: galleryWave 8s ease infinite; }
@keyframes galleryWave { 0% { background-position: 0% 7%; } 50% { background-position: 100% 94%; } 100% { background-position: 0% 7%; } }
#gallery #myUL { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px 12px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
#gallery #myUL li { display: flex !important; width: auto !important; }
#gallery .ilovenickname { display: flex !important; align-items: center; justify-content: center; width: 100% !important; min-width: 0 !important; margin: 0 !important; height: auto !important; line-height: 1.5 !important; white-space: normal !important; word-break: break-word !important; background-color: var(--surface) !important; border: 1px solid blue !important; border-left: 4px solid blue !important; border-radius: 2px !important; box-shadow: var(--shadow-xs) !important; color: #000 !important; font-size: 20px !important; padding: 12px 14px !important; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
#gallery #myUL li:nth-child(7n+1) .ilovenickname { border-left-color: blue !important; }
#gallery #myUL li:nth-child(7n+2) .ilovenickname { border-left-color: blue !important; }
#gallery #myUL li:nth-child(7n+3) .ilovenickname { border-left-color: blue !important; }
#gallery #myUL li:nth-child(7n+4) .ilovenickname { border-left-color: blue !important; }
#gallery #myUL li:nth-child(7n+5) .ilovenickname { border-left-color: blue !important; }
#gallery #myUL li:nth-child(7n+6) .ilovenickname { border-left-color: blue !important; }
#gallery #myUL li:nth-child(7n+7) .ilovenickname { border-left-color: blue !important; }
#gallery #myUL li:nth-child(7n+1) .ilovenickname:hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-teal-soft)); }
#gallery #myUL li:nth-child(7n+2) .ilovenickname:hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-coral-soft)); }
#gallery #myUL li:nth-child(7n+3) .ilovenickname:hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-violet-soft)); }
#gallery #myUL li:nth-child(7n+4) .ilovenickname:hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-amber-soft)); }
#gallery #myUL li:nth-child(7n+5) .ilovenickname:hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-emerald-soft)); }
#gallery #myUL li:nth-child(7n+6) .ilovenickname:hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-sky-soft)); }
#gallery #myUL li:nth-child(7n+7) .ilovenickname:hover { border-color: blue; background: linear-gradient(135deg, #fff, var(--accent-rose-soft)); }
#gallery .ilovenickname.copied { background: var(--accent-emerald-soft) !important; border-color: blue !important; box-shadow: 0 0 0 2px var(--accent-emerald) !important; color: var(--accent-emerald-dark) !important; }

/* ============ FILTER / NAME CARDS ============ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 50px; background: var(--bg); color: var(--text-muted); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-btn:hover { border-color: var(--primary); }
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.name-card { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all 0.2s; }
.name-card:hover { border-color: var(--primary); }
.name-card-text { font-size: 1rem; font-weight: 500; word-break: break-all; }
.name-card-category { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.name-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.name-card-actions button { background: none; border: none; cursor: pointer; padding: 6px; border-radius: var(--radius-sm); color: var(--text-muted); transition: all 0.2s; }
.name-card-actions button:hover { background: var(--border); color: var(--text); }

/* ============ SECTIONS ============ */
.categories-section { padding: 40px 0; }
.categories-section .section-header { text-align: center; margin-bottom: 24px; }
.categories-section .section-header h2 { font-size: 1.5rem; font-weight: 800; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 16px; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }
.name-change-card-tip-inner { background: linear-gradient(135deg, var(--primary-light), #fff); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 32px; text-align: center; }
.name-change-card-tip-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.name-change-card-tip-body { color: var(--text-muted); font-size: 0.9rem; }

/* ============ SYMBOL GUIDE ============ */
.symbol-guide-table-wrap { overflow-x: auto; }
.symbol-guide-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.symbol-guide-table th { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--border); font-weight: 700; color: var(--text-muted); }
.symbol-guide-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.symbol-guide-cell-symbol { font-size: 1.3rem; }
.symbol-guide-copy-btn { padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text-muted); cursor: pointer; font-size: 0.8rem; transition: all 0.2s; }
.symbol-guide-copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.symbol-guide-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 8px; }

/* ============ FAQ ============ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 20px 16px; color: var(--text-muted); font-size: 0.9rem; }
.faq-chevron { transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-footer-cta { text-align: center; margin-top: 24px; }
.faq-footer-cta a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ============ RELATED TOOLS ============ */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.related-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: all 0.2s; display: flex; flex-direction: column; }
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.related-icon { font-size: 2rem; margin-bottom: 12px; }
.related-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.related-card p { color: var(--text-muted); font-size: 0.85rem; flex: 1; }
.related-arrow { margin-top: 12px; color: var(--primary); }

/* ============ IN-GAME PREVIEW ============ */
.game-screens-wrapper { margin-top: 12px; }
.ff-profile-card { background: linear-gradient(135deg, #667eea, #764ba2); border-radius: var(--radius); padding: 24px; text-align: center; color: #fff; }
.ff-profile-banner { height: 60px; display: flex; justify-content: flex-end; }
.ff-profile-level { background: rgba(255, 255, 255, 0.2); padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; }
.ff-profile-avatar { margin: -30px 0 16px; }
.ff-avatar-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.2); font-size: 1.5rem; }
.ff-profile-name { font-size: 1.2rem; font-weight: 700; }
.ff-profile-uid { font-size: 0.8rem; opacity: 0.8; }
.ff-profile-badges { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.ff-badge { padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; background: rgba(255, 255, 255, 0.15); }
.screen-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.screen-tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; transition: all 0.2s; }
.screen-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.game-screen { display: none; }
.game-screen.active { display: block; }
.ff-killfeed-container { background: var(--bg-alt); border-radius: var(--radius); padding: 16px; }
.ff-killfeed-item { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.ff-booyah-badge { margin-top: 12px; padding: 8px; background: linear-gradient(135deg, #f59e0b, #d97706); border-radius: var(--radius-sm); color: #fff; text-align: center; font-weight: 600; }
.ff-squad-member { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.ff-squad-name { font-weight: 600; }
.ff-squad-rank { font-size: 0.8rem; color: var(--text-muted); }
.ff-scoreboard-table { width: 100%; }
.ff-sb-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ff-sb-you { background: var(--primary-light); font-weight: 600; }
.ff-sb-col-rank { width: 40px; }
.ff-sb-col-name { flex: 1; }
.ff-sb-col-kills { width: 40px; text-align: right; }
.btn-download-card { width: 100%; margin-top: 12px; justify-content: center; background: var(--accent); color: #fff; }

/* ============ GENERATOR ADVANCED ============ */
.generator-advanced { margin-top: 16px; }
.generator-advanced-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.generator-advanced-inner { padding: 16px; display: none; flex-direction: column; gap: 12px; }
.generator-advanced-inner.is-open { display: flex; }
.decoration-options { display: flex; flex-wrap: wrap; gap: 6px; }
.decoration-options-scroll { max-height: 150px; overflow-y: auto; }
.deco-btn { padding: 4px 12px; border: 1px solid var(--border); border-radius: 50px; background: var(--bg); color: var(--text-muted); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.deco-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.decoration-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.generator-u3164-tool { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.generator-u3164-link, .generator-tool-link-with-symbol { color: var(--primary); text-decoration: none; font-size: 0.85rem; }
.copy-history { margin-top: 12px; }
.history-toggle { background: none; border: none; cursor: pointer; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.history-toggle:hover { color: var(--text); }
.fav-count-badge { background: var(--primary); color: #fff; font-size: 0.7rem; padding: 1px 6px; border-radius: 50px; margin-left: 4px; }
.symbol-picker { margin: 4px 0; }
.symbol-picker-toggle { background: none; border: none; cursor: pointer; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.symbol-picker-panel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 120px; overflow-y: auto; }
.generator-advanced-chevron, .symbol-toggle-chevron { transition: transform 0.3s; }

/* ============ SIDEBAR ============ */
.sidebar-card { border: 1.5px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-xs); padding: 16px; margin-bottom: 16px; }
.sidebar-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); color: var(--ink); }
.sidebar-quick-link { display: block; padding: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; text-decoration: none; color: #000; font-size: 0.85rem; background: var(--surface); font-weight: 500; transition: all 0.2s; }
.sidebar-quick-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.sidebar-post-list { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 400px; overflow-y: auto; margin-bottom: 12px; padding: 0; }
.sidebar-post-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; transition: all 0.2s; }
.sidebar-post-item:hover { border-color: var(--primary); }
.sidebar-post-item .post-text { flex: 1; word-break: break-all; cursor: pointer; }
.sidebar-post-item .post-text:hover { color: #1539d8; }
.sidebar-post-item .del-post { background: none; border: none; cursor: pointer; color: var(--text-light); padding: 2px 6px; font-size: 1rem; flex-shrink: 0; }
.sidebar-post-item .del-post:hover { color: #ef4444; }
.sidebar-add-form { display: flex; gap: 6px; }
.sidebar-add-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.82rem; outline: none; }
.sidebar-add-form input:focus { border-color: var(--primary); }
.sidebar-add-form button { padding: 8px 12px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.sidebar-add-form button:hover { background: var(--primary-hover); }
.sidebar-empty { text-align: center; color: var(--text-light); font-size: 0.82rem; padding: 16px 0; }
.sidebar-save-btn { width: 100%; margin-top: 8px; justify-content: center; }

/* ============ FOOTER ============ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 28px; max-width: 1100px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.footer-brand .logo-text strong { font-weight: 800; font-size: 1.15rem; display: block; }
.footer-brand .logo-text small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.footer-brand p { color: #000; font-size: 0.85rem; line-height: 1.6; }
.footer-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 700; transition: all 0.2s; }
.social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-links h3, .newsletter h3 { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; margin: 0 0 14px; color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #000; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.newsletter p { font-size: 0.8rem; margin: 0 0 10px; }
.newsletter input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; outline: none; margin-bottom: 8px; font-family: Inter, arial, sans-serif; }
.newsletter input:focus { border-color: var(--primary); }
.newsletter button { width: 100%; padding: 10px 12px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; cursor: pointer; transition: background 0.2s; }
.newsletter button:hover { background: var(--primary-hover); }
.copyright { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 32px; padding: 16px 20px 0; border-top: 1px solid var(--border); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-light); }
.footer-legal-links { display: flex; gap: 8px; }
.footer-legal-links a { color: var(--text-muted); text-decoration: none; }
.footer-legal-links a:hover { color: var(--primary); }
.back-top { position: fixed; bottom: 26px; right: 20px; width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35); z-index: 500; transition: background 0.2s; }
.back-top:hover { background: var(--primary-hover); }

/* ============ FLOAT BUTTONS ============ */
.float-btns { position: fixed; right: 16px; bottom: 90px; z-index: 99; display: flex; flex-direction: column-reverse; gap: 8px; }
.float-btns button { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); border: none; box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 0.9rem; box-shadow: var(--shadow-lg); z-index: 1000; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px); background: #fff !important; color: #0b8f4c !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 700 !important; padding: 9px 18px !important; width: auto !important; max-width: 80vw !important; border-radius: 999px !important; border: 1px solid #2ecc71 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important; z-index: 99999; pointer-events: none; opacity: 0; visibility: hidden; white-space: nowrap; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; }
#toast.show { opacity: 1 !important; visibility: visible !important; transform: translateX(-50%) translateY(0) !important; }
#toastMsg.toast { position: fixed !important; top: auto !important; right: auto !important; bottom: 24px !important; left: 50% !important; transform: translateX(-50%) !important; display: flex; flex-direction: column; gap: 0; background: #fff !important; color: #0b8f4c !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 700 !important; padding: 9px 18px !important; width: auto !important; max-width: 80vw !important; border-radius: 999px !important; border: 1px solid #2ecc71 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important; white-space: nowrap !important; z-index: 99999 !important; opacity: 1 !important; visibility: visible !important; pointer-events: none; }

/* ============ SCROLLBAR / SELECTION ============ */
::-webkit-scrollbar { width: 4px; height: 8px; }
::-webkit-scrollbar-track { background: #100e17; }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #00c9ff 10%, #92fe9d 90%); border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand, .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .nav-links { display: none; flex-direction: column; width: 100%; background: var(--bg); position: absolute; top: 64px; left: 0; padding: 10px 20px; border-bottom: 1px solid var(--border); }
    #nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    #gallery #myUL { grid-template-columns: 1fr 1fr !important; }
    #gallery .ilovenickname { min-width: 0 !important; width: 100% !important; line-height: 1.4 !important; padding: 10px 10px !important; font-size: 20px !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 640px) {
    .font-grid li { flex-direction: column; }
    .font-grid li p { width: 100%; }
    .font-grid li button { width: 100%; padding: 10px 0; border-left: none; border-top: 1px solid rgba(0, 0, 0, 0.06); }
    .size-bar input[type="range"] { width: 120px; }
}