/* ============================================================
   mehdicoin — Public site design layer
   Scoped to .mg-shell so the admin panel stays untouched.
   ============================================================ */

html { scroll-behavior: smooth; }

.mg-shell ::selection { background: rgba(216, 178, 90, .34); color: #FFF8E7; }
.mg-shell a:focus-visible,
.mg-shell button:focus-visible,
.mg-shell input:focus-visible {
    outline: 2px solid var(--site-gold);
    outline-offset: 3px;
    border-radius: 10px;
}

.mg-shell {
    --site-ink: #070B14;
    --site-ink-2: #0A1020;
    --site-surface: rgba(255, 255, 255, .035);
    --site-surface-2: rgba(255, 255, 255, .06);
    --site-line: rgba(255, 255, 255, .08);
    --site-line-gold: rgba(216, 178, 90, .32);
    --site-gold: #D8B25A;
    --site-gold-2: #F4E3A8;
    --site-gold-3: #A67C24;
    --site-text: #E9EEF7;
    --site-dim: #A3B0C4;
    --site-mute: #6E7C93;
    --site-radius: 22px;
    --site-radius-sm: 14px;
    --site-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85);
    --site-maxw: 1240px;
    --site-gutter: clamp(16px, 4vw, 40px);
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(216, 178, 90, .13), transparent 62%),
        radial-gradient(900px 600px at -10% 8%, rgba(86, 132, 214, .10), transparent 60%),
        var(--site-ink);
    color: var(--site-text);
}

[data-theme="light"] .mg-shell {
    --site-ink: #F7F4EC;
    --site-ink-2: #FFFFFF;
    --site-surface: rgba(16, 24, 40, .035);
    --site-surface-2: rgba(16, 24, 40, .06);
    --site-line: rgba(16, 24, 40, .10);
    --site-line-gold: rgba(166, 124, 36, .34);
    --site-gold: #A67C24;
    --site-gold-2: #C9A24A;
    --site-gold-3: #7C5A12;
    --site-text: #101828;
    --site-dim: #475467;
    --site-mute: #667085;
    --site-shadow: 0 30px 60px -40px rgba(16, 24, 40, .35);
    background:
        radial-gradient(1100px 650px at 85% -10%, rgba(201, 162, 74, .16), transparent 62%),
        radial-gradient(900px 600px at -10% 8%, rgba(86, 132, 214, .10), transparent 60%),
        var(--site-ink);
}

/* ---------------- top note ---------------- */
.mg-shell .site-note {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 9px var(--site-gutter);
    font-size: 12.5px;
    letter-spacing: .2px;
    color: #0B1220;
    background: linear-gradient(90deg, #C79A3B, #F1DB9C 42%, #C79A3B);
    text-align: center;
}
.mg-shell .site-note span { display: inline-flex; align-items: center; gap: 7px; }
.mg-shell .site-note a {
    color: #0B1220;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------- header ---------------- */
.mg-shell .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px) saturate(140%);
    background: rgba(7, 11, 20, .72);
    border-bottom: 1px solid var(--site-line);
}
[data-theme="light"] .mg-shell .site-header { background: rgba(247, 244, 236, .82); }

.mg-shell .site-header__inner {
    max-width: var(--site-maxw);
    margin-inline: auto;
    padding: 12px var(--site-gutter);
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.4vw, 28px);
}

