/* ============================================
   تم دارک - قرمز + مشکی + برنزی
   رنگ‌ها: قرمز دارک (#8B0000, #5C0000), مشکی (#0A0A0F), برنزی (#CD7F32)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0A0A0F;
    color: #E8E0D8;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 0, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(205, 127, 50, 0.05) 0%, transparent 50%);
}

/* ============================================
   اسکرول بار - قرمز
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A0A0F; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #8B0000, #5C0000);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #8B0000; }

/* ============================================
   کانتینر
   ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   هدر - قرمز و مشکی
   ============================================ */
.header {
    background: linear-gradient(135deg, #0F0F1A, #1A0A0A);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B0000, #CD7F32, #8B0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerRedGold 5s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes shimmerRedGold {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.header h1 span {
    font-weight: 400;
    -webkit-text-fill-color: rgba(232, 224, 216, 0.5);
}

.header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .header-actions a {
    color: #CD7F32;
    text-decoration: none;
    padding: 8px 22px;
    border: 1.5px solid rgba(205, 127, 50, 0.3);
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header .header-actions a:hover {
    background: linear-gradient(135deg, #8B0000, #CD7F32);
    color: #0A0A0F;
    border-color: #8B0000;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   کارت‌ها
   ============================================ */
.card {
    background: linear-gradient(145deg, #0F0F1A, #1A0A0A);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 24px;
    padding: 30px 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: rgba(139, 0, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7);
}

.card h2 {
    font-family: 'Playfair Display', serif;
    color: #CD7F32;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card .card-icon {
    font-size: 24px;
}

.card p {
    color: rgba(232, 224, 216, 0.6);
    line-height: 1.7;
}

/* ============================================
   لینک دعوت
   ============================================ */
.referral-link {
    background: rgba(139, 0, 0, 0.05);
    padding: 18px 24px;
    border-radius: 16px;
    border: 2px dashed rgba(205, 127, 50, 0.3);
    font-size: 16px;
    text-align: center;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.4s ease;
    color: #E8E0D8;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
}

.referral-link:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: #CD7F32;
    box-shadow: 0 0 40px rgba(139, 0, 0, 0.15);
}

.referral-link .link-label {
    font-size: 12px;
    color: #CD7F32;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* ============================================
   دکمه‌ها
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B0000, #5C0000);
    color: #E8E0D8;
    box-shadow: 0 4px 25px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(139, 0, 0, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #CD7F32, #A8642A);
    color: #0A0A0F;
    box-shadow: 0 4px 25px rgba(205, 127, 50, 0.25);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(205, 127, 50, 0.35);
}

.btn-warning {
    background: linear-gradient(135deg, #8B0000, #CD7F32);
    color: #E8E0D8;
    box-shadow: 0 4px 25px rgba(139, 0, 0, 0.2);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(139, 0, 0, 0.3);
}

.btn-instagram {
    background: linear-gradient(135deg, #8B0000, #CD7F32);
    color: #E8E0D8;
    box-shadow: 0 4px 25px rgba(139, 0, 0, 0.2);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(139, 0, 0, 0.3);
}

.btn-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8B0000, #5C0000);
    color: #E8E0D8;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 25px rgba(139, 0, 0, 0.3);
}

.btn-verify:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(139, 0, 0, 0.4);
}

.btn-sm {
    padding: 6px 18px;
    font-size: 12px;
}

.copy-btn {
    background: transparent;
    color: #CD7F32;
    border: 1.5px solid rgba(205, 127, 50, 0.3);
    padding: 8px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-top: 12px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #8B0000, #5C0000);
    color: #E8E0D8;
    border-color: #8B0000;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   جعبه آمار
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-box {
    background: rgba(139, 0, 0, 0.05);
    padding: 24px 18px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(139, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.stat-box:hover {
    border-color: rgba(205, 127, 50, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.1);
}

.stat-box .number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #8B0000, #CD7F32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box .label {
    font-size: 13px;
    color: rgba(232, 224, 216, 0.5);
    margin-top: 4px;
    font-weight: 400;
}

.stat-box .stat-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

/* ============================================
   باکس‌های اطلاعاتی
   ============================================ */
.info-box {
    background: rgba(139, 0, 0, 0.06);
    border-right: 4px solid #8B0000;
    padding: 16px 22px;
    border-radius: 14px;
    margin: 16px 0;
    color: #E8E0D8;
}

.info-box strong {
    color: #CD7F32;
}

.note-box {
    background: rgba(139, 0, 0, 0.04);
    border-right: 4px solid rgba(205, 127, 50, 0.3);
    padding: 14px 20px;
    border-radius: 14px;
    margin: 12px 0;
    font-size: 13px;
    color: rgba(232, 224, 216, 0.5);
}

.warning-box {
    background: rgba(139, 0, 0, 0.06);
    border-right: 4px solid #8B0000;
    padding: 16px 22px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(139, 0, 0, 0.15);
}

.warning-box strong {
    color: #CD7F32;
}

.note {
    background: rgba(139, 0, 0, 0.04);
    border-right: 4px solid rgba(139, 0, 0, 0.2);
    padding: 14px 20px;
    border-radius: 14px;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(232, 224, 216, 0.4);
}

/* ============================================
   فرم‌ها
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: rgba(232, 224, 216, 0.6);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 10, 15, 0.6);
    border: 1.5px solid rgba(139, 0, 0, 0.2);
    border-radius: 14px;
    color: #E8E0D8;
    font-size: 15px;
    transition: all 0.4s ease;
    font-family: 'Inter', sans-serif;
}

input:focus {
    border-color: #8B0000;
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
    background: rgba(10, 10, 15, 0.8);
}

/* ============================================
   کوپن‌ها
   ============================================ */
.coupon-item {
    background: rgba(10, 10, 15, 0.5);
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(139, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.coupon-item:hover {
    border-color: rgba(205, 127, 50, 0.25);
    background: rgba(10, 10, 15, 0.7);
}

.coupon-item .code {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #CD7F32;
    letter-spacing: 1px;
}

.coupon-item .discount {
    color: #CD7F32;
    font-weight: 700;
    font-size: 16px;
}

.coupon-item .expiry {
    color: rgba(232, 224, 216, 0.25);
    font-size: 12px;
}

/* ============================================
   نشان‌ها
   ============================================ */
.badge-active {
    background: rgba(139, 0, 0, 0.2);
    color: #CD7F32;
    padding: 3px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.badge-used {
    background: rgba(232, 224, 216, 0.05);
    color: rgba(232, 224, 216, 0.3);
    padding: 3px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.simulate-badge {
    background: rgba(139, 0, 0, 0.15);
    color: #CD7F32;
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(139, 0, 0, 0.15);
}

/* ============================================
   پیام‌ها
   ============================================ */
.error {
    background: rgba(139, 0, 0, 0.12);
    color: #CD7F32;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 16px;
    border-right: 4px solid #8B0000;
}

.success {
    background: rgba(139, 0, 0, 0.1);
    color: #CD7F32;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 16px;
    border-right: 4px solid #CD7F32;
}

/* ============================================
   سایر
   ============================================ */
.info-text {
    color: rgba(232, 224, 216, 0.35);
    font-size: 13px;
    margin-top: 8px;
}

.empty-msg {
    color: rgba(232, 224, 216, 0.15);
    text-align: center;
    padding: 30px;
    font-size: 15px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 700px) {
    .header {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 20px;
    }
    .header h1 { font-size: 22px; }
    .card { padding: 22px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .coupon-item { flex-direction: column; gap: 6px; text-align: center; }
    .flex-between { flex-direction: column; align-items: stretch; text-align: center; }
    .btn { width: 100%; justify-content: center; }
    .referral-link { font-size: 14px; padding: 14px; }
}

@media (max-width: 450px) {
    .container { padding: 12px; }
    .header { padding: 16px; }
    .header h1 { font-size: 18px; }
    .card { padding: 16px; border-radius: 16px; }
    .stats { grid-template-columns: 1fr; }
    .stat-box .number { font-size: 28px; }
}