/* ============================================================
   index.css — الأنماط الخاصة بصفحة index.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

/* ============================================================
   index.css — الأنماط الخاصة بصفحة index.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

:root {
    --status-completed: #4ade80;
    --status-pending: #f87171;
    --status-progress: #fb923c;
}

[data-theme="light"] {
    --glow-cyan-intense: 0 4px 30px rgba(0, 168, 204, 0.3);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 150px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--teal-accent) 100%);
    opacity: 0.1;
    transform: rotate(-45deg);
}

.hero::before {
    top: 50px;
    left: -150px;
    animation: slideInLeft 1s ease-out;
}

.hero::after {
    bottom: 50px;
    right: -150px;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from { transform: rotate(-45deg) translateX(-100%); opacity: 0; }
    to { transform: rotate(-45deg) translateX(0); opacity: 0.1; }
}

@keyframes slideInRight {
    from { transform: rotate(-45deg) translateX(100%); opacity: 0; }
    to { transform: rotate(-45deg) translateX(0); opacity: 0.1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-logo {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    border-radius: 50%;
    border: 4px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan-intense);
    animation: logoFloat 4s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
    background: var(--bg-card);
    object-fit: cover;
}

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

@keyframes logoGlow {
    from { box-shadow: var(--glow-cyan); }
    to { box-shadow: var(--glow-cyan-intense); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.hero-subtitle-en {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-weight: 500;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-neon);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-cyan-intense);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

/* زر البث وقت ما يكون Spitfire57 يبث (js/live.js يضيف is-live) */
.btn-primary .live-dot { display: none; }

.btn-primary.is-live {
    background: linear-gradient(135deg, #ff3b3b 0%, #e0245e 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.55), 0 0 40px rgba(255, 59, 59, 0.3);
}

.btn-primary.is-live:hover {
    box-shadow: 0 0 30px rgba(255, 59, 59, 0.8), 0 0 60px rgba(255, 59, 59, 0.45);
}

.btn-primary.is-live .play-icon { display: none; }

.btn-primary.is-live .live-dot {
    display: inline-block;
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.btn-primary.is-live .live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
    animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary.is-live .live-dot::after { animation: none; }
}

/* أيقونات الحسابات تحت الأزرار (نفس روابط التذييل من js/layout.js) */
.hero-socials {
    margin-top: 28px;
    justify-content: center;
    gap: 10px;
}

.hero-socials .social-link {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    color: var(--text-muted);
}

.hero-socials .social-link svg {
    width: 18px;
    height: 18px;
}

.hero-socials .social-link:hover {
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    color: var(--neon-cyan);
    opacity: 0.7;
}

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

section {
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-neon);
    border-radius: 2px;
}

.section-title .accent {
    color: var(--neon-cyan);
    text-shadow: var(--glow-text);
}

.about {
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
}

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

.about-image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-neon);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-text {
    padding: 20px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
}

.about-text .highlight {
    color: var(--neon-cyan);
    font-weight: 600;
}

/* Featured Event Section */

.featured-event {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.featured-event-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 139, 139, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 35px 40px 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.featured-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
    z-index: 0;
    pointer-events: none;
}

.featured-event-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    animation: eventGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.featured-event-card * {
    position: relative;
}

@keyframes eventGlow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10%, 10%); opacity: 1; }
}

@keyframes textPulseGlow {
    from { text-shadow: 0 0 10px rgba(74, 222, 128, 0.4), 0 0 20px rgba(74, 222, 128, 0.2); opacity: 0.85; }
    to { text-shadow: 0 0 25px rgba(74, 222, 128, 0.8), 0 0 40px rgba(74, 222, 128, 0.5); opacity: 1; }
}

.featured-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-neon);
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #000;
    font-weight: 700;
    box-shadow: var(--glow-cyan);
    position: relative;
    z-index: 2;
}

.featured-event-badge svg {
    width: 20px;
    height: 20px;
}

.featured-event-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.featured-event-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.featured-event-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.featured-event-date-main {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.featured-event-date-timezone {
    font-size: 0.95rem;
    color: var(--neon-cyan);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.featured-event-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    direction: ltr;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-text);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    min-width: 90px;
    line-height: 1;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: 10px;
    font-weight: 600;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--neon-cyan);
    align-self: flex-start;
    margin-top: 15px;
    animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.featured-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-neon);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 9999;
    box-shadow: var(--glow-cyan);
    cursor: pointer !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.featured-event-btn * {
    pointer-events: none;
}

