:root {
    --bg-primary: #030303;
    --bg-secondary: #0a0a0a;
    --bg-card: #121212;
    --accent-gold: #9a7d2e;
    --accent-gold-dim: #6b5620;
    --accent-purple: #7a4fd1;
    --accent-purple-dim: #5a3ba1;
    --text-primary: #a8a8a8;
    --text-secondary: #6e6e6e;
    --text-dim: #3d3d3d;
    --border: #1c1c1c;
    --status-online: #0f7a38;
    --status-offline: #525252;
    --shadow: rgba(0, 0, 0, 0.75);
    --badge-gold: #deb542;
    --badge-purple: #a071ff;
    --badge-bot: #46ff8a;
}

[data-theme="light"] {
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --accent-gold: #c9a961;
    --accent-gold-dim: #a68a4d;
    --accent-purple: #9d7fff;
    --accent-purple-dim: #7a4fd1;
    --text-primary: #262626;
    --text-secondary: #525252;
    --text-dim: #A3A3A3;
    --border: #E5E5E5;
    --status-online: #16a34a;
    --status-offline: #737373;
    --shadow: rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Caudex', serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.container { max-width: 1600px; margin: 0 auto; padding: 20px; }

.site-stats-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    font-size: 0.9rem;
}

[data-theme="light"] .site-stats-bar { box-shadow: 0 2px 4px var(--shadow); }

.site-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.site-stat-value {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    min-width: 60px;
    text-align: center;
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.site-stat-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-gold);
}


/* Countdown Section Styles */
.countdown-wrapper {
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.countdown-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(154, 125, 46, 0.1) 0%, transparent 50%, rgba(154, 125, 46, 0.05) 100%);
    pointer-events: none;
}

[data-theme="light"] .countdown-wrapper {
    box-shadow: 0 4px 16px var(--shadow);
}

.countdown-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .countdown-title {
    font-weight: 800;
}

.countdown-title-ar {
    display: none;
}

[dir="rtl"] .countdown-title-en {
    display: none;
}

[dir="rtl"] .countdown-title-ar {
    display: inline;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-number-wrapper {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px 10px;
    min-width: 100px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.countdown-number-wrapper:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(154, 125, 46, 0.3);
}

.countdown-number {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--accent-gold);
    line-height: 1;
}

