.navbar-form input,
.form-inline input {
    width: auto;
}
#upload_image {
    background: #c3c3c3;
    border-radius: 35px;
    padding: 16px;
    margin-bottom: 10px;
}
.col-md-10 > p {
    color: maroon;
}
.alerta {
    border: none;
    margin-bottom: 0px !important;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(184, 211, 207, 0.91);
}
.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon.rotate {
    transform: rotate(180deg);
}
.alert {
    border: 2px solid;
    margin-bottom: 10px !important;
}
.photo {
    margin-top: 10px;
}
.top-spacer {
    border-radius: 20px 20px 0 0;
}
.margin-p {
    margin-left: 50px;
}
.mes {
    margin-bottom: 35px;
}
.col-md-10 input {
    margin-left: 12px;
    padding: 5px;
    width: 194px;
}
#po {
    border-bottom: 1px solid;
    border-radius: 11px;
    width: 148px;
}
.col-md-5 > p {
    color: black !important;
}
.top-spacer {
    margin-top: 20px;
}
#photos {
    border-radius: 10px;
    margin-top: -94px;
    padding: 12px;
}
#masthead {
    background: no-repeat !important;
    background-size: cover !important;
}

footer {
    font-size: 16px;
    text-align: center;
    color: black;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
header {
    background: #11a39c;
}
body {
    padding-top: 50px;
    color: #000000;
    background-color: #efefef;
}
h1,
h2,
h3,
.highlight,
.navbar a,
#masthead h4 {
    font-family: sans-serif;
}
.combo {
    margin-bottom: 13px;
    padding: 7px;
    width: 301px;
}
.message {
    border: 1px solid;
    border-radius: 10px;
    padding: 10px;
}
#masthead {
    min-height: 199px;
    background-color: #ffffff;
    color: #000000;
}
#masthead h1 {
    font-size: 55px;
    line-height: 1;
    color: #fefeff;
    margin-top: 50px;
}
#masthead .well {
    margin-top: 31px;
    background-color: #111166;
    border-color: #000022;
    color: #efefff;
    min-height: 127px;
}
#topPanel {
    padding-top: 0px;
    padding-left: 22px;
    padding-right: 22px;
}
#topPanel .panel-body {
    padding-top: 0px;
}
.navbar.affix {
    position: fixed;
    top: 0;
    width: 100%;
}
.top-spacer {
    background-color: #ffffff;
    height: 10px;
}
a,
a:hover {
    color: #000000;
    text-decoration: none;
}
.icon-bar {
    background-color: #000000;
}
@media screen and (min-width: 768px) {
    #masthead h1 {
        font-size: 80px;
    }
}
.navbar-bright {
    color: #fff;
    margin-bottom: 0;
    border-width: 0;
}
.navbar-bright a,
.navbar-bright .navbar-brand,
#masthead h4 {
    color: #000000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.navbar-bright li > a:hover {
    background-color: #11635f;
}
.dropdown-menu {
    min-width: 250px;
}
.caret {
    color: #fff;
}
.navbar-toggle {
    color: #fff;
    border-width: 0;
}
.navbar-toggle:hover {
    background-color: #11635f;
}
.panel {
    display: inline-block;
    background-color: #fff;
    border-radius: 20px;
    width: 100%;
}
.thumbnail {
    margin-bottom: 8px;
}
.img-container {
    overflow: hidden;
    height: 170px;
}
.img-container img {
    min-width: 280px;
    min-height: 180px;
    max-width: 380px;
    max-height: 280px;
}
.txt-container {
    overflow: hidden;
    height: 100px;
}
.panel .lead {
    overflow: hidden;
    height: 90px;
}
.label-float {
    margin: 0 auto;
    position: absolute;
    top: 0;
    z-index: 1;
    width: 100%;
    opacity: 0.9;
    padding: 6px;
    color: #fff;
}

.photo-edit-page {
    width: min(100% - 28px, 980px);
    margin: 26px auto 60px;
}

.photo-edit-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
    gap: 24px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid rgba(17, 163, 156, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(7, 20, 36, 0.16);
    backdrop-filter: blur(14px);
}

.photo-edit-preview,
.photo-edit-actions {
    border-radius: 24px;
}

.photo-edit-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 26px;
    background:
        radial-gradient(circle at 50% 18%, rgba(35, 197, 187, 0.18), transparent 12rem),
        linear-gradient(160deg, rgba(7, 20, 36, 0.96), rgba(17, 163, 156, 0.78));
    color: #ffffff;
    text-align: center;
}

.photo-edit-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.photo-edit-avatar-ring {
    display: grid;
    place-items: center;
    width: min(64vw, 230px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(94, 227, 220, 0.55));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.photo-edit-avatar {
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.photo-edit-note {
    max-width: 310px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.5;
}

.photo-edit-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 8px;
}

.photo-edit-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.photo-edit-icon,
.photo-upload-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    background: rgba(17, 163, 156, 0.12);
    color: #087a76;
}

.photo-edit-icon {
    width: 52px;
    height: 52px;
    font-size: 21px;
}

.photo-edit-heading h1 {
    margin: 0 0 6px;
    color: #14222f;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    line-height: 1.05;
}

.photo-edit-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.45;
}

.photo-edit-form {
    display: grid;
    gap: 14px;
}

