/* ===== أساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ألوان مبهجة ومليئة بالأمل */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gold-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --cyan-glow: #00d4ff;
    --purple-glow: #a855f7;
    --pink-glow: #ec4899;
    --gold-shine: #fbbf24;
    --neon-blue: #3b82f6;
    
    /* خلفيات */
    --bg-dark: #0f0f23;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* نصوص */
    --text-white: #ffffff;
    --text-light: #e5e7eb;
    --text-gray: #9ca3af;
}

body {
    font-family: 'Segoe UI', 'Cairo', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1e1e3f 50%, #0f0f23 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Header المدمج ===== */
.compact-header {
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.95) 0%, rgba(15, 15, 35, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.header-text {
    flex: 1;
}

.campaign-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    margin-bottom: 3px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.campaign-tagline {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 400;
}

.header-logo {
    flex-shrink: 0;
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #00d4ff 0deg,
        #a855f7 90deg,
        #ec4899 180deg,
        #fbbf24 270deg,
        #00d4ff 360deg
    );
    animation: spinRing 3s linear infinite;
    padding: 3px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(15, 15, 35, 0.95);
    border-radius: 50%;
}

.header-logo img {
    height: 50px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    animation: float 3s ease-in-out infinite;
}

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

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Ticker ===== */
.ticker-banner {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.ticker-wrapper {
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== Slideshow ===== */
.hero-slideshow {
    position: relative;
    margin: 0;
    padding: 20px;
}

.slideshow-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 35, 0.4) 100%);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 20px 0 15px;
    position: relative;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4)); }
    50% { filter: drop-shadow(0 0 35px rgba(0, 212, 255, 0.6)); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.gradient-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 15px 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2), 
                0 0 60px rgba(168, 85, 247, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gradient-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3),
                0 0 80px rgba(168, 85, 247, 0.2);
}

.stat-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

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

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    margin: 8px 0;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
    direction: ltr;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
}

.btn-view-donors {
    margin-top: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

.btn-view-donors:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

/* ===== Donors Modal ===== */
.donors-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.donors-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 600px;
    max-height: 80vh;
    margin: 5vh auto;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

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

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

.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(245, 101, 101, 0.3);
    border-color: #f56565;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px 30px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

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

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
}

.donor-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.donor-list-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateX(5px);
}

.donor-name {
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 500;
}

.donor-amount {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.no-donors {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===== Verse Section ===== */
.verse-section {
    padding: 15px 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.05) 50%, 
        transparent 100%);
}

.verse-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
    position: relative;
}

.verse-decoration {
    font-size: 1.5rem;
    margin-bottom: 8px;
    animation: twinkle 2s ease-in-out infinite;
}

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

.verse-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0;
    color: var(--text-white);
    font-weight: 600;
}

.verse-ref {
    font-size: 0.85rem;
    color: var(--gold-shine);
    margin-top: 8px;
    font-style: italic;
}

.divider-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-glow), transparent);
    margin: 12px auto;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.hadith-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 10px 0;
    font-style: italic;
}