.digit-flip {
    display: inline-block;
    position: relative;
    width: 1ch;
    height: 1em;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Flip Animation */
@keyframes flipDown {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    51% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

.digit-flip.flipping {
    animation: flipDown 0.6s ease-in-out;
}

/* Glow effect on change */
.countdown-number-wrapper.changed {
    animation: pulseGlow 0.6s ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px var(--shadow);
    }
    50% {
        box-shadow: 0 4px 20px rgba(154, 125, 46, 0.6), 0 0 30px rgba(154, 125, 46, 0.3);
        border-color: var(--accent-gold);
    }
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    animation: blink 2s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes blink {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.3;
    }
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

[dir="rtl"] .countdown-label {
    font-weight: 700;
}

.label-ar {
    display: none;
}

[dir="rtl"] .label-en {
    display: none;
}

[dir="rtl"] .label-ar {
    display: inline;
}

.countdown-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.event-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.datetime-label-en,
.datetime-label-ar {
    font-weight: 600;
    color: var(--text-secondary);
}

.datetime-label-ar {
    display: none;
}

[dir="rtl"] .datetime-label-en {
    display: none;
}

[dir="rtl"] .datetime-label-ar {
    display: inline;
}

.event-datetime-text {
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
}

.timezone-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.timezone-icon {
    font-size: 1.1rem;
}

.user-timezone-text {
    font-weight: 500;
}

/* Event Finished State */
.countdown-finished {
    text-align: center;
    padding: 40px;
}

.countdown-finished-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
    animation: fadeInScale 1s ease-out;
}

.countdown-finished-message {
    font-size: 1.2rem;
    color: var(--text-primary);
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-wrapper {
        padding: 30px 20px;
    }
    
    .countdown-title {
        font-size: 1.5rem;
    }
    
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-number-wrapper {
        min-width: 70px;
        padding: 10px 8px;
    }
    
    .countdown-number {
        font-size: 2rem;
        gap: 3px;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .event-datetime {
        flex-direction: column;
        text-align: center;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .countdown-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .countdown-number-wrapper {
        min-width: 60px;
        padding: 8px 6px;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .site-stats-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

[data-theme="light"] .top-bar { box-shadow: 0 2px 8px var(--shadow); }

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

[dir="rtl"] .logo-text {
    font-weight: 800;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn, .join-us-btn, .lang-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle-btn:hover, .join-us-btn:hover, .lang-btn:hover {
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
    border-color: var(--accent-gold);
}

.lang-btn.active {
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
    border-color: var(--accent-gold);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

[data-theme="light"] .stats { box-shadow: 0 2px 12px var(--shadow); }

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); }

.stat-label {
    color: var(--text-dim);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

[dir="rtl"] .stat-label {
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.events-slider-wrapper {
    position: relative;
    padding: 0 80px;
    margin-bottom: 30px;
    overflow: hidden;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-align: center;
}

[dir="rtl"] .featured-title {
    font-weight: 700;
}

.events-slider {
    display: flex;
    overflow: hidden;
    cursor: grab;
    padding: 10px 0;
}

.events-slider:active { cursor: grabbing; }

.events-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    will-change: transform;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    flex: 0 0 calc((100% - 60px) / 4);
    max-height: 400px;
}

[data-theme="light"] .event-card { box-shadow: 0 2px 8px var(--shadow); }

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 32px var(--shadow);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content { padding: 15px; }

.event-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

[dir="rtl"] .event-name {
    font-weight: 700;
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-arrow {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    position: absolute;
    top: 0;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

[dir="rtl"] .slider-arrow.prev { left: auto; right: 0; }
[dir="rtl"] .slider-arrow.next { right: auto; left: 0; }

.tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

[data-theme="light"] .tabs-container { box-shadow: 0 2px 12px var(--shadow); }

.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover { color: var(--accent-gold); }

.tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

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

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

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

.search-section {
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input:focus { border-color: var(--accent-gold); outline: none; }

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
}

.sorting-bar {
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sort-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.sort-btn:hover { background: var(--bg-card); border-color: var(--accent-gold); }

.sort-btn.active {
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
}

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

.loadmore-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.loadmore-btn {
    padding: 12px 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.loadmore-btn:hover {
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
}

.visitor-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

[data-theme="light"] .visitor-card { box-shadow: 0 2px 8px var(--shadow); }

.visitor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.visitor-card[data-badge-color]:hover {
    border-color: var(--hover-border-color);
}

.visitor-card[data-badge-color]:active {
    border-width: 2px;
    box-shadow: 0 0 20px var(--glow-color);
}

.visitor-card.featured {
    background: linear-gradient(135deg, rgba(222, 181, 66, 0.15) 0%, rgba(154, 125, 46, 0.08) 50%, var(--bg-secondary) 100%);
}

.visitor-card.verified-partner {
    background: linear-gradient(135deg, rgba(122, 79, 209, 0.08) 0%, rgba(122, 79, 209, 0.04) 50%, var(--bg-secondary) 100%);
}

.visitor-card.founder {
    background: linear-gradient(135deg, rgba(222, 181, 66, 0.20) 0%, rgba(122, 79, 209, 0.08) 50%, var(--bg-secondary) 100%);
}

.visitor-card.bot {
    background: linear-gradient(135deg, rgba(70, 255, 138, 0.08) 0%, rgba(75, 177, 113, 0.04) 50%, var(--bg-secondary) 100%);
}

.badge-container {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
    z-index: 100;
    pointer-events: none;
}

[dir="rtl"] .badge-container {
    right: auto;
    left: 16px;
}

.verified-badge, .verified-partner-badge, .founder-badge, .bot-badge {
    width: 28px;
    height: 28px;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    pointer-events: all;
    z-index: 101;
}

.founder-badge {
    filter: drop-shadow(0 1px 4px rgba(215, 178, 74, 0.5));
    animation: founderPulse 3s ease-in-out infinite;
}

.verified-badge {
    filter: drop-shadow(0 1px 4px rgba(154, 125, 46, 0.4));
    animation: verifiedPulse 3s ease-in-out infinite;
}

.verified-partner-badge {
    filter: drop-shadow(0 1px 4px rgba(122, 79, 209, 0.4));
    animation: partnerPulse 3s ease-in-out infinite;
}

.bot-badge {
    filter: drop-shadow(0 1px 4px rgba(70, 255, 138, 0.4));
    animation: botPulse 3s ease-in-out infinite;
}

@keyframes founderPulse {
    0%, 100% {
        filter: drop-shadow(0 1px 4px rgba(215, 178, 74, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 2px 6px rgba(215, 178, 74, 0.6));
        transform: scale(1.04);
    }
}

@keyframes verifiedPulse {
    0%, 100% {
        filter: drop-shadow(0 1px 4px rgba(154, 125, 46, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 2px 6px rgba(222, 181, 66, 0.5));
        transform: scale(1.04);
    }
}

@keyframes partnerPulse {
    0%, 100% {
        filter: drop-shadow(0 1px 4px rgba(122, 79, 209, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 2px 6px rgba(160, 113, 255, 0.5));
        transform: scale(1.04);
    }
}

@keyframes botPulse {
    0%, 100% {
        filter: drop-shadow(0 1px 4px rgba(70, 255, 138, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 2px 6px rgba(75, 177, 113, 0.6));
        transform: scale(1.04);
    }
}

.badge-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 200;
}

.verified-badge:hover .badge-tooltip,
.verified-partner-badge:hover .badge-tooltip,
.founder-badge:hover .badge-tooltip,
.bot-badge:hover .badge-tooltip {
    opacity: 1;
}

.like-section {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

[dir="rtl"] .like-section {
    right: auto;
    left: 15px;
}

.like-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 20px;
    text-align: right;
}

.like-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.like-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    transform: scale(1.1);
}

.like-btn.liked {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.like-icon {
    font-size: 1.2rem;
    transition: all 0.2s;
    color: var(--text-dim);
}

.like-btn.liked .like-icon {
    color: #dc2626;
}

.visitor-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    object-fit: cover;
}

.visitor-card.verified-partner .avatar {
    border-color: var(--accent-purple);
}

.visitor-card.founder .avatar {
    border-color: var(--accent-gold);
}

.visitor-card.bot .avatar {
    border-color: #46ff8a;
}

.avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bg-primary);
    border: 2px solid var(--accent-gold);
}

.visitor-card.verified-partner .avatar-fallback {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dim));
    border-color: var(--accent-purple);
}

.visitor-card.founder .avatar-fallback {
    background: linear-gradient(135deg, #d7b24a, var(--accent-gold-dim));
    border-color: var(--accent-gold);
}

.visitor-card.bot .avatar-fallback {
    background: linear-gradient(135deg, #46ff8a, #4bb171);
    border-color: #46ff8a;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.status-indicator.online { background: var(--status-online); }
.status-indicator.offline { background: var(--status-offline); }

.visitor-info { flex: 1; min-width: 0; }

.visitor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[dir="rtl"] .visitor-name {
    font-weight: 700;
}

.visitor-username {
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visitor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

[dir="rtl"] .stat-item-label {
    font-weight: 500;
}

.stat-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.location-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.location-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 4px;
}

[dir="rtl"] .location-label {
    font-weight: 500;
}

.location-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accordion-section {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.accordion-header:hover { background: rgba(168, 168, 168, 0.05); }

.accordion-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
}

[dir="rtl"] .accordion-title {
    font-weight: 800;
}

.accordion-arrow {
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s;
}

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

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

.accordion-content.active {
    max-height: 3000px;
    padding: 20px 30px 30px;
}

.section-content {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.9;
}

.section-content p {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.section-content p:hover {
    background: rgba(154, 125, 46, 0.03);
    transform: scale(1.01);
}

.welcome-intro {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.9;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(154, 125, 46, 0.02);
    border-radius: 10px;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.welcome-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.welcome-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 16px var(--shadow);
}

.welcome-item-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.welcome-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

[dir="rtl"] .welcome-item-title {
    font-weight: 700;
}

.welcome-item-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timezone-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
}

.timezone-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.timezone-toggle-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timezone-toggle-btn:hover {
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.timezone-toggle-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.current-timezone {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    font-style: italic;
}

.schedule-timeline {
    position: relative;
    padding-left: 40px;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gold);
}

.schedule-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px var(--shadow);
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 25px;
    width: 15px;
    height: 15px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-gold);
}

[dir="rtl"] .schedule-timeline {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .schedule-timeline::before {
    left: auto;
    right: 15px;
}

[dir="rtl"] .schedule-item::before {
    left: auto;
    right: -32px;
}

[dir="rtl"] .schedule-item:hover {
    transform: translateX(-10px);
}

.schedule-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.schedule-event-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

[dir="rtl"] .schedule-event-name {
    font-weight: 700;
}

.schedule-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.list-section {
    margin: 20px 0;
    padding-left: 30px;
}

.list-section li {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.list-section li:hover {
    background: rgba(154, 125, 46, 0.04);
    transform: translateX(8px);
    border-left: 3px solid var(--accent-gold);
}

[dir="rtl"] .list-section {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .list-section li:hover {
    transform: translateX(-8px);
    border-left: none;
    border-right: 3px solid var(--accent-gold);
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

[dir="rtl"] .contact-title {
    font-weight: 700;
}

.contact-names {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.footer {
    margin-top: 40px;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--accent-gold); }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.modal-content.founder {
    background: linear-gradient(135deg, rgba(222, 181, 66, 0.20) 0%, rgba(122, 79, 209, 0.08) 50%, var(--bg-card) 100%);
}

.modal-content.verified-partner {
    background: linear-gradient(135deg, rgba(122, 79, 209, 0.12) 0%, rgba(122, 79, 209, 0.06) 50%, var(--bg-card) 100%);
}

.modal-content.featured {
    background: linear-gradient(135deg, rgba(222, 181, 66, 0.15) 0%, rgba(154, 125, 46, 0.08) 50%, var(--bg-card) 100%);
}

.modal-content.bot {
    background: linear-gradient(135deg, rgba(70, 255, 138, 0.12) 0%, rgba(75, 177, 113, 0.06) 50%, var(--bg-card) 100%);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.profile-badge-container {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 100;
}

[dir="rtl"] .profile-badge-container {
    right: auto;
    left: 0;
}

.profile-badge-container .verified-badge,
.profile-badge-container .verified-partner-badge,
.profile-badge-container .founder-badge,
.profile-badge-container .bot-badge {
    width: 32px;
    height: 32px;
}

.profile-avatar img,
.profile-avatar .avatar-fallback {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
}

.modal-content.verified-partner .profile-avatar img,
.modal-content.verified-partner .profile-avatar .avatar-fallback {
    border-color: var(--accent-purple);
}

.modal-content.founder .profile-avatar img,
.modal-content.founder .profile-avatar .avatar-fallback {
    border-color: var(--accent-gold);
}

.modal-content.bot .profile-avatar img,
.modal-content.bot .profile-avatar .avatar-fallback {
    border-color: #46ff8a;
}

.profile-details { flex: 1; }

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.profile-username {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-status.online {
    background: rgba(15, 122, 56, 0.2);
    color: var(--status-online);
}

.profile-status.offline {
    background: rgba(82, 82, 82, 0.2);
    color: var(--status-offline);
}

.profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

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

.profile-stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.action-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.action-badge.entry {
    background: rgba(15, 122, 56, 0.2);
    color: var(--status-online);
}

.action-badge.exit {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.history-time {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.guestbook-header {
    margin-bottom: 30px;
}

.guestbook-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 20px;
}

[dir="rtl"] .guestbook-title {
    font-weight: 800;
}

.guestbook-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.gb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.gb-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gb-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
}

.gb-stat-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gb-stars {
    color: var(--accent-gold);
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.guestbook-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gb-filter-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
}

.gb-filter-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-gold);
}

.gb-filter-btn.active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

\.guestbook-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.18s ease;
    position: relative;
    z-index: 1;
    width: 100%;
}

[data-theme="light"] .review-card {
    box-shadow: 0 2px 8px var(--shadow);
}

.review-card.featured,
.review-card.verified-partner,
.review-card.founder,
.review-card.bot {
    background: var(--bg-secondary) !important;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--border);
}

.review-card[data-badge-color]:hover {
    border-color: var(--border);
}

.review-card[data-badge-color]:active {
    border-width: 1px;
    box-shadow: 0 4px 12px var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.review-card > .badge-container {
    display: none !important;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .review-card > .badge-container {
    right: auto;
    left: 16px;
}

.review-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--border) !important;
    object-fit: cover;
}

.review-card.verified-partner .review-avatar,
.review-card.founder .review-avatar,
.review-card.bot .review-avatar {
    border-color: var(--border) !important;
}

.review-avatar-fallback {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary)) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    border: 2px solid var(--border) !important;
}

.review-card.verified-partner .review-avatar-fallback,
.review-card.founder .review-avatar-fallback,
.review-card.bot .review-avatar-fallback {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary)) !important;
    border-color: var(--border) !important;
}

.review-info {
    flex: 1;
    min-width: 0;
}

.review-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[dir="rtl"] .review-name {
    font-weight: 700;
}

.review-username {
    font-size: 1.05rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: bold;
}

.review-date {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.review-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.discord-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(154, 125, 46, 0.4);
    transition: all 0.3s ease;
    z-index: 2000;
    color: var(--bg-primary);
}

[dir="rtl"] .discord-widget-btn {
    right: auto;
    left: 30px;
}

.discord-widget-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(154, 125, 46, 0.6);
}

.discord-widget-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .discord-widget-popup {
    right: auto;
    left: 30px;
}

.discord-widget-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.discord-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(154, 125, 46, 0.1), transparent);
}

.discord-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.discord-header-content svg {
    color: var(--accent-gold);
}

.discord-header-content h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.discord-member-count {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin: 4px 0 0 0;
}

.discord-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.discord-close-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.discord-widget-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.discord-channels {
    margin-bottom: 20px;
}

.discord-channel-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.discord-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.discord-channel:hover {
    background: rgba(154, 125, 46, 0.1);
    border-color: var(--accent-gold-dim);
}

.discord-channel-icon {
    color: var(--text-dim);
    font-size: 1rem;
}

.discord-members {
    margin-top: 15px;
}

.discord-member-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.discord-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.discord-member:hover {
    background: rgba(154, 125, 46, 0.1);
    border-color: var(--accent-gold-dim);
}

.discord-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.discord-member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discord-member-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.discord-member-status.online {
    background: var(--status-online);
}

.discord-member-status.idle {
    background: #faa61a;
}

.discord-member-status.dnd {
    background: #ed4245;
}

.discord-member-info {
    flex: 1;
    min-width: 0;
}

.discord-member-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
    color: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.discord-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 125, 46, 0.4);
}

@media (max-width: 768px) {
    .discord-widget-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    [dir="rtl"] .discord-widget-btn {
        right: auto;
        left: 20px;
    }
    
    .discord-widget-popup {
        bottom: 80px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 360px;
    }
    
    [dir="rtl"] .discord-widget-popup {
        right: auto;
        left: 20px;
    }
}

.discord-widget-content::-webkit-scrollbar {
    width: 8px;
}

.discord-widget-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.discord-widget-content::-webkit-scrollbar-thumb {
    background: var(--accent-gold-dim);
    border-radius: 4px;
    transition: background 0.2s;
}

.discord-widget-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.discord-widget-content {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold-dim) var(--bg-secondary);
}

@media (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 15px; }
    .logo-text { font-size: 1.5rem; }
    .tabs-nav { flex-direction: column; }
    .tab-btn { width: 100%; text-align: center; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .visitors-grid { grid-template-columns: 1fr; }
    .events-slider-wrapper { padding: 0 50px; }
    .event-card { flex: 0 0 calc((100% - 20px) / 2); }
    .search-section { flex-wrap: wrap; }
    .search-input { width: 100%; }
    .welcome-grid { grid-template-columns: 1fr; }
    .guestbook-grid { grid-template-columns: 1fr; }
    .guestbook-stats-bar { flex-direction: column; gap: 20px; }
}

@media (max-width: 576px) {
    .stats { grid-template-columns: 1fr; }
    .event-card { flex: 0 0 100%; }
}
/* Sortable Sections Fix */
#sortable-sections {
    position: relative;
    min-height: 100px;
}

