
        /* ── Reset & Base ── */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
            background: #f6f8fc;
            color: #1a1a2e;
            padding: 20px;
        }
        .app {
            max-width: 1200px;
            margin: 0 auto;
        }
        /* ── Top Bar (hidden on wheel pages) ── */
        .top-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px 18px;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            padding: 14px 24px;
            border-radius: 18px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
            margin-bottom: 28px;
            position: sticky;
            top: 12px;
            z-index: 100;
        }
        .top-bar.hidden {
            display: none;
        }
        .top-bar .brand {
            font-weight: 700;
            font-size: 1.25rem;
            color: #4a6cf7;
            margin-right: auto;
        }
        .top-bar .brand i {
            margin-right: 8px;
        }
        .top-bar .btn {
            background: #f0f4ff;
            border: none;
            padding: 8px 16px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
        }
        .top-bar .btn:hover {
            background: #e0e8ff;
        }
        .top-bar .btn-primary {
            background: #4a6cf7;
            color: #fff;
        }
        .top-bar .btn-primary:hover {
            background: #3a5cd9;
        }
        .cat-dropdown {
            position: relative;
            display: inline-block;
        }
        .cat-dropdown .dropdown-menu {
            display: none;
            position: absolute;
            top: 110%;
            left: 0;
            background: white;
            border-radius: 16px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
            padding: 10px 0;
            min-width: 200px;
            max-height: 320px;
            overflow-y: auto;
            z-index: 200;
        }
        .cat-dropdown .dropdown-menu.show {
            display: block;
        }
        .cat-dropdown .dropdown-menu a {
            display: block;
            padding: 8px 24px;
            font-size: 0.9rem;
            cursor: pointer;
        }
        .cat-dropdown .dropdown-menu a:hover {
            background: #f0f4ff;
        }
        .cat-dropdown .dropdown-menu a.active {
            background: #4a6cf7;
            color: white;
        }
        /* ── Grid (2 columns) ── */
        .grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
            margin-top: 8px;
        }
        @media (max-width: 380px) {
            .grid {
                grid-template-columns: 1fr;
            }
        }
        .wheel-card {
            background: white;
            border-radius: 20px;
            padding: 22px 20px 18px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 16px;
            transition: 0.25s;
            border: 1px solid rgba(0, 0, 0, 0.02);
            min-width: 0;
        }
        .wheel-card .info { min-width: 0; }
        .wheel-card .info .title {
            overflow-wrap: break-word;
        }
        @media (max-width: 600px) {
            .wheel-card { padding: 14px 12px 12px; gap: 10px; }
            .wheel-card .icon { width: 42px; height: 42px; font-size: 1.6rem; border-radius: 12px; }
            .wheel-card .info .title { font-size: 0.88rem; }
        }
        .wheel-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(74, 108, 247, 0.10);
            border-color: #4a6cf740;
        }
        .wheel-card .icon {
            font-size: 2.2rem;
            width: 56px;
            height: 56px;
            background: #f0f4ff;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: #4a6cf7;
        }
        .wheel-card .info .title {
            font-weight: 700;
            font-size: 1.05rem;
        }
        .wheel-card .info .cat-tag {
            font-size: 0.7rem;
            text-transform: uppercase;
            background: #eef2f6;
            padding: 2px 10px;
            border-radius: 40px;
            display: inline-block;
            margin-top: 4px;
        }
        .wheel-card .info .slide-count {
            font-size: 0.75rem;
            color: #8a9aa8;
        }
        /* ── Wheel Page ── */
        .wheel-page {
            background: white;
            border-radius: 24px;
            padding: 32px 28px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
            margin-top: 8px;
        }
        .wheel-page .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #4a6cf7;
            font-weight: 600;
            margin-bottom: 20px;
            cursor: pointer;
            font-size: 0.95rem;
        }
        .wheel-page .back-link:hover {
            text-decoration: underline;
        }
        .wheel-page h1 {
            font-size: 1.8rem;
            margin-bottom: 6px;
        }
        .wheel-page .meta-cat {
            background: #eef2f6;
            padding: 2px 14px;
            border-radius: 40px;
            font-size: 0.75rem;
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 16px;
        }
        .wheel-page .article {
            background: #f8faff;
            padding: 20px 24px;
            border-radius: 16px;
            margin: 16px 0 20px;
            border-left: 4px solid #4a6cf7;
        }
        .wheel-page .article p {
            line-height: 1.6;
            color: #2c3e50;
        }
        .wheel-page .faqs {
            display: grid;
            gap: 12px;
            margin: 16px 0 24px;
        }
        .wheel-page .faqs details {
            background: #f8faff;
            padding: 12px 18px;
            border-radius: 12px;
            cursor: pointer;
        }
        .wheel-page .faqs details summary {
            font-weight: 600;
        }
        .wheel-page .faqs details p {
            margin-top: 8px;
            color: #3d4a5e;
            line-height: 1.5;
        }
        .wheel-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 24px 0;
        }
        .wheel-container canvas {
            max-width: 100%;
            border-radius: 50%;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
            background: #fff;
        }
        .wheel-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 20px;
            justify-content: center;
        }
        .wheel-controls button {
            padding: 10px 28px;
            border: none;
            border-radius: 40px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .wheel-controls .spin-btn {
            background: #4a6cf7;
            color: white;
            box-shadow: 0 4px 16px rgba(74, 108, 247, 0.30);
        }
        .wheel-controls .spin-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .wheel-controls .edit-btn {
            background: #eef2f6;
        }
        .wheel-controls .save-btn {
            background: #10b981;
            color: white;
        }
        .wheel-controls .reset-btn {
            background: #fef3f2;
            color: #b91c1c;
        }
        .wheel-result {
            margin-top: 16px;
            font-size: 1.4rem;
            font-weight: 700;
            color: #4a6cf7;
            min-height: 2.2rem;
            text-align: center;
        }
        .suggested {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 2px solid #f0f4ff;
        }
        .suggested .suggest-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .suggested .suggest-list a {
            background: #f0f4ff;
            padding: 6px 16px;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: 0.2s;
            color: #4a6cf7;
        }
        .suggested .suggest-list a:hover {
            background: #4a6cf7;
            color: white;
        }
        /* ── Modal ── */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.40);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 999;
            padding: 20px;
        }
        .modal-overlay.show {
            display: flex;
        }
        .modal-box {
            background: white;
            border-radius: 28px;
            max-width: 600px;
            width: 100%;
            padding: 32px 28px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .modal-box .slide-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid #f0f4ff;
        }
        .modal-box .slide-item input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #dce3ed;
            border-radius: 10px;
        }
        .modal-box .slide-item .hide-check {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.8rem;
        }
        .modal-box .add-slide {
            margin-top: 12px;
            background: #f0f4ff;
            border: 2px dashed #bcc8e0;
            border-radius: 12px;
            padding: 10px;
            width: 100%;
            font-weight: 600;
            cursor: pointer;
        }
        .modal-box .modal-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
            justify-content: flex-end;
        }
        .modal-box .modal-actions button {
            padding: 10px 24px;
            border-radius: 40px;
            border: none;
            font-weight: 600;
            cursor: pointer;
        }
        .modal-box .modal-actions .save-modal {
            background: #4a6cf7;
            color: white;
        }
        .modal-box .modal-actions .cancel-modal {
            background: #eef2f6;
        }
        /* ── Create Page ── */
        .create-page {
            background: white;
            border-radius: 24px;
            padding: 32px 28px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
        }
        .create-page .form-group {
            margin-bottom: 18px;
        }
        .create-page .form-group label {
            display: block;
            font-weight: 600;
        }
        .create-page .form-group input,
        .create-page .form-group select,
        .create-page .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid #dce3ed;
            border-radius: 12px;
            font-size: 0.95rem;
            font-family: inherit;
        }
        .create-page .slide-list .slide-row {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-bottom: 6px;
        }
        .create-page .slide-list .slide-row input {
            flex: 1;
        }
        .create-page .slide-list .slide-row button {
            background: #fee2e2;
            border: none;
            border-radius: 8px;
            padding: 6px 12px;
            color: #b91c1c;
            cursor: pointer;
            font-weight: 600;
        }
        .create-page .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 16px;
        }
        .create-page .btn-group button {
            padding: 10px 28px;
            border: none;
            border-radius: 40px;
            font-weight: 700;
            cursor: pointer;
        }
        .create-page .btn-group .submit-create {
            background: #4a6cf7;
            color: white;
        }
        .create-page .btn-group .cancel-create {
            background: #eef2f6;
        }
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #6b7a8f;
        }
        .empty-state i {
            font-size: 3rem;
            color: #dce3ed;
            margin-bottom: 16px;
        }
        .text-muted {
            color: #6b7a8f;
            font-size: 0.85rem;
        }
        .hidden {
            display: none !important;
        }
        @media (max-width: 480px) {
            .top-bar {
                padding: 10px 14px;
                gap: 8px;
            }
            .top-bar .brand {
                font-size: 1rem;
            }
            .top-bar .btn {
                font-size: 0.75rem;
                padding: 6px 10px;
            }
            .wheel-page {
                padding: 18px 14px;
            }
        }
        /* ── Buy Me a Coffee floating button ── */
        .bmc-float {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 500;
            background: #FFDD00;
            color: #1a1a2e;
            font-weight: 700;
            font-size: 0.9rem;
            padding: 12px 18px;
            border-radius: 40px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.18);
            transition: 0.2s;
        }
        .bmc-float:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }
        @media (max-width: 600px) {
            .bmc-float { padding: 10px 14px; font-size: 0.8rem; bottom: 14px; right: 14px; }
        }
        /* ── Affiliate / shop box on wheel pages ── */
        .affiliate-box {
            margin-top: 18px;
            padding: 16px 18px;
            background: #f9fafc;
            border: 1px solid #eef1f6;
            border-radius: 16px;
        }
        .affiliate-box .aff-title {
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .affiliate-box .aff-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .affiliate-box .aff-links a {
            background: white;
            border: 1px solid #e2e8f5;
            padding: 8px 14px;
            border-radius: 40px;
            font-size: 0.82rem;
            font-weight: 600;
            color: #4a6cf7;
            text-decoration: none;
        }
        .affiliate-box .aff-links a:hover { background: #f0f4ff; }
        .affiliate-box .aff-disclosure {
            font-size: 0.7rem;
            color: #9aa4b2;
            margin-top: 8px;
        }
    
/* Embed page */
body.embed-body { padding: 10px; background: transparent; }
.embed-wheel-box { max-width: 420px; margin: 0 auto; background: white; border-radius: 20px; padding: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); text-align: center; }
.embed-wheel-box h1 { font-size: 0.95rem; margin-bottom: 10px; }
.embed-credit { font-size: 0.68rem; color: #9aa4b2; margin-top: 8px; }
.embed-credit a { color: #4a6cf7; text-decoration: none; }
.embed-btn { background: #eef2f6; border: none; padding: 8px 16px; border-radius: 40px; font-weight: 600; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; transition: 0.2s; }
.embed-btn:hover { background: #e0e8ff; }
.embed-btn.copied { background: #d6f5df; color: #1e8a45; }
.cat-hero { background: white; border-radius: 20px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.cat-hero h1 { font-size: 1.4rem; margin-bottom: 8px; }
.cat-hero p { color: #5a6472; font-size: 0.95rem; line-height: 1.6; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-pills a { background: white; border: 1px solid #e2e8f5; padding: 6px 14px; border-radius: 40px; font-size: 0.78rem; font-weight: 600; color: #4a6cf7; text-decoration: none; }
.cat-pills a.active { background: #4a6cf7; color: white; border-color: #4a6cf7; }
.article p { margin-bottom: 12px; line-height: 1.7; color: #3a424f; }
.site-footer { text-align: center; padding: 30px 10px 10px; color: #9aa4b2; font-size: 0.8rem; }
.site-footer a { color: #8a9aa8; }