.photo-upload-zone {
    display: grid;
    place-items: center;
    min-height: 156px;
    padding: 22px;
    border: 2px dashed rgba(17, 163, 156, 0.32);
    border-radius: 22px;
    background: #f8fbfd;
    color: #14222f;
    cursor: pointer;
    text-align: center;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.photo-upload-zone:hover {
    border-color: rgba(17, 163, 156, 0.68);
    background: rgba(17, 163, 156, 0.07);
    transform: translateY(-1px);
}

.photo-upload-zone input {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.photo-upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 9px;
    font-size: 20px;
}

.photo-upload-title {
    display: block;
    font-size: 17px;
    font-weight: 900;
}

.photo-upload-subtitle {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
}

.photo-selected-preview {
    position: relative;
    display: none;
    width: fit-content;
    margin: 2px auto;
}

.photo-selected-preview.is-visible {
    display: block;
}

#imagePreview {
    display: none;
    width: 138px;
    height: 138px;
    border: 6px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 14px 30px rgba(7, 20, 36, 0.18);
}

#removeImageButton {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #d94d5d, #ef6b55);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(217, 77, 93, 0.28);
}

.photo-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(17, 163, 156, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.photo-action-btn:hover,
.photo-action-btn:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(7, 20, 36, 0.18);
}

.photo-action-save {
    background: linear-gradient(135deg, #11a39c, #23c5bb);
}

.photo-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.photo-secondary-actions form {
    margin: 0;
}

.photo-action-delete {
    background: linear-gradient(135deg, #d94d5d, #ef6b55);
}

.photo-action-back {
    background: linear-gradient(135deg, #475569, #64748b);
}

.modal,
#cropImageModal,
#confirmUploadModal,
#confirmDeleteModal,
#imageRequiredModal {
    z-index: 1080 !important;
}

.modal-backdrop {
    z-index: 1070 !important;
}

#cropImageModal .modal-dialog {
    width: min(92vw, 760px) !important;
    margin: 26px auto;
}

#cropImageModal .modal-content,
#confirmUploadModal .modal-content,
#confirmDeleteModal .modal-content,
#imageRequiredModal .modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(7, 20, 36, 0.24);
}

#cropImageModal .modal-header,
#confirmUploadModal .modal-header,
#confirmDeleteModal .modal-header,
#imageRequiredModal .modal-header {
    border-bottom: 1px solid rgba(17, 163, 156, 0.12);
    background: #f8fbfd;
}

#cropImageModal .modal-footer,
#confirmUploadModal .modal-footer,
#confirmDeleteModal .modal-footer,
#imageRequiredModal .modal-footer {
    border-top: 1px solid rgba(17, 163, 156, 0.12);
    text-align: center;
}

body.dark-mode .photo-edit-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(20, 27, 34, 0.94);
}

body.dark-mode .photo-edit-heading h1,
body.dark-mode .photo-upload-zone,
body.dark-mode #cropImageModal .modal-content,
body.dark-mode #confirmUploadModal .modal-content,
body.dark-mode #confirmDeleteModal .modal-content,
body.dark-mode #imageRequiredModal .modal-content {
    color: #eef6f7;
}

body.dark-mode .photo-edit-heading p,
body.dark-mode .photo-upload-subtitle {
    color: #aebbc7;
}

body.dark-mode .photo-upload-zone,
body.dark-mode #cropImageModal .modal-header,
body.dark-mode #confirmUploadModal .modal-header,
body.dark-mode #confirmDeleteModal .modal-header,
body.dark-mode #imageRequiredModal .modal-header,
body.dark-mode #cropImageModal .modal-footer,
body.dark-mode #confirmUploadModal .modal-footer,
body.dark-mode #confirmDeleteModal .modal-footer,
body.dark-mode #imageRequiredModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 820px) {
    .photo-edit-page {
        width: min(100% - 18px, 620px);
        margin-top: 18px;
    }

    .photo-edit-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        border-radius: 22px;
    }

    .photo-edit-preview {
        min-height: auto;
        padding: 22px 16px;
        border-radius: 20px;
    }

    .photo-edit-avatar-ring {
        width: min(58vw, 190px);
    }

    .photo-edit-note {
        margin-top: 14px;
    }

    .photo-edit-actions {
        padding: 4px 0 0;
    }

    .photo-edit-heading {
        align-items: center;
        margin-bottom: 14px;
    }

    .photo-upload-zone {
        min-height: 140px;
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .photo-edit-page {
        width: min(100% - 14px, 460px);
        margin-bottom: 40px;
    }

    .photo-edit-card {
        padding: 12px;
        border-radius: 20px;
    }

    .photo-edit-heading {
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .photo-edit-heading h1 {
        font-size: 25px;
    }

    .photo-secondary-actions {
        grid-template-columns: 1fr;
    }

    #imagePreview {
        width: 124px;
        height: 124px;
    }

    #cropImageModal .modal-dialog {
        width: calc(100vw - 20px) !important;
        margin: 14px auto;
    }
}
.card-publicacion {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.card-publicacion .autor-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.card-publicacion .autor-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}
.contact-item.active {
    background-color: #f0f8ff;
    border-left: 4px solid #008568;
}
.btn-sm-custom {
    padding: 6px 10px;
}
.autor-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.autor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}
.autor-nombre {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}
.autor-fecha {
    margin: 0;
    font-size: 12px;
    color: gray;
}
/*Estilos botones share*/
.share-links .btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition:
        background-color 0.3s,
        transform 0.2s;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.share-links .btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
