/* Rabar Font - Kurdish Font */
/* If you have Rabar font files, add them here using @font-face */
/* Example:
@font-face {
    font-family: 'Rabar';
    src: url('fonts/Rabar-Regular.woff2') format('woff2'),
         url('fonts/Rabar-Regular.woff') format('woff'),
         url('fonts/Rabar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
*/

/* Using Noto Sans Arabic which supports Kurdish well */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

/* CSS Variables for Dark/Light Mode */
:root {
    /* Dark Mode (Default - Darker Blue) */
    --bg-primary: #0d1626;
    --bg-secondary: #152238;
    --bg-tertiary: #1a2d4a;
    --text-primary: #ffffff;
    --text-secondary: #e0e8f5;
    --text-muted: #a0b4d0;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-hover: #1e40af;
    --border-color: rgba(37, 99, 235, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(26, 45, 74, 0.8);
}

[data-theme="light"] {
    /* Light Mode */
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8f0f8;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-hover: #1e40af;
    --border-color: rgba(37, 99, 235, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Rabar', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    direction: inherit;
    overflow-x: hidden;
    visibility: visible;
    opacity: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    max-width: 100vw;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="ltr"] body {
    direction: ltr;
}

/* Navigation Header Styles */
.main-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-start;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    position: relative;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    background: var(--card-bg);
    color: var(--accent-secondary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2) 0%, rgba(52, 152, 219, 0.2) 100%);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #e67e22, #3498db);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    border: none;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Language Select Dropdown */
.language-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.language-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 35px 8px 16px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    min-width: 120px;
    font-family: 'Rabar', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
    background-image: none;
}

.language-select::-ms-expand {
    display: none;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.language-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.language-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

.language-select-icon {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: var(--text-primary);
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 1;
}

/* Updates Toggle Button */
.updates-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
    border: none;
}

.updates-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.updates-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.updates-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid var(--card-bg);
}

html[dir="ltr"] .updates-badge {
    right: auto;
    left: -5px;
}

/* Updates Dropdown */
.updates-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.updates-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -300px;
    width: 320px;
    max-width: 320px;
    max-height: calc(100vh - 100px);
    min-height: 300px;
    background: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

html[dir="ltr"] .updates-dropdown {
    right: auto;
    left: -300px;
}

.updates-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d1626;
    flex-shrink: 0;
}

.updates-dropdown-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.updates-dropdown-title::before {
    content: '\f0f3';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-primary);
    font-size: 13px;
}

.updates-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
}

.updates-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.updates-dropdown-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    min-height: 0;
    max-height: calc(100vh - 160px);
}

.updates-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.updates-dropdown-content::-webkit-scrollbar-track {
    background: #0d1626;
    border-radius: 3px;
}

.updates-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    min-height: 30px;
}

.updates-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 126, 34, 0.6);
}

/* Firefox scrollbar */
.updates-dropdown-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) #0d1626;
}

/* Update Item */
.update-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(21, 34, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

html[dir="ltr"] .update-item {
    border-left: none;
}

.update-item.clickable {
    cursor: pointer;
}

.update-item.clickable:hover {
    background: rgba(230, 126, 34, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.15);
}

.update-item:last-child {
    margin-bottom: 0;
}

.update-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 4px;
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 500;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.update-item.clickable:hover .update-item-link {
    background: rgba(230, 126, 34, 0.15);
    border-color: var(--accent-primary);
}

.update-item-link i {
    font-size: 11px;
}

.update-item.new {
    border-right: 3px solid #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

html[dir="ltr"] .update-item.new {
    border-right: none;
    border-left: 3px solid #27ae60;
}

.update-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.update-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.3;
    word-wrap: break-word;
}

.update-item-badge {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

html[dir="ltr"] .update-item-badge {
    margin-right: 0;
    margin-left: 0;
}

.update-item-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 6px;
    margin-bottom: 6px;
}

.update-item-date {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.update-item-date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 10px;
}

.updates-section {
    margin-bottom: 16px;
}

.updates-section:last-child {
    margin-bottom: 0;
}

.updates-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.updates-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.updates-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
    color: rgba(255, 255, 255, 0.3);
}

