/* Tarîk-i Ahmediyye - Ana Stil Dosyası */
/* Kırmızı-Beyaz Tema */

:root {
    --primary-red: #1f6f96;
    --primary-red-dark: #154c67;
    --primary-red-light: #3f89ae;
    --accent-peach: #f4ba82;
    --accent-peach-dark: #df9f63;
    --button-blue-start: #5f84c5;
    --button-blue-end: #1e3b67;
    --secondary-gray: #445c6c;
    --light-gray: #e7eff5;
    --dark-gray: #13242e;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 8% -8%, rgba(244, 186, 130, 0.42), transparent 36%),
        radial-gradient(circle at 98% 2%, rgba(31, 111, 150, 0.32), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(120, 160, 230, 0.2), transparent 34%),
        var(--light-gray);
    color: var(--dark-gray);
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-dark);
}

/* Links */
a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red-dark);
}

/* Buttons */
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #355b93;
    --bs-btn-border-color: #2a4b7a;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #2a4c7d;
    --bs-btn-hover-border-color: #1d365a;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #1d365a;
    --bs-btn-active-border-color: #152947;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #6d88b7;
    --bs-btn-disabled-border-color: #5674a4;
    background-image: linear-gradient(90deg, var(--button-blue-start) 0%, var(--button-blue-end) 100%) !important;
    border-color: #2b4e7d !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(31, 60, 99, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(90deg, #5477b8 0%, #173255 100%) !important;
    border-color: #234067 !important;
    color: var(--white) !important;
    box-shadow: 0 8px 18px rgba(31, 60, 99, 0.3) !important;
}

.btn-outline-primary {
    color: #2e4f8f !important;
    border-color: #6f90d8 !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(90deg, var(--button-blue-start) 0%, var(--button-blue-end) 100%) !important;
    border-color: #1f2d40 !important;
    color: var(--white) !important;
}

.btn-danger {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Navbar */
.navbar {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%) !important;
    box-shadow: 0 10px 24px rgba(21, 76, 103, 0.16);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-red) !important;
    font-size: 1.5rem;
}

.navbar-brand img {
    width: 44px;
    height: 44px;
    margin-right: 10px;
    object-fit: cover;
    object-position: center 54%;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 47, 63, 0.24);
}

.top-nav-center {
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
    background-color: rgba(43, 81, 101, 0.12);
}

.nav-link i {
    margin-right: 5px;
}

/* Badge for notifications */
.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-badge-inline {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-left: 0.45rem;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-nav-center .nav-item .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.top-nav-center .nav-item .nav-link .message-badge-inline {
    margin-left: 0.25rem;
    transform: none;
}

.timeline-toolbar {
    gap: 12px;
}

.compact-search {
    display: flex;
    align-items: center;
}

.compact-search-nav {
    min-width: 52px;
    flex-direction: row-reverse;
}

.compact-search-toggle {
    width: 52px;
    height: 44px;
    border-radius: 12px;
}

.compact-search-toggle i {
    font-size: 1.15rem;
}

.compact-search-expand {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(430px, 62vw);
}

.compact-search-nav .compact-search-expand {
    margin-right: 8px;
}

.compact-search-expand .form-control {
    height: 44px;
    border-radius: 12px;
}

.compact-search-go {
    min-width: 52px;
    height: 44px;
    border-radius: 12px;
}

.home-search-nav-item {
    display: flex;
    align-items: center;
}

.top-nav-icon-item,
.top-nav-profile-item {
    display: flex;
    align-items: center;
}

.top-nav-icon-link {
    width: 52px;
    height: 44px;
    padding: 0 !important;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
}

.top-nav-icon-link i {
    margin-right: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.top-nav-profile-link {
    min-height: 44px;
    padding: 0.3rem 0.9rem !important;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
    gap: 0.85rem;
}

.top-nav-profile-link::after {
    margin-left: 0;
}

.top-nav-profile-name {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-top: 1px;
}

@media (max-width: 767.98px) {
    .timeline-toolbar {
        align-items: center !important;
    }

    .compact-search-expand {
        width: min(74vw, 320px);
    }
}

@media (max-width: 991.98px) {
    .home-search-nav-item {
        width: 100%;
        margin: 0.5rem 0;
    }

    .home-search-nav-item .compact-search-nav {
        width: 100%;
        justify-content: flex-end;
    }

    .home-search-nav-item .compact-search-nav .compact-search-expand {
        width: min(100%, 420px);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(21, 76, 103, 0.13), 0 4px 10px rgba(21, 76, 103, 0.1);
    background-color: var(--white);
    margin-bottom: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12), 0 4px 10px rgba(17, 24, 39, 0.08);
}

/* Online members widget (admin-only) */
.online-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 2px;
}

.online-person {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.online-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    border: 2px solid rgba(244, 186, 130, 0.9);
    box-shadow: 0 10px 18px rgba(21, 76, 103, 0.16);
}

.online-avatar.has-image {
    background: rgba(31, 111, 150, 0.12);
}

.online-avatar.no-image {
    /* Default avatar should match post-avatar (teal gradient + peach ring). */
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
}

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

.online-initials {
    font-weight: 700;
    color: #ffffff;
}

.online-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    position: absolute;
    right: -1px;
    bottom: -1px;
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Post Card */
.post-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(21, 76, 103, 0.2), 0 8px 16px rgba(21, 76, 103, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d8e6ef;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(21, 76, 103, 0.24), 0 10px 20px rgba(21, 76, 103, 0.18);
}

.timeline-post {
    border-left: 4px solid #f4ba82;
    padding-left: 12px;
}

.wall-post-card {
    padding: 1.35rem 1.5rem 1rem;
    border-radius: 24px;
    border: 1px solid #e1e5ea;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.wall-post-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.wall-post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.wall-post-author {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.wall-post-avatar {
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8edf2;
    color: #415261;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #d5dbe1;
}

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

.wall-post-author-meta {
    min-width: 0;
}

.wall-post-author-name {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.wall-post-author-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
}

.wall-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}

