#admin-view-site-link > a.admin-view-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: linear-gradient(135deg, #3b8beb, #2563c7);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(37, 99, 199, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: admin-view-site-glow 2.2s ease-in-out infinite;
}

#admin-view-site-link > a.admin-view-site-btn:hover {
    color: #fff !important;
    transform: translateY(-1px) scale(1.06);
    background: linear-gradient(135deg, #4a9af5, #2d6fd9);
    box-shadow: 0 3px 10px rgba(37, 99, 199, 0.5);
}

#admin-view-site-link > a.admin-view-site-btn i {
    font-size: 0.6rem;
    animation: admin-view-site-icon-nudge 1.8s ease-in-out infinite;
}

@keyframes admin-view-site-glow {
    0%,
    100% {
        box-shadow: 0 1px 3px rgba(37, 99, 199, 0.35);
    }

    50% {
        box-shadow: 0 2px 10px rgba(37, 99, 199, 0.55);
    }
}

@keyframes admin-view-site-icon-nudge {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(1px, -1px);
    }
}

#admin-cache-clear-link > a.admin-cache-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    line-height: 1.1;
    font-weight: 600;
    color: #495057 !important;
    background: #f4f6f9;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#admin-cache-clear-link > a.admin-cache-clear-btn:hover {
    color: #0d6efd !important;
    background: #fff;
    border-color: #b6d4fe;
    transform: translateY(-1px);
}

#admin-cache-clear-link > a.admin-cache-clear-btn i {
    font-size: 0.72rem;
}

.admin-swal-popup {
    border-radius: 0.75rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.admin-swal-toast {
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.admin-swal-btn {
    border-radius: 0.35rem !important;
    font-weight: 600;
    padding: 0.45rem 1.25rem !important;
}

.swal2-container {
    z-index: 10000 !important;
}

.media-picker-card {
    position: sticky;
    top: 1rem;
}

.media-grid-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.media-upload-zone {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.media-upload-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.media-upload-zone__content {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.media-grid-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.25rem;
}

.media-grid-item img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

.media-grid-item:hover img {
    opacity: 0.85;
}

.media-delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.media-grid-item:hover .media-delete-btn {
    opacity: 1;
}

.media-copy-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    padding: 0;
    line-height: 1;
    font-size: 11px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.media-grid-item:hover .media-copy-btn {
    opacity: 1;
}

[data-media-picker-standalone] .media-copy-btn {
    opacity: 0.92;
}

.media-featured-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    padding: 0;
    line-height: 1;
    font-size: 11px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.media-grid-item:hover .media-featured-btn {
    opacity: 1;
}

.post-editor-sidebar {
    min-width: 0;
}

.post-editor-sidebar .media-picker-card {
    position: sticky;
    top: 1rem;
}

.featured-image-field {
    overflow: hidden;
    max-width: 100%;
}

.featured-image-field .card-body {
    overflow: hidden;
    min-width: 0;
}

.featured-image-field .card-header {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.featured-image-field .card-title {
    font-size: 1rem;
    line-height: 1.3;
    min-width: 0;
}

.featured-image-preview-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px dashed #dee2e6;
    border-radius: 0.35rem;
    background: #f8f9fa;
    min-height: 160px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.featured-image-preview-wrap.is-empty {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-preview-wrap.border-primary {
    border-color: #007bff;
    background: #eef5ff;
}

.featured-image-preview-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto;
}

.featured-image-placeholder {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 1.5rem 0.75rem;
}

.featured-image-field [data-featured-path-hint] {
    overflow: hidden;
}

.featured-image-field [data-featured-path-hint] code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.featured-image-field .card-header .btn-xs {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Trumbowyg — admin content editor */
.trumbowyg-box {
    margin-top: 0.25rem;
}

.trumbowyg-box,
.trumbowyg-editor {
    border-radius: 0.25rem;
}

.trumbowyg-button-pane {
    background: #f8f9fa;
    border-bottom-color: #dee2e6;
}

.trumbowyg-editor {
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.trumbowyg-editor img {
    max-width: 100%;
    height: auto;
}

/* Admin sidebar brand — ToTo BD logo */
.brand-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem !important;
    overflow: hidden;
}

.brand-link .pk-admin-brand-logo,
.brand-link .brand-image.pk-admin-brand-logo {
    float: none !important;
    max-height: 40px;
    width: auto;
    margin: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

.brand-link .brand-text {
    font-size: 0.82rem;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-mini.sidebar-collapse .brand-link .brand-text {
    display: none;
}

.sidebar-mini.sidebar-collapse .brand-link .pk-admin-brand-logo {
    max-height: 32px;
}

.login-logo img.pk-admin-auth-logo,
.register-logo img.pk-admin-auth-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
}

/* —— Login page —— */
body.pk-login-page-body.login-page {
    font-family: 'Plus Jakarta Sans', 'Source Sans Pro', sans-serif;
    display: block;
    min-height: 100vh;
    height: auto;
    padding: 0;
    overflow-x: hidden;
    background: #0b1f17;
    align-items: stretch;
    justify-content: flex-start;
}

.pk-login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.pk-login-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, #0b1f17 0%, #1b4332 38%, #2d6a4f 72%, #40916c 100%);
    overflow: hidden;
}

.pk-login-page__bg[style*="--pk-login-bg-image"] {
    background-image:
        linear-gradient(145deg, rgba(11, 31, 23, 0.72) 0%, rgba(27, 67, 50, 0.78) 45%, rgba(45, 106, 79, 0.82) 100%),
        var(--pk-login-bg-image);
    background-size: cover;
    background-position: center;
}

.pk-login-page__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    animation: pk-login-float 12s ease-in-out infinite;
}

.pk-login-page__orb--1 {
    width: 420px;
    height: 420px;
    top: -12%;
    right: -8%;
    background: #95d5b2;
}

.pk-login-page__orb--2 {
    width: 320px;
    height: 320px;
    bottom: -10%;
    left: -6%;
    background: #52b788;
    animation-delay: -4s;
}

.pk-login-page__orb--3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 35%;
    background: #d8f3dc;
    opacity: 0.25;
    animation-delay: -7s;
}

.pk-login-page__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.pk-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    width: 100%;
    max-width: 960px;
    min-height: min(560px, calc(100vh - 2.5rem));
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    animation: pk-login-shell-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pk-login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 2.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pk-login-brand__home {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pk-login-brand__home:hover {
    color: #fff;
    transform: translateX(-3px);
}

.pk-login-brand__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
}

.pk-login-brand__logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.pk-login-brand__logo-link img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.pk-login-brand__title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.pk-login-brand__tagline {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 280px;
}

.pk-login-brand__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pk-login-brand__features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
}

.pk-login-brand__features i {
    color: #95d5b2;
    font-size: 0.95rem;
}

.pk-login-brand__footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.pk-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 2.25rem;
    background: rgba(255, 255, 255, 0.97);
}

.pk-login-card {
    width: 100%;
    max-width: 360px;
}

.pk-login-card__header {
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
}

.pk-login-card__heading {
    text-align: left;
}

.pk-login-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d6a4f;
    background: rgba(45, 106, 79, 0.1);
}

