/*
Theme Name: کانون فرهنگی (Cultural Hub)
Theme URI: https://sobhaniha.ir
Author: mahdi panahi
Description: پوسته‌ی اختصاصی مرکز فرهنگی، هماهنگ با افزونه‌ی «حضور و غیاب» (Attendance Excel Pro). یک نوار استوری در بالای صفحه (مثل اینستاگرام) با حلقه‌ی رنگی برگرفته از رنگ‌های رسمی افزونه (سبز/آبی/بنفش/کهربایی) دارد.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: cultural-hub
*/

/* ==========================================================================
   کانون فرهنگی — سیستم طراحی
   هماهنگ با رنگ‌های رسمی افزونه‌ی حضور و غیاب:
   سبز = حضور روزانه، آبی = استخر، بنفش = فوتبال، کهربایی = خزانه‌داری
   ========================================================================== */

:root {
    --ch-ink: #0F172A;
    --ch-body: #334155;
    --ch-muted: #64748B;
    --ch-border: #E2E8F0;
    --ch-bg: #F8FAFC;
    --ch-surface: #FFFFFF;

    --ch-green: #16A34A;
    --ch-green-dark: #15803D;
    --ch-blue: #2563EB;
    --ch-blue-dark: #1D4ED8;
    --ch-violet: #7C3AED;
    --ch-violet-dark: #6D28D9;
    --ch-amber: #D97706;
    --ch-amber-dark: #B45309;

    --ch-radius: 18px;
    --ch-radius-sm: 12px;
    --ch-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --ch-shadow: 0 1px 2px rgba(15,23,42,.05), 0 16px 32px -16px rgba(15,23,42,.16);
    --ch-shadow-lg: 0 4px 8px rgba(15,23,42,.04), 0 28px 56px -20px rgba(15,23,42,.24);
    --ch-container: 1180px;
    --ch-ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--ch-bg);
    color: var(--ch-body);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--ch-ink);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 .5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: inherit; }
button { font-family: inherit; }

.ch-container {
    max-width: var(--ch-container);
    margin: 0 auto;
    padding: 0 24px;
}

.ch-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ch-blue);
    background: rgba(37,99,235,.08);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ==========================================================================
   هدر
   ========================================================================== */

.ch-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ch-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.ch-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
    max-width: var(--ch-container);
    margin: 0 auto;
}

.ch-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--ch-ink);
    flex-shrink: 0;
}

.ch-logo-img {
    height: 62px;
    width: auto;
    display: block;
}

.ch-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ch-green), var(--ch-blue) 40%, var(--ch-violet) 75%, var(--ch-amber));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 6px 16px -6px rgba(37,99,235,.5);
}

.ch-nav { flex: 1; }

.ch-nav-list {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.ch-nav-list a {
    position: relative;
    font-weight: 600;
    color: var(--ch-body);
    font-size: 15px;
    transition: color .15s var(--ch-ease);
    padding: 4px 0;
}

.ch-nav-list a::after {
    content: '';
    position: absolute;
    right: 0; left: 0; bottom: -3px;
    height: 2px;
    background: var(--ch-blue);
    transform: scaleX(0);
    transition: transform .2s var(--ch-ease);
}

.ch-nav-list a:hover { color: var(--ch-blue); }
.ch-nav-list a:hover::after { transform: scaleX(1); }

.ch-header-cta { flex-shrink: 0; }

.ch-nav-toggle {
    display: none;
    background: var(--ch-bg);
    border: 1px solid var(--ch-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 9px 10px;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.ch-nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ch-ink);
    border-radius: 2px;
    transition: transform .2s var(--ch-ease), opacity .2s var(--ch-ease);
}

.ch-nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ch-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.ch-nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ch-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ch-ease);
}

.ch-nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

body.ch-scroll-lock {
    overflow: hidden;
}

/* ==========================================================================
   نوار استوری (سیگنیچر صفحه — حلقه‌های رنگی برگرفته از افزونه)
   ========================================================================== */

.ch-story-bar {
    background: var(--ch-surface);
    border-bottom: 1px solid var(--ch-border);
    padding: 18px 0;
}

.ch-story-list {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ch-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 76px;
}

.ch-story-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--ch-surface);
    padding: 3px;
    display: flex;
    overflow: hidden;
}

.ch-story-avatar-inner img,
.ch-story-avatar-inner .ch-story-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ch-story-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ch-bg);
    color: var(--ch-muted);
    font-weight: 800;
    font-size: 20px;
}

.ch-story-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    background: rgba(15,23,42,.28);
    border-radius: 50%;
    pointer-events: none;
}

.ch-story-avatar { position: relative; }

.ch-story-video-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: var(--ch-radius) var(--ch-radius) 0 0;
    overflow: hidden;
}

