@font-face {
    font-family: 'SVN Merge';
    src: url('../fonts/SVN-Merge-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'SVN Merge';
    src: url('../fonts/SVN-Merge-Bold.ttf') format('truetype');
    font-weight: 700 900;
    font-style: normal;
    font-display: block;
}

:root {
    --font-ui: 'SVN Merge', Arial, Helvetica, sans-serif;
    --font-card: 'SVN Merge', Arial, Helvetica, sans-serif;

    --petkio-teal: #2db8ad;
    --petkio-teal-dark: #159b92;
    --petkio-teal-soft: #e9f8f6;

    --petkio-coral: #fb6548;
    --petkio-coral-dark: #e64f35;
    --petkio-coral-soft: #fff1ec;

    --petkio-navy: #12345a;
    --petkio-navy-soft: #eef5fb;

    --petkio-bg: #f5fbfa;
    --petkio-card-bg: #ffffff;
    --petkio-border: #d9f0ee;

    --petkio-shadow: 0 10px 28px rgba(18, 52, 90, 0.08);
    --petkio-shadow-strong: 0 18px 46px rgba(18, 52, 90, 0.14);

    --petkio-radius: 22px;
}

:root {
    --pk-teal: #2db8ad;
    --pk-teal-dark: #159b92;
    --pk-teal-light: #e9f8f6;
    --pk-teal-border: #bfe8e4;
    --pk-coral: #fb6548;
    --pk-coral-dark: #e84f35;
    --pk-coral-light: #fff1ec;
    --pk-navy: #153a67;
    --pk-navy-dark: #102b4d;
    --pk-navy-soft: #eef5fb;
    --pk-bg: #f5fbfa;
    --pk-card: #ffffff;
    --pk-border: #d9f0ee;
    --pk-text: #153a67;
    --pk-muted: #657a91;
    --pk-danger: #dc2626;
    --pk-warning: #f59e0b;
    --pk-success: #159b92;
    --pk-radius-sm: 10px;
    --pk-radius: 16px;
    --pk-radius-lg: 22px;
    --pk-radius-xl: 28px;
    --pk-shadow: 0 8px 24px rgba(21, 58, 103, 0.08);
    --pk-shadow-lg: 0 18px 48px rgba(21, 58, 103, 0.14);
    --pk-focus: 0 0 0 4px rgba(45, 184, 173, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at 0% 0%, rgba(45, 184, 173, 0.14), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(251, 101, 72, 0.10), transparent 30%),
        var(--pk-bg);
    color: var(--pk-text);
}
body,
input,
select,
textarea,
button,
.btn,
.site-header,
.site-nav,
.site-nav a,
.page-title,
.form-section,
.auth-box,
.dashboard,
.profile-page,
.pets-page,
.public-pet-page,
.public-user-page,
.feed-page,
.admin-page,
.site-footer {
    font-family: var(--font-ui) !important;
}
img {
    max-width: 100%;
}

a {
    color: var(--pk-teal-dark);
    text-decoration: none;
}

a:hover {
    color: var(--pk-coral);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.muted {
    color: var(--pk-muted);
}

/* =========================================================
   HEADER / FOOTER
   ========================================================= */

.site-header {
    background: linear-gradient(135deg, var(--pk-teal) 0%, var(--pk-teal-dark) 58%, var(--pk-navy) 100%);
    color: #fff;
    padding: 22px 0;
    box-shadow: 0 12px 30px rgba(21, 58, 103, 0.18);
}

.site-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
}

.site-header p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.site-header a {
    color: #fff;
    text-decoration: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand,
.header-logo,
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-brand img,
.header-logo img,
.site-logo img {
    display: block;
    width: auto;
    max-height: 58px;
}

.site-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-ui) !important;
    letter-spacing: 0;
}

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

.site-footer {
    margin-top: 40px;
    background: var(--pk-navy);
    color: #fff;
    text-align: center;
    padding: 18px 0;
}

/* =========================================================
   CARDS / BUTTONS / FORMS
   ========================================================= */

.hero,
.auth-box,
.welcome-box,
.dashboard-card,
.page-title,
.form-section,
.empty-box,
.pet-card,
.public-section,
.qr-pet-card,
.qr-box,
.card-toolbar,
.card-guide,
.feed-create-box,
.feed-post-card,
.feed-side-card,
.admin-stat-card,
.admin-quick-card,
.admin-dashboard-panel,
.public-user-card,
.home-pet-card,
.home-lost-card,
.social-stat-card,
.public-message-box,
.card-render-loading,
.crop-modal-box,
.modal-box {
    background: var(--pk-card);
    border: 1px solid var(--pk-border);
    box-shadow: var(--pk-shadow);
}
.btn,
button {
    font-family: var(--font-ui) !important;
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui) !important;
    font-weight: 800;
}
.hero {
    padding: 35px;
    margin-top: 25px;
    border-radius: var(--pk-radius-lg);
}

.hero h2 {
    font-size: 30px;
    margin-top: 0;
    color: var(--pk-navy);
}

.status-box {
    margin: 20px 0;
    padding: 15px;
    background: var(--pk-teal-light);
    border-left: 5px solid var(--pk-teal);
    border-radius: var(--pk-radius-sm);
    color: var(--pk-navy);
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.btn {
    padding: 12px 18px;
}

.btn-small {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pk-coral), var(--pk-coral-dark));
    color: #fff;
    box-shadow: 0 8px 18px rgba(251, 101, 72, 0.22);
}

.btn-primary:hover {
    color: #fff;
    filter: brightness(0.98);
}

.btn-secondary {
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
    border: 1px solid var(--pk-teal-border);
}

.btn-secondary:hover {
    color: var(--pk-teal-dark);
    background: #dff4f1;
}

.btn-danger {
    background: var(--pk-danger);
    color: #fff;
    border: none;
}

.btn-warning {
    background: var(--pk-warning);
    color: #fff;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.feature-card {
    background: #fff;
    padding: 22px;
    border-radius: var(--pk-radius);
    border: 1px solid var(--pk-border);
    box-shadow: var(--pk-shadow);
}

.auth-box {
    max-width: 520px;
    margin: 30px auto;
    padding: 30px;
    border-radius: var(--pk-radius-lg);
}

.auth-note {
    margin-top: 18px;
}

.auth-note a {
    color: var(--pk-coral-dark);
    font-weight: 900;
}

.form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 900;
    margin-bottom: 7px;
    color: var(--pk-navy);
}

.form-group input,
.form-group select,
.form-group textarea,
.admin-table input.form-control,
.admin-table select.form-control {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-sm);
    font-size: 15px;
    color: var(--pk-navy);
    background: #fff;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.admin-table input.form-control:focus,
.admin-table select.form-control:focus {
    outline: none;
    border-color: var(--pk-teal);
    box-shadow: var(--pk-focus);
}

.form-group small {
    display: block;
    color: var(--pk-muted);
    margin-top: 6px;
}

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

.required {
    color: var(--pk-coral-dark);
}

.checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fdfc;
    border: 1px solid var(--pk-border);
    padding: 13px;
    border-radius: var(--pk-radius-sm);
    cursor: pointer;
}

.checkbox-list input {
    width: auto;
}

.checkbox-group label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 900;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.privacy-preview {
    background: var(--pk-teal-light);
    border: 1px solid var(--pk-border);
    padding: 18px;
    border-radius: var(--pk-radius);
    margin-top: 18px;
}

.privacy-preview h4 {
    margin-top: 0;
}

.privacy-preview ul {
    margin-bottom: 0;
}

.alert {
    padding: 13px 15px;
    border-radius: var(--pk-radius-sm);
    margin: 18px 0;
}

.alert-error {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffc9c1;
}

.alert-success {
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
    border: 1px solid #bde7e2;
}

/* =========================================================
   DASHBOARD / PROFILE
   ========================================================= */

.dashboard,
.profile-page,
.pets-page,
.pet-form-page,
.public-pet-page,
.qr-page,
.card-page,
.public-user-page,
.social-home-page,
.feed-page,
.admin-dashboard-page {
    margin-top: 25px;
}

.welcome-box {
    padding: 25px;
    border-radius: var(--pk-radius-lg);
    margin-bottom: 22px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card {
    padding: 24px;
    border-radius: var(--pk-radius-lg);
}

.big-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--pk-coral);
    margin: 10px 0;
}

.page-title {
    padding: 26px;
    border-radius: var(--pk-radius-lg);
    margin-bottom: 20px;
    background:
        radial-gradient(circle at 90% 0%, rgba(251, 101, 72, 0.10), transparent 34%),
        linear-gradient(135deg, rgba(45, 184, 173, 0.12), #fff 54%);
}

.page-title h2 {
    margin-top: 0;
    color: var(--pk-navy);
}

.page-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.profile-form {
    background: transparent;
}

.form-section {
    padding: 26px;
    border-radius: var(--pk-radius-lg);
    margin-bottom: 20px;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--pk-navy);
}

.profile-avatar-cover-preview {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}

.profile-avatar-preview,
.profile-avatar-placeholder,
.public-user-avatar,
.public-user-avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pk-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 900;
    color: var(--pk-teal-dark);
    margin: 12px 0;
    border: 4px solid #fff;
    box-shadow: var(--pk-shadow);
}

