/* ============================================================
   Nikrad.css - فایل استایل یکپارچه سامانه نیک‌راد
   شامل تمام استایل‌های اختصاصی، ویجت‌ها، انیمیشن‌ها و ریسپانسیو
   ============================================================ */

/* ============================================================
   RESET & VARIABLES
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #0d7a5f;
    --primary-light: #1a9b7a;
    --primary-dark: #095e49;
    --accent: #d4af37;
    --accent-light: #e8c94a;
    --bg: #eef2f0;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-solid: #ffffff;
    --hover: rgba(13, 122, 95, 0.05);
    --text: #1a2332;
    --text-secondary: #3d4f63;
    --text-muted: #8b99a8;
    --border: rgba(0, 0, 0, 0.06);
    --border-solid: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --glow: 0 0 40px rgba(13, 122, 95, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Vazirmatn', system-ui, sans-serif;
    --danger: #d4574e;
    --teal: #2a9d8f;
    --sidebar: 260px;
    --topbar: 60px;
    --max-width: 1200px;
}

.dark-mode {
    --bg: #0c1220;
    --card-bg: rgba(30, 41, 59, 0.75);
    --card-solid: #1e293b;
    --hover: rgba(255, 255, 255, 0.04);
    --text: #eef2f7;
    --text-secondary: #94a3b8;
    --text-muted: #5a6a7e;
    --border: rgba(255, 255, 255, 0.06);
    --border-solid: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
    --glow: 0 0 50px rgba(13, 122, 95, 0.2);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    transition: background 0.5s, color 0.5s;
    line-height: 1.5;
    min-height: 100%;
    overflow-x: hidden;
}

/* ============================================================
   BACKGROUND LAYER
   ============================================================ */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-mesh {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    background:
        radial-gradient(ellipse at 20% 25%, rgba(13, 122, 95, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 75%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
    animation: meshDrift 45s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    to {
        transform: translate(2%, 2%) rotate(2deg) scale(1.04);
    }
}

.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.8'%3E%3Cpath d='M80 10L150 80L80 150L10 80Z'/%3E%3Ccircle cx='80' cy='80' r='45'/%3E%3Ccircle cx='80' cy='80' r='22'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
    animation: patternScroll 70s linear infinite;
}

@keyframes patternScroll {
    to {
        transform: translate(-160px, -160px);
    }
}

.dark-mode .bg-pattern {
    opacity: 0.05;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark-mode .grain {
    opacity: 0.03;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar);
    height: 100vh;
    z-index: 100;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s;
}

.sidebar.closed {
    transform: translateX(calc(var(--sidebar) + 10px));
}

.sb-head {
    padding: 1.2rem 1rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sb-logo {
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sb-logo i {
    font-size: 1.2em;
    color: var(--accent);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%,
    100% {
        transform: scale(1) rotate(0);
    }
    50% {
        transform: scale(1.12) rotate(6deg);
    }
}

.sb-close {
    margin-right: auto;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-close:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.sb-nav {
    flex: 1;
    padding: 0.8rem 0;
    overflow-y: auto;
}

.sb-nav::-webkit-scrollbar {
    width: 0;
}

.sb-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.2rem 0.3rem;
    opacity: 0.7;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
    border-right: 3px solid transparent;
    cursor: pointer;
}

.sb-link:hover {
    color: var(--primary);
    background: var(--hover);
    border-right-color: var(--primary);
}

.sb-link.active {
    color: var(--primary);
    background: rgba(13, 122, 95, 0.08);
    border-right-color: var(--primary);
    font-weight: 700;
}

.sb-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.sb-link:hover i,
.sb-link.active i {
    opacity: 1;
}

.sb-foot {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.sb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.sb-uname {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.sb-urole {
    font-size: 0.62rem;
    color: var(--text-muted);
}

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sb-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sb-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.5s;
}

.tb-menu {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-menu:hover {
    background: var(--hover);
    color: var(--primary);
    border-color: var(--primary);
}

.tb-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.tb-search input {
    width: 100%;
    padding: 0.45rem 0.8rem 0.45rem 2.2rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--hover);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.8rem;
    transition: all var(--transition);
    outline: none;
}

.tb-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 122, 95, 0.1);
    background: var(--card-solid);
}

.tb-search input::placeholder {
    color: var(--text-muted);
}

.tb-search i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.tb-acts {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: auto;
}

.tb-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-solid);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tb-btn:hover {
    color: var(--primary);
    background: var(--hover);
    transform: scale(1.05);
}

.tb-btn .dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--card-solid);
}

.tb-theme {
    background: transparent;
}

.tb-theme:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: rotate(180deg) scale(1.05);
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.gcard {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    overflow: hidden;
}

.gcard:hover {
    box-shadow: var(--shadow-md);
}

.gcard-header {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.gcard-header i {
    color: var(--primary);
    margin-left: 0.4rem;
}

.gcard-header .badge {
    font-size: 0.6rem;
    background: rgba(212, 87, 78, 0.1);
    color: var(--danger);
    border: 1px solid rgba(212, 87, 78, 0.2);
    padding: 0.08rem 0.5rem;
    border-radius: 99px;
    font-weight: 600;
}

.gcard-body {
    padding: 1rem;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all var(--transition);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 122, 95, 0.15);
}

.stat-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-chg {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
}

.stat-chg.up {
    color: var(--primary);
    background: rgba(13, 122, 95, 0.1);
}

.stat-chg.dn {
    color: var(--danger);
    background: rgba(212, 87, 78, 0.1);
}

/* ============================================================
   LEVEL BAR
   ============================================================ */
.level-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.level-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.level-track-wrap {
    flex: 1;
}

.level-track {
    height: 8px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden;
}

.level-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.level-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shineMove 2.5s 2.5s ease infinite;
}

@keyframes shineMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.level-info {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.level-info span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================================
   QUOTE WIDGET
   ============================================================ */
.quote-wrap {
    text-align: center;
    padding: 0.5rem 0;
}

.q-icon {
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0.2;
    margin-bottom: 0.3rem;
}

.quote-wrap blockquote {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
    transition: all 0.4s;
}

.quote-wrap cite {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.quote-wrap cite::before {
    content: '— ';
    color: var(--accent);
}

.q-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.q-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-solid);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.q-nav button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.q-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.q-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-solid);
    transition: all 0.4s;
    cursor: pointer;
}

.q-dots span.on {
    background: var(--primary);
    width: 18px;
    border-radius: 4px;
}

.quote-wrap.switching blockquote,
.quote-wrap.switching cite {
    opacity: 0;
    transform: translateY(8px);
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-wrap {
    display: flex;
    flex-direction: column;
    height: 380px;
}

.chat-msgs {
    flex: 1;
    padding: 0.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    scroll-behavior: smooth;
}

.chat-msgs::-webkit-scrollbar {
    width: 3px;
}
.chat-msgs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

.bbl {
    max-width: 82%;
    padding: 0.45rem 0.7rem;
    border-radius: 14px;
    font-size: 0.78rem;
    animation: bblIn 0.35s ease forwards;
    opacity: 0;
    line-height: 1.7;
    word-break: break-word;
}

.bbl.u {
    background: var(--primary);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bbl.b {
    background: var(--hover);
    color: var(--text);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border: 1px solid var(--border);
}

.dark-mode .bbl.b {
    background: rgba(255, 255, 255, 0.05);
}

.btag {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 0.56rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.btm {
    display: block;
    font-size: 0.55rem;
    opacity: 0.5;
    margin-top: 2px;
    text-align: left;
}

@keyframes bblIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.typing-ind {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.7rem;
    align-self: flex-end;
    background: var(--hover);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-right-radius: 4px;
}

.typing-ind span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: td 1.2s infinite;
}

.typing-ind span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-ind span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes td {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.chat-sugs {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    padding: 0.25rem 0.8rem;
    background: var(--hover);
    border-top: 1px solid var(--border);
}

.chat-sugs span {
    font-size: 0.65rem;
    padding: 0.15rem 0.55rem;
    border-radius: 99px;
    background: var(--card-solid);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.chat-sugs span:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(13, 122, 95, 0.06);
}

.chat-input {
    display: flex;
    padding: 0.35rem 0.8rem;
    border-top: 1px solid var(--border);
    gap: 0.35rem;
    flex-shrink: 0;
    background: var(--card-solid);
}

.chat-input input {
    flex: 1;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.78rem;
    transition: all var(--transition);
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 122, 95, 0.1);
}

.chat-input input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 4px;
}

.send-btn:hover {
    transform: scale(1.03);
    box-shadow: var(--glow);
}
.send-btn:active {
    transform: scale(0.96);
}

/* ============================================================
   PODCAST WIDGET
   ============================================================ */
.pod-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pod-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.pod-art {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(13, 122, 95, 0.25);
    flex-shrink: 0;
    transition: all var(--transition);
}

.pod-art.spin {
    animation: artSpin 8s linear infinite;
}

@keyframes artSpin {
    to {
        transform: rotate(360deg);
    }
}

.pod-meta {
    flex: 1;
    min-width: 0;
}

.pod-meta h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pod-meta p {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 0.1rem 0 0;
}

.pod-ctrls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pod-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--hover);
    color: var(--text-secondary);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pod-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.pod-btn.play {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 18px rgba(13, 122, 95, 0.3);
    position: relative;
}