.mg-shell .site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.mg-shell .site-brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--site-line-gold);
    box-shadow: 0 10px 24px -12px rgba(216, 178, 90, .55);
}
.mg-shell .site-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mg-shell .site-brand__word {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .2px;
    text-align: right;
    line-height: 1.2;
    background: linear-gradient(120deg, #FFF6D8, #E7C56F 46%, #B98C2E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.mg-shell .site-brand__word em {
    font-style: normal;
    background: linear-gradient(120deg, #FFF6D8, #E7C56F 46%, #B98C2E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
[data-theme="light"] .mg-shell .site-brand__word {
    background: linear-gradient(120deg, #8A6415, #B98C2E 46%, #6E4E0C);
    -webkit-background-clip: text;
    background-clip: text;
}
.mg-shell .site-brand__sub {
    font-size: 10.5px;
    color: var(--site-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mg-shell .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.mg-shell .site-nav::-webkit-scrollbar { display: none; }

.mg-shell .site-nav a {
    position: relative;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--site-dim);
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}
.mg-shell .site-nav a:hover { color: var(--site-text); background: var(--site-surface); }
.mg-shell .site-nav a.active { color: var(--site-gold-2); }
.mg-shell .site-nav a.active::after {
    content: "";
    position: absolute;
    inset-inline: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--site-gold), transparent);
}

.mg-shell .site-actions { display: flex; align-items: center; gap: 8px; }

/* ---------------- buttons ---------------- */
.mg-shell .btn {
    --btn-h: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--btn-h);
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.mg-shell .btn:active { transform: translateY(1px); }
.mg-shell .btn--gold {
    color: #13100A;
    background: linear-gradient(135deg, #F7E6AE 0%, #E2C068 45%, #BF9333 100%);
    box-shadow: 0 16px 30px -16px rgba(216, 178, 90, .8), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mg-shell .btn--gold:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(216, 178, 90, .95); }
.mg-shell .btn--line {
    color: var(--site-text);
    background: var(--site-surface);
    border-color: var(--site-line);
}
.mg-shell .btn--line:hover { border-color: var(--site-line-gold); background: var(--site-surface-2); }
.mg-shell .btn--soft {
    color: var(--site-gold-2);
    background: rgba(216, 178, 90, .1);
    border-color: var(--site-line-gold);
}
.mg-shell .btn--soft:hover { background: rgba(216, 178, 90, .16); }
.mg-shell .btn--sm { --btn-h: 38px; padding: 0 15px; font-size: 13px; border-radius: 11px; }
.mg-shell .btn--lg { --btn-h: 52px; padding: 0 30px; font-size: 15px; border-radius: 16px; }

/* ---------------- layout ---------------- */
.mg-shell .site-main { flex: 1; }
.mg-shell .wrap {
    width: 100%;
    max-width: var(--site-maxw);
    margin-inline: auto;
    padding-inline: var(--site-gutter);
}
.mg-shell .sec { padding-block: clamp(44px, 6.5vw, 92px); }
.mg-shell .sec--tight { padding-block: clamp(26px, 4vw, 48px); }

/* ---------------- hero ---------------- */
.mg-shell .hero {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 8.5vw, 112px) 0 clamp(50px, 7vw, 92px);
    background:
        radial-gradient(900px 540px at 6% -10%, rgba(216, 178, 90, .18), transparent 62%),
        radial-gradient(760px 520px at 98% 8%, rgba(96, 140, 220, .11), transparent 64%),
        linear-gradient(180deg, #070B14 0%, #0A1020 58%, #070B14 100%);
}
[data-theme="light"] .mg-shell .hero {
    background:
        radial-gradient(900px 540px at 6% -10%, rgba(201, 162, 74, .22), transparent 62%),
        radial-gradient(760px 520px at 98% 8%, rgba(96, 140, 220, .1), transparent 64%),
        linear-gradient(180deg, #FBF8F1 0%, #F7F2E7 58%, #FBF8F1 100%);
}
.mg-shell .hero::after {
    content: "سکه مهدی";
    position: absolute;
    inset-inline-start: -2%;
    bottom: -12%;
    font-size: clamp(96px, 15vw, 220px);
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(216, 178, 90, .09);
    white-space: nowrap;
    pointer-events: none;
}
[data-theme="light"] .mg-shell .hero::after { -webkit-text-stroke-color: rgba(166, 124, 36, .14); }
.mg-shell .hero > .wrap { position: relative; z-index: 1; }
.mg-shell .hero__copy { max-width: 620px; }
.mg-shell .hero::before { opacity: .3; }

.mg-shell .hero__panel {
    position: relative;
    padding: clamp(22px, 2.6vw, 32px);
    border-radius: calc(var(--site-radius) + 8px);
    border: 1px solid var(--site-line-gold);
    background:
        radial-gradient(520px 200px at 85% 0%, rgba(216, 178, 90, .16), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(12px);
}
[data-theme="light"] .mg-shell .hero__panel {
    background:
        radial-gradient(520px 200px at 85% 0%, rgba(201, 162, 74, .18), transparent 62%),
        linear-gradient(180deg, #FFFFFF, #FBF8F0);
}
.mg-shell .hero__seal {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #14100A;
    background: linear-gradient(145deg, #F7E6AE, #C99C3C 60%, #8E6818);
    box-shadow: 0 16px 30px -14px rgba(216, 178, 90, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
    margin-bottom: 14px;
}
.mg-shell .hero__panel-title { margin: 10px 0 8px; font-size: 19px; line-height: 1.6; }
.mg-shell .hero__panel-text { margin: 0; color: var(--site-dim); font-size: 13.5px; line-height: 1.95; }
.mg-shell .hero__panel .check-list { margin: 16px 0 20px; gap: 9px; }
.mg-shell .hero__panel .check-list li { font-size: 13px; }
.mg-shell .hero__panel-note { display: block; margin-top: 10px; text-align: center; color: var(--site-mute); font-size: 11.5px; }
.mg-shell .btn--block { width: 100%; }
.mg-shell .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
    pointer-events: none;
}
[data-theme="light"] .mg-shell .hero::before {
    background-image:
        linear-gradient(rgba(16, 24, 40, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, .05) 1px, transparent 1px);
}
.mg-shell .hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}
.mg-shell .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--site-line-gold);
    background: rgba(216, 178, 90, .08);
    color: var(--site-gold-2);
    font-size: 12.5px;
    font-weight: 500;
}
.mg-shell .hero__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--site-gold);
    box-shadow: 0 0 0 4px rgba(216, 178, 90, .18);
}
.mg-shell .hero__title {
    margin: 20px 0 0;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.4px;
}
.mg-shell .hero__title em {
    font-style: normal;
    background: linear-gradient(120deg, #FFF7DD, #E8C873 48%, #B98C2E);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .mg-shell .hero__title em {
    background: linear-gradient(120deg, #8A6415, #B98C2E 48%, #6E4E0C);
    -webkit-background-clip: text;
    background-clip: text;
}
.mg-shell .hero__lead {
    margin: 18px 0 0;
    max-width: 56ch;
    color: var(--site-dim);
    font-size: clamp(14.5px, 1.2vw, 16.5px);
    line-height: 2;
}
.mg-shell .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mg-shell .hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--site-line);
}
.mg-shell .hero__stat strong {
    display: block;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--site-gold-2);
    line-height: 1.3;
}
.mg-shell .hero__stat span { display: block; font-size: 12px; color: var(--site-mute); }

/* hero visual */
.mg-shell .hero__visual {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
}
.mg-shell .coin-orbit {
    position: relative;
    width: min(380px, 92%);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 246, 214, .28), transparent 42%),
        conic-gradient(from 210deg, rgba(216, 178, 90, .05), rgba(216, 178, 90, .35), rgba(216, 178, 90, .05), rgba(216, 178, 90, .28), rgba(216, 178, 90, .05));
    box-shadow: inset 0 0 60px rgba(216, 178, 90, .18), 0 40px 90px -40px rgba(216, 178, 90, .55);
    animation: mg-float 9s ease-in-out infinite;
}
.mg-shell .coin-orbit::before,
.mg-shell .coin-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(216, 178, 90, .35);
}
.mg-shell .coin-orbit::before { inset: 12%; }
.mg-shell .coin-orbit::after { inset: 26%; border-style: dashed; opacity: .7; }
.mg-shell .coin-orbit__core {
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #F7E6AE, #C99C3C 55%, #8E6818);
    color: #16110A;
    font-weight: 800;
    font-size: clamp(12px, 1.4vw, 18px);
    letter-spacing: .2px;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, .5), 0 20px 40px -18px rgba(0, 0, 0, .8);
    direction: ltr;
}
.mg-shell .coin-orbit__tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(11, 16, 28, .84);
    border: 1px solid var(--site-line-gold);
    color: var(--site-text);
    font-size: 12.5px;
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(10px);
}
[data-theme="light"] .mg-shell .coin-orbit__tag { background: rgba(255, 255, 255, .92); }
.mg-shell .coin-orbit__tag--a { top: 6%; left: 0; }
.mg-shell .coin-orbit__tag--b { bottom: 12%; right: 0; }
.mg-shell .coin-orbit__tag--c { bottom: 0; left: 14%; }
.mg-shell .coin-orbit__tag i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--site-gold);
    box-shadow: 0 0 10px rgba(216, 178, 90, .9);
}

