.logo {
    width: auto;
    height: 150px;
}

:root {
    --primary-color: #1a5f7a;
    --primary-dark: #0a3d5c;
    --secondary-color: #2d9cdb;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --warning-color: #e74c3c;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    min-height: 100vh;
    padding: 0 15px 20px 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 500px) {
    body {
        padding: 0 10px 15px 10px;
    }
}

/* طبقة الخلفية المحسنة للأداء */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(at 0% 0%, rgba(26, 95, 122, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(45, 156, 219, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(10, 61, 92, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(39, 174, 96, 0.02) 0px, transparent 50%);
    pointer-events: none;
    will-change: transform;
}

@keyframes meshGradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    background: #ffffff;
    /* Simplified for performance */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* المكون الرأسي الموحد (Integrated Header) */
.header {
    background: linear-gradient(135deg, rgba(10, 61, 92, 0.96), rgba(26, 95, 122, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 5px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 90px;
}

.header-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    z-index: 1200;
    /* Keep above drawer */
}

.header .logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.header .logo:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 6px 0;
    /* Equal top and bottom margins */
    letter-spacing: 1px;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.header .subtitle {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 2px;
    white-space: nowrap;
}

/* الزر المشغل للقائمة في الهواتف */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s ease;
    z-index: 1200;
    /* Ensure it stays above everything */
    order: 2;
    /* Put it on the far left (in RTL) or right */
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* تحسين شريط التنقل داخل الهيدر */
.nav-bar {
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
    position: static;
}

.nav-container {
    display: flex;
    gap: 10px;
    padding: 0;
}

.nav-link {
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 14px;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: var(--secondary-color);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* قسم الإدخال */
.input-section {
    padding: 30px;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
}

#word {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

#word:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
    background: white;
}

#word::placeholder {
    color: #999;
}

button {
    padding: 16px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.3);
}

button:active {
    transform: translateY(-1px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 95, 122, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(26, 95, 122, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 95, 122, 0);
    }
}

.input-section button {
    animation: pulse 2s infinite;
}

/* أقسام النتائج */
.results-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
}

.result-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #f8fafc;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    font-size: 20px;
}

.card-content {
    padding: 20px;
}

@media (max-width: 400px) {
    .card-content {
        padding: 15px;
    }
}

/* تحسين لعرض النتائج الصرفية */
#output .item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

#output .item.best {
    background: #f0f9ff;
    border-right: 4px solid var(--secondary-color);
    border-radius: 4px;
}

#output .note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-right: 10px;
}

/* تحسين جداول التصريف */
.conjugation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.conjugation-table thead th {
    background: #f8fafc;
    padding: 14px 12px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.conjugation-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.conjugation-table tbody tr:hover {
    background: #f9f9f9;
}

.conjugation-table .group-row td {
    background: #f0f7ff;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 12px;
    text-align: center;
}

.conjugation-table .pronoun {
    font-weight: 600;
    color: #2c3e50;
    width: 40%;
}

.conjugation-table .verb {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #2980b9;
}

/* قسم المعاجم */
#dictionaryResults {
    margin-top: 20px;
}

.dict-panel {
    animation: fadeIn 0.5s ease;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    max-height: 600px;
    overflow-y: auto;
}

.dict-panel::-webkit-scrollbar {
    width: 8px;
}

.dict-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dict-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dict-panel::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dict-item {
    transition: all 0.3s ease;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
}

.dict-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.root {
    font-weight: 700;
    color: var(--primary-color);

}

.dict-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: var(--radius);
    border-right: 4px solid var(--success-color);
}

.dict-name {
    color: var(--primary-dark);
    font-size: 19px;
    font-weight: 700;
    font-family: 'Amiri', serif;
    /* Classic font for dict naming */
    flex-grow: 1;
}

.dict-content {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
    text-transform: uppercase;
}

