/* =========================================================
   profile.css — DevDrill Profile Page (v3)
   Depends on variables.css for all CSS custom properties
   ========================================================= */

/* ── Page wrapper ──────────────────────────────────────── */
.page-scope-profile {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ── Profile Hero ──────────────────────────────────────── */
.profile-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(42, 104, 255, 0.04) 100%);
    pointer-events: none;
}

.profile-hero.role-head-admin {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #451a03 100%);
    border-color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
}

.profile-hero.role-head-admin .profile-display-name {
    background: linear-gradient(to right, #fff, #fde68a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-hero.role-head-admin .profile-handle,
.profile-hero.role-head-admin .profile-bio {
    color: rgba(255, 255, 255, 0.7);
}

.profile-hero.role-admin {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 70%, #1e1b4b 100%);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 32px rgba(42, 104, 255, 0.12);
}

.profile-hero.role-admin .profile-display-name {
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-hero.role-admin .profile-handle,
.profile-hero.role-admin .profile-bio {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Avatar Zone ───────────────────────────────────────── */
.profile-avatar-zone {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary-blue-light);
    border: 3px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: border-color 0.3s;
}

.profile-hero.role-head-admin .profile-avatar {
    border-color: #f59e0b;
}

.profile-hero.role-admin .profile-avatar {
    border-color: var(--primary-blue);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-flag {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 0;
}

.avatar-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    z-index: 2;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.avatar-edit-btn svg {
    pointer-events: none;
}

/* ── Profile Info ──────────────────────────────────────── */
.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.profile-display-name {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.profile-pronouns {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 400;
    white-space: nowrap;
}

.profile-handle {
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* ── Email in hero ─────────────────────────────────────── */
.profile-email-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    background: var(--background);
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.profile-email-row svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.profile-email-text {
    font-weight: 500;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.email-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    flex-shrink: 0;
}

.email-unverified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--warning);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Profile views ─────────────────────────────────────── */
.profile-views-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.profile-views-row svg {
    opacity: 0.5;
    flex-shrink: 0;
}

#profile-views-count {
    font-weight: 700;
    color: var(--primary-blue);
}

/* Chips row */
.profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.chip svg {
    flex-shrink: 0;
}

.chip-level {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue-light);
}

.chip-founder {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.chip-admin {
    background: rgba(42, 104, 255, 0.12);
    color: var(--primary-blue);
    border: 1px solid rgba(42, 104, 255, 0.25);
}

.chip-location {
    background: var(--background);
    color: var(--text-soft);
    border: 1px solid var(--border);
}

.chip-private {
    background: rgba(255, 201, 71, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 201, 71, 0.3);
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 0.85rem;
    line-height: 1.6;
}

.profile-bio:empty {
    display: none;
}

/* Social row */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-dark);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: color .18s, background .18s, border-color .18s, transform .18s, box-shadow .18s;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 0;
}

.social-icon-btn svg,
.social-icon-btn i {
    pointer-events: none;
}

.profile-hero.role-admin .social-icon-btn,
.profile-hero.role-head-admin .social-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

.social-icon-btn:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.social-github:hover {
    background: #24292e;
}

.social-twitter:hover {
    background: #000;
}

.social-linkedin:hover {
    background: #0077b5;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-youtube:hover {
    background: #ff0000;
}

.social-discord:hover {
    background: #5865f2;
}

.social-tiktok:hover {
    background: #010101;
}

.social-twitch:hover {
    background: #9146ff;
}

.social-medium:hover {
    background: #000;
}

.social-facebook:hover {
    background: #1877f2;
}

.social-custom:hover {
    background: var(--accent-purple);
}

.social-icon-btn:not([class*="social-"]):hover {
    background: var(--primary-blue);
}

/* ── Profile Actions ───────────────────────────────────── */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-action svg {
    flex-shrink: 0;
}

.btn-edit {
    background: var(--primary-blue);
    color: #fff;
    border: 1px solid var(--primary-blue);
}

.btn-edit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 104, 255, 0.3);
}