.wall-role-pill.is-admin {
    background: #e8f1ff;
    color: #1b66d1;
}

.wall-role-pill.is-staff {
    background: #ebf8f1;
    color: #178a57;
}

.wall-role-pill.is-member {
    background: #f1f5f9;
    color: #475569;
}

.wall-post-dot {
    color: #9ca3af;
}

.wall-post-menu {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
}

.wall-post-menu:hover {
    background: #f3f4f6;
    color: #374151;
}

.wall-post-content {
    margin-top: 0.95rem;
    color: #111827;
    font-size: 1.15rem;
    line-height: 1.5;
    word-break: break-word;
    font-weight: 400;
}

.wall-post-content p:last-child {
    margin-bottom: 0;
}

.wall-post-content strong,
.wall-post-content b,
.post-content strong,
.post-content b {
    font-weight: 700;
}

.wall-post-media {
    margin-top: 1rem;
}

.post-card > .wall-post-media {
    padding: 0 1rem 0.35rem;
}

.post-card > .wall-post-media .post-rich-media-card {
    margin-inline: 0;
}

.wall-post-stats {
    margin-top: 1rem;
    padding-inline: 1rem;
    padding-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.wall-reaction-summary,
.wall-stat-link {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 28px;
    color: #6b7280;
}

.wall-reaction-icons {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.wall-reaction-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid #fff;
    margin-right: -6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.wall-reaction-badge.is-like {
    background: #1877f2;
}

.wall-reaction-badge.is-love {
    background: #f43f5e;
}

.wall-reaction-badge i {
    font-size: 0.92rem;
    line-height: 1;
}

.wall-reaction-count {
    font-size: 1.05rem;
    font-weight: 500;
}

.wall-stat-link {
    font-size: 1rem;
}

.wall-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    padding: 0.5rem 1rem 0.2rem;
}

.post-card .wall-post-stats {
    padding-inline: 1.5rem;
}

.post-card .wall-action-row {
    padding: 0.6rem 1.5rem 0.25rem;
    column-gap: 0.25rem;
}

.wall-action-row > * {
    min-width: 0;
    width: 100%;
}

.wall-reaction-trigger {
    position: relative;
    min-width: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.wall-action-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    background: transparent;
    border-radius: 14px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    min-width: 0;
    padding: 0 0.75rem;
    white-space: nowrap;
}

.wall-action-row .wall-action-btn > span:last-child {
    display: inline-block;
    min-width: 0;
    text-align: center;
}

.wall-action-btn .wall-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 1.45rem;
    line-height: 1;
}

.wall-action-btn .wall-action-icon-placeholder {
    display: none;
}

.wall-action-like .wall-action-icon i,
.wall-reaction-badge i {
    color: inherit;
}

.reaction-button-badge,
.reaction-button-emoji {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reaction-button-badge {
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.reaction-button-badge i {
    color: inherit;
    font-size: 1rem;
}

.reaction-button-badge.is-like {
    background: linear-gradient(180deg, #2f8cff 0%, #1877f2 100%);
}

.reaction-button-badge.is-love {
    background: linear-gradient(180deg, #ff6c8e 0%, #f43f5e 100%);
}

.reaction-button-emoji {
    font-size: 1.35rem;
    filter: saturate(1.08);
}

.reaction-button-emoji.is-care,
.reaction-option-emoji.is-care {
    filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.26));
}

.reaction-button-emoji.is-haha,
.reaction-option-emoji.is-haha {
    filter: drop-shadow(0 4px 10px rgba(250, 204, 21, 0.28));
}

.reaction-button-emoji.is-wow,
.reaction-option-emoji.is-wow {
    filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.24));
}

.reaction-button-emoji.is-sad,
.reaction-option-emoji.is-sad {
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.24));
}

.reaction-button-emoji.is-angry,
.reaction-option-emoji.is-angry {
    filter: drop-shadow(0 4px 10px rgba(239, 68, 68, 0.24));
}

.wall-action-like.liked.is-like {
    color: #1877f2;
}

.wall-action-like.liked.is-love {
    color: #f43f5e;
}

.wall-action-like.liked.is-sad,
.wall-action-like.liked.is-care,
.wall-action-like.liked.is-haha {
    color: #f59e0b;
}