.pod-btn.play:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(13, 122, 95, 0.4);
}

.pod-btn.play.on::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pod-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 22px;
    margin: 0 0.15rem;
}

.eq-b {
    width: 3px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 2px;
    height: 4px;
    transition: height 0.12s;
}

.pod-bar-wrap {
    width: 100%;
}

.pod-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    cursor: pointer;
}

.pod-bar:hover {
    height: 6px;
}

.pod-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    border-radius: 99px;
    transition: width 0.3s linear;
}

.pod-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.pod-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pod-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-xs);
    background: var(--hover);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.pod-item:hover {
    border-color: var(--primary);
    background: rgba(13, 122, 95, 0.05);
    transform: translateX(-2px);
}

.pod-item.act {
    border-color: var(--primary);
    background: rgba(13, 122, 95, 0.08);
}

.pod-idx {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
}

.pod-ititle {
    flex: 1;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pod-idur {
    font-size: 0.58rem;
    color: var(--text-muted);
}

.pod-play-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 0.4rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pod-play-sm:hover {
    transform: scale(1.1);
}

/* ============================================================
   QUIZ WIDGET
   ============================================================ */
.quiz-wrap {
    text-align: center;
}

.qz-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.quiz-wrap h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.quiz-wrap>p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.qz-prog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.qz-bar {
    width: 110px;
    height: 5px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden;
}

.qz-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.qz-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
}

.qz-start {
    padding: 0.35rem 1.4rem;
    border: none;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    box-shadow: 0 4px 14px rgba(13, 122, 95, 0.25);
}

.qz-start:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(13, 122, 95, 0.35);
}

.qz-score {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.qz-q {
    margin: 0.5rem 0 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-align: right;
    line-height: 1.8;
}

.qz-opts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.qz-opt {
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--hover);
    color: var(--text);
    font-size: 0.78rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: right;
}

.qz-opt:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(13, 122, 95, 0.06);
    transform: translateX(-3px);
}

.qz-opt.ok {
    border-color: var(--primary);
    background: rgba(13, 122, 95, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.qz-opt.no {
    border-color: var(--danger);
    background: rgba(212, 87, 78, 0.1);
    color: var(--danger);
    font-weight: 700;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

.qz-opt:disabled {
    cursor: default;
    opacity: 0.7;
}

.qz-fb {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    min-height: 1.3em;
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.nf-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-xs);
    background: var(--hover);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    margin-bottom: 0.3rem;
}

.nf-item:hover {
    border-color: var(--primary);
    transform: translateX(-2px);
}

.nf-item.ur {
    border-right: 3px solid var(--danger);
}

.nf-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.nf-body {
    flex: 1;
    min-width: 0;
}

.nf-body p {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nf-body span {
    font-size: 0.58rem;
    color: var(--text-muted);
}

/* ============================================================
   ACTIVITIES
   ============================================================ */
.act-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
    font-size: 0.72rem;
    margin-bottom: 0.15rem;
}

.act-item:hover {
    background: var(--hover);
    padding-right: 0.6rem;
}

.act-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    opacity: 0.5;
    animation: dotPulse 2.5s infinite;
}

@keyframes dotPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.4);
    }
}

.act-text {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

.act-time {
    font-size: 0.58rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--hover);
    padding: 0.08rem 0.4rem;
    border-radius: 99px;
}

/* ============================================================
   EVENTS
   ============================================================ */
.evt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

@media(max-width:768px) {
    .evt-grid {
        grid-template-columns: 1fr;
    }
}

.evt-item {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--hover);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.evt-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.evt-date {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.08rem 0.5rem;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 4px;
}

.evt-item h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
    line-height: 1.4;
}

.evt-item p {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 4px;
}

.evt-link {
    font-size: 0.62rem;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: gap var(--transition);
    text-decoration: none;
}

.evt-link:hover {
    gap: 5px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    pointer-events: none;
}

.toast {
    background: var(--card-solid);
    color: var(--text);
    padding: 0.55rem 1.2rem;
    border-radius: 99px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    animation: toastIn 0.4s ease forwards;
    pointer-events: auto;
}

.toast.out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

/* ============================================================
   RIPPLE EFFECT
   ============================================================ */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-fx {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
}