.profile-cover-preview,
.profile-cover-placeholder {
    width: 100%;
    height: 180px;
    border-radius: var(--pk-radius-lg);
    object-fit: cover;
    background: linear-gradient(135deg, var(--pk-teal-light), var(--pk-coral-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-navy);
    font-weight: 900;
    margin: 12px 0;
    border: 1px solid var(--pk-border);
}

/* =========================================================
   PETS / PUBLIC PET
   ========================================================= */

.empty-box {
    padding: 35px;
    border-radius: var(--pk-radius-lg);
    text-align: center;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pet-card {
    border-radius: var(--pk-radius-lg);
    overflow: hidden;
}

.pet-avatar,
.pet-avatar-placeholder.large,
.public-pet-avatar,
.qr-pet-avatar,
.home-pet-avatar,
.home-pet-image,
.public-user-pet-avatar,
.feed-user-avatar,
.feed-comment-avatar,
.card-avatar {
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
}

.pet-avatar {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-avatar img,
.public-pet-avatar img,
.qr-pet-avatar img,
.home-pet-image img,
.home-pet-avatar img,
.public-user-pet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-avatar-placeholder {
    font-size: 70px;
}

.pet-avatar-placeholder.large {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pk-radius-lg);
}

.pet-info {
    padding: 20px;
}

.pet-info h3 {
    margin-top: 0;
    font-size: 24px;
    color: var(--pk-navy);
}

.pet-info p {
    margin: 8px 0;
}

.pet-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pet-actions form {
    margin: 0;
}

.current-avatar {
    margin-bottom: 20px;
}

.current-avatar img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--pk-radius-lg);
    box-shadow: var(--pk-shadow);
}

.public-pet-card {
    max-width: 900px;
    margin: 0 auto;
}

.public-pet-hero {
    background: #fff;
    padding: 28px;
    border-radius: var(--pk-radius-lg);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 26px;
    align-items: center;
    border: 1px solid var(--pk-border);
    box-shadow: var(--pk-shadow);
}

.public-pet-avatar {
    width: 240px;
    height: 240px;
    border-radius: var(--pk-radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-pet-main h2 {
    font-size: 38px;
    margin: 12px 0 8px;
    color: var(--pk-navy);
}

.pet-code {
    font-size: 18px;
    color: var(--pk-muted);
}

.pet-status-badge {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
}

.status-active,
.pet-status-badge.status-active {
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
}

.status-lost,
.pet-status-badge.status-lost {
    background: #fff1f1;
    color: #b42318;
}

.public-section {
    padding: 24px;
    border-radius: var(--pk-radius-lg);
    margin-top: 18px;
}

.public-section h3 {
    margin-top: 0;
    color: var(--pk-navy);
}

.public-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.public-info-grid div {
    background: #f8fdfc;
    border: 1px solid var(--pk-border);
    padding: 15px;
    border-radius: var(--pk-radius);
}

.public-info-grid span {
    display: block;
    color: var(--pk-muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.public-info-grid strong {
    font-size: 17px;
    color: var(--pk-navy);
}

.highlight-section {
    border-left: 6px solid var(--pk-coral);
}

.owner-section {
    border: 1px solid var(--pk-border);
}

.owner-box {
    background: var(--pk-teal-light);
    padding: 18px;
    border-radius: var(--pk-radius);
}

.owner-box p {
    margin: 10px 0;
}

.owner-box span {
    display: inline-block;
    min-width: 120px;
    color: var(--pk-muted);
}

.public-actions,
.qr-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.scan-section {
    text-align: center;
}

.public-message-box {
    max-width: 650px;
    margin: 40px auto;
    padding: 34px;
    border-radius: var(--pk-radius-lg);
    text-align: center;
}

/* =========================================================
   QR / PET ID CARD
   ========================================================= */

.qr-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
}

.qr-pet-card,
.qr-box {
    padding: 26px;
    border-radius: var(--pk-radius-lg);
}

.qr-pet-avatar {
    width: 180px;
    height: 180px;
    border-radius: var(--pk-radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    background: #f8fdfc;
}

.qr-image-wrap img {
    width: 100%;
    display: block;
}

.qr-actions {
    justify-content: center;
    margin-top: 22px;
}

.qr-actions form {
    margin: 0;
}

.qr-empty {
    text-align: center;
    padding: 60px 20px;
}

.card-toolbar {
    padding: 20px;
    border-radius: var(--pk-radius-lg);
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.pet-card-print-area,
.pet-template-print-area {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.pet-id-card {
    width: 86mm;
    height: 54mm;
    background: linear-gradient(135deg, #f0fbfa 0%, #ffffff 48%, #fff1ec 100%);
    border: 1px solid var(--pk-border);
    border-radius: 5mm;
    box-shadow: 0 12px 30px rgba(21, 58, 103, 0.14);
    padding: 4mm;
    display: grid;
    grid-template-columns: 1fr 28mm;
    gap: 4mm;
    overflow: hidden;
    color: var(--pk-navy);
}

.card-left {
    min-width: 0;
}

.card-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7pt;
    color: var(--pk-teal-dark);
    margin-bottom: 3mm;
}

.card-brand strong {
    background: var(--pk-teal);
    color: #fff;
    padding: 1.5mm 2.2mm;
    border-radius: 999px;
    font-size: 6.5pt;
}

.card-pet-row {
    display: grid;
    grid-template-columns: 17mm 1fr;
    gap: 3mm;
    align-items: center;
}

.card-avatar {
    width: 17mm;
    height: 17mm;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5mm solid #fff;
    box-shadow: 0 3px 8px rgba(21, 58, 103, 0.12);
}

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

.card-avatar-placeholder {
    font-size: 16pt;
}

.card-pet-main h3 {
    margin: 0 0 1mm;
    font-size: 15pt;
    line-height: 1.1;
    color: var(--pk-navy);
}

.card-pet-main p {
    margin: 0.5mm 0;
    font-size: 7.2pt;
    color: var(--pk-muted);
}

.card-id-box {
    background: #fff;
    border: 1px dashed var(--pk-coral);
    border-radius: 3mm;
    padding: 2mm 2.5mm;
    margin-top: 3mm;
}

.card-id-box span {
    display: block;
    font-size: 6.2pt;
    color: var(--pk-muted);
    margin-bottom: 0.8mm;
}

.card-id-box strong {
    display: block;
    font-size: 10.5pt;
    letter-spacing: 0.3px;
    color: var(--pk-navy);
}

.card-contact {
    margin-top: 2.5mm;
}

.card-contact p {
    margin: 0.8mm 0;
    font-size: 6.8pt;
    line-height: 1.2;
    color: var(--pk-muted);
}

.card-contact strong {
    color: var(--pk-navy);
}

.card-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-qr {
    width: 25mm;
    height: 25mm;
    background: #fff;
    padding: 1.8mm;
    border-radius: 3mm;
    box-shadow: 0 4px 12px rgba(21, 58, 103, 0.12);
}

.card-qr img {
    width: 100%;
    height: 100%;
    display: block;
}

.card-qr-note {
    font-size: 6pt;
    line-height: 1.2;
    text-align: center;
    margin: 2mm 0 1mm;
    color: var(--pk-muted);
}

.card-short-url {
    font-size: 5.5pt;
    color: #8999aa;
    margin: 0;
    text-align: center;
}

.card-guide {
    max-width: 760px;
    margin: 20px auto;
    padding: 22px;
    border-radius: var(--pk-radius-lg);
}

/* =========================================================
   PETKIO CARD TEMPLATE OVERLAY - GIỮ NGUYÊN TỌA ĐỘ
   ========================================================= */

.pet-template-card {
    position: relative;
    width: min(100%, 1200px);
    aspect-ratio: 90 / 54;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--pk-shadow-lg);
    font-family: 'SVN Merge', Arial, sans-serif;
    border: 1px solid var(--pk-border);
}

.pet-template-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    color: var(--pk-navy);
    z-index: 2;
}

.field-id-code {
    left: 25.5%;
    top: 28.4%;
    width: 32%;
    font-size: 38px;
    font-weight: 800;
    font-family: 'SVN Merge', Arial, sans-serif;
    color: #f56d4a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-name,
.field-gender,
.field-species,
.field-birth,
.field-breed,
.field-color,
.field-owner,
.field-phone {
    font-size: 18px;
    font-weight: 700;
    font-family: 'SVN Merge', Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-name { left: 14.3%; top: 39.2%; width: 26%; }
.field-gender { left: 49.8%; top: 39.2%; width: 16%; }
.field-species { left: 14.3%; top: 46.5%; width: 20%; }
.field-birth { left: 49.8%; top: 46.5%; width: 22%; }
.field-breed { left: 14.3%; top: 54.5%; width: 45%; }
.field-color { left: 49.8%; top: 54.5%; width: 16.0%; height: 4.8%; }

.field-identification {
    left: 23.7%;
    top: 62.8%;
    width: 39%;
    font-size: 17px;
    font-weight: 700;
    font-family: 'SVN Merge', Arial, sans-serif;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.field-owner { left: 16%; top: 70.5%; width: 22%; }
.field-phone { left: 45.1%; top: 70.5%; width: 17%; text-align: left; }

.field-address {
    left: 14.8%;
    top: 78%;
    width: 42%;
    font-size: 17px;
    font-weight: 700;
    font-family: 'SVN Merge', Arial, sans-serif;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pet-photo-box {
    left: 64.1%;
    top: 29.3%;
    width: 30%;
    height: 36.8%;
    border-radius: 34px;
    overflow: hidden;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-navy);
    font-size: clamp(18px, 2vw, 36px);
    font-weight: 700;
}

.pet-qr-box {
    left: 63.5%;
    top: 73%;
    width: 13%;
    height: 22.0%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.capture-card-stage {
    position: fixed;
    left: -99999px;
    top: 0;
    width: 1100px;
    height: auto;
    overflow: visible;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
}

.capture-card-stage .pet-template-print-area {
    display: flex !important;
    justify-content: center !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    width: 1060px !important;
}

.capture-card-stage .pet-template-card {
    position: relative !important;
    width: min(100%, 1200px) !important;
    aspect-ratio: 90 / 54 !important;
    background: #fff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

.rendered-card-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    overflow-x: auto;
}

.rendered-card-image {
    width: min(100%, 1060px);
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: var(--pk-shadow-lg);
    background: #fff;
    border: 1px solid var(--pk-border);
}

.card-render-loading {
    padding: 24px;
    border-radius: var(--pk-radius-lg);
    color: var(--pk-muted);
}

/* =========================================================
   CROP / LOST / GENERIC MODAL / REPORTS / CARE
   ========================================================= */

.crop-modal,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(21, 58, 103, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.crop-modal-box,
.modal-box {
    width: min(100%, 760px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--pk-radius-lg);
    padding: 24px;
    box-shadow: var(--pk-shadow-lg);
}

.modal-box {
    width: min(100%, 620px);
}

.modal-box h3 {
    margin-top: 0;
    color: var(--pk-navy);
}

.modal-box textarea[readonly],
.modal-box input[readonly] {
    background: #f8fafc;
    cursor: text;
}

.crop-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f7f7;
    overflow: hidden;
    border-radius: var(--pk-radius);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.crop-frame:active {
    cursor: grabbing;
}

.crop-frame img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    transform-origin: top left;
    user-select: none;
    pointer-events: none;
}

.crop-zoom-row {
    margin-top: 16px;
}

.crop-zoom-row label {
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
}

.crop-zoom-row input {
    width: 100%;
}

.crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.avatar-crop-preview {
    margin-top: 12px;
}

.avatar-crop-preview img {
    width: 240px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--pk-radius);
    border: 1px solid var(--pk-border);
}

.lost-pet-section {
    border: 2px solid #fee2e2;
    background: #fff7f7;
}

.lost-alert {
    background: #fff1f2;
    border: 2px solid #ef4444;
    color: #7f1d1d;
    border-radius: var(--pk-radius);
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.18);
}

.lost-alert-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--pk-danger);
    margin-bottom: 10px;
}

.lost-alert-note {
    margin-top: 12px;
    font-weight: 900;
}

.sighting-report-list,
.care-schedule-list {
    display: grid;
    gap: 16px;
}

.sighting-report-card,
.care-schedule-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--pk-radius);
    padding: 18px;
    background: #fff;
}

.sighting-report-card.status-new,
.care-schedule-card.status-pending {
    border-color: #fde68a;
    background: #fffbeb;
}

.sighting-report-card.status-seen {
    border-color: #93c5fd;
    background: #eff6ff;
}

.sighting-report-card.status-resolved,
.care-schedule-card.status-completed {
    border-color: #86efac;
    background: #f0fdf4;
}

.care-schedule-card.status-cancelled {
    border-color: #cbd5e1;
    background: #f8fafc;
    opacity: 0.75;
}

.sighting-report-head,
.care-schedule-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.report-status-badge,
.care-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--pk-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    line-height: 1;
}

.sighting-report-body p,
.care-schedule-body p {
    margin: 8px 0;
}

.sighting-report-body span,
.care-schedule-body span {
    color: var(--pk-muted);
}

/* =========================================================
   ADMIN
   ========================================================= */

.admin-page {
    font-family: Arial, sans-serif;
}

.admin-page .form-section {
    overflow: hidden;
}

.admin-dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background:
        radial-gradient(circle at top right, rgba(251, 101, 72, 0.14), transparent 28%),
        linear-gradient(135deg, #f0fbfa 0%, #ffffff 60%, #fff1ec 100%);
    border: 1px solid var(--pk-border);
}

.admin-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
    font-size: 13px;
    font-weight: 900;
}