.btn-share {
    background: var(--background);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-share:hover {
    background: var(--surface);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-get-link {
    background: var(--background);
    color: var(--text-soft);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
}

.btn-get-link:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.share-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 201, 71, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 201, 71, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.share-view-badge.share-view-expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error, #ef4444);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ── Stats Bar ─────────────────────────────────────────── */
.stats-bar {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.stat-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    gap: 0.2rem;
}

.stat-pill-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-pill-value.text-primary {
    color: var(--primary-blue);
}

.stat-pill-value.text-success {
    color: var(--success);
}

.stat-pill-label {
    font-size: 0.7rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Activity Heatmap ──────────────────────────────────── */
.heatmap-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.heatmap-wrap {
    position: relative;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.heatmap-months {
    display: flex;
    padding-left: 28px;
    margin-bottom: 4px;
    gap: 3px; /* must match .heatmap-grid and .heatmap-week-col gap */
    min-width: max-content;
}

.heatmap-month-label {
    font-size: 0.65rem;
    color: var(--text-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
    position: relative;
}

.heatmap-grid-outer {
    display: flex;
    gap: 4px;
    min-width: max-content;
}

.heatmap-days-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    padding: 2px 0;
    width: 24px;
    flex-shrink: 0;
}

.heatmap-days-label span {
    font-size: 0.6rem;
    color: var(--text-soft);
    font-weight: 600;
    text-align: right;
    line-height: 1;
    height: 11px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.heatmap-grid {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.heatmap-week-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.heatmap-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    transition: transform 0.1s;
    cursor: default;
    flex-shrink: 0;
}

.heatmap-cell:hover {
    transform: scale(1.3);
}

.heatmap-cell.level-0 {
    background: var(--border);
}

.heatmap-cell.level-empty {
    background: transparent;
}

.heatmap-cell.level-1 {
    background: rgba(42, 104, 255, 0.25);
}

.heatmap-cell.level-2 {
    background: rgba(42, 104, 255, 0.5);
}

.heatmap-cell.level-3 {
    background: rgba(42, 104, 255, 0.75);
}

.heatmap-cell.level-4 {
    background: var(--primary-blue);
}

[data-theme="dark"] .heatmap-cell.level-0 {
    background: rgba(255, 255, 255, 0.06);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding-left: 28px;
    justify-content: flex-end;
}

.heatmap-legend-label {
    font-size: 0.65rem;
    color: var(--text-soft);
    font-weight: 500;
}

.heatmap-summary {
    font-size: 0.75rem;
    color: var(--text-soft);
    font-weight: 500;
}

/* Tooltip */
.heatmap-tooltip {
    position: fixed;
    background: var(--text-dark);
    color: var(--surface);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    line-height: 1.5;
    max-width: 180px;
}

.heatmap-tooltip.visible {
    opacity: 1;
}

/* Skeleton loading */
.heatmap-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    width: 100%;
}

.heatmap-skeleton {
    display: block;
    width: 100%;
    height: 88px;
    background: linear-gradient(90deg, var(--border) 25%, var(--background) 50%, var(--border) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Main Grid ─────────────────────────────────────────── */
.profile-main-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* ── Sidebar ───────────────────────────────────────────── */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.sidebar-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-soft);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list svg {
    color: var(--text-soft);
    flex-shrink: 0;
}

.about-list strong {
    color: var(--primary-blue);
}

/* ── Language stats (donut) ────────────────────────────── */
.lang-stats-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.lang-donut-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.lang-donut-wrap canvas {
    display: block;
}

.lang-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    pointer-events: none;
}

#lang-donut-top-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lang-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-pct {
    font-weight: 700;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.lang-bar-wrap {
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    width: 100%;
    margin-top: 2px;
}

.lang-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s ease;
}

/* ── Academy course card ───────────────────────────────── */
.academy-card {
    overflow: hidden;
}

.academy-course-item {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.academy-course-color-bar {
    width: 4px;
    border-radius: 99px;
    flex-shrink: 0;
    opacity: 0.85;
}

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

.academy-course-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.academy-course-meta {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-bottom: 0.6rem;
}

.academy-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.academy-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.academy-progress-label {
    font-size: 0.7rem;
    color: var(--text-soft);
    font-weight: 600;
}

.btn-view-course {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-view-course:hover {
    background: var(--primary-hover, #1a4cc7);
    transform: translateY(-1px);
}

/* ── Content area ──────────────────────────────────────── */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-soft);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-count {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    font-weight: 600;
}

/* ── Certificates section ──────────────────────────────── */
.certs-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.cert-card {
    display: block;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.cert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--cert-color, var(--primary-blue));
}

.cert-ribbon {
    height: 4px;
    background: var(--cert-color, var(--primary-blue));
    border-radius: 0;
}

.cert-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
}

.cert-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cert-color, var(--primary-blue)) 12%, transparent);
    color: var(--cert-color, var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-info {
    flex: 1;
    min-width: 0;
}

.cert-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.cert-meta {
    font-size: 0.72rem;
    color: var(--cert-color, var(--primary-blue));
    font-weight: 600;
    text-transform: capitalize;
}

.cert-date {
    font-size: 0.68rem;
    color: var(--text-soft);
}

.cert-download-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    text-decoration: none;
}

.cert-download-btn:hover {
    background: var(--cert-color, var(--primary-blue));
    color: #fff;
    border-color: var(--cert-color, var(--primary-blue));
}

/* ── Pinned Section ────────────────────────────────────── */
.pinned-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.pinned-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pinned-badge-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
    cursor: default;
}