.featured-event-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-cyan-intense);
}

.featured-event-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.featured-event-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.featured-event-no-event {
    padding: 20px 0;
}

.featured-event-no-event .featured-event-title {
    color: var(--text-secondary);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.featured-event-no-event .featured-event-description {
    margin-bottom: 0;
}

/* Memories Gallery - Horizontal Slider */

.memories-section {
    margin-top: 60px;
    width: 100%;
}

.memories-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.memories-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-text);
}

.memories-header-line {
    flex: 1;
    max-width: 100px;
    height: 2px;
    background: var(--gradient-neon);
    border-radius: 2px;
}

.memories-slider-wrapper {
    position: relative;
}

.memories-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* أثناء الحركة التلقائية: المحاذاة القسرية والتنعيم يلغيان التحريك اليدوي */

.memories-grid.marquee-on {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.memories-grid::-webkit-scrollbar {
    display: none;
}

.memories-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--border-accent);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.memories-nav-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 212, 255, 0.2);
}

.memories-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.memories-nav-btn svg {
    width: 24px;
    height: 24px;
}

.memories-nav-btn.prev {
    right: -25px;
}

.memories-nav-btn.next {
    left: -25px;
}

.memory-card {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 320px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 139, 139, 0.05) 100%);
    border: 1px solid var(--border-accent);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.memory-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-cyan-intense);
    border-color: var(--neon-cyan);
}

.memory-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.memory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.memory-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.memory-card-content {
    padding: 15px 18px 18px;
}

.memory-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.memory-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--neon-cyan);
}

.memory-card-date svg {
    width: 14px;
    height: 14px;
}

/* Memory Card Footer */

.memory-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Memory Type Badge */

.memory-badge {
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px !important;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.memory-badge.badge-achievement {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.2));
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.memory-badge.badge-memory {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 139, 139, 0.15));
    color: var(--neon-cyan);
    border: 1px solid var(--border-accent);
}

.memory-card:hover .memory-badge.badge-achievement {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.memory-card:hover .memory-badge.badge-memory {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

[data-theme="light"] .memory-badge.badge-achievement {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.25));
    color: #B8860B;
    border-color: rgba(184, 134, 11, 0.4);
}

[data-theme="light"] .memory-badge.badge-memory {
    background: linear-gradient(135deg, rgba(0, 168, 204, 0.15), rgba(0, 139, 139, 0.15));
    color: #007088;
}

.memories-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 15px;
    min-width: 100%;
}

.memories-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.memories-loading-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.memories-scroll-hint {
    display: none;
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.memories-scroll-hint svg {
    width: 20px;
    height: 20px;
    animation: swipeHint 1.5s ease-in-out infinite;
}

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

/* Memory Lightbox */

.memory-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.memory-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.memory-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.memory-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-accent);
    box-shadow: var(--glow-cyan);
    transition: opacity 0.2s ease;
}

.memory-lightbox-caption {
    text-align: center;
    margin-top: 20px;
}

.memory-lightbox-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.memory-lightbox-date {
    color: var(--neon-cyan);
    font-size: 0.95rem;
}

.memory-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-accent);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.memory-lightbox-close:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: rotate(90deg);
}

.memory-lightbox-close svg {
    width: 24px;
    height: 24px;
}

.memory-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-accent);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.memory-lightbox-nav:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 212, 255, 0.15);
}

.memory-lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.memory-lightbox-nav.prev {
    right: 20px;
}

.memory-lightbox-nav.next {
    left: 20px;
}

/* Enhanced Goals Section with Glassmorphism */

.goals {
    background: var(--bg-primary);
}

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

.goals-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 15px;
    color: var(--text-muted);
}

.goals-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.goal-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 139, 139, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border-accent);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-neon);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.goal-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.goal-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1);
}

.goal-card:hover::before {
    opacity: 1;
}

.goal-card:hover::after {
    opacity: 1;
}

.goal-card.clickable {
    cursor: pointer;
}

.goal-card.clickable:hover {
    border-color: var(--neon-cyan);
}

.goal-card-link-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 1.0rem;
    color: var(--neon-cyan);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    position: relative;
    z-index: 1;
}

.goal-card.clickable:hover .goal-card-link-hint {
    opacity: 1;
}

.goal-card-link-hint svg {
    width: 14px;
    height: 14px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.goal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.goal-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    white-space: nowrap;
    flex-shrink: 0;
}

