/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, input[type="button"], input[type="submit"] {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Button Font Fix */
.btn, .btn-submit, .btn-donate-primary, .btn-hero-donate, .btn-donate-sticky, .mobile-donate-btn, .share-btn, .custom-dialog-btn, .partner-link {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Universal button font fix - ensures all buttons use Vazir font */
button {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

input[type="submit"],
input[type="button"],
input[type="reset"] {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

:root {
    --primary-purple: #B694FC;
    --donate-orange: #B04B03;
    --primary-orange: #FEB463;
    --light-bg: #ffffff;
    --light-secondary: #f8f9fa;
    --light-card: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light-gray: #999999;
    --border-color: #e0e0e0;
    --success: #25D366;
    --child-unit: 500000;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    font-weight: 400;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.header-content > .logo {
    grid-column: 1;
}

.header-content > .nav {
    grid-column: 2;
}

.header-content > .header-partner-logos {
    grid-column: 3;
}

.header-partner-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    padding: 0;
    margin: 0;
}

.header-partner-img {
    height: 80px;
    width: auto;
    max-height: none;
    object-fit: contain;
    vertical-align: middle;
    display: block;
}

.header-partner-img-schoolmackers {
    height: 72px;
    border-radius: 6px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.nav {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.header-stats {
    display: none;
}

.live-total {
    color: var(--donate-orange);
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-donate-sticky {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-donate-sticky:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(182, 148, 252, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--light-secondary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-secondary);
    z-index: -1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-purple);
    opacity: 0.08;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-orange);
    opacity: 0.08;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-purple);
    opacity: 0.06;
    bottom: 10%;
    left: -5%;
    animation-delay: 1s;
}

.hero-shape-4 {
    width: 180px;
    height: 180px;
    background: var(--primary-orange);
    opacity: 0.08;
    top: 30%;
    left: 10%;
    animation-delay: 3s;
}

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

.hero-content {
    text-align: center;
    z-index: 1;
    width: 100%;
    position: relative;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-text-section {
    text-align: right;
}

.hero-visual-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    border-radius: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 10px 40px rgba(182, 148, 252, 0.2);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.hero-feature-item:hover {
    border-color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(182, 148, 252, 0.2);
}

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

.neshat-text {
    color: #D09B29;
    font-weight: 600;
}

.bankido-text {
    color: var(--primary-purple);
    font-weight: 700;
}

.jahesh-text {
    color: #33125D;
    font-weight: 600;
}

.partner-highlight {
    color: var(--primary-purple);
    font-weight: 700;
}

.hero-partners-badge {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.partner-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid var(--primary-purple);
    box-shadow: 0 2px 10px rgba(182, 148, 252, 0.2);
    transition: all 0.3s;
}

.partner-badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(182, 148, 252, 0.3);
    border-color: var(--primary-orange);
}

.partner-badge-icon {
    font-size: 1.5rem;
}

.partner-badge-name {
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 1rem;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.illustration-circle {
    position: absolute;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-purple);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: var(--primary-orange);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-purple);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.illustration-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: white;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(182, 148, 252, 0.3);
    border: 4px solid var(--primary-purple);
    animation: float 4s ease-in-out infinite;
}

.illustration-icon {
    font-size: 5rem;
    margin-bottom: 0.5rem;
}

.illustration-stars {
    display: flex;
    gap: 0.25rem;
}

.illustration-stars .star {
    font-size: 1.2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.illustration-stars .star:nth-child(2) {
    animation-delay: 0.5s;
}

.illustration-stars .star:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary-purple);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    box-shadow: 0 4px 15px rgba(182, 148, 252, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    color: var(--primary-orange);
    position: relative;
    display: inline-block;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    right: 0;
    height: 0.3em;
    background: var(--primary-purple);
    opacity: 0.2;
    border-radius: 2px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-box-1::before {
    background: var(--primary-purple);
}

.stat-box-2::before {
    background: var(--donate-orange);
}

.stat-box-3::before {
    background: var(--primary-purple);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(182, 148, 252, 0.2);
    border-color: var(--primary-purple);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

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

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--donate-orange);
    margin-bottom: 0.4rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Hero Progress Section */
.hero-progress-section {
    margin: 2.5rem 0;
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-progress-section .progress-section {
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.progress-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    text-align: center;
}

.hero-progress-section .progress-bar-container {
    margin-top: 1rem;
}

.hero-progress-section .progress-bar {
    width: 100%;
    height: 25px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-progress-section .progress-fill {
    height: 100%;
    background: var(--primary-purple);
    border-radius: 15px;
    transition: width 1s ease;
    width: 0%;
}

.hero-progress-section .progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
}

.hero-stats-section {
    padding: 2rem 0;
    background: var(--light-bg);
}

.last-donation {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 1rem;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.hero-cta {
    text-align: center;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease 1.4s both;
}

.btn-hero-donate {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(182, 148, 252, 0.3);
}

.btn-hero-donate:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(182, 148, 252, 0.4);
}

.btn-hero-donate:active {
    transform: translateY(-1px);
}

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

/* Neshat Card Section */
.neshat-card-section {
    padding: 4rem 0;
    background: var(--light-secondary);
}

.neshat-card-content {
    max-width: 1200px;
    margin: 0 auto;
}

.neshat-intro {
    margin-bottom: 3rem;
}

.neshat-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
    text-align: justify;
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.neshat-note {
    background: var(--primary-purple);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.8;
    text-align: right;
    box-shadow: 0 4px 15px rgba(182, 148, 252, 0.3);
}

.neshat-note strong {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.neshat-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.neshat-detail-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: right;
}

.neshat-detail-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(182, 148, 252, 0.25);
}

.detail-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.neshat-detail-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    text-align: center;
}

.neshat-detail-card:nth-child(2) h3 {
    color: var(--primary-orange);
}

.neshat-detail-card:nth-child(3) h3 {
    color: var(--primary-purple);
}

.neshat-detail-card p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-gray);
    text-align: justify;
}

.neshat-detail-card p strong {
    color: var(--primary-purple);
    font-weight: 700;
}

.neshat-goal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 4px 20px rgba(254, 180, 99, 0.2);
    margin-top: 3rem;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.neshat-goal h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.neshat-goal {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.neshat-goal p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

/* Bankido Stats Section */
.bankido-stats-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.stats-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.bankido-stat-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bankido-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bankido-stat-card:nth-child(2)::before {
    background: var(--primary-orange);
}

.bankido-stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(182, 148, 252, 0.25);
}

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

.bankido-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.bankido-stat-card .stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    order: 1;
}

