:root {
            --bg-color: #f4f4f4;
            --text-color: #222;
            --card-bg: #ffffff;
        }

        body.dark {
            --bg-color: #050816;
            --text-color: #f9fafb;
            --card-bg: #0b1020;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            transition: background-color 0.3s ease, color 0.3s ease;
            margin: 0;
            background: var(--bg-color);
            color: var(--text-color);
            padding: 70px 20px 70px;
            font-size: 16px;
        }

        .container {
            max-width: 900px;
            margin: auto;
            background: var(--card-bg);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            margin-bottom: 25px;
        }

        h1, h2 {
            text-align: center;
        }

        select, button {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
            border: 1px solid #ccc;
            font-size: 15px;
        }

        #script {
            white-space: pre-wrap;
            background: #f9fafb;
            padding: 15px;
            border-radius: 5px;
            border: 1px solid #ddd;
            margin-top: 20px;
            font-size: 16px;
        }

        body.dark #script {
            background: #020617;
            border-color: #1e293b;
        }

        .top-menu {
            position: fixed;
            top: 0;
            width: 100%;
            background: #222;
            padding: 8px 10px;
            display: flex;
            justify-content: center;
            gap: 8px;
            z-index: 3000;
            box-sizing: border-box;
            overflow: hidden;
        }

        .top-menu a {
            background: #444;
            padding: 5px 8px;
            border-radius: 6px;
            color: #fff;
            font-size: 11px;
            text-decoration: none;
            font-weight: bold;
            white-space: nowrap;
            display: inline-block;
        }

        .top-menu a:hover {
            background: #666;
        }

        .bottom-menu {
            position: fixed;
            bottom: 0;
            width: 100%;
            background: #222;
            padding: 8px 10px;
            display: flex;
            justify-content: center;
            gap: 8px;
            z-index: 3000;
            box-sizing: border-box;
            overflow-x: auto;
        }

        .bottom-menu a {
            background: #444;
            padding: 5px 8px;
            border-radius: 6px;
            color: #fff;
            font-size: 11px;
            text-decoration: none;
            font-weight: 500;
            white-space: nowrap;
            display: inline-block;
        }

        .bottom-menu a:hover {
            background: #666;
        }

        .menu-item {
            position: relative;
            display: inline-block;
        }

        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #222;
            padding: 4px 0;
            border-radius: 6px;
            min-width: 130px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.4);
        }

        .submenu a {
            display: block;
            width: 100%;
        }

        .menu-item:hover .submenu {
            display: block;
        }

        .dropup .submenu {
            top: auto;
            bottom: 100%;
        }

        #generateBtn {
            background: #007bff;
            color: #fff;
            font-weight: bold;
        }

        #copyBtn {
            background: #28a745;
            color: #fff;
            font-weight: bold;
        }

        #langBtn {
            background: #ff9800;
            color: #fff;
            font-weight: bold;
        }

        p, ul {
            line-height: 1.6;
        }

        .page-section {
            display: none;
        }

        .right-bar {
            position: fixed;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 2000;
        }

        .right-bar button {
            width: 40px;
            height: 40px;
            padding: 0;
            border-radius: 999px;
            font-size: 16px;
            border: none;
            background: #ffffff;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

        .right-bar button span {
            pointer-events: none;
        }

        body.dark .right-bar button {
            background: #111827;
            color: #f9fafb;
        }

        /* FAQ button near footer */
        .faq-toggle-section {
            max-width: 900px;
            margin: 5px auto 10px;
            text-align: center;
        }
        .faq-toggle-section button {
            padding: 10px 18px;
            border-radius: 999px;
            border: 1px solid #ccc;
            background: var(--card-bg);
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
            width: auto;
        }
        body.dark .faq-toggle-section button {
            border-color: #374151;
            box-shadow: 0 1px 4px rgba(0,0,0,0.6);
        }

        @media (max-width: 600px) {
            body {
                padding: 70px 10px 70px;
            }

            .top-menu {
                justify-content: space-between;
                flex-wrap: wrap;
                row-gap: 6px;
            }

            .top-menu a {
                flex: 1 1 calc(50% - 8px);
                text-align: center;
            }

            .bottom-menu {
                justify-content: flex-start;
            }

            .right-bar {
                right: 6px;
            }

            .container {
                margin-bottom: 70px;
            }

            .faq-toggle-section button {
                width: 100%;
            }
        }