.ch-story-video-wrap iframe,
.ch-story-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.ch-ring-green   { background: linear-gradient(135deg, #4ADE80, var(--ch-green-dark)); }
.ch-ring-blue    { background: linear-gradient(135deg, #60A5FA, var(--ch-blue-dark)); }
.ch-ring-violet  { background: linear-gradient(135deg, #A78BFA, var(--ch-violet-dark)); }
.ch-ring-amber   { background: linear-gradient(135deg, #FBBF24, var(--ch-amber-dark)); }

.ch-story-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ch-body);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 76px;
}

/* مودال استوری */
.ch-story-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15,23,42,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ch-story-modal[hidden] { display: none; }

.ch-story-modal-bar {
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
}

.ch-ring-green-solid   { background: var(--ch-green); }
.ch-ring-blue-solid    { background: var(--ch-blue); }
.ch-ring-violet-solid  { background: var(--ch-violet); }
.ch-ring-amber-solid   { background: var(--ch-amber); }

.ch-story-modal-media,
.ch-story-modal-body {
    background: var(--ch-surface);
    max-width: 420px;
    width: 100%;
}

.ch-story-modal-media { border-radius: var(--ch-radius) var(--ch-radius) 0 0; overflow: hidden; max-height: 320px; }
.ch-story-modal-media img { width: 100%; height: 100%; object-fit: cover; }

.ch-story-modal-body {
    border-radius: 0 0 var(--ch-radius) var(--ch-radius);
    padding: 24px;
    box-shadow: var(--ch-shadow);
}

.ch-story-modal:has(.ch-story-modal-media) .ch-story-modal-body { border-radius: 0 0 var(--ch-radius) var(--ch-radius); }
.ch-story-modal-body:only-child { border-radius: var(--ch-radius); }

.ch-story-close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(15,23,42,.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   دکمه‌ها
   ========================================================================== */

.ch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--ch-radius-sm);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s var(--ch-ease), box-shadow .15s var(--ch-ease), background .15s var(--ch-ease);
}

.ch-btn:active { transform: translateY(0) scale(.98); }

.ch-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,.35);
}

.ch-btn-lg { padding: 14px 28px; font-size: 15px; }

.ch-btn-primary {
    background: var(--ch-blue);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(37,99,235,.55);
}
.ch-btn-primary:hover { background: var(--ch-blue-dark); transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(37,99,235,.5); }

.ch-btn-outline {
    background: var(--ch-surface);
    color: var(--ch-ink);
    border-color: var(--ch-border);
}
.ch-btn-outline:hover { border-color: var(--ch-blue); color: var(--ch-blue); transform: translateY(-2px); }

/* ==========================================================================
   هیرو
   ========================================================================== */

.ch-hero {
    position: relative;
    padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
    overflow: hidden;
    isolation: isolate;
}

.ch-hero::before,
.ch-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
}

.ch-hero::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -60px;
    background: linear-gradient(135deg, var(--ch-green), var(--ch-blue));
}

.ch-hero::after {
    width: 380px;
    height: 380px;
    bottom: -160px;
    left: -100px;
    background: linear-gradient(135deg, var(--ch-violet), var(--ch-amber));
}

.ch-hero-inner { max-width: 760px; text-align: center; margin: 0 auto; position: relative; }

.ch-hero-title {
    font-size: clamp(28px, 5vw, 44px);
    margin-bottom: 18px;
    letter-spacing: -.5px;
}

.ch-hero-sub {
    font-size: clamp(15px, 2vw, 17.5px);
    color: var(--ch-muted);
    margin-bottom: 30px;
    max-width: 560px;
    margin-inline: auto;
}

.ch-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* ==========================================================================
   بخش برنامه‌ها
   ========================================================================== */

.ch-section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.ch-section-head h2 { font-size: clamp(22px, 3vw, 28px); }

.ch-programs { padding: 20px 0 64px; }

.ch-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.ch-program-card {
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius);
    padding: 28px 24px;
    box-shadow: var(--ch-shadow-sm);
    position: relative;
    transition: transform .2s var(--ch-ease), box-shadow .2s var(--ch-ease), border-color .2s var(--ch-ease);
}

.ch-program-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    border-radius: var(--ch-radius) var(--ch-radius) 0 0;
    background: var(--ch-accent, var(--ch-blue));
}

.ch-program-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 20px 34px -18px color-mix(in srgb, var(--ch-accent, var(--ch-blue)) 55%, transparent);
}

.ch-program-card .ch-program-icon {
    font-size: 24px;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ch-accent, var(--ch-blue)) 12%, white);
    margin-bottom: 16px;
}