.wall-action-like.liked.is-wow {
    color: #f97316;
}

.wall-action-like.liked.is-sad {
    color: #3b82f6;
}

.wall-action-like.liked.is-angry {
    color: #ef4444;
}

.wall-action-row > .wall-action-btn.action-start {
    justify-content: center;
}

.wall-action-row > .wall-action-btn.action-center {
    justify-content: center;
}

.wall-action-row > .wall-action-btn.action-end {
    justify-content: center;
}

.wall-action-row > .wall-action-btn:not(.action-start):not(.action-center):not(.action-end) {
    justify-content: center;
}

.translation-action-wrap {
    display: flex;
    align-items: stretch;
}

.translation-split {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(58, 123, 177, 0.18);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(58, 123, 177, 0.1) 0%, rgba(58, 123, 177, 0.04) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.translation-split-main,
.translation-split-toggle {
    border: none;
    background: transparent;
    color: #315a77;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.translation-split-main {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
}

.translation-split-main--compact,
.translation-split-toggle--compact {
    min-height: 34px;
}

.translation-split-main--compact {
    padding: 0.32rem 0.56rem;
    font-size: 0.88rem;
    min-width: 40px;
}

.translation-split-toggle--compact {
    padding: 0.32rem 0.5rem;
}

.translation-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.translation-split-toggle {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border-left: 1px solid rgba(58, 123, 177, 0.12);
}

.translation-split:hover {
    background: linear-gradient(180deg, rgba(58, 123, 177, 0.16) 0%, rgba(58, 123, 177, 0.08) 100%);
}

.translation-split-main:hover,
.translation-split-toggle:hover {
    color: #23495b;
}

.translation-split.is-block {
    width: 100%;
}

.translation-split.is-block .translation-split-main {
    justify-content: center;
    flex: 1;
}

.dropdown.inline-dropdown-open {
    position: relative;
}

.translation-split + .dropdown-menu {
    left: auto;
    right: 0;
    min-width: 220px;
    width: max-content;
    max-width: min(280px, calc(100vw - 32px));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.translation-split + .dropdown-menu .dropdown-item {
    white-space: nowrap;
}

.translated-copy {
    margin-top: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #eef3f7 0%, #dde7ef 100%);
    border: 1px solid #cad7e2;
    color: #17303f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.translated-copy-label {
    margin-bottom: 0.42rem;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #406173;
}

.translated-copy--pending {
    background: #eef4f8;
    border: 1px dashed #bfd2df;
    color: #587488;
}

.translated-copy--error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.wall-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.wall-action-btn.liked {
    color: inherit;
}

.wall-action-like {
    position: relative;
    overflow: visible;
}

.wall-action-like:active .wall-action-icon,
.wall-action-like:active .reaction-button-badge,
.wall-action-like:active .reaction-button-emoji {
    transform: scale(0.92);
}

.wall-action-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.16s ease;
}

.wall-reaction-picker {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
}

.wall-reaction-picker::after {
    display: none;
}

.wall-reaction-picker.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: pickerBloom 0.22s ease-out;
}

.wall-reaction-option {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 999px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.14s ease, background-color 0.14s ease, filter 0.14s ease;
    animation: reactionPickerFloat 2.6s ease-in-out infinite;
    animation-delay: calc(var(--reaction-index, 0) * 0.04s);
}

.wall-reaction-option:hover {
    transform: translateY(-10px) scale(1.12);
    background: #f8fafc;
    filter: saturate(1.08);
}

.wall-reaction-option:active {
    transform: translateY(-4px) scale(0.98);
}

