/* Funton Bogor - Portal */
:root {
    --navy: #0F1B3D;
    --pink: #EC1E6B;
    --orange: #F7941D;
    --cyan: #1EC8E8;
    --slate: #64748B;
    --bg: #FAFAFC;
    --border: #E7E5F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--navy);
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 72px 16px 40px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(236, 30, 107, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(30, 200, 232, 0.07), transparent 55%),
        linear-gradient(180deg, #FCFCFE 0%, #F5F4FA 45%, #FAFAFC 100%);
}

.container {
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.page-bg__orb--pink {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -50px;
    background: radial-gradient(circle, rgba(236, 30, 107, 0.35) 0%, rgba(236, 30, 107, 0) 70%);
    animation: orbDriftPink 16s ease-in-out infinite;
}

.page-bg__orb--orange {
    width: 160px;
    height: 160px;
    top: 28%;
    left: -70px;
    background: radial-gradient(circle, rgba(247, 148, 29, 0.28) 0%, rgba(247, 148, 29, 0) 70%);
    animation: orbDriftOrange 20s ease-in-out infinite;
}

.page-bg__orb--cyan {
    width: 200px;
    height: 200px;
    bottom: 8%;
    right: -60px;
    background: radial-gradient(circle, rgba(30, 200, 232, 0.3) 0%, rgba(30, 200, 232, 0) 70%);
    animation: orbDriftCyan 18s ease-in-out infinite;
}

.page-bg__swoosh {
    position: absolute;
    width: 100%;
    max-width: 520px;
    height: auto;
    opacity: 0.85;
}

.page-bg__swoosh--top {
    top: 6%;
    left: -8%;
    transform: rotate(-8deg);
    animation: swooshDriftTop 22s ease-in-out infinite;
}

.page-bg__swoosh--bottom {
    bottom: 4%;
    right: -10%;
    transform: rotate(12deg);
    animation: swooshDriftBottom 26s ease-in-out infinite;
}

.page-bg__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.page-bg__ring--1 {
    width: 280px;
    height: 280px;
    top: 18%;
    right: -120px;
    background: conic-gradient(from 200deg, rgba(236, 30, 107, 0.12), rgba(247, 148, 29, 0.1), rgba(30, 200, 232, 0.08), transparent 55%);
    mask: radial-gradient(circle, transparent 58%, #000 59%, #000 62%, transparent 63%);
    -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 62%, transparent 63%);
    opacity: 0.7;
    animation: ringSpin 48s linear infinite;
}

.page-bg__ring--2 {
    width: 180px;
    height: 180px;
    bottom: 22%;
    left: -70px;
    background: conic-gradient(from 30deg, rgba(30, 200, 232, 0.1), rgba(15, 27, 61, 0.06), transparent 50%);
    mask: radial-gradient(circle, transparent 60%, #000 61%, #000 64%, transparent 65%);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 64%, transparent 65%);
    opacity: 0.6;
    animation: ringSpinReverse 60s linear infinite;
}

.page-bg__dual-ring {
    position: absolute;
    pointer-events: none;
}

.page-bg__dual-ring-track {
    position: absolute;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--pink), var(--orange), var(--cyan), var(--pink));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.page-bg__dual-ring-track--outer {
    inset: 0;
    animation: ringSpin 22s linear infinite;
}

.page-bg__dual-ring-track--inner {
    inset: 10px;
    background: conic-gradient(from 180deg, var(--cyan), rgba(15, 27, 61, 0.15), var(--orange), var(--pink), var(--cyan));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
    animation: ringSpinReverse 16s linear infinite;
    opacity: 0.75;
}

.page-bg__dual-ring--hero {
    width: 120px;
    height: 120px;
    top: 12%;
    right: 10%;
    opacity: 0.22;
}

.page-bg__dual-ring--accent {
    width: 100px;
    height: 100px;
    bottom: 16%;
    left: 8%;
    opacity: 0.2;
}

.page-bg__dual-ring--mini-a {
    width: 72px;
    height: 72px;
    top: 36%;
    left: 5%;
    opacity: 0.18;
}

.page-bg__dual-ring--mini-b {
    width: 64px;
    height: 64px;
    bottom: 10%;
    right: 12%;
    opacity: 0.16;
}

.page-bg__dual-ring--hero .page-bg__dual-ring-track--inner,
.page-bg__dual-ring--accent .page-bg__dual-ring-track--inner {
    inset: 8px;
}

.page-bg__dual-ring--mini-a .page-bg__dual-ring-track--inner {
    inset: 6px;
}

.page-bg__dual-ring--mini-b .page-bg__dual-ring-track--inner {
    inset: 5px;
}

.social-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    padding: 18px 12px;
    border-top: 1px solid #EEF0F6;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #E7E5F0;
    background: #FFFFFF;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(15, 27, 61, 0.18);
}

.social-icon--instagram {
    color: #E4405F;
}

.social-icon--instagram:hover {
    border-color: #FBCFE8;
    background: #FFF1F5;
}

.social-icon--tiktok {
    color: #010101;
}

.social-icon--tiktok:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.social-icon--whatsapp {
    color: #25D366;
}

.social-icon--whatsapp:hover {
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.logo {
    width: 124px;
    height: auto;
    margin: 0 auto 4px;
    display: block;
}

.logo-mark {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark__img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #FFFFFF;
    padding: 5px;
    box-shadow: 0 10px 28px -10px rgba(15, 27, 61, 0.22);
    filter: drop-shadow(0 6px 16px rgba(236, 30, 107, 0.12));
    position: relative;
    z-index: 1;
}

.logo-mark__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.logo-mark__ring--outer {
    inset: 0;
    background: conic-gradient(from 0deg, var(--pink), var(--orange), var(--cyan), var(--pink));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: ringSpin 12s linear infinite;
}

.logo-mark__ring--inner {
    inset: 5px;
    background: conic-gradient(from 200deg, var(--cyan), var(--pink), var(--orange), var(--cyan));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: ringSpinReverse 8s linear infinite;
    opacity: 0.92;
}

.logo-mark--sm {
    width: 96px;
    height: 96px;
    margin: 0;
}

.logo-mark--sm .logo-mark__img {
    width: 76px;
    height: 76px;
    padding: 4px;
}

.logo-mark--sm .logo-mark__ring--inner {
    inset: 4px;
}

.page--home.is-loaded .logo-mark {
    animation: logoFloat 5s ease-in-out infinite;
    animation-delay: 1s;
}

.page-transition.is-active .page-transition__logo-mark .logo-mark__ring--outer {
    animation: ringSpin 6s linear infinite;
}

.page-transition.is-active .page-transition__logo-mark .logo-mark__ring--inner {
    animation: ringSpinReverse 4.5s linear infinite;
}

.page-transition.is-active .page-transition__logo-mark .logo-mark__img {
    animation: transitionLogoPop 1.8s ease-in-out infinite;
}

h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

h1 .accent {
    color: var(--pink);
}

.subtitle {
    color: var(--slate);
    font-size: 14px;
    margin-bottom: 36px;
    line-height: 1.5;
}

.section-label {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 28px 0 10px 4px;
}

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

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E7E5F0;
    border-radius: 14px;
    padding: 16px 18px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.link-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.link-card:hover::after {
    transform: translateX(120%);
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: #D8D5E8;
    box-shadow: 0 10px 28px -10px rgba(15, 27, 61, 0.2);
}

.link-card:active {
    transform: translateY(-1px) scale(0.985);
    transition-duration: 0.1s;
}

.link-card.open-list.is-navigating {
    transform: scale(0.96);
    opacity: 0.7;
    pointer-events: none;
    box-shadow: 0 4px 16px -8px rgba(236, 30, 107, 0.25);
    border-color: rgba(236, 30, 107, 0.35);
}

.link-card .icon-wrap {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.link-card .thumb-wrap {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #E7E5F0;
    background: #F4F5F9;
}

.link-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.link-card .text-wrap {
    position: relative;
    z-index: 1;
    text-align: left;
}

.link-card .day {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.link-card .desc {
    display: block;
    font-size: 12.5px;
    color: var(--slate);
    margin-top: 2px;
}

.link-card.open-list::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: conic-gradient(from 200deg, var(--pink), var(--orange), var(--cyan), transparent 60%);
    opacity: 0.16;
    border-radius: 50%;
    z-index: 0;
    animation: openListGlow 8s ease-in-out infinite;
}

.link-card.open-list .icon-wrap {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
}

.link-card.social .icon-wrap {
    background: #F1F0F8;
    color: var(--navy);
}

footer {
    margin-top: 44px;
    color: #A0A0B0;
    font-size: 12px;
}

.top-nav-btn {
    position: fixed;
    top: 16px;
    z-index: 110;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #E7E5F0;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px -6px rgba(15, 27, 61, 0.12);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.top-nav-btn:hover {
    transform: translateY(-1px);
    border-color: #D8D5E8;
    box-shadow: 0 8px 20px -8px rgba(15, 27, 61, 0.18);
}

.top-nav-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.burger-btn {
    left: 16px;
}

.login-btn {
    right: 16px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 61, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 120;
}

.sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 85vw);
    height: 100vh;
    background: #FFFFFF;
    border-right: 1px solid #E7E5F0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 130;
    padding: 24px 18px;
    box-shadow: 8px 0 32px -12px rgba(15, 27, 61, 0.2);
}

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

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EEF0F6;
}

.sidebar-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #F1F0F8;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 12px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s ease;
}

.sidebar-link:hover {
    background: #F7F6FB;
}

.sidebar-link .menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sidebar-link .menu-icon--docs {
    background: linear-gradient(135deg, var(--cyan), #1a4a6e);
}

.sidebar-link .menu-icon--article {
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.link-card.docs .icon-wrap {
    background: linear-gradient(135deg, var(--cyan), #0F1B3D);
    color: #FFFFFF;
}

.link-card.article .icon-wrap {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
}

.link-card.article .thumb-wrap {
    box-shadow: 0 6px 16px -8px rgba(236, 30, 107, 0.28);
}

.auth-card {
    background: #FFFFFF;
    border: 1px solid #E7E5F0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E7E5F0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--navy);
    background: #FFFFFF;
}

.form-group input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.12);
}

.btn-primary {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--slate);
}

.auth-footer a {
    color: var(--pink);
    font-weight: 600;
    text-decoration: none;
}

.locked-card {
    background: #FFFFFF;
    border: 1px solid #E7E5F0;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
}

.locked-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #F7F6FB;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.locked-card__title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--navy);
}

