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

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: #164A41;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle at center, #4d774e, transparent 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    display: none;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.suggestive-search {
    position: relative;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    border: 1px solid #1a5c40;
    background: #103732;
    transition: border-color 0.3s;
    min-height: 2.5rem;
    box-sizing: border-box;
}

.search-wrapper:focus-within {
    border-color: #4a8a6a;
}

.search-input {
    background: transparent;
    outline: none;
    color: white;
    width: 100%;
    font-size: 0.875rem;
    border: none;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 2.5rem;
    right: 1rem;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.search-placeholder {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.typewriter-cursor {
    width: 2px;
    height: 1em;
    background: #94a3b8;
    margin-left: 0.25rem;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.slide-effect,
.fade-effect {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 2.5rem;
    right: 1rem;
    text-align: right;
}

.slide-up {
    animation: slideUp 0.7s ease-out;
}

.slide-down {
    animation: slideDown 0.4s ease-in;
}

@keyframes slideUp {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.fade-in {
    animation: fadeIn 0.7s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.suggestive-search .search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
}

.search-results {
    position: absolute;
    background: #366549;
    border: 1px solid #366549;
    border-radius: 12px;
    margin-top: 4px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    scrollbar-width: thin;
    scrollbar-color: #366549 #2a4d3a;
}
.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-track {
    background: #2a4d3a;
    border-radius: 3px;
}
.search-results::-webkit-scrollbar-thumb {
    background: #366549;
    border-radius: 3px;
}
.search-results::-webkit-scrollbar-thumb:hover {
    background: #4a8a6a;
}

.search-results div {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #2a4d3a;
    color: #e4e4e7;
}

.search-results div:last-child {
    border-bottom: none;
}

.search-results div:hover {
    background: #2a4d3a;
}

.mega-menu {
    margin-bottom: 2rem;
    position: relative;
}

.mega-menu .menu-item {
    position: static;
}

.mega-menu .menu-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu .menu-item {
    position: relative;
}

.mega-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.mega-menu .menu-item > a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mega-menu .menu-item a i {
    font-size: 1rem;
}

/* Mega Dropdown - Modern Style */
.mega-menu .mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    width: fit-content;
    min-width: 700px;
    max-width: 95vw;
    background: #9CC88D;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mega-menu .menu-item.mega-open .mega-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    transform: none !important;
}

/* Grid Layout */
.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-height: 650px;
    overflow-y: auto;
    direction: ltr;
}

.mega-menu-columns::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-columns::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.mega-menu-columns::-webkit-scrollbar-track {
    background: transparent;
}

/* Column */
.mega-column {
    direction: rtl;
    min-width: 0;
}

.mega-menu .mega-dropdown .mega-column-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #5390C6;
    text-align: right;
    color: #5390C6;
}

.mega-menu .mega-dropdown .mega-column-title a {
    color: #5390C6;
    text-decoration: none;
}

.mega-menu .mega-dropdown .mega-column-title a i {
    color: #5390C6;
}

.mega-menu .mega-dropdown .mega-column li a i {
    font-size: 0.8rem;
    width: 1.2rem;
    text-align: center;
    opacity: 0.7;
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column li {
    padding: 0;
    border: none;
}

.mega-menu .mega-dropdown .mega-column li a {
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
    font-weight: 400;
}

.mega-menu .mega-dropdown .mega-column li a:hover {
    background: rgba(83, 144, 198, 0.15);
    color: #000000;
}

.mega-menu .mega-dropdown .mega-column li a i {
    color: #5390C6;
    font-size: 0.8rem;
    width: 1.2rem;
    text-align: center;
    opacity: 1;
}

.mega-menu .mega-dropdown .mega-column li a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #1e3a8a;
}

.mega-column li a i {
    font-size: 0.8rem;
    width: 1.2rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .mega-menu-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu .mega-dropdown {
        min-width: 240px;
        max-width: 90vw;
        padding: 1.25rem;
    }

    .mega-menu-columns {
        grid-template-columns: 1fr;
        max-height: 400px;
    }

    .mega-column-title {
        font-size: 0.95rem;
    }
}

.card {
    display: block;
    background: white;
    padding: 2rem 4rem;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.card h2 {
    color: #667eea;
    font-size: 1.5rem;
}

.form-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
    margin: 0 auto;
    text-align: right;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 700;
    color: #333;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea.additional-notes {
    min-height: 150px;
    height: 150px;
    width: 100%;
    display: block;
    padding: 0.75rem;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    overflow-y: hidden;
}

.textarea-placeholder {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #999;
    pointer-events: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.textarea-placeholder span {
    display: inline-block;
}

.textarea-placeholder .cursor {
    width: 2px;
    height: 1.2em;
    background: #667eea;
    margin-right: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.textarea-wrapper {
    position: relative;
    display: block;
}

.pin-attachment {
    position: absolute;
    bottom: 10px !important;
    left: 8px;
    width: 32px;
    height: 32px;
    background: #667eea;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.attachment-preview {
    position: absolute;
    bottom: 10px !important;
    right: 8px;
    left: 52px;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 5;
    max-width: none;
}

.pin-attachment:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.pin-attachment i {
    font-size: 18px;
}

.attachment-preview {
    position: absolute;
    bottom: 10px !important;
    right: 8px;
    left: 52px;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 5;
    max-width: none;
}

.attachment-preview:not(.hidden) {
    display: flex;
}

.attachment-preview.hidden {
    display: none;
}

.attachment-preview:not(.hidden) {
    display: flex;
}

.attachment-preview.hidden {
    display: none;
}

.attachment-thumbnail {
    position: relative;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #667eea;
    background: white;
}

.attachment-thumbnail img,
.attachment-thumbnail .pdf-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-thumbnail .pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #667eea;
    font-weight: 700;
    font-size: 0.6rem;
}

.attachment-thumbnail .remove-attachment {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.attachment-thumbnail .download-attachment {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.attachment-thumbnail .download-attachment:hover {
    background: #2980b9;
}

.form-group small {
    font-size: 0.85rem;
    color: #666;
}

.success-text {
    color: #27ae60;
}

.warning-text {
    color: #e74c3c;
    font-weight: 700;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

.support-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #D48445;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 1000;
}

.support-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #FFCA88, transparent 65%);
    border-radius: 50%;
    z-index: 0;
}

.support-icon i {
    color: #FEFEDC;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: block;
}

.modal.active .modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: white;
}

.modal.active .support-layout {
    flex: 1;
    display: flex;
    min-height: 0;
    gap: 0;
}

.modal.active .support-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.modal.active .close-btn {
    font-size: 2rem;
    margin-left: 1rem;
    flex-shrink: 0;
    float: none;
    align-self: flex-start;
}

.modal.active .modal-content > h2 {
    margin: 0;
    padding: 1rem;
    color: #667eea;
    flex-shrink: 0;
}

.modal.active .support-sidebar {
    width: 280px;
    min-width: 280px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active .admin-chat-main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.modal.active .admin-chat-header {
    padding: 0.7rem 0.9rem;
    flex-shrink: 0;
}

.modal.active .admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 0;
    max-height: none;
    background: #f8f9fa;
}

.modal.active .admin-chat-header .back-link {
    display: none;
}

.modal.active .admin-chat-messages .message {
    margin: 0;
}

.modal.active .admin-chat-input-area {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #e9ecef;
    background: #fff;
    flex-shrink: 0;
}

.modal.active .sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal.active .sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.modal.active .new-chat-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.modal.active .new-chat-btn:hover {
    background: #667eea;
    color: white;
}

.modal.active .conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal.active .conversation-item {
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-align: right;
}

.modal.active .conversation-item:hover {
    border-color: #667eea;
    background: #eef1ff;
}

.modal.active .conversation-item.active {
    background: #667eea;
    color: white;
}

.modal.active .conversation-item .conv-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.modal.active .conversation-item .conv-date {
    font-size: 0.75rem;
    color: #999;
}

.modal.active .conversation-item.active .conv-date {
    color: rgba(255, 255, 255, 0.8);
}

.modal.active .support-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.modal.active .support-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal.active .admin-chat-input-area textarea {
    width: 100%;
    min-height: 100px;
    max-height: 300px;
    display: block;
    padding: 0.7rem 0.75rem;
    padding-bottom: 48px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    overflow-y: auto;
    pointer-events: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal.active .admin-chat-input-area textarea::-webkit-scrollbar {
    display: none;
}
.modal.active .admin-chat-input-area textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal.active .admin-chat-input-area .pin-attachment {
    position: absolute;
    bottom: 8px;
    left: 54px;
    width: 38px;
    height: 38px;
    background: #667eea;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 16px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.modal.active .admin-chat-input-area .pin-attachment:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.modal.active .admin-chat-input-area .admin-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 10;
}
.modal.active .admin-chat-input-area .admin-send-btn:hover {
    background: #5563d6;
    transform: translateY(-1px);
}
.modal.active .admin-chat-input-area .admin-send-btn:active {
    transform: scale(0.95);
}
.modal.active .admin-chat-input-area .admin-send-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.modal.active .admin-chat-input-area .char-counter {
    position: absolute;
    bottom: 8px;
    left: 96px;
    font-size: 0.7rem;
    color: #6b7280;
    white-space: nowrap;
    line-height: 38px;
}

.modal.active .admin-chat-input-area .attachment-preview {
    position: absolute;
    bottom: 8px;
    right: 8px;
    left: 140px;
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 4;
}
.modal.active .admin-chat-input-area .attachment-preview:not(.hidden) {
    display: flex;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 200px;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #667eea;
}

.modal-content p {
    margin: 0.5rem 0;
    color: #333;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-option {
    display: block;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.support-option i {
    margin-left: 0.5rem;
    color: #667eea;
}

.date-fields {
    display: flex;
    gap: 0.5rem;
}

.date-fields input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.info-item {
    padding: 0.5rem 0;
}

.btn-confirm {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
}

.chat-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.message[data-role="customer"],
.message.support {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.customer-username {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1b5e20;
    display: block;
}

.message {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.bubble {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.message.user .bubble {
    background: #667eea;
    color: white;
    border-radius: 16px 4px 16px 16px;
}

.message.support .bubble {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 16px 16px 16px 4px;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.chat-input button {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.profile-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #D48445;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 1000;
}

.profile-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #FFCA88, transparent 65%);
    border-radius: 50%;
    z-index: 0;
}

.profile-icon i {
    color: #FEFEDC;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.profile-field label {
    font-weight: 700;
    color: #333;
}

.field-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edit-btn {
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
}

.order-icons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.order-item {
    text-align: center;
}

.order-icon {
    display: block;
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.3rem;
    text-decoration: none;
}

.order-item small {
    display: block;
    margin-top: 0.3rem;
    color: #333;
    font-size: 0.8rem;
}

.order-icon {
    position: relative;
}

.order-icon .order-count {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: inherit;
    line-height: 1;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    font-weight: 400;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .card {
        padding: 1.5rem 2rem;
    }
    
    .form-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .date-fields {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .date-fields input {
        width: 100%;
    }
    
    .btn-next {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    
    .order-icons {
        flex-wrap: wrap;
    }
    
    .order-item {
        flex: 1 1 30%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .profile-field {
        padding: 0.3rem 0;
    }
    
    .chat-container {
        height: 300px;
        padding: 0.5rem;
    }
}

.banner-dots {
    text-align: center;
    margin-top: 1rem;
}

.banner-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot:hover {
    transform: scale(1.2);
}

.banner-dot.active {
    background: #667eea !important;
}

.banner-dot:not(.active) {
    background: #ccc;
}

.banner {
    position: relative;
    display: inline-block;
    margin: 0 auto 1rem;
}

.banner img {
    width: 600px;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.banner-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .banner img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

.banner-preview {
    margin-bottom: 1rem;
    text-align: center;
}

.banner-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.logo-icon {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: #D48445;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 1000;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #FFCA88, transparent 65%);
    border-radius: 50%;
    z-index: 0;
}

.logo-icon i {
    color: #FEFEDC;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

.password-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    user-select: none;
    background: none;
    border: none;
    font-size: 1rem;
    padding: 4px;
    z-index: 2;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    user-select: none;
    background: none;
    border: none;
    font-size: 1rem;
    padding: 4px;
    z-index: 2;
}

.input-wrapper input {
    padding-left: 2.5rem !important;
}

.pricing-category-list,
.pricing-group-list,
.pricing-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-category-list li,
.pricing-group-list li,
.pricing-service-list li {
    padding: 0.9rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 3px solid transparent;
}

.pricing-category-list li:hover,
.pricing-group-list li:hover {
    background: #eef1ff;
    border-right-color: #667eea;
}

.pricing-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-right: 3px solid #27ae60;
}

.pricing-service-item .service-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.pricing-service-item .service-title {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.pricing-service-item .service-price {
    font-size: 0.85rem;
    color: #666;
}

.pricing-service-item .service-price.has-price {
    color: #27ae60;
    font-weight: 700;
}

.pricing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.pricing-breadcrumb span {
    cursor: pointer;
    transition: color 0.2s;
}

.pricing-breadcrumb span:hover {
    color: #667eea;
}

.pricing-breadcrumb .sep {
    color: #999;
    cursor: default;
}

.pricing-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #eef1ff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: background 0.2s;
}

.pricing-back-btn:hover {
    background: #dde4ff;
}

.set-price-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem 0.5rem;
    transition: color 0.2s;
}

.set-price-btn:hover {
    color: #5568d3;
}

.category-header,
.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 700;
    color: #333;
    user-select: none;
}

.category-header:hover,
.group-header:hover {
    background: #eef1ff;
}

.category-header .fa-chevron-left,
.group-header .fa-chevron-left {
    transition: transform 0.2s;
    font-size: 0.85rem;
    color: #999;
}

.category-body,
.group-body {
    padding-right: 0.8rem;
    margin-top: 0.35rem;
    overflow: hidden;
}

.pricing-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-item {
    margin-bottom: 0.25rem;
}

.attachment-limit-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #37BBF7, #2D8ADE);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.attachment-limit-toast.show {
    opacity: 1;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.popup-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-popup-content {
    max-width: 760px;
    max-height: 85vh;
    overflow-y: auto;
}

.attachment-popup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.attachment-popup-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.attachment-popup-media {
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: white;
}

.attachment-popup-media img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.popup-pdf-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f5f5f5;
    color: #667eea;
    font-weight: 700;
    font-size: 1.2rem;
}

.attachment-popup-name {
    margin-top: 0.6rem;
    color: #333;
    font-size: 0.85rem;
    word-break: break-word;
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
}

.popup-media-wrapper {
    position: relative;
    display: inline-block;
}

.popup-media-wrapper .popup-pdf-icon {
    position: relative;
    width: 72px;
    height: 72px;
}

.popup-download-icon {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.popup-download-icon:hover {
    background: #667eea;
    transform: scale(1.05);
}

.attachment-view-btn,
.detail-attachment-button,
.admin-attachment-view-btn,
.user-attachment-view-btn {
    border: none;
    background: none;
    color: #667eea;
    cursor: pointer;
    font-size: 1.05rem;
    margin-right: 0.5rem;
    padding: 0.2rem;
}

.form-actions .btn-confirm,
.form-actions .btn-next {
    margin: 0;
    width: auto;
}

.order-card {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 0.5rem 0;
    border-right: 3px solid #667eea;
}

.order-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-btns {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.status-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.status-btn:hover {
    background: #eef1ff;
}

.status-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.status-btn-pending.active {
    background: #fff3cd;
    color: #856404;
    border-color: #856404;
}

.status-btn-processing.active {
    background: #cce5ff;
    color: #004085;
    border-color: #004085;
}

.status-btn-completed.active {
    background: #d4edda;
    color: #155724;
    border-color: #155724;
}

.support-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.support-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.support-tab:hover {
    background: #eef1ff;
}

.support-tab.active {
    background: #667eea;
    color: white;
}

.support-panel {
    max-height: 400px;
    overflow-y: auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-right: 3px solid #667eea;
}

.faq-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.faq-item p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}


.modal-content {
    max-width: 420px;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.tracking-code {
    font-size: 1.2rem;
    color: #333;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 8px;
    display: inline-block;
    direction: ltr;
}

.order-title {
    font-size: 1rem;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.order-actions {
    margin-top: 0.75rem;
    text-align: center;
}

.btn-view-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-view-detail:hover {
    background: #5568d3;
}

.order-detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    text-align: left;
    direction: ltr;
    word-break: break-word;
}

.detail-value-with-attachment {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.detail-notes-text {
    direction: rtl;
    unicode-bidi: plaintext;
}

.detail-attachment-button {
    flex-shrink: 0;
}

.price-value {
    direction: rtl;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.paid-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    background: #d4edda;
    color: #155724;
}

.badge {
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
    line-height: 1.2;
}

.chat-messages .message.unread {
    border-right: 3px solid #e74c3c;
}

.chat-messages {
    display: flex !important;
    flex-direction: column !important;
}

.chat-messages .message {
    max-width: 80%;
}

.chat-messages .message.user {
    align-self: flex-start;
}

.chat-messages .message.support,
.chat-messages .message[data-role="customer"] {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.chat-messages .message-text {
    display: block;
    width: 100%;
}

.cost-value {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.1rem;
}

.service-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    direction: rtl;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.service-btn img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.service-label {
    width: 170px;
    padding: 0.5rem 0;
    text-align: center;
    color: #667eea;
    font-weight: 500;
    font-size: 1rem;
    background: transparent;
}

@media (max-width: 768px) {
    .service-buttons {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .service-btn img {
        width: 150px;
        height: 150px;
    }
    
    .service-label {
        width: 150px;
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
}

.btn-back {
    background: #999;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-back:hover {
    background: #777;
}

.quick-access {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.quick-label {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-link {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .quick-access {
        margin-top: 1rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .quick-label {
        font-size: 0.8rem;
    }
    
    .quick-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .quick-access {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    .quick-label {
        margin-bottom: 0.25rem;
    }
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    background: #9CC88D;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.category-card i {
    font-size: 2.5rem;
    color: #5390C6;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: #555;
}

.subcategory-list {
    text-align: center;
}

.subcategory-list h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.grid-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.grid-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.25);
}

.service-info {
    text-align: center;
    margin-top: 2rem;
}

.service-info p {
    color: white;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.accordion {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    color: white;
    font-weight: 500;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-content a:last-child {
    border-bottom: none;
}

.accordion-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.games-header {
    margin-bottom: 1.5rem;
    direction: rtl;
}

.games-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    font-family: inherit;
    font-size: 0.9rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background: #9CC88D;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.game-icon {
    font-size: 2.5rem;
    color: #5390C6;
    margin-bottom: 1rem;
}

.game-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.game-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.game-price {
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.game-date {
    font-size: 0.85rem;
    color: #666;
}

.trending-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1.25rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background: #5568d3;
}

.page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-info {
    color: white;
    font-weight: 500;
}

.loading, .no-games {
    color: white;
    font-size: 1.2rem;
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .games-filters {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== RAWG Games Styles ========== */

.search-section {
    margin-bottom: 1.5rem;
}

.games-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #1a5c40;
    background: #103732;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    min-width: 140px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #4a8a6a;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.1);
}

.game-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #0a2e28;
}

.game-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-cover img {
    transform: scale(1.05);
}

.game-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.game-info {
    padding: 1rem;
}

.game-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.game-genres, .game-platforms {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255,255,255,0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.game-date {
    font-size: 0.8rem;
    color: #64748b;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

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

.game-detail-hero {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 300px;
    background: #0a2e28;
}

.hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    padding-top: 4rem;
}

.hero-overlay h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.game-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
    backdrop-filter: blur(4px);
}

.tag.rating {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: 700;
}

.game-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section {
    background: rgba(255,255,255,0.04);
    padding: 1.5rem;
    border-radius: 12px;
}

.info-section h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.game-summary {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.info-list {
    list-style: none;
    color: #cbd5e1;
}

.info-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: #94a3b8;
    margin-left: 0.5rem;
}

.game-detail-tabs {
    margin-bottom: 2rem;
}

.game-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.game-tab {
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
}

.game-tab:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.08);
}

.game-tab.active {
    color: #34d399;
    border-bottom-color: #34d399;
    background: rgba(16, 185, 129, 0.08);
}

.game-tab-content {
    display: none;
    background: rgba(255,255,255,0.04);
    padding: 1.5rem;
    border-radius: 12px;
}

.game-tab-content.active {
    display: block;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: rgba(255,255,255,0.04);
    padding: 1.25rem;
    border-radius: 12px;
    border-right: 3px solid #34d399;
}

.review-card h3 {
    margin-top: 0;
}

.reviews-rich .review-card table td,
.reviews-rich .review-card table th {
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.reviews-rich .review-card table tr:last-child td {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
}

.review-score {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-content {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

.review-link {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 700;
}

.stores-section, .screenshots-section, .similar-section {
    margin-bottom: 2rem;
}

.stores-section h2, .screenshots-section h2, .similar-section h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.store-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #fff;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.screenshot {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.screenshot:hover {
    transform: scale(1.02);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.similar-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.similar-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.similar-card h4 {
    padding: 0.75rem;
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

.similar-card span {
    display: block;
    padding: 0 0.75rem 0.75rem;
    color: #ffd700;
    font-size: 0.8rem;
}

.error {
    color: #ef4444;
    font-size: 1.2rem;
    text-align: center;
    padding: 3rem;
}

.game-detail .loading {
    color: white;
}

@media (max-width: 768px) {
    .game-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlay h1 {
        font-size: 1.4rem;
    }

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

    .games-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-select {
        width: 100%;
        max-width: 280px;
    }

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

    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}



/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #164A41;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2D6A4F;
    border-radius: 10px;
    color: #FEFEDC;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-icon:active {
    transform: scale(0.95);
    background: #1B4332;
}

.nav-icon i {
    font-size: 1.2rem;
}

/* Hide ALL old fixed/floating icons on mobile, show bottom nav instead */
@media (max-width: 768px) {
    /* Hide any fixed-position icon containers except bottom-nav */
    a[class*="icon"]:not(.nav-icon),
    .profile-icon,
    .support-icon,
    .floating-icon,
    .fixed-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
    }

    /* Hide any fixed/sticky header elements that might contain icons */
    header,
    .header,
    .top-bar,
    .navbar {
        position: relative !important;
    }

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

    body {
        padding-bottom: 60px;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .profile-icon,
    .support-icon {
        display: none !important;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .game-title {
        font-size: 0.9rem;
    }

    .hero-overlay {
        padding: 1rem;
        padding-top: 3rem;
    }

    .hero-overlay h1 {
        font-size: 1.2rem;
    }
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background: #9CC88D;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #164A41;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.news-game {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

.news-title {
    font-size: 1.05rem;
    color: #222;
    margin: 0;
    line-height: 1.6;
}

.news-snippet {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.8rem;
    color: #666;
}

.news-link {
    color: #164A41;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.news-link:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    color: #555;
    padding: 2rem;
    font-size: 1rem;
}

.page-subtitle {
    color: #fff;
    margin-top: 0.25rem;
    opacity: 0.85;
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Detail */
.news-detail {
    margin-top: 1.5rem;
}

.news-detail-hero {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #164A41;
    margin-bottom: 1.5rem;
}

.news-detail-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.news-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.news-detail-game {
    display: inline-block;
    background: #9CC88D;
    color: #164A41;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.news-detail-overlay h1 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.news-detail-body {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.news-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.news-detail-date {
    font-size: 0.9rem;
    color: #666;
}

.news-detail-date i {
    margin-left: 0.4rem;
}

.news-external-link {
    color: #164A41;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.news-external-link:hover {
    text-decoration: underline;
}

.news-detail-description {
    color: #222;
    font-size: 1rem;
    line-height: 2;
}

.news-detail-description p {
    margin: 0;
}

@media (max-width: 480px) {
    .news-detail-image {
        height: 200px;
    }

    .news-detail-overlay h1 {
        font-size: 1.15rem;
    }
}