.bankido-stat-card .stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-purple);
    line-height: 1;
    margin: auto 0;
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bankido-stat-card:nth-child(2) .stat-value {
    color: var(--donate-orange);
}

.bankido-stat-card .stat-live-badge {
    order: 3;
    margin-top: auto;
}

.stat-live-badge {
    display: inline-block;
    background: var(--primary-purple);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    padding-right: 1.5rem;
}

.stat-live-badge::before {
    content: '●';
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

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

.stats-update-info {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.update-icon {
    font-size: 1.2rem;
    animation: spin 3s linear infinite;
}

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

.last-update {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

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

.project-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--border-color);
    background: var(--light-secondary);
}

.project-video:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--light-secondary);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.video-placeholder:hover {
    border-color: var(--primary-purple);
    transform: scale(1.02);
}

.play-icon {
    font-size: 4rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

/* Impact Section */
.impact-section {
    padding: 4rem 0;
    background: var(--light-secondary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-purple);
}

.impact-intro {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.impact-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.impact-description strong {
    color: var(--primary-purple);
    font-weight: 700;
}

.impact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.impact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.impact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(182, 148, 252, 0.2);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.impact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-weight: 700;
}

.impact-card p {
    color: var(--text-gray);
    line-height: 1.9;
    flex: 1;
}

.impact-card p strong {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Impact Partners */
.impact-partners {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.partners-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-purple);
}

.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.partner-item.partner-main {
    border-width: 3px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.partner-item.partner-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 1;
}

.bankido-partner {
    border-color: var(--primary-purple);
    background: linear-gradient(to bottom, rgba(182, 148, 252, 0.05), white);
}

.bankido-partner::before {
    background: var(--primary-purple);
}

.jahad-partner {
    border-color: var(--primary-orange);
    background: linear-gradient(to bottom, rgba(254, 180, 99, 0.05), white);
}

.jahad-partner::before {
    background: var(--primary-orange);
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(182, 148, 252, 0.25);
}

.bankido-partner:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(182, 148, 252, 0.3);
}

.jahad-partner:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(254, 180, 99, 0.3);
}

.partner-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

/* Partners Hero Section */
.partners-hero-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.partners-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-hero-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 900;
}

.highlight-bankido {
    color: var(--primary-purple);
}

.highlight-jahad {
    color: #33125D;
}

.partners-hero-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.partners-hero-description strong {
    color: var(--primary-purple);
    font-weight: 700;
}

.partners-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.partner-hero-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.partner-hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(182, 148, 252, 0.25);
}

.bankido-card {
    border-color: var(--primary-purple);
}

.bankido-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(182, 148, 252, 0.3);
}