.locked-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate);
    margin-bottom: 20px;
}

.locked-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.locked-card__btn {
    display: inline-block;
    width: 100%;
    max-width: 240px;
    text-align: center;
    text-decoration: none;
}

.locked-card__link {
    font-size: 14px;
    color: var(--pink);
    font-weight: 600;
    text-decoration: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--slate);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--navy);
}

.qris-image-wrap {
    background: #FFFFFF;
    border: 1px solid #E7E5F0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px -8px rgba(15, 27, 61, 0.12);
}

.qris-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.qris-caption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: left;
}

.alert-success {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #DC2626;
}

.form-group input.is-invalid {
    border-color: #FCA5A5;
}

.turnstile-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.member-card {
    position: relative;
    width: 100%;
    border-radius: 18px;
    padding: 18px 20px 16px;
    background: linear-gradient(145deg, #0F1B3D 0%, #1a2d5c 55%, #0F1B3D 100%);
    color: #FFFFFF;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 16px 40px -12px rgba(15, 27, 61, 0.45);
    margin-bottom: 28px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.page--home.is-loaded .member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px -12px rgba(15, 27, 61, 0.5);
}

.member-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: conic-gradient(from 210deg, var(--pink), var(--orange), var(--cyan), transparent 55%);
    opacity: 0.35;
    border-radius: 50%;
}

.member-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--cyan));
}

.member-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.member-card__logo {
    width: 35px;
    height: auto;
    border-radius: 100%;
}

.member-card__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.member-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-card__avatar {
    flex-shrink: 0;
}

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

.member-card__name {
    position: relative;
    z-index: 1;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    word-break: break-word;
}

.member-card__brand {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.72);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar--initials {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.user-avatar--card {
    width: 64px;
    height: 64px;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 20px -8px rgba(15, 27, 61, 0.45);
}

.user-avatar--md {
    width: 72px;
    height: 72px;
    font-size: 22px;
}

.user-avatar--sm {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.user-avatar--xs {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.profile-photo-edit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEF0F6;
}

.profile-photo-edit__preview {
    flex-shrink: 0;
}

.profile-photo-edit__info {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.profile-photo-edit__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.profile-photo-edit__hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--slate);
}

.profile-photo-dropzone {
    position: relative;
    border: 2px dashed rgba(236, 30, 107, 0.28);
    border-radius: 14px;
    background: rgba(252, 252, 254, 0.9);
    padding: 18px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.profile-photo-dropzone:hover,
.profile-photo-dropzone:focus-visible {
    border-color: rgba(236, 30, 107, 0.5);
    background: rgba(236, 30, 107, 0.04);
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.1);
}

.profile-photo-dropzone.is-dragover {
    border-color: var(--pink);
    background: rgba(236, 30, 107, 0.08);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.14);
}

.profile-photo-dropzone.has-file {
    border-style: solid;
    border-color: rgba(4, 120, 87, 0.35);
    background: rgba(236, 253, 245, 0.7);
}

.profile-photo-dropzone.is-invalid {
    border-color: #FCA5A5;
    background: #FEF2F2;
}

.profile-photo-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.profile-photo-dropzone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    pointer-events: none;
}

.profile-photo-dropzone__icon {
    color: var(--pink);
    margin-bottom: 2px;
}

.profile-photo-dropzone__text {
    font-size: 14px;
    color: var(--navy);
    line-height: 1.45;
    margin: 0;
}

.profile-photo-dropzone__link {
    color: var(--pink);
    font-weight: 600;
}

.profile-photo-dropzone__hint {
    font-size: 12px;
    color: var(--slate);
}

.profile-photo-dropzone__filename {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    word-break: break-all;
}

.profile-photo-dropzone__filename[hidden],
.profile-photo-dropzone__error[hidden] {
    display: none !important;
}

.profile-photo-dropzone__error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #B91C1C;
}

.checkbox-row--inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--slate);
}

@media (max-width: 480px) {
    .profile-photo-edit {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo-edit__info {
        width: 100%;
    }
}

.profile-tabs__nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 12px;
    background: #F4F5F9;
    border: 1px solid #E7E5F0;
}

.profile-tabs__btn {
    flex: 1;
    min-height: 42px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--slate);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.profile-tabs__btn:hover {
    color: var(--navy);
}

.profile-tabs__btn.is-active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 4px 12px -6px rgba(15, 27, 61, 0.18);
}

.profile-tabs__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.15);
}

.profile-tabs__panel {
    display: none;
}

.profile-tabs__panel.is-active {
    display: block;
}

.profile-tabs__intro {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--slate);
}

.member-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.profile-menu {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 110;
}

.profile-btn {
    position: static;
}

.profile-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 109;
}

.profile-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid #E7E5F0;
    border-radius: 14px;
    box-shadow: 0 12px 32px -8px rgba(15, 27, 61, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    overflow: hidden;
}

.profile-menu.is-open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown__header {
    padding: 14px 16px;
    border-bottom: 1px solid #EEF0F6;
    text-align: left;
}

.profile-dropdown__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.profile-dropdown__email {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--slate);
    word-break: break-all;
}

.profile-dropdown__item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.profile-dropdown__item:hover {
    background: #F7F6FB;
}

.profile-dropdown__item--danger {
    color: #B91C1C;
}

.profile-dropdown__form {
    border-top: 1px solid #EEF0F6;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #E7E5F0;
    background: #FFFFFF;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-ghost:hover {
    border-color: #D8D5E8;
}

@media (max-width: 480px) {
    .page-bg__orb--pink {
        width: 160px;
        height: 160px;
        right: -40px;
    }

    .page-bg__swoosh--top {
        top: 4%;
        left: -20%;
        opacity: 0.65;
    }

    .page-bg__swoosh--bottom {
        right: -25%;
        opacity: 0.6;
    }

    .page-bg__ring--1 {
        width: 200px;
        height: 200px;
        right: -90px;
    }

    .page-bg__dual-ring--hero {
        width: 96px;
        height: 96px;
        right: 8%;
    }

    .page-bg__dual-ring--accent {
        width: 80px;
        height: 80px;
        left: 6%;
    }

    .page-bg__dual-ring--mini-a {
        width: 56px;
        height: 56px;
        left: 4%;
    }

    .page-bg__dual-ring--mini-b {
        width: 48px;
        height: 48px;
        right: 8%;
    }

    .logo-mark {
        width: 100px;
        height: 100px;
    }

    .logo-mark__img {
        width: 78px;
        height: 78px;
    }

    .social-bar {
        gap: 10px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    .logo {
        width: 104px;
    }

    h1 {
        font-size: 21px;
    }

    .login-btn .btn-label {
        display: none;
    }

    .login-btn {
        padding: 0;
        width: 44px;
    }
}

/* Article */
.article-content {
    background: #FFFFFF;
    border: 1px solid #E7E5F0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: left;
    margin-bottom: 24px;
}

.article-content__title {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--navy);
}

.article-content__meta {
    font-size: 12px;
    color: var(--slate);
    margin-bottom: 16px;
}

.article-content__excerpt {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #EEF0F6;
}

.article-content__body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--navy);
}

.article-content__body > *:first-child {
    margin-top: 0;
}

.article-content__body > *:last-child {
    margin-bottom: 0;
}

.article-content__body h2,
.article-content__body h3,
.article-content__body h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 1.4em 0 0.6em;
    color: var(--navy);
}

.article-content__body h2 { font-size: 1.35rem; }
.article-content__body h3 { font-size: 1.15rem; }
.article-content__body h4 { font-size: 1rem; }

.article-content__body p,
.article-content__body ul,
.article-content__body ol,
.article-content__body blockquote,
.article-content__body table {
    margin: 0 0 1em;
}

.article-content__body ul,
.article-content__body ol {
    padding-left: 1.25rem;
}

.article-content__body blockquote {
    border-left: 3px solid var(--pink);
    padding: 0.4rem 0 0.4rem 1rem;
    color: var(--slate);
    background: rgba(236, 30, 107, 0.04);
    border-radius: 0 10px 10px 0;
}

.article-content__body a {
    color: var(--pink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 1rem auto;
}

.article-content__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.article-content__body th,
.article-content__body td {
    border: 1px solid #E7E5F0;
    padding: 10px 12px;
    text-align: left;
}

.article-content__body th {
    background: #F8F9FC;
}

.article-featured {
    margin: 0 0 20px;
}

.article-featured__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-lightbox-item {
    display: block;
    border-radius: 14px;
    overflow: hidden;
}

.article-lightbox-item:hover .article-featured__image,
.article-content__body a.article-lightbox-item:hover img {
    transform: scale(1.01);
    box-shadow: 0 12px 32px -12px rgba(15, 27, 61, 0.2);
}

.article-featured__caption {
    margin-top: 8px;
    font-size: 12px;
    color: var(--slate);
    text-align: center;
}

.article-content__body a.article-lightbox-item {
    text-decoration: none;
    cursor: zoom-in;
}

.pswp__custom-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    padding: 0 20px;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.article-featured-edit__preview img {
    width: 100%;
    max-width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #E7E5F0;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-page .article-featured-edit__preview:hover img {
    transform: scale(1.01);
    box-shadow: 0 10px 28px -12px rgba(15, 27, 61, 0.18);
}

.article-featured-edit__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--slate);
    text-align: center;
}

.admin-page .article-form.form-grid--wide {
    max-width: none;
    width: 100%;
}

.admin-page .form-group__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.admin-page .form-group--featured {
    display: grid;
    gap: 12px;
}

.admin-page .article-dropzone {
    position: relative;
    border: 2px dashed rgba(236, 30, 107, 0.28);
    border-radius: 14px;
    background: rgba(252, 252, 254, 0.9);
    padding: 18px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.admin-page .article-dropzone:hover,
.admin-page .article-dropzone:focus-visible {
    border-color: rgba(236, 30, 107, 0.5);
    background: rgba(236, 30, 107, 0.04);
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.1);
}

.admin-page .article-dropzone.is-dragover {
    border-color: var(--pink);
    background: rgba(236, 30, 107, 0.08);
}

.admin-page .article-dropzone.has-file {
    border-style: solid;
    border-color: rgba(4, 120, 87, 0.35);
    background: rgba(236, 253, 245, 0.7);
}

.admin-page .article-dropzone.is-invalid {
    border-color: #FCA5A5;
    background: #FEF2F2;
}

.admin-page .article-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-page .article-dropzone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    pointer-events: none;
}

.admin-page .article-dropzone__icon {
    color: var(--pink);
}

