/* ================================================
   style.css — نری‌گوله
   
   طرح: دنیای شبانه بازی و سازندگی
   پالت: زمینه تاریک مثل میز بازی زیر نور رومیزی
         + آکسنت‌های رنگی هر بخش مثل قطعات لگو
   امضا: stud-grid در hero + رنگ‌بندی بخشی LEGO-style
   ================================================ */

/* ——— سیستم رنگ ——— */
:root {
    /* رنگ‌های اصلی */
    --night:      #0A0E1A;   /* زمینه تاریک — میز بازی */
    --night-card: #111827;   /* کارت‌ها */
    --night-soft: #1F2937;   /* حاشیه و hover */
    --text-light: #F9FAFB;
    --text-muted: #9CA3AF;
    --border:     rgba(255,255,255,0.08);

    /* آکسنت‌های بخشی */
    --lego:    #FFD600;   /* زرد LEGO — بخش لگو */
    --gaming:  #00E5FF;   /* آبی نئون — FC Mobile */
    --cards:   #FF3D00;   /* قرمز — کارت فوتبال */
    --shop:    #69FF47;   /* سبز فسفری — فروشگاه */

    /* تایپوگرافی */
    --font: 'Vazirmatn', sans-serif;

    /* شعاع */
    --r-sm:  6px;
    --r-md:  14px;
    --r-lg:  22px;
    --r-xl:  32px;

    /* سایه */
    --glow-lego:   0 0 32px rgba(255,214,0,0.25);
    --glow-gaming: 0 0 32px rgba(0,229,255,0.2);
    --glow-cards:  0 0 32px rgba(255,61,0,0.2);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.4);

    --transition: 0.22s ease;
    --max-width: 1160px;
}

/* ================================================
   ریست و پایه
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--night);
    color: var(--text-light);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gaming); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--lego); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ================================================
   دکمه‌ها
================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--lego);
    color: var(--night);
}
.btn--primary:hover {
    background: #ffe033;
    color: var(--night);
    transform: translateY(-2px);
    box-shadow: var(--glow-lego);
}

.btn--outline {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--outline:hover {
    border-color: var(--gaming);
    color: var(--gaming);
    transform: translateY(-2px);
    box-shadow: var(--glow-gaming);
}

.btn--lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }

/* ================================================
   Navbar
================================================ */
#mainNav {
    background: rgba(10,14,26,0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

#mainNav .nav-link {
    color: var(--text-muted) !important;
    border-radius: var(--r-sm);
    padding: 6px 14px !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: color var(--transition), background var(--transition);
}
#mainNav .nav-link:hover {
    color: var(--text-light) !important;
    background: rgba(255,255,255,0.06);
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--lego);
    font-family: var(--font);
    letter-spacing: -0.02em;
}

.shop-link {
    background: var(--lego) !important;
    color: var(--night) !important;
    border-radius: 100px !important;
    padding: 6px 18px !important;
    font-weight: 700 !important;
}
.shop-link:hover {
    background: #ffe033 !important;
    color: var(--night) !important;
    box-shadow: var(--glow-lego) !important;
}

/* hamburger رنگ روشن */
#mainNav .navbar-toggler-icon { filter: invert(1); }
#mainNav .navbar-toggler { border-color: var(--border) !important; }

/* ================================================
   Hero — با الگوی stud لگو در پس‌زمینه
================================================ */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    overflow: hidden;
}

/* الگوی stud لگو — امضای طراحی */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(26,35,126,0.07) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}
/* گرادیان محو کردن لبه‌های الگو */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%,
        transparent 0%, rgba(255,251,240,0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

/* نشان برند */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26,35,126,0.07);
    border: 1px solid rgba(26,35,126,0.18);
    border-radius: 100px;
    padding: 0.3rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* کلمه‌ی تاکیدی زرد */
.hero__title span { color: var(--lego); }