.admin-dashboard-hero h2 {
    margin: 0 0 6px;
    font-size: 30px;
    color: var(--pk-navy);
}

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

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.admin-stat-card {
    display: block;
    text-decoration: none;
    border-radius: var(--pk-radius-lg);
    padding: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pk-shadow-lg);
}

.admin-stat-card span {
    display: block;
    color: var(--pk-muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.admin-stat-card strong {
    display: block;
    font-size: 34px;
    color: var(--pk-navy);
    line-height: 1;
}

.admin-stat-card em {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-style: normal;
}

.admin-stat-card.danger {
    border-color: #fecaca;
    background: #fff1f2;
}

.admin-stat-card.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.admin-quick-card {
    display: block;
    padding: 18px;
    border-radius: var(--pk-radius);
    text-decoration: none;
}

.admin-quick-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--pk-navy);
    font-size: 16px;
}

.admin-quick-card span {
    display: block;
    color: var(--pk-muted);
    font-size: 14px;
}

.admin-quick-card:hover,
.public-user-pet-card:hover,
.home-pet-card:hover {
    border-color: var(--pk-teal);
}

.admin-quick-card.danger {
    background: #fff7f7;
    border-color: #fecaca;
}

.admin-quick-card.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-dashboard-panel {
    margin-bottom: 0;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.admin-section-head h3 {
    margin: 0 0 5px;
}

.admin-section-head p {
    margin: 0;
}

.admin-empty-state {
    padding: 22px;
    border-radius: var(--pk-radius);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.admin-empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: #334155;
}

.admin-empty-state span {
    color: var(--pk-muted);
    font-size: 14px;
}

.admin-mini-list {
    display: grid;
    gap: 12px;
}

.admin-mini-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--pk-radius);
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.admin-mini-item strong {
    display: block;
    color: var(--pk-navy);
    margin-bottom: 4px;
}

.admin-mini-item span {
    display: block;
    color: var(--pk-muted);
    font-size: 13px;
}

.admin-mini-item small {
    display: block;
    color: #475569;
    margin-top: 5px;
    line-height: 1.35;
}

.admin-mini-meta {
    text-align: right;
    display: grid;
    justify-items: end;
    gap: 5px;
}

.admin-mini-meta a {
    color: var(--pk-teal-dark);
    text-decoration: none;
    font-weight: 900;
}

.admin-mini-meta a.btn {
    color: inherit;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.admin-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    word-break: normal;
    overflow-wrap: normal;
}

.admin-table th {
    background: var(--pk-navy-soft);
    color: var(--pk-navy);
    font-weight: 900;
    white-space: nowrap;
}

.admin-table td {
    color: #1f2937;
}

.admin-table strong,
.admin-table a,
.admin-table .muted,
.admin-table span {
    word-break: normal;
    overflow-wrap: normal;
}

.admin-table td:first-child,
.admin-table th:first-child {
    width: 60px;
    white-space: nowrap;
}

.admin-table td:nth-child(7),
.admin-table th:nth-child(7),
.admin-table td:nth-child(8),
.admin-table th:nth-child(8) {
    white-space: nowrap;
}

.admin-table form {
    margin: 0;
}

.admin-table .btn + .btn,
.admin-table form + .btn {
    margin-top: 6px;
}

.admin-table a {
    color: var(--pk-teal-dark);
    text-decoration: none;
    font-weight: 900;
}

.admin-table a:hover {
    text-decoration: underline;
}

.admin-table .muted {
    color: var(--pk-muted);
    font-size: 13px;
}

.admin-status-select {
    width: 100%;
    min-width: 120px;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: var(--pk-radius-sm);
    background: #fff;
    font-size: 14px;
}

.admin-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 160px;
}

.admin-role-badge,
.admin-status-badge,
.admin-report-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    line-height: 1;
}

.admin-role-badge {
    background: #e5e7eb;
    color: #111827;
}

.admin-role-badge.role-admin {
    background: #fee2e2;
    color: #991b1b;
}

.admin-role-badge.role-member {
    background: #dbeafe;
    color: #1e40af;
}

.admin-pet-thumb,
.admin-pet-thumb-placeholder {
    width: 58px;
    height: 58px;
    border-radius: var(--pk-radius);
    object-fit: cover;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-status-badge.status-lost,
.admin-report-status.status-new {
    background: #fee2e2;
    color: #991b1b;
}

.admin-status-badge.status-active,
.admin-report-status.status-resolved {
    background: #dcfce7;
    color: #166534;
}

.admin-report-status.status-seen {
    background: #dbeafe;
    color: #1e40af;
}

.admin-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.admin-role-form {
    min-width: 220px;
}

.admin-role-checkboxes,
.admin-permission-checkboxes {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-permission-checkboxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-role-checkboxes label,
.admin-permission-checkboxes label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: start;
    padding: 9px;
    border: 1px solid #e5e7eb;
    border-radius: var(--pk-radius-sm);
    background: #f8fafc;
    cursor: pointer;
}

.admin-role-checkboxes input,
.admin-permission-checkboxes input {
    margin-top: 2px;
}

.admin-role-checkboxes span,
.admin-permission-checkboxes span {
    color: var(--pk-navy);
    font-weight: 900;
    font-size: 13px;
    line-height: 1.3;
}

.admin-role-checkboxes small,
.admin-permission-checkboxes small {
    grid-column: 2;
    color: var(--pk-muted);
    font-size: 12px;
}

/* =========================================================
   PUBLIC USER / SOCIAL HOME
   ========================================================= */

.public-user-cover {
    height: 260px;
    border-radius: var(--pk-radius-lg);
    background: linear-gradient(135deg, var(--pk-teal-light), var(--pk-coral-light));
    overflow: hidden;
    box-shadow: var(--pk-shadow);
}

.public-user-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-user-card {
    margin: -70px auto 24px;
    position: relative;
    z-index: 2;
    border-radius: var(--pk-radius-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: start;
}

.public-user-avatar,
.public-user-avatar-placeholder {
    width: 150px;
    height: 150px;
    overflow: hidden;
    font-size: 56px;
    margin: 0;
    border: 5px solid #fff;
}

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

.public-user-info h2 {
    margin: 0 0 10px;
    font-size: 32px;
    color: var(--pk-navy);
}

.public-user-bio {
    font-size: 16px;
    line-height: 1.6;
}

.public-user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.public-user-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.public-user-stats span {
    background: var(--pk-teal-light);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    color: var(--pk-teal-dark);
}

.public-follow-form {
    margin-top: 12px;
}

.public-user-pet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.public-user-pet-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--pk-radius);
    background: #fff;
    border: 1px solid var(--pk-border);
    text-decoration: none;
    color: var(--pk-navy);
}

