
:root {
    --bg-body: #f8fafc;
    --bg-panel: #ffffff;
    --text-main: #0f172a;
    --text-muted: #374151;
    --border-glow: rgba(14, 116, 144, 0.15);
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --accent-cyan: #0e7490;
    --accent-violet: #6d28d9;
    --accent-emerald: #047857;
    --accent-amber: #b45309;
    --card-bg: #ffffff;
    --card-border: rgba(226, 232, 240, 0.85);
    --toggle-bg: #e2e8f0;
    --toggle-dot: #0f172a;
    --link-color: #0e7490;
    --badge-accent-cyan: #0284c7;
    --badge-accent-emerald: #059669;
    --badge-bg-inner: #ffffff;
    --badge-text: #475569;
    --badge-text-strong-start: #0f172a;
    --badge-text-strong-end: #0284c7;
    --badge-shadow-base: rgba(2, 132, 199, 0.1);
    --badge-shadow-hover: rgba(5, 150, 105, 0.2);
    --badge-icon-shield: #059669;
    --badge-icon-file: #64748b;
    --badge-icon-device: #0f172a;
}
:root.dark {
    --bg-body: #0b0f19;
    --bg-panel: rgba(15, 23, 42, 0.8);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border-glow: rgba(34, 211, 238, 0.3);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(34, 211, 238, 0.05);
    --accent-cyan: #22d3ee;
    --accent-violet: #a78bfa;
    --accent-emerald: #34d399;
    --accent-amber: #fbbf24;
    --card-bg: rgba(30, 41, 59, 0.42);
    --card-border: rgba(51, 65, 85, 0.65);
    --toggle-bg: rgba(34, 211, 238, 0.15);
    --toggle-dot: #ffffff;
    --link-color: #67e8f9;
    --badge-accent-cyan: #00f2fe;
    --badge-accent-emerald: #10b981;
    --badge-bg-inner: rgba(15, 23, 42, 0.8);
    --badge-text: #94a3b8;
    --badge-text-strong-start: #ffffff;
    --badge-text-strong-end: #00f2fe;
    --badge-shadow-base: rgba(0, 242, 254, 0.2);
    --badge-shadow-hover: rgba(16, 185, 129, 0.4);
    --badge-icon-shield: #10b981;
    --badge-icon-file: #94a3b8;
    --badge-icon-device: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.10), transparent 30rem),
        radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.10), transparent 28rem),
        var(--bg-body);
    transition: background-color 0.4s ease, color 0.4s ease;
}
a { color: var(--link-color); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#scroll-progress {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
}
.header { padding: 1rem 0 0 0; background: var(--bg-body); position: relative; z-index: 50; transition: background-color 0.4s ease; }
.header:has(#fuzzyWrapper.search-active), .header:has(.nav-wrapper.fuzzy-search-host-active) { z-index: 10000000 !important; }
.header-glitter { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.header-glitter::before {
    content: ''; position: absolute; top: -200px; left: -200px; width: calc(100% + 400px); height: calc(100% + 400px);
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='30' r='2' fill='rgba(14,116,144,0.4)'/%3E%3Ccircle cx='80' cy='70' r='2.5' fill='rgba(109,40,217,0.4)'/%3E%3Ccircle cx='150' cy='20' r='1.5' fill='rgba(14,116,144,0.3)'/%3E%3Ccircle cx='40' cy='140' r='2' fill='rgba(109,40,217,0.35)'/%3E%3Ccircle cx='110' cy='180' r='3' fill='rgba(14,116,144,0.3)'/%3E%3Ccircle cx='170' cy='110' r='2' fill='rgba(109,40,217,0.3)'/%3E%3C/svg%3E");
    background-size: 200px 200px; animation: starryDrift 45s linear infinite;
}
:root.dark .header-glitter::before {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='30' r='2' fill='rgba(255,255,255,0.6)'/%3E%3Ccircle cx='80' cy='70' r='2.5' fill='rgba(34,211,238,0.7)'/%3E%3Ccircle cx='150' cy='20' r='1.5' fill='rgba(167,139,250,0.6)'/%3E%3Ccircle cx='40' cy='140' r='2' fill='rgba(255,255,255,0.5)'/%3E%3Ccircle cx='110' cy='180' r='3' fill='rgba(34,211,238,0.5)'/%3E%3Ccircle cx='170' cy='110' r='2.5' fill='rgba(167,139,250,0.7)'/%3E%3C/svg%3E");
}
@keyframes starryDrift { from { transform: translate(0, 0); } to { transform: translate(200px, 200px); } }
.header > .container { position: relative; z-index: 10; }
.header > .category-nav-wrapper { position: relative; z-index: 1; }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1rem; }
.logo-container { position: relative; font-size: 1.5rem; font-weight: 700; padding: 0.5rem 1.25rem; border: 1px solid var(--border-glow); border-radius: 50px; background: transparent; white-space: nowrap; z-index: 1; }
:root.dark .logo-container { background: rgba(26, 28, 36, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.logo-container::before { content: ''; position: absolute; inset: -1px; border-radius: 50px; box-shadow: 0 0 10px var(--accent-cyan), 0 0 15px var(--accent-violet); opacity: 0.05; z-index: -1; animation: pulseGlowOpacity 4s infinite alternate; pointer-events: none; }
.logo-container a { text-decoration: none; color: transparent; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet)); -webkit-background-clip: text; background-clip: text; animation: shiftGradientHue 4s infinite alternate; display: block; }
@keyframes pulseGlowOpacity { from { opacity: 0.05; } to { opacity: 0.3; } }
@keyframes shiftGradientHue { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(30deg); } }
.theme-toggle { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.theme-toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--toggle-bg); transition: .4s; border-radius: 34px; border: 1px solid var(--border-glow); display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: var(--toggle-dot); transition: .4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 50%; z-index: 2; }
.icon-sun, .icon-moon { width: 14px; height: 14px; z-index: 1; transition: opacity 0.3s; }
.icon-sun { stroke: #f59e0b; opacity: 0; } .icon-moon { stroke: #ffffff; opacity: 1; }
input:checked + .slider { background-color: rgba(34, 211, 238, 0.2); }
input:checked + .slider:before { transform: translateX(24px); background-color: #ffffff; box-shadow: 0 0 8px var(--accent-cyan); }
input:checked + .slider .icon-sun { opacity: 1; } input:checked + .slider .icon-moon { opacity: 0; }
.category-nav-wrapper { background: transparent; padding: 0.5rem 0 1rem 0; }
.category-nav { display: flex; overflow-x: auto; gap: 0.75rem; scrollbar-width: none; -ms-overflow-style: none; padding: 0.25rem 1rem; align-items: center; -webkit-mask-image: linear-gradient(to right, transparent, black 1.5rem, black calc(100% - 1.5rem), transparent); mask-image: linear-gradient(to right, transparent, black 1.5rem, black calc(100% - 1.5rem), transparent); }
.category-nav::-webkit-scrollbar { display: none; }
.cat-link { white-space: nowrap; padding: 0.5rem 1.25rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 999px; color: var(--text-main); text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: all 0.2s ease; box-shadow: var(--shadow-glow); }
.cat-link:hover, .cat-link.active, .cat-link:focus-visible { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(34, 211, 238, 0.05); outline: none; }
.page-title-section { text-align: center; padding: 2.5rem 1.5rem 1rem; position: relative; z-index: 2; }
.page-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 850; margin-bottom: 0.75rem; color: transparent; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet)); -webkit-background-clip: text; background-clip: text; line-height: 1.08; }
.page-subtitle { font-size: 0.82rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.7rem; }
.page-lede { max-width: 760px; margin: 0 auto; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.badge-wrapper-center { display: flex; justify-content: center; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.ultra-badge { position: relative; border-radius: 999px; padding: 1px; cursor: default; user-select: none; box-shadow: 0 4px 20px -5px var(--badge-shadow-base); overflow: hidden; display: inline-block; }
.ultra-badge::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0%, transparent 30%, var(--badge-accent-cyan) 50%, var(--badge-accent-emerald) 70%, transparent 80%, transparent 100%); animation: spinBorder 4s linear infinite; z-index: 0; }
.ultra-badge-inner { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 8px 20px; background: var(--badge-bg-inner); border-radius: 999px; z-index: 1; overflow: hidden; }
.ultra-badge-text { font-size: 0.8rem; color: var(--badge-text); display: flex; align-items: center; z-index: 4; font-weight: 500; letter-spacing: 0.2px; }
.ultra-badge-text strong { background: linear-gradient(135deg, var(--badge-text-strong-start), var(--badge-text-strong-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.ultra-badge .separator { margin: 0 8px; color: rgba(100, 116, 139, 0.45); }
.ultra-badge-anim { display: flex; align-items: center; gap: 4px; z-index: 4; position: relative; }
.ultra-badge-anim svg { width: 16px; height: 16px; stroke-width: 2; fill: none; stroke: currentColor; }
.anim-file { color: var(--badge-icon-file); animation: docMove 3s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.anim-device { color: var(--badge-icon-device); position: relative; z-index: 2; }
.anim-shield { color: var(--badge-icon-shield); animation: shieldPop 3s infinite cubic-bezier(0.4, 0, 0.2, 1); margin-left: -2px; }
.lock-icon { width: 14px !important; height: 14px !important; stroke-width: 2.2 !important; stroke: var(--badge-icon-shield) !important; margin-left: 8px; animation: lockPulse 2.5s infinite ease-in-out; }
@keyframes spinBorder { 100% { transform: rotate(360deg); } }
@keyframes docMove { 0% { transform: translateX(0) translateY(0); opacity: 0; } 15% { transform: translateX(8px) translateY(-2px); opacity: 1; } 30%, 100% { transform: translateX(18px) scale(0.6); opacity: 0; } }
@keyframes shieldPop { 0%, 25% { transform: scale(0); opacity: 0; } 35% { transform: scale(1.15); opacity: 1; } 45%, 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes lockPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }
.random-tool-shell, .hub-shell { position: relative; margin-top: 2rem; }
.random-tool-panel, .hub-grid, .premium-card, .premium-badge-card, .premium-footer-card {
    position: relative;
    z-index: 2;
}
.random-tool-panel {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: color-mix(in srgb, var(--bg-panel) 92%, transparent);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}
.random-tool-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.08), transparent 42%, rgba(109, 40, 217, 0.07));
}
.tool-panel-heading { position: relative; display: block; margin-bottom: 1.2rem; }
.tool-panel-heading h2 { font-size: clamp(1.2rem, 2.3vw, 1.75rem); line-height: 1.2; }
.content-label { display: inline-block; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 800; margin-bottom: 0.35rem; }
.control-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.control-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.tool-field { display: flex; flex-direction: column; gap: 0.45rem; color: var(--text-muted); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.tool-field.wide { grid-column: 1 / -1; margin-bottom: 1rem; }
.tool-field input, .tool-field select, .tool-field textarea {
    width: 100%;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.85rem 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}
.tool-field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.tool-field input:focus, .tool-field select:focus, .tool-field textarea:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); }
.toggle-row { display: flex; align-items: center; gap: 0.7rem; min-height: 48px; padding: 0.85rem 0.95rem; border: 1px solid var(--card-border); border-radius: 8px; background: var(--card-bg); color: var(--text-main); font-weight: 750; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--accent-cyan); }
.primary-action, .ghost-action {
    position: relative;
    z-index: 2;
    min-height: 46px;
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 0.85rem 1.15rem;
    font-weight: 850;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.primary-action { width: 100%; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet)); color: #ffffff; box-shadow: 0 18px 35px -24px var(--accent-cyan); }