.hero__subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* نقش‌ها — با نقاط رنگی */
.hero__role {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}
.hero__role-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.hero__role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hero__role-dot--lego   { background: var(--lego); }
.hero__role-dot--gaming { background: var(--gaming); }
.hero__role-dot--cards  { background: var(--cards); }

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* عکس hero */
.hero__image-wrap {
    display: flex;
    justify-content: center;
}
.hero__image-frame {
    position: relative;
    width: 300px;
    height: 300px;
}
/* قاب دایره‌ای اطراف عکس */
.hero__image-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px dashed rgba(198,255,0,0.45);
    border-radius: 50%;
    opacity: 1;
    animation: spinSlow 18s linear infinite;
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* dot تزئینی */
.hero__image-frame::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: -28px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 24px rgba(26,35,126,0.18);
    animation: fadeInScale 0.8s ease-out forwards;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.3s ease;
    border: 6px solid #c6ff00;
}
.hero__img:hover {
    filter: grayscale(0%);
    transform: scale(1.04);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* بج‌های شناور */
.hero__badge {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(26,35,126,0.15);
    border-radius: var(--r-md);
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
    animation: floatBadge 3.5s ease-in-out infinite;
    white-space: nowrap;
    box-shadow: var(--shadow-card);
}
.hero__badge--top    { top: 10px;    right: -22px; animation-delay: 0s; border-color: rgba(255,214,0,0.3); }
.hero__badge--bottom { bottom: 22px; left: -22px;  animation-delay: 1.8s; border-color: rgba(0,229,255,0.3); }

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

/* ================================================
   هدرهای بخش
================================================ */
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}
/* override برای Bootstrap اگر استفاده شد */
.section-header .section-title {
    border-right: none;
    padding-right: 0;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 560px;
    line-height: 1.7;
}
.section-header { margin-bottom: 2.5rem; }

/* ================================================
   بخش لگو — آکسنت زرد
================================================ */
.expertise {
    padding: 5.5rem 0;
    background: var(--night);
    /* خط رنگی بالا مثل قطعه لگو */
    border-top: 3px solid var(--lego);
    position: relative;
}
.expertise .section-label { color: var(--lego); }

.expertise__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.expertise-card {
    background: var(--night-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.75rem 1.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
/* خط رنگی چپ کارت */
.expertise-card::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 3px;
    background: var(--lego);
    transform: scaleY(0);
    transition: transform var(--transition);
    transform-origin: bottom;
}
.expertise-card:hover::before { transform: scaleY(1); }
.expertise-card:hover {
    border-color: rgba(255,214,0,0.25);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,214,0,0.1);
    transform: translateY(-4px);
}

.expertise-card__icon {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.expertise-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}
.expertise-card__desc {
    font-size: 0.855rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ================================================
   بخش کارت‌های فوتبال — آکسنت قرمز
================================================ */
.portfolio {
    padding: 5.5rem 0;
    background: var(--night-card);
    border-top: 3px solid var(--cards);
}
.portfolio .section-label { color: var(--cards); }

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}

.portfolio-card {
    background: var(--night);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--transition);
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-cards);
    border-color: rgba(255,61,0,0.3);
}

.portfolio-card__thumb {
    height: 160px;
    background: linear-gradient(135deg, #1a0a00 0%, #3d1000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}
.portfolio-card__thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,61,0,0.15) 0%, transparent 70%);
}
.portfolio-card__thumb::after {
    content: 'بیشتر ←';
    position: absolute;
    inset: 0;
    background: rgba(255,61,0,0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-card__thumb::after { opacity: 1; }

.portfolio-card__body { padding: 1.25rem; }
.portfolio-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cards);
    background: rgba(255,61,0,0.1);
    border: 1px solid rgba(255,61,0,0.2);
    border-radius: 100px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.portfolio-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}
.portfolio-card__desc {
    font-size: 0.845rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================================
   بخش ویدیوها — آکسنت آبی نئون (گیمینگ)
================================================ */
.videos {
    padding: 5.5rem 0;
    background: var(--night);
    border-top: 3px solid var(--gaming);
}
.videos .section-label { color: var(--gaming); }

.videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.video-card {
    background: var(--night-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--transition);
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-gaming);
    border-color: rgba(0,229,255,0.25);
}

.video-card__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.video-card__embed iframe {
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    border: none;
}