.pinned-badge-chip:hover {
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.pinned-badge-chip .badge-tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tier-dot-wood {
    background: #a0856e;
}

.tier-dot-bronze {
    background: #cd7f32;
}

.tier-dot-silver {
    background: #a8a8a8;
}

.tier-dot-gold {
    background: #f59e0b;
}

.tier-dot-diamond {
    background: var(--accent-purple);
    box-shadow: 0 0 6px rgba(124, 97, 255, 0.6);
}

/* ── Achievements Section ──────────────────────────────── */
.achievements-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.ach-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}

.ach-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ach-card.tier-wood {
    border-left-color: #a0856e;
}

.ach-card.tier-bronze {
    border-left-color: #cd7f32;
}

.ach-card.tier-silver {
    border-left-color: #a8a8a8;
}

.ach-card.tier-gold {
    border-left-color: #f59e0b;
}

.ach-card.tier-diamond {
    border-left-color: var(--accent-purple);
}

.ach-card.is-pinned {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}

.ach-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ach-card.tier-wood .ach-icon-wrap {
    background: rgba(160, 133, 110, 0.12);
    color: #a0856e;
}

.ach-card.tier-bronze .ach-icon-wrap {
    background: rgba(205, 127, 50, 0.12);
    color: #cd7f32;
}

.ach-card.tier-silver .ach-icon-wrap {
    background: rgba(168, 168, 168, 0.12);
    color: #a8a8a8;
}

.ach-card.tier-gold .ach-icon-wrap {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.ach-card.tier-diamond .ach-icon-wrap {
    background: rgba(124, 97, 255, 0.12);
    color: var(--accent-purple);
}

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

.ach-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ach-meta {
    font-size: 0.7rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.pin-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-soft);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s;
    opacity: 0.5;
}

.ach-card:hover .pin-btn {
    opacity: 1;
}

.pin-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    opacity: 1;
}

.pin-btn.is-pinned {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
    opacity: 1;
}

.pin-btn.is-pinned:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.pin-btn svg {
    pointer-events: none;
}

