@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;600&display=swap');

* {
    box-sizing: border-box;
}

body.theme-pastel {
    --bg: #fdf2ff;
    --bg-2: #e0f2fe;
    --glass: rgba(255, 255, 255, 0.9);
    --stroke: rgba(148, 163, 184, 0.30);
    --text: #111827;
    --muted: #6b7280;
    --primary: #fb7185;
    --primary-2: #38bdf8;
    --accent: #f97316;
    --accent-text: #7c2d12;
    --ok: #16a34a;
    --warn: #f59e0b;
}

body.theme-forest {
    --bg: #020e0a;
    --bg-2: #052e1f;
    --glass: rgba(6, 95, 70, 0.85);
    --stroke: rgba(34, 197, 94, 0.35);
    --text: #ecfdf5;
    --muted: #a7f3d0;
    --primary: #22c55e;
    --primary-2: #16a34a;
    --accent: #22d3ee;
    --accent-text: #022c22;
    --ok: #4ade80;
    --warn: #facc15;
}

body.theme-light {
    --bg: #f9fafb;
    --bg-2: #e5e7eb;
    --glass: rgba(255, 255, 255, 0.92);
    --stroke: rgba(15, 23, 42, 0.12);
    --text: #020617;
    --muted: #6b7280;
    --primary: #0ea5e9;
    --primary-2: #2563eb;
    --accent: #ec4899;
    --accent-text: #4a044e;
    --ok: #16a34a;
    --warn: #eab308;
}

body.theme-dark {
    --bg: #0b1020;
    --bg-2: #111936;
    --glass: rgba(255, 255, 255, 0.06);
    --stroke: rgba(255, 255, 255, 0.12);
    --text: #e6eaf5;
    --muted: #a4acc4;
    --primary: #7dd3fc;
    --primary-2: #60a5fa;
    --accent: #f472b6;
    --accent-text: #99406F;
    --ok: #34d399;
    --warn: #fbbf24;
}

:root {
    --bg: #0b1020;
    --bg-2: #111936;
    --glass: rgba(255,255,255,.06);
    --stroke: rgba(255,255,255,.12);
    --text: #e6eaf5;
    --muted: #a4acc4;
    --primary: #7dd3fc;
    --primary-2: #60a5fa;
    --accent: #f472b6;
    --accent-text: #99406F;
    --ok: #34d399;
    --warn: #fbbf24;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-lg: 0 12px 40px rgba(0,0,0,.45);
    --shadow-md: 0 8px 24px rgba(0,0,0,.35);
    --card-blur: saturate(160%) blur(8px);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
            radial-gradient(ellipse 800px 500px at 10% 10%, rgba(96,165,250,.25), transparent 70%),
            radial-gradient(ellipse 700px 450px at 95% 15%, rgba(244,114,182,.20), transparent 70%),
            linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
    padding: 18px 14px 48px;
    padding-top: 84px;
    min-height: 100vh;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    inset: 12px 12px auto 12px;
    background:
            linear-gradient(180deg, rgba(15,23,42,.94), rgba(15,23,42,.85)) padding-box,
            linear-gradient(90deg, var(--primary), var(--accent)) border-box;
    border-radius: 20px;
    border: 1px solid transparent;
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    box-shadow: 0 16px 40px rgba(0,0,0,.55);
    z-index: 1000;
    overflow: hidden;
}

.navbar::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(125,211,252,.6), rgba(244,114,182,.2));
    opacity: .55;
    pointer-events: none;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
}

.brand {
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .82rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand span {
    color: var(--text);
    font-size: .98rem;
}

.brand-badge {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.5);
    background: rgba(148,163,184,.12);
    font-size: .7rem;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition:
            background .18s ease,
            border-color .18s ease,
            color .18s ease,
            transform .12s ease,
            box-shadow .18s ease;
}

.nav-links a:hover {
    color: var(--text);
    border-color: rgba(148,163,184,.5);
    background: radial-gradient(circle at top left, rgba(125,211,252,.16), transparent 55%);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15,23,42,.8);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: #020617;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 10px 24px rgba(125,211,252,.35);
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(15,23,42,.85);
    transform: translateY(-50%);
}