.public-user-pet-avatar {
    width: 76px;
    height: 76px;
    border-radius: var(--pk-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-user-pet-avatar span {
    font-size: 34px;
}

.public-user-pet-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.public-user-pet-card span {
    display: block;
    color: var(--pk-muted);
    font-size: 14px;
}

.public-user-pet-card em {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.social-hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: stretch;
    padding: 36px;
    border-radius: var(--pk-radius-xl);
    background:
        radial-gradient(circle at 88% 20%, rgba(251, 101, 72, 0.20), transparent 24%),
        radial-gradient(circle at 8% 14%, rgba(45, 184, 173, 0.22), transparent 28%),
        linear-gradient(135deg, #f0fbfa 0%, #fff 52%, #fff1ec 100%);
    border: 1px solid var(--pk-border);
    box-shadow: var(--pk-shadow);
    overflow: hidden;
}

.social-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pk-teal-dark);
    margin-bottom: 10px;
}

.social-hero h1 {
    font-size: 44px;
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--pk-navy);
}

.social-hero p {
    font-size: 17px;
    line-height: 1.7;
    color: #51667d;
    margin: 0 0 22px;
}

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

.social-hero-card {
    position: relative;
    min-height: 300px;
    border-radius: 24px;
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(255,255,255,0.8);
}

.social-pet-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--pk-shadow);
    border: 1px solid var(--pk-border);
}

.social-pet-bubble.big { width: 130px; height: 130px; font-size: 68px; top: 35px; left: 34px; }
.social-pet-bubble.medium { width: 96px; height: 96px; font-size: 50px; top: 90px; right: 38px; }
.social-pet-bubble.small { width: 72px; height: 72px; font-size: 36px; bottom: 45px; left: 105px; }

.social-qr-card {
    position: absolute;
    right: 28px;
    bottom: 30px;
    width: 170px;
    padding: 18px;
    border-radius: var(--pk-radius);
    background: #fff;
    box-shadow: var(--pk-shadow);
    border: 1px solid var(--pk-border);
}

.social-qr-card strong,
.social-qr-card span {
    display: block;
}

.social-qr-card strong {
    font-size: 20px;
    margin-bottom: 6px;
}

.social-qr-card span {
    color: var(--pk-muted);
    font-size: 14px;
}

.social-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.social-stat-card {
    border-radius: var(--pk-radius-lg);
    padding: 22px;
}

.social-stat-card strong {
    display: block;
    font-size: 34px;
    color: var(--pk-teal-dark);
}

.social-stat-card span {
    color: var(--pk-muted);
    font-weight: 900;
}

.social-stat-card.danger strong {
    color: var(--pk-danger);
}

.home-community-section {
    margin-top: 30px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 28px;
    color: var(--pk-navy);
}

.home-lost-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-lost-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #fee2e2;
    border-radius: var(--pk-radius-lg);
    text-decoration: none;
    color: var(--pk-navy);
}

.home-lost-card:hover {
    border-color: var(--pk-danger);
}

.home-lost-card em {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 900;
    font-style: normal;
    margin-bottom: 6px;
}

.home-lost-card h3,
.home-pet-card h3 {
    margin: 0 0 4px;
    color: var(--pk-navy);
}

.home-lost-card p,
.home-pet-card p {
    margin: 0;
    color: var(--pk-muted);
}

.home-lost-card small {
    display: block;
    margin-top: 6px;
    color: var(--pk-muted);
}

.home-pet-image {
    width: 110px;
    height: 110px;
    border-radius: var(--pk-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-pet-image span {
    font-size: 46px;
}

.home-pet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-pet-card {
    border-radius: var(--pk-radius-lg);
    padding: 16px;
    text-decoration: none;
    color: var(--pk-navy);
    border: 1px solid var(--pk-border);
}

.home-pet-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--pk-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.home-pet-avatar span {
    font-size: 58px;
}

.home-empty-box {
    padding: 28px;
    border-radius: var(--pk-radius-lg);
    background: #fff;
    border: 1px dashed var(--pk-teal);
    text-align: center;
}

.home-empty-box strong,
.home-empty-box span {
    display: block;
}

.home-empty-box strong {
    font-size: 20px;
    margin-bottom: 6px;
}

.home-coming-soon {
    margin-top: 34px;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--pk-navy), #102944);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.home-coming-soon h2 {
    margin: 0 0 8px;
}

.home-coming-soon p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.6;
}

/* =========================================================
   FEED
   ========================================================= */

.feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.feed-create-box,
.feed-post-card,
.feed-side-card {
    border-radius: var(--pk-radius-lg);
}

.feed-create-box {
    margin-bottom: 18px;
    padding: 22px;
}

.feed-create-box h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--pk-navy);
}

.feed-create-box textarea {
    width: 100%;
    min-height: 120px;
    border-radius: var(--pk-radius);
    border: 1px solid var(--pk-border);
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    background: #fff;
    color: var(--pk-navy);
}

.feed-create-box textarea:focus,
.feed-create-box select:focus,
.feed-create-box input[type="file"]:focus,
.feed-comment-form input:focus {
    outline: none;
    border-color: var(--pk-teal);
    box-shadow: var(--pk-focus);
}

.feed-create-box .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: end;
}

.feed-create-box select,
.feed-create-box input[type="file"] {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--pk-border);
    padding: 10px 12px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
}

.feed-create-box .actions {
    margin-top: 18px;
}

.feed-create-box .btn {
    min-width: 120px;
}

.feed-list {
    display: grid;
    gap: 18px;
}

.feed-post-card {
    padding: 18px;
    overflow: visible;
}

.feed-post-card:hover {
    box-shadow: var(--pk-shadow-lg);
}

.feed-post-head {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.feed-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    flex: 0 0 auto;
}

.feed-user-avatar img,
.feed-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-user-name {
    display: inline-block;
    color: var(--pk-navy);
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 3px;
}

.feed-user-name:hover {
    color: var(--pk-teal-dark);
}

.feed-post-meta {
    font-size: 13px;
    color: var(--pk-muted);
}

.feed-post-meta a,
.feed-post-time {
    color: var(--pk-muted);
    text-decoration: none;
    font-weight: 800;
}

.feed-post-meta a:hover,
.feed-post-time:hover {
    color: var(--pk-teal-dark);
    text-decoration: underline;
}

.feed-post-content {
    font-size: 16px;
    line-height: 1.65;
    color: var(--pk-navy);
    margin-bottom: 14px;
    cursor: pointer;
}

.feed-post-image {
    border-radius: 18px;
    overflow: hidden;
    background: var(--pk-teal-light);
    border: 1px solid var(--pk-border);
    margin-top: 12px;
    cursor: pointer;
}

.feed-post-image img {
    width: 100%;
    display: block;
    max-height: 620px;
    object-fit: cover;
}

.feed-post-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--pk-border);
    margin-top: 14px;
    padding-top: 12px;
    flex-wrap: wrap;
}

.feed-like-form {
    margin: 0;
}

.feed-post-actions button,
.feed-share-btn,
.feed-share-link {
    border: 1px solid transparent;
    background: #f3fbfa;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    color: var(--pk-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feed-post-actions button:hover,
.feed-share-btn:hover,
.feed-share-link:hover {
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
    border-color: var(--pk-border);
}

.feed-like-btn.active,
.feed-post-actions .feed-like-form button.active {
    background: var(--pk-coral-light);
    color: var(--pk-coral-dark);
    border-color: rgba(251, 101, 72, 0.20);
}

.feed-post-actions button span,
.feed-like-count {
    display: inline-block;
    margin-left: 4px;
    font-weight: 900;
}

.feed-like-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.feed-comments {
    border-top: 1px solid var(--pk-border);
    margin-top: 12px;
    padding-top: 12px;
}

.feed-post-card:not(.feed-post-card-modal) .feed-comments {
    display: none;
}

.feed-comment-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-comment-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: start;
}

.feed-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.feed-comment-body {
    background: #f3fbfa;
    border-radius: 14px;
    padding: 10px 12px;
}

.feed-comment-body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--pk-navy);
}

.feed-comment-body p {
    margin: 0;
    line-height: 1.5;
    color: var(--pk-navy);
}

.feed-comment-body small {
    display: block;
    margin-top: 5px;
    color: var(--pk-muted);
    font-size: 12px;
}

.feed-comment-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 0;
}

.feed-comment-form input {
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--pk-border);
    padding: 0 14px;
    font-family: inherit;
}

.feed-comment-form button,
.feed-modal-comment-bar .feed-comment-form button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pk-coral), var(--pk-coral-dark));
    color: #fff;
    font-weight: 900;
    padding: 0 18px;
    cursor: pointer;
}

.feed-comment-loading,
.feed-load-more-status span {
    text-align: center;
    color: var(--pk-teal-dark);
    font-weight: 800;
    padding: 14px 8px;
    background: var(--pk-teal-light);
    border-radius: 14px;
}

.feed-load-more-status {
    display: none;
    text-align: center;
    color: var(--pk-muted);
    font-weight: 900;
    padding: 18px 10px;
}

.feed-load-more-status.active {
    display: block;
}

.feed-load-more-status span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
}

.feed-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.feed-side-card {
    padding: 18px;
}

.feed-side-card h3 {
    margin-top: 0;
    color: var(--pk-navy);
}

