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

*::selection {
    background: rgba(255, 140, 66, 0.3);
    color: #fff;
}

*::-moz-selection {
    background: rgba(255, 140, 66, 0.3);
    color: #fff;
}

p, h1, h2, h3, h4, h5, h6, span, div, a {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #0d0d0d;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

main {
    position: relative;
    z-index: 100;
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 140, 66, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 66, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.glow-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 101;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(255, 140, 66, 0.5));
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.title-white {
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.title-orange {
    color: #ff8c42;
    text-shadow: 0 0 40px rgba(255, 140, 66, 0.6);
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
}

.controls {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.username-input-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.username-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 140, 66, 0.3);
    border-radius: 10px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.username-input:focus {
    border-color: #ff8c42;
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.2);
}

.username-input::placeholder {
    color: #666;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-orange {
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.6);
}

.btn-dark {
    background: transparent;
    border: 2px solid rgba(255, 140, 66, 0.5);
    color: #fff;
}

.btn-dark:hover {
    background: rgba(255, 140, 66, 0.1);
    border-color: #ff8c42;
}

.tweets-container {
    min-height: 300px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 140, 66, 0.2);
    border-top-color: #ff8c42;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    color: rgba(255, 140, 66, 0.3);
    margin-bottom: 20px;
}

.tweet-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tweet-card:hover {
    border-color: rgba(255, 140, 66, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 140, 66, 0.1);
}

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

.tweet-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ff8c42;
    object-fit: cover;
}

.tweet-user-info {
    flex: 1;
}

.tweet-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.tweet-username {
    color: #888;
    font-size: 0.9rem;
}

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

.tweet-content {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.tweet-content a {
    color: #ff8c42;
    text-decoration: none;
}

.tweet-content a:hover {
    text-decoration: underline;
}

.tweet-stats {
    display: flex;
    gap: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.9rem;
}

.stat-item i {
    color: #ff8c42;
}

.tweet-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Homepage Styles */
.about-section {
    margin-top: 20px;
}

.about-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #000;
}

.about-title {
    font-size: 1.8rem;
    color: #ff8c42;
    margin-bottom: 15px;
}

.about-text {
    color: #aaa;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-item {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 140, 66, 0.15);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(255, 140, 66, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: #ff8c42;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #fff !important;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: #888 !important;
    font-size: 0.9rem;
}