.hadith-ref {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ===== Payment Section ===== */
.payment-section {
    padding: 15px 0 25px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-method-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.payment-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.payment-type-icon {
    font-size: 1.8rem;
}

.payment-method-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    flex: 1;
}

.payment-method-details {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
    word-break: break-word;
    direction: ltr;
    text-align: left;
}

.btn-copy {
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.payment-tabs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.payment-tab {
    padding: 15px 35px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.payment-tab:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.payment-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.tab-icon {
    font-size: 1.3rem;
}

.payment-panels {
    max-width: 900px;
    margin: 0 auto;
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.payment-list {
    display: grid;
    gap: 20px;
}

.payment-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.payment-item:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.payment-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cyan-glow);
}

.payment-details {
    font-size: 1.05rem;
    color: var(--text-light);
    direction: ltr;
}

.btn-copy {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.loading-text {
    text-align: center;
    color: var(--text-gray);
    padding: 40px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 35, 0.9) 100%);
    padding: 40px 0;
    text-align: right;
    direction: rtl;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    margin-top: 60px;
}

.footer-quote {
    font-size: 1.3rem;
    color: var(--gold-shine);
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.footer-copy {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-copy a {
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
    color: var(--text-white);
}

.footer-credit {
    color: rgba(229, 231, 235, 0.7);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-meta {
    margin-top: 14px;
    text-align: right;
    direction: rtl;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .compact-header {
        padding: 12px 15px;
    }
    
    .campaign-name {
        font-size: 1.2rem;
    }
    
    .campaign-tagline {
        font-size: 0.85rem;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .hero-slideshow {
        padding: 15px;
    }
    
    .slideshow-box {
        max-width: 500px;
        height: 220px;
    }
    
    .stats-section {
        padding: 15px 0 10px;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .verse-text {
        font-size: 1.4rem;
    }
    
    .hadith-text {
        font-size: 1.2rem;
    }
    
    .payment-tab {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .payment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Donors Modal Mobile */
    .donors-modal .modal-content {
        padding: 20px;
        max-width: 95%;
        margin: 2vh auto;
    }
    
    .donors-modal .modal-header {
        padding: 20px;
    }
    
    .donors-modal .modal-header h3 {
        font-size: 1.5rem !important;
    }
    
    .donors-modal .modal-body {
        padding: 20px;
    }
    
    .donors-modal .donor-list-item {
        padding: 18px 15px;
        margin-bottom: 12px;
        gap: 15px;
    }
    
    .donors-modal .donor-name {
        font-size: 1.05rem !important;
        flex: 1;
        text-align: right;
    }
    
    .donors-modal .donor-amount {
        font-size: 1.15rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .campaign-name {
        font-size: 1.1rem;
    }
    
    .header-logo {
        width: 55px;
        height: 55px;
    }
    
    .header-logo img {
        height: 35px;
    }
    
    .hero-slideshow {
        padding: 10px;
    }
    
    .slideshow-box {
        max-width: 100%;
        height: 160px;
    }
    
    .stats-section {
        padding: 12px 0 8px;
    }
    
    .section-heading {
        font-size: 1.3rem;
    }
    
    .gradient-card {
        padding: 12px 10px;
    }
    
    .stat-icon {
        font-size: 1.6rem;
        margin-bottom: 4px;
    }
    
    .stat-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
        gap: 6px;
    }
    
    .stat-icon {
        font-size: 1.2rem;
    }
    
    .stat-card h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin: 6px 0;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    
    .btn-view-donors {
        padding: 6px 16px;
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .verse-section {
        padding: 10px 0;
    }
    
    .verse-box {
        padding: 15px 15px;
    }
    
    .verse-decoration {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .verse-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 8px 0;
    }
    
    .verse-ref {
        font-size: 0.7rem;
        margin-top: 6px;
    }
    
    .divider-line {
        width: 60px;
        margin: 8px auto;
    }
    
    .hadith-text {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 8px 0;
    }
    
    .hadith-ref {
        font-size: 0.65rem;
    }
    
    .payment-section {
        padding: 10px 0 20px;
    }
    
    /* Donors Modal Small Mobile */
    .donors-modal .modal-content {
        padding: 18px;
        max-width: 96%;
        margin: 2vh auto;
    }
    
    .donors-modal .modal-header {
        padding: 18px;
    }
    
    .donors-modal .modal-header h3 {
        font-size: 1.3rem !important;
    }
    
    .donors-modal .modal-body {
        padding: 18px;
    }
    
    .donors-modal .donor-list-item {
        padding: 16px 13px;
        margin-bottom: 10px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .donors-modal .donor-name {
        font-size: 0.95rem !important;
        flex: 1;
        text-align: right;
        word-break: break-word;
    }
    
    .donors-modal .donor-amount {
        font-size: 1rem !important;
        white-space: nowrap;
        font-weight: 800;
    }
}

/* ===== Admin Styles (existing) ===== */
.admin-page {
    background: linear-gradient(135deg, #0f0f23 0%, #1e1e3f 100%);
    min-height: 100vh;
}

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    max-width: 450px;
    width: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text {
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-gray);
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.login-card input {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.login-card input:focus {
    outline: none;
    border-color: var(--cyan-glow);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-login {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* Admin Panel Styles */
.admin-header {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.98) 0%, rgba(25, 25, 55, 0.98) 100%);
    backdrop-filter: blur(15px);
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-logout {
    padding: 12px 28px;
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 101, 101, 0.6);
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
}

.admin-tabs {
    display: flex;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(25, 25, 55, 0.95) 100%);
    overflow-x: auto;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-tab {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 30px;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.4s ease;
    white-space: nowrap;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

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

.admin-tab:hover::before {
    left: 100%;
}

.admin-tab:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.admin-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 10%;
    left: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    border-radius: 3px 3px 0 0;
}

.admin-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: slideIn 0.5s ease;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 25px;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    border-right: 4px solid var(--cyan-glow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.panel-header h2 {
    color: var(--text-white);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.btn-primary {
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, #7c8ff0 0%, #8b5fc7 100%);
}

.donors-table {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow-x: auto;
    position: relative;
}

.donors-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), var(--neon-blue), transparent);
    border-radius: 20px 20px 0 0;
}

.donors-table::-webkit-scrollbar {
    height: 8px;
}

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

.donors-table::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--cyan-glow), var(--neon-blue));
    border-radius: 10px;
}

.donors-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
}

.donors-table table {
    width: 100%;
    background: transparent;
    border-collapse: collapse;
    border-radius: 16px;
}

.donors-table table th,
.donors-table table td {
    padding: 18px 20px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.donors-table thead tr {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.donors-table th {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 22px 25px;
}

.donors-table th:first-child {
    border-radius: 0 16px 0 0;
}

.donors-table th:last-child {
    border-radius: 16px 0 0 0;
}

.donors-table thead tr::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 5%;
    left: 5%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), var(--neon-blue), transparent);
    box-shadow: 0 0 15px var(--cyan-glow);
    border-radius: 3px;
}

.donors-table tbody tr {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.donors-table tbody tr:nth-child(even) {
    background: rgba(102, 126, 234, 0.05);
}

.donors-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.1) !important;
}

.donors-table tbody tr:last-child td {
    border-bottom: none;
}

.donors-table table td {
    color: var(--text-light);
    font-size: 1rem;
}

.donors-table table th:nth-child(1),
.donors-table table td:nth-child(1) {
    width: 80px;
}

.donors-table table th:nth-child(2),
.donors-table table td:nth-child(2) {
    width: auto;
}

.donors-table table th:nth-child(4),
.donors-table table td:nth-child(4) {
    width: 150px;
}

.donors-table table th:nth-child(5),
.donors-table table td:nth-child(5) {
    width: 220px;
}

.donors-table table td:nth-child(5) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

#payment-methods .donors-table table th:nth-child(4),
#payment-methods .donors-table table td:nth-child(4) {
    width: auto;
    min-width: 260px;
}

.donors-table table td:first-child {
    font-weight: 700;
    color: var(--cyan-glow);
    font-size: 1.1rem;
}

.donors-table table td:nth-child(2) {
    font-weight: 600;
    color: var(--text-white);
    font-size: 1.05rem;
}

.donors-table table td:nth-child(3) {
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.1rem;
}

.donors-table table td:nth-child(5) button {
    margin: 0;
}

/* Payment methods table tweaks */
#payment-methods .donors-table table td {
    vertical-align: top;
}

#payment-methods .donors-table table td:nth-child(4) {
    direction: ltr;
    text-align: left;
    padding-left: 12px;
}

#payment-methods .donors-table table td:nth-child(5) {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

#payment-methods .donors-table table td:nth-child(5) button {
    margin: 0;
}

