@font-face{
    font-family:Estedad;
    src:url('/webfonts/Estedad-Regular.woff2') format('woff2');
    font-weight:400;
    font-style:normal;
    font-display:swap;
}
@font-face{
    font-family:Estedad;
    src:url('/webfonts/Estedad-SemiBold.woff2') format('woff2');
    font-weight:600;
    font-style:normal;
    font-display:swap;
}
:root{
    --bg:#0a0f15;
    --surface:#111821;
    --surface2:#18212c;
    --ink:#e8edf2;
    --text:#c5ced8;
    --muted:#8f9cab;
    --line:#25313e;
    --brand:#FFB347;
    --brand2:#e58f2f;
}
*{box-sizing:border-box}
html,body{
    margin:0!important;
    padding:0!important;
    min-height:100%;
    background:#0a0f15!important;
}
body{
    color:var(--ink);
    font-family:Estedad,Tahoma,sans-serif;
    line-height:2;
    font-size:15px;
    background:
        radial-gradient(circle at 15% 0%,rgba(255,179,71,.055),transparent 28%),
        #0a0f15!important;
}
a{text-decoration:none;color:inherit}
.reading-progress{
    position:fixed;
    top:0;
    right:0;
    width:0;
    height:3px;
    background:var(--brand);
    z-index:99999;
    box-shadow:0 0 14px rgba(255,179,71,.35);
}
main{min-height:100vh;background:transparent!important}

/* ===== بخش هدر صفحه (تیتر اصلی) ===== */
.hero{
    padding: 30px 20px 40px; /* فاصله بالا از 86px به 30px کاهش یافت */
    border-bottom:1px solid rgba(255,255,255,.055);
}
.hero-inner{
    width:min(1040px,100%);
    margin:auto;
}
.section-kicker{
    display:inline-block;
    color:var(--brand);
    font-size:12px;
    font-weight:600;
    letter-spacing:.08em;
}
.hero h1{
    margin: 0 0 12px; /* مارجین بالا صفر شد */
    font-size:clamp(18px,3.2vw,40px);
    line-height:1.6;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.hero p{
    max-width:790px;
    margin:0;
    color:var(--text);
    font-size:16px;
    line-height:2.15;
}
.hero p + p{margin-top:14px}

/* ===== بخش لیست مقالات ===== */
.articles-wrap{
    width:min(1040px,100%);
    margin:auto;
    padding:42px 20px 80px;
}
.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:20px;
}
.section-head h2,.admin-head h2{
    margin:3px 0 0;
    font-size:23px;
    line-height:1.6;
}
.count,.admin-badge{
    border:1px solid var(--line);
    background:rgba(255,255,255,.025);
    color:var(--muted);
    border-radius:999px;
    padding:4px 12px;
    font-size:12px;
    white-space:nowrap;
}
.article-list{
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    background:rgba(17,24,33,.82);
    box-shadow:0 18px 55px rgba(0,0,0,.16);
}
.article-item{
    min-height:88px;
    display:grid;
    grid-template-columns:62px 1fr 38px;
    align-items:center;
    gap:14px;
    padding:14px 22px;
    border-bottom:1px solid rgba(255,255,255,.055);
    transition:background .18s ease,transform .18s ease;
}
.article-item:last-child{border-bottom:0}
.article-item:hover{
    background:rgba(255,179,71,.045);
}
.number{
    color:var(--brand);
    font-size:13px;
    direction:ltr;
    text-align:center;
}
.article-main{
    min-width:0;
    display:block;
    color:inherit;
}
.article-main strong{
    display:block;
    color:var(--ink);
    font-size:15px;
    font-weight:600;
    line-height:1.9;
    transition:color .18s ease;
}
.article-item:hover .article-main strong{color:var(--brand)}
.article-main small{
    display:block;
    margin-top:2px;
    color:var(--muted);
    font-size:11px;
}
.arrow{
    color:var(--brand);
    font-size:20px;
    transition:transform .18s ease;
}
.article-item:hover .arrow{transform:translateX(-4px)}

