/* ===========================
   USER AUTH PAGES (LOGIN / REGISTER)
   =========================== */


.auth-wrapper {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: radial-gradient(circle at top, rgba(255,215,0,0.08), transparent 55%),
                var(--bg-dark);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, #111722, #0b0f18);
    border-radius: 22px;
    padding: 38px 30px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    text-align: center;
    color: #b9c0cc;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 13px;
    color: #d5dbe3;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.23);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    font-family: "Vazirmatn", sans-serif;
    font-size: 0.95rem;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.auth-input::placeholder {
    color: #7b8390;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
    background: rgba(22, 27, 34, 0.95);
}

.auth-message {
    margin-top: 4px;
    font-size: 13px;
    text-align: center;
}

.auth-message.error {
    color: #ff7b7b;
}

.auth-message.success {
    color: #4ade80;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: none;
    font-family: "Vazirmatn", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    transition: .25s ease;
}

.auth-btn-primary {
    background: linear-gradient(90deg, #ffd34d, #ffc400);
    color: #000;
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
}

.auth-btn-primary:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.55);
}

.auth-btn-secondary {
    margin-top: 8px;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.45);
}

.auth-btn-secondary:hover {
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.3);
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #9099a6;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-extra-link {
    margin-top: 8px;
    text-align: left;
    font-size: 12px;
}

.auth-extra-link a {
    color: #c7d0dd;
}

.auth-extra-link a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 20px;
    }
    
    
    
    
}




/* --- استایل جامع بخش احراز هویت (Auth) --- */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-body); /* یا رنگ پس‌زمینه اصلی سایت */
}

.auth-card {
    width: 100%;
    max-width: 450px; /* حداکثر عرض در دسکتاپ */
    background: var(--bg-card); /* رنگ کارت‌های سایت */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    box-sizing: border-box; /* بسیار مهم برای ریسپانسیو */
}

.auth-title {
    font-size: 24px;
    color: var(--primary); /* رنگ طلایی سایتت */
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.auth-subtitle {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-field {
    margin-bottom: 20px;
    width: 100%;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e5e7eb;
}

.auth-input {
    width: 100%; /* باعث می‌شود ورودی از کارت بیرون نزند */
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* جلوگیری از بیرون زدگی با Padding */
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

/* --- بهینه‌سازی برای موبایل (Media Query) --- */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px; /* کم کردن پدینگ در موبایل */
        border-radius: 15px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .auth-input {
        font-size: 14px;
        padding: 12px;
    }
}








/* ===========================
   ANALYSIS PAGES
   =========================== */

body {
    background-color: #020617;
}

.analysis-archive-wrapper {
    padding: 90px 0 120px;
}

.analysis-archive-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: right;
}

.analysis-archive-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f9fafb;
}

.analysis-archive-subtitle {
    font-size: 0.98rem;
    color: #9ca3af;
    max-width: 520px;
    line-height: 1.8;
}

/* فیلترها */
.analysis-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-pill {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.filter-pill:hover {
    border-color: #4b5563;
    background: #020617;
}

.filter-pill.active {
    border-color: #38bdf8;
    background: #0f172a;
    color: #f9fafb;
}

/* گرید کارت‌ها – نسخه نهایی: ۳ ستون دسکتاپ */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .analysis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* کارت تحلیل */
.analysis-card {
    background: radial-gradient(circle at top left, #0f172a, #020617);
    border-radius: 16px;
    border: 1px solid #1f2937;
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.analysis-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56,189,248,0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.analysis-card:hover::before {
    opacity: 1;
}

.analysis-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: #6c4cff;
}

/* تصویر داخل کارت (اگر وجود داشته باشد) */
.analysis-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* محتوا و متادیتا */
.analysis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.analysis-symbol {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9fafb;
}

.analysis-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15,118,110,0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.3);
}

.analysis-category {
    font-size: 0.75rem;
    color: #9ca3af;
}

.analysis-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-top: 4px;
    line-height: 1.6;
}

.analysis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.analysis-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.analysis-summary {
    font-size: 0.82rem;
    color: #d1d5db;
    line-height: 1.9;
    margin-top: 4px;
}

.analysis-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.analysis-link {
    font-size: 0.8rem;
    }



/* متن خالی وقتی هیچ تحلیلی نیست */
.analysis-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 40px 0;
}

/* استایل لینک‌ها داخل کارت */
.analysis-card .analysis-link,
.analysis-card .analysis-link:visited {
    color: #38bdf8;
    text-decoration: none;
}

.analysis-card .analysis-link:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

/* سایر استایل‌های عمومی تحلیل (مارکت‌ها، استتس و ...) */
.analysis-content {
    padding: 20px;
}

.analysis-market {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #6c4cff;
    color: white;
    display: inline-block;
    margin-bottom: 10px;
}

.analysis-market.crypto { background: #ff8c32; }
.analysis-market.forex { background: #6c4cff; }
.analysis-market.iran  { background: #2ecc71; }

.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    text-align: center;
    min-width: 140px;
    font-size: 14px;
}

.stat-box strong {
    display: block;
    font-size: 22px;
    margin-top: 5px;
}

.blue  { background: #1976d2; }
.orange{ background: #f0ad4e; }
.green { background: #4caf50; }

.container {
width:100%;
max-width:1200px;
margin:auto;
padding:0 20px;
    
    
}
/* ===== Mobile Safety Fix ===== */

*{
box-sizing:border-box;
}

html,body{
overflow-x:hidden;
max-width:100%;
}

img{
max-width:100%;
height:auto;
display:block;
}

.status-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Vazirmatn';
}

.status-card {
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    background: #fff;
    direction: rtl;
    text-align: right;
}

.status-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
}

.status-message {
    margin: 0 0 16px;
    line-height: 1.8;
    font-size: 15px;
}

.status-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.status-actions .btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    margin-left: 8px;
}

/* رنگ‌ها بر اساس status */
.alert-success {
    border-top: 4px solid #16a34a;
}

.alert-info {
    border-top: 4px solid #0ea5e9;
}

.alert-warning {
    border-top: 4px solid #f59e0b;
}

.alert-error {
    border-top: 4px solid #ef4444;
}

.btn-primary {
    background: #16a34a;
    color: #fff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}