.admin-page .article-dropzone__text {
    font-size: 14px;
    color: var(--navy);
    line-height: 1.45;
    margin: 0;
}

.admin-page .article-dropzone__link {
    color: var(--pink);
    font-weight: 600;
}

.admin-page .article-dropzone__hint {
    font-size: 12px;
    color: var(--slate);
}

.admin-page .article-dropzone__filename {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    word-break: break-all;
}

.admin-page .article-dropzone__filename[hidden],
.admin-page .article-dropzone__error[hidden] {
    display: none !important;
}

.admin-page .article-dropzone__error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #B91C1C;
}

.admin-page .form-group--editor .article-editor-shell {
    width: 100%;
}

.admin-page .form-group--editor textarea {
    display: none;
}

.admin-page .form-group--editor .tox-tinymce {
    width: 100% !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: hidden;
    background: #fff;
}

.admin-page .form-group--editor .tox .tox-editor-header {
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    background: #fff;
}

.admin-page .form-group--editor .tox .tox-edit-area {
    border-top: none;
}

.admin-page .form-group--editor .tox .tox-edit-area__iframe {
    background: #fff;
}

.admin-page .form-group--editor .tox .tox-statusbar {
    border-top: 1px solid var(--border) !important;
    background: #fafafa;
}

.admin-page .form-group--editor .tox .tox-promotion,
.admin-page .form-group--editor .tox .tox-statusbar__branding {
    display: none !important;
}

.admin-page .tox-tinymce {
    border-radius: 12px !important;
    border-color: var(--border) !important;
    overflow: hidden;
}

.admin-page .tox .tox-edit-area__iframe {
    background: #fff;
}

.page-heading {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 6px;
}

.page-heading__accent {
    color: var(--pink);
}

/* Home animations */
@keyframes orbDriftPink {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, 22px) scale(1.06); }
}

@keyframes orbDriftOrange {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, -16px); }
}

@keyframes orbDriftCyan {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-14px, -20px) scale(1.05); }
}

@keyframes swooshDriftTop {
    0%, 100% { transform: rotate(-8deg) translateX(0); }
    50% { transform: rotate(-6deg) translateX(12px); }
}

@keyframes swooshDriftBottom {
    0%, 100% { transform: rotate(12deg) translateX(0); }
    50% { transform: rotate(14deg) translateX(-10px); }
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes dotFloatA {
    0%, 100% { transform: translate(0, 0); opacity: 0.35; }
    50% { transform: translate(8px, -12px); opacity: 0.65; }
}

@keyframes dotFloatB {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(-10px, 8px); opacity: 0.55; }
}

@keyframes dotFloatC {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(6px, 10px); opacity: 0.6; }
}

@keyframes shuttleFloatA {
    0%, 100% { transform: translate(0, 0) rotate(-12deg); }
    50% { transform: translate(-14px, 10px) rotate(8deg); }
}

@keyframes shuttleFloatB {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(12px, -8px) rotate(-5deg); }
}

@keyframes dashRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dashRingSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes openListGlow {
    0%, 100% { opacity: 0.14; transform: scale(1); }
    50% { opacity: 0.22; transform: scale(1.05); }
}

@keyframes homeRevealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeCardReveal {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes transitionBackdropOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -10px) scale(1.08); }
}

@keyframes transitionShowLogo {
    0%, 42% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        visibility: visible;
    }
    48%, 100% {
        opacity: 0;
        transform: scale(0.82) rotate(-10deg);
        visibility: hidden;
    }
}

@keyframes transitionShowLoader {
    0%, 42% {
        opacity: 0;
        transform: scale(0.82) rotate(10deg);
        visibility: hidden;
    }
    48%, 92% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        visibility: visible;
    }
    100% {
        opacity: 0;
        transform: scale(0.88);
        visibility: hidden;
    }
}

@keyframes transitionLogoPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes transitionLogoRing {
    0% { transform: rotate(0deg); opacity: 0.55; }
    100% { transform: rotate(360deg); opacity: 0.85; }
}

@keyframes transitionLoaderRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes transitionLoaderRingReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes transitionOrbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes transitionShuttleSpin {
    0%, 100% { transform: rotate(-18deg) scale(1); }
    50% { transform: rotate(18deg) scale(1.08); }
}

@keyframes transitionRippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.55;
    }
    100% {
        transform: translate(-50%, -50%) scale(42);
        opacity: 0;
    }
}

@keyframes transitionProgressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.page--home .home-reveal {
    opacity: 0;
    transform: translateY(18px);
}

.page--home .top-nav-btn {
    opacity: 0;
}

.page--home.is-loaded .home-reveal {
    animation: homeRevealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page--home.is-loaded .home-reveal--1 { animation-delay: 0.05s; }
.page--home.is-loaded .home-reveal--2 { animation-delay: 0.12s; }
.page--home.is-loaded .home-reveal--3 { animation-delay: 0.19s; }
.page--home.is-loaded .home-reveal--4 { animation-delay: 0.26s; }
.page--home.is-loaded .home-reveal--5 { animation-delay: 0.33s; }
.page--home.is-loaded .home-reveal--6 { animation-delay: 0.4s; }
.page--home.is-loaded .home-reveal--7 { animation-delay: 0.47s; }
.page--home.is-loaded .home-reveal--8 { animation-delay: 0.54s; }

.page--home.is-loaded .link-list .link-card {
    opacity: 0;
    animation: homeCardReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.45s + (var(--card-index, 0) * 0.08s));
}

.page--home.is-loaded .social-icon {
    opacity: 0;
    animation: homeRevealUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page--home.is-loaded .social-bar .social-icon:nth-child(1) { animation-delay: 0.58s; }
.page--home.is-loaded .social-bar .social-icon:nth-child(2) { animation-delay: 0.64s; }
.page--home.is-loaded .social-bar .social-icon:nth-child(3) { animation-delay: 0.7s; }

.page--home.is-loaded .top-nav-btn {
    animation: homeRevealUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page--home.is-loaded .burger-btn { animation-delay: 0.02s; }
.page--home.is-loaded .login-btn,
.page--home.is-loaded #profile-menu .profile-toggle { animation-delay: 0.08s; }

.page--home.is-leaving {
    pointer-events: none;
}

.page--home.is-leaving .container {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.page--home.is-leaving .page-bg {
    opacity: 0.35;
    transform: scale(1.04);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page--redirect-gateway {
    min-height: 100vh;
    position: relative;
    pointer-events: none;
}

.page--redirect-gateway.is-leaving .page-bg {
    opacity: 0.35;
    transform: scale(1.04);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 252, 254, 0.72);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
    overflow: hidden;
}

.page-transition.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-transition__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-transition__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
}

.page-transition__orb--pink {
    width: 180px;
    height: 180px;
    top: 18%;
    right: -40px;
    background: rgba(236, 30, 107, 0.35);
    animation: transitionBackdropOrb 9s ease-in-out infinite;
}

.page-transition__orb--orange {
    width: 140px;
    height: 140px;
    bottom: 22%;
    left: -30px;
    background: rgba(247, 148, 29, 0.28);
    animation: transitionBackdropOrb 11s ease-in-out infinite reverse;
}

.page-transition__orb--cyan {
    width: 160px;
    height: 160px;
    top: 42%;
    left: 50%;
    margin-left: -80px;
    background: rgba(30, 200, 232, 0.22);
    animation: transitionBackdropOrb 10s ease-in-out infinite;
    animation-delay: -3s;
}

.page-transition__ripple {
    position: fixed;
    left: var(--ripple-x, 50vw);
    top: var(--ripple-y, 50vh);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 30, 107, 0.35) 0%, rgba(247, 148, 29, 0.15) 45%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.page-transition.is-active .page-transition__ripple {
    animation: transitionRippleExpand 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-transition__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    width: min(320px, 88vw);
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.page-transition.is-active .page-transition__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.page-transition__stage {
    position: relative;
    width: 112px;
    height: 112px;
}

.page-transition__face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition.is-active .page-transition__face--logo {
    animation: transitionShowLogo 2.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.page-transition.is-active .page-transition__face--loader {
    animation: transitionShowLoader 2.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.page-transition__loader {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition__loader-ring {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 3px solid rgba(231, 229, 240, 0.9);
    border-top-color: var(--pink);
    border-right-color: var(--orange);
    animation: transitionLoaderRing 0.85s linear infinite;
}

.page-transition__loader-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--cyan);
    border-left-color: rgba(15, 27, 61, 0.15);
    animation: transitionLoaderRingReverse 1.1s linear infinite;
}

.page-transition__loader-orbit {
    position: absolute;
    inset: 14px;
    animation: transitionOrbitSpin 1.3s linear infinite;
}

.page-transition__loader-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px;
    border-radius: 50%;
}

.page-transition__loader-dot--pink {
    background: var(--pink);
    transform: rotate(0deg) translateY(-22px);
}

.page-transition__loader-dot--orange {
    background: var(--orange);
    transform: rotate(120deg) translateY(-22px);
}

.page-transition__loader-dot--cyan {
    background: var(--cyan);
    transform: rotate(240deg) translateY(-22px);
}

.page-transition__loader-shuttle {
    position: relative;
    z-index: 1;
    font-size: 22px;
    animation: transitionShuttleSpin 1.2s ease-in-out infinite;
}

.page-transition__label {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
    min-height: 22px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-transition__label.is-changing {
    opacity: 0;
    transform: translateY(6px);
}

.page-transition__progress {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(231, 229, 240, 0.95);
    overflow: hidden;
}

.page-transition__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--cyan));
    transform: scaleX(0);
    transform-origin: left center;
}

.page-transition.is-active .page-transition__progress-bar {
    animation: transitionProgressFill 0.98s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .page-bg__orb,
    .page-bg__swoosh,
    .page-bg__ring,
    .page-bg__dual-ring-track,
    .logo-mark__ring,
    .page--home.is-loaded .logo-mark,
    .page--home.is-loaded .home-reveal,
    .page--home.is-loaded .link-list .link-card,
    .page--home.is-loaded .social-icon,
    .page--home.is-loaded .top-nav-btn,
    .link-card.open-list::before,
    .page-transition__orb,
    .page-transition__logo-mark .logo-mark__img,
    .page-transition__loader-ring,
    .page-transition__loader-orbit,
    .page-transition__loader-shuttle,
    .page-transition__face--logo,
    .page-transition__face--loader {
        animation: none !important;
    }

    .page--home .home-reveal,
    .page--home.is-loaded .link-list .link-card,
    .page--home.is-loaded .social-icon {
        opacity: 1;
        transform: none;
    }

    .page--home .top-nav-btn {
        opacity: 1;
    }

    .page-transition,
    .page-transition__content,
    .page-transition__progress-bar,
    .page--home.is-leaving .container {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .page-transition.is-active .page-transition__progress-bar {
        transform: scaleX(1);
    }

    .page-transition__face--loader {
        display: none;
    }

    .page-transition__face--logo {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* Admin */
.admin-page {
    min-height: 100vh;
    position: relative;
    background: var(--bg);
    color: var(--navy);
}

.admin-page .page-bg {
    z-index: 0;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 61, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 120;
}

.admin-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.admin-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 229, 240, 0.9);
    box-shadow: 0 4px 20px -10px rgba(15, 27, 61, 0.15);
    z-index: 160;
}

.admin-topbar__toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-topbar__brand img {
    width: 32px;
    height: auto;
    flex-shrink: 0;
}

.admin-topbar__brand span {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    position: relative;
}

.admin-sidebar {
    background: linear-gradient(180deg, #0F1B3D 0%, #152852 52%, #101f45 100%);
    color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid rgba(236, 30, 107, 0.12);
    position: relative;
    overflow: hidden;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--cyan));
}

.admin-sidebar::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 200, 232, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.admin-sidebar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px;
}

