/* ─── AUTH ───────────────────────────────────────────── */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 24px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.auth-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-light);
    text-decoration: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover { color: var(--primary-light); }

/* ─── DASHBOARD LAYOUT ───────────────────────────────── */
.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ─── SIDEBAR ────────────────────────────────────────── */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-radius: 0;
    border-right: 1px solid var(--glass-border);
    border-top: none;
    border-bottom: none;
    border-left: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--glass);
    color: var(--text);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.nav-item.logout {
    color: rgba(239, 68, 68, 0.7);
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* ─── MAIN ───────────────────────────────────────────── */
.dash-main {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    min-width: 0;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.dash-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

/* ─── OVERVIEW ───────────────────────────────────────── */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 16px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon.green  { background: rgba(16,185,129,0.15); color: #10b981; }
.stat-card-icon.blue   { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.stat-card-icon.purple { background: rgba(139,92,246,0.15);  color: #a78bfa; }
.stat-card-icon.cyan   { background: rgba(6,182,212,0.15);   color: #22d3ee; }

.stat-card-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* ─── CONFIG CARD ────────────────────────────────────── */
.config-card {
    padding: 1.75rem;
    border-radius: 16px;
}

.config-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.config-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.config-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.config-row:last-of-type { border-bottom: none; }

.config-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 90px;
    flex-shrink: 0;
}

.config-val {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text);
    flex: 1;
    word-break: break-all;
}

.key-val {
    font-size: 0.75rem;
    opacity: 0.7;
}

.copy-btn {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.25);
    color: var(--primary-light);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.copy-btn:hover { background: rgba(99,102,241,0.2); }

/* ─── SUBSCRIPTION ───────────────────────────────────── */
.sub-current {
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sub-plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.sub-expires {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sub-status-badge {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(148,163,184,0.1);
    border: 1px solid rgba(148,163,184,0.2);
    color: var(--text-muted);
}

.sub-status-badge.active {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.3);
    color: #10b981;
}

.sub-status-badge.expired {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.25);
    color: #ef4444;
}

.sub-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
    transition: width 0.6s ease;
}

.sub-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── PLANS GRID ─────────────────────────────────────── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-card {
    padding: 1.5rem;
    border-radius: 16px;
    cursor: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.plan-card:hover {
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-3px);
}

.plan-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99,102,241,0.2);
    background: rgba(99,102,241,0.08);
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.plan-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.plan-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.plan-badge.green  { background: rgba(16,185,129,0.15); color: #10b981; }
.plan-badge.purple { background: rgba(139,92,246,0.15);  color: #a78bfa; }
.plan-badge.blue   { background: rgba(59,130,246,0.15);  color: #60a5fa; }

.checkout-card {
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border-color: rgba(99,102,241,0.3);
}

.checkout-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.checkout-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.checkout-price strong {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* ─── PAYMENTS TABLE ─────────────────────────────────── */
.payments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.payments-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.payments-table td {
    padding: 0.875rem 1rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.payments-table tr:last-child td { border-bottom: none; }

.pay-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pay-status.ok  { background: rgba(16,185,129,0.15); color: #10b981; }
.pay-status.pending { background: rgba(251,191,36,0.15); color: #fbbf24; }

/* ─── SUPPORT / TICKETS ──────────────────────────────── */
.ticket-form {
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border-color: rgba(99,102,241,0.3);
}

.ticket-form h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.ticket-card {
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    cursor: none;
    transition: border-color 0.2s;
}

.ticket-card:hover { border-color: rgba(99,102,241,0.3); }

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ticket-subject {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.ticket-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ticket-preview {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.ticket-status {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ticket-status.open   { background: rgba(251,191,36,0.15); color: #fbbf24; }
.ticket-status.closed { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.ticket-status.answered { background: rgba(16,185,129,0.15); color: #10b981; }

.ticket-messages {
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    display: none;
}

.ticket-messages.open { display: block; }

.msg {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.msg.user    { background: rgba(99,102,241,0.1); color: var(--text); margin-left: 2rem; }
.msg.support { background: rgba(255,255,255,0.04); color: var(--text-muted); margin-right: 2rem; }

.msg-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.ticket-reply {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.ticket-reply input {
    flex: 1;
    padding: 0.6rem 0.875rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.ticket-reply input:focus { border-color: rgba(99,102,241,0.5); }

.ticket-reply button {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: none;
    transition: opacity 0.2s;
}

.ticket-reply button:hover { opacity: 0.85; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── PROFILE ────────────────────────────────────────── */
.profile-card {
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 260px;
}

.danger-card {
    padding: 1.75rem;
    border-radius: 16px;
    border-color: rgba(239,68,68,0.2);
}

.danger-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.danger-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .dash-main {
        padding: 1.25rem;
    }

    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── SUBSCRIPTION MODAL ─────────────────────────────── */
.sub-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Курсор всегда поверх всего включая модалки */
.cursor-svg {
    z-index: 999999 !important;
}

.sub-modal-overlay.open {
    display: flex;
}

.sub-modal {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 0 80px rgba(99,102,241,0.2);
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    max-height: 90vh;
    overflow-y: auto;
}

.sub-link-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.sub-link-val {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: var(--primary-light);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
}

/* App buttons */
.app-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-align: left;
}

.app-btn:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.35);
    transform: translateY(-2px);
}

.app-btn.active {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.5);
}

.app-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.app-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.app-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Instructions */
.app-instructions {
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

.app-instructions-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.app-instructions-list {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.app-instructions-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-instructions-list li b {
    color: var(--text);
}

/* ─── DEMO HINT ──────────────────────────────────────── */
.demo-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.demo-hint span {
    color: var(--primary-light);
    font-weight: 600;
}

.demo-hint code {
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text);
    font-size: 0.8rem;
}

.demo-hint button {
    margin-left: auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 6px;
    color: white;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: none;
    transition: opacity 0.2s;
}

.demo-hint button:hover { opacity: 0.85; }

/* ─── AVATAR UPLOAD ──────────────────────────────────── */
.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.profile-avatar-wrap .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    transition: filter 0.2s;
}

.profile-avatar-wrap:hover .profile-avatar {
    filter: brightness(0.7);
}

.profile-avatar-wrap .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-change-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid var(--dark-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.avatar-change-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

/* Аватарка в шапке дашборда тоже поддерживает фото */
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ─── NOTIFICATIONS ──────────────────────────────────── */
.notif-bell-wrap {
    position: relative;
}

.notif-bell {
    width: 38px;
    height: 38px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    position: relative;
}

.notif-bell:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.3);
    color: var(--primary-light);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse 2s infinite;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 500;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: fadeInDown 0.2s ease;
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

.notif-read-all {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 0.75rem;
    cursor: none;
    padding: 0;
    transition: opacity 0.2s;
}

.notif-read-all:hover { opacity: 0.7; }

.notif-list {
    overflow-y: auto;
    flex: 1;
}

.notif-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.notif-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
    cursor: none;
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover { background: rgba(255,255,255,0.03); }

.notif-item.unread {
    background: rgba(99,102,241,0.06);
}

.notif-item.unread:hover {
    background: rgba(99,102,241,0.1);
}

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-icon.ticket_reply          { background: rgba(99,102,241,0.15); }
.notif-icon.subscription_activated { background: rgba(16,185,129,0.15); }
.notif-icon.system                 { background: rgba(251,191,36,0.15); }

.notif-content { flex: 1; min-width: 0; }

.notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-body {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .notif-panel { width: calc(100vw - 2rem); right: -1rem; }
}

/* ─── MOBILE DASHBOARD ───────────────────────────────── */
.mobile-dash-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-dash-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-dash-menu {
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-dash-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.mobile-dash-menu a:hover {
    background: var(--glass);
    color: var(--text);
}

/* На мобильных скрываем сайдбар, показываем мобильную шапку */
@media (max-width: 768px) {
    .sidebar { display: none !important; }
    .mobile-dash-header { display: flex; }
    .dash-header { display: none !important; }
    .dash-main { padding: 1rem; }
}

/* Скрываем курсор на тачскринах — работает надёжно */
@media (hover: none), (pointer: coarse) {
    .cursor-svg { display: none !important; opacity: 0 !important; }
    html, body, *, *::before, *::after {
        cursor: auto !important;
    }
}