.payment-contact {
    display: inline-block;
    direction: ltr;
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.3;
    scrollbar-width: thin;
}

.payment-contact::-webkit-scrollbar {
    height: 6px;
}

.btn-delete {
    padding: 10px 24px;
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.2);
    min-width: 80px;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.5);
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
}

.btn-edit {
    padding: 10px 24px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(251, 146, 60, 0.25);
    min-width: 80px;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 146, 60, 0.4);
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-glow);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    color: var(--text-white);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.5);
}

.settings-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.settings-card h3 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.image-preview {
    max-width: 250px;
    margin-top: 15px;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Display Page Styles */
.display-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 55%),
                radial-gradient(circle at bottom, rgba(168, 85, 247, 0.2), transparent 60%),
                linear-gradient(135deg, #0d1026 0%, #131b3a 45%, #0c0f24 100%);
    color: var(--text-white);
    position: relative;
    overflow-x: hidden;
}

.display-sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sun-orbit,
.moon-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sun-orbit {
    top: -140px;
    left: -140px;
    width: 420px;
    height: 420px;
    box-shadow: 0 0 80px rgba(255, 204, 0, 0.35);
    animation: rotateSlow 24s linear infinite;
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9), rgba(255, 140, 0, 0.4));
    box-shadow: 0 0 120px rgba(255, 196, 0, 0.6);
    animation: pulseGlow 8s ease-in-out infinite;
}