.ch-program-card h3 { font-size: 18px; margin-bottom: 8px; }
.ch-program-card p { font-size: 14px; color: var(--ch-muted); margin: 0; }

.ch-theme-green  { --ch-accent: var(--ch-green); }
.ch-theme-blue   { --ch-accent: var(--ch-blue); }
.ch-theme-violet { --ch-accent: var(--ch-violet); }
.ch-theme-amber  { --ch-accent: var(--ch-amber); }

/* ==========================================================================
   اخبار / اطلاعیه‌ها
   ========================================================================== */

.ch-news { padding: 20px 0 64px; }

.ch-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.ch-news-card {
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius);
    overflow: hidden;
    box-shadow: var(--ch-shadow-sm);
    transition: transform .2s var(--ch-ease), box-shadow .2s var(--ch-ease);
    display: block;
}

.ch-news-card:hover { transform: translateY(-4px); box-shadow: var(--ch-shadow-lg); }

.ch-news-thumb { aspect-ratio: 16/10; overflow: hidden; }
.ch-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ch-ease); }
.ch-news-card:hover .ch-news-thumb img { transform: scale(1.06); }

.ch-news-body { padding: 20px; }
.ch-news-date { font-size: 12px; color: var(--ch-muted); font-weight: 600; }
.ch-news-body h3 { font-size: 16px; margin: 8px 0; }
.ch-news-body p { font-size: 13px; color: var(--ch-muted); margin: 0; }

/* ==========================================================================
   فراخوان نهایی
   ========================================================================== */

.ch-cta {
    background: linear-gradient(135deg, var(--ch-green) 0%, var(--ch-blue) 45%, var(--ch-violet) 80%, var(--ch-amber) 100%);
    padding: 56px 0;
    text-align: center;
    color: #fff;
}

.ch-cta h2, .ch-cta p { color: #fff; }
.ch-cta p { opacity: .9; margin-bottom: 24px; }
.ch-cta .ch-btn-primary { background: #fff; color: var(--ch-ink); }
.ch-cta .ch-btn-primary:hover { background: #f1f5f9; }

/* ==========================================================================
   صفحه/پست تکی
   ========================================================================== */

.ch-single-wrap { padding: 48px 0; }
.ch-single-page { max-width: 780px; margin: 0 auto; }
.ch-single-title { font-size: 30px; }
.ch-single-thumb { border-radius: var(--ch-radius); overflow: hidden; margin: 20px 0; }
.ch-single-content { font-size: 16px; }
.ch-single-content p { margin: 0 0 1.2em; }
.ch-empty { text-align: center; color: var(--ch-muted); padding: 60px 0; }

/* ==========================================================================
   فوتر
   ========================================================================== */

.ch-footer { background: var(--ch-ink); color: #CBD5E1; margin-top: 40px; }

.ch-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 56px 24px;
    max-width: var(--ch-container);
    margin: 0 auto;
}

.ch-footer-logo { color: #fff; margin-bottom: 12px; }
.ch-footer-desc { font-size: 14px; color: #94A3B8; }

.ch-footer-widget-title { color: #fff; font-size: 15px; margin-bottom: 14px; }

.ch-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-footer-menu a { font-size: 14px; color: #CBD5E1; }
.ch-footer-menu a:hover { color: #fff; }

.ch-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
}

/* ==========================================================================
   واکنش‌گرایی
   ========================================================================== */

@media (max-width: 900px) {
    .ch-header-cta { display: none; }
    .ch-nav-toggle { display: flex; }

    .ch-nav {
        position: fixed;
        top: 0;
        right: -300px;
        bottom: 0;
        width: 280px;
        max-width: 82vw;
        background: var(--ch-surface);
        z-index: 50;
        padding: 90px 26px 26px;
        transition: right .28s var(--ch-ease);
        box-shadow: -12px 0 40px rgba(15,23,42,.18);
        flex: none;
    }

    .ch-nav.ch-nav-open { right: 0; }

    .ch-nav-list {
        flex-direction: column;
        gap: 6px;
    }

    .ch-nav-list a {
        display: block;
        padding: 12px 6px;
        font-size: 16px;
        border-bottom: 1px solid var(--ch-border);
    }

    .ch-nav-list a::after { display: none; }

    .ch-nav-drawer-cta {
        display: block;
        margin-top: 20px;
        text-align: center;
    }
}

@media (min-width: 901px) {
    .ch-nav-drawer-cta { display: none; }
}

@media (max-width: 900px) {
    .ch-programs-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .ch-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .ch-container { padding: 0 18px; }
    .ch-header-inner { padding: 12px 18px; }
    .ch-hero { padding: 44px 0 36px; }
    .ch-hero-actions { flex-direction: column; align-items: stretch; }
    .ch-hero-actions .ch-btn { width: 100%; }
    .ch-programs-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ch-program-card { padding: 20px 16px; }
    .ch-program-card .ch-program-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 12px; }
    .ch-news-grid { grid-template-columns: 1fr; }
    .ch-footer-inner { grid-template-columns: 1fr; padding: 36px 18px; }
    .ch-cta { padding: 40px 0; }
    .ch-story-avatar { width: 58px; height: 58px; }
    .ch-story-item { width: 68px; }
    .ch-story-label { max-width: 68px; }
}

@media (max-width: 380px) {
    .ch-programs-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   انیمیشن‌های ظاهرشدن هنگام اسکرول
   ========================================================================== */

.ch-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ch-ease), transform .6s var(--ch-ease);
}

.ch-reveal.ch-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ch-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   بازطراحی برگه‌ی پروفایل کاربری (شورت‌کد [aep_profile] افزونه‌ی حضور و غیاب)
   این قوانین با انتخابگر «body» جلو هر کلاس، عمداً از استایل درونی خودِ افزونه
   (که در body صفحه چاپ می‌شود) اولویت بیشتری می‌گیرند تا این ظاهر جدید همیشه برنده باشد.
   ========================================================================== */

body .aep-profile-box {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    max-width: 720px;
    margin: 40px auto;
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius);
    padding: 0 0 28px;
    box-shadow: var(--ch-shadow);
    overflow: hidden;
}

body .aep-profile-guest {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 28px;
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius);
    color: var(--ch-muted);
    box-shadow: var(--ch-shadow-sm);
}

body .aep-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0;
    padding: 28px 28px 24px;
    background: linear-gradient(135deg, rgba(22,163,74,.06), rgba(37,99,235,.06) 45%, rgba(124,58,237,.06) 80%, rgba(217,119,6,.06));
    border-bottom: 1px solid var(--ch-border);
}

body .aep-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ch-green), var(--ch-blue) 40%, var(--ch-violet) 75%, var(--ch-amber));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 14px -4px rgba(37,99,235,.4);
}

