      * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background: url('https://i.ibb.co/1GbWT4kJ/background2.png') center/cover no-repeat fixed;
            color: #fff;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-height: 100vh; 
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center; 
            padding: 2rem;
            position: relative;
            overflow-x: hidden;
        }
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(2px);
            z-index: -1;
        }
        #loader-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-color: #0a0a0a; display: flex; justify-content: center;
            align-items: center; z-index: 9999;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
            opacity: 1; visibility: visible;
        }
        #loader-overlay.hidden { opacity: 0; visibility: hidden; }
        
        @keyframes square-animation {
         0% { left: 0; top: 0; }
         10.5% { left: 0; top: 0; }
         12.5% { left: 32px; top: 0; }
         23% { left: 32px; top: 0; }
         25% { left: 64px; top: 0; }
         35.5% { left: 64px; top: 0; }
         37.5% { left: 64px; top: 32px; }
         48% { left: 64px; top: 32px; }
         50% { left: 32px; top: 32px; }
         60.5% { left: 32px; top: 32px; }
         62.5% { left: 32px; top: 64px; }
         73% { left: 32px; top: 64px; }
         75% { left: 0; top: 64px; }
         85.5% { left: 0; top: 64px; }
         87.5% { left: 0; top: 32px; }
         98% { left: 0; top: 32px; }
         100% { left: 0; top: 0; }
        }

        .loader {
         position: relative;
         width: 96px;
         height: 96px;
         transform: rotate(45deg);
        }

        .loader-square {
         position: absolute;
         top: 0;
         left: 0;
         width: 28px;
         height: 28px;
         margin: 2px;
         border-radius: 0px;
         background: white;
         background-size: cover;
         background-position: center;
         background-attachment: fixed;
         animation: square-animation 10s ease-in-out infinite both;
        }

        .loader-square:nth-of-type(1) { animation-delay: 0s; }
        .loader-square:nth-of-type(2) { animation-delay: -1.4285714286s; }
        .loader-square:nth-of-type(3) { animation-delay: -2.8571428571s; }
        .loader-square:nth-of-type(4) { animation-delay: -4.2857142857s; }
        .loader-square:nth-of-type(5) { animation-delay: -5.7142857143s; }
        .loader-square:nth-of-type(6) { animation-delay: -7.1428571429s; }
        .loader-square:nth-of-type(7) { animation-delay: -8.5714285714s; }
        .loader-square:nth-of-type(8) { animation-delay: -10s; }
        
        .main-content-wrapper {
            opacity: 0; visibility: hidden; transition: opacity 0.5s ease-in;
            width: 100%; display: flex; flex-direction: column; align-items: center;
        }
        .main-content-wrapper.visible { opacity: 1; visibility: visible; }
        
        .tabs-navigation-wrapper {
            position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000;
        }
        .tabs-container { position: relative; }
        .hover-highlight {
            position: absolute; top: 0; height: 30px; background-color: #ffffff1a; 
            border-radius: 6px; transition: all 300ms ease-out; opacity: 0; pointer-events: none; 
        }
        .active-indicator {
            position: absolute; bottom: -6px; height: 2px; background-color: #ffffff; 
            transition: all 300ms ease-out;
        }
        .tabs { position: relative; display: flex; gap: 6px; align-items: center; }
        .tab, .panel-button {
            padding: 0 12px; height: 30px; cursor: pointer; transition: color 300ms;
            color: #ffffff99; font-size: 14px; line-height: 20px; white-space: nowrap;
            display: inline-flex; align-items: center; justify-content: center; user-select: none;
            background: none; border: none; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        .tab.active, .panel-button:hover { color: #ffffff; }
        
        .panels-container {
            padding-top: 80px; width: 100%; display: flex; flex-direction: column; align-items: center;
        }
        .content-panel {
            display: none; animation: fadeInPanel 0.5s; width: 100%; max-width: 500px; 
        }
        .content-panel.active { display: block; }
        @keyframes fadeInPanel {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .container { width: 100%; text-align: center; }
        .logo { width: 120px; height: 120px; margin: 0 auto 2rem; border-radius: 20px; overflow: hidden; }
        .logo img { width: 100%; height: 100%; object-fit: cover; }
        
        .inputGroup {
            font-family: 'Segoe UI', sans-serif; margin: 1em 0 1em 0;
            max-width: 400px; 
            width: 100%; position: relative;
        }
        .inputGroup input {
            font-size: 100%; padding: 0.8em; outline: none;
            border: 2px solid rgb(100, 100, 100); 
            background-color: transparent; border-radius: 12px; 
            width: 100%; color: rgb(220, 220, 220); 
        }
        .inputGroup input::placeholder {
            color: rgb(180, 180, 180);
            opacity: 1; 
        }
        .inputGroup input:focus { 
            border-color: #fff; 
        }
        
        .slash-icon {
            position: absolute; right: 1em; top: 50%; 
            transform: translateY(-50%);
            border: 1px solid #393838; background: linear-gradient(-225deg, #343434, #6d6d6d);
            border-radius: 4px; text-align: center; font-size: 12px; width: 20px; height: 20px;
            line-height: 18px; font-family: monospace; color: #9e9e9e;
            box-shadow: inset 0 -2px 0 0 #3f3f3f, inset 0 0 1px 1px rgb(94, 93, 93), 0 1px 2px 1px rgba(28, 28, 29, 0.4);
            transition: opacity 0.3s ease; pointer-events: none;
        }
        .inputGroup input:focus ~ .slash-icon,
        .inputGroup input:valid ~ .slash-icon { 
            opacity: 0; 
        }

        .content-box {
            text-align: left; background: rgba(30, 30, 30, 0.85); 
            padding: 1.5rem 2rem;
            border-radius: 12px; backdrop-filter: blur(10px); margin-top: 1rem; 
            color: #eee;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .content-box h3.tool-title { 
            font-size: 1.4em; 
            margin-bottom: 1.2em; 
            color: #fff; 
            border-bottom: 1px solid rgba(255,255,255,0.2); 
            padding-bottom: 0.6em;
            text-align: center;
        }
        .content-box label { display: block; margin-bottom: 0.3em; font-size: 0.9em; color: #ccc;}
        .content-box input[type="text"] {
            width: 100%; padding: 0.7em 0.8em; margin-bottom: 0.8em;
            background-color: rgba(0,0,0,0.4); border: 1px solid #555;
            color: #fff; border-radius: 6px; font-size: 1em;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
         .content-box input[type="text"]:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        }
        
        .action-button {
            padding: 0.7em 1.2em;
            background-color: #007bff; 
            color: #ffffff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 500;
            transition: background-color 0.2s ease-in-out, transform 0.1s ease;
            text-align: center;
        }
        .action-button:hover {
            background-color: #0056b3; 
        }
        .action-button:active {
            transform: translateY(1px); 
        }
        .audio-button.action-button { 
             margin-left: 0; 
             padding: 0.6em 1em; 
             font-size: 0.9em; 
             margin-top: 1em;
             display: inline-block;
             width: auto;
        }

        .tool-section { margin-bottom: 2rem; }
        .tool-section:last-child { margin-bottom: 0;}
        
        .dictionary-search-form {
            display: flex;
            gap: 0.8em;
            margin-bottom: 1.5em;
            align-items: center;
        }
        .dictionary-search-form input[type="text"] {
            flex-grow: 1;
            margin-bottom: 0;
        }
        .dictionary-search-form .action-button {
            flex-shrink: 0;
            margin-top: 0;
            width: auto; 
            padding: 0.7em 1.5em;
        }
        
        .dictionary-loader {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100px; 
        }
        .dictionary-loader span {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #fff;
            margin: 0 3px;
            animation: pulseLoader 1.4s infinite ease-in-out both;
        }
        .dictionary-loader span:nth-child(1) { animation-delay: -0.32s; }
        .dictionary-loader span:nth-child(2) { animation-delay: -0.16s; }
        .dictionary-loader span:nth-child(3) { animation-delay: 0s; }

        @keyframes pulseLoader {
            0%, 80%, 100% { transform: scale(0.3); opacity: 0.5; }
            40% { transform: scale(1.0); opacity: 1; }
        }

        .results-box { 
            margin-top: 1em; 
            padding: 1.5em; 
            background-color: rgba(0,0,0,0.3); 
            border-radius: 8px; 
            font-size: 0.95em; 
            line-height: 1.6;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .results-box.loading {
            padding: 0; /* Remove padding when loader is active */
        }

        .results-content.hidden { display: none; }
        .results-content.visible {
            animation: fadeInUp 0.6s ease-out forwards;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .results-box h3.word-title { 
            font-size: 2em;
            color: #fff;
            margin-bottom: 0.2em;
            border-bottom: none;
            padding-bottom: 0;
        }
        .results-box .phonetic-text {
            font-style: italic;
            color: #b0b0b0;
            margin-bottom: 1em;
            display: block;
            font-size: 1em;
        }
        .results-box h4.part-of-speech { 
            font-size: 1.2em;
            color: #e0e0e0;
            margin-top: 1.5em;
            margin-bottom: 0.6em;
            font-weight: 600;
            border-bottom: 1px solid rgba(255,255,255,0.15);
            padding-bottom: 0.3em;
        }
        .results-box ul {
            list-style-type: none;
            padding-left: 0.5em;
            margin-bottom: 1em;
        }
        .results-box li {
            margin-bottom: 0.8em;
            padding-left: 1.2em;
            position: relative;
        }
        .results-box li::before {
            content: '•';
            color: #007bff;
            font-weight: bold;
            display: inline-block; 
            position: absolute;
            left: 0;
            top: 1px; 
        }
        .results-box li .example {
            display: block;
            font-style: italic;
            color: #999;
            margin-top: 0.3em;
            padding-left: 0.5em;
            font-size: 0.9em;
        }
       
        .faq-container { text-align: left; }
        .faq-item { margin-bottom: 1.5rem; }
        .faq-item:last-child { margin-bottom: 0; }
        .faq-item h3 { font-size: 18px; margin-bottom: 0.5rem; color: #fff; border-bottom: none; padding-bottom: 0;}
        .faq-item p { font-size: 16px; color: #ccc; line-height: 1.6; }

        .chat-widget-container {
            position: fixed; bottom: 20px; right: 20px; width: 300px; height: 320px;
            background-color: #343541; border-radius: 8px; display: flex; flex-direction: column;
            z-index: 1001; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: none; 
        }
        .chat-widget-container.visible { display: flex; }
        .chat-nav-bar {
            width: 100%; height: 40px; display: flex; align-items: center; justify-content: space-between;
            border-bottom: 1px solid #2E2F3A; cursor: grab; 
        }
        .chat-nav-bar:active { cursor: grabbing; } 
        .chat-nav-bar .title {
            color: #ccc; white-space: nowrap; margin-left: 10px; user-select: none; font-size: 14px;
            pointer-events: none; 
        }
        .chat-close-button {
            width: 40px; height: 40px; display: flex; justify-content: center;
            align-items: center; position: relative; cursor: pointer;
        }
        .chat-line {
            position: absolute; width: 18px; height: 2.5px;
            background-color: #6B6C7B; border-radius: 30px;
        }
        .chat-line.one { transform: rotate(45deg); }
        .chat-line.two { transform: rotate(135deg); }
        .chat-messages-area {
            background-color: #343541; width: 100%; flex-grow: 1;
            overflow-y: auto; padding: 10px; display: flex; flex-direction: column;
        }
        .chat-message {
            padding: 8px 12px; border-radius: 15px; margin-bottom: 8px;
            max-width: 80%; word-wrap: break-word; font-size: 14px; line-height: 1.4;
        }
        .chat-message.user {
            background-color: #007bff; color: white; align-self: flex-end;
            border-bottom-right-radius: 3px;
        }
        .chat-message.ai {
            background-color: #40414F; color: #f1f1f1; align-self: flex-start;
            border-bottom-left-radius: 3px;
        }
        .chat-message.ai p { margin: 0.5em 0; }
        .chat-message.ai ul, .chat-message.ai ol { margin-left: 1.5em; margin-bottom: 0.5em;}
        .chat-message.ai code { background-color: rgba(0,0,0,0.5); padding: 0.1em 0.3em; border-radius: 3px; font-family: monospace;}
        .chat-message.ai pre code { display: block; padding: 0.5em; overflow-x: auto; margin: 0.5em 0;}
        .chat-message.ai strong { font-weight: bold; }
        .chat-message.ai em { font-style: italic; }

        .chat-sender-area {
            background-color: #343541; width: 100%; height: 70px;
            display: flex; align-items: center; padding: 0 10px;
            border-top: 1px solid #2E2F3A;
        }
        .chat-input-place {
            display: flex; flex-direction: row; align-items: center;
            background-color: #40414F; border-radius: 7px; height: 40px;
            width: 100%; gap: 5px; border: 1px solid #2E2F3A; padding: 0 5px 0 10px;
        }
        .chat-send-input {
            outline: none; display: flex; border: none; background: none;
            height: 100%; flex-grow: 1; color: white; font-size: 14px;
        }
        .chat-send-input::placeholder { color: #828E9E; }
        .chat-send-button {
            width: 30px; height: 30px; background-color: transparent;
            display: flex; align-items: center; justify-content: center; cursor: pointer;
            border: none; padding: 0;
        }
        .chat-send-icon { width: 17px; height: 17px; }