.navbar-toggler {
    display: none;
    background: transparent;
    border: 1px solid rgba(148,163,184,.5);
    border-radius: 999px;
    cursor: pointer;
    padding: 7px;
    z-index: 1001;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.navbar-toggler:hover {
    background: rgba(15,23,42,.85);
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(0,0,0,.6);
    transform: translateY(-1px);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background .3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: transform .3s ease, top .3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.navbar-toggler.active .hamburger {
    background: transparent;
}

.navbar-toggler.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

body.theme-light .navbar,
body.theme-pastel .navbar {
    background:
            linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)) padding-box,
            linear-gradient(90deg, var(--primary), var(--accent)) border-box;
    box-shadow: 0 10px 26px rgba(15,23,42,.12);
}

body.theme-light .navbar::after,
body.theme-pastel .navbar::after {
    background: linear-gradient(90deg, rgba(148,163,184,.6), rgba(148,163,184,.2));
}

body.theme-light .nav-links a,
body.theme-pastel .nav-links a {
    color: var(--muted);
}

body.theme-light .nav-links a:hover,
body.theme-pastel .nav-links a:hover {
    border-color: rgba(148,163,184,.4);
    background: rgba(15,23,42,.04);
    box-shadow: 0 6px 16px rgba(15,23,42,.12);
}

body.theme-light .card,
body.theme-light .sidebar-card,
body.theme-light .mini-card,
body.theme-light .comment,
body.theme-light .comment-form,
body.theme-light .profile-info-item,
body.theme-light .auth-card,
body.theme-pastel .card,
body.theme-pastel .sidebar-card,
body.theme-pastel .mini-card,
body.theme-pastel .comment,
body.theme-pastel .comment-form,
body.theme-pastel .profile-info-item,
body.theme-pastel .auth-card {
    background: rgba(255,255,255,0.96);
    border-color: rgba(15,23,42,0.08);
    box-shadow: 0 10px 26px rgba(15,23,42,0.10);
}

body.theme-forest .card,
body.theme-forest .sidebar-card,
body.theme-forest .mini-card,
body.theme-forest .comment,
body.theme-forest .comment-form,
body.theme-forest .profile-info-item,
body.theme-forest .auth-card {
    background: rgba(6, 78, 59, 0.7);
    border-color: rgba(34, 197, 94, 0.35);
}

body.theme-light .input,
body.theme-light .select,
body.theme-light textarea,
body.theme-pastel .input,
body.theme-pastel .select,
body.theme-pastel textarea {
    background: rgba(255,255,255,0.96);
    color: var(--text);
    border-color: rgba(148,163,184,.6);
    box-shadow: 0 4px 12px rgba(15,23,42,.10);
}

body.theme-light .input::placeholder,
body.theme-light textarea::placeholder,
body.theme-pastel .input::placeholder,
body.theme-pastel textarea::placeholder {
    color: rgba(148,163,184,.8);
}

body.theme-light footer,
body.theme-pastel footer {
    background: rgba(255,255,255,.94);
    color: var(--muted);
    box-shadow: 0 -4px 16px rgba(15,23,42,.10);
}

.theme-toggle {
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 14px;
}

.input,
.select,
textarea {
    font-family: inherit;
    font-size: .95rem;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.7);
    background:
            radial-gradient(circle at top, rgba(15,23,42,.96), rgba(15,23,42,.92));
    color: var(--text);
    outline: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.4);
    transition:
            border-color .18s ease,
            box-shadow .18s ease,
            background .18s ease,
            transform .12s ease;
}

.input::placeholder,
textarea::placeholder {
    color: rgba(148,163,184,.9);
}

.input:hover,
.select:hover,
textarea:hover {
    border-color: var(--primary-2);
    background:
            radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,.94));
}

.input:focus,
.select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(125,211,252,.32);
    transform: translateY(-1px);
}

select,
.select {
    color: var(--text);
    background:
            radial-gradient(circle at top, rgba(15,23,42,.98), rgba(15,23,42,.94));
    cursor: pointer;
}