@keyframes mg-float {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-14px) }
}
@media (prefers-reduced-motion: reduce) {
    .mg-shell .coin-orbit { animation: none; }
}

/* ---------------- section heads ---------------- */
.mg-shell .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-gold);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .6px;
}
.mg-shell .eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--site-gold));
}
.mg-shell .sec__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: clamp(22px, 3vw, 36px);
}
.mg-shell .sec__title {
    margin: 10px 0 0;
    font-size: clamp(22px, 3vw, 33px);
    font-weight: 700;
    letter-spacing: -.3px;
}
.mg-shell .sec__desc { margin: 10px 0 0; color: var(--site-dim); max-width: 62ch; font-size: 14.5px; }
.mg-shell .sec__link {
    color: var(--site-gold-2);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.mg-shell .sec__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- grids ---------------- */
.mg-shell .grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.mg-shell .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mg-shell .grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.mg-shell .grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------------- tiles ---------------- */
.mg-shell .tile {
    position: relative;
    padding: clamp(20px, 2.4vw, 28px);
    border-radius: var(--site-radius);
    border: 1px solid var(--site-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    overflow: hidden;
}
[data-theme="light"] .mg-shell .tile {
    background: linear-gradient(180deg, #FFFFFF, #FBF9F4);
    box-shadow: 0 10px 30px -24px rgba(16, 24, 40, .4);
}
.mg-shell .tile::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 178, 90, .55), transparent);
    opacity: 0;
    transition: opacity .22s ease;
}
.mg-shell .tile:hover {
    transform: translateY(-6px);
    border-color: var(--site-line-gold);
    box-shadow: var(--site-shadow);
}
.mg-shell .tile:hover::before { opacity: 1; }
.mg-shell .tile__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--site-gold-2);
    background: rgba(216, 178, 90, .1);
    border: 1px solid var(--site-line-gold);
    margin-bottom: 16px;
}
.mg-shell .tile__title { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.mg-shell .tile__text { margin: 0; color: var(--site-dim); font-size: 13.8px; line-height: 1.95; }
.mg-shell .tile--link { display: block; color: inherit; text-decoration: none; }

/* ---------------- product cards ---------------- */
.mg-shell .prod {
    display: flex;
    flex-direction: column;
    border-radius: var(--site-radius);
    border: 1px solid var(--site-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
[data-theme="light"] .mg-shell .prod { background: linear-gradient(180deg, #FFFFFF, #FBF9F4); box-shadow: 0 12px 30px -26px rgba(16, 24, 40, .45); }
.mg-shell .prod:hover { transform: translateY(-6px); border-color: var(--site-line-gold); box-shadow: var(--site-shadow); }
.mg-shell .prod__media {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    color: var(--site-gold-2);
    background:
        radial-gradient(circle at 50% 40%, rgba(216, 178, 90, .22), transparent 60%),
        linear-gradient(160deg, rgba(216, 178, 90, .12), rgba(11, 16, 28, .2));
    border-bottom: 1px solid var(--site-line);
}
[data-theme="light"] .mg-shell .prod__media {
    background:
        radial-gradient(circle at 50% 40%, rgba(201, 162, 74, .22), transparent 60%),
        linear-gradient(160deg, #FFFDF7, #F4EEE0);
}
.mg-shell .prod__media img { width: 100%; height: 100%; object-fit: cover; }
.mg-shell .prod__media svg { width: 64px; height: 64px; opacity: .9; }
.mg-shell .prod__tag {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--site-gold-2);
    background: rgba(11, 16, 28, .72);
    border: 1px solid var(--site-line-gold);
    backdrop-filter: blur(6px);
}
[data-theme="light"] .mg-shell .prod__tag { background: rgba(255, 255, 255, .86); color: var(--site-gold); }
.mg-shell .prod__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mg-shell .prod__title { margin: 0; font-size: 17px; font-weight: 700; }
.mg-shell .prod__meta { margin: 0; color: var(--site-dim); font-size: 13px; line-height: 1.9; }
.mg-shell .prod__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mg-shell .spec {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    color: var(--site-dim);
    font-size: 11.5px;
}
.mg-shell .prod__foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--site-gold-2);
    font-size: 13px;
    font-weight: 600;
}
.mg-shell .prod__foot span { color: var(--site-mute); font-size: 12px; font-weight: 400; }

/* ---------------- article cards ---------------- */
.mg-shell .post {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(20px, 2.2vw, 26px);
    border-radius: var(--site-radius);
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.mg-shell .post:hover { transform: translateY(-5px); border-color: var(--site-line-gold); background: var(--site-surface-2); }
.mg-shell .post__cat {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--site-gold-2);
    background: rgba(216, 178, 90, .09);
    border: 1px solid var(--site-line-gold);
}
.mg-shell .post__title { margin: 6px 0 0; font-size: 17px; line-height: 1.6; }
.mg-shell .post__text {
    margin: 0;
    color: var(--site-dim);
    font-size: 13.6px;
    line-height: 1.95;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mg-shell .post__meta { margin-top: auto; padding-top: 8px; color: var(--site-mute); font-size: 12.5px; }

/* ---------------- split feature ---------------- */
.mg-shell .split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.mg-shell .split__panel {
    position: relative;
    padding: clamp(22px, 3vw, 34px);
    border-radius: calc(var(--site-radius) + 6px);
    border: 1px solid var(--site-line-gold);
    background:
        radial-gradient(600px 240px at 80% 0%, rgba(216, 178, 90, .16), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
    box-shadow: var(--site-shadow);
}
.mg-shell .check-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.mg-shell .check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--site-dim);
    font-size: 14px;
    line-height: 1.9;
}
.mg-shell .check-list li::before {
    content: "";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #FFF3C4, #D8B25A 60%, #97701F);
    box-shadow: 0 6px 14px -6px rgba(216, 178, 90, .9);
}

/* ---------------- CTA band ---------------- */
.mg-shell .cta-band {
    position: relative;
    overflow: hidden;
    margin-block: clamp(20px, 4vw, 48px);
    padding: clamp(30px, 5vw, 56px);
    border-radius: calc(var(--site-radius) + 8px);
    border: 1px solid var(--site-line-gold);
    background:
        radial-gradient(700px 300px at 15% 0%, rgba(216, 178, 90, .22), transparent 60%),
        linear-gradient(135deg, rgba(216, 178, 90, .12), rgba(11, 16, 28, .5));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
[data-theme="light"] .mg-shell .cta-band {
    background:
        radial-gradient(700px 300px at 15% 0%, rgba(201, 162, 74, .28), transparent 60%),
        linear-gradient(135deg, #FFFDF6, #F7F0E1);
}
.mg-shell .cta-band h2 { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 28px); }
.mg-shell .cta-band p { margin: 0; color: var(--site-dim); font-size: 14px; }

/* ---------------- page head / breadcrumb ---------------- */
.mg-shell .page-head {
    position: relative;
    padding: clamp(38px, 6vw, 76px) 0 clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--site-line);
    margin-bottom: clamp(24px, 4vw, 44px);
}
.mg-shell .page-head::after {
    content: "";
    position: absolute;
    inset-inline-start: var(--site-gutter);
    bottom: -1px;
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, var(--site-gold), transparent);
}
.mg-shell .page-head h1 {
    margin: 12px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -.4px;
}
.mg-shell .page-head p { margin: 12px 0 0; max-width: 68ch; color: var(--site-dim); font-size: 14.5px; }
.mg-shell .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--site-mute);
    font-size: 12.5px;
    padding-top: 18px;
}
.mg-shell .breadcrumb a { color: var(--site-dim); text-decoration: none; }
.mg-shell .breadcrumb a:hover { color: var(--site-gold-2); }