.pk-login-card__title {
    margin: 0 0 0.25rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1b4332;
}

.pk-login-card__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.pk-login-card__body {
    padding: 0;
}

.pk-login-card__footer {
    margin-top: 1rem;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
}

.pk-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.pk-login-field__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.pk-login-field__wrap {
    position: relative;
}

.pk-login-field__icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.pk-login-input--has-toggle {
    padding-right: 2.85rem;
}

.pk-login-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    color: #6c757d;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.pk-login-password-toggle:hover {
    color: #2d6a4f;
    background: rgba(45, 106, 79, 0.08);
}

.pk-login-password-toggle:focus {
    outline: none;
    color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.2);
}

.pk-login-field__wrap--password:focus-within .pk-login-password-toggle {
    color: #40916c;
}

.pk-login-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.65rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #212529;
    background: #f4f6f5;
    border: 1.5px solid transparent;
    border-radius: 0.75rem;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pk-login-input::placeholder {
    color: #adb5bd;
}

.pk-login-input:hover {
    background: #eef2f0;
}

.pk-login-input:focus {
    outline: none;
    background: #fff;
    border-color: #40916c;
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.18);
}

.pk-login-field__wrap:focus-within .pk-login-field__icon {
    color: #2d6a4f;
}

.pk-login-input.is-invalid {
    border-color: #e63946;
    background: #fff5f5;
}

.pk-login-field__error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #c1121f;
}

.pk-login-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.pk-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.pk-login-remember input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pk-login-remember__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid #ced4da;
    border-radius: 0.3rem;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pk-login-remember input:checked + .pk-login-remember__box {
    border-color: #2d6a4f;
    background: #2d6a4f;
}