.moon-orbit {
    top: 80px;
    right: -160px;
    width: 320px;
    height: 320px;
    animation: rotateSlow 30s linear infinite reverse;
}

.moon-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173, 216, 230, 0.85), rgba(59, 130, 246, 0.25));
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.4);
}

.star-field {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.45), transparent),
                      radial-gradient(2px 2px at 60% 40%, rgba(255, 255, 255, 0.35), transparent),
                      radial-gradient(2px 2px at 80% 70%, rgba(255, 255, 255, 0.4), transparent),
                      radial-gradient(2px 2px at 30% 80%, rgba(255, 255, 255, 0.3), transparent);
    animation: twinkleField 6s ease-in-out infinite;
    opacity: 0.6;
}

.display-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}

.display-header {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 35px;
}

.display-marquee {
    flex: 1 1 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35), rgba(168, 85, 247, 0.35));
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 22px;
    padding: 16px 70px 16px 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}
.btn-fullscreen {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(26, 34, 70, 0.8);
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.btn-fullscreen:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 14px 30px rgba(0, 212, 255, 0.35);
}

.btn-fullscreen:active {
    transform: translateY(-50%) scale(0.95);
}

.display-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 60%);
    mix-blend-mode: screen;
    animation: tickerShine 8s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    animation: tickerMove 24s linear infinite;
    padding-right: 100%;
    position: relative;
    z-index: 1;
}

.display-main {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.25fr) minmax(260px, 1fr);
    gap: 25px;
    align-items: stretch;
}

.donor-column {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 24px;
    padding: 25px 22px 30px;
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.donor-column::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 65%);
    opacity: 0.6;
    transform: rotate(25deg);
}

.column-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.column-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.18);
    color: var(--cyan-glow);
    font-size: 1.4rem;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.25);
}

.column-heading h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
}

.donor-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 520px;
    overflow: hidden;
}

.donor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.donor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 212, 255, 0.25);
}

.donor-item .donor-name {
    font-size: 1.05rem;
    color: var(--text-white);
    font-weight: 600;
    margin-left: 12px;
}

.donor-item .donor-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan-glow);
}

.display-center {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 18, 44, 0.92), rgba(27, 36, 80, 0.96));
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 28px;
    padding: 35px 30px 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    backdrop-filter: blur(22px);
}

.center-orbit {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.22), transparent 65%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.22), transparent 70%);
    animation: slowDrift 12s ease-in-out infinite;
    opacity: 0.8;
}

.center-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.center-logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: logoTextGlow 3.2s ease-in-out infinite;
}

.logo-text-left,
.logo-text-right {
    letter-spacing: 1px;
}

.center-logo-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.center-logo-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    animation: rotateSlow 18s linear infinite;
}

.center-logo {
    width: 88px;
    filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.45));
    animation: floatSlow 6s ease-in-out infinite;
}

.center-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.center-stat {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.center-stat::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 70%);
}

.center-stat::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
}

.center-stat .stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.center-stat .stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(34, 211, 238, 0.45);
}