.admin-sidebar__close {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-brand img {
    width: 40px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.admin-brand__title {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
}

.admin-brand__subtitle {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav a.active {
    background: linear-gradient(135deg, rgba(236, 30, 107, 0.28), rgba(247, 148, 29, 0.18));
    color: #fff;
    box-shadow: inset 3px 0 0 var(--pink);
}

.admin-nav__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.admin-nav a.active .admin-nav__icon {
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.admin-nav__badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.admin-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.admin-sidebar-footer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 10px;
}

.admin-sidebar-footer__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-sidebar-footer__logout {
    width: 100%;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar-footer__logout:hover {
    background: rgba(236, 30, 107, 0.2);
    color: #fff;
    border-color: rgba(236, 30, 107, 0.35);
}

.admin-main {
    padding: 20px 20px 32px;
    min-width: 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #e9eef5 0%, #f4f7fb 100%);
}

.admin-workspace {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 12px 48px -24px rgba(15, 27, 61, 0.18);
    border: 1px solid rgba(15, 27, 61, 0.06);
    overflow: clip;
    min-height: calc(100vh - 40px);
}

@keyframes adminFadeDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

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

@keyframes adminFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes adminDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }

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

@keyframes adminBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(236, 30, 107, 0.35);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 14px rgba(236, 30, 107, 0.5);
    }
}

@keyframes adminBellRing {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
}

@keyframes adminSearchGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(236, 30, 107, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(236, 30, 107, 0.12);
    }
}

.admin-animate-in {
    animation-duration: 0.55s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

.admin-animate-in--down {
    animation-name: adminFadeDown;
}

.admin-animate-in--up {
    animation-name: adminFadeUp;
    animation-delay: 0.08s;
}

.admin-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(15, 27, 61, 0.07);
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
}

.admin-header-top__menu {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 27, 61, 0.1);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-header-top__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.admin-header-top__menu:hover {
    transform: translateY(-1px);
    border-color: rgba(236, 30, 107, 0.25);
    box-shadow: 0 6px 16px -10px rgba(15, 27, 61, 0.25);
}

.admin-header-search-wrap {
    position: relative;
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 0;
}

.admin-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(15, 27, 61, 0.1);
    background: rgba(248, 250, 252, 0.9);
    cursor: text;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.admin-header-search-wrap.is-open .admin-header-search,
.admin-header-search:focus-within {
    background: #fff;
    border-color: rgba(236, 30, 107, 0.35);
    box-shadow: 0 8px 24px -14px rgba(236, 30, 107, 0.35);
    transform: translateY(-1px);
}

.admin-header-search-wrap.is-open .admin-header-search {
    transform: none;
}

.admin-header-search__icon {
    color: rgba(100, 116, 139, 0.9);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.admin-header-search:focus-within .admin-header-search__icon {
    color: var(--pink);
}

.admin-header-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--navy);
    outline: none;
}

.admin-header-search__input::placeholder {
    color: rgba(100, 116, 139, 0.85);
}

.admin-header-search__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(15, 27, 61, 0.1);
    background: #fff;
    color: rgba(100, 116, 139, 0.95);
    font-size: 11px;
    font-family: inherit;
    flex-shrink: 0;
}

.admin-search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(15, 27, 61, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px -20px rgba(15, 27, 61, 0.35);
    z-index: 120;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

.admin-search-suggest.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-search-suggest__list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 360px;
    overflow-y: auto;
}

.admin-search-suggest__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.admin-search-suggest__item:hover,
.admin-search-suggest__item.is-active {
    background: rgba(236, 30, 107, 0.07);
}

.admin-search-suggest__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(15, 27, 61, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.admin-search-suggest__content {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-search-suggest__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.admin-search-suggest__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.admin-search-suggest__type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pink);
    background: rgba(236, 30, 107, 0.08);
    padding: 2px 6px;
    border-radius: 999px;
}

.admin-search-suggest__subtitle {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.35;
}

.admin-search-suggest__empty,
.admin-search-suggest__hint {
    margin: 0;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--slate);
    text-align: center;
}

.admin-header-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 27, 61, 0.1);
    background: #fff;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.admin-header-icon-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(236, 30, 107, 0.22);
    box-shadow: 0 10px 24px -14px rgba(15, 27, 61, 0.28);
}

.admin-header-icon-btn:active {
    transform: translateY(0) scale(0.98);
}

.admin-header-icon-btn--has-unread svg {
    animation: adminBellRing 0.9s ease 0.4s both;
}

.admin-header-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(15, 27, 61, 0.08);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    max-width: 260px;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.admin-header-profile:hover {
    transform: translateY(-1px);
    border-color: rgba(236, 30, 107, 0.2);
    box-shadow: 0 10px 28px -16px rgba(15, 27, 61, 0.25);
}

.admin-header-profile[aria-expanded="true"] {
    border-color: rgba(236, 30, 107, 0.35);
    box-shadow: 0 12px 32px -16px rgba(236, 30, 107, 0.28);
}

.admin-header-profile__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -4px rgba(236, 30, 107, 0.45);
    transition: transform 0.25s ease;
}

.admin-header-profile:hover .admin-header-profile__avatar {
    transform: scale(1.05);
}

.admin-header-profile__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: left;
}

.admin-header-profile__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.admin-header-profile__email {
    font-size: 12px;
    color: rgba(100, 116, 139, 0.95);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.admin-header-profile__chevron {
    color: rgba(100, 116, 139, 0.8);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.admin-header-profile[aria-expanded="true"] .admin-header-profile__chevron {
    transform: rotate(180deg);
}

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 28px 12px;
}

.admin-page-heading__text {
    min-width: 0;
    flex: 1 1 280px;
}

.admin-page-heading__text h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.15;
}

.admin-page-heading__text p {
    color: var(--slate);
    font-size: 14px;
    margin: 10px 0 0;
    line-height: 1.55;
    max-width: 640px;
}

.admin-page-heading__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.admin-page-heading__actions:not(:has(*)) {
    display: none;
}

.admin-page-heading__btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 14px;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.admin-page-heading__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(236, 30, 107, 0.55);
}

.admin-page-heading__btn:active {
    transform: translateY(0);
}

.admin-header-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 980;
}

.admin-header-overlay.is-visible {
    display: block;
    background: rgba(15, 27, 61, 0.35);
    backdrop-filter: blur(3px);
    animation: adminOverlayIn 0.25s ease;
}

body.admin-dropdown-open .admin-workspace {
    overflow: visible;
}

body.admin-dropdown-open .admin-header-top {
    z-index: 300;
    overflow: visible;
}

body.admin-dropdown-open .admin-header-top__right {
    overflow: visible;
}

body.admin-dropdown-open .admin-notifications-menu,
body.admin-dropdown-open .admin-profile-menu {
    z-index: 310;
}

@media (min-width: 901px) {
    .admin-notifications-dropdown.is-open,
    .admin-profile-dropdown.is-open {
        z-index: 320;
    }

    .admin-header-overlay.is-visible {
        display: none !important;
    }
}

.admin-mobile-sheet__handle {
    display: none;
}

@keyframes adminOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-notifications-menu,
.admin-profile-menu {
    position: relative;
}

.admin-notifications-menu__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(236, 30, 107, 0.35);
    animation: adminBadgePulse 2.4s ease-in-out infinite;
}

.admin-notifications-dropdown,
.admin-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 340px;
    max-width: min(92vw, 400px);
    background: #fff;
    border: 1px solid rgba(15, 27, 61, 0.1);
    border-radius: 18px;
    box-shadow: 0 20px 50px -20px rgba(15, 27, 61, 0.35);
    z-index: 50;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s ease;
    pointer-events: none;
}

.admin-notifications-dropdown.is-open,
.admin-profile-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: adminDropdownIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-notifications-dropdown[aria-hidden="true"]:not(.is-open),
.admin-profile-dropdown[aria-hidden="true"]:not(.is-open) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.admin-notifications-dropdown__header,
.admin-profile-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 27, 61, 0.08);
}

.admin-notifications-dropdown__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.admin-notifications-dropdown__toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.admin-notifications-dropdown__icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--slate);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-notifications-dropdown__icon-btn:hover {
    background: rgba(15, 27, 61, 0.06);
    color: var(--navy);
}

.admin-notifications-dropdown__icon-btn--danger:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.admin-notifications-dropdown__item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(15, 27, 61, 0.06);
}

.admin-notifications-dropdown__item:last-child {
    border-bottom: none;
}

.admin-notifications-dropdown__item .admin-notifications-item {
    flex: 1;
    min-width: 0;
    border-bottom: none;
}

.admin-notifications-dropdown__item--unread {
    background: rgba(236, 30, 107, 0.04);
}

.admin-notifications-item__delete {
    flex-shrink: 0;
    width: 40px;
    border: none;
    background: transparent;
    color: var(--slate);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-notifications-item__delete:hover {
    opacity: 1;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

.admin-notifications-dropdown__list {
    max-height: 360px;
    overflow-y: auto;
}

.admin-notifications-dropdown__empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    color: var(--slate);
    font-size: 13px;
}

.admin-notifications-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(15, 27, 61, 0.06);
    transition: background 0.15s ease;
}