.pk-login-remember input:checked + .pk-login-remember__box::after {
    content: '';
    width: 0.35rem;
    height: 0.6rem;
    margin-bottom: 0.1rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pk-login-remember__text {
    font-size: 0.85rem;
    color: #495057;
}

.pk-login-forgot {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2d6a4f;
    text-decoration: none;
}

.pk-login-forgot:hover {
    color: #1b4332;
    text-decoration: underline;
}

.pk-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
    background-size: 200% 200%;
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
}

.pk-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(27, 67, 50, 0.45);
    background-position: 100% 50%;
}

.pk-login-submit:active {
    transform: translateY(0);
}

.pk-login-submit__icon {
    display: inline-flex;
    transition: transform 0.25s ease;
}

.pk-login-submit:hover .pk-login-submit__icon {
    transform: translateX(4px);
}

.pk-login-footer-note {
    font-size: 0.85rem;
    color: #6c757d;
}

.pk-login-footer-note a {
    font-weight: 600;
    color: #2d6a4f;
}

@keyframes pk-login-shell-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

@keyframes pk-login-float {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(16px, -12px);
    }
}

@media (max-width: 767.98px) {
    .pk-login-shell {
        grid-template-columns: 1fr;
        max-width: 420px;
        min-height: auto;
    }

    .pk-login-brand {
        padding: 1.5rem 1.5rem 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .pk-login-brand__main {
        padding: 0.5rem 0;
    }

    .pk-login-brand__features {
        display: none;
    }

    .pk-login-brand__footer {
        display: none;
    }

    .pk-login-panel {
        padding: 1.5rem 1.5rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk-login-shell,
    .pk-login-page__orb,
    .pk-login-submit,
    .pk-login-submit__icon {
        animation: none;
        transition: none;
    }
}

/* Admin dashboard — glass shortcut cards */
.pk-admin-dashboard {
    --pk-glass-border: rgba(255, 255, 255, 0.45);
    --pk-glass-bg: rgba(255, 255, 255, 0.55);
    padding-bottom: 1.5rem;
}

.pk-glass-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid var(--pk-glass-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    animation: pk-glass-fade-up 0.65s ease both;
}

.pk-glass-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    pointer-events: none;
    animation: pk-glass-float 8s ease-in-out infinite;
}

.pk-glass-hero__glow--1 {
    width: 180px;
    height: 180px;
    top: -60px;
    right: 10%;
    background: #2d6a4f;
}

.pk-glass-hero__glow--2 {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: 5%;
    background: #40916c;
    animation-delay: -3s;
}

.pk-glass-hero__content {
    position: relative;
    z-index: 1;
}

.pk-glass-hero__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2d6a4f;
}

.pk-glass-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1b4332;
}

.pk-glass-hero__meta {
    font-size: 0.9rem;
    color: #495057;
}

.pk-glass-hero__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pk-glass-hero__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(45, 106, 79, 0.45);
}

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

.pk-glass-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 148px;
    padding: 1.15rem 1.1rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--pk-glass-border);
    background: var(--pk-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    color: #212529;
    text-decoration: none !important;
    overflow: hidden;
    animation: pk-glass-fade-up 0.55s ease both;
    animation-delay: var(--pk-delay, 0ms);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pk-glass-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    color: #212529;
}

.pk-glass-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 30%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.pk-glass-card:hover .pk-glass-card__shine {
    transform: translateX(120%);
}

.pk-glass-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0.65rem;
    font-size: 1.1rem;
    color: #fff;
    background: var(--pk-accent, #2d6a4f);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pk-glass-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1b4332;
}

.pk-glass-card__desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6c757d;
}