.reaction-option-badge,
.reaction-option-emoji {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reaction-option-badge {
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.reaction-option-badge i {
    color: inherit;
    font-size: 1.18rem;
}

.reaction-option-badge.is-like {
    background: linear-gradient(180deg, #2f8cff 0%, #1877f2 100%);
}

.reaction-option-badge.is-love {
    background: linear-gradient(180deg, #ff6c8e 0%, #f43f5e 100%);
}

.reaction-option-emoji {
    font-size: 1.95rem;
}

.wall-reaction-option.is-care .reaction-option-emoji,
.wall-reaction-option.is-haha .reaction-option-emoji,
.wall-reaction-option.is-wow .reaction-option-emoji,
.wall-reaction-option.is-sad .reaction-option-emoji,
.wall-reaction-option.is-angry .reaction-option-emoji {
    filter: saturate(1.06);
}

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

@keyframes pickerBloom {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.88);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wall-comment-bar {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wall-comment-input {
    flex: 1;
    min-height: 50px;
    border-radius: 999px;
    background: #eef2f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem 0.8rem 1.15rem;
    font-size: 1rem;
}

.wall-comment-textbox {
    flex: 1;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 1rem;
    outline: none;
}

.wall-comment-textbox::placeholder {
    color: #6b7280;
}

.wall-comment-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #64748b;
    font-size: 1.15rem;
}

.wall-comment-tool-btn {
    border: none;
    background: transparent;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.wall-comment-tool-btn:hover {
    background: rgba(31, 111, 150, 0.1);
    color: var(--primary-red);
}

.wall-comment-tool-btn.is-send {
    background: var(--primary-red);
    color: #fff;
}

.wall-comment-tool-btn.is-send:hover {
    background: var(--primary-red-dark);
    color: #fff;
}

.wall-comment-tool-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wall-comment-media-preview {
    margin-top: 0.75rem;
}

.wall-comment-media-preview-card {
    position: relative;
    display: inline-flex;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(210, 223, 233, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.wall-comment-media-preview-card img {
    display: block;
    max-width: 180px;
    max-height: 180px;
    object-fit: cover;
}

.wall-comment-media-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wall-comments-list {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.6rem;
}

.wall-comment-item {
    padding: 0.2rem 0;
    border: none;
    margin-bottom: 0;
}

.wall-comment-item .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.wall-comment-item .comment-bubble {
    border-radius: 16px;
}

.wall-comment-attachment {
    margin-top: 0.55rem;
}

.wall-comment-attachment img {
    max-width: 220px;
    border-radius: 14px;
    display: block;
}

.share-user-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.7rem;
    font-weight: 500;
}

.share-user-chip .btn-close {
    font-size: 0.55rem;
}

.new-message-results {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 768px) {
    .wall-post-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .wall-post-author-name {
        font-size: 1rem;
    }

    .wall-post-content {
        font-size: 1rem;
    }

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

    .wall-action-row {
        grid-template-columns: 1fr;
    }

    .wall-comment-input {
        padding-right: 0.85rem;
    }

    .wall-comment-tools {
        gap: 0.65rem;
        font-size: 1rem;
    }

    .wall-reaction-picker {
        gap: 0.25rem;
        padding: 0.4rem;
    }

    .wall-reaction-option {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }
}

.post-header {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.post-avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: white;
    border: 2px solid rgba(244, 186, 130, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 12px;
    overflow: hidden;
    position: relative;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.post-author {
    font-weight: 600;
    color: var(--dark-gray);
}

.post-time {
    font-size: 0.85rem;
    color: #4f6371;
    font-weight: 600;
}

.post-content {
    padding: 0 1rem 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.post-content-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.post-content-preview.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.post-more-link {
    color: var(--secondary-gray);
    text-decoration: none;
}

.post-more-link:hover {
    color: var(--primary-red-dark);
    text-decoration: none;
}

.post-body-clickable {
    cursor: default;
}

.post-open-zone {
    cursor: default;
}

.post-comments-preview {
    margin: 0.65rem 0 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.post-comments-preview:empty {
    display: none;
}

.post-inline-composer .post-comments-preview {
    margin: 0 0 0.65rem;
    padding: 0;
}

.post-preview-more {
    color: #556a78;
    font-size: 0.95rem;
    margin-top: 0.15rem;
    font-weight: 600;
    cursor: pointer;
}

.post-preview-more:hover {
    color: #1f3e4f;
}

.post-comments-preview .comments-zebra > .comment-item {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0.3rem 0 !important;
    background: transparent;
}

.post-comments-preview .comments-zebra > .comment-item + .comment-item {
    margin-top: 0.25rem;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: #f2f7fa;
}

.post-actions {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
    gap: 0.25rem;
}

.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: none;
    background: none;
    color: var(--secondary-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 500;
}

.post-action-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

.post-action-btn.liked {
    color: #1877f2;
    font-weight: 700;
}

.post-action-btn.liked i {
    color: #1877f2;
}

.post-action-btn.liked:hover {
    background-color: rgba(24, 119, 242, 0.12);
    color: #1877f2;
}

.post-action-btn i {
    margin-right: 6px;
    font-size: 1.1rem;
}

/* Create Post */
.create-post-card {
    padding: 1rem;
}

.create-post-input {
    display: flex;
    align-items: flex-start;
}

.create-post-input textarea {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px 20px;
    resize: none;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.create-post-input textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.composer-live-preview {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d9e6ef;
    border-radius: 14px;
    background: #f8fbfd;
    color: #2a3b47;
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
}

.composer-live-preview:empty {
    display: none;
}

.wa-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #eef3f7;
    border: 1px solid #dbe5ec;
    border-radius: 6px;
    padding: 0.08rem 0.32rem;
    white-space: pre-wrap;
}

.create-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

#postAudienceWrap {
    min-width: 180px;
}

.media-buttons button {
    border: none;
    background: none;
    color: var(--secondary-gray);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-buttons button:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
}

.admin-layout {
    align-items: flex-start;
}

.admin-sidebar {
    position: sticky;
    top: 84px;
    height: fit-content;
}

.admin-sidebar .card {
    border-radius: 12px;
}

.sidebar-card {
    border-radius: 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-item:hover {
    background-color: var(--light-gray);
}

.sidebar-item i {
    width: 30px;
    color: var(--primary-red);
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .admin-sidebar {
        position: static;
        top: auto;
    }
}

/* Profile */
.profile-cover {
    height: 200px;
    background-color: var(--primary-red);
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    background: linear-gradient(150deg, #3a7896 0%, #2b637f 100%);
    border: 4px solid #d4a06c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #f4efe8;
    box-shadow: 0 10px 22px rgba(23, 58, 78, 0.26);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info {
    padding: 24px 30px 26px;
}

.profile-top-row {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(220px, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-identity {
    min-width: 0;
}

.profile-right {
    justify-self: stretch;
}

.profile-actions {
    justify-self: end;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
}

.profile-username {
    color: var(--secondary-gray);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Comments */
.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.42rem 0;
    border-bottom: 0;
}

.comments-zebra > .comment-item {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0.42rem 0;
    background: transparent;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(150deg, #3a7896 0%, #2b637f 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.82rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.comment-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.comment-top-row .comment-bubble {
    flex: 1 1 auto;
}

.comment-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: #17303f;
}

.comment-text {
    margin-top: 4px;
    color: var(--dark-gray);
    line-height: 1.42;
}

.comment-bubble {
    display: inline-block;
    max-width: min(100%, 700px);
    background: #edf1f5;
    border: 0;
    border-radius: 18px;
    padding: 0.62rem 0.82rem;
    box-shadow: none;
}

.comment-text-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-more-link {
    margin-top: 0.25rem;
    color: #556a78;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
}

.wall-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    margin-top: 0.42rem;
}

.wall-comments-list .comment-item {
    padding: 0.12rem 0;
    border-bottom: 0;
}

.wall-comments-list .comment-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.84rem;
}

.wall-comments-list .comment-content {
    min-width: 0;
}

.wall-comments-list .comment-time {
    padding-left: 0.16rem;
}

.post-rich-media-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #dbe5ec;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.post-rich-media-card.is-video,
.post-rich-media-card.is-document {
    display: block;
}

.post-rich-media-card.is-audio {
    display: block;
    padding: 14px 16px;
}

.post-media-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1f7;
    color: #2f6e8b;
    font-size: 1.3rem;
    flex: 0 0 48px;
}

.post-media-icon.is-audio {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-basis: 42px;
    font-size: 1.1rem;
}

.post-media-main {
    min-width: 0;
    flex: 1 1 auto;
}

.post-media-file {
    font-weight: 700;
    color: #183547;
    word-break: break-word;
}

.post-media-type {
    font-size: 0.92rem;
    color: #607383;
    margin-top: 2px;
}

.post-media-audio-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.post-media-audio-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.post-media-download-link {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2b6f92;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
}

.post-media-download-link:hover,
.post-media-download-link:focus {
    color: #154c67;
    text-decoration: underline;
}

.post-inline-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #eef4f8;
    border: 1px solid #d8e4eb;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.post-inline-audio-element {
    display: none;
}

.post-inline-audio-play {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #3d6da8 0%, #224766 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 8px 16px rgba(28, 63, 95, 0.18);
    flex: 0 0 38px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.post-inline-audio-play:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 22px rgba(28, 63, 95, 0.22);
}

.post-inline-audio-play:disabled {
    opacity: 0.58;
    cursor: wait;
    box-shadow: none;
}

.post-inline-audio-timeline {
    min-width: 0;
    flex: 1 1 auto;
}

.post-inline-audio-slider {
    width: 100%;
    margin: 0;
    accent-color: #2b6f92;
}

.post-inline-audio-time {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #5d7281;
    text-align: right;
    min-height: 1.1rem;
}

.post-inline-audio-player.is-loading .post-inline-audio-time {
    color: #8aa0b0;
}

.post-inline-audio-player.is-ready {
    border-color: #bfd7e5;
    box-shadow: 0 10px 24px rgba(38, 74, 106, 0.08);
}

.post-inline-audio-player.is-error {
    background: #f5f7f9;
}

.post-upload-preview-card-audio {
    max-width: 520px;
}

.post-document-preview {
    margin-top: 12px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f3f7fa;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid #dde7ee;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92rem;
}

.post-document-placeholder {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #f5f7fa;
    color: #5b6c79;
    border: 1px dashed #ccd7e0;
}

.post-video-status {
    margin-top: 10px;
    font-size: 0.88rem;
    color: #617684;
}

.post-video-quality-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.post-video-quality-label {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #365466;
}

.post-video-quality-select {
    max-width: 180px;
    border-radius: 12px;
}

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

.post-upload-preview-card {
    min-width: 260px;
    max-width: 420px;
    padding: 16px;
    background: #f6fafc;
    border: 1px solid #d8e3ea;
    border-radius: 18px;
}

.post-upload-preview-title {
    font-weight: 700;
    color: #1f3746;
    word-break: break-word;
}

.edit-post-modal .modal-dialog {
    max-width: 980px;
}

.edit-post-modal .modal-content {
    border-radius: 28px;
    overflow: hidden;
    min-height: min(86vh, 920px);
}

.edit-post-modal .modal-header,
.edit-post-modal .modal-footer {
    padding: 20px 28px;
    background: #fff;
}

.edit-post-modal .modal-body {
    padding: 24px 28px 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.edit-post-composer-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.edit-post-composer-avatar .post-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
}

.edit-post-composer-meta {
    min-width: 0;
}

.edit-post-composer-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #183547;
}

.edit-post-composer-name-row strong {
    font-size: 1.18rem;
}

.edit-post-composer-subline {
    margin-top: 2px;
    color: #738898;
    font-size: 0.95rem;
}

.edit-post-modal .form-control,
.edit-post-modal .form-select {
    border-radius: 18px;
}

.edit-post-textarea {
    min-height: 280px;
    resize: vertical;
    font-size: 1.42rem;
    line-height: 1.68;
    border: 3px solid #60a5fa !important;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.18);
    padding: 1.35rem 1.45rem;
    background: #ffffff;
    color: #173142;
    caret-color: #2563eb;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.edit-post-textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.22);
    background: #fbfdff;
    outline: none;
}

.edit-post-preview {
    margin-top: 18px;
}

.edit-post-tools {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.edit-post-tools-note {
    color: #607788;
    font-size: 0.92rem;
}

.edit-post-preview-shell {
    position: relative;
    border: 1px solid #dbe5ec;
    border-radius: 26px;
    overflow: hidden;
    background: #f7fbfe;
    box-shadow: 0 16px 34px rgba(20, 45, 64, 0.08);
}

.edit-post-preview-topbar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.edit-post-preview-action {
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #4a5d6c;
    box-shadow: 0 8px 24px rgba(22, 49, 69, 0.16);
}

.edit-post-preview-pill {
    border: 0;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #475b6a;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(22, 49, 69, 0.14);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.edit-post-preview-pill:hover,
.edit-post-preview-action:hover {
    background: #ffffff;
    color: #173547;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(22, 49, 69, 0.18);
}

.edit-post-preview-shell .wall-post-media,
.edit-post-preview-shell .post-rich-media-card {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.edit-post-preview-link {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.edit-post-preview-link-url {
    font-size: 0.82rem;
    color: #6b7f8e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.edit-post-preview-link-card {
    margin-top: 10px;
    border: 1px solid #dbe5ec;
    border-radius: 20px;
    padding: 16px 18px;
    background: #ffffff;
    color: #183547;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 768px) {
    .edit-post-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    .edit-post-modal .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }

    .edit-post-modal .modal-header,
    .edit-post-modal .modal-body,
    .edit-post-modal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .edit-post-textarea {
        min-height: 220px;
        font-size: 1.2rem;
        padding: 1.05rem 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .post-media-audio-title-row {
        flex-direction: column;
        gap: 4px;
    }

    .post-media-download-link {
        margin-left: 0;
    }
}

.comment-actions {
    margin-top: 3px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 0.16rem;
    font-size: 0.8rem;
    color: #6a7d89;
    font-weight: 700;
}

.comment-action-link {
    cursor: pointer;
    color: #607383;
    text-decoration: none;
}

.comment-action-link:hover {
    color: var(--primary-red);
}

.translation-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(58, 123, 177, 0.18);
    background: linear-gradient(180deg, rgba(58, 123, 177, 0.1) 0%, rgba(58, 123, 177, 0.04) 100%);
    color: #315a77;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.translation-action-btn:hover {
    background: linear-gradient(180deg, rgba(58, 123, 177, 0.16) 0%, rgba(58, 123, 177, 0.08) 100%);
    color: #23495b;
}

.comment-translation-slot {
    margin-left: auto;
}

.comment-translation-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.45rem;
}

.wall-post-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.comment-like-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6a7d89;
    font-weight: 700;
    cursor: pointer;
}

.comment-reaction-icons {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-right: 2px;
}

.comment-reaction-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid #fff;
    margin-right: -6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    line-height: 1;
}

.comment-reaction-badge.is-like {
    background: #1877f2;
}

.comment-reaction-badge.is-love {
    background: #f43f5e;
}

.comment-reaction-badge.is-sad {
    background: #fbbf24;
    color: #3f2f0a;
}

.comment-reaction-badge.is-wow {
    background: #fb923c;
}

.mention-link {
    color: #1b74e4;
    font-weight: 600;
    text-decoration: none;
}

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

.mention-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

.mention-suggestion-item {
    width: 100%;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #1f2a37;
}

.mention-suggestion-item.is-active,
.mention-suggestion-item:hover {
    background: #f0f6ff;
}

.mention-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9eef5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #516174;
}

.mention-suggestions-loading,
.mention-suggestions-empty {
    padding: 8px 12px;
    color: #6b7280;
    font-size: 0.85rem;
}

.comment-like-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #1877f2;
    font-size: 12px;
    line-height: 1;
}

.comment-more-link {
    margin-top: 2px;
    font-size: 0.82rem;
    color: var(--secondary-gray);
    cursor: pointer;
}

.comment-more-link:hover {
    color: var(--primary-red);
}

.comment-time {
    font-size: 0.8rem;
    color: #728592;
    margin-top: 3px;
    padding-left: 0.16rem;
    font-weight: 600;
}

.comment-replies {
    margin-left: 26px;
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
}

.comment-replies.comments-zebra {
    border-left-color: rgba(198, 212, 224, 0.95);
}

.comment-preview-thread-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    margin-left: 6px;
    color: #6a7d89;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.comment-preview-thread-line {
    width: 22px;
    height: 20px;
    border-left: 2px solid rgba(198, 212, 224, 0.95);
    border-bottom: 2px solid rgba(198, 212, 224, 0.95);
    border-bottom-left-radius: 14px;
    flex: 0 0 auto;
}

.comment-preview-thread-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(150deg, #3a7896 0%, #2b637f 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
}

.comment-preview-thread-avatar img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.comment-preview-thread-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-reply-composer {
    margin-top: 8px;
    margin-left: 42px;
    background: #f3f6f9;
    border-radius: 14px;
    padding: 10px 12px;
}

.comment-reaction-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    isolation: isolate;
    z-index: 5;
}

.comment-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #556a78;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0;
}

.comment-reaction-btn.is-like {
    color: #1b74e4;
}

.comment-reaction-btn.is-love {
    color: #e0245e;
}

.comment-reaction-picker {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    border-radius: 999px;
    left: 0;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
    white-space: nowrap;
}

.comment-reaction-picker::after {
    display: none;
}

.comment-reaction-picker.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    animation: pickerBloom 0.22s ease-out;
}

.reaction-tabs {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.reaction-tab-btn {
    border: 0;
    background: transparent;
    font-weight: 700;
    color: #5a6d7b;
    padding: 6px 4px;
    border-bottom: 3px solid transparent;
}

.reaction-tab-btn.is-active {
    color: #1b74e4;
    border-color: #1b74e4;
}

.reply-actions {
    margin-top: 6px;
}

.post-inline-comments {
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(243, 244, 246, 0.55), rgba(243, 244, 246, 0.2));
}

.post-inline-composer textarea {
    border-radius: 14px;
}

/* Groups */
.group-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.group-card:hover {
    transform: translateY(-2px);
}

.group-cover {
    height: 100px;
    background-color: var(--primary-red);
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
}

.group-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.group-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 12px;
    background-color: var(--white);
    border: 3px solid var(--white);
    margin-top: -30px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.group-avatar img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.group-info {
    padding: 10px 15px 15px;
}

.group-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.group-members {
    color: var(--secondary-gray);
    font-size: 0.85rem;
}

.badge-public {
    background-color: var(--success);
}

.badge-private {
    background-color: var(--warning);
}

/* Messages */
.chat-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.chat-item-even {
    background: #ffffff;
}

.chat-item-odd {
    background: #f6f9fd;
}

.chat-item:hover,
.chat-item.active {
    background-color: rgba(220, 38, 38, 0.05);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 12px;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
}

.chat-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chat-unread-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

.chat-preview {
    font-size: 0.85rem;
    color: var(--secondary-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.chat-preview-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.chat-messages {
    height: calc(100vh - 280px);
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--light-gray);
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
}

.message-sent {
    background-color: #dceeff;
    color: #12314a;
    border: 1px solid #c6deef;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-received {
    background-color: var(--white);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.95;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.message-tick {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
}

.message-tick.message-tick-compact {
    font-size: 0.78rem;
}

.message-tick.is-sent,
.message-tick.is-delivered {
    color: #6b7280;
}

.message-tick.is-read {
    color: #1f7aff;
}

.message-input-container {
    display: flex;
    padding: 1rem;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.message-input-container input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 20px;
    margin-right: 10px;
}

.message-input-container input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Notifications */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #eef4f9;
}

.notification-item.unread {
    box-shadow: inset 3px 0 0 rgba(220, 38, 38, 0.7);
}

.notification-item.alt-a {
    background-color: #ffffff;
}

.notification-item.alt-b {
    background-color: #f6f9fc;
}

.notification-item.unread.alt-a {
    background-color: #fff8f8;
}

.notification-item.unread.alt-b {
    background-color: #fff4f4;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-text {
    line-height: 1.4;
}

.notification-context {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #516270;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--secondary-gray);
    margin-top: 4px;
}

/* Friends */
.friend-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--white);
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease;
}

.friend-card:hover {
    transform: translateX(5px);
}

/* Admin */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
}

.stat-card.users {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
}

.stat-card.groups {
    background: linear-gradient(135deg, var(--info), #2563eb);
}

.stat-card.messages {
    background: linear-gradient(135deg, var(--success), #059669);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tables */
.table-custom {
    border-radius: 12px;
    overflow: hidden;
}

.table-custom th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--dark-gray);
    border: none;
}

.table-custom td {
    vertical-align: middle;
    border-color: var(--border-color);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-gray);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    object-position: center 54%;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15, 47, 63, 0.24);
}

