/* ===== تنظیمات اصلی ===== */
:root {
    --primary: #e91e63;
    --primary-light: #f8bbd9;
    --primary-dark: #c2185b;
    --secondary: #4caf50;
    --secondary-light: #c8e6c9;
    --secondary-dark: #388e3c;
    --accent: #ff9800;
    --accent-light: #ffe0b2;
    --accent-dark: #f57c00;
    --text: #333333;
    --text-light: #666666;
    --bg: #fff9f9;
    --bg-light: #fff;
    --bg-dark: #f5f5f5;
    --border: #e0e0e0;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    --shadow: 0 8px 32px rgba(233, 30, 99, 0.1);
    --radius: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== هدر زیبا ===== */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.site-header::before {
    content: "🌸🌸🌸";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(15deg);
    pointer-events: none;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    opacity: 0.8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    opacity: 0.9;
    color: #ffebee;
}

/* ===== ناوبری ===== */
.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.main-nav a.active {
    background: white;
    color: var(--primary);
}

/* ===== کارت‌ها ===== */
.card {
    background: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 30px 0;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.15);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-header {
    margin-bottom: 30px;
    text-align: center;
}

.card-header h2 {
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-header p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== فرم‌ها ===== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border);
    border-radius: 15px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-light);
    font-family: 'Vazirmatn', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.form-control-small {
    max-width: 400px;
}

/* ===== دکمه‌ها ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 15px;
}

/* ===== اطلاعات پرداخت ===== */
.payment-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px dashed var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    display: block;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.info-value.highlight {
    color: var(--primary);
    font-size: 22px;
}

/* ===== لینک پرداخت ===== */
.link-container {
    position: relative;
    margin: 30px 0;
}

.link-input {
    width: 100%;
    padding: 20px 80px 20px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border);
    border-radius: 15px;
    font-size: 16px;
    word-break: break-all;
    color: var(--text);
    font-family: monospace;
    direction: ltr;
    text-align: left;
}

.copy-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-50%) scale(1.05);
}

/* ===== QR کد ===== */
.qr-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.qr-code {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-light);
}

.qr-code img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* ===== تایمر ===== */
.timer-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 3px solid var(--accent);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.timer-box::before {
    content: "⏰";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.2;
}

.timer-title {
    color: var(--accent-dark);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#countdown {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-dark);
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

/* ===== دکمه‌های اشتراک‌گذاری ===== */
.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
}

.sms-btn {
    background: linear-gradient(135deg, #34b7f1 0%, #0099cc 100%);
    color: white;
}

.email-btn {
    background: linear-gradient(135deg, #ea4335 0%, #d14836 100%);
    color: white;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===== آلرت‌ها ===== */
.alert {
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid var(--secondary);
    color: #155724;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid var(--error);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid var(--warning);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid var(--info);
    color: #0c5460;
}

/* ===== فوتر ===== */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: "🌺🌸🌼";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    font-size: 60px;
    text-align: center;
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: var(--primary-light);
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(10px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #bdc3c7;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 14px;
}

/* ===== وضعیت‌ها ===== */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-expired {
    background: #e5e7eb;
    color: #4b5563;
}

/* ===== ابزارک‌ها ===== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--text);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== انیمیشن‌ها ===== */
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== دکمه برگشت به بالا ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
    z-index: 1000;
    border: none;
    display: none;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

/* ===== تزیینات گل ===== */
.flower-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    font-size: 80px;
}

.flower-1 {
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.flower-2 {
    bottom: 10%;
    right: 5%;
    font-size: 100px;
    transform: rotate(-20deg);
}

.flower-3 {
    top: 50%;
    left: 10%;
    font-size: 60px;
    transform: rotate(30deg);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        padding: 25px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .share-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    #countdown {
        font-size: 36px;
    }
    
    .flower-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .card-header h2 {
        font-size: 22px;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 15px;
    }
}