.ghost-action { background: var(--card-bg); color: var(--text-main); }
.primary-action:hover, .ghost-action:hover { transform: translateY(-1px); }
.result-stage {
    position: relative;
    z-index: 2;
    margin-top: 1.2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(14, 116, 144, 0.05);
    display: grid;
    gap: 0.7rem;
    justify-items: center;
    text-align: center;
}
.result-stage.compact { max-width: 520px; margin-left: auto; margin-right: auto; }
.result-label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 850; }
.mega-result { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(3.5rem, 13vw, 7.5rem); line-height: 0.95; font-weight: 900; color: var(--text-main); }
.large-result { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2rem, 7vw, 4rem); line-height: 1; font-weight: 900; }
.password-result { display: block; width: 100%; max-width: 100%; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, monospace; font-size: clamp(1rem, 3vw, 1.65rem); line-height: 1.45; font-weight: 850; }
.history-strip, .result-chip-board, .dice-output, .emoji-board, .palette-board {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1rem;
    min-height: 42px;
}
.chip, .history-chip, .dice-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 850;
}
.dice-face { width: 58px; height: 58px; font-size: 1.4rem; box-shadow: var(--shadow-glow); }
.emoji-board .chip { font-size: 2.2rem; width: 64px; height: 64px; }
.stat-row { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; color: var(--text-muted); font-weight: 800; }
.coin-stage, .spinner-stage { position: relative; z-index: 2; display: grid; place-items: center; min-height: 180px; }
.coin-face {
    width: 142px;
    height: 142px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1f2937;
    background: radial-gradient(circle at 35% 30%, #fff7d6, #f59e0b 62%, #92400e);
    border: 10px double rgba(120, 53, 15, 0.55);
    font-size: 1.25rem;
    font-weight: 950;
    box-shadow: 0 22px 35px -18px rgba(146, 64, 14, 0.75);
    transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.2, 1);
}
.coin-face.flipping { transform: rotateY(1260deg) rotateX(24deg); }
.decision-wheel {
    width: min(280px, 76vw);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 12px solid var(--card-bg);
    box-shadow: var(--shadow-glow);
    background: conic-gradient(var(--accent-emerald) 0 50%, var(--accent-violet) 50% 100%);
    position: relative;
    display: grid;
    place-items: center;
    transition: transform 1.1s cubic-bezier(0.18, 0.86, 0.22, 1);
}
.decision-wheel span { position: absolute; color: #fff; font-weight: 950; font-size: 1.1rem; }
.decision-wheel span:first-child { transform: translateX(-45px); }
.decision-wheel span:last-child { transform: translateX(45px); }
.wheel-pointer { position: absolute; top: 8px; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 26px solid var(--accent-amber); z-index: 3; }
.palette-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: stretch; }
.swatch-card { min-height: 160px; border-radius: 8px; border: 1px solid var(--card-border); overflow: hidden; background: var(--card-bg); box-shadow: var(--shadow-glow); }
.swatch-sample { height: 92px; }
.swatch-meta { display: grid; gap: 0.35rem; padding: 0.8rem; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.82rem; color: var(--text-muted); overflow-wrap: anywhere; }
.strength-meter { height: 10px; background: rgba(148, 163, 184, 0.28); border-radius: 999px; overflow: hidden; margin-top: 1rem; }
.strength-meter span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-amber), var(--accent-emerald)); transition: width 0.25s ease; }
.micro-note, .tool-message { position: relative; z-index: 2; margin-top: 0.8rem; color: var(--text-muted); font-size: 0.9rem; min-height: 1.2em; }
.chance-field { position: absolute; inset: -24px 0 auto 0; min-height: 100%; overflow: hidden; pointer-events: none; z-index: 0; opacity: 0.72; }
.chance-field span {
    position: absolute;
    left: calc(8% + var(--i) * 14%);
    top: calc(6% + (var(--i) % 3) * 29%);
    min-width: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    color: var(--accent-cyan);
    background: color-mix(in srgb, var(--card-bg) 52%, transparent);
    font-weight: 900;
    transform: rotate(calc(var(--i) * 9deg));
    animation: floatTicket 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.7s);
}
.swatch-bands span { background: hsl(calc(var(--i) * 48deg), 80%, 58%); color: transparent; border: 0; }
.coin-orbit span, .decision-wheel span { border-radius: 50%; }
.hub-field { min-height: 100%; }
@keyframes floatTicket { 0%,100% { transform: translateY(0) rotate(calc(var(--i) * 9deg)); } 50% { transform: translateY(-18px) rotate(calc(var(--i) * -7deg)); } }
.related-tools-section { padding: 2.5rem 0 0; text-align: center; }
.related-tools-section h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; }
.pill-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0.65rem 1rem; border-radius: 999px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 750; transition: border-color 0.2s ease, transform 0.2s ease; }
.pill-btn:hover { border-color: var(--accent-cyan); transform: translateY(-1px); color: var(--accent-cyan); }
.badge-card-container { width: 100%; padding: 2rem 1.5rem 0; }
.premium-badge-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.badge-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 1.1rem; box-shadow: var(--shadow-glow); }
.badge-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent-cyan); margin-bottom: 0.75rem; }
.badge-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.badge-item h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.badge-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.premium-content-wrapper { width: 100%; max-width: 1000px; margin: 2rem auto 0; padding: 0 1.5rem; display: grid; gap: 1.25rem; }
.premium-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: clamp(1.15rem, 3vw, 1.7rem); box-shadow: var(--shadow-glow); }
.content-header-area h2 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15; margin-bottom: 0.7rem; }
.content-header-area p, .rich-text p, .collapsible-content p { color: var(--text-muted); line-height: 1.75; }
.rich-text { display: grid; gap: 1rem; }
.collapsible-list { display: grid; gap: 0.85rem; }
.collapsible-item { border: 1px solid var(--card-border); border-radius: 8px; background: color-mix(in srgb, var(--card-bg) 92%, var(--accent-cyan)); overflow: hidden; }
.collapsible-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem; padding: 1rem; cursor: pointer; list-style: none; }
.collapsible-summary::-webkit-details-marker { display: none; }
.item-title { color: var(--text-main); font-weight: 850; font-size: 1rem; }
h3.item-title { line-height: 1.3; }
.icon-action, .icon-chevron { display: grid; place-items: center; color: var(--accent-cyan); }
.icon-action svg, .icon-chevron svg { width: 20px; height: 20px; stroke-width: 2.1; }
.icon-minus { display: none; }
.collapsible-item[open] .icon-plus { display: none; }
.collapsible-item[open] .icon-minus { display: block; }
.collapsible-item[open] .icon-chevron { transform: rotate(180deg); }
.collapsible-content { padding: 0 1rem 1rem 3.8rem; }
.hub-shell { margin-top: 1.5rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1rem; }
.hub-card { min-height: 220px; padding: 1.25rem; border: 1px solid var(--card-border); border-radius: 8px; background: var(--card-bg); color: var(--text-main); text-decoration: none; box-shadow: var(--shadow-glow); display: grid; align-content: start; gap: 0.7rem; transition: transform 0.2s ease, border-color 0.2s ease; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--accent-cyan); }
.hub-card-icon { width: 54px; height: 54px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(14,116,144,0.12), rgba(109,40,217,0.12)); color: var(--accent-cyan); font-weight: 950; }
.hub-card-kicker { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 850; }
.hub-card h2 { font-size: 1.25rem; }
.hub-card p { color: var(--text-muted); line-height: 1.55; }
.premium-footer-wrapper { width: 100%; padding: 0 1.5rem; margin: 3rem auto 1.5rem auto; max-width: 1000px; }
.premium-footer-card { background: var(--bg-panel); border: 1px solid var(--card-border); border-radius: 8px; padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-glow); }
.footer-nav-grid { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.footer-row { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-link { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-link:hover { color: var(--accent-cyan); }
.footer-divider-vertical { color: var(--text-muted); opacity: 0.45; }
.footer-divider-horizontal { width: 100%; max-width: 600px; height: 1px; margin: 1.5rem 0; background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); opacity: 0.35; }
.footer-copyright { color: var(--text-muted); font-size: 0.9rem; text-align: center; }
@media (max-width: 900px) {
    .nav-wrapper { flex-direction: column; gap: 1rem; align-items: center; }
    .logo-container { order: 1; }
    #fuzzyWrapper { order: 2; width: 100%; margin: 0 !important; }
    .theme-toggle { order: 3; }
    .control-grid, .premium-badge-card { grid-template-columns: 1fr; }
    .tool-field.wide { grid-column: auto; }
}
@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    .page-title-section { padding-left: 1rem; padding-right: 1rem; }
    .random-tool-panel { padding: 1rem; }
    .collapsible-summary { grid-template-columns: 1fr auto; }
    .icon-action { display: none; }
    .collapsible-content { padding: 0 1rem 1rem; }
    .ultra-badge-inner { gap: 8px; padding: 8px 12px; }
    .ultra-badge-text { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}