.draggable-section {
    position: relative !important;
    display: block !important;
    margin-bottom: 20px;
    transition: none;
    cursor: move;
}

.draggable-section * {
    cursor: default;
}

.ui-sortable-helper {
    opacity: 0.7 !important;
    background: var(--bg-card) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.ui-sortable-placeholder {
    visibility: visible !important;
    background: rgba(154, 125, 46, 0.2) !important;
    border: 2px dashed var(--accent-gold) !important;
    border-radius: 12px !important;
}
/* Sortable Sections Fix */
#sortable-sections {
    position: relative;
    min-height: 100px;
}

.draggable-section {
    position: relative !important;
    display: block !important;
    margin-bottom: 20px;
    transition: none;
    cursor: move;
}

.draggable-section * {
    cursor: default;
}

.ui-sortable-helper {
    opacity: 0.7 !important;
    background: var(--bg-card) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.ui-sortable-placeholder {
    visibility: visible !important;
    background: rgba(154, 125, 46, 0.2) !important;
    border: 2px dashed var(--accent-gold) !important;
    border-radius: 12px !important;
}
/* Locations Section Styles */
.locations-header {
    text-align: center;
    margin-bottom: 40px;
}

.locations-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

[dir="rtl"] .locations-title {
    font-weight: 800;
}

.locations-title-ar {
    display: none;
}

[dir="rtl"] .locations-title-en {
    display: none;
}

[dir="rtl"] .locations-title-ar {
    display: inline;
}

.locations-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.locations-subtitle-ar {
    display: none;
}

[dir="rtl"] .locations-subtitle-en {
    display: none;
}

[dir="rtl"] .locations-subtitle-ar {
    display: inline;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.location-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .location-card {
    box-shadow: 0 2px 12px var(--shadow);
}

.location-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 16px 48px var(--shadow);
}

.location-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-card);
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-image {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover .location-overlay {
    opacity: 1;
}

.location-visit-btn {
    padding: 12px 24px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.location-visit-btn:hover {
    background: #deb542;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(222, 181, 66, 0.4);
}

.location-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

[dir="rtl"] .location-name {
    font-weight: 700;
}

.location-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

/* Responsive design for locations */
@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-image-wrapper {
        height: 200px;
    }
    
    .locations-title {
        font-size: 1.5rem;
    }
    
    .locations-subtitle {
        font-size: 1rem;
    }
}
/* ============================================
   AUDIO TOUR SYSTEM STYLES
   Add this code to the end of your styles.css file
   ============================================ */

/* Audio Tour Popup */
.audio-tour-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.audio-tour-popup.active {
    opacity: 1;
    visibility: visible;
}

.audio-popup-content {
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 24px;
    padding: 40px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(222, 181, 66, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.audio-tour-popup.active .audio-popup-content {
    transform: translateY(0);
}

.audio-popup-header h3 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 20px rgba(222, 181, 66, 0.3);
}

.audio-popup-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.audio-popup-duration {
    text-align: center;
    color: var(--accent-gold);
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.audio-popup-actions {
    display: flex;
    gap: 15px;
}

.audio-popup-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-popup-yes {
    background: linear-gradient(135deg, var(--accent-gold), #b8941f);
    color: var(--bg-primary);
}

.audio-popup-yes::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.audio-popup-yes:hover::before {
    width: 300px;
    height: 300px;
}

.audio-popup-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(222, 181, 66, 0.4);
}

.audio-popup-no {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.audio-popup-no:hover {
    background: var(--bg-card);
    border-color: var(--accent-gold);
}

/* Audio Player Bar */
.audio-player-bar {
    position: sticky;
    top: 80px;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 30px;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(222, 181, 66, 0.15);
}

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

.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-btn {
    background: linear-gradient(135deg, var(--accent-gold), #b8941f);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(222, 181, 66, 0.3);
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(222, 181, 66, 0.5);
}

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

.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.audio-progress-bar:hover .audio-progress-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #b8941f);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(222, 181, 66, 0.5);
}

.audio-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    left: 0%;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(222, 181, 66, 0.5);
    transition: transform 0.2s ease;
}

.audio-time {
    display: flex;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    min-width: 90px;
    font-weight: 600;
}

.audio-location-name {
    padding: 10px 20px;
    background: rgba(222, 181, 66, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 25px;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1rem;
    min-width: 180px;
    text-align: center;
    text-shadow: 0 0 10px rgba(222, 181, 66, 0.3);
}

.audio-close {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    border: 2px solid #ff3b30;
}

.audio-close:hover {
    background: #ff3b30;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5);
}

/* Manual Tour Button */
.manual-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 25px auto 0;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-gold), #b8941f);
    color: var(--bg-primary);
    border: none;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(222, 181, 66, 0.35);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.manual-tour-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.manual-tour-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(222, 181, 66, 0.5);
}

.manual-tour-btn:hover::before {
    width: 350px;
    height: 350px;
}

.manual-tour-btn:active {
    transform: translateY(-1px);
}

.tour-btn-icon {
    font-size: 1.4rem;
    animation: pulse 2s infinite;
}

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

.tour-btn-text-ar {
    display: none;
}

[dir="rtl"] .tour-btn-text-en {
    display: none;
}

[dir="rtl"] .tour-btn-text-ar {
    display: inline !important;
}

/* Center locations header */
.locations-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Audio Active Location Effects */
.location-card.audio-active {
    border: 3px solid var(--accent-gold) !important;
    box-shadow: 0 0 40px rgba(222, 181, 66, 0.6) !important;
    transform: scale(1.03);
    transition: all 0.5s ease;
}

.location-card.audio-pulse {
    animation: audioPulse 2s infinite;
}

@keyframes audioPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(222, 181, 66, 0.6);
    }
    50% {
        box-shadow: 0 0 60px rgba(222, 181, 66, 0.8), 
                    0 0 120px rgba(222, 181, 66, 0.4),
                    inset 0 0 20px rgba(222, 181, 66, 0.1);
    }
}