.pk-glass-card__stat {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    min-width: 1.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--pk-accent, #2d6a4f);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.pk-glass-card__arrow {
    margin-top: auto;
    padding-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--pk-accent, #2d6a4f);
    opacity: 0.5;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.pk-glass-card:hover .pk-glass-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

.pk-glass-card--cyan { --pk-accent: #0891b2; }
.pk-glass-card--indigo { --pk-accent: #4f46e5; }
.pk-glass-card--violet { --pk-accent: #7c3aed; }
.pk-glass-card--blue { --pk-accent: #2563eb; }
.pk-glass-card--teal { --pk-accent: #0d9488; }
.pk-glass-card--rose { --pk-accent: #e11d48; }
.pk-glass-card--amber { --pk-accent: #d97706; }
.pk-glass-card--emerald { --pk-accent: #059669; }
.pk-glass-card--slate { --pk-accent: #475569; }
.pk-glass-card--green { --pk-accent: #2d6a4f; }
.pk-glass-card--orange { --pk-accent: #ea580c; }
.pk-glass-card--sky { --pk-accent: #0284c7; }
.pk-glass-card--purple { --pk-accent: #9333ea; }
.pk-glass-card--fuchsia { --pk-accent: #c026d3; }

@keyframes pk-glass-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@keyframes pk-glass-float {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(12px, -8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk-glass-hero,
    .pk-glass-card,
    .pk-glass-hero__glow {
        animation: none;
    }

    .pk-glass-card,
    .pk-glass-card__shine,
    .pk-glass-hero__cta {
        transition: none;
    }
}

/* —— Member home (/home) —— */
body.pk-user-home-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Source Sans Pro', sans-serif;
    background: #0b1f17;
}

.pk-user-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pk-user-home__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, #0b1f17 0%, #1b4332 40%, #2d6a4f 100%);
    overflow: hidden;
}

.pk-user-home__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: pk-login-float 12s ease-in-out infinite;
}

.pk-user-home__orb--1 {
    width: 360px;
    height: 360px;
    top: -10%;
    right: -5%;
    background: #95d5b2;
}

.pk-user-home__orb--2 {
    width: 280px;
    height: 280px;
    bottom: -8%;
    left: -4%;
    background: #52b788;
    animation-delay: -5s;
}

.pk-user-home__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.pk-user-home__header,
.pk-user-home__main,
.pk-user-home__footer {
    position: relative;
    z-index: 1;
}

.pk-user-home__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pk-user-home__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.pk-user-home__logo {
    max-height: 40px;
    width: auto;
}

.pk-user-home__brand-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pk-user-home__header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.pk-user-home__user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.pk-user-home__logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pk-user-home__logout:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.pk-user-home__main {
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.5rem;
}

.pk-user-home__footer {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pk-user-home__alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    color: #1b4332;
    background: rgba(214, 245, 228, 0.95);
    border: 1px solid rgba(64, 145, 108, 0.35);
    animation: pk-glass-fade-up 0.5s ease both;
}

.pk-user-home__alert i {
    color: #2d6a4f;
    margin-top: 0.1rem;
}

.pk-user-home__hero {
    margin-bottom: 2rem;
    animation: pk-glass-fade-up 0.55s ease both;
}

.pk-user-home__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #95d5b2;
}

.pk-user-home__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.pk-user-home__lead {
    margin: 0;
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.pk-user-home__lead strong {
    color: #d8f3dc;
}

.pk-user-home__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.pk-user-home__card {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: pk-glass-fade-up 0.55s ease both;
}

.pk-user-home__card:nth-child(1) { animation-delay: 0.05s; }
.pk-user-home__card:nth-child(2) { animation-delay: 0.1s; }
.pk-user-home__card:nth-child(3) { animation-delay: 0.15s; }
.pk-user-home__card:nth-child(4) { animation-delay: 0.2s; }

a.pk-user-home__card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.pk-user-home__card--static {
    cursor: default;
}

.pk-user-home__card--wide {
    grid-column: 1 / -1;
}

.pk-user-home__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 0.65rem;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
}

.pk-user-home__card-icon--teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.pk-user-home__card-icon--slate { background: linear-gradient(135deg, #475569, #64748b); }
.pk-user-home__card-icon--amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.pk-user-home__card-icon--green { background: linear-gradient(135deg, #1b4332, #40916c); }

.pk-user-home__card-title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.pk-user-home__card-desc {
    display: block;
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
}

.pk-user-home__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #95d5b2;
}

@media (max-width: 575.98px) {
    .pk-user-home__header {
        padding: 1rem;
    }

    .pk-user-home__main {
        padding: 1.5rem 1rem 2rem;
    }

    .pk-user-home__brand-text {
        display: none;
    }
}

/* Site settings — backup tiles */
.pk-backup-tile {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pk-backup-tile:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.pk-backup-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.65rem;
    font-size: 1.15rem;
    color: #fff;
}

.pk-backup-tile__icon--db {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.pk-backup-tile__icon--full {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.pk-backup-tile__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.pk-backup-tile__text {
    flex: 1;
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

.pk-backup-tile__list {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.pk-backup-tile__list li {
    margin-bottom: 0.25rem;
}