select option,
.select option {
    background-color: #020617;
    color: #e5e7eb;
}

.navbar .input,
.navbar .select,
.navbar select {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .9rem;
    background:
            linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.92));
    box-shadow: 0 8px 20px rgba(0,0,0,.55);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
}

.profile-settings-form {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.profile-settings-form textarea,
.profile-settings-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .95rem;
    font-family: inherit;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.06);
    color: var(--text);
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-settings-form textarea:hover,
.profile-settings-form select:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,.08);
}

.profile-settings-form textarea:focus,
.profile-settings-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 3px rgba(125,211,252,.32);
}

/* Theme-select styling so the dropdown visually matches the chosen profile theme */
.profile-theme-select {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    font-weight: 700;
    color: var(--text);
    background: var(--glass);
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .12s ease;
}
.profile-theme-select[data-theme="pastel"] {
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    color: var(--text);
    border-color: rgba(148,163,184,.5);
}
.profile-theme-select[data-theme="forest"] {
    background: linear-gradient(180deg, rgba(6,78,59,.8), rgba(6,78,59,.6));
    color: var(--text);
    border-color: rgba(34,197,94,.35);
}
.profile-theme-select[data-theme="light"] {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
    color: var(--text);
    border-color: rgba(15,23,42,0.08);
}
.profile-theme-select[data-theme="default"] {
    background: linear-gradient(90deg, rgba(125,211,252,.08), rgba(244,114,182,.06));
    color: var(--text);
    border-color: var(--stroke);
}

body.theme-light .profile-theme-select {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.92));
    color: var(--text);
    border-color: rgba(15,23,42,0.08);
}
body.theme-forest .profile-theme-select,
body.theme-pastel .profile-theme-select {
    background: rgba(255,255,255,.06);
    color: var(--text);
    border-color: var(--stroke);
}

body.theme-light .profile-settings-form textarea,
body.theme-light .profile-settings-form select,
body.theme-pastel .profile-settings-form textarea,
body.theme-pastel .profile-settings-form select {
    background: rgba(255,255,255,.95);
    color: var(--text);
}

body.theme-light .profile-settings-form textarea:focus,
body.theme-light .profile-settings-form select:focus,
body.theme-pastel .profile-settings-form textarea:focus,
body.theme-pastel .profile-settings-form select:focus {
    background: rgba(255,255,255,1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,23,42,.15);
}

.profile-save-btn {
    margin-top: 6px;
    width: auto;
    padding: 10px 16px;
    font-size: 0.9rem;
    justify-content: center;
}

.main {
    max-width: 1200px;
    margin: 110px auto 72px;
    padding: 36px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid var(--stroke);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    box-shadow: var(--shadow-lg);
    width: 100%;
}
.main > .card {
    margin-bottom: 32px;
}

.toast {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.toast-success {
    background: rgba(22, 163, 74, .15);
    border: 1px solid #16a34a;
    color: #bbf7d0;
}

.toast-error {
    background: rgba(220, 38, 38, .18);
    border: 1px solid #ef4444;
    color: #fecaca;
}

.profile-basic-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.profile-basic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px 14px;
}

.main h1 {
    margin: 0 0 24px 0;
    font-size: clamp(1.7rem, 2.4vw + .4rem, 2.6rem);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: .3px;
}

.main h3 {
    margin: 26px 0 12px;
    font-weight: 800;
    color: var(--primary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.css-tutorial {
    margin: 10px auto 16px;
    padding: 10px 12px;
    max-width: 640px;
    width: 100%;
    border-radius: 12px;
    border: 1px dashed var(--stroke);
    background: rgba(255,255,255,.03);
    position: relative;
    z-index: 60;
}

.css-tutorial[open] {
    background: rgba(255,255,255,.05);
}

.css-tutorial summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    list-style: none;
}

.css-tutorial summary::-webkit-details-marker {
    display: none;
}

.css-tutorial summary::before {
    content: "➜";
    display: inline-block;
    margin-right: 6px;
    transition: transform .15s ease;
    font-size: .85rem;
    opacity: .8;
}

.css-tutorial[open] summary::before {
    transform: rotate(90deg);
}

.css-tutorial-body {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--muted);
}