.goal-status.completed {
    background: rgba(74, 222, 128, 0.15);
    color: var(--status-completed);
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.goal-status.in-progress {
    background: rgba(251, 146, 60, 0.15);
    color: var(--status-progress);
    border: 1px solid rgba(251, 146, 60, 0.3);
    box-shadow: 0 0 15px rgba(251, 146, 60, 0.2);
}

.goal-status.pending {
    background: rgba(248, 113, 113, 0.15);
    color: var(--status-pending);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.goal-progress {
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.progress-info .progress-fraction {
    color: var(--text-muted);
}

.progress-info .progress-percent {
    color: var(--neon-cyan);
    font-weight: 600;
}

.progress-bar-container {
    background: var(--bg-tertiary);
    border-radius: 10px;
    height: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

/* Static gradient progress bar - no animation */

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-cyan-bright), var(--teal-accent));
    border-radius: 10px;
    transition: width 1.5s ease-out;
    width: 0%;
}

.challenges {
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.challenge-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    z-index: 2;
}

.challenge-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: var(--glow-cyan);
    background: var(--bg-card-hover);
}

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

.challenge-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.challenge-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-tertiary);
    transition: transform var(--transition-normal);
}

.challenge-card:hover .challenge-card-image img {
    transform: scale(1.05);
}

.challenge-card-content {
    padding: 25px;
}

.challenge-card.charity .challenge-card-image {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.1), rgba(255, 150, 100, 0.1));
}

.challenge-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.challenge-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.charity-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 5px;
}

.events {
    background: var(--bg-primary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.event-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

.event-thumbnail {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    position: relative;
    overflow: hidden;
}

.event-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-card) 100%);
    pointer-events: none;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-tertiary);
    transition: transform var(--transition-normal);
}

.event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

.event-game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    border: 1px solid var(--border-accent);
    z-index: 1;
}

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

.event-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    line-height: 1.7;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-subtle);
}

.event-type {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.event-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.event-link:hover {
    color: var(--neon-cyan);
}

/* Grid Expand Wrapper - Show More/Less */

.grid-expand-wrapper {
    position: relative;
    /* حشو داخلي بهامش سالب مساوٍ له: يوسّع منطقة القص فقط ولا يحرّك البطاقات،
       حتى لا يُقص توهّج البطاقة ولا ارتفاعها عند مرور الماوس عليها */
    padding: 44px;
    margin: -44px;
    overflow: hidden;
    max-height: 5088px;
    transition: max-height 0.6s ease;
}

.grid-expand-wrapper.collapsed {
    max-height: 538px;   /* 450 + 88 من الحشو أعلى وأسفل */
}

.grid-expand-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-secondary));
    pointer-events: none;
    z-index: 2;
}

.events .grid-expand-wrapper.collapsed::after {
    background: linear-gradient(transparent, var(--bg-primary));
}

.goals .grid-expand-wrapper.collapsed::after {
    background: linear-gradient(transparent, var(--bg-primary));
}

.grid-expand-wrapper:not(.collapsed) {
    padding-bottom: 60px;   /* 44 من الحشو + 16 الأصلية */
}

.toggle-grid-btn {
    display: block;
    /* 25px الأصلية + 44px تعويضًا عن الهامش السالب في .grid-expand-wrapper،
       وإلا ارتفع الزر وتداخل مع تدرّج التلاشي أسفل الشبكة */
    margin: 69px auto 0;
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    transition: all var(--transition-normal);
}

.toggle-grid-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

/* Contact Section Styles */

.contact {
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-form-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 139, 139, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-accent);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-neon);
}

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

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), var(--glow-cyan);
}

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

.form-submit {
    width: 100%;
    padding: 16px 32px;
    background: var(--gradient-neon);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--glow-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-cyan-intense);
}

.form-submit:active {
    transform: translateY(0) scale(1);
}

.form-submit svg {
    width: 20px;
    height: 20px;
}

/* Contact Section Social Links */

.contact-social {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-subtle);
}

.contact-social-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    text-shadow: var(--glow-text);
}

.contact-social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-social-link:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.contact-social-link.kick:hover {
    border-color: #53fc18;
    color: #53fc18;
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.4);
}

.contact-social-link.twitch:hover {
    border-color: #9146ff;
    color: #9146ff;
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.4);
}

.contact-social-link.youtube:hover {
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.contact-social-link.tiktok:hover {
    border-color: #ff0050;
    color: #ff0050;
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.4);
}

.contact-social-link.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
    box-shadow: 0 0 15px rgba(228, 64, 95, 0.4);
}