/* ---------------- product detail ---------------- */
.mg-shell .detail {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: start;
}
.mg-shell .detail__media {
    position: relative;
    min-height: 340px;
    display: grid;
    place-items: center;
    border-radius: calc(var(--site-radius) + 6px);
    border: 1px solid var(--site-line-gold);
    background:
        radial-gradient(circle at 50% 40%, rgba(216, 178, 90, .22), transparent 62%),
        linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
    color: var(--site-gold-2);
    overflow: hidden;
}
[data-theme="light"] .mg-shell .detail__media { background: linear-gradient(160deg, #FFFDF7, #F4EEE0); }
.mg-shell .detail__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}
.mg-shell .detail__body h1 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 36px); }
.mg-shell .detail__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mg-shell .detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mg-shell .spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-sm);
    overflow: hidden;
}
.mg-shell .spec-table th,
.mg-shell .spec-table td {
    padding: 12px 14px;
    text-align: right;
    font-size: 13.5px;
    border-bottom: 1px solid var(--site-line);
}
.mg-shell .spec-table tr:last-child th,
.mg-shell .spec-table tr:last-child td { border-bottom: 0; }
.mg-shell .spec-table th { color: var(--site-mute); font-weight: 500; width: 40%; background: var(--site-surface); }
.mg-shell .note {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--site-radius-sm);
    border: 1px solid var(--site-line-gold);
    background: rgba(216, 178, 90, .07);
    color: var(--site-dim);
    font-size: 13px;
    line-height: 1.9;
}