.feed-side-card p,
.feed-side-card li {
    color: var(--pk-muted);
    line-height: 1.6;
}

.feed-post-menu {
    margin-left: auto;
    position: relative;
}

.feed-post-menu-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pk-muted);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.feed-post-menu-btn:hover {
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
}

.feed-post-menu-dropdown {
    display: none;
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 20;
    min-width: 170px;
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: 14px;
    box-shadow: var(--pk-shadow-lg);
    padding: 8px;
}

.feed-post-menu.open .feed-post-menu-dropdown {
    display: block;
}

.feed-delete-post-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--pk-danger);
    font-weight: 900;
    text-align: left;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.feed-delete-post-btn:hover {
    background: #fff1f1;
}

.feed-delete-post-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Feed modal */
body.modal-open {
    overflow: hidden;
}

.feed-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    padding: 92px 12px 24px;
    box-sizing: border-box;
}

.feed-modal.active {
    display: block;
}

.feed-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 58, 103, 0.58);
}

.feed-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 116px);
    margin: 0 auto;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(21, 58, 103, 0.24);
    display: flex;
    flex-direction: column;
}

.feed-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--pk-teal-light);
    color: var(--pk-navy);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.feed-modal-close:hover {
    background: var(--pk-coral-light);
    color: var(--pk-coral-dark);
}

.feed-modal-title {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    min-height: 58px;
    padding: 16px 56px 14px;
    text-align: center;
    border-bottom: 1px solid var(--pk-border);
}

.feed-modal-title strong {
    font-size: 18px;
    font-weight: 900;
    color: var(--pk-navy);
}

.feed-modal-content {
    flex: 1;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding: 14px 18px 12px;
}
.feed-modal-content .feed-post-card {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .feed-modal {
        padding: 76px 10px 16px;
    }

    .feed-modal-dialog {
        max-height: calc(100vh - 92px);
        border-radius: 22px;
    }

    .feed-modal-content {
        max-height: calc(100vh - 186px);
    }
}

.feed-post-card-modal {
    box-shadow: none;
    border: 0;
    padding: 0;
}

.feed-post-card-modal:hover {
    box-shadow: none;
}

.feed-post-card-modal .feed-comments {
    display: block;
    border-top: 1px solid var(--pk-border);
    margin-top: 14px;
    padding-top: 14px;
}

.feed-post-card-modal .feed-post-image,
.feed-post-card-modal .feed-post-content {
    cursor: default;
}

.feed-post-card-modal .feed-post-image img {
    max-height: 520px;
    object-fit: contain;
    background: #f7f7f7;
}

.feed-post-card-modal .feed-post-content {
    font-size: 16px;
    line-height: 1.65;
}

.feed-modal-comment-bar {
    border-top: 1px solid var(--pk-border);
    background: #fff;
    padding: 12px 16px;
}

.feed-modal-comment-bar .feed-comment-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 0;
}

.feed-modal-comment-bar .feed-comment-form input {
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--pk-border);
    padding: 0 14px;
}

.feed-comment-count-btn {
    cursor: pointer;
}

.feed-comment-item.new-comment-highlight {
    animation: newCommentHighlight 1.4s ease;
}

@keyframes newCommentHighlight {
    0% {
        background: var(--pk-coral-light);
        border-radius: 14px;
    }

    100% {
        background: transparent;
    }
}

.post-detail-page {
    max-width: 760px;
    margin: 0 auto;
}

.post-detail-main {
    width: 100%;
}

.post-detail-card {
    margin-top: 20px;
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    .site-header,
    .site-footer,
    .no-print,
    .page-title,
    .card-toolbar,
    .card-guide,
    .capture-card-stage,
    .card-render-loading {
        display: none !important;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .container,
    main.container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card-page,
    .rendered-card-wrap {
        margin: 0 !important;
        padding: 0 !important;
    }

    .rendered-card-wrap {
        display: flex !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .rendered-card-image {
        display: block !important;
        width: 260mm !important;
        height: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .pet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .feed-layout,
    .social-hero,
    .social-stat-row,
    .home-lost-grid,
    .home-pet-grid {
        grid-template-columns: 1fr;
    }

    .feed-sidebar {
        position: static;
    }

    .social-hero h1 {
        font-size: 34px;
    }

    .social-hero-card {
        min-height: 250px;
    }

    .home-coming-soon {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

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

    .site-header {
        padding: 18px 0;
    }

    .site-nav a {
        background: rgba(255, 255, 255, 0.12);
    }

    .features,
    .dashboard-grid,
    .form-grid,
    .checkbox-list,
    .public-info-grid,
    .qr-layout,
    .public-user-pet-grid,
    .admin-permission-checkboxes {
        grid-template-columns: 1fr;
    }

    .actions,
    .page-title-flex,
    .public-actions,
    .qr-actions,
    .card-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hero h2 {
        font-size: 24px;
    }

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

    .public-pet-hero,
    .public-user-card,
    .profile-avatar-cover-preview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-pet-avatar {
        margin: 0 auto;
        width: 220px;
        height: 220px;
    }

    .owner-box span {
        display: block;
        min-width: unset;
        margin-bottom: 4px;
    }

    .qr-pet-avatar,
    .public-user-avatar,
    .public-user-avatar-placeholder {
        margin-left: auto;
        margin-right: auto;
    }

    .qr-pet-card {
        text-align: center;
    }

    .qr-actions .btn,
    .qr-actions button,
    .public-actions .btn,
    .card-toolbar .btn {
        width: 100%;
        text-align: center;
    }

    .pet-id-card {
        transform: scale(0.9);
        transform-origin: top center;
    }

    .pet-card-print-area {
        overflow-x: auto;
    }

    .pet-template-card {
        width: 100%;
    }

    .rendered-card-wrap {
        justify-content: center;
        padding-bottom: 10px;
    }

    .rendered-card-image {
        width: 100%;
        min-width: 0;
        border-radius: 12px;
    }

    .admin-table {
        min-width: 1050px;
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }

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

    .admin-stat-grid,
    .admin-quick-grid {
        grid-template-columns: 1fr;
    }

    .admin-mini-item {
        grid-template-columns: 1fr;
    }

    .admin-mini-meta {
        text-align: left;
        justify-items: start;
    }

    .public-user-cover {
        height: 180px;
    }

    .public-user-actions {
        justify-content: center;
    }

    .feed-create-box .form-grid {
        grid-template-columns: 1fr;
    }

    .feed-post-actions button,
    .feed-share-btn {
        flex: 1;
    }

    .feed-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .feed-modal-content {
        max-height: calc(100vh - 126px);
        padding: 16px;
    }
}

@media (max-width: 640px) {
}

@media (max-width: 560px) {
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }
}
.feed-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.feed-edit-modal.active {
    display: block;
}

.feed-edit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 52, 90, 0.58);
}

.feed-edit-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100% - 24px));
    margin: 80px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(18, 52, 90, 0.22);
    overflow: hidden;
}

.feed-edit-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #d9f0ee;
}

.feed-edit-modal-head strong {
    color: #12345a;
    font-size: 18px;
    font-weight: 900;
}

.feed-edit-modal-head button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #e9f8f6;
    color: #12345a;
    font-size: 24px;
    cursor: pointer;
}

.feed-edit-form {
    padding: 20px;
}

.feed-edit-form textarea {
    width: 100%;
    min-height: 160px;
    border: 1px solid #d9f0ee;
    border-radius: 16px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
}

.feed-edit-form textarea:focus {
    outline: none;
    border-color: #2db8ad;
    box-shadow: 0 0 0 4px rgba(45, 184, 173, 0.14);
}

.feed-edit-post-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #12345a;
    font-weight: 800;
    text-align: left;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.feed-edit-post-btn:hover {
    background: #e9f8f6;
    color: #159b92;
}
.feed-share-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
}

.feed-share-modal.active {
    display: block;
}

.feed-share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 52, 90, 0.58);
}

.feed-share-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100% - 24px));
    margin: 90px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(18, 52, 90, 0.22);
    overflow: hidden;
}

.feed-share-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #d9f0ee;
}

.feed-share-modal-head strong {
    color: #12345a;
    font-size: 18px;
    font-weight: 900;
}

.feed-share-modal-head button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #e9f8f6;
    color: #12345a;
    font-size: 24px;
    cursor: pointer;
}

.feed-share-modal-body {
    padding: 20px;
}

.feed-share-link-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 16px 0;
}

.feed-share-link-box input {
    height: 46px;
    border: 1px solid #d9f0ee;
    border-radius: 999px;
    padding: 0 14px;
    color: #12345a;
}

.feed-share-link-box input:focus {
    outline: none;
    border-color: #2db8ad;
    box-shadow: 0 0 0 4px rgba(45, 184, 173, 0.14);
}

.feed-share-link-box button {
    border: 0;
    border-radius: 999px;
    background: #fb6548;
    color: #fff;
    font-weight: 900;
    padding: 0 18px;
    cursor: pointer;
}

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

.feed-share-actions .btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 640px) {
    .feed-share-link-box {
        grid-template-columns: 1fr;
    }

    .feed-share-link-box button {
        height: 44px;
    }

    .feed-share-actions {
        flex-direction: column;
    }
}

.feed-post-actions {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid #e7eeee;
    margin-top: 14px;
    padding-top: 0;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
}

.feed-post-actions form {
    margin: 0;
}

.feed-post-actions button,
.feed-post-actions .feed-like-btn,
.feed-post-actions .feed-comment-count-btn,
.feed-post-actions .feed-share-btn {
    min-width: 64px;
    height: 44px;
    border: 0;
    border-right: 1px solid #e7eeee;
    border-radius: 0;
    background: #fff;
    color: #12345a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 800;
}