.jahad-card {
    border-color: #33125D;
}

.jahad-card:hover {
    border-color: #33125D;
    box-shadow: 0 10px 30px rgba(51, 18, 93, 0.3);
}

.neshat-card {
    border-color: #D09B29;
}

.neshat-card:hover {
    border-color: #D09B29;
    box-shadow: 0 10px 30px rgba(208, 155, 41, 0.3);
}

.partner-hero-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.partner-hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.partner-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.partner-hero-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.bankido-card h3 {
    color: var(--primary-purple);
}

.jahad-card h3 {
    color: #33125D;
}

.neshat-card h3 {
    color: #D09B29;
}

.partner-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.partner-subtitle-small {
    font-size: 0.85rem;
    color: var(--primary-orange);
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
    font-style: italic;
}

.partner-hero-description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    text-align: center;
    flex: 1;
}

.partner-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
}

.feature-badge {
    display: inline-block;
    background: var(--light-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.bankido-card .feature-badge {
    border-color: var(--primary-purple);
}

.bankido-card .feature-badge:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
}

.jahad-card .feature-badge {
    border-color: var(--primary-orange);
}

.jahad-card .feature-badge:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

.neshat-card .feature-badge {
    border-color: #D09B29;
}

.neshat-card .feature-badge:hover {
    background: #D09B29;
    color: white;
    transform: translateY(-2px);
}

.partner-link {
    display: inline-block;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: center;
}

.partner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bankido-card .partner-link {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.bankido-card .partner-link:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.jahad-card .partner-link {
    border-color: #33125D;
    color: #33125D;
}

.jahad-card .partner-link:hover {
    background: #33125D;
    color: white;
    border-color: #33125D;
}

.neshat-card .partner-link {
    border-color: #D09B29;
    color: #D09B29;
}

.neshat-card .partner-link:hover {
    background: #D09B29;
    color: white;
    border-color: #D09B29;
}

.partner-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.partner-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-orange);
    font-weight: 700;
}

.bankido-partner h4 {
    color: var(--primary-purple);
    font-size: 1.5rem;
}

.jahad-partner h4 {
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.partner-item p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* Donation Section */
.donation-section {
    padding: 1rem 0;
    background: var(--light-secondary);
}

.donation-wrapper {
    max-width: 1200px;
    margin: 3rem auto 0;
}

.impact-section .donation-wrapper {
    margin: 4rem auto 0;
    padding: 0;
}

.donation-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.donation-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.donation-emoji {
    font-size: 2.5rem;
    display: block;
    text-align: center;
    margin-top: 1rem;
    animation: emojiBounce 0.5s ease;
    transition: transform 0.3s;
}

.donation-emoji:hover {
    transform: scale(1.2) rotate(10deg);
}

@keyframes emojiBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3) rotate(-10deg);
    }
}

.donation-amounts {
    margin-bottom: 2rem;
}

.step-container {
    padding: 1.5rem;
    background: var(--light-secondary);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

/* مبلغ دلخواه */
.custom-amount-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--light-secondary);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.custom-amount-section label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.custom-amount-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
    transition: all 0.3s;
    box-sizing: border-box;
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(182, 148, 252, 0.3);
}

.custom-amount-input.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.custom-amount-error {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-header label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.step-value {
    background: var(--primary-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    min-width: 150px;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    margin: 2rem 0;
    padding: 0 12px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(182, 148, 252, 0.3);
    border-radius: 5px;
    margin: 1.5rem 0;
}

.slider-track-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: var(--primary-purple);
    border-radius: 5px;
    transition: width 0.3s ease;
    z-index: 1;
}

.slider-track-marks {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.slider-mark {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-purple);
    transform: translate(-50%, -50%);
    top: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amount-slider {
    position: absolute;
    top: 50%;
    left: -12px;
    right: -12px;
    width: calc(100% + 24px);
    height: 8px;
    transform: translateY(-50%) scaleX(-1);
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 3;
    direction: ltr;
}

.amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-purple);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(182, 148, 252, 0.4), 0 2px 8px rgba(182, 148, 252, 0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 4;
    transform: scaleX(-1);
}


.amount-slider::-webkit-slider-thumb:hover {
    transform: scaleX(-1) scale(1.1);
    box-shadow: 0 0 0 4px rgba(182, 148, 252, 0.4), 0 4px 12px rgba(182, 148, 252, 0.5);
}

.amount-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-purple);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(182, 148, 252, 0.4), 0 2px 8px rgba(182, 148, 252, 0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 4;
}

.amount-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(182, 148, 252, 0.4), 0 4px 12px rgba(182, 148, 252, 0.5);
}