/* ---------------- prose ---------------- */
.mg-shell .prose { color: var(--site-dim); font-size: 15px; line-height: 2.05; }
.mg-shell .prose > :first-child { margin-top: 0; }
.mg-shell .prose h2 {
    margin: 34px 0 12px;
    font-size: clamp(19px, 2.2vw, 23px);
    color: var(--site-text);
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--site-gold);
    line-height: 1.6;
}
.mg-shell .prose h3 { margin: 26px 0 10px; font-size: 17px; color: var(--site-text); }
.mg-shell .prose p { margin: 0 0 16px; }
.mg-shell .prose ul, .mg-shell .prose ol { padding-inline-start: 22px; margin: 0 0 18px; }
.mg-shell .prose li { margin-bottom: 8px; }
.mg-shell .prose a { color: var(--site-gold-2); }
.mg-shell .prose img { max-width: 100%; height: auto; border-radius: var(--site-radius-sm); border: 1px solid var(--site-line); }
.mg-shell .prose blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border-inline-start: 3px solid var(--site-gold);
    background: var(--site-surface);
    border-radius: 0 var(--site-radius-sm) var(--site-radius-sm) 0;
    color: var(--site-text);
}
.mg-shell .prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; }
.mg-shell .prose th, .mg-shell .prose td { padding: 10px 12px; border: 1px solid var(--site-line); text-align: right; }
.mg-shell .prose th { background: var(--site-surface); color: var(--site-text); }

