/* ===== Inline Icon (for login/logout PNG icons) ===== */
.inline-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

/* ===== Logo Fill Preloader ===== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

body.loading > *:not(#page-loader):not(script) {
    opacity: 0 !important;
    visibility: hidden !important;
}

#page-loader .logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

#page-loader .logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#page-loader .logo-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.18;
    filter: grayscale(1);
}

#page-loader .logo-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(100% 0 0 0);
    animation: loadUp 2s ease-in-out forwards;
}

@keyframes loadUp {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

:root {
    --red-600: #e11d48;
    --red-500: #ef4444;
    --muted: #64748b;
    --glass: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --card-strong: 0 8px 30px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius-xl: 16px;
    --header-height: 64px;
    font-synthesis: none;
}

#language-toggle {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#language-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

#language-toggle:active {
    transform: scale(0.98);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    #language-toggle {
        top: 74px;
        right: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    #language-toggle span {
        display: none;
    }
    
    #language-toggle i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    #language-toggle {
        top: 70px;
        right: 0.5rem;
        padding: 0.4rem 0.6rem;
    }
}

*,
*::before,
*::after {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fafbfc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #0f172a;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.35);
    background-clip: content-box;
}

/* ── Smooth touch & tap behavior ────────────────── */
a, button, [role="button"], input, select, textarea, label[for] {
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.08);
    touch-action: manipulation;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ── Smooth page transitions ────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    body > main,
    body > footer {
        animation: smoothAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
}

@keyframes smoothAppear {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.how-card.accent-emerald {
    border-color: rgba(16, 185, 129, 0.10);
}

.how-card.accent-emerald:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-card.accent-emerald .icon-circle {
    background: linear-gradient(180deg, rgba(16, 185, 129, .16), rgba(16, 185, 129, .06));
    color: #10b981;
}

.how-card.accent-amber {
    border-color: rgba(245, 158, 11, 0.10);
}

.how-card.accent-amber:hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-card.accent-amber .icon-circle {
    background: linear-gradient(180deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .06));
    color: #f59e0b;
}

.how-card.accent-indigo {
    border-color: rgba(99, 102, 241, 0.10);
}

.how-card.accent-indigo:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-card.accent-indigo .icon-circle {
    background: linear-gradient(180deg, rgba(99, 102, 241, .16), rgba(99, 102, 241, .06));
    color: #6366f1;
}

.how-card.accent-sky {
    border-color: rgba(14, 165, 233, 0.10);
}

.how-card.accent-sky:hover {
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-card.accent-sky .icon-circle {
    background: linear-gradient(180deg, rgba(14, 165, 233, .16), rgba(14, 165, 233, .06));
    color: #0ea5e9;
}

.how-card.tint-rose {
    background: linear-gradient(180deg, rgba(255, 241, 242, .92), #ffffff);
}

.how-card.tint-amber {
    background: linear-gradient(180deg, rgba(255, 251, 235, .92), #ffffff);
}

.how-card.tint-emerald {
    background: linear-gradient(180deg, rgba(236, 253, 245, .92), #ffffff);
}

.how-card.tint-indigo {
    background: linear-gradient(180deg, rgba(238, 242, 255, .92), #ffffff);
}

.how-card.tint-sky {
    background: linear-gradient(180deg, rgba(240, 249, 255, .92), #ffffff);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

#back-to-top {
    opacity: 0;
    transform: translateY(18px) translateZ(0);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    will-change: transform, opacity;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    pointer-events: auto;
}

#back-to-top:hover {
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    transform: translateY(-2px) translateZ(0);
}

/* Mobile: align back-to-top with chatbot FAB, bigger buttons for better touch */
@media (max-width: 640px) {
    #fab-wrap {
        right: 16px !important;
        bottom: 20px !important;
    }
    #fab-wrap #back-to-top {
        width: 52px !important;
        height: 52px !important;
    }
    #fab-wrap #back-to-top svg {
        width: 24px !important;
        height: 24px !important;
    }
}
@media (max-width: 400px) {
    #fab-wrap {
        right: 12px !important;
        bottom: 16px !important;
    }
    #fab-wrap #back-to-top {
        width: 48px !important;
        height: 48px !important;
    }
    #fab-wrap #back-to-top svg {
        width: 22px !important;
        height: 22px !important;
    }
}

@keyframes sweep {
    0% {
        left: -60%;
        transform: translateZ(0);
    }
    100% {
        left: 100%;
        transform: translateZ(0);
    }
}

@keyframes search-spin {
    to {
        transform: rotate(360deg) translateZ(0);
    }
}

.btn-breathe {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2);
}

.btn-breathe:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.3);
}

.field-icon-left {
    position: relative;
}

.field-icon-left .input-wrap {
    position: relative;
}

.field-icon-left .fi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.field-icon-left input,
.field-icon-left select,
.field-icon-left textarea {
    padding-left: 2.5rem !important;
}

.field-icon-left label.absolute {
    left: 2.5rem !important;
    border-radius: 9999px; 
    padding: 0 .35rem; 
    line-height: 1.1; 
    z-index: 1; 
}

.field-icon-left label.absolute,
.field-icon-left label[for] {
    background: #ffffff; 
}