.feed-post-actions button:hover,
.feed-post-actions .feed-like-btn:hover,
.feed-post-actions .feed-comment-count-btn:hover,
.feed-post-actions .feed-share-btn:hover {
    background: #f3fbfa;
    color: #159b92;
}

.feed-post-actions button:last-child,
.feed-post-actions .feed-share-btn:last-child {
    border-right: 0;
}

.feed-like-btn.active {
    color: #fb6548;
    background: #fff1ec;
}

.feed-like-label,
.feed-action-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feed-like-count,
.feed-comment-count {
    font-size: 13px;
    font-weight: 800;
    color: #51667d;
    margin-left: 2px;
}

.feed-like-btn.active .feed-like-count {
    color: #fb6548;
}

.feed-post-actions button,
.feed-post-actions .feed-like-btn,
.feed-post-actions .feed-comment-count-btn,
.feed-post-actions .feed-share-btn {
    min-width: 64px;
    height: 44px;
    border: 0;
    border-right: 1px solid #e7eeee;
    border-radius: 0;
    background: #fff;
    color: #12345a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 800;
}

.feed-like-label,
.feed-action-icon {
    font-size: 19px;
    line-height: 1;
}

.feed-like-count,
.feed-comment-count {
    font-size: 13px;
    font-weight: 800;
    color: #51667d;
}

.feed-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    border: 1px solid #d9f0ee;
    background: #e9f8f6;
    color: #159b92;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.feed-follow-btn:hover {
    background: #d7f3ef;
}

.feed-follow-btn.active {
    background: #fff1ec;
    border-color: #ffd2c4;
    color: #fb6548;
}

.feed-follow-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.public-user-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 12px;
}

.public-user-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f3fbfa;
    color: #51667d;
    border: 1px solid #d9f0ee;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.public-user-stats strong {
    color: #12345a;
    font-weight: 900;
}

.public-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9f0ee;
    background: #e9f8f6;
    color: #159b92;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.public-follow-btn:hover {
    background: #d7f3ef;
}

.public-follow-btn.active {
    background: #fff1ec;
    border-color: #ffd2c4;
    color: #fb6548;
}

.public-follow-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.feed-post-content {
    position: relative;
}

.feed-post-content-text {
    white-space: normal;
    word-break: break-word;
}

.feed-read-more-btn {
    border: 0;
    background: transparent;
    color: #159b92;
    font-weight: 900;
    padding: 0;
    margin-top: 4px;
    cursor: pointer;
    font-size: 14px;
}

.feed-read-more-btn:hover {
    color: #fb6548;
    text-decoration: underline;
}

.feed-post-card-modal .feed-read-more-btn {
    display: none;
}
.feed-post-time {
    cursor: pointer;
}
.feed-comment-item {
    position: relative;
}

.feed-comment-avatar,
.feed-comment-name {
    text-decoration: none;
}

.feed-comment-name {
    display: inline-flex;
    color: #12345a;
    font-weight: 900;
    margin-bottom: 2px;
}

.feed-comment-name:hover {
    color: #159b92;
    text-decoration: underline;
}

.comment-hover-card {
    display: none;
    position: absolute;
    left: var(--comment-card-left, 44px);
    bottom: var(--comment-card-bottom, calc(80% + 1px));
    top: auto;
    z-index: 60;
    width: 260px;
    background: #fff;
    border: 1px solid #d9f0ee;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(18, 52, 90, 0.18);
    padding: 14px;
}
.feed-comment-item.hover-from-avatar {
    --comment-card-left: 0px;
    --comment-card-bottom: calc(80% + 1px);
}

.feed-comment-item.hover-from-name {
    --comment-card-left: 44px;
    --comment-card-bottom: calc(80% + 1px);
}
.feed-comment-item.show-hover-card .comment-hover-card,
.comment-hover-card:hover {
    display: block;
}
.comment-hover-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.comment-hover-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.comment-hover-avatar span {
    color: #159b92;
    font-weight: 900;
}

.comment-hover-name {
    color: #12345a;
    font-weight: 900;
    text-decoration: none;
}

.comment-hover-name:hover {
    color: #159b92;
}

.comment-hover-count {
    margin-top: 3px;
    font-size: 12px;
    color: #51667d;
    font-weight: 700;
}

.comment-hover-card .feed-follow-btn {
    margin-top: 0;
    width: 100%;
}
.feed-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.feed-comment-reply-btn {
    border: 0;
    background: transparent;
    color: #51667d;
    font-size: 12px;
    font-weight: 800;
    padding: 0;
    cursor: pointer;
}

.feed-comment-reply-btn:hover {
    color: #159b92;
    text-decoration: underline;
}

.feed-comment-reply-box {
    margin-top: 8px;
}

.feed-reply-form {
    margin-top: 6px;
}

.feed-comment-replies {
    margin-left: 42px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e7eeee;
}

.feed-comment-replies .feed-comment-item {
    margin-top: 8px;
}
.feed-comment-list {
    width: 100%;
}

.feed-comment-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

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

.feed-comment-replies {
    width: calc(100% - 42px);
    margin-left: 42px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e7eeee;
}

.feed-comment-replies .feed-comment-item {
    width: 100%;
}

.feed-comment-replies .feed-comment-body {
    flex: 1;
    min-width: 0;
}
/* ===============================
   FIX COMMENT REPLY FULL WIDTH
   =============================== */