body .aep-profile-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--ch-ink);
    font-weight: 800;
}

body .aep-profile-sub {
    margin: 5px 0 0;
    color: var(--ch-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
}

body .aep-profile-coins {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(217,119,6,.25);
    padding: 12px 22px;
    border-radius: 14px;
    box-shadow: var(--ch-shadow-sm);
}

body .aep-coin-icon { font-size: 28px; }

body .aep-profile-coins strong {
    font-size: 21px;
    color: var(--ch-amber-dark);
    font-weight: 800;
}

body .aep-profile-coins-label {
    font-size: 11px;
    color: var(--ch-amber-dark);
    font-weight: 700;
}

body .aep-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    background: var(--ch-bg);
    padding: 18px;
    border-radius: var(--ch-radius-sm);
    margin: 24px 28px;
    font-size: 13.5px;
}

body .aep-profile-info-grid div {
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    border-radius: 10px;
    padding: 10px 14px;
}

body .aep-profile-info-grid span {
    color: var(--ch-muted);
    font-weight: 700;
    display: block;
    font-size: 11.5px;
    margin-bottom: 3px;
}

body .aep-profile-box h3 {
    font-size: 15px;
    margin: 0 28px 14px;
    color: var(--ch-ink);
    font-weight: 800;
    padding-top: 4px;
}

body .aep-profile-table {
    width: calc(100% - 56px);
    margin: 0 28px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-sm);
    overflow: hidden;
}

body .aep-profile-table th {
    background: var(--ch-bg);
    font-size: 12px;
    color: var(--ch-muted);
    font-weight: 700;
}

body .aep-profile-table th,
body .aep-profile-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--ch-border);
    font-size: 13.5px;
}

body .aep-profile-table tr:last-child td { border-bottom: none; }
body .aep-profile-table tbody tr:hover { background: var(--ch-bg); }

body .aep-badge {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

body .aep-badge-present { background: rgba(22,163,74,.12); color: var(--ch-green-dark); }
body .aep-badge-absent  { background: rgba(220,38,38,.1); color: #991B1B; }

body .aep-profile-empty {
    color: var(--ch-muted);
    font-size: 13.5px;
    margin: 0 28px;
}

@media (max-width: 600px) {
    body .aep-profile-box { margin: 20px 12px; }
    body .aep-profile-header { flex-direction: column; text-align: center; padding: 24px 20px; }
    body .aep-profile-coins { margin: 6px auto 0; }
    body .aep-profile-info-grid,
    body .aep-profile-table,
    body .aep-profile-box h3,
    body .aep-profile-empty { margin-right: 16px; margin-left: 16px; width: auto; }
}