.updates-empty p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .updates-dropdown {
        right: 0;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        min-width: 280px;
        max-height: calc(100vh - 80px);
        min-height: 250px;
        top: calc(100% + 8px);
        border-radius: 8px;
    }

    html[dir="ltr"] .updates-dropdown {
        right: auto;
        left: 0;
    }

    .updates-dropdown-header {
        padding: 12px 14px;
    }

    .updates-dropdown-title {
        font-size: 14px;
    }

    .updates-dropdown-content {
        padding: 10px;
        max-height: calc(100vh - 180px);
    }

    .update-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .update-item-title {
        font-size: 13px;
    }

    .update-item-description {
        font-size: 12px;
    }

    .update-item-link {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .updates-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .updates-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    html[dir="ltr"] .updates-badge {
        left: -3px;
        right: auto;
    }

    .updates-dropdown {
        right: -190px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        min-width: 260px;
        max-height: calc(100vh - 70px);
        min-height: 200px;
        top: calc(100% + 8px);
    }

    html[dir="ltr"] .updates-dropdown {
        right: auto;
        left: -140px;
    }

    .updates-dropdown-header {
        padding: 10px 12px;
    }

    .updates-dropdown-title {
        font-size: 13px;
    }

    .updates-dropdown-content {
        padding: 8px;
        max-height: calc(100vh - 150px);
    }

    .update-item {
        padding: 10px;
        margin-bottom: 8px;
    }

    .update-item-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .update-item-title {
        font-size: 13px;
        width: 100%;
    }

    .update-item-badge {
        padding: 3px 8px;
        font-size: 9px;
    }

    .update-item-description {
        font-size: 12px;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .update-item-link {
        padding: 6px 10px;
        font-size: 11px;
        margin-top: 8px;
    }

    .update-item-date {
        font-size: 10px;
    }

    .updates-section-title {
        font-size: 12px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
}

@media (max-width: 360px) {
    .updates-dropdown {
        max-height: calc(100vh - 60px);
        min-height: 180px;
    }

    .updates-dropdown-content {
        max-height: calc(100vh - 140px);
    }

    .update-item {
        padding: 8px;
    }

    .update-item-title {
        font-size: 12px;
    }

    .update-item-description {
        font-size: 11px;
    }
}

html[dir="ltr"] .language-select {
    padding: 8px 16px 8px 35px;
}

html[dir="ltr"] .language-select-icon {
    right: auto;
    left: 12px;
}

.language-select-wrapper:hover .language-select-icon {
    color: var(--accent-primary);
}

.language-select-wrapper:hover .language-select {
    border-color: var(--accent-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
}

.mobile-menu-toggle:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .header-nav {
        gap: 5px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-container {
        padding: 10px 15px;
        min-height: 60px;
    }
    
    .header-nav {
        display: none;
        position: fixed;
        top: 60px;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: calc(100vh - 60px);
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: -2px 0 20px var(--shadow-color);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        gap: 10px;
    }
    
    .header-nav.active {
        display: flex;
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 8px;
        justify-content: flex-start;
        font-size: 16px;
    }
    
    .nav-link span {
        display: inline;
    }
    
    .nav-link i {
        font-size: 18px;
        width: 24px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .header-logo {
        max-width: 100px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .theme-toggle,
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .language-select {
        height: 40px;
        padding: 6px 30px 6px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    html[dir="ltr"] .language-select {
        padding: 6px 12px 6px 30px;
    }
    
    .language-select-icon {
        font-size: 14px;
        right: 10px;
    }
    
    html[dir="ltr"] .language-select-icon {
        left: 10px;
    }
    
    .main-header {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
        min-height: 56px;
    }
    
    .header-logo {
        max-width: 80px;
    }
    
    .header-nav {
        top: 56px;
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
    
    .theme-toggle,
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .language-select {
        height: 36px;
        padding: 4px 28px 4px 10px;
        font-size: 12px;
        min-width: 90px;
    }
    
    html[dir="ltr"] .language-select {
        padding: 4px 10px 4px 28px;
    }
    
    .language-select-icon {
        font-size: 13px;
        right: 8px;
    }
    
    html[dir="ltr"] .language-select-icon {
        left: 8px;
    }
}

/* Tablet Navigation */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-nav {
        gap: 6px;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Logo Header Styles (for backward compatibility) */
.logo-header {
    background: transparent;
    padding: 15px 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo-header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.logo-icon i {
    font-size: 20px;
    color: white;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.header-text {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.header-text p {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-align: center;
}

.header-remove-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid rgba(231, 76, 60, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    color: #e74c3c;
    font-size: 16px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-remove-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.header-remove-btn i {
    font-size: 16px;
}

.telegram-btn {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.3);
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(41, 128, 185, 0.5);
}

/* Main Banner Styles */
.main-banner {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    padding: 100px 20px;
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: background 0.3s ease;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 20s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    bottom: 15%;
    left: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(243, 156, 18, 0.2));
    border: 1px solid rgba(230, 126, 34, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #f39c12;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.banner-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-weight: 400;
}

.banner-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
}

.secondary-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
    transform: translateY(-3px);
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    perspective: none;
}

.visual-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transform: none !important;
    animation: none !important;
}

.visual-card i {
    font-size: 48px;
    color: #e67e22;
    transition: none;
    transform: none !important;
}

.visual-card span {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.visual-card:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.visual-card:hover i {
    transform: none !important;
    color: #e67e22;
}

.card-1 {
    animation: none !important;
    animation-delay: 0s;
}

.card-2 {
    animation: none !important;
    animation-delay: 0s;
}

.card-3 {
    animation: none !important;
    animation-delay: 0s;
}

.card-4 {
    animation: none !important;
    animation-delay: 0s;
}

.educational-illustration {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

.illustration-items {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Book Stack */
.book-stack {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.book {
    width: 80px;
    height: 12px;
    border-radius: 2px;
}

.book-red { background: #e74c3c; }
.book-yellow { background: #f39c12; }
.book-green { background: #27ae60; }
.book-blue { background: #3498db; }

/* Apple */
.apple {
    position: absolute;
    bottom: 160px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.apple::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 8px;
    background: #2ecc71;
    border-radius: 2px;
}

/* Microscope */
.microscope {
    position: absolute;
    bottom: 80px;
    right: 120px;
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 50% 50% 20px 20px;
}

.microscope::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2980b9;
}

/* Backpack */
.backpack {
    position: absolute;
    bottom: 20px;
    right: 120px;
    width: 70px;
    height: 90px;
    background: #ffffff;
    border-radius: 10px 10px 20px 20px;
}

.backpack::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    background: #34495e;
    border-radius: 5px;
}

.backpack::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 50px;
    background: #3498db;
}

/* Laptop */
.laptop-icon {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 120px;
    height: 80px;
}

.laptop-screen {
    width: 100%;
    height: 70px;
    background: #ffffff;
    border-radius: 5px 5px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

.laptop-screen::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 8px;
    background: #34495e;
    border-radius: 0 0 5px 5px;
}

.logo-x {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.logo-text {
    font-size: 10px;
    color: #2c2c2c;
    font-weight: 600;
}

/* Lamp */
.lamp {
    position: absolute;
    top: 20px;
    right: 200px;
    width: 40px;
    height: 80px;
    background: #ffffff;
    border-radius: 5px;
}

.lamp::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: #f39c12;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
}

/* Coffee Cup */
.coffee-cup {
    position: absolute;
    bottom: 80px;
    left: 20px;
    width: 35px;
    height: 40px;
    background: #8b4513;
    border-radius: 0 0 5px 5px;
}

.coffee-cup::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 35px;
    width: 15px;
    height: 8px;
    background: #ffffff;
    border-radius: 0 5px 5px 0;
}

.coffee-cup::after {
    content: '☕';
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 20px;
}

.banner-text-top {
    margin-top: 20px;
}

.banner-text-top p {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
}

.website-btn {
    background: #e67e22;
    color: white;
    padding: 15px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.website-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.banner-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-title {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #e67e22 50%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* Telegram Section */
.telegram-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #252b4a 0%, #1a1f3a 100%);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.telegram-card {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.15) 0%, rgba(52, 152, 219, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(41, 128, 185, 0.3);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.telegram-card:hover {
    border-color: rgba(41, 128, 185, 0.5);
    box-shadow: 0 25px 80px rgba(41, 128, 185, 0.4);
    transform: translateY(-5px);
}

.telegram-icon-wrapper {
    flex-shrink: 0;
}

.telegram-icon-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(41, 128, 185, 0.5);
    transition: all 0.3s ease;
}

.telegram-card:hover .telegram-icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 50px rgba(41, 128, 185, 0.6);
}

.telegram-icon-circle i {
    font-size: 70px;
    color: white;
}

.telegram-text-content {
    flex: 1;
}

.telegram-text-content h2 {
    font-size: 52px;
    color: #3498db;
    margin-bottom: 15px;
    font-weight: 800;
}

.telegram-text-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 30px;
}

.telegram-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(41, 128, 185, 0.4);
}

.telegram-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(41, 128, 185, 0.6);
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.telegram-join-btn i {
    font-size: 20px;
}

/* Support Section */
.support-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #1a1f3a 0%, #16213e 100%);
    position: relative;
}

.support-card {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15) 0%, rgba(231, 76, 60, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(45deg, #e67e22, #d35400, #c0392b, #e67e22);
    background-size: 400% 400%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderGradient 3s ease infinite;
    z-index: 0;
}

.support-card > * {
    position: relative;
    z-index: 1;
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.support-card:hover {
    box-shadow: 0 25px 80px rgba(230, 126, 34, 0.4);
    transform: translateY(-5px);
}

.support-card:hover::before {
    animation-duration: 1.5s;
}

.support-icon-wrapper {
    flex-shrink: 0;
}

.support-icon-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2) 0%, rgba(231, 76, 60, 0.2) 100%);
    border: 3px solid rgba(230, 126, 34, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
}

.support-card:hover .support-icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 50px rgba(230, 126, 34, 0.4);
}

.support-icon-circle i {
    font-size: 64px;
    color: #e67e22;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.support-text-content {
    flex: 1;
}

.support-text-content h2 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.support-text-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 30px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
}

.support-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(230, 126, 34, 0.6);
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
}

.support-btn:disabled {
    background: rgba(128, 128, 128, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

.support-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
}

.support-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.support-btn i {
    font-size: 20px;
}

/* Categories Section */
.categories-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(230, 126, 34, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(41, 128, 185, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-divider {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.divider-line {
    width: 100%;
    height: 2px;
    background: #ffffff;
    opacity: 0.3;
}

.divider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #2c2c2c;
    border: 3px solid #ffffff;
    border-radius: 50%;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.category-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-primary);
}

.card-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.card-x {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--accent-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    margin-bottom: 5px;
}

.card-x img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.card-brand {
    font-size: 10px;
    color: #2c2c2c;
    font-weight: 600;
}

.category-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.category-icon i {
    font-size: 93px;
    color: #2980b9;
}

.category-card h4 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 20px;
}

/* Icon-specific styles */
/* icon-books-stack removed - now using fas fa-book-reader */

.icon-graduation {
    position: relative;
}

.icon-diploma {
    position: absolute;
    top: 30px;
    right: -20px;
    width: 30px;
    height: 3px;
    background: #8b4513;
    border-radius: 2px;
}

.icon-building {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: #34495e;
    border-radius: 3px;
}

.icon-board {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 50px;
    background: #27ae60;
    border-radius: 5px;
}

.icon-lantern {
    position: absolute;
    top: 30px;
    right: -20px;
    width: 15px;
    height: 20px;
    background: #f39c12;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.6);
}

/* Responsive Design */

/* iPad Pro and Large Tablets (1024px and below) */
@media (max-width: 1024px) {
    .banner-content {
        gap: 60px;
    }

    .main-title {
        font-size: 48px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .telegram-card {
        padding: 50px 40px;
    }
}

/* iPad and Medium Tablets (768px and below) */
@media (max-width: 968px) {
    .banner-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .banner-right {
        order: -1;
    }

    .main-title {
        font-size: 42px;
        text-align: center;
    }

    .banner-subtitle {
        text-align: center;
        font-size: 18px;
    }

    .banner-cta-group {
        justify-content: center;
    }

    .hero-badge {
        margin: 0 auto;
    }

    .telegram-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .telegram-text-content h2 {
        font-size: 36px;
    }

    .telegram-text-content p {
        font-size: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-card {
        padding: 30px 20px;
    }

    .header-container {
        padding: 15px 60px 15px 15px;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    .logo-header {
        padding: 12px 15px;
    }

    .main-logo {
        max-width: 100px;
    }

    .main-title {
        font-size: 32px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .banner-subtitle {
        font-size: 16px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .banner-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .primary-btn, .secondary-btn {
        padding: 14px 25px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
        margin: 0 auto;
        perspective: none;
    }

    .visual-card {
        padding: 20px 15px;
        transform: none !important;
        animation: none !important;
        transition: none;
    }

    .visual-card:hover {
        transform: none !important;
    }

    .visual-card i {
        font-size: 32px;
        transform: none !important;
        transition: none;
    }

    .visual-card:hover i {
        transform: none !important;
    }

    .visual-card span {
        font-size: 14px;
    }

    .telegram-section {
        padding: 60px 20px;
    }

    .telegram-card {
        padding: 35px 25px;
        flex-direction: column;
        text-align: center;
    }

    .telegram-icon-wrapper {
        margin: 0 auto;
    }

    .telegram-icon-circle {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .telegram-icon-circle i {
        font-size: 48px;
    }

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

    .telegram-text-content h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .telegram-text-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .telegram-join-btn {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .support-section {
        padding: 60px 20px;
    }

    .support-card {
        padding: 35px 25px;
        flex-direction: column;
        text-align: center;
    }

    .support-icon-wrapper {
        margin: 0 auto;
    }

    .support-icon-circle {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .support-icon-circle i {
        font-size: 48px;
    }

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

    .support-text-content h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .support-text-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .support-btn {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .categories-section {
        padding: 60px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 25px 15px;
        min-height: 180px;
    }

    .card-x {
        width: 45px;
        height: 45px;
        padding: 7px;
    }

    .category-icon {
        margin: 20px auto;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 80px;
    }

    .category-icon i {
        font-size: 50px;
    }

    .category-card h4 {
        font-size: 16px;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 28px;
        padding: 0 10px;
    }

    .main-banner {
        padding: 40px 20px;
        min-height: auto;
    }

    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .banner-right {
        order: -1;
    }

    .container {
        padding: 0 20px;
    }

    /* Fix overflow issues */
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* AdSense containers */
    .adsense-container {
        width: 100%;
        overflow: hidden;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .logo-header {
        padding: 10px 12px;
    }

    .main-logo {
        max-width: 80px;
    }

    .header-logo {
        max-width: 80px;
    }

    .main-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .banner-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 20px;
    }

    .primary-btn, .secondary-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
        perspective: none;
    }

    .visual-card {
        padding: 18px 12px;
        transform: none !important;
        animation: none !important;
        transition: none;
    }

    .visual-card:hover {
        transform: none !important;
    }

    .visual-card i {
        font-size: 28px;
        transform: none !important;
        transition: none;
    }

    .visual-card:hover i {
        transform: none !important;
    }

    .visual-card span {
        font-size: 12px;
    }

    .telegram-section {
        padding: 50px 15px;
    }

    .telegram-card {
        padding: 30px 20px;
    }

    .telegram-icon-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .telegram-icon-circle i {
        font-size: 40px;
    }

    .telegram-text-content h2 {
        font-size: 28px;
    }

    .telegram-text-content p {
        font-size: 14px;
    }

    .telegram-join-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .support-section {
        padding: 50px 15px;
    }

    .support-card {
        padding: 30px 20px;
    }

    .support-icon-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .support-icon-circle i {
        font-size: 36px;
    }

    .support-text-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .support-text-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .support-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .categories-section {
        padding: 50px 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        padding: 25px 20px;
        min-height: 160px;
    }

    .card-x {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        margin: 20px auto;
    }

    .category-icon i {
        font-size: 45px;
    }

    .category-card h4 {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
        padding: 0 10px;
    }

    .main-banner {
        padding: 30px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .header-nav {
        width: 100%;
        right: -100%;
    }

    .header-nav.active {
        right: 0;
    }
}

/* Very Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .main-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .telegram-text-content h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .category-card {
        padding: 20px 15px;
        min-height: 150px;
    }

    .category-card h4 {
        font-size: 14px;
    }

    .visual-card {
        padding: 15px 10px;
        transform: none !important;
        animation: none !important;
        transition: none;
    }

    .visual-card:hover {
        transform: none !important;
    }

    .visual-card i {
        font-size: 24px;
        transform: none !important;
        transition: none;
    }

    .visual-card:hover i {
        transform: none !important;
    }

    .visual-card span {
        font-size: 11px;
    }

    .header-container {
        padding: 8px 12px;
    }

    .header-logo {
        max-width: 70px;
    }

    .theme-toggle,
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .language-select {
        height: 35px;
        padding: 4px 26px 4px 8px;
        font-size: 11px;
        min-width: 80px;
    }
    
    html[dir="ltr"] .language-select {
        padding: 4px 8px 4px 26px;
    }
    
    .language-select-icon {
        font-size: 12px;
        right: 6px;
    }
    
    html[dir="ltr"] .language-select-icon {
        left: 6px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-card h4 {
        font-size: 14px;
    }

    .hero-visual {
        grid-template-columns: 1fr;
        gap: 20px;
        perspective: none;
    }

    .visual-card {
        padding: 30px 20px;
        transform: none !important;
        animation: none !important;
        transition: none;
    }

    .visual-card:hover {
        transform: none !important;
    }

    .visual-card i {
        transform: none !important;
        transition: none;
    }

    .visual-card:hover i {
        transform: none !important;
    }

    .telegram-text-content h2 {
        font-size: 28px;
    }

    .telegram-text-content p {
        font-size: 16px;
    }

    .telegram-icon-circle {
        width: 120px;
        height: 120px;
    }

    .telegram-icon-circle i {
        font-size: 50px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* Category Page Styles */
.category-page-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: background 0.3s ease;
}

.category-page-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.back-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.back-btn i {
    font-size: 20px;
}

.category-page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.category-page-icon {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.category-page-icon .icon-graduation,
.category-page-icon .icon-teacher,
.category-page-icon .icon-vocational,
.category-page-icon .icon-religious,
.category-page-icon .icon-robot {
    transform: scale(2);
}

.category-page-icon i {
    font-size: 100px;
    color: #e67e22;
    filter: drop-shadow(0 4px 20px rgba(230, 126, 34, 0.5));
}

.category-page-title {
    font-size: 56px;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
}

.empty-content {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-content p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.embedded-content {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.embedded-content iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    display: block;
}

/* URL Shortener Styles */
.url-shortener-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
}

.url-shortener-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.url-shortener-box h2 {
    color: #e67e22;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.url-shortener-box .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.url-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.url-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.url-input:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
}

.url-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.shorten-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.shorten-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.result-container {
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

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

.result-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.result-box label {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-url-group {
    display: flex;
    gap: 10px;
}

.result-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #2c2c2c;
    font-size: 16px;
    outline: none;
}

.copy-btn, .open-btn {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.copy-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.open-btn {
    background: #27ae60;
}

.open-btn:hover {
    background: #229954;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .url-shortener-box {
        padding: 25px;
    }

    .url-input-group {
        flex-direction: column;
    }

    .shorten-btn {
        width: 100%;
        justify-content: center;
    }

    .result-url-group {
        flex-direction: column;
    }

    .copy-btn, .open-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Categories Content Grid */
.categories-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
    width: 100%;
}

.category-item-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: #2c2c2c;
    width: 100%;
    border: none;
    outline: none;
}

.category-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-top-icons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-number {
    width: 24px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #2c2c2c;
}

.card-x-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1f3a 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
}

.card-x-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.category-item-icon {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.category-item-icon i {
    font-size: 48px;
    color: #2980b9;
    transition: all 0.3s ease;
}

.category-item-card:hover .category-item-icon i {
    transform: scale(1.1);
    color: #e67e22;
}

.category-item-card h3 {
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Divider with Title */
.section-divider-with-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0 40px;
}

.section-divider-with-title .divider-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.divider-title {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.divider-title h2 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.divider-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.general-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .category-page-section {
        padding: 30px 15px;
    }

    .category-page-header {
        margin-bottom: 30px;
        padding: 30px 20px;
    }

    .category-page-title {
        font-size: 32px;
    }
    
    .category-page-icon {
        height: 100px;
        margin-bottom: 20px;
    }
    
    .category-page-icon i {
        font-size: 60px;
    }
    
    .back-btn {
        margin-bottom: 30px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .empty-content {
        padding: 50px 15px;
    }

    .empty-content p {
        font-size: 18px;
    }

    .categories-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .category-item-card {
        padding: 20px 15px;
        min-height: 160px;
    }

    .category-item-icon i {
        font-size: 60px;
    }

    .category-item-card h3 {
        font-size: 12px;
    }

    .section-divider-with-title {
        flex-direction: column;
        gap: 15px;
    }

    .divider-title {
        flex-direction: column;
        gap: 10px;
    }

    .divider-title h2 {
        font-size: 20px;
        text-align: center;
    }

    .general-info-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .category-page-section {
        padding: 20px 10px;
    }

    .category-page-header {
        margin-bottom: 20px;
        padding: 20px 15px;
        border-radius: 15px;
    }

    .category-page-title {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .category-page-icon {
        height: 80px;
        margin-bottom: 15px;
    }
    
    .category-page-icon i {
        font-size: 50px;
    }
    
    .back-btn {
        margin-bottom: 20px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .empty-content {
        padding: 40px 15px;
    }

    .empty-content p {
        font-size: 16px;
    }

    .categories-content-grid {
        gap: 12px;
    }

    .category-item-card {
        padding: 15px 12px;
        min-height: 140px;
    }

    .category-item-icon i {
        font-size: 50px;
    }

    .category-item-card h3 {
        font-size: 11px;
    }
}

/* Override inline styles for description section on mobile */
@media (max-width: 768px) {
    .category-page-container > div[style*="max-width: 900px"] {
        margin: 20px auto !important;
        padding: 20px 15px !important;
    }

    .category-page-container > div[style*="max-width: 900px"] h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .category-page-container > div[style*="max-width: 900px"] p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        line-height: 1.7 !important;
    }

    .category-page-container > div[style*="max-width: 900px"] h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .category-page-container > div[style*="max-width: 900px"] {
        margin: 15px auto !important;
        padding: 15px 12px !important;
    }

    .category-page-container > div[style*="max-width: 900px"] h2 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }

    .category-page-container > div[style*="max-width: 900px"] p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        line-height: 1.6 !important;
    }

    .category-page-container > div[style*="max-width: 900px"] h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .category-page-container > div[style*="max-width: 900px"] > div {
        padding: 15px !important;
        margin-top: 15px !important;
    }
}

/* QR Code Generator Styles */
.qr-generator-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
}

.qr-generator-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.qr-input-section {
    margin-bottom: 30px;
}

.qr-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e67e22;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.qr-label i {
    font-size: 20px;
}

.qr-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.qr-input:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.qr-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.qr-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.qr-option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.qr-option-label i {
    font-size: 16px;
    color: #e67e22;
}

.qr-select {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-select:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
}

.qr-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.qr-color-input {
    width: 100%;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.qr-color-input:hover {
    border-color: #e67e22;
    transform: scale(1.05);
}

.qr-generate-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.qr-generate-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

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

.qr-result-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.qr-preview-container {
    text-align: center;
}

.qr-code-display {
    display: inline-block;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.qr-code-display:hover {
    transform: scale(1.02);
}

.qr-code-display canvas,
.qr-code-display img {
    border-radius: 10px;
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    min-width: 140px;
    justify-content: center;
}

.qr-download-btn {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.qr-download-btn:hover {
    background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}

.qr-copy-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.qr-copy-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.qr-share-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.qr-share-btn:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.qr-error-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.qr-error {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #ff6b6b;
}

.qr-success {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    color: #51cf66;
}

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

/* Responsive Design for QR Generator */
@media (max-width: 768px) {
    .qr-generator-box {
        padding: 25px 20px;
    }

    .qr-options {
        grid-template-columns: 1fr;
    }

    .qr-actions {
        flex-direction: column;
    }

    .qr-action-btn {
        width: 100%;
    }

    .qr-code-display {
        padding: 15px;
    }
}

/* Day Calculator Styles */
.day-calculator-container {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
}

.day-calculator-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.day-calculator-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.day-calculator-header i {
    font-size: 48px;
    color: #e67e22;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(230, 126, 34, 0.4));
}

.day-calculator-header h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.day-input-section {
    margin-bottom: 30px;
}

.day-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e67e22;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.day-label i {
    font-size: 20px;
}

.day-date-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.day-date-input:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.day-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.day-calculate-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.day-calculate-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

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

.day-result-box {
    margin-top: 25px;
    min-height: 80px;
    animation: fadeIn 0.5s ease;
}

.day-result-content {
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.day-result-content i {
    font-size: 48px;
    margin-bottom: 10px;
}

.day-result-past {
    background: rgba(149, 165, 166, 0.2);
    border: 2px solid rgba(149, 165, 166, 0.4);
}

.day-result-past i {
    color: #95a5a6;
}

.day-result-today {
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid rgba(52, 152, 219, 0.4);
}

.day-result-today i {
    color: #3498db;
}

.day-result-future {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid rgba(46, 204, 113, 0.4);
}

.day-result-future i {
    color: #2ecc71;
}

.day-result-error {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid rgba(231, 76, 60, 0.4);
}

.day-result-error i {
    color: #e74c3c;
}

.day-result-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.day-result-text strong {
    color: #e67e22;
    font-weight: 700;
}

.day-result-day {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.day-result-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin: 0;
}

.day-result-info strong {
    color: #e67e22;
    font-size: 18px;
}

.day-countdown-box {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    display: none;
    animation: fadeIn 0.5s ease;
}

.countdown-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-header i {
    font-size: 20px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
}

.countdown-expired {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-expired i {
    font-size: 28px;
}

/* Responsive Design for Day Calculator */
@media (max-width: 768px) {
    .day-calculator-box {
        padding: 25px 20px;
    }

    .day-calculator-header h2 {
        font-size: 20px;
    }

    .day-result-day {
        font-size: 26px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .countdown-item {
        padding: 15px 8px;
    }
}

@media (max-width: 480px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 12px;
    }
}

/* ============================================
   Footer Styles
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    padding: 60px 20px 30px;
    margin-top: 80px;
    position: relative;
    border-top: 3px solid var(--border-color);
    transition: background 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: var(--accent-secondary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.footer-section h3 i {
    font-size: 1.2rem;
}

.footer-section p,
.footer-section span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(230, 126, 34, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    transform: translateX(-5px);
    padding-right: 5px;
}

.footer-links a i {
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: #e67e22;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item i {
    color: #e67e22;
    font-size: 1.1rem;
    margin-top: 3px;
    min-width: 20px;
}

.footer-contact-item span {
    flex: 1;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.8;
}

.footer-bottom a {
    color: #e67e22;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #d35400;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
        margin-top: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

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

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-logo {
        max-width: 120px;
    }
}

/* ============================================
   Text Tools Styles
   ============================================ */

.text-tools-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tool-tab {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.tool-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(230, 126, 34, 0.5);
    transform: translateY(-2px);
}

.tool-tab.active {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: #e67e22;
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.tool-tab i {
    font-size: 18px;
}

.tool-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-content.active {
    display: block;
}

.tool-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-box h2 {
    color: #e67e22;
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-box h2 i {
    font-size: 28px;
}

.tool-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e67e22;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.input-group label i {
    font-size: 18px;
}

.tool-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.tool-textarea:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.tool-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tool-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tool-input:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.tool-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.tool-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.tool-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

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

.output-section {
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

.output-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e67e22;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.output-box {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.output-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 50px;
    max-height: 400px;
    overflow-y: auto;
    padding-bottom: 50px;
}

.copy-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.case-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.case-btn {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.case-btn:hover {
    background: rgba(230, 126, 34, 0.2);
    border-color: #e67e22;
    transform: translateY(-2px);
}

.reverse-options,
.cleaner-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #e67e22;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e67e22;
}

.encoder-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.encoder-btn {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.encoder-btn:hover {
    background: rgba(230, 126, 34, 0.2);
    border-color: #e67e22;
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #e67e22;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.stat-card i {
    font-size: 32px;
    color: #e67e22;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

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

/* Responsive Design for Text Tools */
@media (max-width: 768px) {
    .tool-tabs {
        flex-direction: column;
    }

    .tool-tab {
        width: 100%;
    }

    .tool-box {
        padding: 25px 20px;
    }

    .tool-box h2 {
        font-size: 24px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .case-buttons,
    .encoder-buttons {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .output-text {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .tool-box {
        padding: 20px 15px;
    }

    .tool-box h2 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 28px;
    }
}

/* ============================================
   PDF Tools Styles
   ============================================ */

.pdf-tools-search-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
}

.pdf-tools-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.pdf-tools-search-box:focus-within {
    border-color: #e67e22;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.pdf-tools-search-box i {
    color: #e67e22;
    font-size: 20px;
    margin-left: 15px;
}

.pdf-tools-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 18px;
    font-family: inherit;
    padding: 5px 0;
}

.pdf-tools-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pdf-tools-container {
    width: 100%;
    margin-top: 40px;
}

.pdf-tools-section {
    margin-bottom: 60px;
}

.pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pdf-tool-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.pdf-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.pdf-tool-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.pdf-tool-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e67e22;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
}

.pdf-tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2) 0%, rgba(211, 84, 0, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(230, 126, 34, 0.3);
}

.pdf-tool-card:hover .pdf-tool-icon {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: #e67e22;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.pdf-tool-icon i {
    font-size: 32px;
    color: #e67e22;
    transition: all 0.3s ease;
}

.pdf-tool-card:hover .pdf-tool-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

.pdf-tool-card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-tool-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design for PDF Tools */
@media (max-width: 1024px) {
    .pdf-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .pdf-tools-search-container {
        margin-bottom: 40px;
    }

    .pdf-tools-search-input {
        font-size: 16px;
    }

    .pdf-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .pdf-tool-card {
        padding: 25px 15px;
        min-height: 160px;
    }

    .pdf-tool-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .pdf-tool-icon i {
        font-size: 28px;
    }

    .pdf-tool-card h3 {
        font-size: 14px;
        min-height: 40px;
    }

    .pdf-tool-card p {
        font-size: 12px;
    }

    .pdf-tools-section {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .pdf-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .pdf-tool-card {
        padding: 20px 12px;
        min-height: 150px;
    }

    .pdf-tool-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .pdf-tool-icon i {
        font-size: 24px;
    }

    .pdf-tool-card h3 {
        font-size: 13px;
        min-height: 35px;
    }

    .pdf-tool-card p {
        font-size: 11px;
    }
}

/* PDF Modal Styles */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.pdf-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pdf-modal-header h2 {
    color: #e67e22;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.pdf-modal-close {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid rgba(231, 76, 60, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e74c3c;
    font-size: 20px;
    transition: all 0.3s ease;
}

.pdf-modal-close:hover {
    background: rgba(231, 76, 60, 0.4);
    border-color: #e74c3c;
    transform: rotate(90deg);
}

.pdf-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.pdf-tool-interface {
    width: 100%;
}

.file-upload-area {
    border: 3px dashed rgba(230, 126, 34, 0.3);
    border-radius: 15px;
    padding: 60px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.05);
}

.file-upload-area i {
    font-size: 64px;
    color: #e67e22;
    margin-bottom: 20px;
    display: block;
}

.file-upload-area p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 25px;
}

.upload-btn, .process-btn, .download-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.upload-btn:hover, .process-btn:hover, .download-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.tool-input, .tool-select, .tool-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-family: inherit;
    box-sizing: border-box;
}

.tool-input:focus, .tool-select:focus, .tool-textarea:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.tool-textarea {
    min-height: 150px;
    resize: vertical;
}

.tool-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tool-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.file-list {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.processing-status {
    text-align: center;
    padding: 40px 20px;
}

.processing-status i {
    font-size: 48px;
    color: #e67e22;
    margin-bottom: 20px;
    display: block;
}

.processing-status p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.result-area {
    text-align: center;
    padding: 30px 20px;
}

.result-message {
    margin-bottom: 25px;
}

.result-message i {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 15px;
    display: block;
}

.result-message p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 600;
}

.error-message {
    padding: 20px;
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    border-radius: 10px;
    color: #e74c3c;
    font-size: 16px;
    text-align: center;
}

.error-message i {
    margin-left: 10px;
}

.tool-info {
    margin-top: 25px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
}

.tool-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.rotate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rotate-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rotate-btn:hover {
    background: rgba(230, 126, 34, 0.2);
    border-color: #e67e22;
    transform: translateY(-2px);
}

.copy-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
}

.split-options, .compress-options, .protect-options, .unlock-options,
.remove-options, .extract-options, .watermark-options, .pagenum-options,
.format-options, .create-pdf-options, .rotate-options {
    margin: 25px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.split-options label, .compress-options label, .protect-options label,
.unlock-options label, .remove-options label, .extract-options label,
.watermark-options label, .pagenum-options label, .format-options label {
    display: block;
    color: #e67e22;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Responsive Design for PDF Modal */
@media (max-width: 768px) {
    .pdf-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .pdf-modal-header {
        padding: 20px;
    }

    .pdf-modal-header h2 {
        font-size: 20px;
    }

    .pdf-modal-body {
        padding: 20px;
    }

    .file-upload-area {
        padding: 40px 20px;
    }

    .file-upload-area i {
        font-size: 48px;
    }

    .file-upload-area p {
        font-size: 16px;
    }

    .rotate-buttons {
        flex-direction: column;
    }

    .rotate-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pdf-modal {
        padding: 10px;
    }

    .pdf-modal-content {
        max-width: 100%;
    }

    .pdf-modal-header h2 {
        font-size: 18px;
    }

    .file-upload-area {
        padding: 30px 15px;
    }

    .upload-btn, .process-btn, .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* PDF Preview Styles */
.pdf-preview-container,
.file-preview-area,
.image-preview-area {
    margin: 25px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(230, 126, 34, 0.2);
}

.pdf-preview-container h3,
.file-preview-area h3,
.image-preview-area h3 {
    color: #e67e22;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pdf-page-thumb {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pdf-page-thumb:hover {
    border-color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.page-number {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 10px;
    font-size: 14px;
}

.page-preview {
    font-size: 32px;
    color: #e67e22;
}

.pdf-info {
    margin-top: 20px;
}

.pdf-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
    font-size: 16px;
}

.pdf-preview-item {
    margin-bottom: 20px;
}

.pdf-preview-item iframe {
    width: 100%;
    height: 500px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 10px;
    background: white;
}

.file-size-info {
    margin-top: 20px;
}

.file-size-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-size-info strong {
    color: #e67e22;
    font-size: 18px;
}

.file-preview-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(230, 126, 34, 0.2);
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.08);
}

.file-preview-item i {
    font-size: 32px;
    color: #e67e22;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-preview-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    border-color: #e67e22;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.image-preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.image-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-info p:first-child {
    font-weight: 600;
    color: #ffffff;
}

/* Responsive Design for Previews */
@media (max-width: 768px) {
    .pdf-pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .pdf-preview-item iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .pdf-pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }

    .image-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdf-preview-item iframe {
        height: 300px;
    }
}

/* ChatGPT Interface Styles */
.chat-container {
    max-width: 900px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(230, 126, 34, 0.5);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 126, 34, 0.7);
}

.message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 18px 18px 18px 4px;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.bot-message .message-avatar {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.message-content p {
    margin: 0;
    font-size: 15px;
}

.chat-input-container {
    border-top: 2px solid rgba(230, 126, 34, 0.3);
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.chat-status {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    min-height: 20px;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e67e22;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Design for Chat */
@media (max-width: 768px) {
    .chat-container {
        height: 500px;
        margin: 20px 10px;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-input {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: 450px;
        border-radius: 15px;
    }

    .chat-messages {
        padding: 15px;
    }

    .message-content {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 14px;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Group Chat Section Styles */
.group-chat-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.group-chat-info {
    margin-bottom: 20px;
    text-align: center;
}

.group-chat-description {
    background: rgba(230, 126, 34, 0.1);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
}

.group-chat-description i {
    color: #e67e22;
    font-size: 18px;
}

/* Custom Group Chat Container */
.group-chat-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.group-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.group-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.group-chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.group-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(230, 126, 34, 0.5);
    border-radius: 10px;
}

.group-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 126, 34, 0.7);
}

/* Group Chat Message Styles */
.group-chat-container .chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeInMessage 0.3s ease;
}

.group-chat-container .own-message {
    flex-direction: row-reverse;
}

.group-chat-container .own-message .message-content {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.group-chat-container .other-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 18px 18px 18px 4px;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.group-chat-container .system-message .message-content {
    background: rgba(52, 152, 219, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    text-align: center;
}

.group-chat-container .own-message .message-avatar {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.group-chat-container .other-message .message-avatar {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.group-chat-container .system-message .message-avatar {
    background: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.group-chat-container .message-content {
    max-width: 70%;
    padding: 12px 16px;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.group-chat-container .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

.group-chat-container .message-username {
    font-weight: 600;
    font-size: 13px;
    opacity: 0.9;
}

.group-chat-container .message-time {
    font-size: 11px;
    opacity: 0.7;
}

.group-chat-container .message-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.group-chat-container .own-message .message-text {
    color: white;
}

/* Group Chat Input Styles */
.group-chat-input-container {
    border-top: 2px solid rgba(230, 126, 34, 0.3);
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.group-chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.group-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.group-chat-input:focus {
    outline: none;
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.group-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.group-chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.group-chat-send-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.group-chat-send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.group-chat-send-button:active {
    transform: scale(0.95);
}

.group-chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.group-chat-status {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    min-height: 20px;
}

/* Responsive Design for Group Chat */
@media (max-width: 768px) {
    .group-chat-section {
        margin: 20px 10px;
        padding: 0 10px;
    }

    .group-chat-description {
        font-size: 14px;
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
    }

    .group-chat-container {
        height: 500px;
        border-radius: 15px;
    }

    .group-chat-container .message-content {
        max-width: 85%;
    }

    .group-chat-input {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .group-chat-description {
        font-size: 13px;
        padding: 10px 14px;
    }

    .group-chat-container {
        height: 450px;
        border-radius: 15px;
    }

    .group-chat-messages {
        padding: 15px;
    }

    .group-chat-container .message-content {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 14px;
    }

    .group-chat-container .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .group-chat-container .message-username {
        font-size: 12px;
    }

    .group-chat-container .message-time {
        font-size: 10px;
    }
}

/* ============================================
   TYPING SPEED TEST STYLES
   ============================================ */

.typing-test-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    direction: ltr;
    text-align: left;
}

/* Test Settings Panel - New Design */
.test-settings-panel-new {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    margin-top: 25px;
    border: 2px solid rgba(230, 126, 34, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.test-settings-panel-new:hover {
    border-color: rgba(230, 126, 34, 0.4);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(230, 126, 34, 0.1);
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.settings-header:hover {
    background: rgba(230, 126, 34, 0.15);
}

.settings-header i {
    color: #e67e22;
    font-size: 18px;
}

.settings-header span {
    flex: 1;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.settings-toggle-btn {
    background: transparent;
    border: none;
    color: #e67e22;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

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

.settings-content {
    padding: 20px;
    display: block;
    transition: all 0.3s ease;
}

.settings-content.collapsed {
    display: none;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 13px;
    color: #e67e22;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-item label i {
    font-size: 12px;
}

.settings-toggles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
}

.setting-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.setting-select:hover {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.15);
}

.setting-select:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
}

.setting-toggle {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.setting-toggle:hover {
    background: rgba(230, 126, 34, 0.15);
    border-color: #e67e22;
    transform: translateY(-2px);
}

.setting-toggle.active {
    background: rgba(230, 126, 34, 0.25);
    border-color: #e67e22;
    color: #fff;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.2);
}

/* Statistics Display */
.stats-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(230, 126, 34, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2);
}

.stat-label {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #e67e22;
}

.error-stat {
    color: #e74c3c !important;
}

/* Test Area */
.test-area-wrapper {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    min-height: 300px;
}

.test-area {
    position: relative;
}

.words-container-wrapper {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: calc(2em * 3 + 40px); /* Exactly 3 lines + padding */
}

.words-container {
    font-size: 24px;
    line-height: 2em;
    color: #ccc;
    padding: 20px;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    cursor: text;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(2em * 3); /* Show 3 lines */
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.words-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.text-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        rgba(23, 36, 66, 0) 0%, 
        rgba(23, 36, 66, 0.3) 30%,
        rgba(23, 36, 66, 0.7) 70%,
        rgba(23, 36, 66, 0.95) 90%,
        rgba(23, 36, 66, 1) 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 0 0 10px 10px;
}

.word {
    display: inline-block;
    margin: 0 5px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.word.current {
    background: rgba(230, 126, 34, 0.3);
    color: #fff;
    position: relative;
}

.word.current::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #e67e22;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.word.correct {
    color: #2ecc71;
}

.word.incorrect {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
    text-decoration: underline;
}

.letter {
    display: inline-block;
}

.letter.correct {
    color: #2ecc71;
}

.letter.incorrect {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.3);
}

.letter.extra {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.3);
}

.input-wrapper {
    margin-top: 20px;
}

.typing-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 10px;
    color: #fff;
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    transition: all 0.3s ease;
}

.typing-input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.3);
}

.typing-input::placeholder {
    color: #666;
    text-align: center;
}

/* Result Panel */
.result-panel {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.result-panel h2 {
    color: #e67e22;
    margin-bottom: 25px;
    font-size: 28px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(230, 126, 34, 0.2);
}

.result-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 8px;
}

.result-stat-label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    background: rgba(230, 126, 34, 0.2);
    border: 2px solid #e67e22;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.action-btn:hover {
    background: rgba(230, 126, 34, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.action-btn.primary {
    background: #e67e22;
}

.action-btn.primary:hover {
    background: #d35400;
}

/* Tools Panel */
.tools-panel {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tool-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 10px;
    color: #e67e22;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background: rgba(230, 126, 34, 0.2);
    border-color: #e67e22;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #e67e22;
    border-radius: 15px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #e67e22;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #d35400;
    transform: scale(1.2);
}

.modal-content h2 {
    color: #e67e22;
    margin-bottom: 20px;
    text-align: center;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.history-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(230, 126, 34, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.history-item-info {
    flex: 1;
}

.history-item-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.history-item-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.history-stat {
    font-size: 14px;
}

.history-stat strong {
    color: #e67e22;
}

#customWordsInput {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    margin-bottom: 15px;
}

#customWordsInput:focus {
    outline: none;
    border-color: #e67e22;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-option {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.setting-option label {
    min-width: 150px;
    color: #e67e22;
    font-weight: 600;
}

.setting-option input[type="range"] {
    flex: 1;
    min-width: 200px;
}

.setting-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#fontSizeValue {
    color: #e67e22;
    font-weight: 600;
    min-width: 50px;
}

/* Statistics Modal */
.stats-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.stat-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.stat-detail-label {
    color: #aaa;
    font-size: 16px;
}

.stat-detail-value {
    color: #e67e22;
    font-size: 20px;
    font-weight: 700;
}

/* Leaderboard Modal */
.leaderboard-list {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(230, 126, 34, 0.2);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    border-color: #e67e22;
    transform: translateX(5px);
}

.leaderboard-item:first-child {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-color: #e67e22;
}

.leaderboard-rank {
    font-size: 24px;
    font-weight: 700;
    color: #e67e22;
    min-width: 50px;
    text-align: center;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.leaderboard-wpm {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.leaderboard-accuracy {
    font-size: 16px;
    color: #2ecc71;
}

.leaderboard-date {
    font-size: 14px;
    color: #aaa;
    margin-left: auto;
}

/* Help Modal */
.help-content {
    margin-top: 20px;
}

.help-content h3 {
    color: #e67e22;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.help-content h3:first-child {
    margin-top: 0;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.help-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    line-height: 1.6;
}

.help-list li:last-child {
    border-bottom: none;
}

.help-list strong {
    color: #e67e22;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .typing-test-container {
        padding: 15px;
    }

    .stats-display {
        grid-template-columns: repeat(2, 1fr);
    }

    .words-container {
        font-size: 18px;
        line-height: 1.8em;
        height: calc(1.8em * 3);
        max-height: calc(1.8em * 3);
    }
    
    .words-container-wrapper {
        height: calc(1.8em * 3 + 40px);
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-toggles {
        flex-direction: column;
    }

    .setting-toggle {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-display {
        grid-template-columns: 1fr;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .words-container {
        font-size: 16px;
        padding: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .result-stat-value {
        font-size: 28px;
    }
}

/* First Visit Update Notice Modal */
.update-notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.update-notice-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.update-notice-content {
    background: linear-gradient(135deg, #1a2d4a 0%, #152238 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #2563eb;
    position: relative;
    animation: slideUp 0.4s ease;
    direction: rtl;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.update-notice-icon {
    font-size: 80px;
    color: #3b82f6;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.update-notice-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.update-notice-message {
    font-size: 18px;
    color: #e0e8f5;
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 500;
}

.update-notice-message-en {
    font-size: 16px;
    color: #a0b4d0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    direction: ltr;
    text-align: center;
}

.update-notice-telegram-text {
    font-size: 16px;
    color: #e0e8f5;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
    direction: rtl;
}

.update-notice-telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 15px;
    direction: rtl;
}

.update-notice-telegram-btn:hover {
    background: linear-gradient(135deg, #006699 0%, #0088cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    color: #ffffff;
    text-decoration: none;
}

.update-notice-telegram-btn:active {
    transform: translateY(0);
}

.update-notice-telegram-btn i {
    font-size: 20px;
}

.update-notice-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.update-notice-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

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

.update-notice-btn i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .update-notice-modal {
        padding: 20px;
    }

    .update-notice-content {
        padding: 30px 20px;
        max-width: 90%;
        width: 90%;
    }

    .update-notice-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }

    .update-notice-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .update-notice-message {
        font-size: 16px;
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .update-notice-message-en {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .update-notice-telegram-text {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .update-notice-telegram-btn {
        padding: 12px 25px;
        font-size: 14px;
        margin-bottom: 12px;
        width: 100%;
    }

    .update-notice-btn {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .update-notice-modal {
        padding: 15px;
    }

    .update-notice-content {
        padding: 25px 15px;
        max-width: 95%;
        width: 95%;
        border-radius: 15px;
    }

    .update-notice-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .update-notice-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .update-notice-message {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .update-notice-message-en {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .update-notice-telegram-text {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .update-notice-telegram-btn {
        padding: 10px 20px;
        font-size: 12px;
        margin-bottom: 10px;
        width: 100%;
    }

    .update-notice-btn {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
    }
}