.admin-notifications-item:last-child {
    border-bottom: none;
}

.admin-notifications-item:hover {
    background: rgba(236, 30, 107, 0.04);
}

.admin-notifications-item--unread {
    background: rgba(236, 30, 107, 0.06);
}

.admin-notifications-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(15, 27, 61, 0.06);
    font-size: 16px;
}

.admin-notifications-item__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-notifications-item__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.admin-notifications-item__body {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.45;
}

.admin-notifications-item__time {
    font-size: 11px;
    color: rgba(100, 116, 139, 0.9);
    margin-top: 2px;
}

.admin-notifications-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 0;
}

.admin-notifications-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-notifications-page__filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--slate);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-notifications-page__filter:hover {
    border-color: rgba(236, 30, 107, 0.35);
    color: var(--navy);
}

.admin-notifications-page__filter.is-active {
    border-color: rgba(236, 30, 107, 0.35);
    background: rgba(236, 30, 107, 0.08);
    color: var(--pink);
}

.admin-notifications-page__filter-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-notifications-page__list {
    padding: 8px 0 0;
}

.admin-notifications-page__item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(15, 27, 61, 0.06);
}

.admin-notifications-page__item:last-child {
    border-bottom: none;
}

.admin-notifications-page__item--unread {
    background: rgba(236, 30, 107, 0.03);
}

.admin-notifications-page__item .admin-notifications-item--page {
    flex: 1;
    min-width: 0;
    border-bottom: none;
}

.admin-notifications-page__delete-form {
    margin: 0;
    display: flex;
    align-items: stretch;
}

.admin-notifications-page__delete-btn {
    width: 52px;
    border: none;
    background: transparent;
    color: var(--slate);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-notifications-page__delete-btn:hover {
    opacity: 1;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

.admin-notifications-page__header-form {
    margin: 0;
}

.admin-notifications-page__list .admin-notifications-item {
    padding: 16px 20px;
    position: relative;
}

.admin-notifications-page__unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    flex-shrink: 0;
    align-self: center;
    margin-left: 8px;
}

.admin-notifications-page__empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--slate);
}

.admin-notifications-page__empty-icon {
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
}

.admin-notifications-page__empty p {
    font-size: 14px;
}

.admin-notifications-page__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(15, 27, 61, 0.06);
}

.admin-notifications-page__page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-notifications-page__page-btn:hover:not(.is-disabled) {
    border-color: rgba(236, 30, 107, 0.35);
    background: rgba(236, 30, 107, 0.04);
}

.admin-notifications-page__page-btn.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.admin-notifications-page__page-info {
    font-size: 13px;
    color: var(--slate);
    text-align: center;
}

.admin-notifications-page__mark-all-form {
    margin: 0;
}

.admin-profile-menu__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-profile-menu__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.admin-profile-dropdown__header {
    flex-direction: column;
    align-items: flex-start;
}

.admin-profile-dropdown__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

.admin-profile-dropdown__email {
    font-size: 12px;
    color: var(--slate);
    word-break: break-all;
}

.admin-profile-dropdown__role {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--pink);
    background: rgba(236, 30, 107, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
}

.admin-profile-dropdown__item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    text-decoration: none;
    color: var(--navy);
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    border-top: 1px solid rgba(15, 27, 61, 0.06);
}

.admin-profile-dropdown__item:hover {
    background: rgba(15, 27, 61, 0.04);
}

.admin-profile-dropdown__item--danger {
    color: #dc2626;
}

.admin-profile-dropdown__form {
    margin: 0;
}

.admin-workspace > .admin-page-heading + * {
    margin-top: 0;
}

.admin-workspace > .admin-page-content {
    margin-inline: 28px;
}

.admin-workspace > .admin-page-content:last-child {
    margin-bottom: 28px;
}

.admin-workspace > .alert {
    margin: 0 28px 12px;
}

@media (prefers-reduced-motion: reduce) {
    .admin-animate-in,
    .admin-header-icon-btn--has-unread svg,
    .admin-notifications-menu__badge,
    .admin-notifications-dropdown.is-open,
    .admin-profile-dropdown.is-open {
        animation: none !important;
        transition: none !important;
    }
}

.admin-header {
    margin-bottom: 24px;
}

.admin-header__content {
    width: 100%;
}

.admin-header__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-header__actions {
    flex-shrink: 0;
}

.admin-header h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.admin-header h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.admin-header p {
    color: var(--slate);
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.5;
}

.admin-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-page .btn:hover {
    transform: translateY(-1px);
}

.admin-page .btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(236, 30, 107, 0.45);
}

.admin-page .btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    border: 1px solid var(--border);
}

.admin-page .btn-danger {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.admin-page .card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 229, 240, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 32px -14px rgba(15, 27, 61, 0.14);
}

.admin-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.admin-page .stat-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 229, 240, 0.95);
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 8px 24px -12px rgba(15, 27, 61, 0.12);
    border-top: 3px solid var(--pink);
    animation: adminFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-page .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -16px rgba(15, 27, 61, 0.2);
}

.admin-page .stat-card:nth-child(1) { animation-delay: 0.12s; }
.admin-page .stat-card:nth-child(2) { animation-delay: 0.16s; }
.admin-page .stat-card:nth-child(3) { animation-delay: 0.2s; }
.admin-page .stat-card:nth-child(4) { animation-delay: 0.24s; }
.admin-page .stat-card:nth-child(5) { animation-delay: 0.28s; }
.admin-page .stat-card:nth-child(6) { animation-delay: 0.32s; }

.admin-page .stat-card:nth-child(2) { border-top-color: var(--orange); }
.admin-page .stat-card:nth-child(3) { border-top-color: var(--cyan); }
.admin-page .stat-card:nth-child(4) { border-top-color: var(--pink); }
.admin-page .stat-card:nth-child(5) { border-top-color: var(--orange); }
.admin-page .stat-card:nth-child(6) { border-top-color: var(--cyan); }

.admin-page .stat-card .label {
    font-size: 11px;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-page .stat-card .value {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 800;
    color: var(--navy);
}

.admin-page .dashboard-charts {
    margin-bottom: 20px;
}

.admin-page .dashboard-charts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-page .chart-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 229, 240, 0.95);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 32px -14px rgba(15, 27, 61, 0.14);
}

.admin-page .chart-card__header {
    margin-bottom: 14px;
}

.admin-page .chart-card__subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.45;
}

.admin-page .chart-card__canvas-wrap {
    position: relative;
    height: 280px;
}

.admin-page .chart-card__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    font-size: 14px;
    color: var(--slate);
    text-align: center;
    padding: 12px;
}

.admin-page .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
}

.admin-page .table-wrap::after {
    content: '';
    display: block;
    height: 1px;
}

.admin-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 560px;
}

.admin-page th,
.admin-page td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-page th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate);
    background: rgba(250, 250, 252, 0.8);
}

.admin-page .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.admin-page .badge-success { background: #ECFDF5; color: #047857; }
.admin-page .badge-muted { background: #F1F5F9; color: #64748B; }
.admin-page .badge-admin { background: #FFF7ED; color: #C2410C; }
.admin-page .badge-member { background: #EFF6FF; color: #1D4ED8; }
.admin-page .badge-pj { background: #F5F3FF; color: #6D28D9; }

.admin-page .form-grid {
    display: grid;
    gap: 16px;
    max-width: 560px;
}

.admin-page .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.admin-page .form-group input,
.admin-page .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--navy);
}

.admin-page .form-group input:focus,
.admin-page .form-group select:focus,
.admin-page .form-group textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.12);
}

.admin-page .form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--slate);
    line-height: 1.4;
}

.admin-page .form-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.admin-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.admin-checkbox input[type="checkbox"] {
    position: absolute;
    inset: 0 auto auto 0;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.admin-checkbox__box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.admin-checkbox__box::after {
    content: '';
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform 0.12s ease;
}

.admin-checkbox input:checked + .admin-checkbox__box {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-color: transparent;
    box-shadow: 0 4px 12px -4px rgba(236, 30, 107, 0.45);
}

.admin-checkbox input:checked + .admin-checkbox__box::after {
    transform: rotate(45deg) scale(1);
}

.admin-checkbox input:focus-visible + .admin-checkbox__box {
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.18);
}

.admin-checkbox__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.admin-checkbox--bulk {
    margin: 0;
}

.admin-datatable .col-bulk {
    width: 44px;
    text-align: center;
}

.admin-datatable .col-bulk .admin-checkbox__label {
    display: none;
}

.admin-page .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-page .alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.admin-page .alert-success,
.admin-page .alert-error {
    display: none;
}

.admin-page .alert-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.admin-page .alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

.admin-page .row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-page .row-actions .row-action-form {
    display: inline-flex;
}

.admin-page .btn-row-danger {
    background: #fff;
    color: #B91C1C;
    border: 1px solid #FECACA;
    box-shadow: none;
}

.admin-page .btn-row-danger:hover {
    background: #FEF2F2;
    transform: translateY(-1px);
}

.admin-bulk-form {
    margin-bottom: 0;
}

.admin-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 27, 61, 0.04), rgba(236, 30, 107, 0.08));
    border: 1px solid rgba(236, 30, 107, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-bulk-toolbar[hidden] {
    display: none !important;
}

.admin-bulk-toolbar__info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-bulk-toolbar__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-bulk-toolbar__count {
    font-size: 13px;
    color: var(--slate);
}

.admin-bulk-toolbar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-bulk-toolbar--compact {
    justify-content: flex-end;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.admin-bulk-toolbar--compact .btn-bulk {
    min-width: 40px;
    padding: 10px 12px;
}

.admin-page .btn-bulk {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-page .btn-bulk:hover {
    transform: translateY(-1px);
}

.admin-page .btn-bulk-danger {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(220, 38, 38, 0.45);
}

.admin-page .btn-bulk-secondary {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px -8px rgba(15, 27, 61, 0.12);
}

.admin-page .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-page .btn-sm {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.admin-page .share-message-field,
.admin-page .share-message-editor {
    width: 100%;
    min-height: 220px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: var(--navy);
    background: #fff;
    resize: vertical;
}

.admin-page .share-message-field:focus,
.admin-page .share-message-editor:focus {
    outline: none;
    border-color: rgba(236, 30, 107, 0.45);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.1);
}

.swal2-popup .share-message-editor {
    width: 100%;
    min-height: 280px;
    margin-top: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: var(--navy);
    resize: vertical;
}

.admin-page .btn-copy-share {
    white-space: nowrap;
}

.admin-dt-top,
.admin-dt-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.admin-dt-bottom {
    margin-bottom: 0;
    margin-top: 12px;
}

.admin-dt-filters th {
    padding-top: 0;
    background: transparent;
}

.admin-dt-filter {
    width: 100%;
    min-width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-family: inherit;
    background: #fff;
    color: var(--navy);
}

.admin-dt-filter:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.1);
}

.admin-page .dataTables_wrapper .dataTables_length select,
.admin-page .dataTables_wrapper .dataTables_filter input {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: var(--navy);
}

.admin-page .dataTables_wrapper .dataTables_filter input:focus,
.admin-page .dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.1);
}

