/* style.css - XCHMail Pro v3.0 - استایل کامل و ریسپانسیو */

/* ========== متغیرها و ریست ========== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #4895ef;
    --secondary: #7209b7;
    --secondary-dark: #560bad;
    --premium: #fbbf24;
    --premium-dark: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --gray-dark: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: linear-gradient(145deg, #f6f8fd 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 24px;
    direction: rtl;
    color: var(--dark);
    line-height: 1.7;
}

/* ========== کانتینر اصلی ========== */
.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ========== کارت‌ها ========== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
}

/* ========== لوگو ========== */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 42px;
    color: var(--white);
    box-shadow: 0 15px 35px rgba(67,97,238,0.3);
    border: 4px solid rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

h1 {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--gray);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.site-url {
    color: var(--primary);
    font-weight: 600;
    direction: ltr;
    background: rgba(67,97,238,0.1);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
}

/* ========== آلرت‌ها ========== */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    border-right-width: 6px;
    border-right-style: solid;
}

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

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border-right-color: var(--success);
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-right-color: var(--danger);
}

.alert.warning {
    background: #fef3c7;
    color: #92400e;
    border-right-color: var(--warning);
}

.alert.info {
    background: #dbeafe;
    color: #1e40af;
    border-right-color: var(--info);
}

.alert.premium {
    background: #fffbeb;
    color: #92400e;
    border-right-color: var(--premium);
}

.close-btn {
    cursor: pointer;
    font-size: 24px;
    opacity: 0.6;
    transition: all 0.2s;
    line-height: 1;
}

.close-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ========== دکمه‌ها ========== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    letter-spacing: 0.3px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 30px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(67,97,238,0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(67,97,238,0.35);
}

.btn-premium {
    background: linear-gradient(145deg, var(--premium), var(--premium-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(251,191,36,0.25);
}

.btn-premium:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(251,191,36,0.35);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    background: #0ea271;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16,185,129,0.3);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--gray);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67,97,238,0.05);
}

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

.w-100 {
    width: 100%;
}

/* ========== فرم‌ها ========== */
.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
    transition: color 0.2s;
}

.input-icon input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s;
    background: var(--white);
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67,97,238,0.1);
}

.input-icon input:focus + i {
    color: var(--primary);
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s;
    background: var(--white);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67,97,238,0.1);
}

textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.8;
}

.help-text {
    display: block;
    margin-top: 6px;
    color: var(--gray);
    font-size: 12px;
}