.video-card__info {
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--border);
}
.video-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card__meta {
    font-size: 0.72rem;
    color: var(--gaming);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ================================================
   بخش فروشگاه — آکسنت سبز
================================================ */
.expertise[id="shop"] {
    background: var(--night-card);
    border-top-color: var(--shop);
}
.expertise[id="shop"] .section-label { color: var(--shop); }
.expertise[id="shop"] .expertise-card::before { background: var(--shop); }
.expertise[id="shop"] .expertise-card:hover {
    border-color: rgba(105,255,71,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(105,255,71,0.08);
}

/* ================================================
   بخش تماس
================================================ */
.contact {
    padding: 5.5rem 0;
    background: var(--night);
    border-top: 1px solid var(--border);
}
.contact .section-label { color: var(--gaming); }

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

.contact__info-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.contact__info-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact__channels { display: flex; flex-direction: column; gap: 0.6rem; }
.contact__channel {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--night-card);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}
.contact__channel:hover {
    border-color: rgba(0,229,255,0.3);
    color: var(--gaming);
    background: rgba(0,229,255,0.04);
    transform: translateX(-3px);
}

/* فرم تماس */
.contact-form {
    background: var(--night-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 2rem;
}

.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--night-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    direction: rtl;
    outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-textarea:focus {
    border-color: rgba(0,229,255,0.4);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
    background: var(--night-card);
}
.form-textarea { min-height: 130px; resize: vertical; }

.form-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
}
.form-alert--success {
    background: rgba(105,255,71,0.08);
    border: 1px solid rgba(105,255,71,0.2);
    color: var(--shop);
}
.form-alert--error {
    background: rgba(255,61,0,0.08);
    border: 1px solid rgba(255,61,0,0.2);
    color: #ff7043;
}

/* ================================================
   فوتر
================================================ */
.footer {
    background: var(--night-card);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
}
.footer__bio {
    font-size: 0.855rem;
    line-height: 1.85;
    margin-top: 0.75rem;
}
.footer__heading {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.footer__nav a:hover { color: var(--text-light); }

.footer__social { display: flex; flex-direction: column; gap: 0.5rem; }
.social-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.855rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.social-btn:hover { color: var(--text-light); background: rgba(255,255,255,0.04); }
.social-btn--youtube:hover   { color: #FF0000; border-color: rgba(255,0,0,0.3); }
.social-btn--aparat:hover    { color: #e84141; border-color: rgba(232,65,65,0.3); }
.social-btn--instagram:hover { color: #E1306C; border-color: rgba(225,48,108,0.3); }
.social-btn--telegram:hover  { color: var(--gaming); border-color: rgba(0,229,255,0.3); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer__logo img { filter: brightness(0.9); }

/* ================================================
   ریسپانسیو
================================================ */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__image-wrap { order: -1; }
    .hero__actions    { justify-content: center; }
    .hero__role       { justify-content: center; }
    .section-subtitle { margin: 0 auto; }
    .hero__image-frame { width: 240px; height: 240px; }
    .hero__badge--top    { right: -8px; }
    .hero__badge--bottom { left: -8px; }
    .contact__inner { grid-template-columns: 1fr; }
    .footer__inner  { grid-template-columns: 1fr 1fr; }
    .footer__brand  { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .hero__image-frame   { width: 200px; height: 200px; }
    .hero__badge         { display: none; }
    .expertise__grid     { grid-template-columns: 1fr 1fr; }
    .footer__inner       { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-form        { padding: 1.5rem; }
}

/* ——— motion ——— */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero__img { animation: none; opacity: 1; }
}


/* ================================================
   استایل‌های صفحات داخلی (inner pages)
   lego.php | fc-mobile.php | cards.php | shop.php
================================================ */

/* ——— لینک برگشت ——— */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
    margin-bottom: 1.5rem;
}
.back-link:hover { gap: 0.7rem; color: var(--primary-dark); }
.back-link--light { color: rgba(255,255,255,0.7); }
.back-link--light:hover { color: #fff; }

/* ——— Hero صفحات داخلی ——— */
.inner-hero {
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

/* لگو — کرم گرم با accent زرد */
.inner-hero--lego {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    border-bottom: 3px solid var(--lego);
}
.inner-hero--lego .inner-hero__title { color: var(--primary-dark); }
.inner-hero--lego .inner-hero__desc  { color: #555; }

/* FC Mobile — تاریک با neon */
.inner-hero--gaming {
    background: linear-gradient(135deg, #050b1a 0%, #0a1628 100%);
    border-bottom: 3px solid var(--gaming);
}

/* کارت فوتبال — سرمه‌ای تیره به قرمز */
.inner-hero--cards {
    background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a1a2e 100%);
    border-bottom: 3px solid var(--cards);
}

/* فروشگاه — کرم با accent سبز */
.inner-hero--shop {
    background: linear-gradient(135deg, #f0fff4 0%, #f5fff8 100%);
    border-bottom: 3px solid var(--shop);
}
.inner-hero--shop .inner-hero__title { color: var(--primary-dark); }
.inner-hero--shop .inner-hero__desc  { color: #555; }

.inner-hero__back { margin-bottom: 0.5rem; }

.inner-hero__content { max-width: 680px; }
.inner-hero__content--center { margin: 0 auto; text-align: center; }
.inner-hero__content--center .inner-hero__stats { justify-content: center; }

.inner-hero__badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 100px;
    padding: 0.3rem 1rem;
    margin-bottom: 0.9rem;
    letter-spacing: 0.03em;
    background: rgba(255,214,0,0.15);
    color: #7a5f00;
    border: 1px solid rgba(255,214,0,0.3);
}
.inner-hero__badge--cyan {
    background: rgba(0,229,255,0.1);
    color: var(--gaming);
    border-color: rgba(0,229,255,0.25);
}
.inner-hero__badge--gold {
    background: rgba(255,180,0,0.12);
    color: #c8930a;
    border-color: rgba(255,180,0,0.3);
}

.inner-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}
.inner-hero__title--light { color: #fff; }

.inner-hero__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}
.inner-hero__desc--light { color: rgba(255,255,255,0.72); }

/* آمار در hero */
.inner-hero__stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.inner-hero__stats--dark { margin-top: 0.5rem; }

.ih-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ih-stat--dark { align-items: center; }
.ih-stat__num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}
.ih-stat__num--cyan { color: var(--gaming); }
.ih-stat__num--gold { color: #f0b429; }
.ih-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* ——— بخش‌های صفحه داخلی ——— */
.page-section {
    padding: 4rem 0;
    background: var(--bg-cream);
}
.page-section--alt  { background: #f7f3ec; }
.page-section--dark { background: #0d1521; }
.page-section--dark .section-title    { color: #fff; }
.page-section--dark .section-subtitle { color: rgba(255,255,255,0.55); }

/* ——— pills دسته‌بندی ——— */
.category-pills,
.shop-filter {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.5rem 0 0;
}
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid #d5cfc4;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.cat-pill:hover,
.cat-pill--active {
    background: var(--lego);
    border-color: var(--lego);
    color: var(--primary-dark);
}

/* ================================================
   صفحه لگو — کارت‌های سازه
================================================ */
.lego-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.lego-card {
    background: #fff;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1.5px solid #e8e0d0;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.lego-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-color: var(--lego);
}

/* تامبنیل‌های رنگارنگ */
.lego-card__thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
}
.lego-card__thumb--red    { background: linear-gradient(135deg, #ff6b6b22 0%, #ff000015 100%); }
.lego-card__thumb--blue   { background: linear-gradient(135deg, #4facfe22 0%, #00f2fe15 100%); }
.lego-card__thumb--purple { background: linear-gradient(135deg, #a18cd122 0%, #fbc2eb15 100%); }
.lego-card__thumb--green  { background: linear-gradient(135deg, #84fab022 0%, #8fd3f415 100%); }
.lego-card__thumb--orange { background: linear-gradient(135deg, #f6d36522 0%, #fda08515 100%); }
.lego-card__thumb--yellow { background: linear-gradient(135deg, #ffd60022 0%, #ff930015 100%); }

.lego-card__badges {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: flex;
    gap: 0.35rem;
}

.lego-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
}
.lego-badge--hard     { background: #ff3d00; color: #fff; }
.lego-badge--new      { background: var(--gaming); color: #000; }
.lego-badge--featured { background: var(--lego); color: #000; }

.lego-card__body { padding: 1.1rem; }
.lego-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 0.4rem;
}
.lego-card__desc {
    font-size: 0.845rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}
.lego-card__meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}
.lego-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* نشانگر سختی */
.lego-difficulty {
    display: flex;
    gap: 3px;
    margin-right: auto;
}
.diff-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.diff-dot--filled { background: #ff9100; }
.diff-dot--empty  { background: #e0d8cc; }

/* ——— کارت‌های راهنما / نکات ——— */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.tip-card {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: var(--r-md);
    padding: 1.5rem;
}
.tip-card__num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--lego);
    line-height: 1;
    margin-bottom: 0.6rem;
    font-family: 'Vazirmatn', sans-serif;
}
.tip-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}
.tip-card__text {
    font-size: 0.845rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ——— CTA باکس ——— */
.page-cta {
    padding: 3.5rem 0;
}
.page-cta--lego   { background: linear-gradient(135deg, #1a237e 0%, #283593 100%); }
.page-cta--gaming { background: linear-gradient(135deg, #050b1a 0%, #0a1f3a 100%); border-top: 2px solid rgba(0,229,255,0.2); }
.page-cta--cards  { background: linear-gradient(135deg, #1a0a00 0%, #3d1000 100%); }
.page-cta--shop   { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }

.page-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.page-cta__text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
}
.page-cta__text p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

/* ================================================
   صفحه FC Mobile
================================================ */

/* آرایش تیم */
.formation-wrap {
    max-width: 600px;
    margin: 0 auto;
}
.formation-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gaming);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.formation {
    background: linear-gradient(180deg, #0d3d1f 0%, #0a3319 50%, #0d3d1f 100%);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    /* خطوط چمن */
    background-image:
        linear-gradient(180deg, #0d3d1f 0%, #0a3319 50%, #0d3d1f 100%),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 61px);
}
.formation__row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.player-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r-sm);
    padding: 0.5rem 0.65rem;
    min-width: 68px;
    transition: all var(--transition);
    cursor: default;
}
.player-chip:hover {
    background: rgba(0,229,255,0.08);
    border-color: rgba(0,229,255,0.3);
    transform: translateY(-2px);
}
.player-chip--gold { border-color: rgba(255,214,0,0.4); background: rgba(255,214,0,0.07); }
.player-chip--icon { border-color: rgba(255,61,0,0.5); background: rgba(255,61,0,0.1); }
.player-chip--gk   { border-color: rgba(255,145,0,0.4); background: rgba(255,145,0,0.08); }

.player-chip__rating {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.player-chip--gold .player-chip__rating { color: var(--lego); }
.player-chip--icon .player-chip__rating { color: #ff6b6b; }

.player-chip__name {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    text-align: center;
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-chip__pos {
    font-size: 0.58rem;
    color: var(--gaming);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* آمار showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.stat-showcase-card {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: var(--r-md);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition);
}
.stat-showcase-card:hover {
    border-color: var(--lego);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}
.stat-showcase-card__icon { font-size: 2rem; }
.stat-showcase-card__num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
}
.stat-showcase-card__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================================
   صفحه کارت‌های فوتبال
================================================ */

/* گرید کارت‌های نادر */
.rare-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
}

/* کارت FC Mobile */
.fc-card {
    border-radius: var(--r-md);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.fc-card:hover { transform: translateY(-6px); }

.fc-card--icon {
    background: linear-gradient(145deg, #1a0a00 0%, #3d2000 100%);
    border: 1.5px solid rgba(255,180,0,0.4);
    box-shadow: 0 4px 24px rgba(255,150,0,0.2);
}
.fc-card--hero {
    background: linear-gradient(145deg, #0a0a2e 0%, #1a1a5e 100%);
    border: 1.5px solid rgba(100,100,255,0.4);
    box-shadow: 0 4px 24px rgba(80,80,255,0.15);
}
.fc-card--toty {
    background: linear-gradient(145deg, #0d2137 0%, #1a3a5c 100%);
    border: 1.5px solid rgba(0,229,255,0.4);
    box-shadow: 0 4px 24px rgba(0,200,255,0.15);
}

.fc-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.fc-card__rating {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--lego);
    line-height: 1;
}
.fc-card__type {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
}

.fc-card__emoji { font-size: 2.5rem; display: block; margin-bottom: 0.3rem; }
.fc-card__name  { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.15rem; }
.fc-card__nation { font-size: 0.75rem; color: rgba(255,255,255,0.55); }

.fc-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin: 0.85rem 0 0.75rem;
}
.fc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.fc-stat span {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.fc-stat strong {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.fc-card__rarity { display: flex; justify-content: center; gap: 0.2rem; }
.rarity-star       { font-size: 1rem; color: var(--lego); }
.rarity-star--empty { color: rgba(255,255,255,0.2); }

/* نوارهای وضعیت کلکشن */
.collection-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.coll-row {
    display: grid;
    grid-template-columns: 160px 1fr 48px;
    align-items: center;
    gap: 1rem;
}
.coll-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}
.coll-bar-wrap {
    background: #e8e0d0;
    border-radius: 100px;
    height: 22px;
    overflow: hidden;
}
.coll-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding-right: 0.65rem;
    transition: width 1s ease;
}
.coll-bar--silver { background: #9e9e9e; }
.coll-bar--gold   { background: #f0b429; }
.coll-bar--icon   { background: linear-gradient(90deg, #ff3d00, #ff9100); }

.coll-bar__val {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.coll-pct {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
}

/* ================================================
   فروشگاه
================================================ */

/* اطلاعات سریع hero فروشگاه */
.shop-info-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.shop-info-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
}

/* گرید محصولات */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.shop-card {
    background: #fff;
    border: 1.5px solid #e8e0d0;
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #c8b890;
}
.shop-card--sold {
    opacity: 0.6;
    pointer-events: none;
}

.shop-card__thumb {
    height: 140px;
    background: linear-gradient(135deg, #fef9ec 0%, #fdf3d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
}
.shop-card__emoji { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12)); }

.shop-card__badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}
.shop-badge--default  { background: #ff9100; color: #fff; }
.shop-badge--limited  { background: #ff3d00; color: #fff; }
.shop-badge--sold     { background: #9e9e9e; color: #fff; }

.shop-card__cat {
    position: absolute;
    bottom: 0.5rem;
    left: 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    background: rgba(255,255,255,0.85);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

.shop-card__body { padding: 1rem 1.1rem; flex: 1; }
.shop-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}
.shop-card__desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.65rem;
}
.shop-card__specs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.shop-spec {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #888;
    font-weight: 500;
}

.shop-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-top: 1px solid #f0e8d8;
    gap: 0.75rem;
}
.shop-card__pricing { display: flex; align-items: baseline; gap: 0.5rem; }
.shop-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.shop-card__old-price {
    font-size: 0.75rem;
    color: #bbb;
    text-decoration: line-through;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font);
}
.btn-shop:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-shop--limited {
    background: #ff3d00;
}
.btn-shop--limited:hover { background: #cc3000; color: #fff; }
.btn-shop--sold {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================================================
   ریسپانسیو صفحات داخلی
================================================ */
@media (max-width: 768px) {
    .inner-hero { padding: 3.5rem 0 2.5rem; }
    .inner-hero__title { font-size: 1.9rem; }
    .inner-hero__stats { gap: 1.25rem; }
    .ih-stat__num      { font-size: 1.4rem; }

    .formation { padding: 1.5rem 0.75rem; gap: 1rem; }
    .player-chip { min-width: 56px; padding: 0.4rem 0.5rem; }
    .player-chip__name { font-size: 0.52rem; max-width: 52px; }

    .rare-cards-grid { grid-template-columns: 1fr; max-width: 280px; }

    .coll-row { grid-template-columns: 110px 1fr 40px; gap: 0.6rem; }
    .coll-label { font-size: 0.78rem; }

    .page-cta__inner { flex-direction: column; text-align: center; }
    .shop-info-bar    { flex-direction: column; gap: 0.75rem; }

    .tips-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .lego-grid,
    .shop-grid  { grid-template-columns: 1fr; }
    .tips-grid  { grid-template-columns: 1fr; }
    .formation__row { gap: 0.4rem; }
    .coll-row   { grid-template-columns: 90px 1fr 36px; }
}

/* ================================================
   کلاس‌های تکمیلی — اضافه شده در مرحله دوم
================================================ */

/* hero__content — wrapper ستون متن در Hero */
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* hero__role — نسخه flex برای صفحات داخلی */
.hero__role.hero__role--flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* section-more-link — لینک «مشاهده همه» زیر subtitle */
.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lego);
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
    letter-spacing: 0.01em;
}
.section-more-link:hover {
    gap: 0.55rem;
    color: #c8a800;
}
/* نسخه روشن (برای بخش‌های تاریک) */
.section-more-link--light {
    color: var(--gaming);
}
.section-more-link--light:hover { color: #00fff5; }

/* fc-card__player — محتوای وسط کارت FC */
.fc-card__player {
    margin: 0.5rem 0 0.75rem;
}

/* contact__info — wrapper اطلاعات تماس */
.contact__info {
    display: flex;
    flex-direction: column;
}

/* btn--submit — دکمه ارسال فرم */
.btn--submit {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 1rem;
}

/* ================================================
   navbar — لینک صفحات داخلی active
================================================ */
#mainNav .nav-link.active,
#mainNav .nav-link[aria-current="page"] {
    color: var(--lego) !important;
    background: rgba(255,214,0,0.08);
}

/* ================================================
   breadcrumb کوچک زیر navbar در صفحات داخلی
================================================ */
.page-breadcrumb {
    background: rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.page-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.page-breadcrumb a:hover { color: var(--primary); }
.page-breadcrumb span { margin: 0 0.35rem; }

/* ================================================
   کارت‌های محتوای اضافه — لگو
   (آیتم‌های جدید با تصویر واقعی)
================================================ */

/* نشان «در دست ساخت» */
.lego-badge--wip {
    background: #7c3aed;
    color: #fff;
}

/* پیش‌نمایش ویدیوی ساخت در lego-card */
.lego-card__video-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
    text-decoration: none;
    transition: color var(--transition);
}
.lego-card__video-hint:hover { color: #ff9100; }
.lego-card__video-hint svg { flex-shrink: 0; }

/* ================================================
   کارت‌های محتوای اضافه — FC Mobile
   (جدول نتایج اخیر)
================================================ */
.match-table-wrap {
    background: var(--night-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.match-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.855rem;
    direction: rtl;
}
.match-table thead {
    background: rgba(0,229,255,0.06);
    border-bottom: 1px solid var(--border);
}
.match-table th {
    padding: 0.75rem 1rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.match-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-light);
    vertical-align: middle;
}
.match-table tr:last-child td { border-bottom: none; }
.match-table tr:hover td { background: rgba(255,255,255,0.02); }

.match-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
}
.match-result--w { background: rgba(105,255,71,0.15); color: var(--shop); }
.match-result--d { background: rgba(255,214,0,0.12); color: var(--lego); }
.match-result--l { background: rgba(255,61,0,0.15);  color: var(--cards); }

.match-score {
    font-weight: 800;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.92rem;
    color: #fff;
}
.match-score--w { color: var(--shop); }
.match-score--l { color: var(--cards); }

/* ================================================
   کارت‌های محتوای اضافه — Cards
   (timeline آنباکسینگ)
================================================ */
.unboxing-timeline {
    position: relative;
    padding-right: 2rem;
}
.unboxing-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 9px;
    width: 2px;
    background: linear-gradient(180deg, var(--cards), transparent);
}
.unbox-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-right: 1.25rem;
}
.unbox-item::before {
    content: '';
    position: absolute;
    right: -1.6rem;
    top: 0.3rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cards);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(255,61,0,0.2);
}
.unbox-item__date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cards);
    margin-bottom: 0.25rem;
    letter-spacing: 0.04em;
}
.unbox-item__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.unbox-item__desc {
    font-size: 0.845rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.unbox-item__cards {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.unbox-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    border: 1px solid;
}
.unbox-tag--gold   { color: #c8930a; border-color: rgba(200,147,10,0.3); background: rgba(200,147,10,0.08); }
.unbox-tag--silver { color: #777;    border-color: rgba(150,150,150,0.3); background: rgba(150,150,150,0.08); }
.unbox-tag--rare   { color: var(--cards); border-color: rgba(255,61,0,0.3); background: rgba(255,61,0,0.08); }
.unbox-tag--common { color: #888;    border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.04); }

/* ================================================
   کارت‌های محتوای اضافه — فروشگاه
   (بنر تخفیف + توضیحات ارسال)
================================================ */
.shop-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-radius: var(--r-md);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border: 1px solid rgba(105,255,71,0.15);
}
.shop-banner__text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}
.shop-banner__text p {
    font-size: 0.855rem;
    color: rgba(255,255,255,0.65);
}
.shop-banner__badge {
    font-size: 2rem;
    font-weight: 900;
    color: var(--shop);
    white-space: nowrap;
    line-height: 1;
}

/* جدول مشخصات ارسال */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    direction: rtl;
}
.shipping-table th,
.shipping-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid #f0e8d8;
}
.shipping-table thead th {
    background: #f7f3ec;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.shipping-table tbody td { color: var(--text-dark); }
.shipping-table tbody tr:last-child td { border-bottom: none; }
.shipping-table tbody tr:hover td { background: #fdf9f2; }

/* ================================================
   ریسپانسیو تکمیلی
================================================ */
@media (max-width: 640px) {
    .match-table th:nth-child(4),
    .match-table td:nth-child(4) { display: none; }

    .shop-banner { flex-direction: column; text-align: center; }

    .unboxing-timeline { padding-right: 1.5rem; }
}

/* table-responsive — inherited از Bootstrap، override برای RTL */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--r-md);
    border: 1px solid #e8e0d0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* ================================================
   کارت‌های لینک‌دار — فقط رفتار کلیک، بدون تغییر ظاهر
================================================ */
a.expertise-card--link,
a.portfolio-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.expertise-card--link:hover,
a.portfolio-card--link:hover {
    color: inherit;
}

/* عنوان ویدیو کلیک‌پذیر */
.video-card__title-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.video-card__title-link:hover h3 {
    color: var(--lego);
}

/* scroll offset برای anchor links — فضای navbar */
#mashin, #qaleh, #safineh, #shahr, #heyvanat, #stadium,
#nadir, #fcmobile, #unboxing {
    scroll-margin-top: 80px;
}

/* ================================================
   صفحات جزئیات آیتم (lego-item, card-item, shop-item)
================================================ */
.item-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}
.item-detail__visual { position: sticky; top: 90px; }
.item-detail__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.item-detail__text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}
.item-detail__meta {
    border: 1.5px solid #e8e0d0;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.item-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f0e8d8;
    font-size: 0.875rem;
}
.item-meta-row:last-child { border-bottom: none; }
.item-meta-label { color: var(--text-muted); font-weight: 500; }
.item-meta-val   { font-weight: 700; color: var(--text-dark); }
.item-detail__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
    .item-detail-wrap {
        grid-template-columns: 1fr;
    }
    .item-detail__visual { position: static; }
}

/* ================================================
   Navbar — Auth Links
================================================ */
.nav-auth-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
    align-self: center;
}

/* ورود */
.nav-auth-login {
    color: var(--text-muted) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 100px !important;
    padding: 5px 16px !important;
    font-size: 0.84rem !important;
    transition: border-color var(--transition), color var(--transition) !important;
}
.nav-auth-login:hover {
    color: var(--text-light) !important;
    border-color: rgba(255,255,255,0.35) !important;
    background: transparent !important;
}

/* ثبت‌نام */
.nav-auth-register {
    background: var(--lego) !important;
    color: var(--night) !important;
    border-radius: 100px !important;
    padding: 5px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    transition: background var(--transition), transform var(--transition) !important;
}
.nav-auth-register:hover {
    background: #ffe033 !important;
    color: var(--night) !important;
    transform: translateY(-1px);
}

/* حساب من */
.nav-auth-dashboard {
    color: var(--gaming) !important;
    border: 1.5px solid rgba(0,229,255,0.25) !important;
    border-radius: 100px !important;
    padding: 5px 16px !important;
    font-size: 0.84rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.nav-auth-dashboard:hover {
    background: rgba(0,229,255,0.07) !important;
    border-color: var(--gaming) !important;
}

/* پنل ادمین */
.nav-auth-panel {
    color: var(--lego) !important;
    border: 1.5px solid rgba(255,214,0,0.3) !important;
    border-radius: 100px !important;
    padding: 5px 16px !important;
    font-size: 0.84rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.nav-auth-panel:hover {
    background: rgba(255,214,0,0.07) !important;
    border-color: var(--lego) !important;
}

/* خروج */
.nav-auth-logout {
    color: #f87171 !important;
    font-size: 0.84rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 10px !important;
    border-radius: 8px !important;
}
.nav-auth-logout:hover {
    background: rgba(248,113,113,0.1) !important;
    color: #ef4444 !important;
}

/* موبایل: divider افقی بجای عمودی */
@media (max-width: 991px) {
    .nav-auth-divider {
        width: 100%;
        height: 1px;
        margin: 6px 0;
    }
}