.admin-page .dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: var(--slate);
}

.admin-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    padding: 6px 10px !important;
    margin: 0 2px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    color: var(--navy) !important;
}

.admin-page .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--pink), var(--orange)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.admin-page .select2-container--default .select2-selection--single {
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
}

.admin-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: var(--navy);
    padding-left: 0;
}

.admin-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 8px;
}

.admin-page .select2-container--default.select2-container--open .select2-selection--single,
.admin-page .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.12);
}

.admin-page .select2-dropdown {
    border-color: var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px -12px rgba(15, 27, 61, 0.2);
    z-index: 2000;
}

.admin-page .select2-container {
    z-index: 1;
}

.admin-page .select2-container--open {
    z-index: 2000;
}

.admin-page .admin-select--native,
.play-player-list__gender.admin-select--native {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 700;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    appearance: auto;
}

.admin-page .admin-select--native:focus,
.play-player-list__gender.admin-select--native:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.12);
}

.admin-page .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(236, 30, 107, 0.12);
    color: var(--navy);
}

.admin-page .select2-container--default .select2-results__option--selected {
    background: rgba(236, 30, 107, 0.08);
    color: var(--navy);
}

.admin-page .mono {
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 8px 8px 16px;
        overflow-x: hidden;
    }

    .admin-workspace {
        border-radius: 18px;
        min-height: calc(100dvh - 16px);
        overflow-x: hidden;
    }

    .admin-header-top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu actions actions"
            "search search search";
        gap: 10px 8px;
        align-items: center;
        padding: 12px 14px;
        padding-top: max(12px, env(safe-area-inset-top));
        position: relative;
        z-index: 20;
    }

    .admin-header-top__menu {
        display: inline-flex;
        grid-area: menu;
        width: 40px;
        height: 40px;
    }

    .admin-header-top__right {
        grid-area: actions;
        justify-self: end;
        margin-left: 0;
        gap: 8px;
    }

    .admin-header-search-wrap {
        grid-area: search;
        width: 100%;
        max-width: none;
        flex: none;
    }

    .admin-header-search {
        width: 100%;
        height: 44px;
        padding: 0 12px;
    }

    .admin-header-search-wrap.is-open .admin-header-search,
    .admin-header-search:focus-within {
        transform: none;
    }

    .admin-search-suggest {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        max-height: min(70dvh, 520px);
        transform: translateY(105%);
        z-index: 995;
    }

    .admin-search-suggest.is-open {
        transform: translateY(0);
    }

    .admin-search-suggest__list {
        max-height: calc(min(70dvh, 520px) - 56px);
    }

    .admin-header-search__input {
        font-size: 16px;
    }

    .admin-header-search__hint {
        display: none;
    }

    .admin-header-icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .admin-header-profile {
        padding: 3px;
        border-radius: 999px;
    }

    .admin-header-profile__info,
    .admin-header-profile__chevron {
        display: none;
    }

    .admin-header-profile__avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .admin-page-heading {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px 8px;
        gap: 10px;
    }

    .admin-page-heading__text {
        flex: 0 1 auto;
    }

    .admin-page-heading__text h1 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.2;
    }

    .admin-page-heading__text p {
        font-size: 13px;
        margin-top: 6px;
        margin-bottom: 0;
    }

    .admin-page-heading__actions {
        width: 100%;
    }

    .admin-page-heading__btn {
        width: 100%;
        justify-content: center;
    }

    .admin-workspace > .admin-page-content {
        margin-inline: 14px;
    }

    .admin-workspace > .alert {
        margin: 0 14px 10px;
    }

    .admin-page .stats-grid {
        margin-top: 0;
    }

    .admin-mobile-sheet__handle {
        display: block;
        width: 42px;
        height: 4px;
        margin: 8px auto 2px;
        border-radius: 999px;
        background: rgba(15, 27, 61, 0.14);
        flex-shrink: 0;
    }

    .admin-workspace {
        border-radius: 18px;
        min-height: calc(100dvh - 16px);
        overflow-x: hidden;
    }

    body.admin-sheet-open .admin-workspace {
        overflow: visible;
    }

    .admin-notifications-dropdown.is-ported,
    .admin-profile-dropdown.is-ported {
        position: fixed !important;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 0;
        max-width: none;
        border-radius: 20px 20px 0 0;
        max-height: min(78dvh, 620px);
        transform: translateY(105%);
        transform-origin: bottom center;
        z-index: 990;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0.22s ease;
        background: #fff;
        box-shadow: 0 -12px 40px -12px rgba(15, 27, 61, 0.35);
    }

    .admin-notifications-dropdown.is-ported.is-open,
    .admin-profile-dropdown.is-ported.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        animation: none;
    }

    .admin-notifications-dropdown.is-ported .admin-notifications-dropdown__list {
        max-height: calc(min(78dvh, 620px) - 64px);
    }

    .admin-notifications-dropdown.is-ported .admin-notifications-dropdown__header,
    .admin-profile-dropdown.is-ported .admin-profile-dropdown__header {
        padding-top: 4px;
    }

    body.admin-sheet-open {
        overflow: hidden;
        touch-action: none;
    }

    .admin-page .stat-card:hover {
        transform: none;
    }

    .admin-header-profile:hover,
    .admin-header-icon-btn:hover {
        transform: none;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(300px, 88vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 150;
        box-shadow: 8px 0 32px -8px rgba(15, 27, 61, 0.35);
        padding-top: 20px;
        pointer-events: none;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .admin-sidebar__close {
        display: inline-flex;
    }

    .admin-header {
        margin-bottom: 18px;
    }

    .admin-header__title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-header__actions {
        width: 100%;
    }

    .admin-header__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-page .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .admin-page .dashboard-charts__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-page .chart-card {
        padding: 14px;
    }

    .admin-page .chart-card__canvas-wrap {
        height: 240px;
    }

    .admin-page .card {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .admin-page .table-wrap {
        margin: 0 -6px;
        padding: 0 6px 4px;
        overscroll-behavior-x: contain;
    }

    .admin-page table {
        min-width: 520px;
    }

    .admin-dt-top,
    .admin-dt-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dt-top .dataTables_length,
    .admin-dt-top .dataTables_filter,
    .admin-dt-bottom .dataTables_info,
    .admin-dt-bottom .dataTables_paginate {
        width: 100%;
    }

    .admin-dt-top .dataTables_filter input,
    .admin-dt-filters input.admin-dt-filter {
        font-size: 16px;
        min-height: 44px;
    }

    .admin-page th,
    .admin-page td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .admin-page .row-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .admin-page .row-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .admin-bulk-toolbar__actions {
        width: 100%;
    }

    .admin-bulk-toolbar__actions .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 4px);
    }

    .admin-page .form-grid,
    .admin-page .form-grid--wide,
    .form-grid--wide {
        max-width: none;
    }

    .admin-page .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-page .actions .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-page .btn,
    .admin-page .btn-sm {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 6px 6px 12px;
    }

    .admin-workspace {
        border-radius: 16px;
        min-height: calc(100dvh - 12px);
    }

    .admin-header-top {
        padding: 10px 12px;
        padding-top: max(10px, env(safe-area-inset-top));
        gap: 8px;
    }

    .admin-header-top__menu,
    .admin-header-icon-btn {
        width: 38px;
        height: 38px;
    }

    .admin-header-profile__avatar {
        width: 34px;
        height: 34px;
    }

    .admin-header-search {
        height: 42px;
    }

    .admin-header-search__input::placeholder {
        font-size: 14px;
    }

    .admin-page-heading {
        padding: 12px 12px 6px;
    }

    .admin-workspace > .admin-page-content {
        margin-inline: 12px;
    }

    .admin-workspace > .alert {
        margin: 0 12px 8px;
    }

    .admin-page .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-page .stat-card {
        padding: 14px;
    }

    .admin-page .stat-card .value {
        font-size: 24px;
    }

    .admin-page table {
        min-width: 460px;
    }

    .admin-page th,
    .admin-page td {
        padding: 9px 7px;
        font-size: 12px;
    }

    .admin-bulk-toolbar__actions .btn {
        min-width: 100%;
    }

    .admin-page .chart-card__canvas-wrap {
        height: 220px;
    }
}

@media (min-width: 901px) {
    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
    }

    .admin-overlay {
        display: none;
    }
}

/* Admin extras */
.form-grid--wide {
    max-width: 720px;
}

.admin-page .form-grid--wide {
    max-width: none;
    width: 100%;
}

.form-grid--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 720px) {
    .form-grid--2col {
        grid-template-columns: 1fr;
    }
}

.play-manage__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 16px 18px;
}

.play-manage__status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.play-manage__meta {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
    word-break: break-word;
}

.play-manage__panel {
    min-width: 0;
    overflow: visible;
}

.play-manage__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.play-tabs {
    min-width: 0;
    overflow: visible;
    padding: 0;
}

.play-tabs__nav {
    display: flex;
    gap: 6px;
    padding: 12px 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.play-tabs__nav::-webkit-scrollbar {
    display: none;
}

.play-tabs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: max-content;
    min-height: 44px;
    padding: 10px 14px;
    border: none;
    border-radius: 12px 12px 0 0;
    background: transparent;
    color: var(--slate);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.play-tabs__btn:hover {
    color: var(--navy);
    background: rgba(245, 243, 255, 0.65);
}

.play-tabs__btn.is-active {
    background: #fff;
    color: var(--navy);
    box-shadow: inset 0 -2px 0 #6D28D9;
}

.play-tabs__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}

.play-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #F1F5F9;
    color: var(--slate);
    font-size: 11px;
    font-weight: 700;
}

.play-tabs__btn.is-active .play-tabs__count {
    background: #F5F3FF;
    color: #6D28D9;
}

.play-tabs__count--active {
    background: rgba(236, 30, 107, 0.12);
    color: var(--pink);
}

