        /* ========== DESIGN SYSTEM (Mobile-first, UX/UI) ========== */
        :root {
            --primary: #2563eb;
            --primary-hover: #1d4ed8;
            --primary-light: #eff6ff;
            --bg: #f1f5f9;
            --card: #ffffff;
            --text: #0f172a;
            --text-muted: #64748b;
            --success: #16a34a;
            --error: #dc2626;
            --warning: #eab308;
            --border: #e2e8f0;
            --accent: #2563eb;
            --line-height: 1.6;
            --radius-sm: 8px;
            --radius: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
            --touch-min: 44px;
            --space-xs: 6px;
            --space-sm: 12px;
            --space: 16px;
            --space-lg: 24px;
            --space-xl: 32px;
        }

        .ad-limit-message {
            background-color: #fffbeb;
            color: #92400e;
            padding: 10px;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            margin-top: 10px;
            border: 1px solid #fde68a;
            font-weight: 600;
        }

        .d-none {
            display: none !important;
        }

        * {
            box-sizing: border-box;
        }

        html {
            -webkit-text-size-adjust: none;
            -moz-text-size-adjust: none;
            -ms-text-size-adjust: none;
            text-size-adjust: none;
            overflow-x: hidden;
            max-width: 100vw;
        }

        html.is-app {
            font-size: 16px !important;
        }

        /* Force mobile UI in App Mode regardless of screen width */
        html.is-app .mobile-only {
            display: block !important;
        }

        html.is-app .desktop-only {
            display: none !important;
        }

        html.is-app .bottom-nav {
            display: flex !important;
        }

        body {
            overflow-x: hidden;
            max-width: 100vw;
            font-size: 16px;
            font-family: 'Nunito', 'Rubik', 'Segoe UI', system-ui, sans-serif;
            background: var(--bg);
            color: var(--text);
            margin: 0;
            padding-bottom: env(safe-area-inset-bottom, var(--space));
            padding-left: env(safe-area-inset-left, var(--space));
            padding-right: env(safe-area-inset-right, var(--space));
            line-height: var(--line-height);
            transition: direction 0.3s ease;
            -webkit-font-smoothing: antialiased;
        }

        html[lang="he"] body {
            font-family: 'Rubik', 'Nunito', sans-serif;
        }

        html[lang="ar"] body {
            font-family: 'Tajawal', 'Rubik', sans-serif;
        }

        .container {
            max-width: 640px;
            margin: 0 auto;
            width: 100%;
        }

        /* Main Nav Container - Mobile first */
        .lang-bar {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: var(--space-sm);
            margin-bottom: var(--space-lg);
            padding: var(--space-sm) var(--space);
            position: sticky;
            top: 0;
            z-index: 1000;
            background: var(--card);
            direction: ltr !important;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
        }

        /* Wrappers for Desktop Layout */
        .nav-content-wrapper {
            display: flex;
            align-items: center;
            flex-grow: 1;
            gap: 10px;
        }

        /* Groups */
        .nav-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-items-row {
            display: flex;
            gap: 10px;
        }

        .nav-guides {
            flex-grow: 1;
            justify-content: center;
        }

        .nav-auth {
            margin-left: auto !important;
            margin-right: 0 !important;
        }

        .mobile-nav-label {
            display: none;
            /* Hidden on desktop */
            margin: 15px 0 5px 0;
            color: #888;
            font-size: 0.8rem;
            text-transform: uppercase;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }

        /* Toggle Buttons - Touch-friendly on mobile */
        .mobile-toggle {
            display: none;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 1.25rem;
            cursor: pointer;
            padding: var(--space-sm) var(--space);
            min-height: var(--touch-min);
            min-width: var(--touch-min);
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .mobile-spacer {
            display: none;
        }

        .lang-btn {
            padding: var(--space-sm) var(--space);
            min-height: var(--touch-min);
            border: 1px solid var(--primary);
            background: var(--card);
            cursor: pointer;
            border-radius: 999px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

        .lang-btn:hover,
        .lang-btn.active {
            background: var(--primary);
            color: white;
        }

        .btn-nav-link {
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            font-size: 0.95rem;
            padding: var(--space-sm) var(--space);
            min-height: var(--touch-min);
            border: 1px solid var(--primary);
            background: var(--card);
            border-radius: 999px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            white-space: nowrap;
        }

        .btn-nav-link:hover {
            background-color: var(--primary);
            color: white;
        }

        /* --- Desktop Language Dropdown --- */
        #desktop-lang-toggle {
            display: flex;
            /* Visible on desktop */
            align-items: center;
            gap: 8px;
            padding: 8px 15px;
            border-radius: 20px;
            border: 1px solid #ddd;
            background: #fff;
            cursor: pointer;
            font-size: 1rem;
            color: #333;
            transition: all 0.2s;
        }

        #desktop-lang-toggle:hover {
            background: #f8f8f8;
            border-color: #bbb;
        }

        #desktop-lang-toggle .arrow {
            font-size: 0.8rem;
            color: #666;
        }

        /* Dropdown Container (Hidden by default on Desktop) */
        .lang-dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            /* Align to right for RTL/LTR safety usually, or adjust based on parent */
            background-color: var(--card);
            min-width: 160px;
            box-shadow: var(--shadow);
            z-index: 1001;
            border-radius: var(--radius-sm);
            padding: var(--space-sm);
            flex-direction: column;
            gap: var(--space-xs);
            border: 1px solid var(--border);
            margin-top: var(--space-xs);
        }

        /* Show when active */
        .lang-dropdown-content.show {
            display: flex;
        }

        /* Dropdown Items Style */
        .lang-dropdown-content .lang-btn {
            width: 100%;
            text-align: left;
            /* Or 'start' */
            border: none;
            background: none;
            color: #333;
            padding: 10px;
            border-radius: 6px;
        }

        .lang-dropdown-content .lang-btn:hover {
            background-color: #f0f7ff;
            color: var(--primary);
        }

        .lang-dropdown-content .lang-btn.active {
            background-color: var(--primary);
            color: white;
        }

        /* Relative positioning for the parent group to handle absolute dropdown */
        .nav-lang {
            position: relative;
        }

        /* --- End Desktop Dropdown --- */

        /* MOBILE STYLES */
        @media (max-width: 768px) {
            #desktop-lang-toggle {
                display: none;
                /* Hide desktop toggle on mobile */
            }

            .seo-accordion {
                display: none !important;
            }

            /* Reset Dropdown styles for Mobile to be static list */
            /* Reset Dropdown styles for Mobile to be static list */
            /* REMOVED by user request - keeping desktop dropdown style */
            /*.lang-dropdown-content {
                display: flex !important;
                position: static;
                box-shadow: none;
                border: none;
                padding: 0;
                margin: 0;
                flex-direction: row;
                min-width: auto;
                background: transparent;
            }*/

            /* Restore original flex-row behavior from .nav-items-row if needed */
            .nav-items-row {
                /* Inherits previous styles or re-assert them here */
                gap: 10px;
            }

            /* Override dropdown item styles back to buttons - REMOVED */
            /*.lang-dropdown-content .lang-btn {
                width: auto;
                text-align: center;
                border: 1px solid var(--primary);
            }*/

            .lang-dropdown-content .lang-btn:hover,
            .lang-dropdown-content .lang-btn.active {
                /* background: var(--primary); defined globally */
                /* color: white; defined globally */
            }

            #mobile-menu-toggle {
                display: block;
                /* Show hamburger */
                margin-left: auto;
                /* Push to right (LTR logic) */
            }

            .lang-bar {
                flex-wrap: wrap;
                padding: var(--space);
                border-radius: var(--radius);
            }

            /* Hide all groups by default on mobile */
            .nav-group {
                display: none;
                width: 100%;
                flex-direction: column;
                align-items: stretch;
                /* Full width items */
            }

            /* Show labels on mobile */
            .mobile-nav-label {
                display: block;
            }

            /* OPEN STATE */
            .lang-bar.open .nav-group {
                display: flex;
            }

            .nav-items-row {
                justify-content: center;
                /* Center lang buttons */
            }

            .btn-nav-link {
                justify-content: center;
            }

            .nav-auth {
                margin: 0 !important;
                /* Reset auto margin */
            }

            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }

            .btn-auth {
                width: 100%;
                text-align: center;
                margin-bottom: 5px;
            }
        }

        header {
            text-align: center;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            position: relative;
            padding-right: 16px;
            padding-bottom: 10px;
            padding-left: 16px;
        }

        .floating-logo {
            position: absolute;
            left: var(--space);
            height: 40px;
            width: auto;
        }

        header h1 {
            margin: 0;
            font-size: clamp(1.25rem, 4vw, 1.5rem);
            font-weight: 700;
            color: var(--primary);
        }

        .app-disclaimer {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 5px;
            font-family: 'Varela Round', sans-serif;
            opacity: 0.8;
        }

        .subtitle {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: var(--space-xs);
        }

        .btn-info-link {
            background: none;
            border: none;
            color: var(--accent);
            cursor: pointer;
            font-size: 0.9rem;
            text-decoration: underline;
            margin-top: 10px;
            display: inline-block;
        }

        .feedback-btn {
            background: none;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px 15px;
            margin: 0 5px;
            cursor: pointer;
            font-size: 1.5rem;
            transition: all 0.2s ease;
        }

        .feedback-btn:hover {
            background: #f0f0f0;
            border-color: var(--accent);
        }

        .feedback-btn.selected {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .feedback-stats {
            margin-bottom: 10px;
            font-size: 0.9rem;
            color: #666;
        }

        .content {
            border-radius: var(--radius-lg);
            padding: var(--space-lg) var(--space);
            padding-bottom: var(--space-xl);
            max-width: 100%;
            margin: 0 auto;
            box-shadow: var(--shadow);
            background: var(--card);
            position: relative;
            z-index: 50;
            border: 1px solid var(--border);
        }

        /* Wizard Steps */
        .wizard-step {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .wizard-step.active {
            display: block;
            margin-top: var(--space);
            padding-top: var(--space-sm);
        }

        /* Tests Selection Step */
        .tests-selection-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 5px 0;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .test-selection-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
        }

        .test-selection-card.selectable {
            cursor: pointer;
        }

        .test-selection-card.selectable:hover {
            border-color: var(--primary);
            background: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .test-selection-card.locked {
            background: #f8fafc;
            opacity: 0.9;
            border-style: solid;
        }

        .test-selection-icon {
            font-size: 24px;
            background: var(--primary-light);
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .test-selection-info {
            flex-grow: 1;
            text-align: start;
        }

        .test-selection-info h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
        }

        .test-selection-info p {
            margin: 4px 0 0 0;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .test-selection-action {
            display: flex;
            align-items: center;
        }

        .test-selection-action input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-group {
            margin-bottom: var(--space);
            text-align: center;
        }

        input[type="text"],
        input[type="email"],
        input[type="password"],
        select,
        textarea {
            width: 100%;
            max-width: 320px;
            padding: var(--space) var(--space-sm);
            min-height: var(--touch-min);
            font-size: 1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            text-align: center;
            transition: border-color 0.2s, box-shadow 0.2s;
            background: var(--card);
            font-family: inherit;
        }


        .contact-box {
            background: var(--card);
            padding: var(--space-xl);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            max-width: 600px;
            margin: 0 auto;
            border: 1px solid var(--border);
        }

        .contact-box .form-group {
            text-align: start;
            /* Labels aligned to reading direction */
            margin-bottom: 20px;
        }

        .contact-box label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
            font-size: 0.95rem;
        }

        .contact-box input,
        .contact-box select,
        .contact-box textarea {
            max-width: 100%;
            /* Full width in box */
            text-align: start;
            /* Write natural flow */
            background: #f9f9f9;
            border: 1px solid #e1e1e1;
        }

        .contact-box textarea {
            height: 50px;
            max-height: 200px;
            resize: none;
            overflow-y: auto;
        }

        .contact-box input:focus,
        .contact-box select:focus,
        .contact-box textarea:focus {
            background: #fff;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(0, 107, 229, 0.1);
        }

        .target-highlight {
            border: 2px solid var(--primary) !important;
            box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
        }

        .source-highlight {
            border: 2px solid #28a745 !important;
            box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
        }

        .badge-source {
            background-color: #28a745;
            color: white;
            font-size: 0.65rem;
            padding: 2px 4px;
            border-radius: 4px;
            margin-left: 5px;
            vertical-align: middle;
            text-transform: uppercase;
        }

        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="password"]:focus,
        select:focus,
        textarea:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        /* Form Actions Container */
        .form-actions-container {
            display: flex;
            gap: 10px;
            justify-content: space-between;
            align-items: center;
        }

        /* Mobile: Stack buttons vertically and center */
        @media (max-width: 768px) {
            .form-actions-container {
                flex-direction: column-reverse;
                /* Clear button below Send button */
                justify-content: center;
                align-items: stretch;
                /* Full width buttons */
                gap: 15px;
            }

            .form-actions-container button {
                width: 50%;
                /* Full width on mobile */
            }

            .btn-clear {
                width: 30%;
            }
        }

        .btn-main {
            background: var(--primary);
            color: white;
            border: none;
            padding: var(--space) var(--space-lg);
            min-height: var(--touch-min);
            border-radius: var(--radius);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            max-width: 320px;
            font-family: inherit;
        }

        .btn-main:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
        }

        .btn-main:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: var(--bg);
            color: var(--text);
            border: 1px solid var(--border);
            padding: var(--space) var(--space-lg);
            min-height: var(--touch-min);
            border-radius: var(--radius);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            max-width: 320px;
            font-family: inherit;
        }

        .btn-secondary:hover {
            background: #e2e8f0;
            border-color: #cbd5e1;
        }

        .btn-danger {
            background: var(--error);
            color: white;
            border: none;
            padding: var(--space) var(--space-lg);
            min-height: var(--touch-min);
            border-radius: var(--radius);
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 600;
            width: 100%;
            max-width: 320px;
        }

        .btn-danger:hover {
            filter: brightness(1.05);
            transform: translateY(-1px);
        }

        .btn-native-bridge {
            background: linear-gradient(135deg, #eef4fc 0%, #d8eaff 100%);
            color: var(--primary);
            border: 2px dashed var(--primary);
            padding: 12px 20px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 280px;
            margin: 0 auto;
            display: block;
            box-shadow: 0 4px 10px rgba(0, 107, 229, 0.1);
        }

        .btn-native-bridge:hover {
            background: linear-gradient(135deg, #d8eaff 0%, #c5e0ff 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 107, 229, 0.15);
        }

        .btn-native-bridge:active {
            transform: translateY(0);
        }

        /* Utilities */
        .font-md {
            font-size: 1rem !important;
        }

        .m-0 {
            margin: 0 !important;
        }

        .mt-10 {
            margin-top: 10px !important;
        }

        .p-5-15 {
            padding: 5px 15px !important;
        }

        @media (max-width: 1200px) {
            .choice-btn {
                max-width: 250px;
                margin: 0 auto;
            }
        }

        .choice-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-lg);
            margin: var(--space-lg) auto;
            max-width: 800px;
        }

        @media (max-width: 500px) {
            .choice-grid {
                grid-template-columns: 1fr;
                gap: var(--space);
            }

            .choice-card-header {
                font-size: 1.1rem;
                padding: var(--space-sm);
            }

            .choice-icon-img {
                max-width: 180px;
                max-height: 120px;
            }

            .choice-card-body {
                padding: var(--space-lg);
            }
        }

        .choice-btn {
            display: flex;
            flex-direction: column;
            padding: 0;
            overflow: hidden;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
            width: 100%;
            height: 100%;
            font-family: inherit;
            position: relative;
        }

        .info-pulse {
            position: absolute;
            bottom: 12px;
            right: 12px;
            width: 24px;
            height: 24px;
            background: var(--primary-light);
            border: 1.5px solid var(--primary);
            color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            cursor: help;
            z-index: 10;
            font-size: 0.9rem;
            animation: pulseGrow 2.5s infinite ease-in-out;
            transition: all 0.3s ease;
        }

        [dir="rtl"] .info-pulse {
            right: auto;
            left: 12px;
        }

        .info-pulse:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.3);
        }

        @keyframes pulseGrow {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
            }

            50% {
                transform: scale(1.15);
                box-shadow: 0 0 10px 5px rgba(0, 123, 255, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
            }
        }

        .choice-btn:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary);
        }

        .choice-card-header {
            background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
            color: white;
            padding: var(--space-sm) var(--space);
            font-size: 1.15rem;
            font-weight: 700;
            width: 100%;
        }

        .choice-card-body {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--space-sm);
            flex-grow: 1;
            width: 100%;
            padding: 5px !important;
        }

        .choice-icon-img {
            width: 100%;
            max-width: 180px;
            height: 120px;
            max-height: 180px;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .choice-btn:hover .choice-icon-img {
            transform: scale(1.1) rotate(2deg);
        }

        .choice-icon-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-sm);
            width: 100%;
        }

        /* Results */
        .result-section {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: var(--space);
            margin-bottom: var(--space);
            position: relative;
            box-shadow: var(--shadow-sm);
        }

        .result-title {
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .check-badge {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #fff;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .badge-pending {
            background: #e0e0e0;
            color: #555;
        }

        .badge-success {
            background: var(--success);
        }

        .badge-error {
            background: var(--error);
        }

        .badge-warning {
            background: var(--warning);
            color: #444;
        }

        /* Recording Tabs */
        .rec-tabs-container {
            display: flex;
            gap: 10px;
            margin: 15px 0;
            background: #f1f5f9;
            padding: 5px;
            border-radius: 12px;
            justify-content: center;
        }

        .rec-tab-btn {
            flex: 1;
            padding: 10px 15px;
            border: none;
            background: transparent;
            color: #64748b;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .rec-tab-btn.active {
            background: white;
            color: var(--primary);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        @media (max-width: 520px) {
            .rec-tabs-container {
                flex-direction: column;
                align-items: stretch;
            }

            .rec-tab-btn {
                width: 100%;
                white-space: normal;
            }
        }

        .btn-info-small {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            background: #e2e8f0;
            color: #475569;
            border-radius: 50%;
            font-size: 12px;
            margin-inline-start: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            vertical-align: middle;
            border: 1px solid #cbd5e1;
            font-weight: bold;
        }

        .btn-info-small:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: scale(1.1);
        }

        .card-warning {
            border-left: 4px solid var(--warning) !important;
        }

        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
            max-height: 200px;
            overflow-y: auto;
            padding-right: 5px;
        }

        .country-tag {
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.85rem;
            border: 1px solid transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 60px;
            text-align: center;
        }

        .tag-yes {
            background: #d4edda;
            color: #155724;
            border-color: #c3e6cb;
        }

        .tag-no {
            background: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
            opacity: 0.7;
            text-decoration: line-through;
        }

        .tag-warning {
            background: #fff3cd;
            color: #856404;
            border-color: #ffeeba;
        }

        /* Target Region Highlight */
        .target-highlight {
            border: 2px solid var(--accent) !important;
            background-color: #eef4fc !important;
            /* Light blue */
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(0, 107, 229, 0.3);
            z-index: 10;
            position: relative;
        }

        .diag-card {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: var(--space);
            margin-bottom: var(--space);
            transition: all 0.2s ease;
            gap: var(--space-sm);
            box-shadow: var(--shadow-sm);
        }

        .diag-info {
            display: flex;
            align-items: center;
            gap: 15px;
            width: 100%;
        }

        .diag-icon {
            font-size: 1.5rem;
            width: 40px;
            text-align: center;
            flex-shrink: 0;
        }

        html[dir="ltr"] .diag-text {
            text-align: left;
        }

        .diag-text h3 {
            margin: 0;
            font-size: 1rem;
            color: #333;
        }

        .diag-text p {
            margin: 3px 0 0;
            font-size: 0.85rem;
            color: #666;
        }

        .diag-status {
            font-weight: bold;
            font-size: 1rem;
            min-width: 80px;
            text-align: center;
            flex-shrink: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            /* Center status in its box */
            gap: 5px;
            width: auto;
            margin-left: 0;
        }

        .status-ok {
            color: var(--success);
        }

        .status-fail {
            color: var(--error);
        }

        .status-warn {
            color: #d39e00;
        }

        .status-loading {
            color: #888;
        }

        /* Actions Container */
        .diag-actions {
            display: flex;
            flex-direction: row;
            /* Row for status/buttons */
            align-items: center;
            justify-content: space-between;
            /* Spread them out */
            width: 100%;
            border-top: 1px solid #f0f0f0;
            /* Optional separator */
            padding-top: 10px;
            margin-top: 5px;
        }

        .btn-guide {
            background: var(--primary);
            color: white;
            border: none;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            margin-top: 5px;
            display: none;
        }


        @media (max-width: 650px) {


            .diag-card {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 10px;
                padding: 10px;
            }

            .diag-info {
                flex-direction: row;
                /* Icon and Text side-by-side */
                justify-content: flex-start;
                align-items: flex-start;
                /* Align top or center */
                text-align: right;
                /* Restore RTL text align */
                width: 100%;
            }

            .diag-icon {
                margin-bottom: 0;
                margin-left: 10px;
                /* Spacing */
            }

            .diag-actions {
                width: 100%;
                align-items: center;
                /* Center status and button */
                justify-content: center;
                margin-top: 5px;
            }

            .diag-status {
                margin-left: 0;
                width: 100%;
                justify-content: center;
                margin-top: 5px;
            }
        }

        .btn-guide:hover {
            background: #0056b3;
        }

        .flash-msg-ok {
            background: #fff3cd;
            color: #856404;
            padding: 10px;
            border-radius: 5px;
            font-size: 0.9rem;
            border: 1px solid #ffeeba;
        }

        .flash-msg-bad {
            background: #f8d7da;
            color: #721c24;
            padding: 10px;
            border-radius: 5px;
            font-size: 0.9rem;
            border: 1px solid #f5c6cb;
        }

        .spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 3px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 0.8s infinite linear;
        }

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

        /* Guide & Footer */
        #section-guide {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 2px solid #eee;
            display: none;
        }

        h2.guide-title {
            color: var(--primary);
            margin-bottom: 20px;
            text-align: center;
        }

        h3.step-title {
            color: var(--accent);
            margin-top: 30px;
            margin-bottom: 15px;
        }

        .checklist-item {
            display: block;
            padding: 20px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            background: #fff;
            border-radius: 6px;
            margin-bottom: 12px;
            border: 1px solid #eee;
            font-size: 1.05rem;
        }

        .item-header {
            display: flex;
            align-items: flex-start;
        }

        .item-header input {
            transform: scale(1.3);
            margin: 5px 15px 5px 15px;
            cursor: pointer;
        }

        body[dir="ltr"] .item-header input {
            margin: 5px 15px 5px 0;
        }

        .checklist-item.completed .item-header {
            text-decoration: line-through;
            color: #aaa;
            opacity: 0.8;
        }

        .toggle-link {
            color: var(--primary);
            text-decoration: underline;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.9rem;
            display: block;
            margin-top: 5px;
        }

        .hidden-info-content {
            display: none;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px dashed #ccc;
            font-size: 0.9rem;
        }

        .troubleshoot-box {
            background-color: #fff3cd;
            color: #856404;
            padding: 15px;
            border-radius: 5px;
            margin-top: 10px;
            font-size: 0.9rem;
            border: 1px solid #ffeeba;
            display: none;
            cursor: default;
        }

        .btn-download {
            display: inline-block;
            background: var(--accent);
            color: white;
            padding: 8px 15px;
            text-decoration: none;
            border-radius: 6px;
            font-weight: bold;
            margin-top: 5px;
            font-size: 0.9rem;
        }

        /* Accordion Styles */
        .step-desc {
            display: inline;
            /* Changed to always show */
        }

        .checklist-item .toggle-link,
        .checklist-item .hidden-info-content {
            display: none;
            /* Keep hidden as removed from HTML */
        }

        .checklist-item .btn-download,
        .checklist-item br {
            display: inline-block;
            /* Changed to always show */
        }

        .checklist-item.expanded .step-desc {
            display: inline;
        }

        .checklist-item.expanded .toggle-link {
            display: block;
        }

        .checklist-item.expanded .btn-download {
            display: inline-block;
        }

        .checklist-item.expanded br {
            display: inline;
        }


        details {
            margin-bottom: 10px;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
        }


        summary {
            padding: 15px;
            cursor: pointer;
            font-weight: bold;
            color: var(--primary);
        }

        .faq-answer {
            padding: 15px;
            background: #fff;
            border-top: 1px solid #eee;
        }

        .video-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            height: 0;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
            margin-top: 20px;
        }

        .video-container iframe,
        .video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
            object-fit: contain;
        }

        .community-section {
            background: #eef4ff;
            border: 1px solid #d0d7de;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            margin-top: 40px;
        }



        .footer-device-id {
            font-family: monospace !important;
        }

        /* Modal Styles - Premium Redesign */
        html.modal-open,
        body.modal-open {
            overflow: hidden !important;
            overscroll-behavior: none !important;
            overscroll-behavior-y: none !important;
        }

        .modal {
            display: none;
            /* Flex center is active when display:flex is set by JS */
            align-items: center;
            justify-content: center;
            position: fixed;
            z-index: 2000;
            padding: 20px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            /* Darker overlay */
            backdrop-filter: blur(5px);
            /* Blur effect */
            animation: fadeIn 0.3s;
            overscroll-behavior: contain;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .modal-content {
            background: #ffffff;
            margin: 0;
            /* Centering handled by parent flex */
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 320px;
            /* Removed top: 100px */
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            height: auto;
            max-height: 90vh;
            /* Prevent overflowing screen */
            overflow-y: auto;
            overscroll-behavior: contain;
            position: relative;
            animation: slideUp 0.3s ease-out;
            display: flex;
            flex-direction: column;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-content h2 {
            text-align: center;
            color: #333;
            font-size: 1.8rem;
            font-weight: 700;
        }

        /* AWS Outage Modal Specifics */
        #awsOutageModal .modal-content {
            border-top: 5px solid var(--error);
            text-align: center;
        }

        #awsOutageModal h2 {
            color: var(--error);
            margin-bottom: var(--space);
        }

        #awsOutageMsg {
            line-height: 1.6;
            margin-bottom: var(--space-lg);
            color: var(--text);
        }

        .update-input {
            text-align: right;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 4px;
            padding: 2px 6px;
            width: 120px;
            font-weight: bold;
            transition: all 0.2s ease;
        }

        html[dir="ltr"] .update-input {
            text-align: left;
        }

        .update-input:focus {
            background: rgba(128, 128, 128, 0.1);
            outline: none;
            border-color: var(--primary);
        }

        /* Color Explanation Modal Styles */
        .color-explanation-content {
            display: flex;
            flex-direction: column;
            gap: 15px;
            text-align: left;
        }

        .color-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 8px;
            background: #f9f9f9;
        }

        .color-dot {
            font-size: 1.5rem;
        }



        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
            font-size: 0.95rem;
        }

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e1e1e1;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #fdfdfd;
        }


        /* Samsung Settings Mock */
        .settings-mock {
            background-color: #000;
            color: #fff;
            border-radius: 15px;
            text-align: left;
            overflow: hidden;
            position: relative;
            font-size: 0.9rem;
            direction: ltr;
            /* Always LTR for technical settings usually, but we can make it adapt */
        }

        /* Force LTR for the mock to match screenshots structure usually, 
   but for Hebrew user experience it might be better to follow the phone's language.
   Real Samsung phones in Hebrew are RTL. Let's respect the parent direction or force it if needed.
   The screenshots showed English/Hebrew/Russian. 
   We will rely on the app's global direction.
*/

        .mock-header {
            background-color: #000;
            padding: 15px 20px;
            font-size: 1.2rem;
            font-weight: bold;
            border-bottom: 1px solid #333;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .mock-back-arrow {
            font-size: 1.2rem;
        }

        .mock-list {
            padding: 10px 20px;
        }

        .mock-item {
            margin-bottom: 20px;
            position: relative;
        }

        .mock-label {
            font-size: 0.9rem;
            color: #fff;
            /* Main text color */
            display: block;
            margin-bottom: 2px;
        }

        .mock-value {
            font-size: 0.85rem;
            color: #999;
            /* Subtext color */
            display: block;
        }

        /* Highlight Box */
        .highlight-box {
            border: 2px solid #ff0000;
            border-radius: 4px;
            padding: 2px 4px;
            display: inline-block;
            margin: -4px;
            /* Offset the padding */
            position: relative;
            box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
        }

        /* Specific adjustments for RTL if needed */
        [dir="rtl"] .settings-mock {
            text-align: right;
        }


        /* Google Button Styling (User Spec) */
        .rounded-button {
            background: white;
            border: 1px solid #ddd;
            width: 100%;
            padding: 12px;
            margin-top: 15px;
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .rounded-button:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
            border-color: #ccc;
        }

        .button-icon {
            width: 24px;
            height: 24px;
            display: block;
        }

        /* Close Button Styling */
        .close {
            position: absolute;
            top: 15px;
            left: 15px;
            /* RTL default */
            width: 32px;
            height: 32px;
            background: #f0f0f0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: #555;
            cursor: pointer;
            transition: all 0.2s ease;
            line-height: 1;
        }

        .close:hover {
            background: #e0e0e0;
            color: #333;
            transform: scale(1.1);
        }

        body.access-dark-mode .close {
            background: #334155;
            color: white;
        }

        body.access-dark-mode .close:hover {
            background: #475569;
            color: white;
        }

        .close:active {
            transform: scale(0.95);
            background: #d0d0d0;
        }

        body[dir="ltr"] .close {
            left: auto;
            right: 15px;
        }

        .about-section {
            margin-bottom: 25px;
            text-align: start;
        }

        .about-section h3 {
            font-size: 1.1rem;
            color: var(--primary);
            margin-bottom: 8px;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }

        .about-section p {
            font-size: 0.95rem;
            margin: 0 0 10px 0;
            color: #555;
        }

        .about-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        .about-list li {
            margin-bottom: 8px;
            padding-inline-start: 15px;
            position: relative;
            font-size: 0.9rem;
            color: #444;
        }

        .about-list li::before {
            content: "•";
            color: var(--accent);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-inline-start: -1em;
        }

        /* Preserved Auth Styles */
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-right: auto;
        }

        .btn-auth {
            padding: var(--space-sm) var(--space);
            min-height: var(--touch-min);
            border: 1px solid var(--primary);
            background: var(--card);
            color: var(--primary);
            cursor: pointer;
            border-radius: 999px;
            font-weight: 600;
            transition: all 0.2s ease;
            font-size: 0.9rem;
        }

        .btn-auth:hover {
            background: var(--primary);
            color: white;
        }

        .btn-google {
            background: #4285f4;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
            width: 100%;
        }

        .btn-google:hover {
            background: #357ae8;
        }

        /* CORRECTED MOBILE STYLES (SEPARATE TOGGLES) */
        @media (max-width: 768px) {
            .lang-bar {
                flex-wrap: wrap;
                padding: 10px;
                border-radius: 8px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            }

            .mobile-toggle {
                display: block;
            }

            .mobile-spacer {
                display: block;
            }

            /* Containers hidden by default */
            .nav-group.nav-lang,
            .nav-content-wrapper {
                display: none;
                width: 100%;
                flex-direction: column;
                margin-top: 10px;
            }

            /* Inner groups in wrapper */
            .nav-content-wrapper .nav-group {
                display: flex;
                flex-direction: column;
                width: 100%;
                align-items: stretch;
            }

            /* Show labels on mobile */
            .mobile-nav-label {
                display: block;
            }

            /* STATE: Lang Open */
            .lang-bar.lang-open .nav-group.nav-lang {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding-bottom: 10px;
                border-bottom: 1px solid #eee;
            }

            /* STATE: Menu Open */
            .lang-bar.menu-open .nav-content-wrapper {
                display: flex;
            }

            .nav-items-row {
                justify-content: center;
            }

            .btn-nav-link {
                justify-content: center;
            }

            .nav-auth {
                margin: 0 !important;
            }

            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }

            .btn-auth {
                width: 100%;
                text-align: center;
                margin-bottom: 5px;
            }
        }

        /* 3-TOGGLE MOBILE STYLES (FINAL) */
        /* Mobile Toggles Container (Hidden on Desktop) */
        .mobile-toggles-container {
            display: none;
            width: 100%;
            justify-content: center;
            align-items: center;
        }

        .mobile-toggle {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
        }

        .toggle-icon {
            font-size: 1.5rem;
        }

        .toggle-label {
            font-size: 0.75rem;
            font-weight: 500;
            color: #555;
        }

        @media (max-width: 1200px) {
            .lang-bar {
                margin-bottom: 20px;
            }

            .desktop-only {
                display: none !important;
            }

            .mobile-only {
                display: block !important;
            }

            .mobile-hidden {
                display: none !important;
            }

            .bottom-nav {
                display: none !important;
                /* Hidden by default */
                position: fixed;
                bottom: 20px;
                left: 20px;
                right: 20px;
                background: rgba(255, 255, 255, 0.9);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                flex-direction: row !important;
                justify-content: space-around;
                align-items: center;
                padding: 8px;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
                z-index: 2000;
                border-radius: 40px;
                border: 1px solid rgba(255, 255, 255, 0.3);
                width: calc(100% - 40px);
                max-width: 500px;
                margin: 0 auto;
            }

            .is-app .bottom-nav {
                display: flex !important;
            }

            /* Ensure content is not hidden behind the fixed bottom nav */
            .is-app body {
                padding-bottom: 110px !important;
            }

            .is-app .nav-content-wrapper {
                display: none !important;
            }

            .bottom-nav-item {
                position: relative;
                flex: 1;
                display: flex;
                justify-content: center;
            }

            .mobile-pop-up-menu {
                position: absolute;
                bottom: calc(100% + 15px);
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);
                border-radius: 24px;
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
                border: 1px solid rgba(255, 255, 255, 0.5);
                padding: 10px;
                display: flex;
                flex-direction: column;
                gap: 5px;
                z-index: 3000;
                animation: slideUp 0.3s ease;
            }

            #mobile-lang-menu {
                inset-inline-start: 2px;
            }

            #mobile-more-menu {
                inset-inline-end: 2px;
            }

            @keyframes slideUp {
                from {
                    transform: translateY(20px);
                    opacity: 0;
                }

                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }

            .menu-item {
                background: none;
                border: none;
                text-align: right;
                font-size: 0.95rem;
                font-weight: 600;
                color: var(--text);
                border-radius: 12px;
                cursor: pointer;
                transition: background 0.2s;
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 10px;
                white-space: nowrap;
            }

            .menu-item:active,
            .menu-item:hover {
                background: rgba(37, 99, 235, 0.1);
                color: var(--primary);
            }

            .menu-item.color-error {
                color: var(--error);
            }

            .bottom-nav-btn {
                background: none;
                border: none;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                gap: 6px;
                color: var(--text-muted);
                cursor: pointer;
                flex: 1;
                transition: all 0.2s ease;
                padding: 10px 4px;
                border-radius: 30px;
                position: relative;
            }

            .bottom-nav-btn.active {
                color: var(--primary);
            }

            .bottom-nav-btn.active::before {
                content: '';
                position: absolute;
                top: 0;
                bottom: 0;
                left: 5px;
                right: 5px;
                background: rgba(37, 99, 235, 0.1);
                border-radius: 25px;
                z-index: -1;
            }

            .bottom-nav-btn:active {
                transform: scale(0.95);
            }

            .nav-icon {
                font-size: 1.3rem;
            }

            .nav-label {
                font-size: 0.6rem;
                /* Slightly smaller to fit 6 items */
                font-weight: 700;
                white-space: nowrap;
            }

            .credits-btn {
                color: var(--primary);
            }

            .credits-btn .nav-icon {
                font-size: 1.5rem;
            }

            /* Dashboard Modal Filtering */
            #dashboardModal.mode-auth-only .dashboard-greeting,
            #dashboardModal.mode-auth-only #lblDashboardCredits,
            #dashboardModal.mode-auth-only #dashboardCredits,
            #dashboardModal.mode-auth-only #lblDashboardTotalSearches,
            #dashboardModal.mode-auth-only #dashboardTotalSearches,
            #dashboardModal.mode-auth-only #btnPurchaseCredits,
            #dashboardModal.mode-auth-only #couponSection,
            #dashboardModal.mode-auth-only #upgradeAccountSection,
            #dashboardModal.mode-auth-only .history-title,
            #dashboardModal.mode-auth-only #searchHistoryList {
                display: none !important;
            }

            #dashboardModal.mode-history-only #dashboardEmail,
            #dashboardModal.mode-history-only #dashboardStats,
            #dashboardModal.mode-history-only #upgradeAccountSection {
                display: none !important;
            }

            /* Ensure modals don't overlap with bottom nav and prevent scrolling */
            body.modal-open {
                padding-bottom: 100px;
                overflow: hidden !important;
            }
        }

        /* VALIDATION STYLES (Global) */
        .spinner-small {
            border: 2px solid #f3f3f3;
            border-top: 2px solid var(--primary);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .red-x {
            color: #dc3545;
            margin-right: 5px;
            margin-left: 5px;
        }

        .green-v {
            color: #28a745;
            margin-right: 5px;
            margin-left: 5px;
        }

        .red-text {
            color: #dc3545;
            font-size: 0.9rem;
        }

        .green-text {
            color: #28a745;
            font-size: 0.9rem;
        }

        .validation-msg p {
            margin: 2px 0;
            display: flex;
            align-items: center;
        }

        input.invalid {
            border-color: #dc3545 !important;
            background-color: #fff8f8;
        }

        .validation-icon {
            font-size: 1.2rem;
            font-weight: bold;
        }

        /* Remaining Mobile Styles */
        @media (max-width: 768px) {
            .auth-buttons {
                flex-direction: column;
                width: 100%;
            }

            .btn-auth {
                width: 100%;
                text-align: center;
                margin-bottom: 5px;
            }

            .wizard-step.active {
                display: block;
                margin-top: 2%;
                padding-top: 0;
            }
        }

        /* Sticky New Check Button */
        .new-check-container {
            position: sticky;
            bottom: 0px;
            background: rgba(255, 255, 255, 0.95);
            padding: 15px;
            border-top: 1px solid #eee;
            z-index: 100;
            text-align: center;
            margin-top: 20px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
            /* Ensure full width */
            margin-left: -20px;
            margin-right: -20px;
        }

        .text-btn {
            background: none;
            border: none;
            color: var(--primary);
            text-decoration: none;
            cursor: pointer;
            font-size: 0.9rem;
            padding: 0 5px;
        }

        .text-btn:hover {
            text-decoration: underline;
        }

        /* Sticky New Check Button */
        .new-check-container {
            position: sticky;
            bottom: 0px;
            background: rgba(255, 255, 255, 0.95);
            padding: 15px;
            border-top: 1px solid #eee;
            z-index: 100;
            text-align: center;
            margin-top: 20px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
            /* Ensure full width */
            margin-left: -20px;
            margin-right: -20px;
        }

        /* Accordion Behavior for Diag Cards & Result Sections */
        .diag-card,
        .result-section {
            cursor: pointer;
            position: relative;
            padding-inline-end: 45px !important;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        /* Device Info Summary Styles */
        .device-info-summary {
            display: flex;
            flex-direction: column;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: var(--radius-xl);
            padding: 10px;
            margin: 10px auto 10px;
            max-width: 480px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        }

        .summary-item:last-child {
            border-bottom: none;
        }

        .summary-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .summary-value {
            font-size: 0.95rem;
            color: var(--text);
            font-weight: 800;
            text-align: end;
        }

        .summary-value.text-primary {
            color: var(--primary);
        }

        /* Dark mode support for summary */
        .access-dark-mode .device-info-summary {
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .access-dark-mode .summary-item {
            border-bottom-color: rgba(255, 255, 255, 0.05);
        }

        .access-dark-mode .summary-value:not(.text-primary) {
            color: #f8fafc;
        }

        .diag-card::after,
        .result-section::after {
            content: '(Click)';
        }

        html[lang="he"] .diag-card::after,
        html[lang="he"] .result-section::after {
            content: '(לחץ)';
        }

        html[lang="ru"] .diag-card::after,
        html[lang="ru"] .result-section::after {
            content: '(Нажмите)';
        }

        html[lang="ar"] .diag-card::after,
        html[lang="ar"] .result-section::after {
            content: '(انقر)';
        }

        html[lang="fr"] .diag-card::after,
        html[lang="fr"] .result-section::after {
            content: '(Cliquez)';
        }

        html[lang="de"] .diag-card::after,
        html[lang="de"] .result-section::after {
            content: '(Klick)';
        }

        html[lang="es"] .diag-card::after,
        html[lang="es"] .result-section::after {
            content: '(Clic)';
        }

        html[lang="pt"] .diag-card::after,
        html[lang="pt"] .result-section::after {
            content: '(Clique)';
        }

        .diag-card::after,
        .result-section::after {
            position: absolute;
            top: 22px;
            inset-inline-end: 15px;
            font-size: 0.7rem;
            color: var(--primary);
            font-weight: bold;
            opacity: 0.6;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }

        .diag-card.expanded,
        .result-section.expanded {
            background-color: var(--primary-light) !important;
            border-color: var(--primary) !important;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
        }

        .diag-card.expanded::after,
        .result-section.expanded::after {
            opacity: 0;
            pointer-events: none;
        }

        /* Hide content except headers when not expanded */
        .diag-card:not(.expanded)>*:not(.diag-info),
        .result-section:not(.expanded)>*:not(.result-title) {
            display: none !important;
        }

        /* Ensure smooth display when expanded */
        .diag-card.expanded>.diag-status,
        .diag-card.expanded>.diag-actions {
            display: flex !important;
        }

        .diag-card a,
        .diag-card button,
        .result-section a,
        .result-section button {
            cursor: pointer;
        }


        /* Legal Pages Styles (Ported from privacy.html) */
        .legal-page {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .legal-page h1 {
            color: #2c3e50;
            text-align: center;
            font-size: 2rem;
            clear: both;
            /* Clear sticky button float */
        }

        .legal-page h2 {
            color: #34495e;
            margin-top: 30px;
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
            font-size: 1.5rem;
        }

        .legal-page h3 {
            color: #555;
            margin-top: 20px;
            font-size: 1.2rem;
        }

        .legal-page ul {
            margin-bottom: 20px;
            padding-right: 20px;
            /* RTL Support */
        }

        body[dir="ltr"] .legal-page ul {
            padding-right: 0;
            padding-left: 20px;
        }

        .legal-page p {
            margin-bottom: 15px;
        }

        .back-link {
            display: inline-block;
            margin-bottom: 20px;
            color: #007bff;
            text-decoration: none;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Sticky Modal Footer (Close Button) */
        .sticky-modal-footer {
            position: sticky;
            bottom: 5px;
            background: rgba(255, 255, 255, 0.95);
            padding: 15px 0;
            text-align: center;
            margin-top: 20px;
            border-top: 1px solid #eee;
            margin-left: -30px;
            /* Counteract modal padding */
            margin-right: -30px;
            margin-bottom: -30px;
            width: calc(100% + 60px);
            /* Full width */
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            z-index: 100;
            box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
        }

        /* Result Section Accordion Styles (Buying Mode) */
        #results-buying #buying-content {
            display: grid;
            gap: 14px;
        }

        #results-buying .result-section {
            text-align: inherit;
            cursor: pointer;
            transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
            padding: 18px 18px 16px;
            border: 1px solid rgba(16, 185, 129, 0.25);
            border-radius: 20px;
            background: #ffffff;
            box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
            overflow: hidden;
        }

        #results-buying .result-section:hover {
            transform: translateY(-1px);
            border-color: rgba(16, 185, 129, 0.45);
            background: #ffffff;
        }

        #results-buying .result-section .result-title {
            justify-content: flex-start;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            color: #0f172a;
        }

        #results-buying .result-section .result-title::after {
            content: none;
        }

        #results-buying .result-section .check-badge {
            width: 40px;
            height: 40px;
            border-radius: 14px;
            font-size: 1.1rem;
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
        }

        #results-buying .result-section .badge-pending {
            background: #f0fdf4;
            color: #166534;
        }

        #results-buying .result-section .badge-success {
            background: #10b981;
            color: #fff;
        }

        #results-buying .result-section .badge-error {
            background: #ef4444;
            color: #fff;
        }

        #results-buying .result-section .check-desc {
            color: #334155;
            margin-top: 12px;
            line-height: 1.6;
        }

        #results-buying .result-section .hint-text {
            color: #475569;
            margin-top: 12px;
            line-height: 1.6;
        }

        #results-buying .result-section .tags-container {
            margin-top: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-start;
        }

        #results-buying .result-section .rec-tabs-container {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 8px;
        }

        #results-buying .result-section .rec-tab-btn.active {
            background: white;
            color: var(--primary);
            box-shadow: none;
        }

        #results-buying .new-check-container {
            margin-top: 12px;
            text-align: center;
        }

        /* Keep the accordion behavior intact */
        #results-buying .result-section .check-desc,
        #results-buying .result-section .hint-text,
        #results-buying .result-section .tags-container,
        #results-buying .result-section .rec-tabs-container,
        #results-buying .result-section div[id^="buy-res-"],
        #results-buying .result-section div[id$="-loading"] {
            display: none !important;
        }

        #results-buying #buy-res-2-native,
        #results-buying #buy-res-2-announce {
            display: none !important;
        }

        #results-buying .result-section.expanded #buy-res-2-native.active,
        #results-buying .result-section.expanded #buy-res-2-announce.active {
            display: grid !important;
        }

        #results-buying .result-section:not(.expanded) .tags-container {
            display: none !important;
        }

        #results-buying .result-section.expanded .check-desc {
            display: block;
            margin-top: 12px;
            color: #475569;
        }

        #results-buying .result-section.expanded div[id^="buy-res-"]:not(.tags-container):not([id$="-loading"]) {
            display: block !important;
            margin-top: 12px;
            font-weight: 700;
        }

        #results-buying .result-section.expanded .hint-text {
            display: block !important;
        }

        #results-buying .result-section.expanded .rec-tabs-container {
            display: flex !important;
        }

        #results-buying .result-section.expanded .tags-container {
            display: none !important;
        }

        #results-buying .result-section.expanded .tags-container.active {
            display: flex !important;
            margin-top: 10px;
        }

        #results-buying .result-section.expanded div[id$="-loading"] {
            display: block;
        }

        /* Guide Button Style */
        .btn-guide {
            display: inline-block;
            background-color: #007bff;
            color: #fff !important;
            padding: 8px 15px;
            border-radius: 20px;
            text-decoration: none !important;
            font-size: 0.9rem;
            margin-top: 10px;
            transition: background 0.3s ease, transform 0.2s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .btn-guide:hover {
            background-color: #0056b3;
            transform: translateY(-2px);
            color: #fff !important;
        }

        /* Floating Donation Buttons */
        .floating-donation {
            margin-top: -40px;
            position: fixed;
            display: flex;
            /* Hidden by default, shown only for Israeli users via JS */
            flex-direction: column;
            gap: 10px;
            z-index: 9999;
            animation: floatMove 8s ease-in-out infinite;
        }

        .floating-donation.hidden {
            display: none !important;
        }

        .donation-message {
            position: absolute;
            right: 80px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            padding: 10px 15px;
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            white-space: nowrap;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .donation-message.show {
            opacity: 1;
        }

        .donation-message::after {
            content: '';
            position: absolute;
            left: 100%;
            border: 8px solid transparent;
            border-left-color: white;
        }

        .tel-message {
            position: absolute;
            right: 80px;
            transform: translateY(-50%);
            background: white;
            padding: 10px 15px;
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            white-space: nowrap;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .telegram-message {
            position: absolute;
            right: 80px;
            transform: none;
            margin-top: 0;
            bottom: 20%;
            opacity: 1;
            pointer-events: auto;
        }



        /* CSC Version Row Layout */
        .csc-version-row {
            display: flex;
            gap: 1px;
        }

        @media (max-width: 768px) {
            .csc-version-row {
                flex-direction: column;
            }
        }

        @keyframes floatMove {

            0%,
            100% {
                transform: translateY(0);
            }

            25% {
                transform: translateY(-15px);
            }

            50% {
                transform: translateY(0);
            }

            75% {
                transform: translateY(-10px);
            }
        }

        .donation-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
        }

        .donation-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        }

        .donation-icon {
            width: 80%;
            height: 80%;
            object-fit: contain;
            border-radius: 50%;
            direction: ltr;
        }

        /* Adjust Messages to appear ABOVE the buttons */
        .telegram-wrapper {
            /* Default Desktop Style - just a wrapper */
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Donation Buttons - Mobile/Tablet Layout */
        @media (max-width: 1024px) {
            .floating-donation {
                flex-direction: row;
                left: 0;
                right: 0;
                /* width: 100%; Removed to allow left/right:0 to handle width without overflow */
                justify-content: flex-end;
                /* Extra bottom padding for safe area */
                pointer-events: none;
                /* Let clicks pass through the container background */
                direction: ltr;
                /* Force LTR so Telegram stays on Right */
                box-sizing: border-box;
                /* Ensure padding shouldn't overflow anyway */
            }

            .donation-icon {

                direction: ltr;
            }

            .floating-donation>* {
                pointer-events: auto;
                /* Re-enable clicks on buttons */
            }

            .donation-btn {
                width: 50px;
                height: 50px;
            }

            .telegram-wrapper {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
                margin-left: auto;
                min-width: 50px;
                /* Ensure it doesn't collapse */
                flex-shrink: 0;
                /* Prevent shrinking */
                z-index: -1;
                /* Ensure on top */
                pointer-events: auto;
                /* Ensure clickable */
            }

            .telegram-message {
                position: static;
                transform: none;
                margin: 0;
            }

            .bitpay-wrapper {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
                /* pointer-events: auto; default */
            }

            /* Adjust donation message for mobile (above button) */
            .donation-message {
                right: auto;
                left: 50%;
                transform: translateX(-50%);
                top: auto;
                bottom: 110%;
                /* Above the button */
                white-space: nowrap;
            }

            .donation-message::after {
                /* Arrow pointing down */
                left: 50%;
                top: 100%;
                right: auto;
                bottom: auto;
                transform: translateX(-50%);
                border-left-color: transparent;
                border-top-color: white;
                border-top-width: 8px;
                border-bottom-width: 0;
            }



            /* Hide Header Subtitle on Mobile/Tablet */
            header .subtitle {
                display: none;
            }
        }

        /* Responsive Logo - Show logo.png on mobile, logo2.png on desktop */
        @media (max-width: 768px) {
            .responsive-logo {
                content: url('/img/logo.png');
                left: 10%;
                transform: translateX(-50%);
            }
        }

        /* Supporter Badge */
        .supporter-badge {
            color: #ffd700;
            /* Gold */
            font-weight: bold;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
            padding: 2px 6px;
            border: 1px solid #ffd700;
            border-radius: 4px;
            background: rgba(255, 215, 0, 0.1);
        }

        /* User Badge */
        .user-badge {
            color: #28a745;
            /* Green */
            font-weight: bold;
            text-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
            padding: 2px 6px;
            border: 1px solid #28a745;
            border-radius: 4px;
            background: rgba(40, 167, 69, 0.1);
        }

        /* Custom Autocomplete */
        .suggestions-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--border);
            border-radius: 0 0 8px 8px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            display: none;
            max-width: 280px;
            /* Match input width */
            margin: 0 auto;
            /* Center align */
        }

        .suggestions-dropdown.show {
            display: block;
        }

        .suggestion-item {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            text-align: left;
            direction: ltr;
            /* Model names are English */
            color: #333;
        }

        .suggestion-item:last-child {
            border-bottom: none;
        }

        .suggestion-item:hover {
            background-color: #f5f8ff;
            color: var(--primary);
        }

        .suggestion-item.highlightSelect {
            background-color: #eef4fc;
        }

        .suggestion-item strong {
            color: var(--primary);
        }

        .form-group {
            position: relative;
            /* Ensure dropdown is relative to this */
        }

        /* Accordion Autocomplete Styles */
        .suggestion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #f8f9fa;
            padding: 10px 15px;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 1px solid #e9ecef;
            transition: background-color 0.2s;
        }

        .suggestion-header:hover {
            background-color: #e2e6ea;
        }

        .suggestion-header::after {
            content: '▼';
            font-size: 0.8em;
            transition: transform 0.3s;
        }

        .suggestion-header.active {
            background-color: #e2e6ea;
            border-bottom: none;
            /* Merge with container */
        }

        .suggestion-header.active::after {
            transform: rotate(180deg);
        }

        .suggestion-variants {
            display: none;
            background-color: #fff;
            border-bottom: 1px solid #ddd;
        }

        .suggestion-variants.show {
            display: block;
        }

        .suggestion-item {
            padding: 8px 20px;
            /* Indent variants */
            font-size: 0.95em;
        }




        .text-left {
            text-align: left;
        }

        .text-right {
            text-align: right;
        }

        .text-ltr {
            direction: ltr;
        }

        .d-none {
            display: none;
        }

        .d-block {
            display: block;
        }

        .d-flex {
            display: flex;
        }

        .flex-col {
            flex-direction: column;
        }

        .flex-row {
            flex-direction: row;
        }

        .align-center,
        .align-items-center {
            align-items: center;
        }

        .justify-center {
            justify-content: center;
        }

        .justify-between,
        .justify-content-between {
            justify-content: space-between;
        }

        .flex-wrap {
            flex-wrap: wrap;
        }

        .flex-1 {
            flex: 1;
        }

        .gap-10 {
            gap: 10px;
        }

        .gap-20 {
            gap: 20px;
        }

        .font-bold {
            font-weight: bold;
        }

        .font-normal {
            font-weight: normal;
        }

        .font-sm {
            font-size: 0.85rem;
        }

        .font-md {
            font-size: 0.9rem;
        }

        .font-lg {
            font-size: 1.1em;
        }

        .font-xl {
            font-size: 1.5rem;
        }

        .text-primary {
            color: var(--primary);
        }

        .text-muted {
            color: #666;
        }

        .text-muted-light {
            color: #777;
        }

        .text-white {
            color: white;
        }

        .text-red {
            color: red;
        }

        .text-green {
            color: green;
        }

        .bg-none {
            background: none;
        }

        .border-none {
            border: none;
        }

        .m-0 {
            margin: 0;
        }

        .mt-0 {
            margin-top: 0;
        }

        .mt-5 {
            margin-top: 5px;
        }

        .mt-10 {
            margin-top: 10px;
        }

        .mt-15 {
            margin-top: 15px;
        }

        .mt-20 {
            margin-top: 20px;
        }

        .mb-5 {
            margin-bottom: 5px;
        }

        .mb-10 {
            margin-bottom: 10px;
        }

        .mb-15 {
            margin-bottom: 15px;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        .mx-auto {
            margin-left: auto;
            margin-right: auto;
        }

        .p-0 {
            padding: 0;
        }

        .p-10 {
            padding: 10px;
        }

        .p-20 {
            padding: 20px;
        }

        .pt-10 {
            padding-top: 10px;
        }

        .pt-20 {
            padding-top: 20px;
        }

        .pb-10 {
            padding-bottom: 10px;
        }

        .pb-20 {
            padding-bottom: 20px;
        }

        .w-full {
            width: 100%;
        }

        .w-auto {
            width: auto;
        }

        .h-full {
            height: 100%;
        }

        .cursor-pointer {
            cursor: pointer;
        }

        .border-bottom {
            border-bottom: 1px solid #ddd;
        }

        .border-top {
            border-top: 1px solid #eee;
        }

        /* Highlight Box (About Page) */
        .highlight-box-info {
            background: #e8f4fd;
            border-right: 4px solid #007bff;
            padding: 10px;
            border-radius: 4px;
        }

        .footer-links {
            margin-top: var(--space-xl);
            text-align: center;
            border-top: 1px solid var(--border);
            padding-top: var(--space-lg);
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .footer-links a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        .copyright {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.8rem;
            margin-bottom: var(--space-xl);
            margin-top: var(--space-sm);
        }

        .user-credits {
            margin-left: 10px;
            font-weight: bold;
            display: none;
        }

        .btn-auth-dashboard {
            display: none;
        }

        .modal-title-primary {
            text-align: center;
            color: var(--primary);
            margin-top: 0;
        }

        .btn-close-large {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .form-group-rel {
            position: relative;
        }

        .valid-icon {
            position: absolute;
            left: 10px;
            top: 38px;
        }

        .disabled-opaque {
            opacity: 0.5;
            pointer-events: none;
            transition: opacity 0.3s;
        }


        .dashboard-mail {
            text-align: center;
            margin-bottom: 15px;
            font-weight: bold;
            color: var(--primary);
            direction: ltr;
            font-size: 1.1em;
        }

        .dashboard-container {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .history-title {
            text-align: center;
            border-bottom: 2px solid #ddd;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        .bmc-img {
            max-width: 50px;
            margin: 0 auto 15px auto;
            display: block;
            border-radius: 10px;
        }

        .purchase-desc {
            font-size: 1.1em;
            color: #555;
            margin-bottom: 15px;
        }

        .purchase-terms-box {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 10px;
            margin: 10px 0;
            font-size: 1rem;
            border: 1px solid #eee;
            line-height: 1.6;
        }

        .note-text {
            margin-top: 15px;
            font-size: 0.9em;
            color: #888;
        }

        .btn-link-gray {
            margin-top: 10px;
            color: #666;
            text-decoration: underline;
            background: none;
            border: none;
            cursor: pointer;
        }

        .no-creds-icon {
            font-size: 3rem;
            margin-bottom: 10px;
        }

        .alert-text {
            font-size: 1.1em;
            font-weight: bold;
            margin: 10px 0;
            direction: ltr;
            color: red;
        }

        .confirm-desc {
            margin: 20px 0;
        }

        .flex-center-gap {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .security-modal {
            display: none;
            /* Flex when active */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            background: rgba(255, 255, 255, 1);
            /* Full opaque */
        }

        /* Login Required Modal - Centered */
        #loginRequiredModal {
            display: none;
            /* Flex when toggled in JS, or override in JS */
            align-items: center;
            justify-content: center;
        }

        #loginRequiredModal .modal-content {
            margin: 0;
            /* Remove top margin to allow flex centering */
            max-width: 400px;
        }

        #app-root {
            display: none;
        }

        /* Guide Specific Classes */
        #guide-switch-container {
            display: block !important;
        }

        .guide-section {
            display: block;
            border-top: none;
            margin-top: 0;
        }

        .btn-back-inline {
            padding: 5px 15px;
            text-decoration: none;
            width: auto;
            display: inline-block;
        }

        .p-40 {
            padding: 40px;
        }

        .info-box-gray {
            background: #f0f0f0;
            padding: 10px;
            border-radius: 5px;
        }

        .btn-download {
            display: inline-block;
            margin-top: 5px;
            background: #007bff;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            text-decoration: none;
        }

        .warning-text-orange {
            color: orange;
            margin-top: 5px;
        }

        .guide-video {
            width: 100%;
            max-width: 600px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .mr-25 {
            margin-right: 25px;
        }

        .btn-telegram {
            background: #0088cc;
            width: auto;
            display: inline-block;
        }

        /* Final Batch Utilities */
        .mw-400 {
            max-width: 400px;
        }

        .mw-500 {
            max-width: 500px;
        }

        .bg-black {
            background-color: #000;
        }

        .bg-gray-light {
            background: #f9f9f9;
        }

        .border-dashed {
            border: 1px dashed #ccc;
        }

        .border-dark {
            border-color: #333;
        }

        .opacity-30 {
            opacity: 0.3;
        }

        .spinner-50 {
            width: 50px;
            height: 50px;
            margin: 0 auto;
            border-width: 4px;
        }

        .spinner-12 {
            width: 12px;
            height: 12px;
        }

        .spinner-15 {
            width: 15px;
            height: 15px;
        }

        .text-link-primary {
            color: var(--primary);
            font-weight: bold;
            text-decoration: none;
            font-size: 1.1rem;
        }

        .mock-settings-box {
            background-color: #000;
            color: #fff;
            padding: 10px;
            border-radius: 15px;
            text-align: left;
        }

        .mock-header {
            background-color: #000;
            color: #fff;
            border-bottom: 1px solid #333;
        }

        .btn-xml-link {
            background-color: #6c757d;
            /* Secondary Gray */
            color: white !important;
            font-size: 0.85rem;
            padding: 5px 10px;
            border-radius: 4px;
            text-decoration: none;
            transition: background-color 0.2s;
        }

        .btn-xml-link:hover {
            background-color: #5a6268;
        }

        .btn-restore-history {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            font-weight: 600;
            transition: 0.2s;
            margin-top: 10px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }



        .text-left {
            text-align: left;
        }

        .text-right {
            text-align: right;
        }

        .text-ltr {
            direction: ltr;
        }

        .d-none {
            display: none;
        }

        .d-block {
            display: block;
        }

        .d-flex {
            display: flex;
        }

        .flex-col {
            flex-direction: column;
        }

        .flex-row {
            flex-direction: row;
        }

        .align-center {
            align-items: center;
        }

        .justify-center {
            justify-content: center;
        }

        .justify-between {
            justify-content: space-between;
        }

        .flex-wrap {
            flex-wrap: wrap;
        }

        .flex-1 {
            flex: 1;
        }

        .gap-10 {
            gap: 10px;
        }

        .gap-20 {
            gap: 20px;
        }

        .font-bold {
            font-weight: bold;
        }

        .font-normal {
            font-weight: normal;
        }

        .font-sm {
            font-size: 0.85rem;
        }

        .font-md {
            font-size: 0.9rem;
        }

        .font-lg {
            font-size: 1.1em;
        }

        .font-xl {
            font-size: 1.5rem;
        }

        .text-primary {
            color: var(--primary);
        }

        .text-muted {
            color: #666;
        }

        .text-muted-light {
            color: #777;
        }

        .text-white {
            color: white;
        }

        .text-red {
            color: red;
        }

        .text-green {
            color: green;
        }

        .bg-none {
            background: none;
        }

        .border-none {
            border: none;
        }

        .m-0 {
            margin: 0;
        }

        .mt-0 {
            margin-top: 0;
        }

        .mt-5 {
            margin-top: 5px;
        }

        .mt-10 {
            margin-top: 10px;
        }

        .mt-15 {
            margin-top: 15px;
        }

        .mt-20 {
            margin-top: 20px;
        }

        .mb-5 {
            margin-bottom: 5px;
        }

        .mb-10 {
            margin-bottom: 10px;
        }

        .mb-15 {
            margin-bottom: 15px;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        .mx-auto {
            margin-left: auto;
            margin-right: auto;
        }

        .p-0 {
            padding: 0;
        }

        .p-10 {
            padding: 10px;
        }

        .p-20 {
            padding: 20px;
        }

        .pt-10 {
            padding-top: 10px;
        }

        .pt-20 {
            padding-top: 20px;
        }

        .pb-10 {
            padding-bottom: 10px;
        }

        .pb-20 {
            padding-bottom: 20px;
        }

        .w-full {
            width: 100%;
        }

        .w-auto {
            width: auto;
        }

        .h-full {
            height: 100%;
        }

        .cursor-pointer {
            cursor: pointer;
        }

        .border-bottom {
            border-bottom: 1px solid #ddd;
        }

        .border-top {
            border-top: 1px solid #eee;
        }

        /* Specific Refactors */
        .footer-links {
            text-align: center;
            border-top: 1px solid #eee;
            padding-top: 10px;
        }



        .user-credits {
            margin-left: 10px;
            font-weight: bold;
            display: none;
        }

        .btn-auth-dashboard {
            display: none;
        }

        .modal-title-primary {
            text-align: center;
            color: var(--primary);
            margin-top: 0;
        }

        .btn-close-large {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .form-group-rel {
            position: relative;
        }

        .valid-icon {
            position: absolute;
            left: 10px;
            top: 38px;
        }

        .disabled-opaque {
            opacity: 0.5;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .modal-scrollable {

            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .dashboard-mail {
            text-align: center;
            margin-bottom: 15px;
            font-weight: bold;
            color: var(--primary);
            direction: ltr;
            font-size: 1.1em;
        }

        .dashboard-container {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .history-title {
            text-align: center;
            border-bottom: 2px solid #ddd;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        .bmc-img {
            max-width: 50px;
            margin: 0 auto 15px auto;
            display: block;
            border-radius: 10px;
        }

        .purchase-desc {
            font-size: 1.1em;
            color: #555;
            margin-bottom: 15px;
        }

        .purchase-terms-box {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 10px;
            margin: 10px 0;
            font-size: 1rem;
            border: 1px solid #eee;
            line-height: 1.6;
        }

        .note-text {
            margin-top: 15px;
            font-size: 0.9em;
            color: #888;
        }

        .btn-link-gray {
            margin-top: 10px;
            color: #666;
            text-decoration: underline;
            background: none;
            border: none;
            cursor: pointer;
        }

        .no-creds-icon {
            font-size: 3rem;
            margin-bottom: 10px;
        }

        .alert-text {
            font-size: 1.1em;
            font-weight: bold;
            margin: 10px 0;
            direction: ltr;
            color: red;
        }

        .confirm-desc {
            margin: 20px 0;
        }

        .flex-center-gap {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .security-modal {
            display: none;
            z-index: 10000;
            background: rgba(255, 255, 255, 0.95);
        }

        .btn-restore-history:hover {
            background-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        /* Fix Layout Issues - Buttons and Centering */
        .wizard-nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: var(--space-lg);
            width: 100%;
            gap: var(--space);
        }

        .btn-back-custom {
            margin-bottom: 5px;
            background: var(--bg);
            border: 1px solid var(--border);
            min-height: var(--touch-min);
            padding: var(--space-sm) var(--space);
            border-radius: var(--radius);
            color: var(--text);
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-back-custom:hover {
            background: #e2e8f0;
            border-color: #cbd5e1;
        }

        .help-container {
            text-align: center;
            margin-bottom: 20px;
            display: block;
            /* Ensure block for centering */
        }

        .spinner-container {
            text-align: center;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            /* Ensure full width for centering */
        }

        /* Floating Telegram / Donation Button - Fixed Right */
        #floatingDonation {
            position: fixed;
            right: 18px;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
        }

        #floatingDonation.hidden {
            display: none !important;
        }

        .telegram-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-direction: row;
            direction: ltr;
            /* Put text to the left of button consistently */
        }

        .telegram-message {
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.85rem;
            white-space: nowrap;
        }

        .donation-btn {
            display: block;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s;
        }

        .donation-btn:hover {
            transform: scale(1.1);
        }

        .donation-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Premium Telegram Button */
        .btn-telegram-premium {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
            color: white;
            padding: 12px 24px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.1rem;
            box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: none;
            min-width: 200px;
        }

        .btn-telegram-premium:hover {
            background: linear-gradient(135deg, #27a8e6 0%, #0099e6 100%);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
            color: white;
            /* Ensure text remains white */
        }

        .btn-telegram-premium img,
        .btn-telegram-premium svg {
            height: 24px;
            filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
        }

        /* Styled Back Button */
        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            border-radius: 8px;
            font-weight: bold;
            transition: all 0.3s;
            display: inline-block;
            min-width: 100px;
            text-decoration: none;
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        .char-count {
            text-align: end;
            font-size: 0.8rem;
            color: #888;
            margin-top: 5px;
            font-family: monospace;
        }

        .form-actions-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .btn-clear {
            background: transparent;
            border: 2px solid var(--error);
            color: var(--error);
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s;
            display: none;
            width: 30%;
            /* Hidden by default */
        }


        .btn-clear:hover {
            background: var(--error);
            color: white;
        }

        /* Custom Modal Styling */
        .custom-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
            transition: opacity 0.3s ease;
        }

        .custom-modal {
            background: white;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            text-align: center;
            max-width: 400px;
            width: 90%;
            animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes modalPop {
            0% {
                transform: scale(0.8);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-title {
            margin-top: 0;
            color: var(--text-dark);
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .modal-desc {
            color: #666;
            margin-bottom: 25px;
            font-size: 1rem;
        }

        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .btn-modal {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-modal-confirm {
            background: var(--error);
            color: white;
        }

        .btn-modal-confirm:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }

        .btn-modal-cancel {
            background: #e0e0e0;
            color: #333;
        }

        .btn-modal-cancel:hover {
            background: #d0d0d0;
        }

        /* Utility Classes */
        .d-none {
            display: none !important;
        }

        .mt-20 {
            margin-top: 20px !important;
        }

        /* Password Validation Styles */
        .red-x {
            color: red;
            margin-inline-end: 5px;
        }

        /* Premium Telegram Button */
        .btn-telegram-premium {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
            color: white;
            padding: 12px 24px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.1rem;
            box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: none;
            min-width: 200px;
        }

        .btn-telegram-premium:hover {
            background: linear-gradient(135deg, #27a8e6 0%, #0099e6 100%);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
            color: white;
            /* Ensure text remains white */
        }

        .btn-telegram-premium img,
        .btn-telegram-premium svg {
            height: 24px;
            filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
        }

        /* Styled Back Button */
        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            border-radius: 8px;
            font-weight: bold;
            transition: all 0.3s;
            display: inline-block;
            min-width: 100px;
            text-decoration: none;
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        .char-count {
            text-align: end;
            font-size: 0.8rem;
            color: #888;
            margin-top: 5px;
            font-family: monospace;
        }

        .form-actions-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 40px;
        }



        .btn-clear:hover {
            background: var(--error);
            color: white;
        }

        /* Custom Modal Styling */
        .custom-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
            transition: opacity 0.3s ease;
        }

        .custom-modal {
            background: white;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            text-align: center;
            max-width: 400px;
            width: 90%;
            animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes modalPop {
            0% {
                transform: scale(0.8);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-title {
            margin-top: 0;
            color: var(--text-dark);
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .modal-desc {
            color: #666;
            margin-bottom: 25px;
            font-size: 1rem;
        }

        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .btn-modal {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-modal-confirm {
            background: var(--error);
            color: white;
        }

        .btn-modal-confirm:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }

        .btn-modal-cancel {
            background: #e0e0e0;
            color: #333;
        }

        .btn-modal-cancel:hover {
            background: #d0d0d0;
        }

        /* Utility Classes */
        .d-none {
            display: none !important;
        }

        .text-center {
            text-align: center !important;
        }

        .mt-20 {
            margin-top: 20px !important;
        }

        /* Password Validation Styles */
        .red-x {
            color: red;
            margin-inline-end: 5px;
        }

        .green-v {
            color: green;
            margin-inline-end: 5px;
        }

        .red-text {
            color: #d32f2f;
        }

        .green-text {
            color: #388e3c;
        }

        .validation-msg p {
            margin: 2px 0;
            font-size: 0.9em;
            display: flex;
            align-items: center;
        }

        /* Flash Warning Modal Styles */
        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(-50px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        #accept-flash-warning:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
        }

        #accept-flash-warning:active {
            transform: scale(0.98);
        }

        /* Image View Button */
        .btn-view-image {
            background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
        }

        .btn-view-image:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.5);
        }

        .btn-view-image:active {
            transform: translateY(0);
        }

        /* Flash Warning Modal Structure */
        #flash-warning-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        .flash-modal-content {
            background: #ffffff;
            border: 2px solid #ff9800;
            border-radius: 12px;
            padding: 25px;
            max-width: 450px;
            width: 85%;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            animation: modalSlideIn 0.4s ease;
        }

        .flash-modal-title {
            color: #333;
            font-size: 1.5rem;
            margin-bottom: 15px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .flash-modal-list {
            color: #555;
            font-size: 0.95rem;
            line-height: 1.8;
            list-style: none;
            padding: 0;
            margin-bottom: 20px;
        }

        .flash-modal-list li {
            margin-bottom: 12px;
            padding-right: 20px;
            position: relative;
        }

        .flash-modal-list li .bullet {
            position: absolute;
            right: 0;
            color: #ff9800;
            font-weight: bold;
            font-size: 1.1rem;
        }

        .flash-modal-list li strong {
            color: #ff6b00;
        }

        .flash-modal-button-container {
            text-align: center;
        }

        /* Image Modal Structure */
        #image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

        .image-modal-content {
            position: relative;
            max-width: 500px;
            max-height: 80vh;
            background: white;
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }

        .image-modal-close {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #ff5252;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            z-index: 1;
        }

        .image-modal-title {
            text-align: center;
            margin-bottom: 10px;
            color: #333;
            font-size: 1.1rem;
        }

        .image-modal-img {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 8px;
            display: block;
            margin: 0 auto;
        }

        /* Sticky Back Button for Contact Page */
        .sticky-back-btn {
            position: sticky;
            bottom: -50%;
            /* Below navbar */
            z-index: 900;
            background: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: inline-block;
            text-align: center;
            border-radius: 8px;
            padding: 3px;
        }

        html[dir="rtl"] .sticky-back-btn {
            margin-right: 0;
            margin-left: auto;
            /* Push to right in RTL */
        }

        html[dir="ltr"] .sticky-back-btn {
            margin-left: 0;
            margin-right: auto;
            /* Push to left in LTR */
        }

        /* Clear floats after title? No, title clears. */
        .contact-box h1 {
            clear: both;
            /* Add space for the fixed button if overlapping content */
        }

        /* Mobile Adjustment */
        @media (max-width: 768px) {
            .sticky-back-btn {
                top: 10px;
            }
        }

        .footer-links {
            position: fixed;
            bottom: 60px;
            left: 0;
            width: 100%;
            text-align: center;
            z-index: -1;
            /* Ensure it's above other content if necessary, but typically below modals */
            background-color: transparent;
            /* Or match body bg if needed to mask scrolling content */
            pointer-events: none;
            /* Let clicks pass through if it covers area, but specific links need pointer-events: auto */
        }

        .footer-links a {
            pointer-events: auto;
            /* Re-enable clicks on links */
        }

        /* Responsive Video Container */
        .video-container {
            position: relative;
            padding-bottom: 56.25%;
            /* 16:9 aspect ratio */
            height: 0;
            overflow: hidden;
            max-width: 100%;
            margin: 0 auto;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Telegram Button Styles */
        .btn-telegram {
            background: linear-gradient(135deg, #0088cc, #0056b3);
            color: white !important;
            padding: 12px 24px;
            border-radius: 50px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
            border: 2px solid transparent;
        }

        .btn-telegram:hover {
            background: linear-gradient(135deg, #0056b3, #003d82);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
            border-color: #0088cc;
        }

        .btn-telegram:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
        }

        /* SEO Accordion */
        .seo-accordion {
            margin-right: 35%;
            max-width: 400px;
            border: none;
            background: transparent;
            color: #666;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
        }

        .seo-accordion summary {
            cursor: pointer;
            font-weight: bold;
            color: #c2c5c9;
            list-style: none;
            text-align: center;
            background: transparent;
            padding: 10px;
        }

        .seo-accordion summary::-webkit-details-marker {
            display: none;
        }

        .seo-accordion .seo-content-inner {
            margin-top: 15px;
            text-align: center;
            opacity: 0.9;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .seo-accordion ul {
            list-style: none;
            padding: 0;
            margin: 10px 0;
        }

        .seo-accordion h3 {
            font-size: 1rem;
            color: #333;
            margin-top: 10px;
        }

        .seo-accordion .keywords {
            font-size: 0.8rem;
            color: #999;
            margin-top: 15px;
        }

        /* Password Change Button Styling */
        #btnChangePassword {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            max-width: 280px;
            margin: 10px auto 0;
        }

        #btnChangePassword:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }

        #btnChangePassword:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
        }

        /* Change Password Modal Styling */
        #changePasswordModal .modal-content {
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #changePasswordModal .form-group {
            margin-bottom: 20px;
        }

        #changePasswordModal label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            text-align: start;
        }

        #changePasswordModal input[type="password"] {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        #changePasswordModal input[type="password"]:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            outline: none;
        }

        #changePasswordModal .btn-main {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            width: 100%;
            padding: 14px;
            font-size: 1.1rem;
            margin-top: 10px;
        }

        #changePasswordModal .btn-main:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .text-red {
            color: #dc3545;
            font-size: 0.9rem;
            margin-top: 10px;
        }



        /* Password Change Button Styling */
        #btnChangePassword {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            max-width: 280px;
            margin: 10px auto 0;
        }

        #btnChangePassword:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }

        #btnChangePassword:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
        }

        /* Change Password Modal Styling */
        #changePasswordModal .modal-content {
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #changePasswordModal .form-group {
            margin-bottom: 20px;
        }

        #changePasswordModal label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            text-align: start;
        }

        #changePasswordModal input[type="password"] {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        #changePasswordModal input[type="password"]:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            outline: none;
        }

        #changePasswordModal .btn-main {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            width: 100%;
            padding: 14px;
            font-size: 1.1rem;
            margin-top: 10px;
        }

        #changePasswordModal .btn-main:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .text-red {
            color: #dc3545;
            font-size: 0.9rem;
            margin-top: 10px;
        }

        .text-green {
            color: #28a745;
            font-size: 0.9rem;
            margin-top: 10px;
            font-weight: 600;
        }

        /* history list items - New Clean Implementation */
        .history-item {
            border: 1px solid #ddd;
            padding: 15px;
            margin: 10px 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            background: white;
        }

        .history-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .history-content {
            display: flex;
            align-items: center;
            width: 100%;
            gap: 10px;
        }

        .history-loader-wrapper {
            flex: 0 0 auto;
        }

        .btn-load-history {
            background: linear-gradient(135deg, #006be5 0%, #0056b3 100%);
            color: white;
            border: none;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8em;
            cursor: pointer;
        }

        .history-model {
            flex: 1;
            text-align: right;
            font-weight: bold;
            font-size: 1.1em;
            white-space: nowrap;
        }

        .history-detail {
            flex: 1;
            text-align: right;
            font-size: 0.9em;
            color: #444;
            white-space: nowrap;
        }

        .history-date {
            flex: 0 0 auto;
            font-size: 0.85em;
            color: #666;
            white-space: nowrap;
        }

        @media (max-width: 500px) {

            .history-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
        }

        /* Mobile Responsive Styles for History List */
        @media (max-width: 768px) {
            #searchHistoryList {
                width: 100%;
                box-sizing: border-box;
                padding: 5px;
                overflow-x: hidden;
            }

            .history-item {
                padding: 12px;
            }

            .history-loader-wrapper {
                width: 100%;
                margin-bottom: 5px;
            }

            .btn-load-history {
                width: 100%;
                text-align: center;
                display: block;
                padding: 8px;
            }

            .history-model,
            .history-detail,
            .history-date {
                width: 100%;
                text-align: right;
                display: block;
                white-space: normal;
                /* Force text wrap */
                word-break: break-word;
                margin-bottom: 4px;
                flex: none;
                /* Disable flex sizing on mobile */
            }

            .history-model {
                font-size: 1.2em;
                margin-bottom: 8px;
                color: #000;
            }
        }

        /* RTL Fixes for 3-Column Layout */
        html[dir='rtl'] .history-col-info {
            align-items: flex-start;
            /* Keep model on right in RTL logic (start) */
        }

        html[dir='rtl'] .history-col-actions {
            justify-content: flex-end;
            /* Keep button on left in RTL logic (end) */
        }

        /* --- HISTORY LIST 3-COLUMN LAYOUT (FINAL) --- */

        /* Badge Styles */
        .history-type-badge {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8em;
            font-weight: bold;
            display: inline-block;
        }

        .badge-buying {
            background-color: #e3f2fd;
            color: #1565c0;
        }

        .badge-existing {
            background-color: #f3e5f5;
            color: #7b1fa2;
        }

        .text-primary {
            color: var(--primary);
            font-weight: bold;
        }

        /* Container - Force Flex Row for Desktop */
        .history-content {}

        /* Col 1: Model Info (Left aligned normally) */
        .history-col-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            min-width: 0;
        }

        /* Col 2: Details (Center aligned) */
        .history-col-details {
            flex: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .history-meta-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Col 3: Actions (Right aligned) */
        .history-col-actions {
            flex: 1;
            display: flex;
            justify-content: flex-end;
        }

        /* Text Styles */
        .history-model {
            font-size: 1.25em;
            font-weight: bold;
            color: #000;
        }

        .history-date {
            font-size: 0.85em;
            color: #777;
        }

        .btn-load-history {
            background: linear-gradient(135deg, #006be5 0%, #0056b3 100%);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9em;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
        }

        .btn-load-history:hover {
            transform: translateY(-2px);
        }

        /* MOBILE RESPONSIVE OVERRIDE - GRID/STACK */
        @media (max-width: 768px) {
            .history-content {
                grid-template-areas:
                    'info details'
            }

            /* Info: Left Column */
            .history-col-info {
                grid-area: info;
            }

            /* Details: Right Column */
            .history-col-details {
                grid-area: details;
            }

            .history-meta-row {}

            /* Actions: Full Width Bottom */
            .history-col-actions {
                grid-area: actions;
            }

            .btn-load-history {}

            .history-target,
            .history-type-badge {
                font-size: 0.9em;
            }
        }

        /* Device Full Name Style */
        .history-device-name {
            font-size: 0.85em;
            color: #666;
            margin-top: 2px;
            font-weight: normal;
        }

        /* Intro Screen - Vibrant UI Upgrade (Compact & Responsive) */
        #intro-step {
            padding: 10px;
            max-width: 800px;
            text-align: center;
            background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0, 107, 229, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.8);
            position: relative;
            overflow: hidden;
            /* Replaced fixed height with min-height for responsiveness */
            height: auto;
            min-height: 100px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        #intro-step button {
            margin-top: -10px;
            /* Reset negative margin for better flow */
        }

        /* Decorative background circle */
        #intro-step::before {
            content: '';
            position: absolute;
            top: -50px;
            left: -50px;
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, rgba(0, 107, 229, 0.05) 0%, transparent 70%);
            border-radius: 50%;
            z-index: 0;
            pointer-events: none;
        }

        .intro-title {
            font-size: 2rem;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #0052cc, #00c6ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
            letter-spacing: -0.5px;
            position: relative;
            z-index: 1;
        }

        .intro-desc {
            font-size: 1.1rem;
            color: #555;
            font-weight: 500;
            max-width: 650px;
            margin-left: auto;
            margin-right: auto;
            position: relative;
            z-index: 1;
            background: linear-gradient(90deg, #0052cc, #00c6ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .intro-bullets {
            display: flex;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 12px;
            padding: 0;
            list-style: none;
            margin-bottom: 25px;
            position: relative;
            z-index: 1;
            flex-wrap: wrap;
        }


        #btnStartIntro.btn-main {
            font-size: 1.05rem;
            padding: var(--space) var(--space-xl);
            min-height: var(--touch-min);
            border-radius: var(--radius);
            background: var(--primary);
            border: none;
            font-weight: 700;
            color: white;
            transition: all 0.2s ease;
            position: relative;
            z-index: 1;
            align-self: center;
        }

        #btnStartIntro.btn-main:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
        }

        #btnStartIntro.btn-main:active {
            transform: translateY(0);
        }

        /* --- Responsive Design --- */

        /* Tablet (max-width: 1024px) */
        @media (max-width: 1024px) {
            #intro-step {
                max-width: 90%;
            }

            .intro-bullets {
                grid-template-columns: 1fr 1fr;
                /* Force 2 columns */
            }
        }

        /* Mobile (max-width: 768px) */
        @media (max-width: 768px) {
            .intro-title {
                font-size: 1.6rem;
            }

            #intro-step {
                padding: 10px;
                margin: 1px auto;
                min-height: auto;
                /* Remove fixed height constraint */
            }



            .intro-bullets li {
                font-size: 0.9rem;
                background-color: #e2e8f03d;
            }

            #btnStartIntro.btn-main {
                width: 100%;
                padding: 12px;
                font-size: 1.1rem;
            }

            .intro-desc {
                font-size: 1rem;
                margin-bottom: 15px;
            }
        }

        /* Small Mobile (max-width: 480px) */
        @media (max-width: 580px) {


            #intro-step::before {
                display: none;
                /* Hide decorative circle on small screens */
            }
        }

        .btn-danger {
            background: #dc3545 !important;
            color: white !important;
            border: 1px solid #dc3545 !important;
            transition: all 0.2s ease;
            cursor: pointer;
            border-radius: 8px;
            font-weight: bold;
        }

        .btn-danger:hover {
            background: #bb2d3b !important;
            border-color: #b02a37 !important;
        }

        /* --- Wizard Steps Logic --- */
        .wizard-step {
            display: none !important;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }

        .wizard-step.active {
            display: block !important;
            opacity: 1;
            animation: fadeIn 0.4s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @media (max-width: 440px) {
            .modal-content {
                height: auto;
                max-height: 90vh;
            }
        }

        /* Buy Me a Coffee Widget - hidden until user clicks "buy" or "have device"; then 5px from bottom */
        #bmc-wbtn {
            display: none !important;
            visibility: hidden !important;
            bottom: 5px !important;
            bottom: calc(5px + env(safe-area-inset-bottom)) !important;
        }

        body.mode-selected #bmc-wbtn {
            visibility: visible !important;
        }

        @media (max-width: 1024px) {
            .footer-links {
                bottom: 30px;
            }

            .copyright {
                bottom: -30px;
            }
        }

        @media (max-width: 768px) {

            html,
            body {
                overflow-x: hidden;
                max-width: 100vw;
            }
        }


        /* Fix: Ensure Modals are always above the .content div (which is z-index 10000) */
        .modal {
            z-index: 20000 !important;
        }

        #btnLoginByKeyStrict {
            background: #28a745;
        }

        /* Google Login Button Status Borders */
        .google-btn-app {
            border: 3px solid #28a745 !important;
            /* Green for Android */
            box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
        }

        .google-btn-web {
            border: 3px solid #007bff !important;
            /* Blue for Web */
            box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
        }

        /* Credit Update Animation */
        @keyframes creditFlash {
            0% {
                transform: scale(1);
                color: inherit;
            }

            50% {
                transform: scale(1.3);
                color: #28a745;
                text-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
            }

            100% {
                transform: scale(1);
                color: inherit;
            }
        }

        .credit-flash {
            display: inline-block !important;
            animation: creditFlash 0.8s ease-in-out;
        }

        /* Loading Screen */
        #app-loading-screen {
            position: fixed;
            inset: 0;
            background: var(--bg);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 99999;
            transition: opacity 0.4s ease, visibility 0.4s;
            padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        }

        #app-loading-screen.fade-out {
            opacity: 0;
            visibility: hidden;
        }

        .loading-content {
            text-align: center;
        }

        .loading-logo {
            width: 80px;
            height: auto;
            margin-bottom: 20px;
            animation: pulseLogo 2s infinite ease-in-out;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            margin: 0 auto 15px;
            animation: spin 1s linear infinite;
        }

        .loading-text {
            color: #666;
            font-size: 1.1rem;
            font-weight: 500;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes pulseLogo {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.8;
            }
        }

        /* App blocked / Browser landing - UX polish */
        .app-blocked-landing {
            position: fixed;
            inset: 0;
            z-index: 100000;
            background: linear-gradient(160deg, #e0e7ff 0%, #f1f5f9 50%, #fff 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: var(--space);
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }

        .app-blocked-landing.d-none {
            display: none !important;
        }

        .app-blocked-landing:not(.d-none) {
            display: flex !important;
        }

        .app-blocked-content {
            text-align: center;
            max-width: 400px;
            padding: var(--space-xl);
            background: var(--card);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
        }

        .app-blocked-logo {
            width: 88px;
            height: auto;
            margin-bottom: var(--space-lg);
        }

        .app-blocked-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: var(--space-sm);
            color: var(--text);
        }

        .app-blocked-desc {
            color: var(--text-muted);
            margin-bottom: var(--space-lg);
            line-height: 1.6;
            font-size: 1rem;
        }

        .app-blocked-cta {
            display: inline-block;
            padding: var(--space) var(--space-lg);
            min-height: var(--touch-min);
            text-decoration: none;
            border-radius: var(--radius);
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .app-blocked-cta:hover {
            transform: translateY(-1px);
        }

        .landing-lang-selector {
            margin: var(--space-lg) 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            width: 100%;
        }

        .lang-dropdown-mobile {
            display: block;
            position: relative;
            width: 100%;
            max-width: 250px;
        }

        .lang-toggle-btn {
            width: 100%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--border);
            padding: 10px 15px;
            border-radius: var(--radius);
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .lang-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--primary);
        }

        .lang-menu-popup {
            position: absolute;
            bottom: 100%;
            left: 0;
            width: 100%;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            margin-bottom: 8px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            padding: 8px;
            max-height: 250px;
            overflow-y: auto;
        }

        .lang-menu-popup .lang-btn {
            background: none;
            border: none;
            padding: 10px 15px;
            text-align: left;
            border-radius: 8px;
            cursor: pointer;
            width: 100%;
            font-size: 0.9rem;
            color: var(--text);
            transition: background 0.2s ease;
        }

        [dir="rtl"] .lang-menu-popup .lang-btn {
            text-align: right;
        }

        .lang-menu-popup .lang-btn:hover {
            background: var(--primary-light);
            color: var(--primary);
        }

        /* Custom Searchable Dropdown */
        .custom-dropdown-container {
            position: relative;
            width: 100%;
            max-width: 280px;
            margin: 0 auto;
        }

        .dropdown-results {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 0 0 var(--radius-sm) var(--radius-sm);
            max-height: 260px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: var(--shadow);
            display: none;
            flex-direction: column;
        }

        .dropdown-results:not(.d-none) {
            display: flex;
        }

        .dropdown-item {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.2s;
            text-align: inherit;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dropdown-item:last-child {
            border-bottom: none;
        }

        .dropdown-item:hover,
        .dropdown-item.focused {
            background: #f0f7ff;
            color: var(--primary);
        }

        .dropdown-item .country-code {
            font-size: 0.85rem;
            color: #fff;
            background: #2e5189;
            padding: 2px 6px;
            border-radius: 4px;
        }

        /* ========== APP MODE: 1200px and below ========== */
        /* Full app-like UI: screen layout, app bar, sheet content */
        @media (max-width: 1200px) {

            html,
            body {
                overflow-x: hidden;
                max-width: 100vw;
            }

            body {
                display: flex;
                flex-direction: column;
                padding: 0;
                padding-left: env(safe-area-inset-left);
                padding-right: env(safe-area-inset-right);
                padding-bottom: env(safe-area-inset-bottom);
                min-height: 100vh;
                background: #e2e8f0;
            }

            /* Keep BMC inside viewport; visible only after mode selected, then 5px from bottom */
            #bmc-wbtn {
                left: max(10px, env(safe-area-inset-left)) !important;
                bottom: 5px !important;
                bottom: calc(5px + env(safe-area-inset-bottom)) !important;
            }

            body.mode-selected #bmc-wbtn {
                visibility: visible !important;
            }

            /* App bar - fixed at top, no scroll */
            .lang-bar {
                position: fixed;
                top: 0;
                /* Start from the very top */
                left: 0;
                right: 0;
                z-index: 1000;
                flex-shrink: 0;
                margin: 0;
                padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
                /* Reduced from 12px */
                border-radius: 0;
                border: none;
                box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
                background: var(--card);
                flex-wrap: wrap;
            }

            /* Toggles row - fixed in place, no scroll inside */
            .mobile-toggles-container {
                display: flex !important;
                width: 100%;
                justify-content: center;
                gap: 8px;
                overflow: hidden;
                flex-shrink: 0;
            }

            .mobile-toggle {
                display: flex !important;
                flex-direction: row;
                align-items: center;
                gap: 6px;
                padding: 10px 14px;
                min-height: 44px;
                border-radius: 12px;
                background: var(--bg);
                border: 1px solid var(--border);
                font-size: 0.9rem;
            }

            .nav-group {
                display: none;
                width: 100%;
                flex-direction: column;
                align-items: stretch;
                padding: 12px 0 0;
                border-top: 1px solid var(--border);
                margin-top: 8px;
            }

            .lang-bar.open .nav-group {
                display: flex !important;
            }

            .mobile-nav-label {
                display: block;
                font-size: 0.75rem;
                color: var(--text-muted);
                text-transform: uppercase;
                letter-spacing: 0.05em;
                margin-bottom: 8px;
            }

            #desktop-lang-toggle {
                display: none;
            }

            #app-root {
                max-width: 100%;
                width: 100%;
                box-sizing: border-box;
                padding: 0 16px;
                padding-bottom: 24px;
                padding-bottom: calc(24px + env(safe-area-inset-bottom));
                min-height: calc(100vh - 56px);
                overflow-x: hidden;
                overflow-y: visible;
            }

            /* Screen header - inline with content */
            #app-root header {

                border-radius: 0;
                box-shadow: none;
                border: none;
                border-bottom: 1px solid var(--border);
            }

            #app-root header h1 {
                font-size: 1.35rem;
            }

            .floating-logo {
                height: 36px;
                left: 16px;
                margin-top: 20px;
            }

            /* Content = scrollable screen body */
            .content {
                position: static !important;
                top: auto !important;
                left: auto !important;
                transform: none !important;
                width: 100% !important;
                max-width: none !important;
                margin: 0 !important;
                padding: 2px 0 32px !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                border: none !important;
                max-height: none !important;
                overflow: visible !important;
                background: transparent !important;
            }

            /* Choice cards full width on very small screens handled by choice-grid */
            .choice-btn {
                margin-bottom: var(--space-sm);
            }

            .btn-main,
            .btn-secondary,
            .btn-danger,
            .btn-native-bridge {
                max-width: none;
                width: 100%;
                border-radius: 14px;
                padding: 16px 20px;
            }

            /* Form inputs full width */
            .form-group input[type="text"],
            .form-group input[type="email"],
            .form-group input[type="password"],
            .form-group select,
            .form-group textarea,
            input[type="text"],
            input[type="email"],
            input[type="password"],
            select,
            textarea {
                max-width: none;
                width: 100%;
                border-radius: 12px;
                padding: 14px 16px;
            }

            .custom-dropdown-container {
                max-width: none;
                width: 100%;
            }

            /* Cards as list items */
            .result-section,
            .diag-card {
                border-radius: 14px;
                margin-bottom: 12px;
                border: 1px solid var(--border);
                box-shadow: none;
            }

            .diag-card.expanded {
                box-shadow: 0 0 0 2px var(--primary);
            }

            /* Wizard steps */
            .wizard-step.active {
                margin-top: 0;
                padding-top: 8px;
            }

            .wizard-nav-container {
                margin-top: 10px;
            }

            .btn-back-custom {
                border-radius: 12px;
            }

            /* Intro / home screen */
            .intro-bullets {
                gap: 20px;
            }

            .intro-bullets li {
                border-radius: 14px;
            }

            #btnStartIntro.btn-main {
                width: 100%;
                border-radius: 14px;
            }

            /* Footer - part of app sheet (same background) */
            .footer-links {
                margin-top: 0;
                padding: 16px 16px 8px;
                padding-left: calc(16px + env(safe-area-inset-left));
                padding-right: calc(16px + env(safe-area-inset-right));
                border-top: 1px solid var(--border);
                font-size: 0.85rem;
                background: var(--card);
            }

            .copyright {
                margin-bottom: 0;
                padding: 8px 16px 16px;
                padding-bottom: calc(16px + env(safe-area-inset-bottom));
                font-size: 0.75rem;
                background: var(--card);
            }
        }

        /* Final Footer Copyright Hide */
        @media (max-width: 1200px) {
            .copyright {
                display: none !important;
            }
        }


        /* Responsive Info Buttons */
        @media (max-width: 1200px) {
            .desktop-only-btn {
                display: none !important;
            }

            .mobile-only-btn {
                display: block !important;
                margin: 1px auto !important;
                text-align: center;
                width: fit-content;
                background: rgba(37, 99, 235, 0.08);
                color: var(--accent);
                border: 1.5px solid var(--accent);
                border-radius: 50px;
                padding: 5px 10px;
                font-weight: 600;
                text-decoration: none;
                transition: all 0.2s ease;
                font-size: 0.9rem;
                box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
            }

            .mobile-only-btn:active {
                transform: scale(0.96);
                background: rgba(37, 99, 235, 0.15);
            }
        }

        @media (min-width: 1201px) {

            .mobile-only-btn,
            .mobile-only {
                display: none !important;
            }
        }

        /* Custom mobile nav adjustment for 460px and below */
        @media (max-width: 460px) {
            .bottom-nav-btn {
                flex-direction: column !important;
                gap: 1px !important;
                padding: 1px 1px !important;
            }

            .bottom-nav-btn .nav-icon {
                font-size: 1.2rem !important;
            }

            .bottom-nav-btn .nav-label {
                font-size: 0.6rem !important;
            }
        }





        /* Purchase Options Categorization */
        .purchase-category {
            background: rgba(0, 0, 0, 0.03);
            border-radius: 12px;
            padding: 12px;
            border: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 5px;
        }

        .category-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: #666;
            margin: 0 0 5px 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #ddd;
            display: inline-block;
            width: fit-content;
            padding-bottom: 2px;
        }

        [dir="rtl"] .category-title {
            border-left: none;
            padding-left: 0;
        }

        /* Nav Icon Image Styling */
        .nav-icon-img {
            width: 24px;
            height: 24px;
            object-fit: contain;
            margin-bottom: 2px;
            border-radius: 50%;
        }

        /* Premium Country Cards Ecosystem */
        .results-list-premium {
            max-height: 480px;
            overflow-y: auto;
            padding: 12px;
            background: #fdfdfd;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 15px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .country-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            background: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .country-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            border-color: var(--primary);
        }

        .country-card:active {
            transform: translateY(-1px);
        }

        /* Status-based colors matching mockup */
        .country-card.card-success {
            background-color: #f0fdf4;
            /* Emerald 50 */
            border-color: #d1fae5;
        }

        .country-card.card-warning {
            background-color: #fffbeb;
            /* Amber 50 */
            border-color: #fef3c7;
        }

        .country-card.card-error {
            background-color: #fff1f2;
            /* Rose 50 */
            border-color: #ffe4e6;
        }

        .card-arrow {
            font-size: 0.9rem;
            color: #94a3b8;
            flex-shrink: 0;
            transition: transform 0.2s;
        }

        .country-card:hover .card-arrow {
            color: var(--primary);
        }

        .card-flag {
            width: 36px;
            height: 24px;
            object-fit: contain;
            border-radius: 3px;
            flex-shrink: 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            background: #f1f5f9;
        }

        .card-info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
            text-align: right;
        }

        body[dir="ltr"] .card-info {
            text-align: left;
        }

        .card-header-line {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .card-csc {
            font-weight: 800;
            font-size: 1.15rem;
            color: #0f172a;
            letter-spacing: 0.5px;
        }

        .card-country-name {
            font-size: 1rem;
            font-weight: 700;
            color: #334155;
        }

        .card-desc {
            font-size: 0.85rem;
            font-weight: 500;
            color: #64748b;
            margin-top: 2px;
        }

        .card-fw {
            font-size: 0.75rem;
            font-family: monospace;
            color: #94a3b8;
            background: rgba(0, 0, 0, 0.03);
            padding: 2px 6px;
            border-radius: 4px;
            display: inline-block;
            align-self: flex-start;
            margin-top: 4px;
        }

        [dir="rtl"] .card-fw {
            align-self: flex-start;
        }

        .card-status-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            flex-shrink: 0;
        }

        .status-check-circle {
            background-color: var(--success);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 0.8rem;
            font-weight: 900;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
        }

        .status-dot-solid {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .status-dot-solid.yellow {
            background-color: var(--warning);
        }

        .status-dot-solid.red {
            background-color: var(--error);
        }

        /* Custom Scrollbar for results */
        .results-list-premium::-webkit-scrollbar {
            width: 6px;
        }

        .results-list-premium::-webkit-scrollbar-track {
            background: transparent;
        }

        .results-list-premium::-webkit-scrollbar-thumb {
            background: #e2e8f0;
            border-radius: 10px;
        }

        .results-list-premium::-webkit-scrollbar-thumb:hover {
            background: #cbd5e1;
        }

        /* Purchase Credits Modal Styles */
        #purchaseModal .modal-content {
            background-color: #FFFFFF !important;
            border-radius: 20px;
            padding: 24px;
            border: 2px solid #E0E0E0;
            color: #333333;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
            max-width: 450px;
            margin: 20px auto;
        }

        body.access-dark-mode #purchaseModal .modal-content {
            background-color: #000000 !important;
            color: #CCCCCC;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
        }

        #purchaseModal h2#purchaseTitle {
            color: #C7A15E !important;
            font-weight: bold;
            font-size: 1.6rem;
            letter-spacing: 1.2px;
            margin-bottom: 15px;
            margin-top: -15px;
        }

        #purchaseModal .purchase-desc,
        #purchaseModal .purchase-terms-box {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 12px;
            padding: 14px;
            color: #333333;
            margin-bottom: 15px;
            font-size: 0.95rem;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        body.access-dark-mode #purchaseModal .purchase-desc,
        body.access-dark-mode #purchaseModal .purchase-terms-box {
            background: rgba(255, 255, 255, 0.05);
            color: #CCCCCC;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        #purchaseModal .purchase-category {
            position: relative;
            padding: 25px 15px 15px 15px;
            background: rgba(0, 0, 0, 0.03);
            border-radius: 12px;
            border: 1.5px solid #E0E0E0;
            margin-bottom: 20px;
        }

        body.access-dark-mode #purchaseModal .purchase-category {
            background: rgba(0, 0, 0, 0.2);
        }

        #purchaseModal .category-title {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #FFFFFF;
            padding: 2px 12px;
            font-size: 0.8rem;
            color: #C7A15E !important;
            font-weight: bold;
            white-space: nowrap;
            border-radius: 6px;
        }

        body.access-dark-mode #purchaseModal .category-title {
            background-color: #000000;
        }

        #purchaseModal .limited-badge {
            font-size: 0.65rem;
            color: #555555;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
            display: block;
            opacity: 0.8;
        }

        body.access-dark-mode #purchaseModal .limited-badge {
            color: #CCCCCC;
        }

        #purchaseModal .d-flex-col {
            display: flex !important;
            flex-direction: column !important;
            gap: 12px !important;
        }

        #btnWatchAd {
            background: linear-gradient(135deg, #F5DEB3 10%, #ffd700 40%, #DAA520 70%, #ffd700 90%) !important;
            color: #111111 !important;
            font-weight: bold;
            border: 1px solid #E0E0E0;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            width: 100%;
            padding: 12px;
            cursor: pointer;
        }

        #purchaseModal .btn-secondary {
            background: rgba(0, 0, 0, 0.03) !important;
            color: #333333 !important;
            border: 1px solid #E0E0E0 !important;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
            padding: 12px;
            border-radius: 12px;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            cursor: pointer;
        }

        body.access-dark-mode #purchaseModal .btn-secondary {
            background: rgba(255, 255, 255, 0.03) !important;
            color: #CCCCCC !important;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
        }

        #purchaseModal .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.08) !important;
            color: #000000 !important;
        }

        body.access-dark-mode #purchaseModal .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1) !important;
            color: #FFFFFF !important;
        }

        #btnBuyMonthly {
            background: linear-gradient(135deg, #EEDCDC 10%, #E3B6C0 40%, #C9A2A2 70%, #E3B6C0 90%) !important;
            color: #222222 !important;
            font-weight: bold;
            border: 1px solid #E0E0E0;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            width: 100%;
            padding: 12px;
            cursor: pointer;
        }

        #btnBuyYearly {
            background: linear-gradient(135deg, #F5EAC4 10%, #CDA146 40%, #B08C3B 70%, #CDA146 90%) !important;
            color: #222222 !important;
            font-weight: bold;
            border: 1px solid #E0E0E0;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            width: 100%;
            padding: 12px;
            cursor: pointer;
        }

        #purchaseModal .close.btn-close-large {
            color: #555555;
            font-size: 2rem;
            top: 10px;
            right: 15px;
            opacity: 0.8;
        }

        body.access-dark-mode #purchaseModal .close.btn-close-large {
            color: #CCCCCC;
        }

        #purchaseModal .close.btn-close-large:hover {
            color: #C7A15E;
            opacity: 1;
        }

        #purchaseModal .note-text {
            color: #555555;
            font-size: 0.8rem;
            margin-top: -15px;
            opacity: 0.8;
        }

        body.access-dark-mode #purchaseModal .note-text {
            color: #CCCCCC;
        }

        #purchaseModal .btn-link-gray {
            color: #555555;
            text-decoration: underline;
            opacity: 0.8;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 0.85rem;
        }

        body.access-dark-mode #purchaseModal .btn-link-gray {
            color: #CCCCCC;
        }

        #purchaseModal .btn-link-gray:hover {
            color: #C7A15E;
        }

        /* Premium Download App Button */
        .btn-download-app-premium {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white !important;
            padding: 10px 24px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.05rem;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: none;
            min-width: 180px;
            margin: 15px auto;
        }

        .btn-download-app-premium:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
            color: white !important;
        }

        /* Marketing App Promo Banner */
        .app-promo-banner {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 16px;
            padding: 25px 20px;
            margin: 20px auto 30px;
            max-width: 500px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .app-promo-banner .promo-title {
            color: #1a1a1a;
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 8px;
            margin-top: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .app-promo-banner .promo-desc {
            color: #4a4a4a;
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 20px;
            line-height: 1.4;
        }

        /* --- Global Footer Info (Copyright & Device ID) --- */
        .footer-info-container {
            position: fixed !important;
            bottom: 0 !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            width: 100% !important;
            max-width: 640px !important;
            padding: 0 15px 2px 15px !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: baseline !important;
            pointer-events: none !important;
            z-index: 10000 !important;
            /* Higher z-index */
            direction: ltr !important;
        }

        .copyright,
        .footer-device-id {
            font-size: 10px !important;
            color: #000 !important;
            opacity: 1 !important;
            margin: 0 !important;
            padding: 0 !important;
            position: static !important;
            width: auto !important;
            background: none !important;
            border: none !important;
            box-shadow: none !important;
            font-weight: 600 !important;
            /* Slightly bolder */
            white-space: nowrap !important;
            visibility: visible !important;
            display: block !important;
            line-height: 1 !important;
        }

        .footer-device-id {
            font-family: monospace !important;
        }

        /* --- Step Title Margins --- */
        .wizard-step h2 {
            margin-top: 5px !important;
            margin-bottom: 10px !important;
        }

        /* --- Help Icon Button --- */
        .btn-help-icon {
            background: #2563eb;
            color: white;
            border: none;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            font-size: 11px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            margin-inline-start: 6px;
            vertical-align: middle;
            padding: 0;
            line-height: 1;
            transition: transform 0.2s ease, background-color 0.2s ease;
        }

        .btn-help-icon:hover {
            background: #1d4ed8;
            transform: scale(1.1);
        }

        .btn-help-icon:active {
            transform: scale(0.95);
        }

        /* --- Mock UI Highlights --- */
        .highlight-box.current-csc {
            border: 2px solid #2563eb !important;
            color: #2563eb !important;
            background: rgba(37, 99, 235, 0.05) !important;
            box-shadow: none !important;
            margin: 0 !important;
        }

        .highlight-box.source-csc {
            border: 2px solid #f59e0b !important;
            color: #f59e0b !important;
            background: rgba(245, 158, 11, 0.05) !important;
            box-shadow: none !important;
            margin: 0 !important;
        }

        /* Floating Support Button */
        .floating-support {
            position: fixed;
            bottom: 90px;
            right: 20px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
            pointer-events: none;
        }

        .floating-support * {
            pointer-events: auto;
        }

        .support-bubble {
            background: var(--primary);
            color: #fff;
            padding: 8px 15px;
            border-radius: 20px 20px 0 20px;
            font-size: 0.9rem;
            font-weight: 600;
            box-shadow: var(--shadow);
            white-space: nowrap;
            animation: fadeInBubble 0.3s ease;
            position: relative;
        }

        .support-bubble::after {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 0;
            border-left: 10px solid transparent;
            border-top: 10px solid var(--primary);
        }

        .support-btn {
            width: 56px;
            height: 56px;
            background: transparent;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .support-btn:hover {
            transform: scale(1.1);
        }

        .support-icon-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
        }

        @keyframes fadeInBubble {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* RTL Adjustment */
        html[dir='rtl'] .floating-support {
            right: auto;
            left: 20px;
            align-items: flex-start;
        }

        html[dir='rtl'] .support-bubble {
            border-radius: 20px 20px 20px 0;
        }

        html[dir='rtl'] .support-bubble::after {
            right: auto;
            left: 0;
            border-left: none;
            border-right: 10px solid transparent;
        }

        /* ========== MIGRATED INLINE STYLES ========== */

        /* Utilities */
        .w-auto-min-120 {
            width: auto;
            min-width: 120px;
        }

        .mw-400 {
            max-width: 400px !important;
        }

        .mw-450 {
            max-width: 450px !important;
        }

        .mw-500 {
            max-width: 500px !important;
        }

        .p-25 {
            padding: 25px !important;
        }

        .mt-15 {
            margin-top: 15px !important;
        }

        .mb-15 {
            margin-bottom: 15px !important;
        }

        .mt-20 {
            margin-top: 20px !important;
        }

        .mb-20 {
            margin-bottom: 20px !important;
        }

        .mt-30 {
            margin-top: 30px !important;
        }

        .p-5-15 {
            padding: 5px 15px !important;
        }

        .py-5 {
            padding-top: 5px !important;
            padding-bottom: 5px !important;
        }

        .px-15 {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        .py-10 {
            padding-top: 10px !important;
            padding-bottom: 10px !important;
        }

        .p-10 {
            padding: 10px !important;
        }

        .p-20 {
            padding: 20px !important;
        }

        .p-15 {
            padding: 15px !important;
        }

        .m-0 {
            margin: 0 !important;
        }

        .mt-0 {
            margin-top: 0 !important;
        }

        .mb-0 {
            margin-bottom: 0 !important;
        }

        .mt-10 {
            margin-top: 10px !important;
        }

        .mb-10 {
            margin-bottom: 10px !important;
        }

        .mt-12 {
            margin-top: 12px !important;
        }

        .gap-5 {
            gap: 5px !important;
        }

        .gap-10 {
            gap: 10px !important;
        }

        .gap-15 {
            gap: 15px !important;
        }

        .font-sm {
            font-size: 0.9rem !important;
        }

        .font-xs {
            font-size: 0.8rem !important;
        }

        .font-lg {
            font-size: 1.25rem !important;
        }

        .font-xl {
            font-size: 1.5rem !important;
        }

        .font-24 {
            font-size: 24px !important;
        }

        .font-3rem {
            font-size: 3rem !important;
        }

        .text-center {
            text-align: center !important;
        }

        .text-left {
            text-align: left !important;
        }

        .text-start {
            text-align: start !important;
        }

        .flex-1 {
            flex: 1 !important;
        }

        .flex-shrink-0 {
            flex-shrink: 0 !important;
        }

        .whitespace-nowrap {
            white-space: nowrap !important;
        }

        .opacity-07 {
            opacity: 0.7 !important;
        }

        .z-999 {
            z-index: 999 !important;
        }

        .z-9999 {
            z-index: 9999 !important;
        }

        .border-top {
            border-top: 1px solid var(--border) !important;
        }

        .pt-20 {
            padding-top: 20px !important;
        }

        /* App Rating Banner */
        .app-rating-banner {
            position: fixed;
            bottom: 80px;
            margin-bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            width: max-content;
            max-width: 90vw;
            background: var(--card, #fff);
            padding: 15px 20px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            z-index: 999;
            border: 1px solid var(--border, #eee);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .btn-close-rating {
            position: absolute;
            top: 5px;
            right: 10px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-muted, #999);
        }

        .rating-stars {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .rating-title-text {
            margin: 0 0 5px 0;
            color: var(--text, #333);
        }

        .rating-desc-text {
            font-size: 0.9rem;
            color: var(--text-muted, #666);
            margin: 0 0 12px 0;
            max-width: 250px;
            line-height: 1.4;
        }

        .btn-rate-now {
            padding: 10px 20px;
            margin: 0;
            white-space: nowrap;
        }

        /* Dashboard Styles */
        .dashboard-greeting {
            text-align: center;
            font-size: 1.1rem;
            color: #666;
            margin: 10px 0;
        }

        .subscription-info-box {
            background: rgba(255, 152, 0, 0.1);
            border: 1px solid #ff9800;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
        }

        .subscription-status-text {
            color: #f57c00;
            font-weight: bold;
        }

        .coupon-input {
            text-transform: uppercase;
            width: 120px;
        }

        .btn-delete-account-link {
            text-decoration: underline;
            opacity: 0.7;
        }

        /* Key Auth Styles */
        .key-display-box {
            background: #f0f7ff;
            border: 2px dashed #006be5;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            font-family: monospace;
            font-size: 1.2rem;
            font-weight: bold;
            color: #0052cc;
        }

        .access-key-input {
            letter-spacing: 1px;
        }

        .ip-used-warning {
            background: #fff3cd;
            border: 1px solid #ffc107;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            color: #856404;
        }

        .ip-used-title-box {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.1rem;
        }

        /* Update Settings Styles */
        .update-info-box {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .update-settings-row {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* Home Page Specific */
        .error-text-small {
            display: none;
            color: red;
            font-size: 0.85rem;
            margin-top: 5px;
        }

        .target-warning-box {
            border: 1px solid #ff8c00;
            background: #fff4e5;
            color: #b75c00;
            padding: 10px;
            border-radius: 8px;
            font-size: 0.9rem;
            margin-top: 10px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            text-align: start;
        }

        .csc-orig-input {
            text-transform: uppercase;
            direction: ltr;
            text-align: center;
        }

        .csc-input {
            text-transform: uppercase;
            direction: ltr;
            text-align: center;
        }

        .spinner-50 {
            width: 50px;
            height: 50px;
            margin: 0 auto;
            border-width: 4px;
        }

        .check-details-box {
            display: none;
            margin-top: 5px;
            font-size: 0.9rem;
            padding: 10px;
            background: #f9f9f9;
            border-radius: 6px;
            border: 1px dashed #ccc;
        }

        .btn-info-icon-style {
            font-size: 1.1rem;
            border: none;
            background: transparent;
            cursor: pointer;
            padding: 0 5px;
            vertical-align: middle;
        }

        .mock-settings-box {
            padding: 20px;
            background: #f5f5f5;
            border-radius: 15px;
        }

        .mock-item-row {
            padding-top: 5px;
        }

        .mock-baseband-container {
            display: inline-block;
            position: relative;
            padding-top: 18px;
            direction: ltr;
            text-align: left;
        }

        .mock-baseband-labels {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 0 2px;
        }

        .mock-provider-row {
            font-size: 0.8rem;
            margin-top: 10px;
            display: flex;
            justify-content: center;
            gap: 15px;
            font-weight: 600;
        }

        .languages-list-content {
            white-space: pre-line;
            text-align: start;
            line-height: 1.8;
            font-size: 1rem;
            color: var(--text);
            max-height: 70vh;
            overflow-y: auto;
            padding: 15px;
            background: var(--bg);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            margin-top: 10px;
        }

        body.access-dark-mode .languages-list-content {
            color: var(--text) !important;
            background: #0f172a !important;
            border-color: #334155 !important;
        }

        /* Privacy Page */
        .privacy-highlight {
            background: rgba(37, 99, 235, 0.08);
            padding: 18px;
            border-radius: 12px;
            border-right: 4px solid var(--primary);
            margin-bottom: 25px;
        }

        .privacy-title {
            display: block;
            font-size: 1.1rem;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .privacy-desc {
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* Promo Banner */
        .promo-banner {
            margin: 20px auto;
            max-width: 400px;
            background: white;
            border: 1px solid #ddd;
            padding: 15px;
            border-radius: 8px;
        }

        .promo-flex {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
        }

        .promo-desc {
            color: #333;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .btn-promo {
            text-decoration: none;
            text-align: center;
            width: auto;
            font-size: 0.9rem;
            padding: 8px 16px;
            min-height: auto;
            margin: 0;
        }

        /* Share Buttons */
        .btn-share-guide {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s;
        }

        .btn-share-software {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 15px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            font-size: 0.9em;
        }

        /* Contact Page Device Data */
        .device-data-readonly {
            background: rgba(0, 0, 0, 0.03);
            padding: 15px;
            border-radius: 8px;
            font-size: 0.9rem;
            line-height: 1.5;
            border: 1px solid rgba(0, 0, 0, 0.1);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .inline-block {
            display: inline-block !important;
        }

        .grid-col-all {
            grid-column: 1 / -1 !important;
        }

        .mx-auto {
            margin-left: auto !important;
            margin-right: auto !important;
        }

        .justify-center {
            justify-content: center !important;
        }

        .d-block {
            display: block !important;
        }

        .margin-inline-start-10 {
            margin-inline-start: 10px !important;
        }

        .text-lg {
            font-size: 1.1rem !important;
        }

        .font-mono {
            font-family: monospace !important;
        }

        /* History List Items (JS Generated) */
        .history-item-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
            width: 100%;
        }

        .history-item-info {
            flex: 1;
            min-width: 150px;
        }

        .history-item-model {
            font-weight: bold;
            font-size: 1.1em;
            color: var(--text);
        }

        .history-item-fullname {
            font-size: 0.85em;
            color: var(--text-muted);
        }

        .history-item-target {
            flex: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 150px;
        }

        .history-item-target-text {
            font-size: 0.9em;
        }

        .history-item-target-csc {
            font-weight: bold;
            color: var(--primary);
        }

        .history-item-badge-buying {
            background: #0284c7;
            color: #fff;
            font-size: 0.75em;
            padding: 2px 6px;
            border-radius: 4px;
            margin-inline-start: 5px;
        }

        .history-item-badge-existing {
            background: #2e5189;
            color: #fff;
            font-size: 0.75em;
            padding: 2px 6px;
            border-radius: 4px;
            margin-inline-start: 5px;
        }

        .history-item-meta {
            font-size: 0.8em;
            color: var(--text-muted);
            margin-top: 3px;
        }

        .history-item-date {
            font-size: 0.8em;
            color: #999;
        }

        .history-item-actions {
            flex: 0 0 auto;
        }

        .history-empty-msg {
            text-align: center;
            color: #888;
            padding: 20px;
        }

        .history-error-msg {
            color: red;
            text-align: center;
        }

        /* Premium Results */
        .results-list-premium {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
            max-height: 400px;
            overflow-y: auto;
            padding: 5px;
        }

        .premium-no-match {
            color: red;
            width: 100%;
            text-align: center;
            padding: 20px;
        }

        .text-success {
            color: #16a34a !important;
        }

        .text-warning {
            color: #eab308 !important;
        }

        .text-error {
            color: #dc2626 !important;
        }

        .text-bold {
            font-weight: bold !important;
        }

        .relative {
            position: relative !important;
        }

        .text-primary {
            color: var(--primary) !important;
        }

        .text-warning-alt {
            color: #f59e0b !important;
        }

        .text-success-alt {
            color: #28a745 !important;
        }

        /* Status Display Utility */
        .flex-col-start {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            width: 100%;
        }

        .text-bold-600 {
            font-weight: 600 !important;
        }

        .opacity-09 {
            opacity: 0.9 !important;
        }

        .mt-4 {
            margin-top: 4px !important;
        }

        .mt-6 {
            margin-top: 6px !important;
        }

        .mt-8 {
            margin-top: 8px !important;
        }

        .btn-info-icon-reset {
            font-size: 1rem;
            border: none;
            background: transparent;
            cursor: pointer;
            padding: 0 2px;
            vertical-align: middle;
        }

        .btn-info-badge {
            font-size: 0.8em;
            margin-left: 5px;
            padding: 2px 8px;
            cursor: pointer;
            background-color: #eef;
            border: 1px solid #ccd;
            border-radius: 4px;
        }

        .bg-aliceblue {
            background-color: aliceblue !important;
        }

        .border-blue-light {
            border: 1px solid #add8e6 !important;
        }

        .whitespace-nowrap {
            white-space: nowrap !important;
        }

        .flex-shrink-0 {
            flex-shrink: 0 !important;
        }

        /* Dropdown / Suggestion Items */
        .dropdown-item-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .dropdown-item-col {
            display: flex;
            flex-direction: column;
        }

        .dropdown-item-title {
            font-weight: 500;
            color: var(--primary);
        }

        .dropdown-item-subtitle {
            font-size: 0.75em;
            color: #666;
        }

        .dropdown-item-badge {
            background-color: var(--badge-bg, #007bff);
            color: white;
            font-size: 0.75rem;
            padding: 3px 8px;
            border-radius: 6px;
            white-space: nowrap;
        }

        .bg-primary {
            background-color: var(--primary) !important;
        }

        .bg-secondary {
            background-color: var(--secondary) !important;
        }

        .bg-warning {
            background-color: #f59e0b !important;
        }

        .bg-error {
            background-color: #dc2626 !important;
        }

        .font-sm {
            font-size: 0.85rem !important;
        }

        .font-xs {
            font-size: 0.75rem !important;
        }

        .font-md {
            font-size: 1rem !important;
        }

        .font-lg {
            font-size: 1.1rem !important;
        }

        .font-xl {
            font-size: 1.25rem !important;
        }

        .spinner-15 {
            width: 15px !important;
            height: 15px !important;
        }

        .vertical-middle {
            vertical-align: middle !important;
        }

        /* Firmware Update System */
        .update-input-sm {
            width: 100px !important;
            font-size: 0.8rem !important;
            height: 25px !important;
            padding: 0 5px !important;
        }

        .device-info-summary {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px dashed rgba(255, 255, 255, 0.1);
        }

        .border-top-dashed {
            padding-top: 8px;
            border-top: 1px dashed rgba(255, 255, 255, 0.08);
        }

        .text-orange {
            color: #ff9800 !important;
        }

        .notif-prefs-box {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .notif-item-label {
            cursor: pointer;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
        }

        .notif-item-checkbox {
            width: 18px !important;
            height: 18px !important;
        }

        .notif-item-title {
            font-weight: 500;
            font-size: 0.9rem;
        }

        .notif-item-btn {
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .status-placeholder {
            min-height: 1.2em;
        }

        .update-found-alert {
            background: rgba(0, 107, 229, 0.15);
            border: 1px solid #006be5;
            border-radius: 10px;
            color: #fff;
        }

        .update-found-icon {
            font-size: 1.5rem;
        }

        .update-now-btn {
            font-weight: bold;
            font-size: 1.1rem;
            border-radius: 12px;
        }

        .border-top-thin {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .check-update-btn {
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .accent-samsung {
            accent-color: #006be5 !important;
        }

        .accent-play {
            accent-color: #34a853 !important;
        }

        .accent-app {
            accent-color: #fbbc04 !important;
        }

        /* Re-modernization utilities */
        .keywords-sm {
            line-height: 1.6;
            font-size: 0.85rem;
        }

        .dashboard-subtitle {
            text-align: center;
            font-size: 1.1rem;
            color: #666;
            margin: 10px 0;
        }

        .subscription-info-box {
            background: rgba(255, 152, 0, 0.1);
            border: 1px solid #ff9800;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
        }

        .subscription-status-text {
            color: #f57c00;
            font-weight: bold;
        }

        .uppercase-w120 {
            text-transform: uppercase;
            width: 120px;
        }

        .delete-account-link-style {
            text-decoration: underline;
            opacity: 0.7;
        }

        .z-top {
            z-index: 9999 !important;
        }

        .alert-icon-lg {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .activation-key-box {
            background: #f0f7ff;
            border: 2px dashed #006be5;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            font-family: monospace;
            font-size: 1.2rem;
            font-weight: bold;
            color: #0052cc;
        }

        .ls-1 {
            letter-spacing: 1px !important;
        }

        .warning-box {
            background: #fff3cd;
            border: 1px solid #ffc107;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            color: #856404;
        }

        .font-3rem {
            font-size: 3rem !important;
        }

        .update-settings-panel {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mt-12 {
            margin-top: 12px !important;
        }

        .pt-12 {
            padding-top: 12px !important;
        }

        .border-top-light-08 {
            border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        .app-rating-banner {
            position: fixed;
            bottom: 80px;
            margin-bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            width: max-content;
            max-width: 90vw;
            background: var(--card, #fff);
            padding: 15px 20px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            z-index: 999;
            border: 1px solid var(--border, #eee);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .btn-close-rating {
            position: absolute;
            top: 5px;
            right: 10px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-muted, #999);
        }

        .rating-stars {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .rating-title {
            margin: 0 0 5px 0;
            color: var(--text, #333);
        }

        .rating-desc {
            font-size: 0.9rem;
            color: var(--text-muted, #666);
            margin: 0 0 12px 0;
            max-width: 250px;
            line-height: 1.4;
        }

        .rating-submit-btn {
            padding: 10px 20px;
            margin: 0;
            white-space: nowrap;
        }

        /* Delete Account Page */
        .del-helper-text {
            color: #475569;
            margin-top: 8px;
            font-style: italic;
        }

        .del-example-img {
            width: 100%;
            max-width: 250px;
            margin-top: 10px;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .btn-delete {
            background: #dc2626 !important;
        }

        .btn-back-home {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 24px;
            background: #334155;
            color: white;
            border-radius: 10px;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 600;
            transition: background 0.2s;
        }

        .btn-back-home:hover {
            background: #1e293b;
        }

        /* Search History Badges */
        .badge-existing {
            background: #2e5189 !important;
            color: white !important;
            /* Changed from #333 for readability on dark blue */
            font-size: 0.75em;
            padding: 2px 6px;
            border-radius: 4px;
            margin-inline-start: 5px;
        }


        .badge-buying {
            background: #e3f2fd !important;
            color: #0d47a1 !important;
            font-size: 0.75em;
            padding: 2px 6px;
            border-radius: 4px;
            margin-inline-start: 5px;
        }

        .mx-auto {
            margin-left: auto !important;
            margin-right: auto !important;
        }

        .m-auto {
            margin: auto !important;
        }

        /* Bottom Conditional New Check Button */
        .bottom-new-check-container {
            display: none;
            /* Hidden by default */
            justify-content: center;
            padding: 20px 0;
            margin-top: 10px;
        }

        /* Show the bottom button only when on the results/scanning pages */
        #results-existing.active~.bottom-new-check-container,
        #results-buying.active~.bottom-new-check-container {
            display: flex;
        }

        /* Hide the bottom button when in initial data entry steps (Step 1, Step Existing Selection) */
        #step-1.active~.bottom-new-check-container,
        #step-existing-selection.active~.bottom-new-check-container {
            display: none !important;
        }

        /* Hide the bottom button ONLY when the actual results content is shown for EXISTING device (because it has its own buttons) */
        #results-existing:has(#existing-content:not(.d-none))~.bottom-new-check-container,
        #results-existing:has(#existing-content.active)~.bottom-new-check-container {
            display: none !important;
        }

        .btn-why-pay-premium {
            background: linear-gradient(135deg, var(--primary-light), #ffffff);
            border: 1px solid rgba(37, 99, 235, 0.3);
            color: var(--primary);
            font-size: 0.9rem;
            cursor: pointer;
            padding: 10px 22px;
            font-weight: 700;
            border-radius: 50px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
            letter-spacing: 0.3px;
            position: relative;
            overflow: hidden;
        }

        .btn-why-pay-premium::before {
            content: '💎';
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }

        .btn-why-pay-premium:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
            border-color: var(--primary);
        }

        .btn-why-pay-premium:hover::before {
            transform: rotate(20deg) scale(1.2);
        }

        .btn-why-pay-premium:active {
            transform: translateY(-1px) scale(0.98);
        }

        .why-pay-box-premium {
            background: linear-gradient(to bottom, var(--primary-light), rgba(255, 255, 255, 0.9));
            color: var(--text);
            padding: 25px;
            border-radius: var(--radius-xl);
            font-size: 1rem;
            line-height: 1.7;
            border: 1px solid rgba(37, 99, 235, 0.15);
            text-align: right;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }

        html[dir="ltr"] .why-pay-box-premium {
            text-align: left;
        }

        .info-icon-lg {
            font-size: 2.5rem;
            background: white;
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin: 0 auto;
            border: 2px solid var(--primary-light);
            box-shadow: var(--shadow-sm);
            animation: iconFloat 3s ease-in-out infinite;
        }

        @keyframes iconFloat {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        /* MD5 Decoder Styles */
        .md5-result-card {
            background: rgba(15, 23, 42, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
        }

        .md5-badge {
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .md5-badge-primary {
            background: rgba(59, 130, 246, 0.2);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .md5-badge-accent {
            background: rgba(139, 92, 246, 0.2);
            color: #c084fc;
            border: 1px solid rgba(139, 92, 246, 0.3);
        }

        .md5-badge-outline {
            background: rgba(255, 255, 255, 0.05);
            color: #cbd5e1;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .results-scroll-container {
            overflow-y: auto;
            padding-right: 10px;
            display: flex;
            flex-direction: column;
        }

        .results-scroll-container::-webkit-scrollbar {
            width: 6px;
        }

        .results-scroll-container::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.3);
            border-radius: 4px;
        }

        .results-scroll-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .results-scroll-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        /* MD5 Decoder Autocomplete */
        .md5-suggestion-item {
            padding: 8px 12px;
            cursor: pointer;
        }

        .md5-suggestion-item-desc {
            font-size: 0.85em;
            color: #666;
        }

        /* MD5 Loading */
        .md5-loading-text {
            font-weight: 700;
            color: #8b5cf6;
            font-size: 1.2rem;
            transition: opacity 0.3s;
        }

        /* MD5 No Results */
        .md5-no-results {
            text-align: center;
            padding: 40px 20px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 20px;
            border: 1px dashed #cbd5e1;
        }

        .md5-no-results-icon {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .md5-no-results-title {
            color: #475569;
            font-weight: 600;
        }

        .md5-no-results-desc {
            color: #64748b;
        }

        /* MD5 Card Skeleton */
        .md5-skeleton-card {
            margin-bottom: 16px;
            padding: 20px;
            border-radius: 16px;
            background: linear-gradient(145deg, #ffffff, #f8fafc);
            border: 1px solid rgba(226, 232, 240, 0.8);
            border-right: 4px solid #3b82f6;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
        }

        .md5-skeleton-text {
            font-size: 1.1rem;
            font-weight: 700;
            color: #475569;
        }

        /* MD5 Latest Badge & Card highlight */
        .md5-latest-card {
            border: 2px solid #3b82f6 !important;
        }

        .md5-latest-card.md5-border-software {
            order: -2;
        }

        .md5-latest-card.md5-border-security {
            order: -1;
        }

        .md5-latest-badge {
            position: absolute;
            top: 0;
            background: #3b82f6;
            color: white;
            padding: 2px 10px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        /* LTR languages (English, Russian, French, etc.) -> Right side */
        html[dir="ltr"] .md5-latest-badge {
            right: 0;
            left: auto;
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 0;
        }

        /* RTL languages (Hebrew, Arabic) -> Left side */
        html[dir="rtl"] .md5-latest-badge {
            left: 0;
            right: auto;
            border-bottom-right-radius: 12px;
            border-bottom-left-radius: 0;
        }

        /* MD5 History Toggle */
        .md5-history-toggle {
            background: #f1f5f9;
            color: #475569;
            font-weight: 700;
            border-radius: 12px;
            padding: 10px;
            border: 1px dashed #cbd5e1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .md5-history-toggle:disabled {
            justify-content: flex-start;
        }

        /* MD5 Result Card (Refined) */
        .md5-card {
            margin-bottom: 16px;
            padding: 16px;
            border-radius: 16px;
            background: linear-gradient(145deg, #ffffff, #f8fafc);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(226, 232, 240, 0.8);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .md5-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
        }

        .md5-card.md5-border-security {
            border-right: 4px solid #ef4444;
        }

        .md5-card.md5-border-software {
            border-right: 4px solid #8b5cf6;
        }

        .md5-card-title {
            font-size: 1rem;
            font-weight: 800;
            color: #1e293b;
            letter-spacing: 0.5px;
            word-break: break-all;
        }

        .md5-card-hash-container {
            margin-top: 8px;
            background: rgba(241, 245, 249, 0.5);
            padding: 8px 12px;
            border-radius: 12px;
            border: 1px solid rgba(226, 232, 240, 0.6);
        }

        .md5-card-hash-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .md5-card-hash-row:not(:last-child) {
            margin-bottom: 6px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(226, 232, 240, 0.4);
        }

        .md5-hash-label {
            font-size: 0.7rem;
            font-weight: 800;
            color: #94a3b8;
            text-transform: uppercase;
            min-width: 60px;
        }

        .md5-card-hash {
            font-size: 0.8rem;
            color: #334155;
            font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
            font-weight: 600;
            letter-spacing: -0.2px;
            word-break: break-all;
            flex: 1;
        }

        .md5-card-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
            align-items: center;
        }

        .md5-badge-pill {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 700;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .md5-card-content {
            margin-top: 5px;
            flex: 1;
        }

        .md5-badge-security {
            background: #fef2f2;
            color: #ef4444;
            border: 1px solid #fee2e2;
        }

        .md5-badge-software {
            background: #f0fdf4;
            color: #15803d;
            border: 1px solid #dcfce7;
        }

        .md5-badge-bit {
            background: #eff6ff;
            color: #2563eb;
            border: 1px solid #dbeafe;
        }

        .md5-badge-os {
            background: #f8fafc;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        .md5-badge-rev {
            background: #fdf4ff;
            color: #c026d3;
            border: 1px solid #fae8ff;
        }


        .md5-card-os-row {
            margin-top: 12px;
            display: flex;
        }

        .md5-badge-date {
            background: #f8fafc;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        .md5-kind-beta {
            background: #fff7ed;
            color: #c2410c;
            border: 1px solid #ffedd5;
            box-shadow: 0 2px 10px rgba(251, 146, 60, 0.1);
        }

        .md5-kind-stable {
            background: #f0fdf4;
            color: #15803d;
            border: 1px solid #dcfce7;
            box-shadow: 0 2px 10px rgba(34, 197, 94, 0.1);
        }

        .md5-card-header-flex {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
            width: 100%;
        }

        .md5-copy-btn,
        .md5-copy-hash-btn {
            background: transparent;
            border: none;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .md5-copy-btn {
            padding: 6px;
            border-radius: 8px;
        }

        .md5-copy-hash-btn {
            padding: 2px;
            border-radius: 4px;
        }

        .md5-copy-btn:hover,
        .md5-copy-hash-btn:hover {
            background: #e2e8f0;
            color: #3b82f6;
            transform: scale(1.05);
        }

        .md5-copy-btn:active,
        .md5-copy-hash-btn:active {
            transform: scale(0.95);
        }

        /* Edit Details Button */
        .btn-edit-details {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px 16px;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--primary);
            background-color: var(--primary-light);
            border: 1px solid rgba(37, 99, 235, 0.15);
            border-radius: var(--radius-sm, 8px);
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            font-family: inherit;
        }

        .btn-edit-details::before {
            content: "\f304";
            /* FontAwesome pencil icon */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            font-size: 0.85rem;
            transition: transform 0.2s ease;
        }

        .btn-edit-details:hover {
            background-color: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
            transform: translateY(-1px);
        }

        .btn-edit-details:hover::before {
            transform: rotate(15deg) scale(1.1);
        }

        .btn-edit-details:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
        }

        .btn-edit-details:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
        }

        /* Dark mode adjustments */
        .access-dark-mode .btn-edit-details {
            color: #60a5fa;
            background-color: rgba(37, 99, 235, 0.15);
            border-color: rgba(96, 165, 250, 0.3);
        }

        .access-dark-mode .btn-edit-details:hover {
            background-color: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        /* Toggle hashes button */
        .md5-toggle-hashes-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: transparent;
            border: none;
            padding: 6px 12px;
            font-size: 0.8rem;
            font-weight: 600;
            color: #64748b;
            /* text-muted */
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s ease-in-out;
            margin-top: 8px;
            margin-bottom: 8px;
            border: 1px solid transparent;
        }

        .md5-toggle-hashes-btn:hover {
            background-color: var(--primary-light, #eff6ff);
            color: var(--primary, #2563eb);
            border-color: rgba(37, 99, 235, 0.1);
        }

        .md5-toggle-hashes-btn .md5-toggle-icon {
            font-size: 0.75rem;
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-block;
        }

        .md5-toggle-hashes-btn.active {
            color: var(--primary, #2563eb);
            background-color: var(--primary-light, #eff6ff);
            border-color: rgba(37, 99, 235, 0.15);
        }

        .md5-toggle-hashes-btn.active .md5-toggle-icon {
            transform: rotate(180deg);
        }

        /* Dark mode overrides for toggle button */
        .access-dark-mode .md5-toggle-hashes-btn {
            color: #94a3b8;
        }

        .access-dark-mode .md5-toggle-hashes-btn:hover {
            background-color: rgba(37, 99, 235, 0.15);
            color: #60a5fa;
            border-color: rgba(96, 165, 250, 0.2);
        }

        .access-dark-mode .md5-toggle-hashes-btn.active {
            color: #60a5fa;
            background-color: rgba(37, 99, 235, 0.15);
            border-color: rgba(96, 165, 250, 0.2);
        }

        /* CSC Chips styling */
        .csc-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #eff6ff;
            color: #2563eb;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 700;
            border: 1px solid rgba(37, 99, 235, 0.15);
            transition: all 0.2s ease;
        }

        .csc-chip:hover {
            background: rgba(37, 99, 235, 0.15);
        }

        .csc-chip-remove {
            cursor: pointer;
            font-weight: 900;
            color: #ef4444;
            transition: transform 0.2s;
            font-size: 0.95rem;
            padding-left: 2px;
        }

        html[dir="rtl"] .csc-chip-remove {
            padding-left: 0;
            padding-right: 2px;
        }

        .csc-chip-remove:hover {
            transform: scale(1.25);
        }

        .access-dark-mode .csc-chip {
            background: rgba(37, 99, 235, 0.2);
            color: #60a5fa;
            border-color: rgba(96, 165, 250, 0.3);
        }

        .access-dark-mode .csc-chip:hover {
            background: rgba(37, 99, 235, 0.3);
        }

        /* Multiple versions inside card styling */
        .md5-card-versions-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 12px;
        }

        .md5-version-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
            padding-bottom: 8px;
            margin-bottom: 4px;
        }

        .md5-version-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .access-dark-mode .md5-version-row {
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
        }

        .md5-copy-btn {
            background: none;
            border: none;
            padding: 4px;
            cursor: pointer;
            color: #64748b;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .md5-copy-btn:hover {
            background-color: rgba(37, 99, 235, 0.1);
            color: #2563eb;
        }

        .access-dark-mode .md5-copy-btn {
            color: #94a3b8;
        }

        .access-dark-mode .md5-copy-btn:hover {
            background-color: rgba(96, 165, 250, 0.15);
            color: #60a5fa;
        }

        .md5-identical-notice {
            font-size: 0.72rem;
            color: #7c3aed;
            /* vibrant violet/purple */
            margin-top: 5px;
            font-weight: 600;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .access-dark-mode .md5-identical-notice {
            color: #a78bfa;
            /* lighter violet for dark mode */
        }

        .md5-version-cscs {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px;
        }

        .md5-badge-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            white-space: nowrap;
        }

        .md5-badge-csc {
            background: rgba(147, 51, 234, 0.1);
            color: rgb(147, 51, 234);
            border: 1px solid rgba(147, 51, 234, 0.2);
            font-weight: 800;
            font-size: 0.75rem;
            padding: 2px 6px;
        }

        .access-dark-mode .md5-badge-csc {
            background: rgba(168, 85, 247, 0.15);
            color: #c084fc;
            border-color: rgba(168, 85, 247, 0.3);
        }

        /* Model Chips styling */
        .model-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(16, 185, 129, 0.08);
            /* emerald green tint */
            color: #10b981;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 700;
            border: 1px solid rgba(16, 185, 129, 0.15);
            transition: all 0.2s ease;
        }

        .model-chip:hover {
            background: rgba(16, 185, 129, 0.15);
        }

        .model-chip-remove {
            cursor: pointer;
            font-weight: 900;
            color: #ef4444;
            transition: transform 0.2s;
            font-size: 0.95rem;
            padding-left: 2px;
        }

        html[dir="rtl"] .model-chip-remove {
            padding-left: 0;
            padding-right: 2px;
        }

        .model-chip-remove:hover {
            transform: scale(1.25);
        }

        .access-dark-mode .model-chip {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.3);
        }

        .access-dark-mode .model-chip:hover {
            background: rgba(16, 185, 129, 0.25);
        }

        /* Model Badge on card */
        .md5-badge-model {
            background: rgba(16, 185, 129, 0.1);
            color: rgb(16, 185, 129);
            border: 1px solid rgba(16, 185, 129, 0.2);
            font-weight: 800;
        }

        .access-dark-mode .md5-badge-model {
            background: rgba(52, 211, 153, 0.15);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.3);
        }

        /* Model Section Headers in results list */
        .md5-model-section-header {
            border-bottom: 2px solid rgba(16, 185, 129, 0.15);
            padding-bottom: 6px;
            margin-top: 28px;
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .md5-model-section-title {
            font-size: 1.1rem;
            font-weight: 800;
            color: #1e293b;
        }

        .access-dark-mode .md5-model-section-title {
            color: #f1f5f9;
        }

        .access-dark-mode .md5-model-section-header {
            border-bottom-color: rgba(52, 211, 153, 0.2);
        }

        /* Model results outer wrapper block */
        .md5-model-results-block {
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(226, 232, 240, 0.8);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 24px;
            box-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.12), 0 2px 8px -1px rgba(148, 163, 184, 0.08);
        }

        .md5-model-results-block .md5-model-section-header {
            margin-top: 0;
            margin-bottom: 0;
        }

        /* Accordion Header Styles */
        .md5-model-section-header.clickable {
            cursor: pointer;
            user-select: none;
            padding: 8px 12px;
            border-bottom: none;
            border-radius: 12px;
            transition: background-color 0.2s, border-color 0.2s;
        }

        .md5-model-section-header.clickable:hover {
            background-color: rgba(16, 185, 129, 0.05);
        }

        .access-dark-mode .md5-model-section-header.clickable:hover {
            background-color: rgba(52, 211, 153, 0.05);
        }

        .md5-model-section-header.clickable.active-hdr {
            border-bottom: 2px solid rgba(16, 185, 129, 0.15);
            border-radius: 12px 12px 0 0;
            margin-bottom: 16px;
            background-color: rgba(16, 185, 129, 0.03);
        }

        .access-dark-mode .md5-model-section-header.clickable.active-hdr {
            border-bottom-color: rgba(52, 211, 153, 0.2);
            background-color: rgba(52, 211, 153, 0.03);
        }

        /* Accordion Arrow */
        .md5-accordion-arrow {
            display: inline-block;
            transition: transform 0.2s;
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .md5-accordion-arrow.open {
            color: #10b981;
        }

        .access-dark-mode .md5-accordion-arrow.open {
            color: #34d399;
        }

        /* Version Summary Badges in Header */
        .md5-model-header-summary {
            font-size: 0.8rem;
            font-weight: 600;
        }

        .md5-summary-badge {
            padding: 3px 8px;
            border-radius: 8px;
            font-family: monospace;
            font-size: 0.78rem;
            white-space: nowrap;
        }

        .md5-summary-badge.beta {
            background: rgba(147, 51, 234, 0.08);
            color: rgb(147, 51, 234);
            border: 1px solid rgba(147, 51, 234, 0.15);
        }

        .md5-summary-badge.stable {
            background: rgba(16, 185, 129, 0.08);
            color: rgb(16, 185, 129);
            border: 1px solid rgba(16, 185, 129, 0.15);
        }

        .access-dark-mode .md5-summary-badge.beta {
            background: rgba(168, 85, 247, 0.15);
            color: #c084fc;
            border-color: rgba(168, 85, 247, 0.3);
        }

        .access-dark-mode .md5-summary-badge.stable {
            background: rgba(52, 211, 153, 0.15);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.3);
        }

        .access-dark-mode .md5-model-results-block {
            background: rgba(30, 41, 59, 0.4);
            border-color: rgba(255, 255, 255, 0.06);
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25), 0 2px 8px -1px rgba(0, 0, 0, 0.15);
        }

        /* Latest Beta vs Stable Grid */
        .md5-latest-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }

        @media (min-width: 768px) {
            .md5-latest-grid.has-two {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* Add Device button & configuration chips styling */
        #btn-md5-add-device {
            background: #eff6ff;
            color: #2563eb;
            border: 1px solid rgba(37, 99, 235, 0.25);
            font-weight: 700;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        #btn-md5-add-device:hover {
            background: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
            transform: translateY(-1px);
        }

        .added-device-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(16, 185, 129, 0.08);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.15);
            padding: 8px 14px;
            border-radius: 24px;
            font-weight: 700;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.03);
        }

        .added-device-chip:hover {
            background: rgba(16, 185, 129, 0.12);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(16, 185, 129, 0.08);
        }

        .added-device-chip-remove {
            cursor: pointer;
            font-weight: 900;
            color: #ef4444;
            transition: transform 0.2s;
            font-size: 1rem;
            padding-left: 2px;
        }

        html[dir="rtl"] .added-device-chip-remove {
            padding-left: 0;
            padding-right: 2px;
        }

        .added-device-chip-remove:hover {
            transform: scale(1.3);
        }

        /* Dark mode overrides */
        .access-dark-mode #btn-md5-add-device {
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border-color: rgba(59, 130, 246, 0.35);
        }

        .access-dark-mode #btn-md5-add-device:hover {
            background: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .access-dark-mode .added-device-chip {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.3);
        }

        .access-dark-mode .added-device-chip:hover {
            background: rgba(16, 185, 129, 0.25);
            box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
        }

/* ==========================================
   PREMIUM FLOATING SUPPORT CHAT WIDGET
========================================== */
.floating-support {
    position: fixed;
    bottom: 80px;
    left: 24px;
    z-index: 10000;
    font-family: 'Rubik', 'Nunito', 'Segoe UI', sans-serif;
}

/* Mobile adjust for bottom navigation bar */
@media (max-width: 768px) {
    .floating-support {
        bottom: 95px;
        left: 16px;
    }
}

/* Chat bubble invitation text */
.support-bubble {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: bounceBubble 1.5s infinite alternate;
    pointer-events: none;
}
.support-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 22px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.9) transparent;
}

@keyframes bounceBubble {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Floating button */
.support-btn.chat-floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0;
}
.support-btn.chat-floating-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.support-btn.chat-floating-btn:active {
    transform: scale(0.95);
}
.support-btn.chat-floating-btn .support-icon-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Unread Badge */
.chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulseBadge 1.8s infinite;
}
@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Chat active rotation */
.support-btn.chat-floating-btn.chat-active {
    background: #0f172a;
    transform: rotate(90deg);
}

/* Chat Window Container */
.chat-window {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 380px;
    height: 520px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 10001;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Smooth zoom-in slide-up */
.chat-window.active {
    animation: chatOpen 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile layout: Fullscreen */
@media (max-width: 1200px) {
    .chat-window {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        border: none;
        z-index: 99999;
    }
    @keyframes chatOpen {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 16px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-header-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: flashDot 2s infinite alternate;
}
@keyframes flashDot {
    from { opacity: 0.6; }
    to { opacity: 1; }
}
.chat-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.chat-header-status {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
}
.chat-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.chat-close-btn:hover {
    color: #ffffff;
}

/* Message Area */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(248, 250, 252, 0.7);
}

/* Chat scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 4px;
}

/* Bubbles */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}
.chat-message.system {
    align-self: center;
    max-width: 90%;
    text-align: center;
}
.chat-message.system .message-bubble {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    font-size: 0.85rem;
    border-radius: 12px;
    padding: 8px 14px;
    border: none;
    font-weight: 500;
}
.chat-message.system span {
    display: none;
}

.chat-message.user {
    align-self: flex-start;
}
.chat-message.user .message-bubble {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.chat-message.admin {
    align-self: flex-end;
}
.chat-message.admin .message-bubble {
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px 16px 4px 16px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.message-bubble {
    padding: 10px 14px;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
}

.message-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
    align-self: flex-end;
    padding: 0 4px;
}
.chat-message.user .message-time {
    align-self: flex-start;
}

.chat-message.loading-msg {
    opacity: 0.7;
}

/* Footer / Input area */
.chat-input-area {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
#chatInputText {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.92rem;
    resize: none;
    background: #f8fafc;
    max-height: 120px;
    min-height: 40px;
    height: 40px;
    text-align: right;
    direction: rtl;
    line-height: 1.3;
    overflow-y: auto;
    transition: all 0.2s;
    max-width: 100%;
}
#chatInputText:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.chat-send-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: scale(1.05);
}
.chat-send-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}
.chat-send-btn .send-icon {
    font-size: 1.1rem;
    transform: rotate(90deg);
    display: inline-block;
    line-height: 1;
}

/* Dark Mode Overrides for support chat widget */
.access-dark-mode .chat-window {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}
.access-dark-mode .chat-messages {
    background: rgba(9, 15, 29, 0.7);
}
.access-dark-mode .chat-message.admin .message-bubble {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.05);
}
.access-dark-mode .chat-message.system .message-bubble {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.access-dark-mode .chat-input-area {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.access-dark-mode #chatInputText {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}
.access-dark-mode #chatInputText:focus {
    border-color: #3b82f6;
    background: #0f172a;
}
.access-dark-mode .chat-send-btn:disabled {
    background: #1e293b;
    color: #475569;
}

/* Chat Input Error Overlay */
.chat-input-error {
    position: absolute;
    bottom: 60px;
    left: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Chatbot Options Styles */
.chat-bot-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 20px;
    align-items: flex-start;
    animation: fadeInOptions 0.3s ease forwards;
}

@keyframes fadeInOptions {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-bot-option-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.05);
}

.chat-bot-option-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.chat-bot-option-btn:active {
    transform: translateY(0);
}

.access-dark-mode .chat-bot-option-btn {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.access-dark-mode .chat-bot-option-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Custom Floating Toast Alert */
.chat-custom-toast {
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.chat-custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.chat-custom-toast.error {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}
.chat-custom-toast.success {
    background: rgba(16, 185, 129, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
.chat-custom-toast.info {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Custom Modal Dialog for Confirmations */
.chat-custom-confirm-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    border-radius: 20px;
    animation: fadeInConfirm 0.2s ease-out forwards;
}
@keyframes fadeInConfirm {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-custom-confirm-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    width: 85%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: popConfirm 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popConfirm {
    to { transform: scale(1); }
}

.chat-custom-confirm-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f8fafc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.chat-custom-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.chat-custom-confirm-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
}

.chat-custom-confirm-btn.yes {
    background: #3b82f6;
    color: #ffffff;
}
.chat-custom-confirm-btn.yes:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chat-custom-confirm-btn.no {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-custom-confirm-btn.no:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.access-dark-mode .chat-custom-confirm-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