.css-tutorial code {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: .8rem;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(15,23,42,.9);
    color: #e5e7eb;
}

.css-tutorial pre {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(15,23,42,.96);
    border: 1px solid var(--stroke);
    overflow-x: auto;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: .8rem;
    color: #e5e7eb;
}

.card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    box-shadow: var(--shadow-md);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,.2);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.entry-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    flex: 1 1 auto;
    min-width: 0;
}

.entry-meta {
    margin: 2px 0 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.uploader-name {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: var(--primary-2);
    text-decoration: none;
    font-weight: 700;
    background: rgba(96,165,250,.10);
}

.uploader-name:hover {
    background: rgba(96,165,250,.16);
}

.entry-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    color: #09111f;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 8px 22px rgba(125,211,252,.25);
    border: 1px solid rgba(255,255,255,.25);
    flex: 0 0 auto;
}

.entry-download-btn:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.icon {
    display: block;
}

.icon-download {
    width: 18px;
    height: 18px;
}

.rating {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 12px;
    border: 1px dashed rgba(250, 204, 21, .35);
    border-radius: var(--radius-md);
    background: rgba(250, 204, 21, .08);
}

.star-rating {
    direction: rtl;
    display: inline-flex;
    gap: .35rem;
    font-size: clamp(22px, 2.2vw + 8px, 30px);
    line-height: 1;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #3b415a;
    text-shadow: 0 0 10px rgba(59,65,90,.18);
    transition: transform .12s ease, color .12s ease, text-shadow .12s ease;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #fde68a;
    text-shadow: 0 0 12px rgba(253,230,138,.65);
    transform: translateY(-1px) scale(1.06);
}

.rate-btn {
    background: linear-gradient(90deg, #fde68a, #fbbf24);
    color: #0f172a;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.rate-btn:hover {
    filter: brightness(.98);
}

.rating-section {
    margin-top: 20px;
}

.rating-section h3 {
    margin-bottom: 12px;
}

.rating-form .star-rating {
    direction: rtl;
    display: inline-flex;
    gap: .35rem;
    font-size: clamp(20px, 2vw + 8px, 26px);
    margin-bottom: 12px;
}

.rating-form .star-rating label {
    cursor: pointer;
    color: #4c5577;
    transition: transform .12s ease, color .12s ease, filter .12s ease;
}

.rating-form .star-rating input[type="radio"]:checked ~ label,
.rating-form .star-rating label:hover,
.rating-form .star-rating label:hover ~ label {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(125,211,252,.4));
    transform: translateY(-1px) scale(1.05);
}

.rating-form .rate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease;
}

.rating-form .rate-btn:hover {
    transform: translateY(-1px);
}

.rating-form .rate-btn .icon {
    width: 16px;
    height: 16px;
}

.content-grid .star-rating label {
    cursor: pointer;
    color: #4c5577;
    transition: transform .12s ease, color .12s ease, filter .12s ease;
}

.content-grid .star-rating input[type="radio"]:checked ~ label,
.content-grid .star-rating label:hover,
.content-grid .star-rating label:hover ~ label {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(125,211,252,.3));
    transform: translateY(-1px) scale(1.03);
}

.content-grid button[name="rate-btn"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease;
    margin-top: 8px;
}

.content-grid button[name="rate-btn"]:hover {
    transform: translateY(-1px);
}

.content-grid button[name="rate-btn"]:disabled {
    background: var(--glass);
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: var(--glass);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
}

.favorite-btn:hover {
    transform: translateY(-1px);
    background: rgba(125,211,252,.1);
    border-color: var(--primary);
    color: var(--primary);
}