.contact-social-link.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.4);
}

.contact-social-link.discord:hover {
    border-color: #5865f2;
    color: #5865f2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.social-link {
    font-size: 1.2rem;
}

.social-link.kick:hover {
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.4);
}

.social-link.twitch:hover {
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
}

.social-link.youtube:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.social-link.tiktok:hover {
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.4);
}

.social-link.instagram:hover {
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.4);
}

.social-link.twitter:hover {
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.4);
}

.social-link.discord:hover {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.loader-text {
    letter-spacing: normal;
    word-spacing: normal;
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image-frame {
        max-width: 350px;
    }

    .memories-nav-btn {
        width: 40px;
        height: 40px;
    }

    .memories-nav-btn.prev {
        right: -20px;
    }

    .memories-nav-btn.next {
        left: -20px;
    }

    .memory-card {
        min-width: 280px;
    }

    .featured-event-card {
        padding: 30px 25px 25px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 50px;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .hero-socials {
        margin-top: 22px;
        gap: 6px;
        max-width: 320px;
    }

    .hero-socials .social-link {
        width: 36px;
        height: 36px;
    }

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

    section {
        padding: 60px 15px;
    }

    .challenges-grid, .events-grid, .goals-grid {
        grid-template-columns: 1fr;
    }

    /* الهامش الجانبي السالب لازم ما يتجاوز حشو القسم (15px) وإلا طلعت الشبكة برّا الشاشة
       وصار الجوال يسحب يمين ويسار */
    .grid-expand-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .grid-expand-wrapper.collapsed {
        max-height: 400px;
    }

    .contact-form-card {
        padding: 25px;
    }

    .memories-section {
        margin-top: 40px;
    }

    .memories-header h3 {
        font-size: 1.2rem;
    }

    .memories-nav-btn {
        display: none;
    }

    .memories-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .memory-card {
        min-width: 260px;
    }

    .memories-grid {
        padding: 10px 0 15px;
    }

    .memory-lightbox-content {
        max-width: 95%;
    }

    .memory-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .memory-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .memory-lightbox-nav.prev {
        right: 10px;
    }

    .memory-lightbox-nav.next {
        left: 10px;
    }

    .featured-event {
        padding: 30px 15px;
    }

    .featured-event-card {
        padding: 25px 20px 20px;
        border-radius: var(--radius-lg);
    }

    .featured-event-badge {
        font-size: 0.9rem;
        padding: 8px 18px;
    }

    .featured-event-countdown {
        gap: 8px;
        margin-bottom: 20px;
    }

    .countdown-item {
        min-width: 65px;
    }

    .countdown-value {
        font-size: 1.6rem;
        padding: 10px 12px;
        min-width: 65px;
    }

    .countdown-separator {
        font-size: 1.6rem;
        margin-top: 10px;
    }

    .countdown-label {
        font-size: 0.9rem;
    }

    .featured-event-date {
        flex-direction: column;
        gap: 8px;
    }

    .featured-event-date-timezone {
        font-size: 0.85rem;
    }

    .featured-event-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 2px;
    }

    .goal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .memory-card {
        min-width: 240px;
    }

    .memory-card-title {
        font-size: 0.95rem;
    }

    .countdown-value {
        font-size: 1.4rem;
        padding: 8px 10px;
        min-width: 55px;
    }

    .countdown-separator {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.85rem;
    }

    .featured-event-badge {
        font-size: 0.85rem;
        padding: 7px 15px;
        gap: 6px;
    }

    .featured-event-badge svg {
        width: 16px;
        height: 16px;
    }
}

/* Contact Multi-Image Thumbnails Grid */

.contact-upload-slot {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border-accent);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.contact-upload-slot:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.contact-slot-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.contact-slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    pointer-events: none;
}

.contact-slot-icon {
    font-size: 1.5rem;
}

.contact-slot-text {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

.contact-slot-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.contact-slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.contact-slot-remove {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(0, 0, 0, 0.7);
    color: #f87171;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all var(--transition-fast);
}

.contact-slot-remove:hover {
    background: rgba(248, 113, 113, 0.3);
    transform: scale(1.1);
}

.contact-upload-slot.has-image {
    border-style: solid;
    border-color: var(--border-accent);
}

@media (max-width: 480px) {
    .contact-upload-slot {
        width: 80px;
        height: 80px;
    }
}

/* احترام تفضيل "تقليل الحركة" في نظام المستخدم */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