.empty-achievements {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-soft);
}

.empty-achievements svg {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-achievements p {
    font-size: 0.9rem;
}

/* ── Modal System ──────────────────────────────────────── */
.dd-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
    overscroll-behavior: contain;
}

.dd-modal.open {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dd-modal-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: panelSlideUp 0.25s ease;
}

@keyframes panelSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.dd-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.dd-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--background);
    color: var(--text-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.dd-modal-close:hover {
    background: var(--error);
    color: #fff;
    border-color: var(--error);
}

.dd-modal-body {
    padding: 1.5rem;
}

.dd-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* ── Form Elements ─────────────────────────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.72rem;
    opacity: 0.7;
    margin-left: auto;
}

.dd-input {
    padding: 0.55rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
}

.dd-input::placeholder {
    color: var(--text-soft);
    opacity: 0.6;
}

.dd-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(42, 104, 255, 0.12);
}

/* Select element styling */
select.dd-input {
    cursor: pointer;
}

select.dd-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(42, 104, 255, 0.12);
}

.dd-textarea {
    resize: vertical;
    min-height: 72px;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── OTP Input ─────────────────────────────────────────── */
.otp-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.otp-cell {
    width: 40px;
    height: 48px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -moz-appearance: textfield;
    caret-color: var(--primary-blue);
    flex-shrink: 0;
}

.otp-cell::-webkit-inner-spin-button,
.otp-cell::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-cell:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(42, 104, 255, 0.15);
    background: var(--surface);
}

.otp-cell.filled {
    border-color: var(--primary-blue);
    background: rgba(42, 104, 255, 0.05);
}

.otp-cell.otp-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.15);
    animation: otpShake 0.3s ease;
}

@keyframes otpShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    60% {
        transform: translateX(4px);
    }
}

.otp-sep {
    color: var(--text-soft);
    font-size: 1rem;
    font-weight: 300;
    padding: 0 0.1rem;
    flex-shrink: 0;
}

/* Verify banner */
.verify-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--warning);
    background: var(--warning-light);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 201, 71, 0.3);
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}

.email-verify-otp-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* Custom socials */
.custom-socials-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.custom-social-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 0.5rem;
    align-items: center;
}

.btn-remove-link {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-remove-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-add-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: none;
    border: 1px dashed var(--primary-blue);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0.7;
}

.btn-add-link:hover {
    opacity: 1;
    background: var(--primary-blue-light);
}

/* Privacy toggle */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.toggle-label-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    flex-shrink: 0;
}

.toggle-desc {
    font-size: 0.78rem;
    color: var(--text-soft);
    flex: 1;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

.toggle-switch input {
    display: none;
}

.toggle-thumb {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--border);
    transition: background 0.2s;
}

.toggle-thumb::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-thumb {
    background: #f59e0b;
}

.toggle-switch input:checked+.toggle-thumb::after {
    transform: translateX(18px);
}

/* Buttons */
.btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}

.btn-save:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 104, 255, 0.3);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-save.w-full {
    width: 100%;
}

.mt-3 {
    margin-top: 0.75rem;
}

