:root {
    --bg-color: #17181c;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --gold: #dfb94a;
    --gold-light: #f7e6ad;
    --gold-dark: #b28a2a;
    --card-bg: rgba(38, 40, 46, 0.75);
    --card-border: rgba(223, 185, 74, 0.3);
    --font-ui: 'Cairo', sans-serif;
    --font-arabic: 'Amiri', serif;
}


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

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

::selection {
    background: var(--gold);
    color: var(--bg-color);
}

/* Typography styles */
.subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name {
    font-family: var(--font-arabic);
    font-size: 4rem;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section-title {
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Background elements for depth */
.hero {
    position: relative;
    padding: 6rem 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, rgba(3, 3, 3, 1) 70%);
    z-index: -1;
}

.hero-content {
    background: rgba(0,0,0,0.4);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(5px);
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section {
    margin-bottom: 5rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Dua Cards */
.dua-cards {
    display: grid;
    gap: 1.5rem;
}

.dua-card p {
    font-family: var(--font-arabic);
    font-size: 1.6rem;
    line-height: 2;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Tasbeeh */
.tasbeeh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
.tasbeeh-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: radial-gradient(circle at top, rgba(35,35,40,0.9), rgba(10,10,10,0.8));
    border: 1px solid var(--gold);
    padding: 3.5rem 1.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.tasbeeh-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: var(--gold);
    filter: blur(100px);
    opacity: 0.2;
}

.counter-display {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--gold-light);
    font-family: 'Cairo', sans-serif;
    min-width: 150px;
    text-align: center;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.gold-btn {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 1.2rem 4rem;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-arabic);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gold-btn:active {
    transform: scale(0.92);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.gold-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.tasbeeh-info {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.tasbeeh-info span {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.goal-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
}

.goal-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.goal-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Donation Hub */
.alert-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--gold-light);
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.alert-box i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.highlight {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    background: rgba(212, 175, 55, 0.2);
    padding: 0 0.3rem;
    border-radius: 4px;
}

.donation-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.donation-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1rem;
}

.provider-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-header h4 { 
    font-size: 1.4rem; 
    font-weight: 700; 
    font-family: var(--font-ui);
}

.copy-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.copy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.5);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 600px) {
    .copy-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .copy-item > * {
        margin-bottom: 0.5rem;
    }
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

.copy-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
}

.copy-value {
    color: #fff;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.2rem;
    flex: 2;
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-weight: 600;
}

.copy-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
}

.copy-btn.copied {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gold);
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #020202;
}

/* Animations removed per request to make everything instantly visible */
.fade-in {
    opacity: 1;
}

@media (max-width: 600px) {
    .name { font-size: 3rem; }
    .hero { min-height: 50vh; }
    .hero-content { padding: 2rem 1.5rem; width: 90%; }
    .counter-display { font-size: 3.5rem; }
    .gold-btn { padding: 1rem 3rem; font-size: 1.4rem; }
    .section-title { font-size: 1.6rem; }
    .dua-card p { font-size: 1.3rem; }
    .modal-content { padding: 1.5rem; }
}

/* Khatma Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #17181c;
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(212,175,55,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 8px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--gold);
}

.modal-btn {
    padding: 1rem 2rem;
    font-size: 1.3rem;
    width: 100%;
    text-align: center;
    display: block;
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #555;
    border-color: #777;
    box-shadow: none;
    color: #999;
}

.input-field:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(212,175,55,0.3);
}

#btn-khatma:hover {
    transform: scale(1.05);
}