.center-message {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(102, 126, 234, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.display-footer {
    margin-top: 45px;
    display: flex;
    justify-content: center;
}

.footer-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 18px;
    padding: 18px 28px;
    text-align: right;
    direction: rtl;
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.footer-card p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-note {
    color: var(--text-light);
    font-size: 0.95rem;
}

.floating-emoji {
    position: fixed;
    z-index: 2;
    font-size: 2.3rem;
    opacity: 0.7;
    animation: floatUp 10s ease-in-out infinite;
    pointer-events: none;
}

.emoji-one {
    left: 8%;
    bottom: 12%;
    animation-delay: 0s;
}

.emoji-two {
    right: 12%;
    bottom: 18%;
    animation-delay: 2.5s;
}

.emoji-three {
    left: 50%;
    bottom: 5%;
    animation-delay: 4.5s;
}

@keyframes tickerMove {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

@keyframes tickerShine {
    0% { transform: translateX(-60%); opacity: 0; }
    50% { transform: translateX(0); opacity: 0.5; }
    100% { transform: translateX(60%); opacity: 0; }
}

@keyframes logoTextGlow {
    0%, 100% {
        color: #ffffff;
        text-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
    }
    50% {
        color: #fbbf24;
        text-shadow: 0 0 24px rgba(251, 191, 36, 0.6);
    }
}

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

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.9); opacity: 0.5; }
    50% { transform: translateY(-25px) scale(1.05); opacity: 0.85; }
    100% { transform: translateY(0) scale(0.9); opacity: 0.5; }
}

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