.feed-comment-list {
    width: 100%;
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-comment-item {
    position: relative;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.feed-comment-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
    background: var(--pk-teal-light);
    color: var(--pk-teal-dark);
}

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

.feed-comment-body {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
    background: #f3fbfa;
    border-radius: 14px;
    padding: 10px 12px;
}

.feed-comment-body p {
    margin: 0;
    line-height: 1.5;
    color: var(--pk-navy);
    word-break: break-word;
}

.feed-comment-reply-box {
    flex: 0 0 calc(100% - 48px);
    width: calc(100% - 48px);
    margin-left: 48px;
    margin-top: 8px;
}

.feed-comment-replies {
    flex: 0 0 calc(100% - 48px) !important;
    width: calc(100% - 48px) !important;
    margin-left: 48px !important;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e7eeee;
}

.feed-comment-replies .feed-comment-item {
    width: 100%;
    margin-top: 8px;
}

.feed-comment-replies .feed-comment-body {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
}

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

.feed-comment-toggle-replies {
    flex: 0 0 calc(100% - 48px);
    margin-left: 48px;
    margin-top: 6px;
    border: 0;
    background: transparent;
    color: #159b92;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.feed-comment-toggle-replies:hover {
    color: #fb6548;
    text-decoration: underline;
}

.feed-comment-toggle-replies.active {
    color: #51667d;
}

.feed-comment-replies {
    flex: 0 0 calc(100% - 48px);
    width: calc(100% - 48px);
    margin-left: 48px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e7eeee;
}

.feed-comment-toggle-replies {
    flex: 0 0 calc(100% - 48px);
    margin-left: 48px;
    margin-top: 8px;
    border: 0;
    background: #ffffff;
    color: #51667d;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: calc(100% - 48px);
    box-shadow: 0 4px 14px rgba(18, 52, 90, 0.06);
    border: 1px solid #d9f0ee;
}

.feed-comment-toggle-replies:hover {
    background: #f3fbfa;
    color: #159b92;
    text-decoration: none;
    border-color: #bfe8e4;
}

.feed-comment-toggle-replies.active {
    background: #fff1ec;
    color: #fb6548;
    border-color: #ffd2c4;
}

.reply-toggle-avatar {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

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

.reply-toggle-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.reply-toggle-text strong {
    color: #12345a;
    font-weight: 900;
}

.feed-comment-toggle-replies:hover .reply-toggle-text strong {
    color: #159b92;
}
/* ===============================
   FIX COMMENT LIKE STYLE
   Giống style like bài viết
   =============================== */

.feed-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.feed-comment-like-btn {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: auto !important;
    height: auto !important;
    border-radius: 0 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    color: #12345a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.feed-comment-like-btn:hover {
    color: #159b92;
    background: transparent !important;
}

.feed-comment-like-btn.active {
    color: #fb6548;
    background: transparent !important;
}

.feed-comment-like-btn i {
    font-size: 15px;
    line-height: 1;
}

.feed-comment-like-count {
    font-size: 12px;
    font-weight: 900;
    color: inherit;
    margin-left: 2px;
}

.feed-comment-reply-btn {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: auto !important;
    height: auto !important;
    border-radius: 0 !important;

    color: #12345a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}
.mention-suggest-box {
    display: none;
    position: absolute;
    z-index: 12000;
    background: #fff;
    border: 1px solid #d9f0ee;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(18, 52, 90, 0.18);
    padding: 8px;
    max-height: 280px;
    overflow-y: auto;
}
.mention-suggest-box.is-in-modal {
    z-index: 100050;
}
.mention-suggest-item {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

.mention-suggest-item:hover {
    background: #f3fbfa;
}

.mention-suggest-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

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

.mention-suggest-name {
    color: #12345a;
    font-size: 14px;
    font-weight: 900;
}
.feed-mention-link {
    color: #159b92;
    font-weight: 900;
    text-decoration: none;
}

.feed-mention-link:hover {
    color: #fb6548;
    text-decoration: underline;
}
/* ===============================
   COMMENT BUBBLE FIT CONTENT
   =============================== */

.feed-comment-item {
    align-items: flex-start !important;
}

.feed-comment-body {
    flex: 0 1 auto !important;
    width: fit-content !important;
    max-width: calc(100% - 52px) !important;
    display: inline-block !important;
    background: #f3fbfa;
    border-radius: 14px;
    padding: 10px 12px;
}

.feed-comment-body p {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.feed-comment-actions {
    width: fit-content;
}

.feed-comment-replies .feed-comment-body {
    flex: 0 1 auto !important;
    width: fit-content !important;
    max-width: calc(100% - 52px) !important;
}

.feed-comment-reply-box {
    flex: 0 0 calc(100% - 48px) !important;
    width: calc(100% - 48px) !important;
}

/* Comment dài thì không vượt khung */
.feed-comment-body {
    max-inline-size: min(560px, calc(100% - 52px)) !important;
}

/* Mobile */
@media (max-width: 640px) {
    .feed-comment-body {
        max-inline-size: calc(100% - 48px) !important;
    }
}
/* ===============================
   COMMENT MENU
   =============================== */

.feed-comment-bubble-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.feed-comment-menu {
    position: relative;
    flex: 0 0 auto;
    margin-top: -4px;
    margin-right: -4px;
}

.feed-comment-menu-btn {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #657a91;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.feed-comment-menu-btn:hover {
    background: #e9f8f6;
    color: #159b92;
}

.feed-comment-menu-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    z-index: 80;
    min-width: 210px;
    background: #fff;
    border: 1px solid #d9f0ee;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(18, 52, 90, 0.18);
    padding: 8px;
}

.feed-comment-menu.open .feed-comment-menu-dropdown {
    display: block;
}

.feed-comment-menu-dropdown button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #12345a;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.feed-comment-menu-dropdown button:hover {
    background: #f3fbfa;
    color: #159b92;
}

.feed-comment-menu-dropdown button.danger {
    color: #dc2626;
}

.feed-comment-menu-dropdown button.danger:hover {
    background: #fff1f1;
    color: #dc2626;
}

.feed-comment-hidden-badge {
    display: inline-flex;
    margin: 4px 0 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff1ec;
    color: #fb6548;
    font-size: 11px;
    font-weight: 900;
}
.feed-comment-item.is-hidden-comment .feed-comment-body {
    background: #f8fafc;
}

.feed-comment-item.is-hidden-comment .feed-comment-body p,
.feed-comment-item.is-hidden-comment .feed-comment-body small,
.feed-comment-item.is-hidden-comment .feed-comment-actions {
    opacity: 0.68;
}

.feed-comment-item.is-hidden-comment .feed-comment-menu,
.feed-comment-item.is-hidden-comment .feed-comment-menu-dropdown,
.feed-comment-item.is-hidden-comment .feed-comment-menu-dropdown button {
    opacity: 1 !important;
}
/* ===============================
   ADMIN COMMENT REPORTS
   =============================== */

.comment-report-list {
    display: grid;
    gap: 14px;
}

.comment-report-card {
    background: #fff;
    border: 1px solid #d9f0ee;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(21, 58, 103, 0.08);
}

.comment-report-card.status-new {
    border-color: #fb6548;
    background: #fff8f5;
}

.comment-report-card.status-seen {
    border-color: #f59e0b;
    background: #fffbeb;
}

.comment-report-card.status-resolved {
    border-color: #2db8ad;
    background: #f3fbfa;
}

.comment-report-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.comment-report-head strong {
    color: #12345a;
    font-size: 16px;
    font-weight: 900;
}

.comment-report-head small {
    color: #657a91;
    font-size: 12px;
    font-weight: 700;
}

.comment-report-status {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e9f8f6;
    color: #159b92;
    font-size: 12px;
    font-weight: 900;
}

.comment-report-card.status-new .comment-report-status {
    background: #fff1ec;
    color: #fb6548;
}

.comment-report-card.status-seen .comment-report-status {
    background: #fef3c7;
    color: #b45309;
}

.comment-report-card.status-resolved .comment-report-status {
    background: #e9f8f6;
    color: #159b92;
}

.comment-report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.comment-report-grid div,
.comment-report-content,
.comment-report-reason {
    background: #fff;
    border: 1px solid #e7eeee;
    border-radius: 14px;
    padding: 11px 12px;
}

.comment-report-grid span,
.comment-report-content span,
.comment-report-reason span {
    display: block;
    color: #657a91;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.comment-report-grid a,
.comment-report-grid strong {
    color: #12345a;
    font-weight: 900;
}

.comment-report-content,
.comment-report-reason {
    margin-top: 10px;
}

.comment-report-content p,
.comment-report-reason p {
    margin: 0;
    color: #12345a;
    line-height: 1.5;
}

.comment-report-reason {
    background: #fff8f5;
}

.comment-report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

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

@media (max-width: 640px) {
    .comment-report-grid {
        grid-template-columns: 1fr;
    }

    .comment-report-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ===============================
   ADMIN COMMENT REPORT BADGE
   =============================== */

.admin-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fb6548;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
}

.btn-danger,
.btn-small.btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.btn-danger:hover,
.btn-small.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}
/* ===============================
   ADMIN REPORT TABS
   =============================== */

.admin-report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.admin-report-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid #d9f0ee;
    background: #fff;
    color: #12345a;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(21, 58, 103, 0.06);
}

.admin-report-tabs a:hover {
    border-color: #2db8ad;
    color: #159b92;
}

.admin-report-tabs a.active {
    background: #159b92;
    border-color: #159b92;
    color: #fff;
}

.admin-report-tabs a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef6f6;
    color: #12345a;
    font-size: 12px;
    font-weight: 900;
}

.admin-report-tabs a.active span {
    background: #fff;
    color: #159b92;
}
/* ===============================
   ADMIN REPORT BULK DELETE
   =============================== */

.admin-report-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #d9f0ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21, 58, 103, 0.06);
}

.admin-report-check-all,
.comment-report-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #12345a;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.admin-report-check-all input,
.comment-report-select input {
    width: 17px;
    height: 17px;
    accent-color: #159b92;
}

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

.comment-report-select {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed #d9f0ee;
}

@media (max-width: 640px) {
    .admin-report-bulk-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ===============================
   FEED SUGGESTED USERS
   =============================== */

.feed-suggest-card {
    overflow: hidden;
}

.feed-side-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-side-card-head h3 {
    margin: 0;
}

.feed-side-card-head span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9f8f6;
    color: #159b92;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.feed-suggest-user-list {
    display: grid;
    gap: 10px;
}

.feed-suggest-user-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e7eeee;
    border-radius: 16px;
    background: #fff;
    transition: 0.18s ease;
}

.feed-suggest-user-item:hover {
    border-color: #2db8ad;
    box-shadow: 0 8px 22px rgba(21, 58, 103, 0.08);
}

.feed-suggest-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
}

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

.feed-suggest-info {
    min-width: 0;
}

.feed-suggest-name {
    display: block;
    color: #12345a;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-suggest-name:hover {
    color: #159b92;
}

.feed-suggest-info span {
    display: block;
    margin-top: 2px;
    color: #657a91;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-suggest-follow-btn {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #2db8ad;
    background: #fff;
    color: #159b92;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.feed-suggest-follow-btn:hover,
.feed-suggest-follow-btn.active {
    background: #159b92;
    color: #fff;
}

/* ===============================
   PUBLIC USER POSTS
   =============================== */

.public-user-post-list {
    display: grid;
    gap: 14px;
}

.public-user-post-card {
    background: #fff;
    border: 1px solid #d9f0ee;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(21, 58, 103, 0.06);
}

.public-user-post-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.public-user-post-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.public-user-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-user-post-head strong {
    color: #12345a;
    font-size: 14px;
    font-weight: 900;
}

.public-user-post-meta,
.public-user-post-meta a {
    color: #657a91;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.public-user-post-meta a:hover {
    color: #159b92;
}

.public-user-post-content {
    color: #12345a;
    line-height: 1.55;
    margin-bottom: 10px;
}

.public-user-post-image {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 10px;
}

.public-user-post-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.public-user-post-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #eef6f6;
}

.public-user-post-actions a {
    color: #657a91;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.public-user-post-actions a:hover {
    color: #159b92;
}
/* ===============================
   PUBLIC USER MINI FEED PROFILE
   =============================== */

.public-user-feed-page {
    display: grid;
    gap: 18px;
}

.public-user-profile-card {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-top: -54px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #d9f0ee;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(21, 58, 103, 0.1);
    z-index: 2;
}

.public-user-profile-avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 0 0 5px #fff;
}

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

.public-user-profile-main h2 {
    margin: 0 0 6px;
    color: #12345a;
    font-size: 28px;
    font-weight: 900;
}

.public-user-profile-main p {
    margin: 0 0 12px;
    color: #51667d;
    line-height: 1.5;
}

.public-user-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.public-user-profile-stats a,
.public-user-profile-stats > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3fbfa;
    border: 1px solid #d9f0ee;
    color: #12345a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.public-user-profile-stats strong {
    color: #159b92;
    font-weight: 900;
}

.public-user-profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.public-follow-btn {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #2db8ad;
    background: #159b92;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.public-follow-btn.active {
    background: #fff;
    color: #159b92;
}

.public-user-feed-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.public-user-left-column {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 90px;
}

.public-user-widget,
.public-user-feed-title,
.public-user-post-card {
    background: #fff;
    border: 1px solid #d9f0ee;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(21, 58, 103, 0.06);
}

.public-user-widget {
    padding: 16px;
}

.public-user-widget h3,
.public-user-feed-title h3 {
    margin: 0;
    color: #12345a;
    font-size: 18px;
    font-weight: 900;
}

.public-user-widget p {
    margin: 8px 0 0;
    color: #51667d;
    line-height: 1.5;
}

.public-user-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.public-user-widget-head,
.public-user-feed-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.public-user-feed-title {
    padding: 14px 16px;
    margin-bottom: 14px;
}

.public-user-widget-head span,
.public-user-feed-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e9f8f6;
    color: #159b92;
    font-size: 12px;
    font-weight: 900;
}