.play-tabs__panels {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.play-tabs__panel {
    display: none;
}

.play-tabs__panel.is-active {
    display: block;
}

.play-tabs__intro {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--slate);
}

.play-manage__grid {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.play-manage__panel-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.play-manage__subheading {
    margin: 20px 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.play-manage__add-player,
.play-manage__bulk-players {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.play-manage__import,
.play-manage__add-details {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px dashed rgba(109, 40, 217, 0.25);
    border-radius: 12px;
    background: rgba(245, 243, 255, 0.45);
}

.play-manage__import summary,
.play-manage__add-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #6D28D9;
}

.play-import-form {
    margin-top: 12px;
}

.play-attendance-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.play-attendance-stats__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    color: var(--slate);
}

.play-attendance-stats__item strong {
    color: var(--navy);
    font-size: 14px;
}

.play-attendance-stats__item--present {
    background: rgba(236, 253, 245, 0.8);
    border-color: rgba(4, 120, 87, 0.2);
    color: #047857;
}

.play-attendance-stats__item--absent {
    background: rgba(254, 242, 242, 0.8);
    border-color: rgba(220, 38, 38, 0.15);
    color: #B91C1C;
}

.play-attendance-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.play-attendance-hint {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    background: rgba(245, 243, 255, 0.8);
    border: 1px solid rgba(109, 40, 217, 0.18);
    color: #5B21B6;
}

.play-player-list {
    display: grid;
    gap: 10px;
}

.play-player-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main actions";
    align-items: start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.play-player-list__attendance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    grid-area: main;
    min-width: 0;
    cursor: pointer;
}

.play-player-list__checkbox {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #047857;
    cursor: pointer;
}

.play-player-list__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.play-player-list__info strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.play-player-list__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-area: actions;
    flex-shrink: 0;
}

.play-player-list__gender {
    width: 64px;
    min-width: 64px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 700;
}

.play-player-list__delete {
    white-space: nowrap;
    min-height: 40px;
}

.play-player-list__item.is-present {
    border-color: rgba(4, 120, 87, 0.28);
    background: rgba(236, 253, 245, 0.55);
}

.play-player-list__item.is-absent {
    border-color: rgba(148, 163, 184, 0.35);
    background: #FAFAFC;
}

.play-player-list__slot {
    display: inline-block;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #6D28D9;
}

.play-player-list__gender-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: #F5F3FF;
    color: #6D28D9;
}

.play-player-list__item.is-met {
    border-color: rgba(4, 120, 87, 0.25);
    background: rgba(236, 253, 245, 0.65);
}

.play-player-list__item.is-pending {
    border-color: rgba(109, 40, 217, 0.18);
}

.play-player-list__games {
    display: block;
    font-size: 12px;
    color: var(--slate);
}

.play-manage__manual {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px dashed rgba(109, 40, 217, 0.25);
    border-radius: 12px;
    background: rgba(245, 243, 255, 0.45);
}

.play-manage__manual summary {
    cursor: pointer;
    font-weight: 600;
    color: #6D28D9;
}

.play-manual-form__teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.play-match-list {
    display: grid;
    gap: 12px;
}

@media (min-width: 720px) {
    .play-match-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .play-match-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.play-match-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.play-match-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--slate);
}

.play-match-card__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.play-match-card__team-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate);
    margin-bottom: 4px;
}

.play-match-card__vs {
    font-weight: 800;
    color: var(--pink);
}

.play-match-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.play-score-form__sets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.play-score-form__sets > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.play-score-form__sets input {
    width: 56px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}

.admin-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table-compact th,
.admin-table-compact td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

@media (max-width: 960px) {
    .play-manage__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .play-manage__actions {
        width: 100%;
    }

    .play-manage__actions .btn,
    .play-manage__actions form {
        flex: 1 1 auto;
    }

    .play-manage__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .play-manage__actions form {
        display: flex;
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
    }

    .play-attendance-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .play-attendance-stats__item {
        justify-content: center;
        text-align: center;
    }

    .play-attendance-toolbar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .play-attendance-toolbar > .btn,
    .play-attendance-toolbar > form {
        width: 100%;
        min-width: 0;
    }

    .play-attendance-toolbar > form {
        display: block;
    }

    .play-attendance-toolbar > form .btn {
        width: 100%;
    }

    .play-manual-form__teams {
        grid-template-columns: 1fr;
    }

    .play-match-card__teams {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .play-match-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .play-match-card__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .play-score-form {
        width: 100%;
    }

    .play-score-form__sets {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .play-player-list__item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "actions";
        gap: 10px;
    }

    .play-player-list__actions {
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(231, 229, 240, 0.9);
        justify-content: stretch;
    }

    .play-player-list__gender {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .play-player-list__delete {
        flex: 1;
        min-width: 0;
    }

    .play-attendance-toolbar {
        grid-template-columns: 1fr;
    }

    .play-attendance-stats {
        grid-template-columns: 1fr 1fr;
    }

    .play-tabs__nav {
        padding: 10px 10px 0;
        gap: 4px;
    }

    .play-tabs__btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 10px;
        font-size: 13px;
    }

    .play-tabs__panels {
        padding: 14px 12px;
    }

    .play-manage__actions {
        flex-direction: column;
    }

    .play-manage__actions form {
        min-width: 100%;
    }
}

.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: #fff;
    color: var(--navy);
}

/* Error pages */
.error-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    text-align: center;
}

.error-page__box {
    max-width: 360px;
}

.error-page h1 {
    font-size: 48px;
    margin-bottom: 8px;
}

.error-page p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.error-page a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
}

.empty-hint {
    font-size: 13px;
    color: var(--slate);
    text-align: left;
    padding: 4px;
}

.section-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--navy);
}

.admin-page .section-heading::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.cell-truncate {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-link {
    color: #6D28D9;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

button.admin-table-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.admin-table-link:hover {
    color: var(--pink);
    text-decoration: underline;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.admin-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.admin-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.admin-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #F8F7FC;
    color: var(--navy);
    cursor: pointer;
}

.admin-modal__close:hover {
    background: #EFE9FF;
    color: var(--pink);
}

.admin-modal__body {
    padding: 16px 18px;
    overflow: auto;
    background: #F8F7FC;
}

.admin-modal__image {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.admin-modal__footer {
    padding: 12px 18px 16px;
    border-top: 1px solid var(--border);
    text-align: right;
}

body.admin-modal-open {
    overflow: hidden;
}

.admin-table-link--external {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.cell-truncate .admin-table-link--external {
    max-width: 200px;
}

.cell-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.container--wide {
    max-width: 520px;
}

.page--payment .payment-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px 28px;
    box-shadow: 0 16px 40px -18px rgba(15, 27, 61, 0.18);
    margin-top: 12px;
    text-align: center;
}

.payment-card__logo {
    display: block;
    width: 106px;
    height: 106px;
    max-width: 106px;
    max-height: 106px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.payment-schedule {
    background: #F8F7FC;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 18px 0 22px;
    text-align: center;
}

.payment-schedule__row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--navy);
}

.payment-schedule__row + .payment-schedule__row {
    margin-top: 8px;
}

.payment-schedule__row--fee {
    font-weight: 700;
    color: var(--pink);
}

.payment-schedule__icon {
    flex-shrink: 0;
}

.payment-fee-tiers {
    background: #F8F7FC;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 22px;
}

.payment-fee-tiers__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.payment-fee-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    text-align: center;
}

.payment-fee-tier + .payment-fee-tier {
    margin-top: 8px;
}

.payment-fee-tier--active {
    border-color: var(--pink);
    background: #FFF5F9;
}

.payment-fee-tier__amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--pink);
}

.payment-fee-tier__desc {
    font-size: 13px;
    color: var(--navy);
    line-height: 1.45;
}

.payment-fee-tier__deadline {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.payment-fee-tiers__current {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--navy);
}

.payment-fee-tiers__current strong {
    color: var(--pink);
}

.payment-login-prompt {
    text-align: center;
    padding: 16px 0 8px;
}

.payment-login-prompt .btn {
    margin: 8px 4px 0;
}

.payment-status-box {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: left;
}

.payment-status-box--pending {
    background: #FFF7ED;
    border: 1px solid #FDBA74;
}

.payment-status-box--verified {
    background: #ECFDF5;
    border: 1px solid #6EE7B7;
}

.payment-status-box--rejected {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.payment-form {
    text-align: left;
}

.payment-form .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.payment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}

.payment-form input[type="text"],
.payment-form input[type="file"],
.payment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
}

.payment-method-option:has(input:checked) {
    border-color: var(--pink);
    background: rgba(236, 30, 107, 0.06);
}

.payment-method-panel {
    margin-bottom: 16px;
}

.qris-image-wrap--payment {
    margin-top: 0;
}

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

.admin-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.admin-filter-bar .form-group--actions {
    display: flex;
    gap: 8px;
}

.section-heading--sm {
    font-size: 16px;
    margin-bottom: 8px;
}

.play-manage__import--payments {
    margin: 16px 0;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
}

.payment-account-box {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    background: #FAFAFC;
}

.payment-account-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.payment-account-fields {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.payment-account-fields .cf-turnstile {
    margin-top: 8px;
}

.payment-proof-dropzone {
    position: relative;
    min-height: 200px;
    border: 2px dashed rgba(236, 30, 107, 0.28);
    border-radius: 14px;
    background: rgba(252, 252, 254, 0.9);
    padding: 18px 16px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.payment-proof-dropzone:hover,
.payment-proof-dropzone:focus-visible {
    border-color: rgba(236, 30, 107, 0.5);
    background: rgba(236, 30, 107, 0.04);
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.1);
}

.payment-proof-dropzone.is-dragover {
    border-color: var(--pink);
    background: rgba(236, 30, 107, 0.08);
    box-shadow: 0 0 0 3px rgba(236, 30, 107, 0.14);
}

.payment-proof-dropzone.has-file {
    border-style: solid;
    border-color: rgba(4, 120, 87, 0.35);
    background: rgba(236, 253, 245, 0.7);
    padding: 12px;
}

.payment-proof-dropzone.is-invalid {
    border-color: #FCA5A5;
    background: #FEF2F2;
}

.payment-proof-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.payment-proof-dropzone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 160px;
    text-align: center;
    pointer-events: none;
}

.payment-proof-dropzone.has-file .payment-proof-dropzone__content {
    display: none;
}

.payment-proof-dropzone__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    pointer-events: none;
}

