        /* ===== LIGHT MODE (DEFAULT) ===== */
        :root {
            --bg-color: #f4f6fb;
            --text-color: #1e293b;
            --card-bg: #ffffff;
            --card-text: #1e293b;
            --hero-bg: linear-gradient(135deg, #3f51b5, #2196f3);
            --footer-bg: #111827;
            --footer-text: #9ca3af;
            --border-color: #e2e8f0;
            --accent-btn: #2196f3;
            --accent-hover: #1976d2;
            --secondary-btn: #f1f5f9;
            --secondary-text: #475569;
        }

        /* ===== DARK MODE ===== */
        @media (prefers-color-scheme: dark) {
            :root {
                --bg-color: #0f1115;
                --text-color: #eaeaea;
                --card-bg: #1a1e26;
                --card-text: #eaeaea;
                --hero-bg: linear-gradient(135deg, #1a237e, #0d47a1);
                --footer-bg: #000000;
                --footer-text: rgba(255, 255, 255, 0.7);
                --border-color: #2e3545;
                --accent-btn: #2196f3;
                --accent-hover: #1e88e5;
                --secondary-btn: #2a303c;
                --secondary-text: #cbd5e1;
            }
        }

        /* ===== RESET & BASE ===== */
        html,
        body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
            word-wrap: break-word;
        }

        body {
            background: var(--bg-color);
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* ===== NAVBAR ===== */
        .navbar {
            position: sticky;
            top: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.25);
            backdrop-filter: blur(10px);
        }

        .nav-container {
            max-width: 1100px;
            margin: auto;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            color: #fff;
            font-size: 20px;
            font-weight: bold;
            text-decoration: none;
            letter-spacing: -0.5px;
        }

        .menu-btn {
            width: 28px;
            height: 22px;
            position: relative;
            cursor: pointer;
        }

        .menu-btn span {
            position: absolute;
            height: 3px;
            width: 100%;
            background: #fff;
            border-radius: 2px;
            transition: 0.3s;
        }

        .menu-btn span:nth-child(1) {
            top: 0;
        }

        .menu-btn span:nth-child(2) {
            top: 9px;
        }

        .menu-btn span:nth-child(3) {
            top: 18px;
        }

        .menu-btn.active span:nth-child(1) {
            transform: rotate(45deg);
            top: 9px;
        }

        .menu-btn.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-btn.active span:nth-child(3) {
            transform: rotate(-45deg);
            top: 9px;
        }

        .nav-menu {
            display: none;
            flex-direction: column;
            background: rgba(0, 0, 0, 0.95);
        }

        .nav-menu a {
            padding: 14px 20px;
            color: #fff;
            text-decoration: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        @media(min-width: 768px) {
            .menu-btn {
                display: none;
            }

            .nav-menu {
                display: flex !important;
                flex-direction: row;
                background: none;
                justify-content: center;
                padding-bottom: 0;
            }

            .nav-menu a {
                border: none;
                padding: 0 14px;
            }
        }

        /* ===== HERO ===== */
        .hero {
            background: var(--hero-bg);
            color: #fff;
            padding: 45px 20px;
            text-align: center;
        }

        .hero h1 {
            font-size: 32px;
            margin-bottom: 8px;
        }

        .hero p {
            font-size: 15px;
            opacity: 0.92;
        }

        /* ===== MAIN CONTAINER ===== */
        .section {
            padding: 30px 15px;
            max-width: 1100px;
            margin: 0 auto;
            width: 100%;
            flex: 1;
        }

        .cropper-card {
            background: var(--card-bg);
            color: var(--card-text);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
            border: 1px solid var(--border-color);
            max-width: 720px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 100%;
        }

        /* UPLOAD DROP ZONE */
        .upload-zone {
            border: 2px dashed var(--accent-btn);
            border-radius: 12px;
            padding: 40px 15px;
            text-align: center;
            cursor: pointer;
            background: rgba(33, 150, 243, 0.03);
            transition: all 0.2s ease;
        }

        .upload-zone:hover,
        .upload-zone.dragover {
            background: rgba(33, 150, 243, 0.08);
            border-color: var(--accent-hover);
        }

        .upload-zone i {
            font-size: 42px;
            color: var(--accent-btn);
            margin-bottom: 12px;
        }

        .upload-zone h3 {
            font-size: 18px;
            margin-bottom: 6px;
        }

        .upload-zone p {
            font-size: 13px;
            opacity: 0.7;
        }

        .upload-zone input {
            display: none;
        }

        /* LOADING INDICATOR STYLES */
        .loading-box {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            text-align: center;
            gap: 12px;
        }

        .spinner {
            width: 45px;
            height: 45px;
            border: 4px solid rgba(33, 150, 243, 0.2);
            border-top: 4px solid var(--accent-btn);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-box p {
            font-size: 15px;
            font-weight: bold;
            color: var(--text-color);
        }

        .loading-box span {
            font-size: 12px;
            opacity: 0.7;
        }

        /* EDITOR INTERFACE */
        .editor-wrapper {
            display: none;
            flex-direction: column;
            gap: 20px;
            align-items: center;
            width: 100%;
        }

        /* SELECTION TOOLBAR */
        .selection-toolbar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 13px;
            font-weight: bold;
        }

        .selection-toolbar label {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .selection-toolbar input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .image-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 14px;
            width: 100%;
            max-height: 350px;
            overflow-y: auto;
            padding: 12px;
            background: rgba(0, 0, 0, 0.03);
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }

        .img-card {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            height: 160px;
            border: 2px solid var(--border-color);
            background: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .img-card.selected {
            border-color: var(--accent-btn);
            box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
        }

        .img-card canvas {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .img-card .page-checkbox {
            position: absolute;
            top: 6px;
            left: 6px;
            width: 18px;
            height: 18px;
            cursor: pointer;
            z-index: 10;
        }

        .img-card .page-badge {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background: rgba(0, 0, 0, 0.75);
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
        }

        /* CONTROLS DASHBOARD */
        .controls-grid {
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            background: rgba(0, 0, 0, 0.03);
            padding: 16px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }

        .control-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .control-group label {
            font-size: 13px;
            font-weight: bold;
        }

        .control-input,
        .control-select {
            padding: 8px 10px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background: var(--card-bg);
            color: var(--card-text);
            font-size: 13px;
            outline: none;
            width: 100%;
        }

        .control-input:focus,
        .control-select:focus {
            border-color: var(--accent-btn);
        }

        /* ACTION BUTTONS */
        .action-group {
            display: flex;
            gap: 10px;
            width: 100%;
        }

        .btn {
            flex: 1;
            padding: 12px 10px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .btn-primary {
            background: var(--accent-btn);
            color: #fff;
        }

        .btn-primary:hover {
            background: var(--accent-hover);
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
        }

        .btn-secondary {
            background: var(--secondary-btn);
            color: var(--secondary-text);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ===== SEO CONTENT STYLES ===== */
        .seo-content-container {
            max-width: 900px;
            margin: 40px auto 10px auto;
            padding: 30px;
            background: var(--card-bg);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .seo-content-container h2 {
            font-size: 24px;
            margin-top: 30px;
            margin-bottom: 15px;
            color: var(--accent-btn);
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 8px;
        }

        .seo-content-container p {
            line-height: 1.8;
            font-size: 15px;
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .seo-faq-wrapper {
            margin-top: 30px;
        }

        .seo-faq-item {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-bottom: 12px;
            overflow: hidden;
        }

        .seo-faq-btn {
            width: 100%;
            text-align: left;
            padding: 16px 20px;
            background: rgba(0, 0, 0, 0.02);
            border: none;
            font-size: 16px;
            font-weight: bold;
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .seo-faq-btn:hover {
            background: rgba(33, 150, 243, 0.05);
        }

        .seo-faq-answer {
            display: none;
            padding: 16px 20px;
            font-size: 14px;
            line-height: 1.7;
            border-top: 1px solid var(--border-color);
            background: var(--card-bg);
        }

        .seo-faq-item.active .seo-faq-answer {
            display: block;
        }

        .seo-faq-item.active .seo-faq-btn i {
            transform: rotate(180deg);
        }

        /* FOOTER */
        footer {
            background: var(--footer-bg);
            color: var(--footer-text);
            text-align: center;
            padding: 20px;
            margin-top: 40px;
            font-size: 15px;
            width: 100%;
        }

        footer a {
            color: var(--footer-text);
            text-decoration: none;
            margin: 0 6px;
        }

        footer a:hover {
            text-decoration: underline;
        }

        .footer-text {
            margin-top: 10px;
        }

        @media (max-width: 600px) {
            .hero {
                padding: 30px 15px;
            }

            .hero h1 {
                font-size: 24px;
            }

            .hero p {
                font-size: 14px;
            }

            .controls-grid {
                grid-template-columns: 1fr;
            }

            .cropper-card {
                padding: 16px;
            }

            .action-group {
                flex-direction: column;
            }

            .seo-content-container {
                padding: 18px;
            }
        }