#fbShareLink {
    background-color: #3b5998;
    color: #fff;
}
#messengerLink {
    background-color: #0084ff;
    color: #fff;
}
#waShareLink {
    background-color: #25d366;
    color: #fff;
}
#xShareLink {
    background-color: #000;
    color: #fff;
}
#rdShareLink {
    background-color: #ff4500;
    color: #fff;
}
#tgShareLink {
    background-color: #229ed9;
    color: #fff;
}
#mailShareLink {
    background-color: #6c757d;
    color: #fff;
}
#gmailShareLink {
    background-color: #db4437;
    color: #fff;
}
#copyLinkBtn {
    background-color: #6c757d;
    color: #fff;
}
.dots-loader span {
    display: inline-block;
    font-size: 2rem;
    color: #2db8b5;
    animation: bounce 1s infinite ease-in-out;
    margin: 0 5px;
}
.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}
.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes bounce {
    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modern Reppost UI refresh */
:root {
    --rp-bg: #f5f7fb;
    --rp-surface: #ffffff;
    --rp-surface-soft: #eef7f6;
    --rp-text: #14222f;
    --rp-muted: #6b7a89;
    --rp-border: #dfe7ef;
    --rp-primary: #11a39c;
    --rp-primary-dark: #08746f;
    --rp-primary-soft: rgba(17, 163, 156, 0.14);
    --rp-accent: #6d5dfc;
    --rp-success: #19a974;
    --rp-danger: #e5484d;
    --rp-warning: #f5a524;
    --rp-shadow: 0 18px 45px rgba(20, 34, 47, 0.1);
    --rp-shadow-soft: 0 10px 28px rgba(20, 34, 47, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at top left,
            rgba(17, 163, 156, 0.16),
            transparent 34rem
        ),
        linear-gradient(180deg, #f8fbfd 0%, var(--rp-bg) 42%, #eef3f7 100%) !important;
    color: var(--rp-text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    padding-bottom: 32px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 163, 156, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 163, 156, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75),
        transparent 72%
    );
}

#tsparticles {
    opacity: 0.24;
}

.container {
    max-width: 1120px;
}

header.navbar-bright,
header {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 0;
    border-bottom: 1px solid rgba(223, 231, 239, 0.85);
    box-shadow: 0 12px 30px rgba(20, 34, 47, 0.08);
    backdrop-filter: blur(18px);
}

.navbar-bright .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
}

.navbar-bright .navbar-brand img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(17, 163, 156, 0.28);
}

.navbar-bright a,
.navbar-bright .navbar-brand,
#masthead h4 {
    color: var(--rp-text) !important;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.navbar-bright .nav > li > a {
    border-radius: 999px;
    margin: 7px 2px;
    padding: 8px 12px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.navbar-bright .nav > li > a:hover,
.navbar-bright .nav > li > a:focus,
.navbar-bright li > a:hover,
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
    background: var(--rp-primary-soft) !important;
    color: var(--rp-primary-dark) !important;
    transform: translateY(-1px);
}

.navbar-toggle {
    color: var(--rp-text);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    margin-top: 8px;
}

.navbar-toggle:hover {
    background: var(--rp-primary-soft) !important;
}

.navbar-form {
    margin-top: 7px;
    margin-bottom: 7px;
}

.navbar-form .form-control,
.search-query {
    width: min(295px, 100%) !important;
    height: 36px;
    border: 1px solid var(--rp-border);
    border-radius: 999px;
    background: #f7fafc;
    color: var(--rp-text);
    box-shadow: none;
    padding: 6px 16px;
}

.navbar-form .form-control:focus,
.search-query:focus,
.form-control:focus,
textarea:focus,
input:focus {
    border-color: rgba(17, 163, 156, 0.75) !important;
    box-shadow: 0 0 0 4px var(--rp-primary-soft) !important;
    outline: none;
}

.dropdown-menu {
    border: 1px solid var(--rp-border);
    border-radius: 16px;
    box-shadow: var(--rp-shadow-soft);
    padding: 8px;
}

.dropdown-menu > li > a {
    border-radius: 10px;
    color: var(--rp-text);
    padding: 10px 12px;
}

#notification-badge {
    background: var(--rp-danger) !important;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(229, 72, 77, 0.35);
}

#masthead {
    min-height: auto;
    background: transparent !important;
    color: var(--rp-text);
    padding: 22px 0 8px;
}

.post-container,
.card-publicacion,
.panel,
.profile-info,
.form-container,
.config-container,
.password-container,
.help-container,
.history-container,
.friend-card,
.report-card,
.delete-confirmation {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(223, 231, 239, 0.9);
    border-radius: 20px !important;
    box-shadow: var(--rp-shadow-soft);
}

.post-container {
    display: block;
    max-width: 720px;
    margin: 18px auto 10px;
    padding: 22px;
}

.post-composer {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.post-composer-avatar {
    display: flex;
    justify-content: flex-start;
    padding-top: 3px;
}

.post-composer #post-form {
    min-width: 0;
}