/* ===== بخش ادمین ===== */
.admin-box{
    margin-top:38px;
    padding:25px;
    border:1px solid rgba(255,179,71,.22);
    border-radius:18px;
    background:
        linear-gradient(135deg,rgba(255,179,71,.045),transparent 48%),
        var(--surface);
}
.admin-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}
.admin-head p{
    margin:4px 0 0;
    color:var(--muted);
    font-size:13px;
}
.admin-badge{
    color:var(--brand);
    border-color:rgba(255,179,71,.25);
}
.admin-form{
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:12px;
    align-items:end;
    margin-top:22px;
}
.admin-form label{display:block}
.admin-form label>span{
    display:block;
    margin-bottom:6px;
    color:var(--text);
    font-size:12px;
}
.admin-form input{
    width:100%;
    height:48px;
    border:1px solid var(--line);
    outline:none;
    border-radius:11px;
    background:#0d141c;
    color:var(--ink);
    padding:0 13px;
    font:inherit;
    font-size:13px;
    transition:border-color .18s ease,box-shadow .18s ease;
}
.admin-form input:focus{
    border-color:rgba(255,179,71,.6);
    box-shadow:0 0 0 3px rgba(255,179,71,.08);
}
.admin-form button{
    height:48px;
    border:0;
    border-radius:11px;
    padding:0 20px;
    cursor:pointer;
    background:var(--brand);
    color:#1b160e;
    font:600 13px Estedad,Tahoma,sans-serif;
}
.admin-form button:hover{background:#ffc36d}
.notice{
    margin-top:18px;
    padding:10px 13px;
    border-radius:10px;
    font-size:12px;
}
.notice.success{
    color:#d9f3e3;
    background:rgba(70,180,110,.09);
    border:1px solid rgba(70,180,110,.2);
}
.notice.error{
    color:#ffd9d9;
    background:rgba(210,70,70,.09);
    border:1px solid rgba(210,70,70,.2);
}

/* ===== Admin actions ===== */
.admin-actions{
    display:flex;
    align-items:center;
    gap:6px;
    justify-self:end;
}
.btn-mini{
    display:inline-block;
    border:1px solid var(--line);
    background:rgba(255,255,255,.025);
    color:var(--muted);
    border-radius:8px;
    padding:4px 10px;
    font:600 11px Estedad,Tahoma,sans-serif;
    cursor:pointer;
    line-height:1.7;
    transition:border-color .18s ease,color .18s ease,background .18s ease;
}
.btn-mini:hover{color:var(--ink);border-color:rgba(255,255,255,.25)}
.btn-mini.edit:hover{color:var(--brand);border-color:rgba(255,179,71,.5);background:rgba(255,179,71,.07)}
.btn-mini.delete:hover{color:#ff9a9a;border-color:rgba(210,70,70,.5);background:rgba(210,70,70,.08)}
.admin-form + div a.btn-mini:hover{color:var(--ink);border-color:rgba(255,255,255,.25)}

/* ===== ریسپانسیو (موبایل و تبلت) ===== */
@media(max-width:760px){
    .hero{ padding: 20px 16px 30px; } /* کاهش فاصله در موبایل */
    .articles-wrap{padding:30px 16px 60px}
    .hero h1{font-size:31px}
    .hero p{font-size:14px}
    .section-head{align-items:flex-start}
    .section-head h2,.admin-head h2{font-size:20px}
    .article-item{
        grid-template-columns:38px 1fr 25px;
        gap:9px;
        padding:13px 13px;
        min-height:82px;
    }
    .article-main strong{font-size:13px}
    .admin-box{padding:18px}
    .admin-form{grid-template-columns:1fr}
    .admin-form button{width:100%}
}

/* ===== Admin actions — mobile ===== */
@media(max-width:760px){
    .admin-actions{
        flex-direction:column;
        align-items:stretch;
        gap:4px;
    }
    .btn-mini{
        padding:3px 8px;
        font-size:10px;
        text-align:center;
    }
    .article-item{grid-template-columns:32px 1fr auto}
}