:root {
    --primary: #8a1c1c;    /* Deep Red */
    --accent: #d4af37;     /* Gold */
    --bg: #fdfbf7;         /* Cream */
    --text: #2c2c2c;       /* Dark Grey */
    --card-bg: #ffffff;
    --success: #28a745;
    --error: #dc3545;
    --font-main: 'Amiri', serif;
}

* {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Grid & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:hover {
    background-color: #6d1515;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text);
}

.btn-accent:hover {
    background-color: #bfa030;
}

/* Navbar */
.navbar {
    background: var(--card-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Progress Bar */
.progress-container {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--accent);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* Shop Product */
.product-price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.file-drop-area {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.file-drop-area:hover {
    border-color: var(--accent);
    background-color: #fafafa;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg) 100%);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.donation-number {
    font-size: 2rem;
    color: var(--text);
    background: white;
    padding: 10px 30px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid var(--accent);
    position: relative;
    user-select: all;
}

.donation-number:active {
    transform: scale(0.98);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    bottom: 40px;
}

/* Splash Screen */
.splash-container {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.splash-logo {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.enter-btn {
    font-size: 1.5rem;
    padding: 15px 50px;
    border: 2px solid var(--accent);
    background: transparent;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
    position: relative;
}

.enter-btn:hover {
    background: var(--accent);
    color: var(--text);
    box-shadow: 0 0 20px var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .donation-number { font-size: 1.5rem; }
}