.public-user-mini-pet-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.public-user-mini-pet {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e7eeee;
    border-radius: 16px;
    color: #12345a;
    text-decoration: none;
}

.public-user-mini-pet:hover {
    border-color: #2db8ad;
    background: #f3fbfa;
}

.public-user-mini-pet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.public-user-mini-pet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-user-mini-pet-info {
    min-width: 0;
}

.public-user-mini-pet-info strong,
.public-user-mini-pet-info em,
.public-user-mini-pet-info small {
    display: block;
}

.public-user-mini-pet-info strong {
    font-size: 14px;
    font-weight: 900;
}

.public-user-mini-pet-info em {
    margin-top: 2px;
    color: #657a91;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.public-user-mini-pet-info small {
    margin-top: 4px;
    color: #fb6548;
    font-size: 11px;
    font-weight: 900;
}

.public-user-post-list {
    display: grid;
    gap: 14px;
}

.public-user-post-card {
    padding: 14px;
}

.public-user-post-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
}

.public-user-post-author a {
    color: #12345a;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.public-user-post-image {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 10px;
    background: #f3fbfa;
}

.public-user-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #eef6f6;
}

.public-user-post-actions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #657a91;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

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

    .public-user-left-column {
        position: static;
    }
}

@media (max-width: 720px) {
    .public-user-profile-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        margin-top: -42px;
    }

    .public-user-profile-avatar {
        width: 96px;
        height: 96px;
        font-size: 34px;
    }

    .public-user-profile-stats,
    .public-user-profile-actions {
        justify-content: center;
    }
}
/* ===============================
   PUBLIC USER POST READ MORE
   =============================== */

.public-user-post-content {
    color: #12345a;
    line-height: 1.55;
    margin-bottom: 10px;
}

.public-user-post-content-text {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.public-user-read-more-btn {
    display: inline-flex;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #159b92;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.public-user-read-more-btn:hover {
    text-decoration: underline;
}
/* ===============================
   PUBLIC FOLLOW LIST
   =============================== */

.public-follow-page {
    display: grid;
    gap: 16px;
}

.public-follow-head {
    padding: 18px;
    border: 1px solid #d9f0ee;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbfa 100%);
    box-shadow: 0 10px 28px rgba(21, 58, 103, 0.08);
}

.public-follow-back {
    display: inline-flex;
    margin-bottom: 8px;
    color: #159b92;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.public-follow-head h2 {
    margin: 0 0 5px;
    color: #12345a;
    font-size: 26px;
    font-weight: 900;
}

.public-follow-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.public-follow-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #d9f0ee;
    background: #fff;
    color: #12345a;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(21, 58, 103, 0.06);
}

.public-follow-tabs a.active {
    background: #159b92;
    border-color: #159b92;
    color: #fff;
}

.public-follow-list {
    display: grid;
    gap: 12px;
}

.public-follow-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d9f0ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(21, 58, 103, 0.06);
}

.public-follow-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f8f6;
    color: #159b92;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
}

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

.public-follow-info {
    min-width: 0;
}

.public-follow-name {
    display: block;
    color: #12345a;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-follow-name:hover {
    color: #159b92;
}

.public-follow-info span {
    display: block;
    margin-top: 3px;
    color: #657a91;
    font-size: 13px;
    font-weight: 700;
}

.public-follow-action {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .public-follow-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .public-follow-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}
/* ===============================
   PUBLIC USER CONTENT SWITCH
   =============================== */

.public-user-content-panel {
    display: none;
}

.public-user-content-panel.active {
    display: block;
}

.public-user-stat-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3fbfa;
    border: 1px solid #d9f0ee;
    color: #12345a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.public-user-stat-tab.active,
.public-user-stat-tab:hover {
    background: #e9f8f6;
    border-color: #2db8ad;
}

.public-user-stat-tab strong {
    color: #159b92;
    font-weight: 900;
}

.public-user-create-box {
    margin-bottom: 16px;
}

@media (max-width: 640px) {
}

/* =========================================================
   NOTIFICATIONS
   ========================================================= */

.site-header {
    position: relative;
    z-index: 20000;
    overflow: visible !important;
}

.header-inner,
.site-nav,
.header-notification-wrap {
    overflow: visible !important;
}

.header-notification-wrap {
    position: relative;
    z-index: 21000;
    display: inline-flex;
    align-items: center;
}

.header-notification-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.header-notification-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.header-notification-link i {
    font-size: 20px;
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 18px;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 99999;
    display: none;
    width: 360px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(21, 58, 103, 0.08);
    box-shadow: 0 16px 45px rgba(21, 58, 103, 0.18);
    color: #12345a;
    pointer-events: auto;
}

.notification-dropdown.active {
    display: block;
}

.notification-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e7eeee;
}

.notification-dropdown-head strong {
    color: #12345a;
    font-size: 15px;
    font-weight: 900;
}

.notification-dropdown-head a {
    color: #159b92 !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.notification-dropdown-head a:hover {
    color: #fb6548 !important;
}

.notification-dropdown-list {
    position: relative;
    z-index: 1;
    max-height: 420px;
    overflow-y: auto;
    pointer-events: auto;
}

.notification-dropdown-empty {
    padding: 18px 16px;
    color: #657a91;
    font-size: 14px;
    font-weight: 700;
}

.notification-dropdown-item {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    color: #12345a !important;
    border-bottom: 1px solid #eef6f6;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.notification-dropdown-item:hover,
.notification-dropdown-item.is-unread:hover {
    background: #f3fbfa !important;
}

.notification-dropdown-item.is-unread {
    background: #fff8ed;
}

.notification-dropdown-item * {
    pointer-events: none;
}

.notification-dropdown-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9f8f6;
    color: #159b92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

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

.notification-dropdown-avatar span {
    color: #159b92;
}

.notification-dropdown-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #12345a;
    font-size: 14px;
    line-height: 1.35;
}

.notification-dropdown-body span,
.notification-dropdown-body strong {
    color: #12345a;
}

.notification-dropdown-body span {
    font-weight: 800;
}

.notification-dropdown-body strong {
    font-weight: 900;
}

.notification-dropdown-body small {
    color: #657a91;
    font-size: 12px;
    font-weight: 800;
}

.notifications-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px;
}

.notifications-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(21, 58, 103, 0.08);
    box-shadow: 0 8px 22px rgba(21, 58, 103, 0.06);
}

.notification-item.is-unread {
    background: #fff8ed;
    border-color: rgba(251, 101, 72, 0.22);
}

.notification-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9f8f6;
    color: #159b92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
}

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

.notification-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #12345a;
    text-decoration: none;
}

.notification-body strong {
    color: #12345a;
    font-weight: 900;
}

.notification-body span {
    color: #12345a;
    font-weight: 700;
}

.notification-body small {
    color: #657a91;
    font-weight: 800;
}

@media (max-width: 640px) {
    .notification-dropdown {
        right: auto;
        left: 50%;
        width: calc(100vw - 24px);
        transform: translateX(-50%);
    }

    .notifications-actions {
        justify-content: stretch;
    }

    .notifications-actions .btn,
    .notifications-actions button {
        width: 100%;
    }
}
/* =========================================================
   FEED PRIVACY BADGE
   ========================================================= */

.feed-visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3fbfa;
    color: #657a91;
    border: 1px solid #d9f0ee;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
}

.feed-visibility-public {
    background: #f3fbfa;
    color: #159b92;
    border-color: #d9f0ee;
}

.feed-visibility-followers {
    background: #eef5fb;
    color: #153a67;
    border-color: #dbeafe;
}

.feed-visibility-private {
    background: #fff1ec;
    color: #fb6548;
    border-color: #ffd2c4;
}
/* =========================================================
   FEED PRIVACY BADGE
   ========================================================= */

.feed-visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3fbfa;
    color: #657a91;
    border: 1px solid #d9f0ee;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
    vertical-align: middle;
}

.feed-visibility-badge i {
    font-size: 11px;
    line-height: 1;
}

.feed-visibility-public {
    background: #f3fbfa;
    color: #159b92;
    border-color: #d9f0ee;
}

.feed-visibility-followers {
    background: #eef5fb;
    color: #153a67;
    border-color: #dbeafe;
}

.feed-visibility-private {
    background: #fff1ec;
    color: #fb6548;
    border-color: #ffd2c4;
}

.notification-badge.is-pulse {
    animation: notificationBadgePulse 0.8s ease;
}

@keyframes notificationBadgePulse {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.profile-slug-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d9f0ee;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.profile-slug-input-wrap span {
    flex: 0 0 auto;
    padding: 12px 12px;
    background: #f3fbfa;
    color: #657a91;
    font-size: 14px;
    font-weight: 800;
    border-right: 1px solid #d9f0ee;
}

.profile-slug-input-wrap input {
    flex: 1;
    border: 0 !important;
    outline: none;
    padding: 12px 14px;
    min-width: 0;
}

.profile-slug-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d9f0ee;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.profile-slug-input-wrap span {
    flex: 0 0 auto;
    padding: 12px 12px;
    background: #f3fbfa;
    color: #657a91;
    font-size: 14px;
    font-weight: 800;
    border-right: 1px solid #d9f0ee;
}

.profile-slug-input-wrap input {
    flex: 1;
    border: 0 !important;
    outline: none;
    padding: 12px 14px;
    min-width: 0;
}

.profile-slug-status {
    flex: 0 0 auto;
    width: 42px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.profile-slug-status.is-ok {
    color: #159b92;
}

.profile-slug-status.is-error {
    color: #fb6548;
}

.feed-modal.is-stacked-modal {
    z-index: 100200;
}

.feed-modal.has-child-modal {
    z-index: 100000;
}