.dark-mode .ripple-fx {
    background: rgba(255, 255, 255, 0.12);
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================================
   GRID LAYOUT
   ============================================================ */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.dash-grid .span2 {
    grid-column: span 2;
}

@media(max-width:1024px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .dash-grid .span2 {
        grid-column: span 1;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px) {
    .sidebar {
        transform: translateX(calc(var(--sidebar) + 10px));
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrap {
        margin-right: 0 !important;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media(max-width:768px) {
    .content {
        padding: 1rem;
    }
    .topbar {
        padding: 0 1rem;
    }
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .stat-card {
        padding: 0.6rem 0.7rem;
    }
    .stat-val {
        font-size: 1rem;
    }
    .chat-wrap {
        height: 300px;
    }
}

@media(max-width:480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    .content {
        padding: 0.7rem;
    }
    .stat-card {
        padding: 0.5rem 0.6rem;
    }
    .stat-val {
        font-size: 0.9rem;
    }
    .stat-ico {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    .gcard-body {
        padding: 0.7rem;
    }
    .section-title {
        font-size: 1rem;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media(prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary);
    font-size: 1.1rem;
}
/* ============================================================
   ROW HERO - سه بخش افقی
   ============================================================ */
.row-hero {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* ===== هیرو (خوش‌آمدگویی) ===== */
.hero-section {
    padding: 1.2rem 1.5rem;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}
.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.hero-avatar .online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--card-solid);
}
.hero-text {
    flex: 1;
    min-width: 0;
}
.hero-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.hero-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.hero-name {
    color: var(--primary);
}
.hero-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== سطح ===== */
.level-section {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}
.level-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.level-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.15rem 0.8rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
}
.level-points {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}
.points-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
}
.level-points small {
    color: var(--text-muted);
    font-size: 0.65rem;
}
.level-progress {
    width: 100%;
}
.progress-track {
    height: 6px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
.level-next {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
.level-next i {
    color: #f59e0b;
}

/* ===== سخن ماندگار ===== */
.quote-section {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.quote-icon {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.quote-icon i {
    color: var(--accent);
    opacity: 0.3;
    font-size: 1.2rem;
}
.quote-text {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}
.quote-author {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: normal;
    display: block;
    margin-top: 0.3rem;
}

/* ============================================================
   RESPONSIVE - موبایل
   ============================================================ */
@media (max-width: 1024px) {
    .row-hero {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .row-hero {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .hero-section {
        padding: 1rem 1.2rem;
    }
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
    .hero-avatar {
        width: 60px;
        height: 60px;
    }
    .hero-text h1 {
        font-size: 1.1rem;
    }
    .hero-sub {
        font-size: 0.75rem;
    }
    
    .level-section {
        padding: 1rem 1.2rem;
    }
    .points-number {
        font-size: 1.3rem;
    }
    
    .quote-section {
        padding: 1rem 1.2rem;
    }
    .quote-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-avatar {
        width: 50px;
        height: 50px;
    }
    .hero-text h1 {
        font-size: 1rem;
    }
    .hero-date {
        font-size: 0.65rem;
    }
    .hero-sub {
        font-size: 0.7rem;
    }
    .points-number {
        font-size: 1.1rem;
    }
    .level-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.6rem;
    }
    .quote-text {
        font-size: 0.7rem;
    }
}
/* ============================================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* سایدبار */
    .sidebar {
        transform: translateX(calc(var(--sidebar) + 10px));
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrap {
        margin-right: 0 !important;
    }
    
    /* ردیف هیرو */
    .row-hero {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .row-hero .hero-section {
        grid-column: 1 / -1;
    }
    
    /* آمار */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* دش‌گرید */
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .dash-grid .span2 {
        grid-column: span 1;
    }
    
    /* فوتر */
    .footer-grid-lux {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .fl-brand {
        grid-column: 1 / -1;
    }
    .fl-newsletter {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* هدر */
    .topbar {
        padding: 0 0.8rem;
        gap: 0.4rem;
    }
    .tb-search {
        max-width: 200px;
    }
    .tb-search input {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem 0.3rem 1.8rem;
    }
    .tb-search i {
        font-size: 0.65rem;
        left: 0.6rem;
    }
    .tb-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .tb-menu {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    /* سایدبار */
    .sidebar {
        width: 280px;
        --sidebar: 280px;
    }
    .sb-head {
        padding: 0.8rem 0.8rem 0.5rem;
    }
    .sb-logo {
        font-size: 1rem;
    }
    .sb-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    .sb-foot {
        padding: 0.5rem 0.8rem;
    }
    .sb-avatar {
        width: 30px;
        height: 30px;
    }
    .sb-uname {
        font-size: 0.7rem;
    }
    .sb-urole {
        font-size: 0.55rem;
    }
    
    /* ردیف هیرو */
    .row-hero {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .row-hero .hero-section {
        grid-column: auto;
    }
    .hero-section {
        padding: 0.8rem 1rem;
    }
    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
    }
    .hero-avatar {
        width: 50px;
        height: 50px;
    }
    .hero-text h1 {
        font-size: 1rem;
    }
    .hero-date {
        font-size: 0.6rem;
    }
    .hero-sub {
        font-size: 0.7rem;
    }
    
    /* سطح */
    .level-section {
        padding: 0.8rem 1rem;
    }
    .points-number {
        font-size: 1.2rem;
    }
    .level-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.6rem;
    }
    .level-progress .progress-labels {
        font-size: 0.5rem;
    }
    .level-next {
        font-size: 0.6rem;
    }
    
    /* سخن */
    .quote-section {
        padding: 0.8rem 1rem;
    }
    .quote-text {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    .quote-author {
        font-size: 0.55rem;
    }
    
    /* آمار */
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    .stat-card {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }
    .stat-ico {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    .stat-val {
        font-size: 1rem;
    }
    .stat-lbl {
        font-size: 0.6rem;
    }
    .stat-chg {
        font-size: 0.5rem;
        padding: 0.05rem 0.3rem;
    }
    
    /* کارت‌ها */
    .gcard {
        border-radius: var(--radius-sm);
    }
    .gcard-header {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    .gcard-body {
        padding: 0.6rem;
    }
    
    /* گفتگوها */
    .gcard-body > div[style*="padding:0.5rem 0.6rem"] {
        padding: 0.3rem 0.4rem;
    }
    .gcard-body > div[style*="padding:0.5rem 0.6rem"] > div:first-child {
        font-size: 0.7rem;
    }
    .gcard-body > div[style*="padding:0.5rem 0.6rem"] > div:nth-child(2) {
        font-size: 0.65rem;
    }
    
    /* وظایف */
    .gcard-body .td-item {
        padding: 0.2rem 0;
        gap: 0.3rem;
    }
    .gcard-body .td-item .td-time {
        font-size: 0.6rem;
        min-width: 30px;
    }
    .gcard-body .td-item .td-title {
        font-size: 0.65rem;
    }
    
    /* پادکست */
    .pod-top {
        gap: 0.5rem;
    }
    .pod-art {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .pod-meta h4 {
        font-size: 0.75rem;
    }
    .pod-meta p {
        font-size: 0.55rem;
    }
    .pod-btn {
        width: 28px;
        height: 28px;
        font-size: 0.55rem;
    }
    .pod-btn.play {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
    .pod-item {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }
    .pod-ititle {
        font-size: 0.6rem;
    }
    .pod-idur {
        font-size: 0.5rem;
    }
    .pod-play-sm {
        width: 20px;
        height: 20px;
        font-size: 0.35rem;
    }
    
    /* تاریخچه، ارسال‌ها، بوکمارک */
    .gcard-body .history-item {
        padding: 0.25rem 0;
        gap: 0.4rem;
    }
    .gcard-body .history-item .h-icon {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
    }
    .gcard-body .history-item .h-title {
        font-size: 0.65rem;
    }
    .gcard-body .history-item .h-date {
        font-size: 0.5rem;
    }
    
    /* اعلان‌ها */
    .nf-item {
        padding: 0.3rem 0.4rem;
        gap: 0.4rem;
    }
    .nf-ico {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
    }
    .nf-body p {
        font-size: 0.65rem;
    }
    .nf-body span {
        font-size: 0.5rem;
    }
    
    /* رویدادها */
    .evt-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .evt-item {
        padding: 0.4rem 0.6rem;
    }
    .evt-date {
        font-size: 0.5rem;
    }
    .evt-item h4 {
        font-size: 0.7rem;
    }
    .evt-item p {
        font-size: 0.6rem;
    }
    .evt-link {
        font-size: 0.55rem;
    }
    
    /* فوتر */
    .footer-wave-bg {
        padding: 20px 12px 80px;
    }
    .footer-glass-card {
        padding: 16px 14px;
        border-radius: 20px;
    }
    .footer-grid-lux {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fl-brand {
        grid-column: auto;
    }
    .fl-newsletter {
        grid-column: auto;
    }
    .fl-brand-name {
        font-size: 18px;
    }
    .fl-brand-logo img {
        height: 30px;
    }
    .fl-brand-desc {
        font-size: 12px;
    }
    .fl-social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .fl-links-title {
        font-size: 12px;
    }
    .fl-links-list li a {
        font-size: 12px;
    }
    .fl-newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 6px;
        box-shadow: none;
    }
    .fl-newsletter-form input {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 30px;
        padding: 10px 14px;
        text-align: center;
        font-size: 12px;
    }
    .fl-newsletter-form button {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
    }
    .fl-bottom {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        margin-top: 16px;
        padding-top: 12px;
    }
    .fl-copy {
        justify-content: center;
        font-size: 11px;
    }
    .fl-badge {
        font-size: 9px;
        padding: 2px 10px;
    }
    
    /* منوی پایین */
    .bn-orbital {
        bottom: 12px;
        padding: 4px 8px;
        border-radius: 40px;
        max-width: 100%;
        width: calc(100% - 16px);
        gap: 2px;
    }
    .bn-item-orb {
        min-width: 36px;
        padding: 4px 6px;
    }
    .bn-item-orb .orb-icon {
        font-size: 15px;
    }
    .bn-item-orb .orb-label {
        font-size: 7px;
    }
    .bn-item-orb.primary-orb {
        padding: 4px 10px;
        transform: translateY(-6px);
        min-width: 40px;
    }
    .bn-item-orb.primary-orb .orb-icon {
        font-size: 16px;
    }
    .bn-item-orb.primary-orb:hover {
        transform: translateY(-8px) scale(1.02);
    }
    .bn-item-orb.active::after {
        width: 4px;
        height: 4px;
        bottom: -1px;
    }
    
    /* محتوای اصلی */
    .content {
        padding: 0.6rem;
    }
    .section-title {
        font-size: 1rem;
    }
    
    /* دکمه‌ها */
    .send-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Toast */
    .toast {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* جزئیات دانش */
    .knowledge-detail .detail-title {
        font-size: 1.2rem;
    }
    .knowledge-detail .detail-meta {
        font-size: 0.6rem;
        gap: 0.3rem 0.8rem;
    }
    .knowledge-detail .detail-content {
        font-size: 0.85rem;
        line-height: 1.8;
    }
    .knowledge-detail .detail-quote {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    /* هدر */
    .topbar {
        height: 50px;
        padding: 0 0.5rem;
    }
    :root {
        --topbar: 50px;
    }
    .tb-search {
        max-width: 140px;
    }
    .tb-search input {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem 0.2rem 1.5rem;
    }
    .tb-search i {
        font-size: 0.55rem;
        left: 0.5rem;
    }
    .tb-btn {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    .tb-menu {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    /* سایدبار */
    .sidebar {
        width: 100%;
        max-width: 300px;
        --sidebar: 300px;
    }
    
    /* آمار */
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem;
    }
    .stat-card {
        padding: 0.4rem 0.4rem;
        gap: 0.3rem;
    }
    .stat-ico {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
        border-radius: 8px;
    }
    .stat-val {
        font-size: 0.85rem;
    }
    .stat-lbl {
        font-size: 0.5rem;
    }
    .stat-chg {
        font-size: 0.45rem;
        padding: 0.05rem 0.2rem;
    }
    
    /* ردیف هیرو */
    .hero-section {
        padding: 0.6rem 0.8rem;
    }
    .hero-avatar {
        width: 40px;
        height: 40px;
    }
    .hero-avatar .online-dot {
        width: 10px;
        height: 10px;
    }
    .hero-text h1 {
        font-size: 0.9rem;
    }
    .hero-date {
        font-size: 0.5rem;
    }
    .hero-sub {
        font-size: 0.6rem;
    }
    
    /* سطح */
    .level-section {
        padding: 0.6rem 0.8rem;
    }
    .points-number {
        font-size: 1rem;
    }
    .level-points small {
        font-size: 0.55rem;
    }
    .level-progress .progress-track {
        height: 4px;
    }
    .level-next {
        font-size: 0.55rem;
    }
    
    /* سخن */
    .quote-section {
        padding: 0.6rem 0.8rem;
    }
    .quote-text {
        font-size: 0.65rem;
    }
    
    /* کارت‌ها */
    .gcard-header {
        padding: 0.3rem 0.4rem;
        font-size: 0.6rem;
    }
    .gcard-body {
        padding: 0.4rem;
    }
    
    /* گفتگوها */
    .gcard-body > div[style*="padding:0.5rem 0.6rem"] {
        padding: 0.2rem 0.3rem;
    }
    .gcard-body > div[style*="padding:0.5rem 0.6rem"] > div:first-child {
        font-size: 0.6rem;
    }
    .gcard-body > div[style*="padding:0.5rem 0.6rem"] > div:nth-child(2) {
        font-size: 0.55rem;
    }
    .gcard-body > div[style*="padding:0.5rem 0.6rem"] > div:last-child {
        font-size: 0.5rem;
    }
    
    /* وظایف */
    .gcard-body .td-item .td-time {
        font-size: 0.5rem;
        min-width: 25px;
    }
    .gcard-body .td-item .td-title {
        font-size: 0.55rem;
    }
    
    /* پادکست */
    .pod-art {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    .pod-meta h4 {
        font-size: 0.65rem;
    }
    .pod-meta p {
        font-size: 0.5rem;
    }
    .pod-btn {
        width: 24px;
        height: 24px;
        font-size: 0.5rem;
    }
    .pod-btn.play {
        width: 30px;
        height: 30px;
        font-size: 0.65rem;
    }
    .pod-item {
        font-size: 0.5rem;
        padding: 0.1rem 0.2rem;
        gap: 0.2rem;
    }
    .pod-ititle {
        font-size: 0.5rem;
    }
    .pod-idx {
        font-size: 0.5rem;
        width: 14px;
    }
    .pod-idur {
        font-size: 0.45rem;
    }
    .pod-play-sm {
        width: 18px;
        height: 18px;
        font-size: 0.3rem;
    }
    .pod-times {
        font-size: 0.5rem;
    }
    .pod-bar {
        height: 3px;
    }
    
    /* تاریخچه، ارسال‌ها، بوکمارک */
    .gcard-body .history-item .h-icon {
        width: 20px;
        height: 20px;
        font-size: 0.45rem;
        border-radius: 4px;
    }
    .gcard-body .history-item .h-title {
        font-size: 0.55rem;
    }
    .gcard-body .history-item .h-date {
        font-size: 0.45rem;
    }
    
    /* اعلان‌ها */
    .nf-item {
        padding: 0.2rem 0.3rem;
        gap: 0.3rem;
    }
    .nf-ico {
        width: 20px;
        height: 20px;
        font-size: 0.45rem;
        border-radius: 4px;
    }
    .nf-body p {
        font-size: 0.55rem;
    }
    .nf-body span {
        font-size: 0.45rem;
    }
    
    /* رویدادها */
    .evt-item {
        padding: 0.3rem 0.4rem;
        border-radius: var(--radius-xs);
    }
    .evt-date {
        font-size: 0.45rem;
        padding: 0.05rem 0.3rem;
    }
    .evt-item h4 {
        font-size: 0.6rem;
    }
    .evt-item p {
        font-size: 0.55rem;
    }
    .evt-link {
        font-size: 0.5rem;
    }
    
    /* فوتر */
    .footer-wave-bg {
        padding: 12px 8px 70px;
    }
    .footer-glass-card {
        padding: 12px 10px;
        border-radius: 16px;
    }
    .fl-brand-name {
        font-size: 16px;
    }
    .fl-brand-logo img {
        height: 24px;
    }
    .fl-brand-desc {
        font-size: 11px;
    }
    .fl-social-link {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .fl-links-title {
        font-size: 11px;
    }
    .fl-links-list li a {
        font-size: 11px;
        padding: 3px 0;
    }
    .fl-newsletter p {
        font-size: 11px;
    }
    .fl-newsletter-form input {
        font-size: 11px;
        padding: 8px 12px;
    }
    .fl-newsletter-form button {
        font-size: 11px;
        padding: 8px;
    }
    .fl-bottom {
        font-size: 10px;
    }
    
    /* منوی پایین */
    .bn-orbital {
        bottom: 8px;
        padding: 3px 6px;
        border-radius: 30px;
        width: calc(100% - 12px);
    }
    .bn-item-orb {
        min-width: 32px;
        padding: 2px 4px;
    }
    .bn-item-orb .orb-icon {
        font-size: 13px;
    }
    .bn-item-orb .orb-label {
        font-size: 6px;
    }
    .bn-item-orb.primary-orb {
        padding: 3px 8px;
        transform: translateY(-4px);
        min-width: 34px;
    }
    .bn-item-orb.primary-orb .orb-icon {
        font-size: 14px;
    }
    
    /* دکمه‌ها */
    .send-btn {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
        border-radius: 8px;
    }
    
    /* Toast */
    .toast-container {
        bottom: 60px;
    }
    .toast {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        border-radius: 30px;
    }
}
/* ============================================================
   کلاس‌های اضافه‌شده برای داشبورد (بخش‌های مختلف)
   ============================================================ */

/* ===== کارت‌ها ===== */
.gcard.span2 {
    grid-column: span 2;
}
.gcard.full-width {
    grid-column: 1 / -1;
}
.gcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #0f172a);
}
.dark .gcard-header {
    border-color: var(--border-dark, #334155);
    color: var(--text-primary-dark, #f1f5f9);
}
.gcard-header span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.gcard-link {
    font-size: 0.7rem;
    color: var(--primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: gap 0.2s;
}
.gcard-link:hover {
    gap: 0.5rem;
}
.dark .gcard-link {
    color: var(--primary-light, #818cf8);
}
.gcard-body {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}
.gcard-footer-center {
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
    margin-top: 0.25rem;
}
.dark .gcard-footer-center {
    border-color: var(--border-dark, #334155);
}

/* ===== گفتگوهای اخیر ===== */
.conv-item {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: background 0.15s;
}
.conv-item:hover {
    background: var(--bg-hover, #f1f5f9);
}
.dark .conv-item {
    border-color: var(--border-dark, #334155);
}
.dark .conv-item:hover {
    background: var(--bg-hover-dark, #334155);
}
.conv-item:last-child {
    border-bottom: none;
}
.conv-question {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary, #0f172a);
}
.dark .conv-question {
    color: var(--text-primary-dark, #f1f5f9);
}
.conv-answer {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    margin-top: 0.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dark .conv-answer {
    color: var(--text-muted-dark, #94a3b8);
}
.conv-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.2rem;
}
.dark .conv-meta {
    color: var(--text-muted-dark, #64748b);
}

/* ===== وظایف امروز ===== */
.todo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.dark .todo-item {
    border-color: var(--border-dark, #334155);
}
.todo-item:last-child {
    border-bottom: none;
}
.todo-item.done {
    opacity: 0.5;
}
.todo-item.done .todo-title {
    text-decoration: line-through;
}
.todo-time {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
    min-width: 35px;
}
.dark .todo-time {
    color: var(--text-muted-dark, #94a3b8);
}
.todo-title {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-primary, #0f172a);
}
.dark .todo-title {
    color: var(--text-primary-dark, #f1f5f9);
}
.todo-check {
    color: #22c55e;
    font-size: 0.7rem;
}
.todo-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.dark .todo-progress {
    border-color: var(--border-dark, #334155);
}
.todo-progress .progress-track {
    flex: 1;
    height: 4px;
    background: var(--border-color, #e2e8f0);
    border-radius: 99px;
    overflow: hidden;
}
.dark .todo-progress .progress-track {
    background: var(--border-dark, #334155);
}
.todo-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    border-radius: 99px;
    transition: width 0.5s ease;
}
.progress-text {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}
.dark .progress-text {
    color: var(--text-muted-dark, #94a3b8);
}

/* ===== پادکست ===== */
.podcast-player {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.podcast-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.podcast-info {
    flex: 1;
    min-width: 0;
}
.podcast-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin: 0;
    line-height: 1.3;
}
.dark .podcast-info h4 {
    color: var(--text-primary-dark, #f1f5f9);
}
.podcast-info p {
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
    margin: 0.1rem 0 0;
}
.dark .podcast-info p {
    color: var(--text-muted-dark, #94a3b8);
}

.podcast-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}
.pod-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0);
    background: transparent;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.2s;
}
.pod-btn:hover {
    background: var(--bg-hover, #f1f5f9);
    border-color: var(--primary, #4f46e5);
    color: var(--primary, #4f46e5);
}
.dark .pod-btn {
    border-color: var(--border-dark, #334155);
    color: var(--text-muted-dark, #94a3b8);
}
.dark .pod-btn:hover {
    background: var(--bg-hover-dark, #334155);
    border-color: var(--primary-light, #818cf8);
    color: var(--primary-light, #818cf8);
}
.pod-btn.play {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary, #4f46e5);
    color: #fff;
    font-size: 0.8rem;
}
.pod-btn.play:hover {
    background: var(--primary-dark, #4338ca);
    transform: scale(1.05);
}
.podcast-progress {
    flex: 1;
    margin: 0 0.3rem;
}
.podcast-progress .progress-track {
    height: 3px;
    background: var(--border-color, #e2e8f0);
    border-radius: 99px;
    overflow: hidden;
    cursor: pointer;
}
.dark .podcast-progress .progress-track {
    background: var(--border-dark, #334155);
}
.podcast-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    border-radius: 99px;
    transition: width 0.3s ease;
}
.podcast-time {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}
.dark .podcast-time {
    color: var(--text-muted-dark, #94a3b8);
}

.podcast-episodes {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.episode-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.65rem;
}
.episode-item:hover {
    background: var(--bg-hover, #f1f5f9);
}
.dark .episode-item {
    background: var(--bg-secondary-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}
.dark .episode-item:hover {
    background: var(--bg-hover-dark, #334155);
}
.episode-num {
    color: var(--text-muted, #64748b);
    min-width: 16px;
    font-size: 0.55rem;
}
.dark .episode-num {
    color: var(--text-muted-dark, #94a3b8);
}
.episode-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .episode-title {
    color: var(--text-primary-dark, #f1f5f9);
}
.episode-duration {
    color: var(--text-muted, #64748b);
    font-size: 0.55rem;
}
.dark .episode-duration {
    color: var(--text-muted-dark, #94a3b8);
}
.episode-play {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--primary, #4f46e5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    flex-shrink: 0;
    transition: all 0.2s;
}
.episode-play:hover {
    background: var(--primary-dark, #4338ca);
    transform: scale(1.05);
}

/* ===== تاریخچه مطالعه ===== */
.history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.dark .history-item {
    border-color: var(--border-dark, #334155);
}
.history-item:last-child {
    border-bottom: none;
}
.history-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(42, 157, 143, 0.1);
    color: #2a9d8f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}
.dark .history-icon {
    background: rgba(42, 157, 143, 0.2);
}
.history-info {
    flex: 1;
    min-width: 0;
}
.history-title {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .history-title {
    color: var(--text-primary-dark, #f1f5f9);
}
.history-date {
    font-size: 0.55rem;
    color: var(--text-muted, #64748b);
}
.dark .history-date {
    color: var(--text-muted-dark, #94a3b8);
}
.history-link {
    font-size: 0.6rem;
    color: var(--primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
}
.history-link:hover {
    text-decoration: underline;
}
.dark .history-link {
    color: var(--primary-light, #818cf8);
}

/* ===== ارسال‌های من ===== */
.submission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    flex-wrap: wrap;
    gap: 0.3rem;
}
.dark .submission-item {
    border-color: var(--border-dark, #334155);
}
.submission-item:last-child {
    border-bottom: none;
}
.submission-title {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
}
.dark .submission-title {
    color: var(--text-primary-dark, #f1f5f9);
}
.submission-status {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.05rem 0.5rem;
    border-radius: 99px;
}
.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.dark .status-approved {
    background: rgba(16, 185, 129, 0.2);
}
.dark .status-pending {
    background: rgba(245, 158, 11, 0.2);
}
.dark .status-rejected {
    background: rgba(239, 68, 68, 0.2);
}

/* ===== بوکمارک‌ها ===== */
.bookmark-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.dark .bookmark-item {
    border-color: var(--border-dark, #334155);
}
.bookmark-item:last-child {
    border-bottom: none;
}
.bookmark-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}
.dark .bookmark-icon {
    background: rgba(212, 175, 55, 0.2);
}
.bookmark-info {
    flex: 1;
    min-width: 0;
}
.bookmark-title {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .bookmark-title {
    color: var(--text-primary-dark, #f1f5f9);
}
.bookmark-date {
    font-size: 0.55rem;
    color: var(--text-muted, #64748b);
}
.dark .bookmark-date {
    color: var(--text-muted-dark, #94a3b8);
}

/* ===== اعلان‌ها ===== */
.notification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: opacity 0.3s;
}
.dark .notification-item {
    border-color: var(--border-dark, #334155);
}
.notification-item:last-child {
    border-bottom: none;
}
.notif-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(13, 122, 95, 0.1);
    color: var(--primary, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}
.dark .notif-icon {
    background: rgba(13, 122, 95, 0.2);
    color: var(--primary-light, #818cf8);
}
.notif-info {
    flex: 1;
    min-width: 0;
}
.notif-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .notif-text {
    color: var(--text-primary-dark, #f1f5f9);
}
.notif-time {
    font-size: 0.55rem;
    color: var(--text-muted, #64748b);
}
.dark .notif-time {
    color: var(--text-muted-dark, #94a3b8);
}

/* ===== رویدادها ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.event-item {
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s;
}
.event-item:hover {
    background: var(--bg-hover, #f1f5f9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,0.05));
}
.dark .event-item {
    background: var(--bg-secondary-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}
.dark .event-item:hover {
    background: var(--bg-hover-dark, #334155);
}
.event-date {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
    display: block;
    margin-bottom: 0.2rem;
}
.dark .event-date {
    color: var(--text-muted-dark, #94a3b8);
}
.event-item h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.2rem;
}
.dark .event-item h4 {
    color: var(--text-primary-dark, #f1f5f9);
}
.event-item p {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dark .event-item p {
    color: var(--text-muted-dark, #94a3b8);
}
.event-link {
    font-size: 0.65rem;
    color: var(--primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.event-link:hover {
    gap: 0.4rem;
}
.dark .event-link {
    color: var(--primary-light, #818cf8);
}
.event-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
}
.event-more:hover {
    background: var(--bg-hover, #f1f5f9);
}
.dark .event-more {
    background: var(--bg-secondary-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}
.dark .event-more:hover {
    background: var(--bg-hover-dark, #334155);
}
.event-more span {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
}
.dark .event-more span {
    color: var(--text-muted-dark, #94a3b8);
}

/* ===== بج‌ها ===== */
.badge-date {
    font-size: 0.6rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.08rem 0.5rem;
    border-radius: 99px;
}
.badge-duration {
    font-size: 0.6rem;
    background: rgba(212, 87, 78, 0.1);
    color: #d4574e;
    padding: 0.08rem 0.5rem;
    border-radius: 99px;
}
.badge-count {
    font-size: 0.6rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.08rem 0.5rem;
    border-radius: 99px;
}
.badge-notif {
    font-size: 0.6rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.08rem 0.5rem;
    border-radius: 99px;
}
.badge-event {
    font-size: 0.6rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.08rem 0.5rem;
    border-radius: 99px;
}

/* ===== دکمه‌ها ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary, #4f46e5);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark, #4338ca);
    transform: scale(1.02);
}
.btn-sm {
    padding: 0.25rem 0.8rem;
    font-size: 0.7rem;
}

/* ===== حالت خالی ===== */
.empty-text {
    text-align: center;
    color: var(--text-muted, #64748b);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}
.dark .empty-text {
    color: var(--text-muted-dark, #94a3b8);
}
/* ============================================================
   استایل‌های واکنش‌گرا برای داشبورد
   ============================================================ */

/* ===== دشبورد کانتینر ===== */
.dash-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* ===== ردیف هیرو ===== */
.row-hero {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== هیرو ===== */
.hero-section {
    background: var(--bg-card, #ffffff);
    border-radius: 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 1.25rem;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.05));
    display: flex;
    align-items: center;
}
.dark .hero-section {
    background: var(--bg-card-dark, #1e293b);
    border-color: var(--border-dark, #334155);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.hero-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary, #4f46e5);
}
.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-card, #ffffff);
}
.dark .online-dot {
    border-color: var(--bg-card-dark, #1e293b);
}
.hero-text {
    flex: 1;
}
.hero-date {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 0.2rem;
}
.hero-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0;
}
.dark .hero-text h1 {
    color: var(--text-primary-dark, #f1f5f9);
}
.hero-name {
    color: var(--primary, #4f46e5);
}
.hero-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    margin: 0.1rem 0 0;
}

/* ===== سطح ===== */
.level-section {
    background: var(--bg-card, #ffffff);
    border-radius: 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.05));
}
.dark .level-section {
    background: var(--bg-card-dark, #1e293b);
    border-color: var(--border-dark, #334155);
}
.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}
.level-label {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
}
.level-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary, #4f46e5);
    background: var(--primary-bg, #eef2ff);
    padding: 0.1rem 0.8rem;
    border-radius: 99px;
}
.dark .level-badge {
    background: var(--primary-bg-dark, #1e293b);
    color: var(--primary-light, #818cf8);
}
.level-points {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.points-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
}
.dark .points-number {
    color: var(--text-primary-dark, #f1f5f9);
}
.level-points small {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
}
.level-progress {
    margin: 0.5rem 0 0.3rem;
}
.progress-track {
    height: 4px;
    background: var(--border-color, #e2e8f0);
    border-radius: 99px;
    overflow: hidden;
}
.dark .progress-track {
    background: var(--border-dark, #334155);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    border-radius: 99px;
    transition: width 0.6s ease;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.1rem;
}
.level-next {
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.dark .level-next {
    color: var(--text-muted-dark, #94a3b8);
}
.level-next i {
    color: #f59e0b;
}

/* ===== سخن ماندگار ===== */
.quote-section {
    background: var(--bg-card, #ffffff);
    border-radius: 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.05));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dark .quote-section {
    background: var(--bg-card-dark, #1e293b);
    border-color: var(--border-dark, #334155);
}
.quote-icon {
    color: var(--primary, #4f46e5);
    font-size: 1.2rem;
    opacity: 0.5;
    margin-bottom: 0.2rem;
}
.quote-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-primary, #0f172a);
    margin: 0;
    font-style: italic;
}
.dark .quote-text {
    color: var(--text-primary-dark, #f1f5f9);
}
.quote-author {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
    margin-top: 0.2rem;
    display: block;
}
.dark .quote-author {
    color: var(--text-muted-dark, #94a3b8);
}

/* ===== آمار ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg-card, #ffffff);
    border-radius: 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.05));
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover, 0 8px 30px rgba(0,0,0,0.08));
}
.dark .stat-card {
    background: var(--bg-card-dark, #1e293b);
    border-color: var(--border-dark, #334155);
}
.stat-ico {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}
.stat-info {
    flex: 1;
}
.stat-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    line-height: 1.2;
}
.dark .stat-val {
    color: var(--text-primary-dark, #f1f5f9);
}
.stat-lbl {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
}
.dark .stat-lbl {
    color: var(--text-muted-dark, #94a3b8);
}
.stat-chg {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
    white-space: nowrap;
}
.stat-chg.up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}
.stat-chg.dn {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.dark .stat-chg.up {
    background: rgba(34, 197, 94, 0.2);
}
.dark .stat-chg.dn {
    background: rgba(239, 68, 68, 0.2);
}

/* ===== گرید کارت‌ها ===== */
.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== کارت‌ها ===== */
.gcard {
    background: var(--bg-card, #ffffff);
    border-radius: 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0,0,0,0.05));
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gcard:hover {
    box-shadow: var(--shadow-hover, 0 8px 30px rgba(0,0,0,0.08));
}
.dark .gcard {
    background: var(--bg-card-dark, #1e293b);
    border-color: var(--border-dark, #334155);
}
.gcard.span2 {
    grid-column: span 2;
}
.gcard.full-width {
    grid-column: 1 / -1;
}
.gcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary, #0f172a);
}
.dark .gcard-header {
    border-color: var(--border-dark, #334155);
    color: var(--text-primary-dark, #f1f5f9);
}
.gcard-header span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.gcard-link {
    font-size: 0.65rem;
    color: var(--primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: gap 0.2s;
}
.gcard-link:hover { gap: 0.5rem; }
.dark .gcard-link { color: var(--primary-light, #818cf8); }
.gcard-body { padding: 0.5rem 0.6rem; }
.gcard-footer-center {
    text-align: center;
    padding: 0.4rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
    margin-top: 0.2rem;
}
.dark .gcard-footer-center { border-color: var(--border-dark, #334155); }

/* ===== گفتگوها ===== */
.conv-item {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: background 0.15s;
}
.conv-item:hover { background: var(--bg-hover, #f1f5f9); }
.dark .conv-item { border-color: var(--border-dark, #334155); }
.dark .conv-item:hover { background: var(--bg-hover-dark, #334155); }
.conv-item:last-child { border-bottom: none; }
.conv-question {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary, #0f172a);
}
.dark .conv-question { color: var(--text-primary-dark, #f1f5f9); }
.conv-answer {
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dark .conv-answer { color: var(--text-muted-dark, #94a3b8); }
.conv-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.55rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.1rem;
}
.dark .conv-meta { color: var(--text-muted-dark, #64748b); }

/* ===== وظایف ===== */
.todo-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.dark .todo-item { border-color: var(--border-dark, #334155); }
.todo-item:last-child { border-bottom: none; }
.todo-item.done { opacity: 0.5; }
.todo-item.done .todo-title { text-decoration: line-through; }
.todo-time {
    font-size: 0.55rem;
    color: var(--text-muted, #64748b);
    min-width: 32px;
}
.dark .todo-time { color: var(--text-muted-dark, #94a3b8); }
.todo-title {
    flex: 1;
    font-size: 0.7rem;
    color: var(--text-primary, #0f172a);
}
.dark .todo-title { color: var(--text-primary-dark, #f1f5f9); }
.todo-check { color: #22c55e; font-size: 0.65rem; }
.todo-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.4rem;
    margin-top: 0.2rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.dark .todo-progress { border-color: var(--border-dark, #334155); }
.todo-progress .progress-track {
    flex: 1;
    height: 3px;
    background: var(--border-color, #e2e8f0);
    border-radius: 99px;
    overflow: hidden;
}
.dark .todo-progress .progress-track { background: var(--border-dark, #334155); }
.todo-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    border-radius: 99px;
    transition: width 0.5s ease;
}
.progress-text {
    font-size: 0.55rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}
.dark .progress-text { color: var(--text-muted-dark, #94a3b8); }

/* ===== پادکست ===== */
.podcast-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.podcast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.podcast-info { flex: 1; min-width: 0; }
.podcast-info h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .podcast-info h4 { color: var(--text-primary-dark, #f1f5f9); }
.podcast-info p {
    font-size: 0.55rem;
    color: var(--text-muted, #64748b);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .podcast-info p { color: var(--text-muted-dark, #94a3b8); }

.podcast-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}
.pod-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0);
    background: transparent;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    transition: all 0.2s;
}
.pod-btn:hover {
    background: var(--bg-hover, #f1f5f9);
    border-color: var(--primary, #4f46e5);
    color: var(--primary, #4f46e5);
}
.dark .pod-btn {
    border-color: var(--border-dark, #334155);
    color: var(--text-muted-dark, #94a3b8);
}
.dark .pod-btn:hover {
    background: var(--bg-hover-dark, #334155);
    border-color: var(--primary-light, #818cf8);
    color: var(--primary-light, #818cf8);
}
.pod-btn.play {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary, #4f46e5);
    color: #fff;
    font-size: 0.7rem;
}
.pod-btn.play:hover {
    background: var(--primary-dark, #4338ca);
    transform: scale(1.05);
}
.podcast-progress { flex: 1; margin: 0 0.2rem; }
.podcast-progress .progress-track {
    height: 2px;
    background: var(--border-color, #e2e8f0);
    border-radius: 99px;
    overflow: hidden;
    cursor: pointer;
}
.dark .podcast-progress .progress-track { background: var(--border-dark, #334155); }
.podcast-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    border-radius: 99px;
    transition: width 0.3s ease;
}
.podcast-time {
    font-size: 0.5rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}
.dark .podcast-time { color: var(--text-muted-dark, #94a3b8); }

.podcast-episodes { display: flex; flex-direction: column; gap: 0.15rem; }
.episode-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.55rem;
}
.episode-item:hover { background: var(--bg-hover, #f1f5f9); }
.dark .episode-item {
    background: var(--bg-secondary-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}
.dark .episode-item:hover { background: var(--bg-hover-dark, #334155); }
.episode-num {
    color: var(--text-muted, #64748b);
    min-width: 12px;
    font-size: 0.45rem;
}
.dark .episode-num { color: var(--text-muted-dark, #94a3b8); }
.episode-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .episode-title { color: var(--text-primary-dark, #f1f5f9); }
.episode-duration {
    color: var(--text-muted, #64748b);
    font-size: 0.45rem;
}
.dark .episode-duration { color: var(--text-muted-dark, #94a3b8); }
.episode-play {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: var(--primary, #4f46e5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.35rem;
    flex-shrink: 0;
    transition: all 0.2s;
}
.episode-play:hover {
    background: var(--primary-dark, #4338ca);
    transform: scale(1.05);
}

/* ===== تاریخچه مطالعه ===== */
.history-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.dark .history-item { border-color: var(--border-dark, #334155); }
.history-item:last-child { border-bottom: none; }
.history-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(42, 157, 143, 0.1);
    color: #2a9d8f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    flex-shrink: 0;
}
.dark .history-icon { background: rgba(42, 157, 143, 0.2); }
.history-info { flex: 1; min-width: 0; }
.history-title {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .history-title { color: var(--text-primary-dark, #f1f5f9); }
.history-date {
    font-size: 0.5rem;
    color: var(--text-muted, #64748b);
}
.dark .history-date { color: var(--text-muted-dark, #94a3b8); }
.history-link {
    font-size: 0.55rem;
    color: var(--primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
}
.history-link:hover { text-decoration: underline; }
.dark .history-link { color: var(--primary-light, #818cf8); }

/* ===== ارسال‌ها ===== */
.submission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.4rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    flex-wrap: wrap;
    gap: 0.2rem;
}
.dark .submission-item { border-color: var(--border-dark, #334155); }
.submission-item:last-child { border-bottom: none; }
.submission-title {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
}
.dark .submission-title { color: var(--text-primary-dark, #f1f5f9); }
.submission-status {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
}
.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.dark .status-approved { background: rgba(16, 185, 129, 0.2); }
.dark .status-pending { background: rgba(245, 158, 11, 0.2); }
.dark .status-rejected { background: rgba(239, 68, 68, 0.2); }

/* ===== بوکمارک‌ها ===== */
.bookmark-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.dark .bookmark-item { border-color: var(--border-dark, #334155); }
.bookmark-item:last-child { border-bottom: none; }
.bookmark-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    flex-shrink: 0;
}
.dark .bookmark-icon { background: rgba(212, 175, 55, 0.2); }
.bookmark-info { flex: 1; min-width: 0; }
.bookmark-title {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .bookmark-title { color: var(--text-primary-dark, #f1f5f9); }
.bookmark-date {
    font-size: 0.5rem;
    color: var(--text-muted, #64748b);
}
.dark .bookmark-date { color: var(--text-muted-dark, #94a3b8); }

/* ===== اعلان‌ها ===== */
.notification-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: opacity 0.3s;
}
.dark .notification-item { border-color: var(--border-dark, #334155); }
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { opacity: 0.7; }
.notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(13, 122, 95, 0.1);
    color: var(--primary, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}
.dark .notif-icon {
    background: rgba(13, 122, 95, 0.2);
    color: var(--primary-light, #818cf8);
}
.notif-info { flex: 1; min-width: 0; }
.notif-text {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .notif-text { color: var(--text-primary-dark, #f1f5f9); }
.notif-time {
    font-size: 0.5rem;
    color: var(--text-muted, #64748b);
}
.dark .notif-time { color: var(--text-muted-dark, #94a3b8); }

/* ===== رویدادها ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}
.event-item {
    padding: 0.5rem 0.6rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s;
}
.event-item:hover {
    background: var(--bg-hover, #f1f5f9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card, 0 4px 12px rgba(0,0,0,0.05));
}
.dark .event-item {
    background: var(--bg-secondary-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}
.dark .event-item:hover {
    background: var(--bg-hover-dark, #334155);
}
.event-date {
    font-size: 0.55rem;
    color: var(--text-muted, #64748b);
    display: block;
    margin-bottom: 0.1rem;
}
.dark .event-date { color: var(--text-muted-dark, #94a3b8); }
.event-item h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.1rem;
}
.dark .event-item h4 { color: var(--text-primary-dark, #f1f5f9); }
.event-item p {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dark .event-item p { color: var(--text-muted-dark, #94a3b8); }
.event-link {
    font-size: 0.55rem;
    color: var(--primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.event-link:hover { gap: 0.4rem; }
.dark .event-link { color: var(--primary-light, #818cf8); }
.event-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 50px;
}
.event-more:hover {
    background: var(--bg-hover, #f1f5f9);
}
.dark .event-more {
    background: var(--bg-secondary-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}
.dark .event-more:hover {
    background: var(--bg-hover-dark, #334155);
}
.event-more span {
    font-size: 0.6rem;
    color: var(--text-muted, #64748b);
}
.dark .event-more span { color: var(--text-muted-dark, #94a3b8); }

/* ===== بج‌ها ===== */
.badge-date {
    font-size: 0.55rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
}
.badge-duration {
    font-size: 0.55rem;
    background: rgba(212, 87, 78, 0.1);
    color: #d4574e;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
}
.badge-count {
    font-size: 0.55rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
}
.badge-notif {
    font-size: 0.55rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
}
.badge-event {
    font-size: 0.55rem;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
}

/* ===== دکمه‌ها ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    border: none;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary, #4f46e5);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark, #4338ca);
    transform: scale(1.02);
}
.btn-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
}

/* ===== حالت خالی ===== */
.empty-text {
    text-align: center;
    color: var(--text-muted, #64748b);
    padding: 0.4rem 0;
    font-size: 0.75rem;
}
.dark .empty-text { color: var(--text-muted-dark, #94a3b8); }

/* ============================================================
   واکنش‌گرایی موبایل
   ============================================================ */
@media (max-width: 1024px) {
    .row-hero {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .dash-container { padding: 0.5rem; }
    .row-hero { gap: 0.5rem; }
    .hero-section { padding: 0.75rem; }
    .hero-avatar { width: 48px; height: 48px; }
    .hero-text h1 { font-size: 1rem; }
    .hero-sub { font-size: 0.7rem; }
    .hero-date { font-size: 0.6rem; }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .stat-card { padding: 0.5rem 0.6rem; }
    .stat-ico { width: 32px; height: 32px; font-size: 0.8rem; }
    .stat-val { font-size: 1rem; }
    
    .dash-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .gcard.span2 { grid-column: 1; }
    .gcard.full-width { grid-column: 1; }
    .gcard-header { font-size: 0.7rem; padding: 0.4rem 0.5rem; }
    .gcard-body { padding: 0.4rem 0.5rem; }
    
    .conv-item { padding: 0.3rem 0.4rem; }
    .conv-question { font-size: 0.7rem; }
    .conv-answer { font-size: 0.6rem; }
    .todo-item { padding: 0.2rem 0.3rem; }
    .todo-time { font-size: 0.5rem; min-width: 28px; }
    .todo-title { font-size: 0.65rem; }
    
    .podcast-icon { width: 30px; height: 30px; font-size: 0.7rem; }
    .podcast-info h4 { font-size: 0.65rem; }
    .podcast-info p { font-size: 0.5rem; }
    .pod-btn { width: 20px; height: 20px; font-size: 0.45rem; }
    .pod-btn.play { width: 28px; height: 28px; font-size: 0.6rem; }
    .episode-item { font-size: 0.5rem; padding: 0.1rem 0.2rem; }
    .episode-play { width: 16px; height: 16px; font-size: 0.3rem; }
    
    .history-item { padding: 0.2rem 0.3rem; }
    .history-title { font-size: 0.6rem; }
    .submission-item { padding: 0.2rem 0.3rem; }
    .submission-title { font-size: 0.6rem; }
    .bookmark-item { padding: 0.2rem 0.3rem; }
    .bookmark-title { font-size: 0.6rem; }
    .notification-item { padding: 0.2rem 0.3rem; }
    .notif-text { font-size: 0.6rem; }
    
    .events-grid { grid-template-columns: 1fr; }
    .event-item { padding: 0.3rem 0.4rem; }
    .event-item h4 { font-size: 0.65rem; }
    .event-item p { font-size: 0.55rem; }
    
    .level-section { padding: 0.6rem 0.8rem; }
    .points-number { font-size: 1.2rem; }
    .quote-section { padding: 0.6rem 0.8rem; }
    .quote-text { font-size: 0.65rem; }
    
    .btn { font-size: 0.6rem; padding: 0.2rem 0.5rem; }
    .btn-sm { font-size: 0.55rem; padding: 0.15rem 0.4rem; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
    .stat-card { padding: 0.4rem 0.5rem; gap: 0.4rem; }
    .stat-ico { width: 28px; height: 28px; font-size: 0.7rem; }
    .stat-val { font-size: 0.9rem; }
    .stat-lbl { font-size: 0.5rem; }
    .stat-chg { font-size: 0.5rem; padding: 0.05rem 0.3rem; }
    
    .gcard-header { font-size: 0.6rem; padding: 0.3rem 0.4rem; flex-wrap: wrap; gap: 0.2rem; }
    .gcard-body { padding: 0.3rem 0.4rem; }
    
    .badge-date, .badge-duration, .badge-count, .badge-notif, .badge-event {
        font-size: 0.45rem;
        padding: 0.05rem 0.3rem;
    }
    
    .hero-avatar { width: 40px; height: 40px; }
    .hero-text h1 { font-size: 0.9rem; }
    
    .podcast-controls { gap: 0.15rem; }
    .podcast-time { font-size: 0.4rem; }
    
    .conv-question { font-size: 0.65rem; }
    .conv-answer { font-size: 0.55rem; }
    .conv-meta { font-size: 0.5rem; }
}
/* ============================================================
   ✅ داشبورد - استایل‌های جدید و بهبودیافته
   ============================================================ */

/* ---- سرویس‌های سریع ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin: 1rem 0 1.5rem;
}

.service-btn {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.8rem 0.4rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.service-btn:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.service-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---- فعالیت‌ها ---- */
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
    font-size: 0.72rem;
    margin-bottom: 0.1rem;
}

.activity-item:hover {
    background: var(--hover);
    padding-right: 0.6rem;
}

.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    animation: dotPulse 3s ease-in-out infinite;
}

.activity-text {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

.activity-time {
    font-size: 0.55rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--hover);
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
}

/* ---- دکمه بازگشت به بالا ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

/* ---- دکمه انجام وظیفه ---- */
.todo-check-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.1rem 0.2rem;
    transition: all 0.2s;
}

.todo-check-btn:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* ---- ریسپانسیو داشبورد ---- */

/* تبلت و کوچکتر */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .service-btn {
        padding: 0.6rem 0.3rem;
    }
    .service-icon {
        font-size: 1.2rem;
    }
    .service-label {
        font-size: 0.55rem;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .service-btn {
        padding: 0.5rem 0.2rem;
        border-radius: 12px;
    }
    .service-icon {
        font-size: 1rem;
    }
    .service-label {
        font-size: 0.5rem;
    }
    
    .back-to-top {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    
    .service-btn {
        padding: 0.4rem 0.1rem;
        border-radius: 10px;
        gap: 0.15rem;
    }
    .service-icon {
        font-size: 0.85rem;
    }
    .service-label {
        font-size: 0.45rem;
    }
}
/* ============================================================
   اضافات به فایل Nikrad.css - بخش ورود (Login)
   ============================================================ */

/* ===== استایل‌های صفحه ورود ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-secondary, #f8fafc);
}
.dark .login-page {
    background: var(--bg-secondary-dark, #0f172a);
}

.login-card {
    max-width: 420px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--primary-light, #818cf8));
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.25);
}
.login-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0;
}
.dark .login-logo h1 {
    color: var(--text-primary-dark, #f1f5f9);
}
.login-logo p {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin: 0.2rem 0 0;
}
.dark .login-logo p {
    color: var(--text-muted-dark, #94a3b8);
}

/* ===== کلید جدید ===== */
.new-key-box {
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--radius-sm, 0.75rem);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    direction: ltr;
    text-align: left;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-primary, #1e293b);
    word-break: break-all;
    position: relative;
}
.dark .new-key-box {
    background: var(--bg-secondary-dark, #0f172a);
    border-color: var(--border-dark, #334155);
    color: var(--text-primary-dark, #f1f5f9);
}
.new-key-box .copy-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm, 0.5rem);
    transition: all 0.2s;
}
.new-key-box .copy-btn:hover {
    color: var(--primary, #4f46e5);
    background: var(--bg-hover, #f1f5f9);
}
.dark .new-key-box .copy-btn:hover {
    color: var(--primary-light, #818cf8);
    background: var(--bg-hover-dark, #334155);
}

.new-key-warning {
    font-size: 0.7rem;
    color: #f59e0b;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== راهنمای ورودی ===== */
.input-hint {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.55rem;
    color: var(--text-muted, #94a3b8);
    background: var(--bg-secondary, #f8fafc);
    padding: 0.05rem 0.5rem;
    border-radius: 99px;
    pointer-events: none;
}
.dark .input-hint {
    background: var(--bg-secondary-dark, #0f172a);
    color: var(--text-muted-dark, #64748b);
}

/* ===== دکمه‌ها ===== */
.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color, #e2e8f0);
    color: var(--text-primary, #1e293b);
}
.btn-outline:hover {
    border-color: var(--primary, #4f46e5);
    color: var(--primary, #4f46e5);
    background: var(--primary-bg, #eef2ff);
}
.dark .btn-outline {
    border-color: var(--border-dark, #334155);
    color: var(--text-primary-dark, #f1f5f9);
}
.dark .btn-outline:hover {
    border-color: var(--primary-light, #818cf8);
    color: var(--primary-light, #818cf8);
    background: var(--primary-bg-dark, #1e293b);
}

/* ===== خط جداکننده ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #e2e8f0);
}
.dark .divider::before,
.dark .divider::after {
    background: var(--border-dark, #334155);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 480px) {
    .login-card { padding: 0; }
    .login-logo .logo-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    .login-logo h1 { font-size: 1.6rem; }
    .login-logo p { font-size: 0.75rem; }
    .new-key-box { font-size: 0.7rem; padding: 0.5rem 0.7rem; }
}