.card-publicacion {
    max-width: 760px;
    margin: 0 auto 22px;
    padding: 20px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card-publicacion:hover {
    transform: none;
    box-shadow: var(--rp-shadow);
}

.alert {
    border: 1px solid var(--rp-border) !important;
    border-radius: 18px !important;
    background: #fbfdff;
    color: var(--rp-text);
}

.alert-success {
    border-color: rgba(25, 169, 116, 0.28) !important;
    background: rgba(25, 169, 116, 0.1);
    color: #0b6b49;
}

.alert-danger {
    border-color: rgba(229, 72, 77, 0.28) !important;
    background: rgba(229, 72, 77, 0.1);
    color: #9f2529;
}

.alert-info {
    border-color: rgba(17, 163, 156, 0.25) !important;
    background: var(--rp-primary-soft);
    color: var(--rp-primary-dark);
}

textarea,
.form-control,
input,
select {
    border: 1px solid var(--rp-border) !important;
    border-radius: 14px !important;
    background: #ffffff;
    color: var(--rp-text);
    box-shadow: none !important;
}

textarea {
    min-height: 96px;
    padding: 14px 16px;
    resize: vertical;
}

#content-area {
    font-size: 16px;
    background: #f9fbfd;
}

#content-area::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #96a3af;
}

.button-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.upload-btn,
.post-btn,
.btn {
    border: 0;
    border-radius: 999px !important;
    font-weight: 700;
    box-shadow: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.upload-btn,
.post-btn {
    width: auto;
    min-width: 118px;
    padding: 10px 16px;
}

.upload-btn {
    background: rgba(109, 93, 252, 0.12);
    color: #4c3fe2;
}

.post-btn,
.btn-primary,
.btn-info {
    background: linear-gradient(135deg, var(--rp-primary), #23c5bb) !important;
    color: #ffffff !important;
}

.btn-success {
    background: var(--rp-success) !important;
}

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

.btn-warning {
    background: var(--rp-warning) !important;
    color: #291800 !important;
}

.btn-link {
    color: var(--rp-primary-dark);
    font-weight: 700;
}

.upload-btn:hover,
.post-btn:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(20, 34, 47, 0.12);
}

.btn-heart {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 72, 77, 0.12) !important;
    color: var(--rp-danger) !important;
}

.reaction-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--rp-muted);
}

.butt-a {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sm-custom {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
}

.autor-info {
    gap: 10px;
}

.autor-avatar,
.card-publicacion .autor-info img,
.pp {
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(20, 34, 47, 0.16);
}

.autor-nombre {
    color: var(--rp-text);
    font-size: 17px;
    letter-spacing: 0;
}

.autor-fecha,
.text-muted,
small {
    color: var(--rp-muted) !important;
}

.post-image img,
.post-video video,
.preview-container .preview-item {
    border-radius: 18px !important;
    border: 1px solid var(--rp-border);
    box-shadow: 0 12px 28px rgba(20, 34, 47, 0.08);
}

.comments-section {
    margin-top: 16px;
}

.comments-section h4 {
    color: var(--rp-text);
    font-size: 16px;
    font-weight: 800;
}

hr {
    border-top: 1px solid var(--rp-border) !important;
}

#comment-form textarea {
    min-height: 48px;
    height: 48px;
    margin-top: 10px;
}

#comment-form .btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    margin-top: 16px;
    padding: 22px;
}

.profile-info h3,
.container > h1,
.container > h2 {
    color: var(--rp-text);
    font-weight: 850;
    letter-spacing: 0;
}

.label,
.badge,
.bg-primary {
    border-radius: 999px;
    background: var(--rp-primary-soft) !important;
    color: var(--rp-primary-dark) !important;
    font-weight: 800;
}

.friend-card {
    text-align: center;
    margin-bottom: 16px;
}

.friend-card img {
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(20, 34, 47, 0.12);
}

.panel {
    padding: 14px !important;
}

.card,
.cardbadge,
.carditems {
    text-align: center;
}

.card-title {
    color: var(--rp-text);
    font-weight: 800;
}

.card-text {
    color: var(--rp-muted);
}

.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: var(--rp-shadow);
}

#shareModal {
    padding: 16px !important;
}

#shareModal.in,
#shareModal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#shareModal .modal-dialog,
#shareModal.fade .modal-dialog,
#shareModal.in .modal-dialog,
#shareModal.show .modal-dialog {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: min(420px, calc(100vw - 32px)) !important;
    max-width: 420px;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
}

#shareModal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(17, 163, 156, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
}

#shareModal .modal-header {
    padding: 17px 20px;
    background: linear-gradient(135deg, rgba(17, 163, 156, 0.12), rgba(99, 102, 241, 0.1));
}

#shareModal .modal-title {
    margin: 0;
    color: var(--rp-text);
    font-size: 18px;
    font-weight: 900;
}

#shareModal .modal-body {
    padding: 18px 20px 20px;
}

#shareModal .share-links {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

#shareModal .share-links .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 44px;
    border: 1px solid rgba(17, 163, 156, 0.16);
    background: #f8fbfd;
    color: var(--rp-primary-dark);
    font-size: 18px;
}

#shareModal .share-links .btn:hover {
    background: var(--rp-primary-soft);
    transform: translateY(-1px);
}

body.dark-mode #shareModal .modal-content {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.98);
}

body.dark-mode #shareModal .modal-title {
    color: #f8fafc;
}

body.dark-mode #shareModal .share-links .btn {
    border-color: rgba(45, 212, 191, 0.18);
    background: rgba(15, 23, 42, 0.82);
    color: #2dd4bf;
}

.modal-header,
.modal-footer {
    border-color: var(--rp-border);
}

.report-modal {
    z-index: 1080 !important;
}