.favorite-btn.favorited {
    background: linear-gradient(90deg, var(--accent), #ec4899);
    border-color: var(--accent);
    color: white;
}

.favorite-btn.favorited:hover {
    background: linear-gradient(90deg, #ec4899, var(--accent));
}

.favorite-btn .icon {
    width: 16px;
    height: 16px;
}

.content-grid .favorite-btn {
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 8px;
}

.content-grid .favorite-btn .icon {
    width: 14px;
    height: 14px;
}

.file-preview,
iframe {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--stroke);
}

footer {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 70px;
    margin-bottom: 0;
    padding: 24px 20px;
    border-top: 1px solid var(--stroke);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    background: rgba(255,255,255,.04);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    box-shadow: 0 -4px 12px rgba(0,0,0,.15);
    color: var(--muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 0 20px;
}

.footer-inner a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.footer-inner a:hover {
    text-decoration: underline;
}

.layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.sidebar {
    position: sticky;
    top: 96px;
    height: fit-content;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border-radius: 16px;
    padding: 16px 16px 14px;
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    box-shadow: var(--shadow-md);
}

.sidebar-card.small {
    padding: 12px 14px;
}

.sidebar-title {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.sidebar-subtitle {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.sidebar-meta {
    margin: 0 0 12px 0;
    color: var(--muted);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    color: #09111f;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 8px 22px rgba(125,211,252,.25);
    cursor: pointer;
}

.btn-cta:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

.btn-ghost {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--stroke);
    background: transparent;
    cursor: pointer;
    margin-top: 8px;
}

.btn-ghost:hover {
    background: rgba(255,255,255,.05);
}

.quick-filters {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.quick-filters a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--stroke);
}

.quick-filters a:hover {
    background: rgba(255,255,255,.05);
}

.feed {
    display: grid;
    gap: 28px;
}

.section-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw + .6rem, 2.1rem);
}

.feed-section {
    display: grid;
    gap: 14px;
}

.section-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 2px;
    flex-wrap: wrap;
    margin: 8px 0 6px;
}

.link-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.link-more:hover {
    text-decoration: underline;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "hero"
        "filters"
        "main"
        "aside";
    gap: 22px;
}

.hero {
    grid-area: hero;
}

.filters {
    grid-area: filters;
}

.content-main {
    grid-area: main;
}

.content-aside {
    grid-area: aside;
}

.hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw + .4rem, 2.2rem);
}

.hero-sub {
    margin: 2px 0 0 0;
    color: var(--muted);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-pills {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--stroke);
    color: var(--text);
    background: rgba(255,255,255,.04);
}

.pill:hover {
    background: rgba(255,255,255,.08);
}

.filters-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.input {
    flex: 1 1 auto;
    min-width: 200px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(0,0,0,.15);
    color: var(--text);
}

.select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(0,0,0,.15);
    color: var(--text);
}

.grid-large {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.list-compact {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.mini-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border-radius: 14px;
    padding: 12px;
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    text-decoration: none;
}

.mini-title {
    margin: 0 0 2px 0;
    font-size: 1rem;
    color: var(--text);
}

.mini-meta {
    margin: 0 0 6px 0;
    color: var(--muted);
    font-size: .9rem;
}

.mini-download {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    color: #09111f;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: 1px solid rgba(255,255,255,.25);
}

.mini-download .icon-download {
    width: 18px;
    height: 18px;
}

.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background:
            linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)) padding-box,
            linear-gradient(90deg, var(--primary), var(--accent)) border-box;
    border: 2px solid transparent;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(125,211,252,.18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-search:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 12px 28px rgba(125,211,252,.24);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-search:focus-visible {
    outline: 3px solid rgba(125,211,252,.45);
    outline-offset: 3px;
}

.icon-search {
    width: 18px;
    height: 18px;
}

.content-grid > .card:nth-child(3n+1) {
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

.content-grid > .card:nth-child(3n+2) {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.content-grid > .card:nth-child(3n+3) {
    background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.028));
}

.hero.card {
    position: relative;
    overflow: hidden;
}

.hero.card::after {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 480px;
    height: 280px;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(125,211,252,.16), transparent 60%);
    transform: rotate(8deg);
    filter: blur(6px);
}

.input:focus-visible,
.select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(125,211,252,.28);
    border-color: var(--primary-2);
}

.profile-badges {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.css-help-open .profile-column-left {
    max-width: 700px;
    margin: 0 auto;
}

body.css-help-open #css-tutorial,
body.css-help-open #profile-custom-css-input {
    max-width: 700px;
    width: 100%;
}