.payment-proof-dropzone__preview img {
    display: block;
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 24px -12px rgba(15, 27, 61, 0.25);
}

.payment-proof-dropzone__preview-hint {
    font-size: 12px;
    color: var(--slate);
}

.payment-proof-dropzone__icon {
    color: var(--pink);
}

.payment-proof-dropzone__text {
    font-size: 14px;
    color: var(--navy);
    line-height: 1.45;
    margin: 0;
}

.payment-proof-dropzone__link {
    color: var(--pink);
    font-weight: 600;
}

.payment-proof-dropzone__hint {
    font-size: 12px;
    color: var(--slate);
}

.payment-proof-dropzone__filename {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    text-align: center;
    word-break: break-all;
    pointer-events: none;
}

.payment-proof-dropzone.has-file .payment-proof-dropzone__filename {
    margin-top: 10px;
}

.payment-proof-dropzone__filename[hidden],
.payment-proof-dropzone__error[hidden],
.payment-proof-dropzone__preview[hidden] {
    display: none !important;
}

.payment-proof-dropzone__error {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #B91C1C;
    text-align: center;
    pointer-events: none;
}

.admin-page .payment-proof-dropzone {
    background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 768px) {
    .admin-filter-bar {
        grid-template-columns: 1fr;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Community Feed ─────────────────────────────────────────────── */

.page--home-with-feed {
    overflow: visible;
    min-height: auto;
    display: block;
    padding: 0;
}

html:has(.page--home-with-feed) {
    scroll-snap-type: none;
}

html:has(.page--home-with-feed).is-feed-snapping {
    scroll-snap-type: none;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.page--home-with-feed) {
        scroll-behavior: smooth;
    }
}

.page--home-with-feed .page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.home-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 48px;
    position: relative;
    z-index: 1;
}

.home-hero .container {
    max-width: 420px;
}

.home-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate);
    opacity: 0.75;
    animation: feedHintBounce 2s ease-in-out infinite;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    width: 100%;
    padding: 8px 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-scroll-hint:hover {
    color: var(--navy);
}

.home-scroll-hint.is-hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(6px);
}

html.is-hero-hold .home-scroll-hint {
    opacity: 1;
    color: var(--navy);
}

html.is-hero-hold .home-scroll-hint svg {
    opacity: 1;
    animation: feedHintBounce 1.2s ease-in-out infinite;
}

.home-scroll-hint svg {
    opacity: 0.6;
}

@keyframes feedHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.home-feed-section {
    position: relative;
    z-index: 2;
    background: var(--bg);
    border-top: 1px solid var(--border);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.feed-header {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
    background: rgba(252, 252, 254, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.feed-header.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

html.is-feed-mode .feed-header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.feed-header__inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 16px;
    text-align: center;
}

.feed-header__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feed-header__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.feed-header__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--navy);
}

.feed-header__title .accent {
    color: var(--pink);
}

.feed-header__subtitle {
    font-size: 12px;
    color: var(--slate);
    margin-top: 2px;
}

.feed-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 16px 100px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px -12px rgba(15, 27, 61, 0.12);
    text-align: left;
    animation: feedCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes feedCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 0;
}

.feed-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.feed-card__author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feed-card__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--slate);
    flex-wrap: wrap;
}

.feed-card__role {
    color: var(--pink);
    font-weight: 500;
}

.feed-card__dot {
    opacity: 0.5;
}

.feed-card__delete {
    background: none;
    border: none;
    padding: 6px;
    color: var(--slate);
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.feed-card__delete:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.08);
}

.feed-card__caption {
    padding: 12px 16px 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--navy);
    word-break: break-word;
}

.feed-card__media {
    margin-top: 12px;
    background: #F1F0F6;
}

.feed-card__media img,
.feed-card__media video {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.feed-card__media--video video {
    background: #000;
}

.feed-card__link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 16px 0;
    padding: 12px 14px;
    background: #F8F7FC;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.feed-card__link:hover {
    border-color: var(--cyan);
    background: rgba(30, 200, 232, 0.06);
}

.feed-card__link-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.feed-card__link-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feed-card__link-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card__link-url {
    font-size: 11px;
    color: var(--slate);
}

.feed-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(231, 229, 240, 0.6);
    margin-top: 12px;
}

.feed-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.feed-action:hover {
    background: rgba(15, 27, 61, 0.05);
    color: var(--navy);
}

.feed-action--like.is-liked {
    color: var(--pink);
}

.feed-action--like.is-liked svg {
    fill: var(--pink);
}

.feed-action--comment-disabled {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--slate);
    opacity: 0.55;
    cursor: default;
}

.feed-card__comments {
    padding: 0 16px 14px;
    border-top: 1px solid rgba(231, 229, 240, 0.6);
}

.feed-comments__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
    max-height: 240px;
    overflow-y: auto;
}

.feed-comments__empty {
    font-size: 13px;
    color: var(--slate);
    padding: 8px 0;
}

.feed-comment {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.feed-comment__body {
    flex: 1;
    min-width: 0;
    background: #F8F7FC;
    border-radius: 12px;
    padding: 8px 12px;
}

.feed-comment__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.feed-comment__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
}

.feed-comment__header time {
    font-size: 10px;
    color: var(--slate);
}

.feed-comment__text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--navy);
    word-break: break-word;
}

.feed-comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.feed-comment-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    background: #FFFFFF;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s;
}

.feed-comment-form input:focus {
    border-color: var(--cyan);
}

.feed-comment-form button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, opacity 0.2s;
}

.feed-comment-form button:hover {
    transform: scale(1.05);
}

.feed-comment-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.feed-comment-guest {
    padding: 10px 12px;
    margin-top: 4px;
    background: rgba(15, 27, 61, 0.04);
    border: 1px dashed rgba(15, 27, 61, 0.12);
    border-radius: 12px;
}

.feed-comment-guest__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--slate);
    text-align: center;
}

.feed-comment-guest__text a {
    color: var(--pink);
    font-weight: 600;
    text-decoration: none;
}

.feed-comment-guest__text a:hover {
    text-decoration: underline;
}

.feed-card--article {
    border-color: rgba(236, 30, 107, 0.15);
}

.feed-card--article .feed-card__actions--article {
    border-top: 1px solid rgba(231, 229, 240, 0.6);
}

.article-engagement.card {
    margin-top: 24px;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.article-engagement .feed-card__actions--article {
    margin-top: 0;
}

.feed-card__article-badge {
    padding: 10px 16px 0;
}

.feed-card__article-badge span {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--pink);
    background: rgba(236, 30, 107, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
}

.feed-card__article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feed-card__article-body {
    padding: 12px 16px 16px;
}

.feed-card__article-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 6px;
}

.feed-card__article-excerpt {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 8px;
}

.feed-card__article-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--pink);
}

.feed-load-more {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.feed-load-more:hover {
    border-color: var(--pink);
    background: rgba(236, 30, 107, 0.04);
}

.feed-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feed-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    color: var(--slate);
    min-height: 0;
}

.feed-empty__icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.home-feed-footer {
    text-align: center;
    font-size: 12px;
    color: var(--slate);
    margin-top: auto;
    padding-top: 32px;
    flex-shrink: 0;
    opacity: 0.7;
}

.feed-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
    box-shadow: 0 8px 28px -6px rgba(236, 30, 107, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, opacity 0.25s;
}

.feed-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px -4px rgba(236, 30, 107, 0.6);
}

.feed-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.feed-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.feed-modal.is-open {
    pointer-events: auto;
    visibility: visible;
}

.feed-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 61, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feed-modal.is-open .feed-modal__backdrop {
    opacity: 1;
}

.feed-modal__sheet {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    max-height: 90dvh;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    padding: 8px 20px 28px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

.feed-modal.is-open .feed-modal__sheet {
    transform: translateY(0);
}

.feed-modal__handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    margin: 4px auto 12px;
}

.feed-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.feed-modal__header h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

.feed-modal__close {
    background: none;
    border: none;
    padding: 6px;
    color: var(--slate);
    cursor: pointer;
    border-radius: 8px;
}

.feed-create-form__author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.feed-create-form__caption {
    width: 100%;
    border: none;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--navy);
    outline: none;
    margin-bottom: 12px;
}

.feed-create-form__caption::placeholder {
    color: var(--slate);
}

.feed-create-form__media-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.feed-media-tab {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.2s;
}

.feed-media-tab.is-active {
    border-color: var(--pink);
    background: rgba(236, 30, 107, 0.08);
    color: var(--pink);
}

.feed-file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    border: 2px dashed var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.feed-file-drop:hover {
    border-color: var(--cyan);
    background: rgba(30, 200, 232, 0.04);
}

.feed-file-drop__icon {
    font-size: 28px;
}

.feed-file-drop__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.feed-file-drop__hint {
    font-size: 11px;
    color: var(--slate);
}

.feed-file-preview {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.feed-file-preview img,
.feed-file-preview video {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.feed-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.feed-input:focus {
    border-color: var(--cyan);
}

.feed-create-form__error {
    font-size: 13px;
    color: #DC2626;
    padding: 8px 0;
}

.feed-create-form__submit {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.feed-create-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
}

.feed-create-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 640px) {
    .feed-modal {
        align-items: center;
        padding: 24px;
    }

    .feed-modal__sheet {
        border-radius: 20px;
        max-height: 85vh;
    }

    .feed-modal__handle {
        display: none;
    }
}

@media (max-width: 480px) {
    .feed-fab {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

/* YouTube embed & link preview (feed) */
.feed-youtube {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.feed-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.feed-youtube__title {
    display: block;
    padding: 10px 16px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.feed-youtube__title:hover {
    color: var(--pink);
}

.feed-link-preview {
    display: block;
    margin: 12px 16px 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #F8F7FC;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-link-preview:hover {
    border-color: rgba(236, 30, 107, 0.35);
    box-shadow: 0 4px 16px -8px rgba(15, 27, 61, 0.15);
}

.feed-link-preview--static {
    pointer-events: none;
    margin: 12px 0 0;
}

.feed-link-preview__image {
    background: #ECEAF3;
    max-height: 200px;
    overflow: hidden;
}

.feed-link-preview__image img {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.feed-link-preview__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    text-align: left;
}

.feed-link-preview__site {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate);
}

.feed-link-preview__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-link-preview__desc {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-link-preview-box {
    margin-top: 10px;
}

.feed-link-preview-box .feed-youtube {
    border-radius: 12px;
    overflow: hidden;
}

.cell-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-static {
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}