.cta-section {
    background: rgba(255, 140, 66, 0.05);
    border: 2px dashed rgba(255, 140, 66, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 25px;
}

.cta-text {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 25px;
}

.twitter-follow {
    text-align: center;
}

.twitter-timeline {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

.twitter-timeline a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.twitter-timeline a:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* News Page Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 140, 66, 0.2);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff8c42;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.twitter-icon {
    color: #000;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.page-subtitle {
    color: #888;
    font-size: 1.1rem;
}

.tweets-wrapper {
    min-height: 300px;
}

.demo-notice {
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 25px;
    color: #ff8c42;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    color: #000;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
    margin-top: 50px;
}

.error-message {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6666;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .title {
        font-size: 2.5rem;
    }
    
    .username-input-container {
        flex-direction: column;
    }
    
    .username-input {
        min-width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tweet-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Advanced Animations & Effects */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 140, 66, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 140, 66, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slide-up-fade {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Enhanced Card Hover Effects */
.tweet-card {
    animation: slide-up-fade 0.5s ease forwards;
    opacity: 1 !important;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

.tweet-card:hover {
    border-color: rgba(255, 140, 66, 0.5);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 50px rgba(255, 140, 66, 0.15);
}

/* Enhanced Button Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-orange {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Loading Skeleton Animation */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Logo Animation */
.logo {
    animation: float 3s ease-in-out infinite;
}

.logo:hover {
    animation: rotate-slow 10s linear infinite;
}

/* Title Animation */
.title {
    animation: scale-in 0.8s ease forwards;
}

/* Feature Items Stagger Animation */
.feature-item {
    animation: slide-up-fade 0.6s ease forwards;
    opacity: 1 !important;
    animation-delay: calc(var(--index, 0) * 0.15s);
}

/* Enhanced Loading Spinner */
.spinner {
    border: 4px solid rgba(255, 140, 66, 0.1);
    border-top-color: #ff8c42;
    border-right-color: rgba(255, 140, 66, 0.5);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 140, 66, 0.3);
    animation: spin 1.2s linear infinite reverse;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    color: #000;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 1000;
    animation: slideUp 0.3s ease, pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 5px 30px rgba(255, 140, 66, 0.4);
}

/* Stat Item Hover */
.stat-item {
    transition: all 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    color: #ff8c42;
    transform: scale(1.05);
}

/* Tweet Image Gallery */
.tweet-images {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

/* Single image takes full width */
.tweet-images:only-child,
.tweet-images > .tweet-image:only-child {
    grid-template-columns: 1fr;
}

/* Multiple images in grid */
.tweet-images:not(:has(> :only-child)) {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tweet-image {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 140, 66, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tweet-image:hover {
    border-color: #ff8c42;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.tweet-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.tweet-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

/* Single image gets better height */
.tweet-image:only-child img {
    height: 250px;
    max-height: 400px;
}

/* Refresh Button */
.refresh-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.refresh-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.6);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

/* Connection Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #888;
}

.status-indicator.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.status-indicator.offline::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.status-indicator.demo::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Progress Bar for Loading */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c42, #e55a00);
    border-radius: 2px;
    animation: loading-progress 2s ease-in-out infinite;
}

@keyframes loading-progress {
    0% { width: 0%; margin-left: 0%; }
    50% { width: 50%; margin-left: 25%; }
    100% { width: 0%; margin-left: 100%; }
}

/* Cache Info Badge */
.cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: #ff8c42;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 66, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 66, 0.5);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #ff8c42, #ffaa66, #ff8c42);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

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

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* Skeleton Loading for Tweets */
.skeleton-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 140, 66, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

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

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-lines {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-content {
    height: 80px;
    border-radius: 8px;
    margin-bottom: 15px;
}
ش/* ==========================================================================
   مدينة العدل - New Legendary Styles
   Additional styles for the epic homepage redesign
   ========================================================================== */

/* ==========================================================================
   Loading Screen with Fog Effect
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 50%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease, transform 1s ease;
    overflow: hidden;
}

/* Fog Container */
.fog-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Fog Images */
.fog-img {
    position: absolute;
    height: 100vh;
    width: 300vw;
    z-index: 1;
    opacity: 0.8;
}

.fog-img-first {
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255, 140, 66, 0.1) 20%, 
        rgba(255, 140, 66, 0.3) 40%, 
        rgba(255, 140, 66, 0.1) 60%, 
        transparent 100%);
    animation: fogMove 20s linear infinite;
    filter: blur(60px);
}

.fog-img-second {
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(229, 90, 0, 0.1) 30%, 
        rgba(229, 90, 0, 0.25) 50%, 
        rgba(229, 90, 0, 0.1) 70%, 
        transparent 100%);
    animation: fogMove 25s linear infinite reverse;
    filter: blur(80px);
    top: 20%;
}

@keyframes fogMove {
    0% { transform: translate3d(-200vw, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Center Content */
.loading-content-center {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

.loading-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ff8c42;
    text-shadow: 0 0 40px rgba(255, 140, 66, 0.8), 0 0 80px rgba(255, 140, 66, 0.4);
    margin-bottom: 15px;
    animation: pulseGlow 2s ease-in-out infinite;
    letter-spacing: 2px;
}

.loading-subtitle {
    font-size: 1.8rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

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

@keyframes pulseGlow {
    0%, 100% { 
        text-shadow: 0 0 40px rgba(255, 140, 66, 0.8), 0 0 80px rgba(255, 140, 66, 0.4);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 60px rgba(255, 140, 66, 1), 0 0 100px rgba(255, 140, 66, 0.6);
        transform: scale(1.02);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2.5rem;
    }
    .loading-subtitle {
        font-size: 1.2rem;
    }
}

.loading-screen.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-message {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ff8c42;
    font-size: 1.1rem;
    font-weight: 600;
}

.loading-message .loading-icon {
    font-size: 1.5rem;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

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

.loading-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.loading-text {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    direction: rtl;
}

.loading-letter {
    display: inline-block;
    opacity: 0;
    animation: letter-appear 0.5s ease forwards;
    color: #ff8c42;
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

.loading-letter:nth-child(1) { animation-delay: 0.1s; }
.loading-letter:nth-child(2) { animation-delay: 0.2s; }
.loading-letter:nth-child(3) { animation-delay: 0.3s; }
.loading-letter:nth-child(4) { animation-delay: 0.4s; }
.loading-letter:nth-child(5) { animation-delay: 0.5s; }
.loading-letter:nth-child(6) { animation-delay: 0.6s; }
.loading-letter:nth-child(7) { animation-delay: 0.7s; }
.loading-letter:nth-child(8) { animation-delay: 0.8s; }
.loading-letter:nth-child(9) { animation-delay: 0.9s; }
.loading-letter:nth-child(10) { animation-delay: 1.0s; }

.loading-letter.space {
    width: 10px;
}

@keyframes letter-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 140, 66, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff8c42, #e55a00);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* ==========================================================================
   Particle Canvas
   ========================================================================== */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ==========================================================================
   Scroll Progress
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff8c42, #e55a00);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.5);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.main-nav.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo-svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 140, 66, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff8c42, #e55a00);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ff8c42;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    color: #ff8c42;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: rotate(180deg);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

.nav-twitter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-twitter:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hamburger {
    width: 25px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
    z-index: 102;
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 103;
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 30px;
    color: #ff8c42;
    font-size: 0.9rem;
    margin-bottom: 30px;
    animation: fade-down 0.8s ease;
}

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.title-line {
    display: block;
    color: #ff8c42 !important;
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.5) !important;
    animation: glow-pulse 3s ease infinite;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.title-line.gradient-text {
    color: #fff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
    animation: glow-pulse 3s ease infinite;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        text-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 0 0 30px rgba(255, 140, 66, 0.8);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #aaa !important;
    margin-bottom: 20px;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.typing-cursor {
    color: #ff8c42;
    animation: blink 1s infinite;
}

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

.hero-description {
font-size: 1.1rem;
color: #888 !important;
line-height: 1.8;
max-width: 700px;
margin: 0 auto 30px;
pointer-events: auto;
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 140, 66, 0.5);
    color: #ff8c42;
}

.btn-outline:hover {
    background: rgba(255, 140, 66, 0.1);
    border-color: #ff8c42;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(255, 140, 66, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(255, 140, 66, 0.6);
}

.hero-stats-mini {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff8c42;
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: #888;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: #ff8c42;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.scroll-text {
    font-size: 0.8rem;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light .section-title,
.section-header.light .section-subtitle {
    color: #fff !important;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 20px;
    color: #ff8c42;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #888 !important;
}

/* ==========================================================================
   About Section New
   ========================================================================== */
.about-section-new {
    padding: 100px 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.about-image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

.about-icon-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #fff;
    box-shadow: 0 20px 60px rgba(255, 140, 66, 0.4);
}

.about-heading {
    font-size: 1.8rem;
    color: #ff8c42 !important;
    margin-bottom: 20px;
}

.about-paragraph {
    color: #aaa !important;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888 !important;
}

.about-features-list li i {
    color: #4ade80;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background: rgba(255, 140, 66, 0.02);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 140, 66, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff8c42, #e55a00);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 140, 66, 0.3);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
}

.service-title {
    font-size: 1.3rem;
    color: #fff !important;
    margin-bottom: 15px;
}

.service-description {
    color: #888 !important;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

.service-link.disabled {
    color: #4ade80;
    cursor: default;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1) 0%, transparent 50%, rgba(255, 140, 66, 0.05) 100%);
    z-index: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 140, 66, 0.4);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff8c42 !important;
    margin-bottom: 10px;
}

.counter {
    color: #ff8c42 !important;
    font-weight: 800;
}

.stat-label {
    color: #888 !important;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.stat-description {
    color: #666 !important;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 140, 66, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(255, 140, 66, 0.3);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 auto 15px;
}

.contact-card h3 {
    color: #fff !important;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: #888 !important;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-link {
    color: #ff8c42;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-link.disabled {
    color: #666;
}

.contact-cta {
    display: flex;
    align-items: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(229, 90, 0, 0.05));
    border: 2px solid rgba(255, 140, 66, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    width: 100%;
}

.cta-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: #888;
    margin-bottom: 25px;
    line-height: 1.7;
}

.btn-twitter {
    background: #000;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.btn-twitter:hover {
    background: #222;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Footer New
   ========================================================================== */
.footer-new {
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid rgba(255, 140, 66, 0.1);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-svg {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.footer-description {
    color: #888;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8c42;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #ff8c42;
    color: #000;
    transform: translateY(-3px);
}

.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: #ff8c42;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ff8c42;
    padding-right: 10px;
}

.footer-links a:hover::before {
    width: 15px;
}

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

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

.footer-credit {
    color: #ff8c42 !important;
    margin-top: 5px;
}

.game-page {
    padding: 100px 0 60px;
}

.game-hero {
    text-align: center;
    padding: 40px 0 20px;
}

.game-hero .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 140, 66, 0.12);
    color: #ff8c42;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.game-hero h1 {
    font-size: 3rem;
    margin: 20px auto 15px;
    color: #fff;
}

.game-hero p {
    color: #ccc;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.mode-btn {
    padding: 14px 28px;
    border: 1px solid rgba(255, 140, 66, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.mode-btn.active,
.mode-btn:hover {
    background: rgba(255, 140, 66, 0.18);
    border-color: rgba(255, 140, 66, 0.45);
}

.opponent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.opponent-btn {
    min-width: 120px;
    justify-content: center;
    padding: 10px 14px;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-row span {
    color: #aaa;
}

.panel-row strong {
    color: #fff;
}

.game-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 40px;
}

.game-card,
.game-panel {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 140, 66, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.22);
}

.game-card {
    display: grid;
    gap: 24px;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 140, 66, 0.15);
    color: #ff8c42;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.status-live {
    color: #7cfb76;
}

.game-canvas-wrapper {
    background: #080808;
    border: 1px solid rgba(255, 140, 66, 0.18);
    border-radius: 20px;
    padding: 20px;
    display: grid;
    place-items: center;
}

#gameCanvas {
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(255, 140, 66, 0.15), transparent 40%),
                linear-gradient(135deg, rgba(255, 140, 66, 0.06), transparent 60%);
}

.game-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.touch-controls {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.touch-btn {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    border: 1px solid rgba(255, 140, 66, 0.2);
    background: rgba(255, 140, 66, 0.08);
    color: #fff;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.touch-btn:hover,
.touch-btn:focus {
    background: rgba(255, 140, 66, 0.18);
    transform: translateY(-1px);
}

.touch-btn[data-dir="up"] {
    grid-column: 2;
}

.touch-btn[data-dir="down"] {
    grid-column: 2;
}

.touch-btn[data-dir="left"] {
    grid-column: 1;
}

.touch-btn[data-dir="right"] {
    grid-column: 3;
}

.game-info {
    display: grid;
    gap: 20px;
}

.panel-card {
    background: rgba(255, 140, 66, 0.05);
    border: 1px solid rgba(255, 140, 66, 0.18);
    padding: 25px;
    border-radius: 18px;
}

.panel-card h3 {
    color: #fff;
    margin-bottom: 15px;
}

.panel-card p,
.panel-card li {
    color: #ccc;
    line-height: 1.8;
}

.panel-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.panel-card li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-card li i {
    color: #ff8c42;
    min-width: 24px;
}

.btn-game {
    width: 100%;
    max-width: 220px;
}

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

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c42, #e55a00);
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-features-list {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats-mini {
        gap: 30px;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .about-icon-large {
        font-size: 5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* Characters Page Styles */
.characters-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    position: relative;
}

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

.character-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8c42, #ff6b1a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.character-card:hover::before {
    transform: scaleX(1);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.2);
    border-color: rgba(255, 140, 66, 0.4);
}

.character-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    position: relative;
    z-index: 2;
}

.character-badge {
    position: absolute;
    top: -5px;
    right: calc(50% - 40px);
    background: #ff8c42;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    border: 3px solid #0d0d0d;
    z-index: 3;
}

.character-info {
    text-align: center;
}

.character-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff8c42;
    margin-bottom: 8px;
}

.character-title {
    font-size: 1rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.character-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.character-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 140, 66, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ff8c42;
    border: 1px solid rgba(255, 140, 66, 0.2);
}

.stat-item i {
    font-size: 0.9rem;
}

/* Responsive Design for Characters */
@media (max-width: 768px) {
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .character-card {
        padding: 20px;
    }
    
    .avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .character-name {
        font-size: 1.3rem;
    }
    
    .character-stats {
        gap: 10px;
    }
    
    .stat-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* 404 Error Page Styles */
.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 8rem;
    font-weight: 900;
    color: #ff8c42;
    text-shadow: 0 0 30px rgba(255, 140, 66, 0.5);
}

.error-icon {
    font-size: 6rem;
    color: #ff6b1a;
    animation: pulse 2s infinite;
}

.error-number {
    display: inline-block;
    animation: bounce 2s infinite;
}

.error-number:nth-child(1) {
    animation-delay: 0s;
}

.error-number:nth-child(3) {
    animation-delay: 0.2s;
}

.error-number:nth-child(4) {
    animation-delay: 0.4s;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.error-suggestions {
    margin-top: 60px;
    text-align: center;
}

.error-suggestions h3 {
    color: #ff8c42;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

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

.suggestion-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 15px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.suggestion-link:hover {
    background: rgba(255, 140, 66, 0.1);
    border-color: #ff8c42;
    color: #ff8c42;
    transform: translateY(-3px);
}

.suggestion-link i {
    font-size: 1.2rem;
}

/* Responsive Design for 404 Page */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-suggestions h3 {
        font-size: 1.3rem;
    }
    
    .suggestion-links {
        gap: 15px;
    }
    
    .suggestion-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-large {
        width: 100%;
        text-align: center;
    }
}