.report-modal .modal-dialog {
    max-width: 460px;
    width: calc(100% - 32px);
    margin: 80px auto 24px;
}

.report-modal .modal-content {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(32, 190, 181, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.report-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(18, 173, 164, 0.12), rgba(87, 96, 232, 0.12));
}

.report-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--rp-ink);
}

.report-modal .close {
    order: 2;
    opacity: 0.65;
    font-size: 26px;
    line-height: 1;
}

.report-modal .modal-body {
    padding: 22px;
}

.report-modal select.form-control {
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(13, 48, 71, 0.14);
    box-shadow: none;
}

.report-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.report-modal-actions .btn {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
}

footer {
    position: static;
    color: var(--rp-muted);
}

@media (max-width: 991px) {
    body {
        padding-top: 58px;
    }

    .navbar-bright .nav > li > a {
        margin: 4px 0;
        border-radius: 12px;
    }

    .navbar-form .form-control,
    .search-query {
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .post-container,
    .card-publicacion,
    .profile-info {
        border-radius: 16px !important;
        padding: 16px;
    }

    .button-row {
        justify-content: stretch;
    }

    .upload-btn,
    .post-btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .card-publicacion .d-flex {
        align-items: flex-start;
        gap: 12px;
    }

    .butt-a {
        justify-content: flex-start;
    }
}

body.dark-mode {
    background:
        radial-gradient(
            circle at top left,
            rgba(17, 163, 156, 0.18),
            transparent 28rem
        ),
        linear-gradient(180deg, #12171d 0%, #181d24 45%, #101419 100%) !important;
    color: #eef6f7;
}

body.dark-mode::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

body.dark-mode header.navbar-bright,
body.dark-mode header {
    background: rgba(20, 27, 34, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .navbar-bright a,
body.dark-mode .navbar-bright .navbar-brand,
body.dark-mode #masthead h4 {
    color: #eef6f7 !important;
}

body.dark-mode .post-container,
body.dark-mode .card-publicacion,
body.dark-mode .panel,
body.dark-mode .profile-info,
body.dark-mode .form-container,
body.dark-mode .config-container,
body.dark-mode .password-container,
body.dark-mode .help-container,
body.dark-mode .history-container,
body.dark-mode .friend-card,
body.dark-mode .report-card,
body.dark-mode .delete-confirmation,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu {
    background: rgba(28, 36, 45, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.08);
    color: #eef6f7;
}

body.dark-mode .alert,
body.dark-mode textarea,
body.dark-mode .form-control,
body.dark-mode input,
body.dark-mode select {
    background: #202832 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eef6f7 !important;
}

body.dark-mode .autor-nombre,
body.dark-mode .comments-section h4,
body.dark-mode .card-title,
body.dark-mode .container > h1,
body.dark-mode .container > h2,
body.dark-mode .profile-info h3 {
    color: #ffffff !important;
}

body.dark-mode .card-text,
body.dark-mode .autor-fecha,
body.dark-mode .text-muted,
body.dark-mode small {
    color: #a8b4c0 !important;
}

body.dark-mode .dropdown-menu > li > a {
    color: #eef6f7;
}

body.dark-mode .dropdown-menu > li > a:hover {
    background: rgba(17, 163, 156, 0.18);
    color: #7ff4ea;
}

/* Home feed scale and comment refresh */
#masthead .container,
body > .container {
    max-width: 1220px;
}

#masthead .post-container {
    max-width: 900px;
    padding: 28px;
}

#post-list {
    width: min(100%, 940px);
    margin: 0 auto;
}

.card-publicacion {
    max-width: 940px;
    padding: 26px;
    margin-bottom: 28px;
}

.card-publicacion > .col-12,
.card-publicacion > .col-sm-12,
.card-publicacion > .col-md-12 {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.card-publicacion .alert[id^="post-"] {
    padding: 20px;
    border-radius: 20px !important;
}

.card-publicacion .alert[id^="post-"] > p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.post-image img {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 680px;
    object-fit: contain;
    background: #f5f7fb;
}

.post-video video {
    width: 100%;
    max-height: 680px;
    background: #071424;
}

.autor-info {
    margin-bottom: 16px;
}

.autor-info > a > div {
    width: 66px !important;
    height: 66px !important;
}

.autor-info .autor-avatar {
    width: 50px !important;
    height: 50px !important;
}

.autor-nombre {
    font-size: 18px;
}

.autor-fecha {
    font-size: 13px;
}

.comments-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--rp-border);
}

.comments-section hr {
    display: none;
}

.comments-section h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--rp-muted);
}