.field-icon-right {
    position: relative;
}

.field-icon-right .fr {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
}

.field-icon-right input {
    padding-right: 2.5rem !important;
}

:root {
    --header-height: 0px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding-top: var(--header-height);
}

section {
    scroll-margin-top: calc(var(--header-height) + 8px);
}

footer {
    flex-shrink: 0;
    padding-bottom: max(0rem, env(safe-area-inset-bottom));
}

@supports not (padding-bottom: max(1rem, 1rem)) {
    footer {
        padding-bottom: 0;
    }
}

footer .footer-text {
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
}

footer .socials {
    gap: clamp(0.5rem, 2vw, 0.9rem);
}

footer .social-link {
    width: clamp(2.25rem, 4.8vw, 2.75rem);
    height: clamp(2.25rem, 4.8vw, 2.75rem);
}

footer .social-link i {
    font-size: clamp(0.9rem, 2.6vw, 1.1rem);
}

.float-in {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    will-change: transform, opacity;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-in.is-visible {
    animation: float-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes float-in {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.985) translateZ(0);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.0) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1.0) translateZ(0);
    }
}



@media (prefers-reduced-motion: reduce) {
    .float-in {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

@keyframes realtime-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0) scale(1) translateZ(0);
    }
    50% {
        transform: translateY(-20px) scale(1.02) translateZ(0);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-15px) translateZ(0);
    }
}

.btn-breathe {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2);
}

.btn-breathe::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-breathe:hover::before {
    width: 300px;
    height: 300px;
}

.btn-breathe:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.30);
}

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(225, 29, 72, 0.20);
    }
    50% {
        box-shadow: 0 8px 24px rgba(225, 29, 72, 0.30);
    }
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.6;
    }
}

.btn-breathe i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-breathe:hover i.fa-hand-holding-droplet {
    animation: droplet-bounce 0.6s ease infinite;
}

.btn-breathe:hover i.fa-magnifying-glass {
    transform: rotate(15deg) scale(1.1);
}

@keyframes droplet-bounce {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-3px) translateZ(0);
    }
}

@keyframes shadow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1) translateZ(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1) translateZ(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

header {
    border-bottom: 1px solid rgba(239, 68, 68, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.header-logo:hover {
    transform: rotate(5deg) scale(1.1) translateZ(0);
    filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.3));
}

.site-title {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e11d48, #ef4444);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-title:hover::after {
    width: 100%;
}

header nav a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

header nav a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #e11d48;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header nav a:hover::before {
    width: 80%;
}

header nav a:hover {
    transform: translateY(-1px) translateZ(0);
}

#menu-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

#menu-toggle:active {
    transform: scale(0.95) translateZ(0);
}

#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

#mobile-menu a,
#mobile-menu button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    text-decoration: none !important;
}

#mobile-menu a:hover,
#mobile-menu button:hover {
    border-left-color: #e11d48;
    padding-left: 1rem;
    background: rgba(239, 68, 68, 0.05);
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
    }
}

@keyframes headerSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header {
    animation: headerSlideIn 0.5s ease-out;
}

header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

/* ── Admin-mode header (shared across all pages) ── */
body.admin-mode header {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.95)) !important;
    color: #fff;
}
body.admin-mode header a,
body.admin-mode header button {
    color: #fff !important;
}
body.admin-mode header .text-red-700 {
    color: #fff !important;
}
body.admin-mode header .hover\:bg-red-50:hover {
    background-color: rgba(255, 255, 255, 0.10) !important;
}
body.admin-mode header .bg-red-600 {
    background-color: #6366f1 !important;
}
body.admin-mode header .hover\:bg-red-700:hover {
    background-color: #4f46e5 !important;
}
body.admin-mode #mobile-menu {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.95)) !important;
}
body.admin-mode #menu-toggle {
    background-color: #ffe4e6 !important;
    color: #3b82f6 !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 0 0 2px rgba(79, 70, 229, .25);
}
body.admin-mode #menu-toggle:hover {
    background-color: #fecdd3 !important;
}
body.admin-mode #mobile-menu a,
body.admin-mode #mobile-menu button {
    color: #fff !important;
}
body.admin-mode #mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.10) !important;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.25rem !important;
    }
    .header-logo {
        width: 2rem !important;
        height: 2rem !important;
    }
    #mobile-menu {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (min-width: 769px) {
    header nav a {
        animation: navLinkSlideIn 0.4s ease-out backwards;
    }
    header nav a:nth-child(1) { animation-delay: 0.1s; }
    header nav a:nth-child(2) { animation-delay: 0.15s; }
    header nav a:nth-child(3) { animation-delay: 0.2s; }
    header nav a:nth-child(4) { animation-delay: 0.25s; }
    header nav a:nth-child(5) { animation-delay: 0.3s; }
    header nav a:nth-child(6) { animation-delay: 0.35s; }
    @keyframes navLinkSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-5px) translateZ(0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

#feedback-modal .field-icon-left {
    position: relative;
}

#feedback-modal .field-icon-left .fi {
    top: 1.05rem;
}