/* ---------------- about / contact ---------------- */
.mg-shell .side-stack { display: grid; gap: 14px; }
.mg-shell .side-card {
    padding: 20px;
    border-radius: var(--site-radius);
    border: 1px solid var(--site-line);
    background: var(--site-surface);
}
.mg-shell .side-card h3 { margin: 0 0 12px; font-size: 15px; color: var(--site-gold-2); }
.mg-shell .side-card p { margin: 0 0 8px; color: var(--site-dim); font-size: 13.5px; line-height: 1.9; }
.mg-shell .side-card a { color: var(--site-text); text-decoration: none; }
.mg-shell .side-card a:hover { color: var(--site-gold-2); }

.mg-shell .contact-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(20px, 2.4vw, 28px);
    border-radius: var(--site-radius);
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.mg-shell .contact-card:hover { transform: translateY(-5px); border-color: var(--site-line-gold); background: var(--site-surface-2); }
.mg-shell .contact-card__label { color: var(--site-mute); font-size: 12px; }
.mg-shell .contact-card__value { font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.mg-shell .contact-card__hint { color: var(--site-dim); font-size: 12.5px; }

/* ---------------- articles toolbar ---------------- */
.mg-shell .article-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
}
.mg-shell .search {
    flex: 1 1 240px;
    display: flex;
    gap: 8px;
}
.mg-shell .search input {
    flex: 1;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    color: var(--site-text);
    font-family: inherit;
    font-size: 13.5px;
}
.mg-shell .search input:focus { outline: none; border-color: var(--site-line-gold); box-shadow: 0 0 0 3px rgba(216, 178, 90, .14); }
.mg-shell .tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-shell .tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    color: var(--site-dim);
    font-size: 12.5px;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.mg-shell .tab:hover { color: var(--site-text); border-color: var(--site-line-gold); }