.comment-item {
    margin: 10px 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.comment {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-header,
.comment-author {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.comment-avatar-wrap {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.comment-avatar {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.comment-avatar-border {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.comment-bubble {
    max-width: calc(100% - 50px);
    padding: 10px 14px;
    border-radius: 18px;
    border-top-left-radius: 6px;
    background: #f0f2f5;
    color: var(--rp-text);
}

.comment-bubble strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.25;
    color: var(--rp-text);
}

.comment-bubble p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--rp-text);
    word-break: break-word;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 50px;
    color: var(--rp-muted);
    font-size: 12px;
    font-weight: 700;
}

.comment-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-like,
.comment-report,
.comment-reported {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--rp-muted);
    font-size: 12px;
    font-weight: 800;
}

.comment-like:hover {
    background: rgba(229, 72, 77, 0.1);
    color: var(--rp-danger);
}

.comment-report:hover,
.comment-reported {
    background: rgba(245, 165, 36, 0.12);
    color: #9a5b00;
}

.show-more-comments,
.show-less-comments {
    padding: 6px 10px;
    margin-left: 48px;
    border-radius: 999px;
}

form[id^="comment-form-"] {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    width: 100% !important;
    margin-top: 14px !important;
    padding-top: 12px;
    border-top: 1px solid var(--rp-border);
}

form[id^="comment-form-"] textarea {
    flex: 1 1 auto;
    min-height: 44px;
    height: 44px !important;
    max-height: 130px;
    margin: 0 !important;
    padding: 11px 16px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f0f2f5;
    resize: none;
    font-size: 15px;
    line-height: 1.35;
}

form[id^="comment-form-"] button[type="submit"] {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

#content-area {
    min-height: 118px;
    font-size: 17px;
    line-height: 1.5;
}

.upload-btn,
.post-btn {
    min-height: 42px;
    font-size: 15px;
}

body.dark-mode .comments-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .comment-bubble,
body.dark-mode form[id^="comment-form-"] textarea {
    background: #2b333d !important;
    color: #eef6f7 !important;
}

body.dark-mode .comment-bubble strong,
body.dark-mode .comment-bubble p {
    color: #eef6f7 !important;
}

body.dark-mode form[id^="comment-form-"] {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Modern responsive navigation */
.reppost-navbar {
    min-height: 64px;
}

.reppost-navbar .navbar-shell {
    width: min(1240px, calc(100% - 28px));
    max-width: 1240px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.reppost-navbar .navbar-header {
    float: none;
    display: flex;
    align-items: center;
    min-height: 64px;
}

.reppost-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 12px !important;
    border-radius: 999px;
    background: rgba(17, 163, 156, 0.08);
}

.reppost-brand span {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    background: linear-gradient(
        135deg,
        var(--rp-primary-dark),
        var(--rp-accent)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reppost-navbar .reppost-nav {
    flex: 1;
    border: 0;
    box-shadow: none;
}

.reppost-navbar .nav-main {
    float: none;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.reppost-navbar .nav-main > li {
    float: none;
}

.reppost-navbar .nav-main > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
}

.reppost-navbar .nav-main > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: var(--rp-primary);
    opacity: 0;
    transform: scaleX(0.25);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.reppost-navbar .nav-main > li > a:hover::after,
.reppost-navbar .nav-main > li > a:focus::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar-search-item {
    margin-left: auto;
}

.reppost-navbar .navbar-form {
    padding: 0;
    margin: 0 0 0 8px;
    border: 0;
    box-shadow: none;
}

.reppost-navbar .input-group {
    display: block;
}

.reppost-navbar .search-query {
    width: 220px !important;
    transition:
        width 0.22s ease,
        box-shadow 0.22s ease;
}

.reppost-navbar .search-query:focus {
    width: 285px !important;
}

.reppost-navbar #notification-list {
    width: min(360px, calc(100vw - 28px));
    max-height: 360px;
    overflow-y: auto;
}

.reppost-navbar #notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--rp-danger) !important;
    color: white !important;
    border-radius: 50%;
    font-size: 10px;
    display: none;
}

@media (max-width: 1280px) {
    .reppost-navbar .nav-main > li > a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }

    .reppost-navbar .search-query {
        width: 170px !important;
    }

    .reppost-navbar .search-query:focus {
        width: 220px !important;
    }
}

@media (max-width: 1180px) {
    .reppost-navbar .navbar-shell {
        display: block;
        width: 100%;
    }

    .reppost-navbar .navbar-header {
        min-height: 58px;
        padding: 0 12px;
        justify-content: space-between;
        width: 100%;
    }

    .reppost-navbar .navbar-toggle {
        display: inline-flex;
        float: none !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0;
        margin-left: auto;
        order: 2;
        transition:
            transform 0.2s ease,
            background-color 0.2s ease;
    }

    .reppost-navbar .reppost-brand {
        order: 1;
        margin-left: 0;
        margin-right: auto;
    }

    .reppost-navbar .navbar-collapse.collapse {
        display: none !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .reppost-navbar .navbar-collapse.collapse.in {
        display: block !important;
        overflow: visible !important;
    }

    .reppost-navbar .navbar-toggle:hover {
        transform: translateY(-1px);
    }

    .reppost-navbar .reppost-nav {
        width: 100%;
        padding: 10px 12px 16px;
        background: rgba(255, 255, 255, 0.92);
        border-top: 1px solid var(--rp-border);
    }

    .reppost-navbar .nav-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        margin: 0;
    }

    .reppost-navbar .nav-main > li > a {
        width: 100%;
        justify-content: flex-start;
        margin: 0;
        padding: 11px 12px;
        border-radius: 14px;
    }

    .navbar-search-item {
        grid-column: 1 / -1;
        margin-left: 0;
    }

    .reppost-navbar .navbar-form {
        margin: 0;
    }

    .reppost-navbar .search-query,
    .reppost-navbar .search-query:focus {
        width: 100% !important;
    }

    .reppost-navbar #notification-list {
        position: static;
        width: 100%;
        max-height: 280px;
        margin-top: 6px;
    }

    body.dark-mode .reppost-navbar .reppost-nav {
        background: rgba(20, 27, 34, 0.96);
        border-top-color: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 520px) {
    .reppost-navbar .nav-main {
        display: flex;
        flex-direction: column;
    }

    .reppost-brand span {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    #masthead .post-container,
    .card-publicacion {
        padding: 18px;
    }

    .post-composer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-composer-avatar {
        justify-content: center;
    }

    .card-publicacion .alert[id^="post-"] {
        padding: 16px;
    }

    .comment-actions,
    .show-more-comments,
    .show-less-comments {
        margin-left: 44px;
    }
}

/* Visitor mode */
.visitor-mode #masthead {
    padding-top: 58px;
}

.visitor-mode #masthead .post-container {
    max-width: 760px;
    margin: 8px auto 8px;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

.visitor-hero-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--rp-border);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 250, 0.92)),
        #ffffff;
    color: var(--rp-text);
    box-shadow: var(--rp-shadow-soft);
    overflow: hidden;
}

.visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 13px;
    border: 1px solid rgba(17, 163, 156, 0.22);
    border-radius: 999px;
    background: rgba(17, 163, 156, 0.1);
    color: var(--rp-primary-dark);
    font-size: 13px;
    font-weight: 900;
}

.visitor-hero-card h1 {
    margin: 14px 0 8px;
    color: var(--rp-primary-dark) !important;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: 0 10px 28px rgba(17, 163, 156, 0.14);
}

.visitor-hero-card p {
    max-width: 680px;
    margin: 0;
    color: var(--rp-muted);
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.6;
}

.visitor-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.visitor-primary-cta,
.visitor-secondary-cta,
.visitor-comment-cta a,
.visitor-exit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.visitor-primary-cta {
    border: 0;
    background: linear-gradient(135deg, var(--rp-primary), #2ac8be);
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(17, 163, 156, 0.24);
}

.visitor-secondary-cta,
.visitor-comment-cta a {
    border: 1px solid rgba(17, 163, 156, 0.28);
    background: rgba(255, 255, 255, 0.78);
    color: var(--rp-primary-dark) !important;
}

.visitor-primary-cta:hover,
.visitor-secondary-cta:hover,
.visitor-comment-cta a:hover,
.visitor-exit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(7, 20, 36, 0.12);
}

.visitor-comment-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 14px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(17, 163, 156, 0.18);
    border-radius: 18px;
    background: rgba(248, 251, 253, 0.94);
    color: var(--rp-text);
}

.visitor-comment-cta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--rp-muted);
    font-size: 14px;
    line-height: 1.35;
}

.visitor-action-trigger {
    cursor: pointer;
}

.visitor-exit-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.visitor-exit-btn {
    min-height: 36px;
    margin: 0 4px;
    padding: 8px 12px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    font-size: 13px;
    line-height: 1;
}

.visitor-exit-btn i {
    margin-right: 6px;
}

body.dark-mode .visitor-hero-card {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(23, 31, 42, 0.97), rgba(15, 24, 34, 0.94)),
        #111827;
    color: #f8fafc;
}

body.dark-mode .visitor-hero-card h1,
body.dark-mode .visitor-comment-cta {
    color: #2dd4bf !important;
}

body.dark-mode .visitor-hero-card p,
body.dark-mode .visitor-comment-cta span {
    color: #cbd5e1;
}

body.dark-mode .visitor-secondary-cta,
body.dark-mode .visitor-comment-cta a {
    border-color: rgba(45, 212, 191, 0.22);
    background: rgba(15, 23, 42, 0.74);
}

body.dark-mode .visitor-comment-cta {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.72);
}

body.dark-mode .visitor-exit-btn {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.28);
}

@media (max-width: 768px) {
    .visitor-mode #masthead {
        padding-top: 70px;
    }

    .visitor-mode #masthead .post-container {
        width: min(100% - 24px, 760px);
        margin-top: 2px;
    }

    .visitor-hero-card {
        border-radius: 22px;
    }

    .visitor-hero-actions,
    .visitor-comment-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .visitor-primary-cta,
    .visitor-secondary-cta,
    .visitor-comment-cta a {
        width: 100%;
    }
}

/* Configuration view refresh */
body > .container.mt-5 {
    width: min(1120px, calc(100% - 24px));
    max-width: 1120px;
    padding-top: 18px;
    padding-bottom: 42px;
}

.section-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(980px, 100%);
    margin: 18px auto 12px;
    padding: 15px 18px;
    border: 1px solid var(--rp-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rp-text);
    box-shadow: 0 10px 26px rgba(7, 20, 36, 0.08);
    cursor: pointer;
}

.section-header span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: clamp(19px, 2.4vw, 25px);
    font-weight: 900;
    line-height: 1.2;
}

.section-header .rotate-icon {
    flex: 0 0 auto;
    color: var(--rp-primary-dark);
}

.config-container,
.password-container {
    width: min(980px, 100%);
    margin: 0 auto 18px;
    padding: clamp(18px, 2.6vw, 28px);
    border: 1px solid var(--rp-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--rp-shadow-soft);
    color: var(--rp-text);
    text-align: left;
}

.config-container h3,
.password-container h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    color: var(--rp-text) !important;
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.config-container h3 small {
    flex-basis: 100%;
    margin-top: 4px;
    font-size: 13px;
}

.config-container p,
.password-container p {
    color: var(--rp-text);
}

.config-container .alerta,
.password-container .alerta {
    margin: 12px 0 16px !important;
    padding: 15px 16px;
    border: 1px solid var(--rp-border);
    border-left: 5px solid var(--rp-primary);
    border-radius: 16px;
    background: #f8fbfd;
    color: var(--rp-text);
    font-size: 15px;
    line-height: 1.55;
}