.btn-cancel {
    padding: 0.6rem 1.25rem;
    background: var(--background);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.btn-cancel:hover {
    border-color: var(--text-soft);
}

/* ── Share modal ───────────────────────────────────────── */
.share-modal-panel {
    max-width: 440px;
}

.share-modal-body {
    text-align: center;
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.share-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem 0.75rem;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: inherit;
}

.share-option-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.share-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-option-icon--blue {
    background: rgba(42, 104, 255, 0.1);
    color: var(--primary-blue);
}

.share-option-icon--purple {
    background: rgba(124, 97, 255, 0.1);
    color: var(--accent-purple);
}

.share-option-icon--amber {
    background: rgba(255, 201, 71, 0.15);
    color: var(--warning);
}

.share-option-btn:hover .share-option-icon--blue {
    background: var(--primary-blue);
    color: #fff;
}

.share-option-btn:hover .share-option-icon--purple {
    background: var(--accent-purple);
    color: #fff;
}

.share-option-btn:hover .share-option-icon--amber {
    background: var(--warning);
    color: #fff;
}

.share-generated-wrap {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
}

.share-link-input {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
}

.share-link-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.share-link-row .dd-input {
    flex: 1;
}

.btn-copy-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.btn-copy-link:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.share-expiry {
    font-size: 0.72rem;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.share-generated-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-generated-actions .btn-save,
.share-generated-actions a.btn-save {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.share-generated-actions .btn-cancel {
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
}

/* ── Hero skeleton loader ────────────────────────────────── */
.hero-skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--background) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s infinite;
    border-radius: 6px;
    display: inline-block;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Toast notifications ───────────────────────────────── */
.dd-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    animation: toastIn 0.25s ease;
    max-width: 340px;
    pointer-events: none;
    font-family: inherit;
}

.dd-toast.toast-success {
    background: var(--success);
}

.dd-toast.toast-error {
    background: var(--error);
}

.dd-toast.toast-info {
    background: var(--primary-blue);
}

@keyframes toastIn {
    from {
        transform: translateY(12px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── Avatar upload progress ────────────────────────────── */
.avatar-uploading .profile-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {

    /* Stack the sidebar above content on tablets */
    .profile-main-grid {
        grid-template-columns: 1fr;
    }

    /* Disable sticky on mobile — just flow normally */
    .profile-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem;
        gap: 1rem;
    }

    /* Avatar zone sits at top, centered */
    .profile-avatar-zone {
        flex-shrink: 0;
        align-self: center;
    }

    /* Info takes full width so content has room */
    .profile-info {
        width: 100%;
        min-width: 0;
    }

    /* Name row wraps tightly */
    .profile-name-row {
        justify-content: center;
    }

    /* Handle centered */
    .profile-handle {
        text-align: center;
    }

    /* Email row — constrain to parent, don't overflow */
    .profile-email-row {
        max-width: 100%;
        width: fit-content;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        display: flex;
    }

    /* Chips centered */
    .profile-chips {
        justify-content: center;
    }

    /* Bio centered */
    .profile-bio {
        text-align: center;
    }

    /* Social row centered */
    .social-row {
        justify-content: center;
    }

    /* Views row centered */
    .profile-views-row {
        justify-content: center;
    }

    /* Actions full-width at bottom */
    .profile-actions {
        flex-direction: row;
        width: 100%;
        order: 10;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
    }

    .stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stat-divider:nth-child(4) {
        display: none;
    }

    .stat-divider {
        width: auto;
        height: 1px;
        grid-column: 1 / -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .share-options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    /* OTP cells on mobile */
    .otp-cell {
        width: 36px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Sidebar flat on small screens */
    .profile-sidebar {
        grid-template-columns: 1fr;
    }

    /* Heatmap scrolls on mobile */
    .heatmap-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-scope-profile {
        padding: 1rem 0.75rem 3rem;
    }

    .profile-hero {
        padding: 1.25rem 1rem;
    }

    .dd-modal-panel {
        border-radius: 16px 16px 0 0;
    }

    .dd-modal {
        align-items: flex-end;
        padding: 0;
    }

    .dd-modal-panel {
        max-height: 95vh;
    }

    .otp-cell {
        width: 32px;
        height: 40px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .share-options-grid {
        gap: 0.4rem;
    }

    .share-option-btn {
        padding: 0.75rem 0.3rem 0.6rem;
        font-size: 0.72rem;
    }

    .share-option-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .section-header{
        flex-direction: column;
    }
}

/* Select wrapper for dropdowns */
.select-wrapper {
    position: relative;
}

.select-wrapper .dd-input {
    padding-right: 36px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-soft);
    font-size: 0.75rem;
}