body.css-help-open #profile-bio-input {
    width: 100% !important;
}

body.css-help-open .card:has(#css-tutorial) {
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.css-help-open .profile-column-left > .card:not(:has(#css-tutorial)) {
    max-width: 100%;
}

body.css-help-open .profile-main-columns {
    grid-template-columns: minmax(0,320px) minmax(0,1fr);
}

body.css-help-open .profile-column-left .card:has(#css-tutorial) {
    position: relative;
    width: min(720px, calc(100vw - 120px));
}


body.css-help-open .profile-column-right {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: scale(.98);
    transition: opacity .2s ease, max-height .2s ease, transform .2s ease;
}

.css-tutorial {
    margin: 10px auto 16px;
    padding: 10px 12px;
    max-width: 640px;
    width: 100%;
    border-radius: 12px;
    border: 1px dashed var(--stroke);
    background: rgba(255,255,255,.03);
    position: relative;
    z-index: 60;
}

.css-tutorial[open] {
    max-width: 900px;
    background: rgba(255,255,255,.05);
}

.css-tutorial[open] + form .profile-bio-input,
.css-tutorial[open] + form #profile-custom-css-input {
    width: 100% !important;
}


.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}

.profile-layout {
    display: grid;
    gap: 32px;
}

.profile-main-columns {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.profile-column {
    display: grid;
    gap: 18px;
}

.profile-column-left {
    position: relative;
    overflow: visible; 
}

.profile-header {
    padding: 22px 20px;
}

.profile-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.profile-header-avatar {
    text-align: center;
}

.profile-header-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.profile-friendship {
    margin-top: 6px;
}

.profile-friendship-title {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--primary);
}

.profile-main-columns {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.profile-column {
    display: grid;
    gap: 18px;
}

@media (max-width: 960px) {
    .profile-header-grid {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .profile-main-columns {
        grid-template-columns: 1fr;
    }

    .profile-header-actions {
        justify-content: flex-start;
    }
}

.profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--stroke);
    box-shadow: var(--shadow-md);
    margin-bottom: 18px;
}

.profile-info-card {
    display: grid;
    gap: 8px;
}

.profile-info-item {
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    border: 1px solid var(--stroke);
}

.profile-info-label {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 3px;
}