#feedback-modal textarea {
    min-height: 140px;
    resize: vertical;
}

/* ── Footer glow accent ────────────────────────── */
.footer-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(225, 29, 72, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Footer reveal animation ──────────────────── */
#app-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#app-footer.footer-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
}

.footer-grid .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-grid .footer-brand-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-grid .footer-brand-title img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(225, 29, 72, 0.25));
    transition: transform 0.3s ease;
}

.footer-grid .footer-brand-title:hover img {
    transform: rotate(8deg) scale(1.1);
}

.footer-grid .footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.65;
    max-width: 320px;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e2e8f0;
    margin-bottom: 0.85rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, transparent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-links li a:hover i {
    opacity: 1;
    color: #f87171;
}

.footer-links li a i {
    font-size: 0.7rem;
    width: 14px;
    color: #ef4444;
    opacity: 0.8;
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.10) 30%, rgba(239, 68, 68, 0.15) 50%, rgba(255,255,255,0.10) 70%, transparent 95%);
    margin: 1.25rem 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom .footer-copy {
    font-size: 0.78rem;
    color: #94a3b8;
}

.footer-bottom .footer-copy a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom .footer-copy a:hover {
    color: #f1f5f9;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials a.social-facebook {
    color: #1877f2;
    background: rgba(24,119,242,0.1);
    border-color: rgba(24,119,242,0.2);
}

.footer-socials a.social-linkedin {
    color: #0a66c2;
    background: rgba(10,102,194,0.1);
    border-color: rgba(10,102,194,0.2);
}

.footer-socials a.social-whatsapp {
    color: #25d366;
    background: rgba(37,211,102,0.1);
    border-color: rgba(37,211,102,0.2);
}

.footer-socials a:hover {
    transform: translateY(-3px) scale(1.05);
}

.footer-socials a.social-facebook:hover {
    background: rgba(24,119,242,0.2);
    border-color: rgba(24,119,242,0.4);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.25);
}

.footer-socials a.social-linkedin:hover {
    background: rgba(10,102,194,0.2);
    border-color: rgba(10,102,194,0.4);
    box-shadow: 0 4px 16px rgba(10, 102, 194, 0.25);
}

.footer-socials a.social-whatsapp:hover {
    background: rgba(37,211,102,0.2);
    border-color: rgba(37,211,102,0.4);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.footer-feedback-wrap {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

@media (max-width: 480px) {
    .footer-feedback-wrap {
        text-align: left;
    }
    .footer-feedback-wrap #feedback-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .footer-grid .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: left;
    }
    .footer-grid .footer-brand-title {
        justify-content: flex-start;
    }
    .footer-grid .footer-brand p {
        max-width: 100%;
    }
    .footer-links {
        align-items: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: left;
        gap: 0.5rem;
    }
    .footer-socials {
        justify-content: flex-start;
    }
}

/* ── Desktop-only utility ─────────────────────────────────── */
.desktop-only {
    display: none !important;
}
@media (min-width: 768px) {
    .desktop-only:not(.hidden) {
        display: inline-flex !important;
    }
}

/* ── Login modal shared styles ────────────────────────────── */
.icon-circle-sm {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.10), rgba(239, 68, 68, 0.04));
    color: var(--red-600);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 6px;
}

#login-modal .modal-panel {
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}

#login-modal .modal-title {
    display: flex;
    align-items: center;
    gap: .6rem;
}

#login-modal .field-icon-left {
    position: relative;
}

#login-modal .field-icon-left .input-wrap {
    position: relative;
}

#login-modal .field-icon-left .fi {
    top: 50% !important;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.2s ease;
}

#login-modal .field-icon-left:focus-within .fi {
    color: var(--red-600);
}

#login-modal .field-icon-right:focus-within .fr {
    color: var(--red-600);
}

/* ── Smooth modal & overlay (all modals) ──────────── */
#login-modal.flex,
#success-modal.flex,
#delete-confirm-modal.flex,
#feedback-modal.flex,
#certificate-modal.flex {
    animation: modalOverlayIn 0.25s ease-out;
}

#login-modal.flex > .modal-panel,
#login-modal.flex > div:last-child,
#success-modal.flex > div:last-child,
#delete-confirm-modal.flex > div:last-child,
#feedback-modal.flex > div:last-child,
#certificate-modal.flex > div:last-child {
    animation: modalPanelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalPanelIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Safe areas for mobile (notch / bottom bar) ───── */
@supports (padding-top: env(safe-area-inset-top)) {
    .profile-header,
    header {
        padding-top: env(safe-area-inset-top);
    }
}

/* ── Global mobile refinements ────────────────────── */
@media (max-width: 640px) {
    .how-card,
    .search-card,
    .profile-hero-card,
    .profile-form-card,
    .profile-danger-card {
        border-radius: 1rem;
    }

    .pf-btn {
        min-height: 44px;
    }

    footer {
        font-size: 0.85rem;
    }
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Visitor Stats Bar (above footer) ────────────── */
.visitor-stats-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.visitor-stats-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.visitor-stats-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.visitor-stats-dot--live {
    background: #10b981;
    animation: online-pulse 1.5s infinite;
}

@keyframes online-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