.auth-logo h1 {
    color: var(--primary-red);
    font-weight: 700;
    margin-top: 0.5rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.custom-toast {
    min-width: 300px;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 10px;
    color: white;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease forwards;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.toast-success {
    background-color: var(--success) !important;
}

.toast-error {
    background-color: var(--danger) !important;
}

.toast-warning {
    background-color: var(--warning) !important;
}

.toast-info {
    background-color: var(--info) !important;
}

.custom-toast i {
    margin-right: 10px;
    font-size: 1.2rem;
}


/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-red);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--dark-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        min-width: 80px;
        min-height: 80px;
    }

    .profile-info {
        padding: 18px 20px 20px;
    }

    .profile-top-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-right {
        justify-self: start;
    }

    .profile-actions {
        justify-self: start;
    }

    .chat-messages {
        height: calc(100vh - 350px);
    }

    .top-nav-center {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-red) !important;
}

.bg-primary {
    background-color: var(--primary-red) !important;
}

.border-primary {
    border-color: var(--primary-red) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}

/* Global button theme override (cache-safe, final override) */
.btn,
button.btn,
a.btn,
input.btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-success,
.btn.btn-info {
    background: linear-gradient(135deg, #3a7896 0%, #2f6e8b 52%, #285f79 100%) !important;
    background-color: #2f6e8b !important;
    border: 1px solid #d4a06c !important;
    color: #f4efe8 !important;
    box-shadow: 0 6px 14px rgba(23, 58, 78, 0.26) !important;
}

.btn.btn-primary:hover,
.btn.btn-secondary:hover,
.btn.btn-success:hover,
.btn.btn-info:hover,
.btn.btn-primary:focus,
.btn.btn-secondary:focus,
.btn.btn-success:focus,
.btn.btn-info:focus {
    background: linear-gradient(135deg, #356f8c 0%, #2b637f 52%, #24596f 100%) !important;
    background-color: #2b637f !important;
    border-color: #c99563 !important;
    color: #fbf3ea !important;
    box-shadow: 0 8px 16px rgba(23, 58, 78, 0.3) !important;
}

.btn.btn-danger {
    background: linear-gradient(90deg, #e0616a 0%, #bb3743 100%) !important;
    background-color: #c6404b !important;
    border: 1px solid #ac2e3a !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(172, 46, 58, 0.24) !important;
}

.btn.btn-danger:hover,
.btn.btn-danger:focus {
    background: linear-gradient(90deg, #cc4f59 0%, #9f2b35 100%) !important;
    background-color: #ac2e3a !important;
    border-color: #8f212d !important;
    color: #ffffff !important;
}

.btn.btn-warning {
    background: linear-gradient(90deg, #f2b463 0%, #d58c2f 100%) !important;
    background-color: #dd9a45 !important;
    border: 1px solid #c47f2d !important;
    color: #1f2937 !important;
}

.btn.btn-warning:hover,
.btn.btn-warning:focus {
    background: linear-gradient(90deg, #e4a14a 0%, #bf7622 100%) !important;
    background-color: #c98533 !important;
    border-color: #af6a1d !important;
    color: #111827 !important;
}

.btn.btn-outline-primary,
.btn.btn-outline-secondary,
.btn.btn-outline-success,
.btn.btn-outline-danger,
.btn.btn-outline-warning,
.btn.btn-outline-info {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-width: 1px !important;
    box-shadow: 0 4px 10px rgba(24, 58, 104, 0.08);
}

.btn.btn-outline-primary,
.btn.btn-outline-secondary,
.btn.btn-outline-success,
.btn.btn-outline-info {
    border-color: #2f6e8b !important;
    color: #255a74 !important;
}

.btn.btn-outline-danger {
    border-color: #c6404b !important;
    color: #bb3743 !important;
}

.btn.btn-outline-warning {
    border-color: #d58c2f !important;
    color: #9b5f12 !important;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover,
.btn.btn-outline-success:hover,
.btn.btn-outline-info:hover {
    background: linear-gradient(135deg, #3a7896 0%, #2f6e8b 52%, #285f79 100%) !important;
    border-color: #d4a06c !important;
    color: #f4efe8 !important;
}

.btn.btn-outline-danger:hover {
    background: linear-gradient(90deg, #e0616a 0%, #bb3743 100%) !important;
    border-color: #ac2e3a !important;
    color: #ffffff !important;
}

.btn.btn-outline-warning:hover {
    background: linear-gradient(90deg, #f2b463 0%, #d58c2f 100%) !important;
    border-color: #c47f2d !important;
    color: #1f2937 !important;
}

.post-like-count-link {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.timeline-week-divider {
    border-top: 1px solid rgba(10, 35, 66, 0.12);
    margin-top: 0.5rem;
}
.youtube-embed-card {
    margin-top: 1rem;
    border: 1px solid rgba(69, 100, 124, 0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(31, 60, 99, 0.08);
}

.youtube-embed-card .youtube-embed-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.youtube-embed-card .youtube-embed-launcher {
    cursor: pointer;
}

.youtube-embed-card .youtube-embed-launcher img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-embed-card .youtube-embed-launcher::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.youtube-embed-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.youtube-embed-card .youtube-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.youtube-search-card-body {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.youtube-search-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.youtube-search-card-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.youtube-search-card-query {
    opacity: 0.92;
    word-break: break-word;
}

.youtube-embed-card .youtube-embed-launcher.is-active::after,
.youtube-embed-card .youtube-embed-launcher.is-active .youtube-embed-play-button,
.youtube-embed-card .youtube-embed-launcher.is-active img {
    display: none;
}