.mg-shell .tab.active { color: #14100A; background: linear-gradient(135deg, #F4E3A8, #D8B25A); border-color: transparent; font-weight: 700; }

/* ---------------- empty ---------------- */
.mg-shell .empty {
    padding: clamp(30px, 5vw, 60px);
    border-radius: var(--site-radius);
    border: 1px dashed var(--site-line);
    text-align: center;
    color: var(--site-dim);
}

/* ---------------- footer ---------------- */
.mg-shell .site-footer {
    position: relative;
    margin-top: clamp(40px, 6vw, 80px);
    border-top: 1px solid var(--site-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 30%);
}
.mg-shell .site-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 178, 90, .55), transparent);
}
.mg-shell .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: clamp(20px, 3vw, 44px);
    padding-block: clamp(34px, 5vw, 60px);
}
.mg-shell .footer-brand__word {
    font-size: 22px;
    font-weight: 700;
    direction: ltr;
    text-align: right;
    background: linear-gradient(120deg, #FFF6D8, #E7C56F 46%, #B98C2E);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .mg-shell .footer-brand__word {
    background: linear-gradient(120deg, #8A6415, #B98C2E 46%, #6E4E0C);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="light"] .mg-shell .site-footer {
    background: linear-gradient(180deg, #FFFDF7, rgba(255, 253, 247, .2) 40%);
}
[data-theme="light"] .mg-shell .site-note { color: #241B07; }
[data-theme="light"] .mg-shell .coin-orbit {
    box-shadow: inset 0 0 50px rgba(166, 124, 36, .16), 0 40px 80px -46px rgba(166, 124, 36, .5);
}

/* contrast tweaks for the light theme */
[data-theme="light"] .mg-shell .hero__badge,
[data-theme="light"] .mg-shell .eyebrow,
[data-theme="light"] .mg-shell .sec__link,
[data-theme="light"] .mg-shell .post__cat,
[data-theme="light"] .mg-shell .tile__icon,
[data-theme="light"] .mg-shell .side-card h3,
[data-theme="light"] .mg-shell .prod__foot strong,
[data-theme="light"] .mg-shell .hero__stat strong {
    color: var(--site-gold-3);
}
[data-theme="light"] .mg-shell .hero__badge { background: rgba(166, 124, 36, .08); }
[data-theme="light"] .mg-shell .coin-orbit__tag { color: #1B2434; }
.mg-shell .footer-brand p { margin: 10px 0 0; color: var(--site-dim); font-size: 13px; line-height: 2; max-width: 34ch; }
.mg-shell .footer-title { margin: 0 0 14px; font-size: 13.5px; color: var(--site-text); font-weight: 700; }
.mg-shell .footer-links { display: grid; gap: 9px; }
.mg-shell .footer-links a {
    color: var(--site-dim);
    font-size: 13px;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
    width: fit-content;
}
.mg-shell .footer-links a:hover { color: var(--site-gold-2); transform: translateX(-3px); }
.mg-shell .footer-contact { display: grid; gap: 10px; color: var(--site-dim); font-size: 13px; }
.mg-shell .footer-contact a { color: var(--site-text); text-decoration: none; }
.mg-shell .footer-contact a:hover { color: var(--site-gold-2); }
.mg-shell .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-block: 18px 22px;
    border-top: 1px solid var(--site-line);
    color: var(--site-mute);
    font-size: 12px;
}
.mg-shell .footer-bottom a { color: var(--site-mute); text-decoration: none; }
.mg-shell .footer-bottom a:hover { color: var(--site-gold-2); }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
    .mg-shell .hero__grid { grid-template-columns: 1fr; }
    .mg-shell .hero__panel { display: none; }
    .mg-shell .hero__visual { order: -1; min-height: 300px; }
    .mg-shell .coin-orbit { width: min(300px, 76%); }
    .mg-shell .split { grid-template-columns: 1fr; }
    .mg-shell .detail { grid-template-columns: 1fr; }
    .mg-shell .footer-grid { grid-template-columns: 1fr 1fr; }
    .mg-shell .site-actions .btn--line { display: none; }
}

@media (max-width: 760px) {
    .mg-shell .hero { padding: 34px 0 48px; }
    .mg-shell .hero::after { display: none; }
    .mg-shell .hero__panel { margin-top: 4px; }
    .mg-shell .hero__visual { display: none; }
    .mg-shell .site-header__inner { flex-wrap: wrap; row-gap: 8px; }
    .mg-shell .site-nav { order: 3; width: 100%; margin: 0; padding-bottom: 4px; }
    .mg-shell .site-nav a { padding: 8px 11px; font-size: 13px; }
    .mg-shell .site-actions { margin-inline-start: auto; }
    .mg-shell .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

    .mg-shell .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .mg-shell .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
    .mg-shell .site-brand__sub { display: none; }
    .mg-shell .site-brand__logo { width: 40px; height: 40px; }
    .mg-shell .hero__actions .btn { width: 100%; }
    .mg-shell .site-actions .btn { padding-inline: 12px; }
}