.amount-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.amount-slider::-moz-range-track {
    background: transparent;
    border: none;
}


.donation-preview-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: rgba(182, 148, 252, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.donation-preview-text span {
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 1.1rem;
}

.trust-boxes {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-item {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-align: center;
}

.btn-donate-primary {
    width: 100%;
    background: var(--donate-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-donate-primary:hover {
    background: var(--donate-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182, 148, 252, 0.3);
}

.btn-donate-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--light-secondary);
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-orange);
    padding-top: 0.5rem;
}

.modal-summary {
    background: rgba(182, 148, 252, 0.1);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.modal-summary span {
    color: var(--text-dark);
}

.modal-summary strong {
    color: var(--primary-orange);
    font-weight: bold;
}

.donation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--light-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5.7 7.7a1 1 0 0 1 1.4 0L10 10.6l2.9-2.9a1 1 0 1 1 1.4 1.4l-3.6 3.6a1 1 0 0 1-1.4 0L5.7 9.1a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.6rem center;
    padding-left: 2rem;
}

.form-group select:disabled {
    color: #8f8f8f;
    background-color: #f3f3f3;
    cursor: not-allowed;
}

.location-hint {
    margin-top: -0.4rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: #f5f5f5;
    border-right: 4px solid var(--primary-purple);
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-hint {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    padding-right: 1.5rem;
}

.btn-submit {
    background: var(--donate-orange);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
        background: var(--donate-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(182, 148, 252, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(182, 148, 252, 0.3);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background: var(--light-bg);
    border-top: 2px solid var(--border-color);
}

.partners-section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo-item {
    background: white;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    text-decoration: none;
    color: inherit;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(182, 148, 252, 0.2);
}

.partner-logo-image {
    width: 100%;
    max-width: 100px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.partner-logo-item:hover .partner-logo-image {
    filter: grayscale(0%);
}

.partner-logo-name {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: auto;
}

/* Footer */
.footer {
    background: var(--light-secondary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.8;
}

.partner-logos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-logo {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-gray);
    border: 2px solid var(--border-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.partner-logo.partner-logo-main {
    border-width: 3px;
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.partner-logo.partner-logo-main:first-child {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.partner-logo.partner-logo-main:nth-child(2) {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-direction: row;
}

.footer .share-buttons {
    margin-top: 0;
    /* در dir=rtl، flex-start لبهٔ راست سلول است؛ برای چسبیدن به لبهٔ چپ فیزیکی: */
    justify-content: flex-end;
    align-items: flex-start;
    /* جلوگیری از کشش عمودی در گرید فوتر */
    align-self: start;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.share-btn-copy {
    background: var(--primary-purple);
    color: white;
}

.share-btn-copy:hover {
    background: var(--primary-orange);
}

.share-btn-whatsapp {
    background: #25D366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-gray);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

/* Mobile Sticky Donate Bar */
.mobile-donate-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-top: 2px solid var(--primary-purple);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-donate-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-donate-stats {
    flex: 1;
}

.mobile-donate-stats p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0.25rem 0;
}

.mobile-donate-stats strong {
    color: var(--donate-orange);
    font-size: 1.2rem;
    font-weight: bold;
}

.mobile-donate-btn {
    background: var(--donate-orange);
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.mobile-donate-btn:hover {
    background: var(--donate-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: sticky;
    }
    
    .header-content {
        gap: 0.25rem 0.35rem;
    }
    
    .nav {
        display: none;
    }
    
    .header-stats {
        display: none;
    }
    
    .logo-img {
        height: 50px;
        width: auto;
    }

    .header-partner-logos {
        gap: 0.35rem;
    }

    .header-partner-img {
        height: 64px;
        max-height: none;
    }

    .header-partner-img-schoolmackers {
        height: 56px;
    }
    
    .logo-text {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-visual-section {
        order: 1;
    }
    
    .hero-text-section {
        order: 2;
        text-align: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-partners-badge {
        justify-content: center;
    }
    
    .partners-hero-cards {
        grid-template-columns: 1fr;
    }
    
    .partners-hero-title {
        font-size: 2rem;
    }
    
    .partners-hero-cards {
        grid-template-columns: 1fr;
    }
    
    .partners-hero-title {
        font-size: 2rem;
    }
    
    .hero-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-image {
        max-width: 280px;
        width: 100%;
    }
    
    .hero-illustration {
        width: 300px;
        height: 300px;
    }
    
    .circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .circle-3 {
        width: 150px;
        height: 150px;
    }
    
    .illustration-main {
        width: 150px;
        height: 150px;
    }
    
    .illustration-icon {
        font-size: 4rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats-section {
        padding: 1.5rem 0;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 0;
    }

    /* Make first stat box (amount) full width */
    .hero-stats .stat-box-1 {
        grid-column: 1 / -1;
    }

    /* Second and third stat boxes side by side */
    .hero-stats .stat-box-2 {
        grid-column: 1;
    }

    .hero-stats .stat-box-3 {
        grid-column: 2;
    }
    
    .stat-box {
        padding: 1rem 0.5rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .last-donation {
        margin-top: 0.5rem;
    }
    
    .video-section {
        padding-top: 0rem;
        padding-bottom: 1rem;
    }
    
    .hero-shape {
        display: none;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .impact-section {
        padding: 2rem 0;
    }
    
    .impact-intro {
        margin-bottom: 1.5rem;
    }
    
    .neshat-card-section {
        padding: 2rem 0;
    }
    
    .neshat-intro {
        margin-bottom: 1rem;
    }
    
    .bankido-stats-section {
        padding: 2rem 0;
    }
    
    .stats-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .bankido-stats-grid {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    
    .partners-hero-section {
        padding: 2rem 0;
    }
    
    .partners-hero-cards {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .partners-section {
        padding: 2rem 0;
    }
    
    .partners-section-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .donation-wrapper {
        margin: 1.5rem auto 0;
    }
    
    .impact-section .donation-wrapper {
        margin: 2rem auto 0;
    }
    
    .neshat-goal {
        margin-top: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .impact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .impact-intro {
        margin-bottom: 1rem;
    }
    
    .impact-description {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .neshat-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .neshat-description {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .neshat-note {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .neshat-detail-card {
        padding: 2rem 1.5rem;
    }
    
    .neshat-goal {
        padding: 2rem 1.5rem;
    }
    
    .neshat-goal p {
        font-size: 1rem;
        text-align: right;
    }
    
    .partners-list {
        grid-template-columns: 1fr;
    }
    
    .step-container {
        padding: 1.25rem;
    }
    
    .step-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .step-value {
        width: 100%;
        font-size: 1.2rem;
    }
    
    .slider-wrapper {
        margin: 1.5rem 0;
    }
    
    .slider-mark {
        width: 10px;
        height: 10px;
    }
    
    .amount-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .amount-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
    
    .trust-boxes {
        flex-direction: column;
    }
    
    .mobile-donate-bar {
        display: block;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .footer .share-buttons {
        justify-content: flex-start;
    }
    
    .share-btn {
        width: 100%;
    }
    
    .donation-section {
        padding-bottom: 2rem;
    }
    
    .modal-content {
        padding: 1.25rem;
        max-width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .partner-logo-item {
        padding: 0;
        min-height: auto;
    }
    
    .partner-logo-image {
        max-width: 100px;
        max-height: 60px;
    }
    
    .partner-logo-name {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 35px;
        width: auto;
    }

    .header-partner-img {
        height: 52px;
        max-height: none;
    }

    .header-partner-img-schoolmackers {
        height: 46px;
    }
    
    .logo-text {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .donation-card {
        padding: 2rem 1.5rem;
    }
}

/* Persian Number Formatting */
.persian-number {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
    display: inline-block;
}

/* Custom Dialog Styles */
.custom-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.custom-dialog-overlay.active {
    display: flex;
}

.custom-dialog {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid #e0e0e0;
    animation: dialogSlideIn 0.3s ease;
    text-align: center;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-dialog-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.custom-dialog-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 1rem;
}

.custom-dialog-message {
    font-size: 1rem;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.custom-dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.custom-dialog-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-dialog-btn-primary {
    background: var(--primary-purple);
    color: white;
}

.custom-dialog-btn-primary:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.custom-dialog-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.custom-dialog-btn-secondary:hover {
    background: #d0d0d0;
}

@media (max-width: 768px) {
    .custom-dialog {
        padding: 1.5rem;
        max-width: 95%;
    }

    .custom-dialog-icon {
        font-size: 2.5rem;
    }

    .custom-dialog-title {
        font-size: 1.2rem;
    }

    .custom-dialog-message {
        font-size: 0.95rem;
    }

    .custom-dialog-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Square boxes override */
.header,
.hero,
.stat-box,
.hero-stats,
.donation-card,
.step-container,
.custom-amount-input,
.partners-hero-section,
.partner-hero-card,
.partners-section,
.partner-logo-item,
.footer,
.footer-content,
.footer-section,
.modal-content,
.custom-dialog,
.custom-dialog-btn,
.share-btn,
.btn-donate-primary,
.btn-submit,
.mobile-donate-bar,
.mobile-donate-bar-content {
    border-radius: 0 !important;
}
