/* =========================================
   COOL ARENA - Admin Panel Styles
   Same dark ice theme as main site
   ========================================= */

/* ---------- Variables ---------- */
:root {
    --bg-deep: #050a14;
    --bg-base: #0a1220;
    --bg-surface: #0f1a2e;
    --bg-card: #12203a;
    --bg-card-hover: #182844;
    --bg-input: #0c1525;

    --ice-50: #e8f4fd;
    --ice-100: #c5e4f7;
    --ice-200: #8dc8ee;
    --ice-300: #5bb0e4;
    --ice-400: #3a9ad8;
    --ice-500: #2c7fb8;
    --ice-600: #1f5f8a;
    --ice-700: #1a4a6e;

    --cyan: #00d4ff;
    --cyan-muted: #4fc3f7;

    --gold: #f5a623;
    --live: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --cat-hockey: #ef4444;
    --cat-freestyle: #3b82f6;
    --cat-figure: #a855f7;

    --text-primary: #f0f4f8;
    --text-secondary: #8899aa;
    --text-muted: #556677;

    --border: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);

    --font-en: 'Inter', system-ui, sans-serif;
    --font-ar: 'Tajawal', 'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --sidebar-width: 240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ar);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Login Screen ---------- */
.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 60% 50% at 30% 40%, rgba(31, 95, 138, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 70% 60%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
        var(--bg-deep);
}

.login__card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
}

.login__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--cyan-muted);
    margin-bottom: 24px;
}

.login__logo span {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--ice-100), var(--cyan-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.login__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login__input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.login__input:focus {
    border-color: var(--cyan-muted);
}

.login__input::placeholder {
    letter-spacing: normal;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--ice-600), var(--ice-700));
    color: var(--ice-50);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: all 0.3s var(--ease-out);
}

.login__btn:hover {
    background: linear-gradient(135deg, var(--ice-500), var(--ice-600));
    transform: translateY(-1px);
}

.login__error {
    color: var(--danger);
    font-size: 0.82rem;
    min-height: 20px;
    margin-top: 8px;
}

.login__hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 16px;
    opacity: 0.6;
}

.login__hint code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-en);
    font-size: 0.75rem;
}

/* ---------- Admin Layout ---------- */
.admin {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-base);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.35s var(--ease-out);
}

.sidebar__header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-muted);
}

.sidebar__logo span {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.sidebar__nav {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    width: 100%;
    text-align: right;
}

.sidebar__link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sidebar__link--active {
    background: var(--bg-surface);
    color: var(--cyan-muted);
    font-weight: 700;
}

.sidebar__link svg {
    flex-shrink: 0;
}

.sidebar__footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar__user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ice-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--ice-100);
    flex-shrink: 0;
}

.sidebar__user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.sidebar__user-role {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.sidebar__logout {
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar__logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ---------- Main Content ---------- */
.main {
    flex: 1;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-base);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar__toggle {
    display: none;
    color: var(--text-secondary);
    padding: 4px;
}

.topbar__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

/* ---------- View Header ---------- */
.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.view-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.abtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.abtn--primary {
    background: linear-gradient(135deg, var(--ice-600), var(--ice-700));
    color: var(--ice-50);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.abtn--primary:hover {
    background: linear-gradient(135deg, var(--ice-500), var(--ice-600));
    transform: translateY(-1px);
}

.abtn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.abtn--ghost:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.abtn--danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.abtn--danger:hover {
    background: rgba(239, 68, 68, 0.18);
}

.abtn--success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--live);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.abtn--success:hover {
    background: rgba(16, 185, 129, 0.2);
}

.abtn--sm {
    padding: 7px 12px;
    font-size: 0.75rem;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all 0.25s;
}

.stat-card:hover {
    border-color: var(--glass-border);
}

.stat-card__icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.stat-card__value {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

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

/* ---------- Section Cards Grid ---------- */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--section-color, var(--cyan-muted));
    opacity: 0.6;
}

.section-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.section-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-card__icon {
    font-size: 1.6rem;
}

.section-card__badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.section-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-card__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.section-card__actions {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ---------- Data Table / List ---------- */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.data-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.data-row:hover {
    background: var(--bg-card);
    border-color: var(--glass-border);
}

.data-row__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    flex-shrink: 0;
}

.data-row__info {
    flex: 1;
    min-width: 0;
}

.data-row__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.data-row__sub {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: block;
}

.data-row__meta {
    text-align: left;
    flex-shrink: 0;
}

.data-row__points {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cyan-muted);
    display: block;
}

.data-row__points-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.data-row__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ---------- Skill Card ---------- */
.skill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.skill-card:hover {
    border-color: var(--glass-border);
}

.skill-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: rgba(0, 212, 255, 0.06);
}

.skill-card__info {
    flex: 1;
    min-width: 0;
}

.skill-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.skill-card__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.skill-card__points {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold);
    padding: 4px 12px;
    background: rgba(245, 166, 35, 0.08);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    white-space: nowrap;
}

.skill-card__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ---------- Checkin Row ---------- */
.checkin-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.checkin-row--done {
    border-color: rgba(16, 185, 129, 0.15);
    background: rgba(16, 185, 129, 0.03);
}

.checkin-row__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.checkin-row__info {
    flex: 1;
}

.checkin-row__name {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.checkin-row__handle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-en);
    direction: ltr;
    display: inline-block;
}

.checkin-row__status {
    flex-shrink: 0;
}

.checkin-done {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--live);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ---------- Section Filter ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 9px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    min-width: 160px;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899aa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 32px;
}

.filter-select:focus {
    border-color: var(--cyan-muted);
}

.filter-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state__text {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ---------- Activity List ---------- */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.activity-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-item__icon--checkin {
    background: rgba(16, 185, 129, 0.1);
}

.activity-item__icon--skill {
    background: rgba(245, 166, 35, 0.1);
}

.activity-item__text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex: 1;
}

.activity-item__text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-item__time {
    font-size: 0.68rem;
    color: var(--text-muted);
    flex-shrink: 0;
    font-family: var(--font-en);
}

/* ---------- Section Detail ---------- */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.detail-back:hover {
    color: var(--cyan-muted);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.detail-header__icon {
    font-size: 2rem;
}

.detail-header__info h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.detail-header__info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Admin Modal ---------- */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.admin-modal.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 14, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.admin-modal__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s var(--ease-spring);
    scrollbar-width: thin;
    scrollbar-color: var(--bg-card) transparent;
}

.admin-modal.active .admin-modal__card {
    transform: translateY(0) scale(1);
}

.admin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.admin-modal__header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-modal__close {
    color: var(--text-muted);
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.admin-modal__close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-modal__body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 24px 20px;
}

/* Form Fields */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan-muted);
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899aa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 32px;
}

.form-group select option {
    background: var(--bg-surface);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toastIn 0.35s var(--ease-spring);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.toast--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--live);
}

.toast--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--danger);
}

.toast--info {
    background: rgba(79, 195, 247, 0.12);
    border: 1px solid rgba(79, 195, 247, 0.2);
    color: var(--cyan-muted);
}

.toast.removing {
    animation: toastOut 0.25s var(--ease-out) forwards;
}

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

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-right: 0;
    }

    .topbar__toggle {
        display: block;
    }

    .content {
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        flex-wrap: wrap;
    }

    .skill-card__actions {
        width: 100%;
    }

    .data-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .admin-modal__card {
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
    }

    .admin-modal.active .admin-modal__card {
        transform: translateY(0);
    }
}

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

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