/* ========== گریدها ========== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ========== کارت‌های احراز هویت ========== */
.auth-card {
    background: var(--light);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.auth-card.register-card {
    background: linear-gradient(145deg, var(--white), #f0f4ff);
}

.auth-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 700;
}

.test-account {
    margin-top: 20px;
    color: var(--gray);
    font-size: 14px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ========== پلن‌های اشتراک ========== */
.pricing-section {
    margin-top: 60px;
}

.section-title {
    text-align: center;
    color: var(--dark);
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 800;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 16px auto 0;
    border-radius: 2px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.plan {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.plan.free-plan {
    border-color: var(--border);
}

.plan.premium-plan {
    border-color: var(--premium);
    background: linear-gradient(145deg, var(--white), #fffbeb);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 32px;
    background: linear-gradient(145deg, var(--premium), var(--premium-dark));
    color: var(--white);
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 16px rgba(251,191,36,0.3);
}

.plan-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.plan-price {
    font-size: 52px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.plan-price small {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray);
}

.plan-period {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 15px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.plan-features li {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
}

.check-icon {
    color: var(--success);
    font-size: 18px;
}

.times-icon {
    color: var(--danger);
    font-size: 18px;
}

/* ========== پروفایل کاربر ========== */
.profile-card {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 40s linear infinite;
}

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

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    border: 4px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-details {
    flex: 1;
}

.profile-name {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 800;
}

.profile-email {
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
    font-size: 16px;
}

.profile-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.badge.premium {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: var(--white);
    border: none;
}

.badge.unread-badge {
    background: var(--danger);
    color: var(--white);
}

/* ========== تب‌ها ========== */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 28px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 40px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.tab-btn.active {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(67,97,238,0.25);
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67,97,238,0.05);
}

.unread-count {
    background: var(--danger);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 12px;
    margin-right: 6px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== انتخاب فرستنده ========== */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.section-label {
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.sender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.sender-item {
    position: relative;
}

.sender-item input[type="radio"] {
    display: none;
}

.sender-item label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.sender-item input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: #f0f4ff;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(67,97,238,0.1);
}

.sender-item.premium-item label {
    background: #fffbeb;
    border-color: #fbbf24;
}

.sender-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.sender-avatar.premium-avatar {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
}

.sender-details {
    flex: 1;
    min-width: 0;
}

.sender-details strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sender-details small {
    color: var(--gray);
    font-size: 12px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: var(--white);
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

/* ========== باکس دریافت پاسخ ========== */
.reply-tracking-box {
    background: #fffbeb;
    border: 2px dashed #fbbf24;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 32px 0;
}

.reply-tracking-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.reply-tracking-icon {
    width: 50px;
    height: 50px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.reply-tracking-title {
    color: #92400e;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.reply-tracking-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--premium);
}

/* ========== اقدامات فرم ========== */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-submit {
    flex: 1;
}

.limit-warning {
    margin-top: 24px;
    padding: 18px;
    background: #fef3c7;
    border-radius: var(--radius);
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-right: 6px solid var(--warning);
}

.inline-form {
    display: inline-block;
    margin-right: auto;
}

/* ========== صندوق دریافتی ========== */
.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: var(--light);
    border-radius: var(--radius-xl);
    color: var(--gray);
}

.empty-state i {
    font-size: 70px;
    color: var(--border);
    margin-bottom: 24px;
}

.empty-state.small {
    padding: 40px 20px;
}

.empty-state.small i {
    font-size: 48px;
}

.empty-title {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.empty-text {
    color: var(--gray);
    max-width: 400px;
    margin: 0 auto;
}

.reply-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    transition: all 0.2s ease;
    border-right: 6px solid transparent;
}

.reply-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.reply-item.unread {
    background: #f0f4ff;
    border-right-color: var(--primary);
}

.reply-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
    min-width: 0;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.reply-sender {
    flex: 1;
    min-width: 0;
}

.reply-sender strong {
    color: var(--dark);
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.reply-subject {
    color: var(--gray);
    font-size: 13px;
    display: block;
}

.reply-date {
    color: var(--gray);
    font-size: 13px;
    white-space: nowrap;
}

.reply-body {
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.reply-actions {
    display: flex;
    gap: 12px;
}

/* ========== ایمیل دلخواه ========== */
.custom-email-box {
    background: #fffbeb;
    border: 2px dashed #fbbf24;
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
}

.custom-email-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.custom-email-icon {
    width: 70px;
    height: 70px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    flex-shrink: 0;
}

.custom-email-title {
    color: #92400e;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
}

.custom-email-text {
    color: var(--gray);
    margin: 0;
}

.custom-email-form {
    width: 100%;
}

.custom-email-input-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.custom-email-input-group .input-icon {
    flex: 1;
    min-width: 250px;
}

.custom-email-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.custom-email-tag {
    background: var(--white);
    border: 1px solid #fbbf24;
    border-radius: 40px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(251,191,36,0.1);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #fee2e2;
    transform: scale(1.2);
}

.subsection-title {
    color: var(--dark);
    margin: 32px 0 20px;
    font-size: 18px;
    font-weight: 700;
}

/* ========== حساب کاربری ========== */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

.account-info-card,
.account-subscription-card {
    background: var(--light);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.account-section-title {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.account-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--gray);
    font-size: 14px;
}

.info-value {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
}

.subscription-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--radius);
}

.subscription-info.premium {
    background: #fffbeb;
    border: 1px solid #fbbf24;
}

.subscription-info.free {
    background: var(--white);
    border: 1px solid var(--border);
}

.subscription-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.subscription-info.premium .subscription-icon {
    background: #fbbf24;
    color: var(--white);
}

.subscription-info.free .subscription-icon {
    background: var(--gray-light);
    color: var(--white);
}

.subscription-details {
    flex: 1;
}

.subscription-name {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
}

.subscription-info.premium .subscription-name {
    color: #92400e;
}

.subscription-expiry,
.subscription-limit,
.subscription-used {
    color: var(--gray);
    font-size: 14px;
    margin: 4px 0;
}

.subscription-progress {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 600;
}

.progress-percent {
    color: var(--primary);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--gray);
    font-size: 14px;
    text-align: center;
}

/* ========== فوتر ========== */
.footer {
    text-align: center;
    padding: 32px 20px;
    color: var(--gray);
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.footer-text {
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.8;
}

/* ========== رسپانسیو ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    body {
        padding: 20px;
    }
    
    .grid-2,
    .grid-3,
    .pricing-grid,
    .account-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card {
        padding: 28px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .logo-icon {
        width: 90px;
        height: 90px;
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .card {
        padding: 24px;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-info {
        width: 100%;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sender-grid {
        grid-template-columns: 1fr;
    }
    
    .reply-item {
        flex-direction: column;
    }
    
    .reply-icon {
        align-self: flex-start;
    }
    
    .reply-header {
        flex-direction: column;
    }
    
    .reply-date {
        white-space: normal;
    }
    
    .reply-actions {
        flex-direction: column;
    }
    
    .reply-actions .btn {
        width: 100%;
    }
    
    .custom-email-input-group {
        flex-direction: column;
    }
    
    .custom-email-input-group .input-icon {
        width: 100%;
    }
    
    .custom-email-input-group .btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .limit-warning {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .inline-form {
        margin-right: 0;
        width: 100%;
    }
    
    .inline-form .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    body {
        padding: 12px;
    }
    
    .card {
        padding: 20px;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .plan {
        padding: 30px 20px;
    }
    
    .plan-price {
        font-size: 42px;
    }
    
    .profile-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .badge {
        width: 100%;
        justify-content: center;
    }
    
    .account-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .subscription-info {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== یوتیلیتی ========== */
.flex {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mt-2 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* ========== باکس کد تخفیف ========== */
.discount-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    color: white;
    border: 1px solid #334155;
}

.discount-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.discount-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--premium), var(--premium-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.discount-title {
    color: white;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
}

.discount-text {
    color: #94a3b8;
    margin: 0;
}

.discount-form {
    margin-bottom: 20px;
}

.discount-input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.discount-input-group .input-icon {
    flex: 1;
    min-width: 250px;
}

.discount-input-group input {
    background: #0f172a;
    border-color: #334155;
    color: white;
    direction: ltr;
    text-align: left;
    font-family: monospace;
}

.discount-input-group input::placeholder {
    color: #64748b;
    text-align: right;
    direction: rtl;
}

.discount-input-group input:focus {
    border-color: var(--premium);
    background: #1e293b;
}

.discount-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.discount-footer p {
    color: #94a3b8;
    margin-bottom: 15px;
}

.btn-telegram {
    background: #0088cc;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-telegram:hover {
    background: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,136,204,0.3);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .discount-input-group {
        flex-direction: column;
    }
    
    .discount-input-group .input-icon {
        width: 100%;
    }
    
    .discount-input-group .btn {
        width: 100%;
    }
}

/* ========== تب حساب کاربری - وضعیت اشتراک و خرید ========== */

.subscription-status-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    color: white;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.subscription-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    animation: rotate 40s linear infinite;
    pointer-events: none;
}

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

.subscription-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.subscription-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.subscription-icon-large.premium {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    box-shadow: 0 10px 25px rgba(251,191,36,0.3);
}

.subscription-icon-large.free {
    background: linear-gradient(145deg, #64748b, #475569);
    box-shadow: 0 10px 25px rgba(100,116,139,0.3);
}

.subscription-title {
    color: white;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 800;
}

.subscription-subtitle {
    color: #94a3b8;
    margin: 0;
    font-size: 15px;
}

/* ========== اطلاعات حساب کاربری ========== */
.account-info-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 25px;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.account-info-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.info-label {
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: var(--primary);
    width: 18px;
}

.info-value {
    color: white;
    font-weight: 600;
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ========== وضعیت فعلی ========== */
.current-status {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 15px;
}

.status-label i {
    width: 20px;
    color: var(--premium);
}

.status-value {
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(251,191,36,0.1);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.2);
    font-size: 14px;
}

.status-value.premium {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
}

.status-value.free {
    background: rgba(100,116,139,0.3);
    color: #e2e8f0;
    border: 1px solid #475569;
}

/* ========== نوار پیشرفت ========== */
.progress-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 14px;
}

.progress-percent {
    color: #fbbf24;
    font-weight: 700;
    background: rgba(251,191,36,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #1e293b;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

/* ========== آمار کاربر ========== */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: rgba(251,191,36,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid rgba(251,191,36,0.2);
}

.stat-icon i {
    filter: drop-shadow(0 0 5px rgba(251,191,36,0.3));
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.5px;
}

.stat-number {
    color: white;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.stat-unit {
    color: #94a3b8;
    font-size: 13px;
    margin-right: 6px;
    font-weight: 400;
}

/* ========== باکس کد تخفیف ========== */
.discount-box {
    background: rgba(59,130,246,0.05);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 25px;
}

.discount-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.discount-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(59,130,246,0.3);
}

.discount-title {
    color: white;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 700;
}

.discount-text {
    color: #94a3b8;
    margin: 0;
    font-size: 14px;
}

.discount-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.discount-input-group .input-icon {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.discount-input-group .input-icon i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 1;
}

.discount-input-group input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 40px;
    color: white;
    direction: ltr;
    text-align: left;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.discount-input-group input::placeholder {
    color: #64748b;
    text-align: right;
    direction: rtl;
    letter-spacing: normal;
    font-family: 'Vazirmatn', sans-serif;
}

.discount-input-group input:focus {
    border-color: #3b82f6;
    background: #1e293b;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    outline: none;
}

.discount-input-group .btn-premium {
    padding: 14px 28px;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.discount-input-group .btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(251,191,36,0.3);
}

/* ========== باکس مزایای پرمیوم ========== */
.premium-benefits {
    background: rgba(251,191,36,0.05);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(251,191,36,0.15);
}

.benefits-title {
    color: #fbbf24;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefits-title i {
    font-size: 20px;
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    color: #e2e8f0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
}

.benefits-list li i {
    color: #10b981;
    font-size: 15px;
}

/* ========== دکمه‌های خرید و تمدید ========== */
.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-purchase {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: white;
    padding: 18px 32px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(251,191,36,0.3);
    letter-spacing: 1px;
}

.btn-purchase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-purchase:hover::before {
    left: 100%;
}

.btn-purchase:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(251,191,36,0.4);
}

.btn-purchase i {
    font-size: 22px;
}

.btn-telegram {
    background: #0088cc;
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 8px 18px rgba(0,136,204,0.2);
}

.btn-telegram:hover {
    background: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,136,204,0.3);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 15px;
}

.btn-outline-light:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(251,191,36,0.1);
    transform: translateY(-3px);
}

/* ========== رسپانسیو ========== */
@media (max-width: 992px) {
    .subscription-status-card {
        padding: 28px;
    }
    
    .subscription-icon-large {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .subscription-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .subscription-status-card {
        padding: 24px;
    }
    
    .subscription-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .account-info-grid {
        grid-template-columns: 1fr;
    }
    
    .account-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .discount-input-group {
        flex-direction: column;
    }
    
    .discount-input-group .input-icon {
        width: 100%;
    }
    
    .discount-input-group .btn-premium {
        width: 100%;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .subscription-status-card {
        padding: 20px;
    }
    
    .subscription-icon-large {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .subscription-title {
        font-size: 22px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .btn-purchase {
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* ===== استایل جدید برای پاسخ‌ها ===== */
.reply-message {
    background: #f8f9ff;
    border-right: 4px solid #4361ee;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
}

.original-email {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.original-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}

.original-header i {
    color: #94a3b8;
}

.original-body {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    padding-right: 10px;
    border-right: 2px solid #cbd5e1;
}