.location-card.audio-active .location-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.location-card.audio-active .location-name {
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(222, 181, 66, 0.6);
}

.location-card.audio-active .location-overlay {
    opacity: 0.3;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(222, 181, 66, 0.2) 100%);
}

/* RTL Support */
[dir="rtl"] .popup-title-en,
[dir="rtl"] .popup-text-en,
[dir="rtl"] .btn-text-en {
    display: none;
}

[dir="rtl"] .popup-title-ar,
[dir="rtl"] .popup-text-ar,
[dir="rtl"] .btn-text-ar {
    display: inline !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .audio-player-bar {
        top: 70px;
        padding: 12px 15px;
    }
    
    .audio-controls {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .audio-progress-container {
        width: 100%;
        order: 2;
    }
    
    .audio-location-name {
        width: 100%;
        order: 1;
        margin-bottom: 10px;
    }
    
    .manual-tour-btn {
        width: 90%;
        max-width: 300px;
        font-size: 1rem;
        padding: 12px 28px;
    }
}

@media (max-width: 480px) {
    .audio-popup-header h3 {
        font-size: 1.5rem;
    }
    
    .audio-popup-body p {
        font-size: 0.95rem;
    }
    
    .audio-popup-actions {
        flex-direction: column;
    }
    
    .audio-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
/* ============================================
   SECOND LIFE NAME LINK STYLING - CLEAN VERSION
   Guest Book - Clickable names without emoji
   نسخة نظيفة بدون إيموجي
   ============================================ */

.sl-name-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.sl-name-link:hover {
    color: var(--accent-gold);
    cursor: pointer;
}

/* Underline animation on hover */
.sl-name-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.sl-name-link:hover::after {
    width: 100%;
}

/* RTL support for Arabic */
[dir="rtl"] .sl-name-link::after {
    left: auto;
    right: 0;
}

/* 
   ⚠️ تم إزالة الإيموجي والمسافة
   Emoji and spacing removed
*/