.profile-info-value {
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-center {
    text-align: center;
}

.profile-name {
    margin: 0 0 8px 0;
}

.profile-username {
    margin: 0 0 18px 0;
}

.btn-delete {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-delete:hover {
    background: rgba(244, 114, 182, .08);
}

.auth-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

.auth-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.auth-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    padding: 28px;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    display: grid;
    gap: 4px;
    transition: all 0.3s ease;
}

.auth-card:hover {
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.auth-card.small {
    padding: 12px 14px;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
}

.is-hidden {
    display: none !important;
}

.auth-card h1 {
    margin: 0 0 18px 0;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-card label {
    font-weight: 700;
    color: var(--text);
    margin-top: 12px;
    margin-bottom: 4px;
    display: block;
    font-size: 0.95rem;
}

.auth-card .input,
.auth-card select {
    width: 100%;
    margin-top: 0;
}

.auth-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 4px 0;
}

.auth-card.compact {
    padding: 20px;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 12px;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-grid .form-field:nth-child(odd),
    .form-grid .form-field:nth-child(even) {
        margin: 0;
    }
}

.form-field label {
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: .9rem;
}

.auth-card.compact .input,
.auth-card.compact .select {
    padding: 8px 10px;
    border-radius: 10px;
}

.compact-block {
    margin-top: 6px;
    padding: 10px;
    border: 1px dashed var(--stroke);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
}

.compact-block .auth-note {
    margin: 0 0 6px 0;
    font-size: .9rem;
}

.auth-actions.stack-sm {
    gap: 8px;
    margin-top: 8px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

#reg.auth-card h1 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.switcher {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.switcher:hover {
    text-decoration: underline;
    color: var(--accent);
}

@media (max-width: 480px) {
    body {
        padding: 12px 8px 32px;
        padding-top: 72px;
    }

    .main {
        padding: 20px;
        margin: 80px auto 32px;
    }

    .navbar-content {
        padding: 10px 12px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: .9rem;
        padding: 6px 8px;
    }

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

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

    .hero-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cta,
    .btn-ghost {
        width: 100%;
    }

    .filters-inner {
        flex-direction: column;
    }

    .input,
    .select,
    .btn-search {
        width: 100%;
    }

    .profile-picture {
        width: 140px;
        height: 140px;
    }
}

.css-tutorial[open] .css-tutorial-body {
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .main {
        padding: 32px;
        margin: 80px auto 32px;
    }

    .navbar-content {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 26px;
    }

    .entry-download-btn {
        padding: 8px 10px;
        font-size: .9rem;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 12px;
        right: 12px;
        background: var(--glass);
        backdrop-filter: var(--card-blur);
        -webkit-backdrop-filter: var(--card-blur);
        border: 1px solid var(--stroke);
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        display: none;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        text-align: left;
    }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .entry-download-btn {
        width: 100%;
        justify-content: center;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .sidebar {
        position: static;
    }
}

@media (min-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr 360px;
        grid-template-areas:
            "hero   hero"
            "filters filters"
            "main   aside";
        align-items: start;
    }
}

.search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.search-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.search-content {
    flex: 1;
}

.search-content p {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.note-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.note-link:hover {
    background: var(--primary-2);
    transform: translateY(-1px);
}

.note-link .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.search-text {
    text-align: center;
    color: var(--muted);
    padding: 32px;
    font-style: italic;
}

.comments-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--stroke);
}

.comments-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.comment {
    padding: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.comment strong {
    color: var(--primary-2);
    font-weight: 700;
}

.comment p {
    margin: 4px 0 0 0;
    color: var(--text);
    line-height: 1.4;
}

.comment-form {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
}

.comment-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.bday-banner {
    display:flex;
    align-items:center;
    gap:12px;
    margin:14px auto 0;
    padding:12px 14px;
    border-radius:14px;
    border:1px solid var(--stroke);
    background:
            linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)) padding-box,
            linear-gradient(90deg, var(--accent), var(--primary)) border-box;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.bday-emoji {
    display:inline-grid;
    place-items:center;
    width:36px;
    height:36px;
    border-radius:999px;
    background:
            radial-gradient(ellipse at 30% 30%, #fff8 0, #fff3 60%, transparent 65%),
            linear-gradient(135deg, #ff6ec7, #6ee7ff);
    border: 2px solid #ffffff33;
    font-size:18px;
}

.bday-text {
    color: var(--text);
    font-weight: 600;
    line-height: 1.25;
}

@media (max-width:520px) {
    .bday-banner {
        padding:10px 12px;
    }
    .bday-emoji {
        width:32px;
        height:32px;
        font-size:16px;
    }
}

.note-desc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--stroke);
    color: var(--text);
    transition: all .15s ease;
    text-decoration: none;
    cursor: pointer;
}

.note-desc-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
    transform: translateY(-1px);
}

.note-desc-btn:active {
    transform: translateY(0);
    opacity: .9;
}

.profile-header-avatar .avatar-wrap {
    --avatar-size: 180px;
    display: block;
}

.profile-header-avatar .avatar-box {
    position: relative;
    width: var(--avatar-size);
    height: var(--avatar-size);
    margin: 0 auto;
    line-height: 0;
}

.profile-header-avatar .avatar-box > img.profile-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid var(--stroke);
    box-shadow: var(--shadow-md);
}

.profile-header-avatar .avatar-box > svg.avatar-ring {
    position: absolute;
    inset: -8px; /* picit nagyobb kör, mint a kép */
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    pointer-events: none;
    display: block;
}

.profile-header-avatar .avatar-wrap.is-birthday .avatar-ring > circle {
    animation: ringDash 6s linear infinite;
}

.profile-header-avatar .avatar-wrap.is-birthday .ring-stars use {
    fill: #ffd166;
    opacity: .9;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

@keyframes ringDash {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -116; }
}

@media (max-width: 520px) {
    .profile-header-avatar .avatar-wrap {
        --avatar-size: 140px;
    }
}
