
        /* ─────────── Reset & Variables ─────────── */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --sdh-orange: #f4333b;
            --sdh-red: #d32f2f;
            --sdh-dark: #1a1a2e;
            --sdh-light: #f8f6ff;
            --bg: #f5f6fa;
            --text: #1a1a2e;
            --subtext: #6b7280;
            --border: #e9edf4;
            --shadow: rgba(0, 0, 0, 0.08);
            --radius: 12px;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0;
        }

        /* ─────────── SDH HEADER ─────────── */
        .sdh-header {
            width: 100%;
            background: #fff;
            border-bottom: 2px solid var(--sdh-orange);
            padding: 12px 0;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            position: sticky;
            top: 0;
            z-index: 200;
        }

        .sdh-header .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }

        .sdh-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--sdh-dark);
        }

        .sdh-brand .brand-icon {
            width: 38px;
            height: 38px;
            background: linear-gradient(135deg, var(--sdh-orange), var(--sdh-red));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 800;
            font-size: 0.95rem;
            flex-shrink: 0;
        }

        .sdh-brand .brand-name {
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: -0.3px;
        }

        .sdh-brand .brand-name span {
            color: var(--sdh-orange);
        }

        .sdh-brand .brand-tag {
            font-size: 0.6rem;
            color: #888;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .sdh-nav {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
        }

        .sdh-nav a {
            padding: 6px 14px;
            border-radius: 40px;
            font-size: 0.82rem;
            font-weight: 600;
            transition: 0.25s ease;
            color: var(--text);
            text-decoration: none;
            cursor: pointer;
        }

        .sdh-nav a:hover {
            background: #f1f5f9;
        }

        .sdh-nav a.btn-sdh {
            background: var(--sdh-orange);
            color: #fff;
            box-shadow: 0 4px 12px rgba(244, 51, 59, 0.22);
        }

        .sdh-nav a.btn-sdh:hover {
            background: var(--sdh-red);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(244, 51, 59, 0.32);
        }

        /* ─── Dropdown ─── */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown .dropbtn {
            padding: 6px 14px;
            border-radius: 40px;
            font-size: 0.82rem;
            font-weight: 600;
            transition: 0.25s ease;
            color: var(--text);
            text-decoration: none;
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .dropdown .dropbtn:hover {
            background: #f1f5f9;
        }

        .dropdown .dropbtn .arrow {
            font-size: 0.6rem;
            transition: transform 0.25s;
        }

        .dropdown:hover .dropbtn .arrow {
            transform: rotate(180deg);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 180px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
            border: 1px solid #e9edf4;
            padding: 6px 0;
            z-index: 300;
            margin-top: 4px;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .dropdown-content a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 18px;
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text);
            text-decoration: none;
            transition: 0.15s;
            border-radius: 0;
        }

        .dropdown-content a:hover {
            background: #f5f7fb;
            color: var(--sdh-orange);
        }

        .dropdown-content a .icon {
            font-size: 1.1rem;
        }

        /* ─────────── MAIN WRAPPER ─────────── */
        .app-wrapper {
            width: 100%;
            max-width: 1000px;
            padding: 20px;
            flex: 1;
        }

        .app {
            max-width: 680px;
            width: 100%;
            margin: 0 auto;
        }

        /* ─── Original tool card (enhanced) ─── */
        .tool-card {
            max-width: 640px;
            width: 100%;
            background: #fff;
            border-radius: 28px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            padding: 32px 30px 40px;
            margin-bottom: 24px;
        }

        .free-badge {
            float: right;
            background: #16a34a;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 2px 16px;
            border-radius: 20px;
            border: 2px solid #16a34a;
        }

        .tool-icon {
            width: 48px;
            height: 48px;
            margin-bottom: 8px;
        }

        h2 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .sub-heading {
            color: #6b7280;
            font-size: 0.95rem;
            margin-bottom: 20px;
        }

        .layout-badge {
            background: #f0edf8;
            border-radius: 12px;
            padding: 12px 18px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            border: 2px solid #6c2bd9;
            background: #f5f0ff;
        }

        .layout-badge .label {
            font-weight: 600;
            font-size: 0.95rem;
        }

        .layout-badge .detail {
            font-size: 0.85rem;
            color: #4b5563;
        }

        .layout-badge .grid-icon {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            width: 48px;
            height: 36px;
            flex-shrink: 0;
        }

        .layout-badge .grid-icon span {
            background: #6c2bd9;
            border-radius: 3px;
            display: block;
            opacity: 0.6;
        }

        .layout-badge .grid-icon span:nth-child(1),
        .layout-badge .grid-icon span:nth-child(2),
        .layout-badge .grid-icon span:nth-child(3),
        .layout-badge .grid-icon span:nth-child(4) {
            opacity: 1;
        }

        .upload-area {
            border: 2px dashed #a78bfa;
            border-radius: 16px;
            padding: 28px 20px;
            text-align: center;
            background: #faf8ff;
            margin: 8px 0 16px;
            transition: 0.2s;
            cursor: pointer;
        }

        .upload-area:hover {
            background: #f3efff;
            border-color: #6c2bd9;
        }

        .upload-area input[type="file"] {
            display: none;
        }

        .upload-label {
            font-weight: 500;
            color: #4b2b8a;
            font-size: 1.05rem;
        }

        .upload-label small {
            font-weight: 400;
            color: #6b7280;
            font-size: 0.8rem;
        }

        .upload-icon {
            font-size: 2rem;
            display: block;
            margin-bottom: 6px;
        }

        .file-list {
            margin-top: 12px;
            font-size: 0.9rem;
            color: #2d3748;
            display: flex;
            flex-wrap: wrap;
            gap: 6px 12px;
            justify-content: center;
        }

        .file-item {
            background: #ede9fe;
            padding: 4px 14px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .file-item .remove {
            cursor: pointer;
            color: #b91c1c;
            font-weight: 700;
            margin-left: 4px;
            font-size: 1.1rem;
            line-height: 1;
        }

        .btn {
            display: inline-block;
            font-weight: 600;
            padding: 12px 36px;
            border-radius: 40px;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            transition: 0.2s;
            text-align: center;
        }

        .btn-primary {
            background: #6c2bd9;
            color: #fff;
            box-shadow: 0 4px 14px rgba(108, 43, 217, 0.35);
        }

        .btn-primary:hover {
            background: #5a1fb8;
            transform: translateY(-2px);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-success {
            background: #16a34a;
            color: #fff;
            box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
        }

        .btn-success:hover {
            background: #15803d;
            transform: translateY(-2px);
        }

        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            margin-top: 6px;
        }

        .status {
            margin-top: 16px;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 0.95rem;
            display: none;
        }

        .status.show {
            display: block;
        }

        .status.info {
            background: #e0f2fe;
            color: #0369a1;
        }

        .status.success {
            background: #dcfce7;
            color: #15803d;
        }

        .status.error {
            background: #fee2e2;
            color: #b91c1c;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: #e5e7eb;
            border-radius: 10px;
            margin-top: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: #6c2bd9;
            width: 0%;
            transition: width 0.3s;
            border-radius: 10px;
        }

        .download-area {
            margin-top: 16px;
            text-align: center;
        }

        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(108, 43, 217, 0.2);
            border-top-color: #6c2bd9;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            vertical-align: middle;
            margin-right: 8px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .info-text {
            text-align: center;
            margin-top: 20px;
            font-size: 0.85rem;
            color: #6b7280;
            border-top: 1px solid #e9edf4;
            padding-top: 18px;
        }

        .info-text strong {
            color: #1a1a2e;
        }

        .file-count {
            font-size: 0.8rem;
            color: #6b7280;
            margin-top: 4px;
        }

        /* ─────────── TOOLS SECTION ─────────── */
        .tools-grid-section {
            background: #fff;
            border-radius: 28px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            padding: 28px 32px;
            margin-bottom: 24px;
        }

        .tools-grid-section h2 {
            font-size: 1.3rem;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tools-grid-section .sub {
            color: var(--subtext);
            font-size: 0.95rem;
            margin-bottom: 18px;
        }

        .tools-grid-section .tool-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

        .tools-grid-section .tool-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 28px;
            border-radius: var(--radius);
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: 0.25s ease;
            border: 2px solid transparent;
            background: #f8fafc;
            color: var(--text);
            border-color: #e9edf4;
        }

        .tools-grid-section .tool-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            border-color: var(--sdh-orange);
        }

        .tools-grid-section .tool-btn.primary-btn {
            background: var(--sdh-orange);
            color: #fff;
            border-color: var(--sdh-orange);
            box-shadow: 0 4px 14px rgba(244, 51, 59, 0.22);
        }

        .tools-grid-section .tool-btn.primary-btn:hover {
            background: var(--sdh-red);
            border-color: var(--sdh-red);
            box-shadow: 0 6px 24px rgba(244, 51, 59, 0.32);
        }

        .tools-grid-section .tool-btn .icon {
            font-size: 1.3rem;
        }

        /* ─────────── INSTRUCTIONS ─────────── */
        .instructions {
            background: #fff;
            border-radius: 28px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            padding: 28px 32px;
            margin-bottom: 24px;
            scroll-margin-top: 80px;
        }

        .instructions h2 {
            font-size: 1.3rem;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .instructions .steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-top: 12px;
        }

        .instructions .step {
            background: #f8fafc;
            padding: 16px 18px;
            border-radius: var(--radius);
            border-left: 3px solid var(--sdh-orange);
        }

        .instructions .step .num {
            font-weight: 700;
            color: var(--sdh-orange);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .instructions .step p {
            font-size: 0.92rem;
            color: var(--subtext);
            margin-top: 2px;
        }

        /* ─────────── FOOTER ─────────── */
        .sdh-footer {
            width: 100%;
            background: var(--sdh-dark);
            color: rgba(255, 255, 255, 0.8);
            padding: 32px 20px 20px;
            margin-top: 20px;
            border-top: 3px solid var(--sdh-orange);
            scroll-margin-top: 80px;
        }

        .sdh-footer .container {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 28px;
        }

        .sdh-footer .brand-name {
            color: #fff;
            font-size: 1.2rem;
            font-weight: 700;
        }

        .sdh-footer .brand-name span {
            color: var(--sdh-orange);
        }

        .sdh-footer .brand-desc {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 6px;
            max-width: 300px;
        }

        .sdh-footer h4 {
            color: #fff;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .sdh-footer ul {
            list-style: none;
            padding: 0;
        }

        .sdh-footer ul li {
            margin-bottom: 6px;
        }

        .sdh-footer ul li a {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.88rem;
            text-decoration: none;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .sdh-footer ul li a:hover {
            color: var(--sdh-orange);
            transform: translateX(4px);
        }

        .sdh-footer .footer-bottom {
            grid-column: 1 / -1;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            padding-top: 16px;
            margin-top: 8px;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.35);
        }

        .sdh-footer .footer-bottom a {
            color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
            transition: 0.2s;
        }

        .sdh-footer .footer-bottom a:hover {
            color: var(--sdh-orange);
        }

        /* ─────────── Responsive ─────────── */
        @media (max-width: 700px) {
            .sdh-footer .container {
                grid-template-columns: 1fr 1fr;
            }
            .sdh-footer .brand-col {
                grid-column: 1 / -1;
            }
            .sdh-footer .brand-desc {
                max-width: 100%;
            }
            .sdh-header .container {
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
            }
            .sdh-brand {
                justify-content: center;
            }
            .sdh-nav {
                justify-content: center;
            }
            .tools-grid-section .tool-buttons {
                flex-direction: column;
            }
            .tools-grid-section .tool-btn {
                justify-content: center;
            }
            .instructions .steps {
                grid-template-columns: 1fr;
            }
            .dropdown-content {
                left: 50%;
                transform: translateX(-50%);
            }
            .tool-card {
                padding: 24px 18px 30px;
            }
            .tools-grid-section,
            .instructions {
                padding: 20px 18px;
            }
        }

        @media (max-width: 480px) {
            .sdh-footer .container {
                grid-template-columns: 1fr;
                gap: 18px;
            }
            .sdh-footer .brand-col {
                grid-column: 1;
            }
            .app-wrapper {
                padding: 12px;
            }
            .tool-card {
                padding: 18px 14px 24px;
            }
            .tools-grid-section,
            .instructions {
                padding: 16px 14px;
            }
            .sdh-nav a,
            .dropdown .dropbtn {
                padding: 4px 10px;
                font-size: 0.72rem;
            }
            .dropdown-content {
                min-width: 160px;
            }
            .dropdown-content a {
                padding: 6px 14px;
                font-size: 0.75rem;
            }
        }