@keyframes pulseGlow {
    0%, 100% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

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

@keyframes twinkleField {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@media (max-width: 1100px) {
    .display-main {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .display-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .display-wrapper {
        padding: 30px 18px 60px;
    }

    .display-marquee {
        padding: 16px 18px;
    }

    .marquee-track {
        font-size: 1rem;
    }

    .center-logo-group {
        flex-direction: column;
        gap: 12px;
        white-space: normal;
    }

    .donor-item {
        padding: 12px 14px;
    }

    .center-stat .stat-number {
        font-size: 2rem;
    }

    .floating-emoji {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .center-message {
        font-size: 0.95rem;
    }

    .footer-card {
        width: 100%;
        padding: 16px 18px;
    }
}

/* ===== Admin Modal Styles ===== */
.admin-page .modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-page .modal.active {
    display: flex !important;
}

.admin-page .modal-content {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.98) 0%, rgba(30, 30, 63, 0.98) 100%);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.admin-page .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-page .modal-close:hover {
    background: rgba(255, 59, 59, 0.3);
    border-color: #ff3b3b;
    transform: rotate(90deg);
}

.admin-page .modal h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.admin-page .form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-page .form-group input,
.admin-page .form-group select,
.admin-page .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-page .form-group input:focus,
.admin-page .form-group select:focus,
.admin-page .form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-glow);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.admin-page .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.admin-page .btn-primary,
.admin-page .btn-secondary {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.admin-page .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.admin-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.admin-page .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Admin Mobile Responsive ===== */
@media (max-width: 768px) {
    .admin-header {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .btn-logout {
        font-size: 0.9rem;
        padding: 8px 15px;
        white-space: nowrap;
    }
    
    .admin-tabs {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .admin-tab {
        width: 100%;
        font-size: 0.95rem;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 20px 15px;
    }
    
    .panel-header h2 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .admin-content {
        padding: 15px;
    }
    
    .donors-table {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    /* Hide table headers on mobile */
    .donors-table thead {
        display: none;
    }
    
    /* Card-based layout for mobile */
    .donors-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .donors-table tr {
        display: block;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
        border: 1px solid rgba(102, 126, 234, 0.2);
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 0;
        width: 100%;
        transition: all 0.3s ease;
    }
    
    .donors-table tr:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
        border-color: rgba(0, 212, 255, 0.4);
        transform: translateY(-2px);
    }
    
    .donors-table td {
        display: block;
        padding: 4px 0;
        border: none;
        font-size: 0.95rem;
        text-align: center;
        color: var(--text-white);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .donors-table td::before {
        display: none !important;
    }
    
    /* Hide number for payment methods only */
    #payment-methods .donors-table td:nth-child(1) {
        display: none !important;
    }
    
    /* Number styling for donors */
    #donors-usd .donors-table td:nth-child(1),
    #donors-try .donors-table td:nth-child(1) {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--cyan-glow);
        margin-bottom: 6px;
    }
    
    /* Name/Title styling */
    .donors-table td:nth-child(2) {
        word-break: break-word;
        font-size: 1rem;
        font-weight: 600;
        margin: 6px 0;
        line-height: 1.3;
    }
    
    /* Amount/Info styling */
    .donors-table td:nth-child(3) {
        font-size: 1.1rem;
        font-weight: 700;
        color: #fbbf24;
        margin: 8px 0;
        direction: ltr;
        word-break: normal;
        overflow-wrap: anywhere;
        line-height: 1.4;
    }
    
    /* Date/Account Info */
    .donors-table td:nth-child(4) {
        font-size: 0.85rem;
        color: var(--text-light);
        margin: 6px 0;
        word-break: normal;
        overflow-wrap: anywhere;
        line-height: 1.4;
        direction: ltr;
    }
    
    .donors-table td:nth-child(5) {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
        flex-wrap: nowrap;
    }
    
    .btn-edit,
    .btn-delete {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 0;
        display: inline-block;
        min-width: 70px;
        flex: 1 1 auto;
        max-width: 100px;
    }
    
    .admin-page .modal {
        padding: 10px;
    }
    
    .admin-page .modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .admin-page .modal h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .admin-page .form-group label {
        font-size: 1rem;
    }
    
    .admin-page .form-group input,
    .admin-page .form-group select,
    .admin-page .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .admin-page .form-actions {
        flex-direction: column;
    }
    
    .admin-page .btn-primary,
    .admin-page .btn-secondary {
        padding: 12px;
        font-size: 1rem;
    }
    
    .login-card {
        padding: 35px 25px;
    }
    
    .login-card h2 {
        font-size: 1.8rem;
    }
    
    .login-card input {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* ===== Admin Responsive Tables ===== */
@media screen and (max-width: 768px) {
    .donors-table {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        overflow-x: visible;
    }

    .donors-table table {
        border-collapse: separate;
        border-spacing: 0 15px;
        min-width: 100%;
        box-shadow: none;
    }

    .donors-table thead {
        display: none; /* Hide table headers on mobile */
    }

    .donors-table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        border: 1px solid rgba(102, 126, 234, 0.2);
        padding: 15px;
    }
    
    .donors-table tbody tr:hover {
        background: rgba(0, 212, 255, 0.1) !important;
        transform: translateY(-3px);
        border-color: rgba(0, 212, 255, 0.4);
    }

    .donors-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 10px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        font-size: 0.95rem;
    }
    
    .donors-table td:last-child {
        border-bottom: none;
    }

    .donors-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--cyan-glow);
        white-space: nowrap;
        padding-left: 15px;
    }

    .donors-table td:nth-child(1)::before,
    .donors-table td:nth-child(5)::before {
        display: none; /* Hide label for # and actions */
    }

    /* Center align # */
    .donors-table td:nth-child(1) {
        justify-content: center;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--cyan-glow);
        padding-bottom: 10px;
    }

    /* Actions buttons */
    .donors-table td:nth-child(5) {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding-top: 15px;
    }

    .donors-table td:nth-child(5) button {
        flex: 1;
        margin: 0;
    }

    #payment-methods .donors-table tbody tr {
        padding: 12px 14px;
    }

    #payment-methods .donors-table td {
        justify-content: flex-start;
        align-items: flex-start;
        gap: 6px;
        padding: 6px 0;
    }

    #payment-methods .donors-table td::before {
        padding-left: 0;
        margin-bottom: 2px;
    }

    #payment-methods .donors-table td:nth-child(2),
    #payment-methods .donors-table td:nth-child(3) {
        margin: 4px 0;
        line-height: 1.3;
    }

    #payment-methods .donors-table td:nth-child(4) {
        margin: 4px 0;
        line-height: 1.25;
        white-space: nowrap;
        overflow-x: auto;
        width: 100%;
    }

    #payment-methods .donors-table td:nth-child(4)::-webkit-scrollbar {
        height: 6px;
    }

    #payment-methods .donors-table td:nth-child(1) {
        justify-content: center;
    }
}
