:root {
    --bg-deep: #0a1118;
    --bg-primary: #0f1a24;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(15, 26, 36, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent-cyan: #00e5ff;
    --accent-teal: #14b8a6;
    --accent-teal-dark: #0d9488;
    --accent-orange: #f59e0b;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --accent-pink: #fb7185;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --sidebar-width: 240px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 229, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--bg-deep);
    font-weight: 700;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-links a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.nav-links a.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--border-glass);
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main content */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    max-width: 100%;
    overflow-x: hidden;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 17, 24, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    min-width: 0;
    max-width: 100%;
}

.page-heading h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-heading p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
}

.header-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.08);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-deep);
    border: 2px solid rgba(0, 229, 255, 0.3);
}

.main-content {
    padding: 0 2rem 2rem;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Glass card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    max-width: 100%;
    overflow: hidden;
}

/* Hero tiles */
.hero-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.hero-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 220px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: all var(--transition);
    border: 1px solid var(--border-glass);
}

.hero-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 17, 24, 0.95) 0%, rgba(10, 17, 24, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero-tile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.hero-tile:hover .hero-tile-bg {
    transform: scale(1.08);
}

.hero-tile-content {
    position: relative;
    z-index: 2;
}

.hero-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero-tile h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.hero-tile p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-tile-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.hero-tile.featured {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.hero-tile.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    z-index: 0;
}

.hero-tile .btn-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: var(--text-primary);
    color: var(--bg-deep);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    margin-top: 0.5rem;
}

.hero-tile .btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.hero-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Dashboard layout */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
}

.dashboard-tiles {
    margin-bottom: 0;
    order: 1;
}

.dashboard-summary {
    order: 2;
}

/* Summary panels */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 100%;
}

.summary-panel {
    padding: 1.5rem;
    max-width: 100%;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.panel-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.panel-header .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
    font-weight: 500;
}

/* Donut chart */
.stats-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.donut-chart {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--chart-gradient, rgba(255, 255, 255, 0.06));
}

.donut-chart::before {
    content: '';
    position: absolute;
    inset: 22%;
    background: #121c26;
    border-radius: 50%;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.donut-center .value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.donut-center .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.stats-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.legend-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar-mini {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    margin-top: 0.25rem;
    overflow: hidden;
}

.progress-bar-mini .fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 1s ease;
}

.summary-toast {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.summary-toast i {
    color: var(--accent-green);
}

/* Profile info */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.profile-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-deep);
    flex-shrink: 0;
}

.profile-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-details .role {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.profile-details .bio {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.stat-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.stat-pill {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.stat-pill .num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-pill .lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all var(--transition);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
}

.activity-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-thumb i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-info h5 {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.activity-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

/* Publications table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: rgba(0, 229, 255, 0.08);
    color: var(--accent-cyan);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-glass);
}

.modern-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.875rem;
    word-break: break-word;
}

.modern-table tbody tr {
    transition: background var(--transition);
}

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.type-badge {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.type-патент-изобретение { background: rgba(0, 229, 255, 0.12); color: var(--accent-cyan); }
.type-патент-полезная-модель { background: rgba(20, 184, 166, 0.12); color: var(--accent-teal); }
.type-статья-вак { background: rgba(34, 197, 94, 0.12); color: var(--accent-green); }
.type-статья { background: rgba(245, 158, 11, 0.12); color: var(--accent-orange); }
.type-учебное-пособие { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); }

.modern-table th:first-child,
.modern-table td.number {
    width: 3.5rem;
    min-width: 3.5rem;
    max-width: 3.5rem;
    white-space: nowrap;
    text-align: center;
}

.number {
    font-weight: 600;
    color: var(--text-muted);
}

.title-cell {
    font-weight: 500;
    color: var(--text-primary);
}

.details-cell {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

/* Grid cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.card-item {
    overflow: hidden;
    transition: all var(--transition);
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 229, 255, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.card-item:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 24, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.card-item:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--text-primary);
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition);
    color: var(--bg-deep);
    font-size: 1rem;
    position: relative;
}

.view-btn:hover {
    transform: scale(1.1);
}

.image-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-cyan);
    color: var(--bg-deep);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.no-image i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-line;
}

.card-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.35rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(10, 17, 24, 0.95);
    backdrop-filter: blur(8px);
}

.modal-fullscreen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    border: 1px solid var(--border-glass);
}

.close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 1001;
    font-size: 1.1rem;
}

.nav-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

.prev-btn { left: 24px; }
.next-btn { right: 24px; }

.image-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1001;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    margin-bottom: 1rem;
    font-size: 3rem;
    opacity: 0.3;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-tiles {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
        flex-shrink: 0;
    }

    .top-header {
        padding: 0.75rem 1rem;
    }

    .page-heading {
        min-width: 0;
    }

    .page-heading h1 {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .page-heading p {
        font-size: 0.78rem;
    }

    .main-content {
        padding: 0 0.75rem 1.25rem;
    }

    .dashboard-summary {
        display: flex;
        flex-direction: column;
        order: 1;
    }

    .dashboard-profile {
        order: 1;
    }

    .dashboard-stats {
        order: 2;
    }

    .dashboard-tiles {
        order: 2;
    }

    .profile-card-inner {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .profile-details {
        text-align: left;
    }

    .donut-chart {
        margin: 0 auto;
    }

    .stats-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-tile {
        min-height: 180px;
        padding: 1.25rem;
    }

    .hero-tile h2 {
        font-size: 1.15rem;
    }

    .hero-tile p {
        font-size: 0.8rem;
    }

    .summary-panel {
        padding: 1rem;
    }

    .panel-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .stat-pills {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-pill {
        padding: 0.6rem 0.35rem;
    }

    .stat-pill .num {
        font-size: 1.1rem;
    }

    .stat-pill .lbl {
        font-size: 0.6rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }

    .modern-table {
        min-width: 560px;
    }

    .modern-table th,
    .modern-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.78rem;
    }

    .type-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}
