.ghost-btn,
.action-btn,
.edit-chip,
.google-btn,
.icon-action-btn {
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
    font: inherit;
}

.ghost-btn:hover,
.action-btn:hover,
.edit-chip:hover,
.google-btn:hover,
.icon-action-btn:hover {
    transform: translateY(-1px);
}

.ghost-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.74);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.94));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.18);
}

.action-btn.centered {
    display: flex;
    width: fit-content;
    margin: 16px auto 0;
}

.edit-chip {
    padding: 7px 11px;
    font-size: 0.79rem;
    background: rgba(255, 255, 255, 0.65);
    color: var(--muted);
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.google-btn i {
    color: #db4437;
}

.mini-panel,
.post-card,
.sidebar-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.mini-panel {
    padding: 20px;
    background: var(--panel);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
}

.mini-panel h2,
.sidebar-card h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.mini-panel p,
.sidebar-card p,
.sidebar-card li {
    color: var(--muted);
    line-height: 1.55;
}

.post-card,
.sidebar-card {
    overflow: hidden;
    background: var(--panel-strong);
}

.post-card {
    padding: 22px;
}

.post-admin,
.sidebar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-admin {
    margin-bottom: 14px;
}

.post-title-banner {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(190, 24, 93, 0.10);
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(139, 92, 246, 0.10) 45%, rgba(6, 182, 212, 0.10) 100%),
        #fff7fb;
    display: flex;
    align-items: flex-end;
}

.post-title-banner.has-image {
    background-color: #f8d7e9;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.post-title-banner.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(50, 28, 57, 0.58) 100%);
}

.post-title-overlay {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.post-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
}

.post-title-banner.has-image .post-title,
.post-title-banner.has-image .post-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.post-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.post-body {
    color: #443049;
    line-height: 1.8;
    font-size: 0.99rem;
    white-space: pre-line;
}

.post-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    padding-top: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    border-top: 1px solid rgba(190, 24, 93, 0.08);
}

.post-footer {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: space-between;
}

.author-block {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.author-block strong {
    color: var(--text);
}

.author-block a,
.contact-item a,
.officer-item a,
.account-user a {
    color: #8b5cf6;
}

.sidebar-card {
    padding: 16px;
}

.sidebar-column .sidebar-card,
.sidebar-column .mini-panel {
    font-size: 0.92rem;
}

.sidebar-column .sidebar-card h2,
.sidebar-column .mini-panel h2 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.contact-list,
.officer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-item,
.officer-item,
.account-user {
    padding: 11px 12px;
    border: 1px solid rgba(190, 24, 93, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
}

.contact-item,
.officer-item {
    position: relative;
}

.contact-item {
    padding-right: 52px;
}

.officer-item {
    padding-right: 78px;
}

.contact-item-header,
.officer-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.contact-item strong,
.officer-role {
    display: block;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.contact-value,
.officer-address {
    color: var(--text);
    line-height: 1.55;
}

.contact-value.is-placeholder,
.officer-address.is-placeholder,
.officer-name.is-placeholder {
    color: var(--muted);
    font-style: italic;
}

.officer-main,
.account-user {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.officer-photo,
.account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(190, 24, 93, 0.08);
    flex: 0 0 auto;
}

.officer-photo img,
.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.officer-name,
.account-name {
    font-weight: 700;
    font-size: 0.94rem;
}

.officer-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.officer-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-action-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.74);
    color: var(--muted);
}

.icon-action-btn.delete:hover {
    color: var(--danger);
    border-color: rgba(190, 24, 93, 0.20);
    background: rgba(255, 255, 255, 0.96);
}

.icon-action-btn.edit:hover {
    color: var(--accent);
    border-color: rgba(236, 72, 153, 0.22);
    background: rgba(255, 255, 255, 0.96);
}

.account-panel-logged-out {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 98px;
}

body.theme-dark .ghost-btn,
body.theme-dark .edit-chip,
body.theme-dark .google-btn,
body.theme-dark .contact-item,
body.theme-dark .officer-item,
body.theme-dark .account-user,
body.theme-dark .post-title-banner,
body.theme-dark .mini-panel,
body.theme-dark .sidebar-card,
body.theme-dark .post-card,
body.theme-dark .icon-action-btn {
    background-color: rgba(36, 28, 45, 0.88);
}

body.theme-dark .post-body {
    color: #eadff0;
}

@media (max-width: 720px) {
    .hero-intro,
    .post-card,
    .sidebar-card,
    .mini-panel {
        padding: 18px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