.config-container .alerta li,
.password-container .alerta li {
    margin-left: 18px;
}

.privacy-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 16px 0;
}

.privacy-option {
    display: block;
    min-width: 0;
    width: 100% !important;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rp-border);
    border-radius: 18px;
    background: #f8fbfd;
    overflow: hidden;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.privacy-option:hover {
    border-color: rgba(17, 163, 156, 0.5);
    box-shadow: 0 12px 24px rgba(7, 20, 36, 0.08);
    transform: translateY(-1px);
}

.privacy-option > div,
.privacy-option input[type="radio"]:checked + div {
    width: 100% !important;
    min-height: 90px;
    padding: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--rp-text) !important;
}

.privacy-option input[type="radio"]:checked + div {
    background: rgba(17, 163, 156, 0.13) !important;
    box-shadow: inset 0 0 0 2px rgba(17, 163, 156, 0.4);
}

.privacy-option i {
    color: var(--rp-primary-dark) !important;
}

.privacy-option span {
    color: var(--rp-text);
    font-weight: 900;
}

.privacy-option small {
    color: var(--rp-muted);
}

.theme-toggle-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    gap: 12px;
    margin-top: 18px;
}

.theme-btn,
.save-btn,
.save-pass-btn,
.report-btn,
.delete-btn,
.moderation-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content !important;
    max-width: 100%;
    min-height: 44px;
    margin: 8px auto;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 850;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(17, 163, 156, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.theme-toggle-container .theme-btn {
    width: 100% !important;
}

.config-container form,
.password-container form,
.config-container a {
    text-align: center;
}

.config-container > a,
.config-container form > a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.privacy-container,
.password-input {
    text-align: left;
}

.theme-btn:hover,
.save-btn:hover,
.save-pass-btn:hover,
.report-btn:hover,
.delete-btn:hover,
.moderation-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(7, 20, 36, 0.16);
}

.theme-btn,
.save-btn,
.save-pass-btn,
.report-btn {
    background: linear-gradient(135deg, var(--rp-primary), #23c5bb) !important;
}

.delete-btn {
    background: linear-gradient(135deg, #d94d5d, #ef6b55) !important;
}

.moderation-btn {
    background: linear-gradient(135deg, #f2a71b, #f6c04a) !important;
    color: #1d2430 !important;
}

.password-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.password-row:first-of-type {
    grid-template-columns: minmax(0, 1fr);
}

.password-input,
.password-input.half-width,
.password-input.full-width {
    width: 100% !important;
    margin-bottom: 14px;
}

.password-input p {
    margin: 0 0 7px;
    color: var(--rp-muted);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.password-input input {
    width: 100%;
    height: 46px;
    padding: 11px 42px 11px 13px;
    border: 1px solid var(--rp-border);
    border-radius: 14px;
    background: #f8fbfd;
    color: var(--rp-text);
    box-shadow: none;
}

.password-input input:focus {
    border-color: rgba(17, 163, 156, 0.76);
    outline: none;
    box-shadow: 0 0 0 4px rgba(17, 163, 156, 0.14);
}

.report-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.report-card {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--rp-border);
    border-radius: 18px;
    background: #f8fbfd !important;
    box-shadow: none;
    color: var(--rp-text);
    line-height: 1.5;
}

.report-card .card {
    margin: 0;
    border: 1px solid var(--rp-border) !important;
    border-radius: 16px !important;
    background: #ffffff;
}

.config-container code {
    display: inline-block;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(17, 163, 156, 0.1);
    color: var(--rp-primary-dark);
    white-space: normal;
    word-break: break-word;
}

body.dark-mode .section-header,
body.dark-mode .config-container,
body.dark-mode .password-container {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(20, 27, 34, 0.94) !important;
    color: #eef6f7;
}

body.dark-mode .config-container .alerta,
body.dark-mode .password-container .alerta,
body.dark-mode .privacy-option,
body.dark-mode .report-card,
body.dark-mode .report-card .card,
body.dark-mode .password-input input {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #eef6f7 !important;
}

body.dark-mode .config-container h3,
body.dark-mode .password-container h3,
body.dark-mode .config-container p,
body.dark-mode .password-container p,
body.dark-mode .privacy-option span {
    color: #eef6f7 !important;
}

body.dark-mode .privacy-option small,
body.dark-mode .password-input p {
    color: #aebbc7 !important;
}

body.dark-mode .privacy-option input[type="radio"]:checked + div {
    background: rgba(17, 163, 156, 0.18) !important;
    box-shadow: inset 0 0 0 2px rgba(94, 227, 220, 0.36);
}

@media (max-width: 800px) {
    body > .container.mt-5 {
        width: min(100% - 18px, 680px);
        padding-top: 10px;
    }

    .section-header {
        padding: 13px 14px;
        border-radius: 16px;
    }

    .config-container,
    .password-container {
        border-radius: 20px;
    }

    .privacy-container,
    .password-row,
    .report-container {
        grid-template-columns: 1fr;
    }

    .theme-btn,
    .save-btn,
    .save-pass-btn,
    .report-btn,
    .delete-btn,
    .moderation-btn {
        width: 100% !important;
    }

    .theme-toggle-container {
        grid-template-columns: 1fr;
    }
}