.badge-primary {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-secondary {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسالة التحميل */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

/* حالات فارغة */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #777;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

/* الشعار والأيقونات */
.icon {
    display: inline-block;
    margin-left: 8px;
}

/* تذييل الصفحة */
.footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #666;
    margin: 0px 30px;

}

/* تفاصيل إضافية */
.info-text {
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    background: #f0f7ff;
    padding: 12px 20px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* تحسين للجداول داخل نتائج التحليل */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--primary-color);
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* تخصيص للعناصر الداخلية */
#extractRoot span {
    display: inline-block;
    padding: 1px 1px;
    margin: 2px;
    background: #f0f7ff;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid #d1e3ff;
}

/* تصميم متجاوب للهيدر والقائمة الجانبية */
@media (max-width: 992px) {
    .header-top {
        padding: 0 10px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 850px) {
    .header-top {
        max-width: 100%;
        padding: 0 5px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(10, 61, 92, 0.99), rgba(26, 95, 122, 0.99));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 100px 15px 20px;
        z-index: 1050;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: block !important;
        /* Make sure it's not hidden by other rules */
    }

    .nav-bar.active {
        right: 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        font-size: 16px;
        color: white;
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        border-bottom: none;
        border-right: 5px solid var(--secondary-color);
    }
}

@media (max-width: 500px) {
    .header-top {
        height: 80px;
    }

    .header .logo {
        height: 55px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header .subtitle {
        display: none;
    }

    .header-identity {
        gap: 10px;
    }

    .mobile-menu-toggle {
        padding: 10px;
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .header-top {
        height: 75px;
        padding: 0 8px;
    }

    .header .logo {
        height: 50px;
    }

    .header h1 {
        font-size: 18px;
    }

    .input-section {
        padding: 20px 15px;
    }

    .results-container {
        padding: 15px;
        gap: 15px;
    }

    .card-header {
        padding: 12px 15px;
    }

    .card-title {
        font-size: 16px;
    }

    .promo-content {
        padding: 15px;
    }

    .promo-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .promo-text h3 {
        font-size: 1.2rem;
    }

    .footer {
        margin: 0 10px;
        padding: 15px;
    }
}

/* Ensure tables are responsive */
.card-content {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* New UI Styles */
/* تم حذف التكرار هنا لأنها أصبحت داخل الهيدر */

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

.page-content {
    padding: 40px;
    min-height: 400px;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* About Page */
.doc-section {
    margin-bottom: 40px;
    background: #fcfcfc;
    padding: 25px;
    border-radius: var(--radius);
    border-right: 5px solid var(--secondary-color);
}

.doc-section h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, white, #f8fafc);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 30px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 14px;
    color: #666;
}

.process-steps-list {
    list-style: none;
}

.process-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.process-steps-list span {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Contact Page */
.contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: white;
    max-width: 450px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #eee;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #f0f7ff;
    margin-bottom: 20px;
    object-fit: cover;
}

.contact-header h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-header p {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #444;
}

.info-item i {
    color: var(--secondary-color);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

/* Support Page */
.support-hero {
    margin-bottom: 50px;
}

.heart-icon {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.support-card.premium {
    background: linear-gradient(to bottom, #fff, #fefefe);
    border: 2px solid #f0f7ff;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
}

.support-note {
    font-style: italic;
    color: #555;
    margin-top: 20px;
    font-size: 17px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Project Details & About Page New Styles
   ========================================================================== */

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

/* Timeline / Process Flow Styles */
.timeline-container {
    position: relative;
    padding: 30px 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 30px;
    /* Adjust for RTL */
    width: 3px;
    background: #e0e0e0;
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
    padding-right: 70px;
    /* Space for icon */
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    position: absolute;
    right: 8px;
    /* Align with line */
    top: 0;
    width: 46px;
    height: 46px;
    background: white;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-step:hover .step-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
    color: white;
}

.step-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.timeline-step:hover .step-content {
    transform: translateX(-5px);
    /* Move slightly left */
    border-color: var(--secondary-color);
}

.step-content h4 {
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Features List Styles */
.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.features-list li i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Dictionary List Styles */
.dictionaries-list-section {
    background: white !important;
    border: none !important;
    padding: 0 !important;
}

.dict-category {
    margin-bottom: 30px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.dict-category h4 {
    display: block;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: white;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: default;
    display: inline-block;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 95, 122, 0.2);
}

/* Mobile Adjustments for Timeline */
@media (max-width: 600px) {
    .timeline-container::before {
        right: 20px;
    }

    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        right: 4px;
    }

    .timeline-step {
        padding-right: 50px;
    }
}


/* Dictionary List Styles (Bulleted) */
.dict-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.dict-list li {
    position: relative;
    padding-right: 25px;
    font-size: 1rem;
    color: #444;
    transition: transform 0.2s;
}

.dict-list li::before {
    content: '▪';
    color: var(--secondary-color);
    position: absolute;
    right: 5px;
    top: 0px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.dict-list li:hover {
    transform: translateX(-5px);
    color: var(--primary-color);
    font-weight: 500;
}


/* Support Page Payment Styles */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.payment-method {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(45, 156, 219, 0.1);
    transform: translateY(-2px);
}

.pm-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.payment-method h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.code-box {
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

.code {
    font-family: monospace;
    font-size: 1.1rem;
    color: #334155;
    word-break: break-all;
    direction: ltr;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #f1f5f9;
    color: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

.payment-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: bold;
    position: relative;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    height: 1px;
    background: #e2e8f0;
    flex-grow: 1;
    margin: 0 15px;
}

.bank-name {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}


/* Games Promo Section */
.games-promo-section {
    margin: 30px 0;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 12px;
    padding: 25px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease 0.2s backwards;
}

.games-promo-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.promo-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.promo-text {
    flex: 1;
}

.promo-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.promo-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.promo-btn {
    background: white;
    color: #6c5ce7;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.promo-btn i {
    transition: transform 0.3s;
}

.promo-btn:hover i {
    transform: translateX(-3px);
}

@media (max-width: 600px) {
    .promo-content {
        flex-direction: column;
        text-align: center;
    }

    .promo-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Result Tip Styles */
.result-tip {
    background: #fff8e1;
    border-right: 4px solid #ffb300;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #5d4037;
    line-height: 1.6;
}

/* Logs Accordion Styles */
.logs-accordion {
    margin-top: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.log-toggle-btn {
    background: #f5f5f5;
    padding: 12px 20px;
    border: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-weight: bold;
    color: #616161;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.log-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-emoji {
    font-size: 18px;
}

.log-collapse-content {
    background: #fafafa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.log-body {
    padding: 15px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #424242;
}

.log-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid #efefef;
    padding-bottom: 5px;
}

/* Empty State Styles */
.empty-dict-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff8f8;
    border-radius: 12px;
    margin: 20px;
    border: 1px dashed #e57373;
}

.empty-icon {
    font-size: 24px;
    color: #e57373;
    margin-bottom: 15px;
}

.empty-title {
    font-size: 18px;
    color: #d32f2f;
    margin-bottom: 8px;
    font-weight: bold;
}

.empty-subtitle {
    color: #666;
    font-size: 14px;
}

@media (max-width: 400px) {
    .result-tip {
        padding: 10px;
        font-size: 13px;
    }

    .log-toggle-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .log-body {
        padding: 10px;
        font-size: 12px;
    }

    .empty-dict-results {
        padding: 30px 15px;
        margin: 10px;
    }
}
/* AI Section Styles */
.ai-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a5f7a, #2d9cdb);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.2);
    margin-top: 10px;
    animation: fadeIn 0.5s ease;
}

.ai-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
    background: linear-gradient(135deg, #0a3d5c, #1a5f7a);
}

.ai-btn:disabled {
    cursor: default;
    background: #ccc;
    box-shadow: none;
}

.ai-status {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

.ai-loading { color: var(--primary-color); }
.ai-success { color: var(--success-color); font-weight: 600; }
.ai-error { color: var(--warning-color); }

.ai-highlight {
    border-right: 4px solid var(--secondary-color) !important;
    background: #f0f7ff !important;
}

@media (max-width: 400px) {
    .ai-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}
