/* 
 * Kovelee - Thème Organique & Chaleureux 
 * Style "Crayon & Pastel"
 */

@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Amatic+SC:wght@700&display=swap');

:root {
    /* Palette Pastel Chaleureuse */
    --organic-bg: #f8f1e5; /* Papier kraft très clair */
    --organic-text: #2c3e50; /* Crayon gris foncé */
    --organic-primary: #ff8fab; /* Rose pastel */
    --organic-secondary: #8fd3ff; /* Bleu pastel */
    --organic-accent: #ffd97d; /* Jaune pastel */
    --organic-green: #b5ead7; /* Vert pastel */
    --organic-purple: #e2f0cb; /* Violet pastel */
    --organic-coral: #ffb5a7; /* Corail pastel */
    --organic-peach: #fec89a; /* Pêche pastel */
    
    /* Bordures "Crayon" irrégulières */
    --sketchy-border: 2px solid var(--organic-text);
    --sketchy-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --sketchy-radius-sm: 25px 5px 22px 5px / 5px 22px 5px 25px;
    --sketchy-radius-lg: 355px 25px 325px 25px / 25px 325px 25px 355px;
    
    /* Ombres "crayonnées" */
    --sketchy-shadow: 4px 4px 0px rgba(44, 62, 80, 0.1);
    --sketchy-shadow-hover: 6px 6px 0px rgba(44, 62, 80, 0.15);
}

/* --- Base --- */

body {
    background-color: var(--organic-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E") !important;
    font-family: 'Patrick Hand', cursive, sans-serif !important;
    color: var(--organic-text) !important;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Amatic SC', cursive !important;
    letter-spacing: 1px;
}

/* --- Header --- */

.header {
    background: #fffbf0 !important; /* Creamy white */
    border-bottom: 2px solid var(--organic-text) !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.05) !important;
    border-bottom-left-radius: 50% 2px;
    border-bottom-right-radius: 50% 2px;
}

.logo {
    font-size: 2.5rem;
    color: var(--organic-primary);
    text-shadow: 2px 2px 0px var(--organic-text);
    transform: rotate(-2deg);
    display: inline-block;
}

.header-nav a {
    font-size: 1.2rem;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--organic-secondary);
    border-radius: 50%;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-nav a:hover::after {
    transform: scaleX(1);
}

/* --- Boutons --- */

button, .btn, .cta-button, .action-btn {
    font-family: 'Patrick Hand', cursive;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    background-color: #fff;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
}

button:hover, .btn:hover, .cta-button:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.15);
}

.btn-primary, .cta-button {
    background-color: var(--organic-primary) !important;
    color: #fff !important;
    text-shadow: 1px 1px 0 #000;
}

.btn-secondary {
    background-color: var(--organic-secondary) !important;
    color: #fff !important;
}

/* --- Cartes & Conteneurs --- */

.card, .profile-card, .match-card, .message-item, .modal-content {
    background: #fff;
    border: var(--sketchy-border);
    border-radius: var(--sketchy-radius);
    box-shadow: var(--sketchy-shadow);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card::before, .profile-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px dashed rgba(44, 62, 80, 0.1);
    border-radius: var(--sketchy-radius);
    pointer-events: none;
}

.card:hover, .profile-card:hover {
    transform: translateY(-5px) rotate(0.5deg);
    box-shadow: var(--sketchy-shadow-hover);
}

/* Coins "pliés" pour effet papier */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent var(--organic-bg) transparent transparent;
    opacity: 0.5;
}

/* --- Inputs --- */

input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea, 
select {
    font-family: 'Patrick Hand', cursive;
    background: transparent;
    border: none;
    border-bottom: 2px dashed var(--organic-text);
    padding: 10px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
    border-radius: 0;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--organic-primary);
    background: rgba(255, 143, 171, 0.1); /* Highlight léger */
}

/* --- Animations --- */

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg) scale(1.05); }
    50% { transform: rotate(3deg) scale(1.05); }
    75% { transform: rotate(-2deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1.05); }
}

@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.wiggle-on-hover:hover, button:hover, .btn:hover, .cta-button:hover, .nav-user a:hover, .nav-guest a:hover {
    animation: wiggle 0.4s ease-in-out;
}

.logo {
    animation: breathe 3s infinite ease-in-out;
    display: inline-block; /* Important pour transform */
}

.hero-title {
    animation: float 6s infinite ease-in-out;
}

/* --- Spécifique Hero Section --- */

.hero-section {
    background: transparent !important; /* Enlever les dégradés modernes */
}

.hero-title {
    font-size: 4rem;
    color: var(--organic-text);
    text-shadow: 3px 3px 0px var(--organic-accent);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
}

/* --- Badges & Tags --- */

.badge, .tag {
    border: 1px solid var(--organic-text);
    border-radius: 15px 5px 12px 8px;
    background: var(--organic-purple);
    padding: 5px 10px;
    display: inline-block;
    transform: rotate(1deg);
}

/* --- Footer --- */
.footer {
    border-top: 2px solid var(--organic-text);
    background: #fff;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(44, 62, 80, 0.05) 10px,
        rgba(44, 62, 80, 0.05) 20px
    );
}

/* --- Page Discover (Cartes de profil) --- */

.discover-cards .profile-card {
    background: linear-gradient(135deg, #fff 0%, var(--organic-purple) 100%);
    border: 3px solid var(--organic-text);
    position: relative;
    overflow: hidden;
}

.discover-cards .profile-card::before {
    content: '💕';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

/* Boutons Like/Pass avec effet "tampon" */
.action-buttons button {
    position: relative;
    overflow: hidden;
}

.action-buttons button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.action-buttons button:active::after {
    width: 300px;
    height: 300px;
}

/* --- Language Selector (Organic) --- */

.language-selector {
    position: relative;
    z-index: 1001;
    overflow: visible !important; /* Prevent clipping */
}

.header-actions {
    overflow: visible !important; /* Prevent clipping */
}

.language-toggle {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1) !important;
    transition: transform 0.2s !important;
}

.language-toggle:hover {
    transform: scale(1.1) rotate(5deg) !important;
}

.language-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important; /* Center horizontally */
    right: auto !important;
    transform: translateX(-50%) !important; /* Center horizontally */
    margin-top: 10px !important;
    background: transparent !important; /* No background */
    box-shadow: none !important; /* No shadow */
    border: none !important; /* No border */
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: auto !important; /* Let content define width */
    width: max-content !important;
    overflow: visible !important; /* Prevent clipping */
    z-index: 10000 !important; /* Ensure on top */
    align-items: center !important; /* Center items */
}

.language-option {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1) !important;
    transition: transform 0.2s !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important; /* Reset margins */
    flex-shrink: 0 !important;
}

.language-option:hover {
    transform: scale(1.05) rotate(-2deg) !important;
    background: var(--organic-accent) !important;
}

.language-option .language-name {
    font-family: 'Patrick Hand', cursive !important;
    font-weight: bold !important;
    color: var(--organic-text) !important;
}

/* --- Modals Harmonization --- */

/* Generic Modal Content & Specific Overrides */
.modal-content, 
.report-modal-content, 
.legal-modal-content, 
.profile-modal-overlay > div {
    background: var(--organic-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E") !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius) !important;
    box-shadow: var(--sketchy-shadow-hover) !important;
    font-family: 'Patrick Hand', cursive !important;
    color: var(--organic-text) !important;
    padding: 2rem !important;
}

/* Overlays */
.modal-overlay, .report-modal, .legal-modal, .profile-modal-overlay {
    background: rgba(44, 62, 80, 0.8) !important;
    backdrop-filter: blur(4px) !important;
}

/* Headers */
.modal-header, .report-modal-header, .legal-modal-header {
    border-bottom: 2px dashed var(--organic-text) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.modal-header h2, .report-modal-header h2, .legal-modal-header h2 {
    font-family: 'Amatic SC', cursive !important;
    font-size: 2.5rem !important;
    color: var(--organic-primary) !important;
    text-shadow: 1px 1px 0 var(--organic-text) !important;
}

/* Close Buttons */
.close-modal, .report-modal-close, .legal-modal-close, .modal-close-btn {
    background: none !important;
    border: none !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 2.5rem !important;
    color: var(--organic-text) !important;
    cursor: pointer !important;
    transition: transform 0.3s !important;
    opacity: 0.7 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.close-modal:hover, .report-modal-close:hover, .legal-modal-close:hover {
    transform: rotate(90deg) !important;
    opacity: 1 !important;
    background: none !important;
}

/* Visibility Tip (Registration) */
.visibility-tip {
    background-color: var(--organic-purple) !important;
    border: 2px solid var(--organic-text) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 4px 4px 0 rgba(44, 62, 80, 0.15) !important;
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.2s ease;
}

.visibility-tip:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 6px 6px 0 rgba(44, 62, 80, 0.2) !important;
}

.visibility-tip strong {
    color: var(--organic-text) !important;
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.8rem !important;
    display: block;
    margin-bottom: 0.8rem !important;
    letter-spacing: 1px;
    border-bottom: 1px dashed rgba(44, 62, 80, 0.3);
    padding-bottom: 0.5rem;
}

.visibility-tip p {
    color: var(--organic-text) !important;
    font-size: 1.15rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.visibility-tip p strong {
    display: inline !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: inherit !important;
    background: rgba(255, 255, 255, 0.5);
    padding: 0 4px !important;
    border-radius: 4px;
}

/* Forms */
.modal-form input, .modal-form select, .modal-form textarea,
.report-form input, .report-form select, .report-form textarea {
    background: #fff !important;
    border: 2px solid var(--organic-text) !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    font-family: 'Patrick Hand', cursive !important;
    padding: 12px 20px !important;
    font-size: 1.1rem !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05) !important;
    transition: all 0.3s !important;
}

.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus,
.report-form input:focus, .report-form select:focus, .report-form textarea:focus {
    outline: none !important;
    border-color: var(--organic-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.2) !important;
    transform: scale(1.01) !important;
}

/* Labels */
.modal-form label, .report-form label {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: var(--organic-text) !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Progress Bar (Register) */
.progress-bar {
    margin-bottom: 2rem !important;
}

.progress-step .step-number {
    background: #fff !important;
    border: 2px solid var(--organic-text) !important;
    font-family: 'Patrick Hand', cursive !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.progress-step.active .step-number {
    background: var(--organic-primary) !important;
    color: #fff !important;
    border-color: var(--organic-text) !important;
    transform: scale(1.1) !important;
}

.progress-step .step-label {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1rem !important;
    margin-top: 5px !important;
}

/* Legal Modal Specifics */
.legal-modal-close-btn {
    background: var(--organic-secondary) !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    color: var(--organic-text) !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.2rem !important;
    padding: 10px 20px !important;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1) !important;
    width: auto !important;
    margin-top: 20px !important;
}

.legal-modal-close-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15) !important;
}

/* Report Modal Specifics */
.report-option {
    border: 2px solid var(--organic-text) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    background: #fff !important;
    padding: 15px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.report-option:hover {
    background: var(--organic-bg) !important;
    transform: rotate(-1deg) !important;
}

.report-option.selected {
    background: var(--organic-primary) !important;
    color: #fff !important;
    border-color: var(--organic-text) !important;
    transform: scale(1.02) !important;
}

/* --- Messages / Chat --- */

.message-bubble {
    border-radius: 18px 18px 4px 18px;
    background: var(--organic-secondary);
    padding: 12px 16px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05);
    position: relative;
    max-width: 70%;
}

.message-bubble.sent {
    background: var(--organic-primary);
    border-radius: 18px 18px 18px 4px;
    margin-left: auto;
}

.message-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: inherit;
}

.message-bubble.received::before {
    left: -8px;
    border-bottom-right-radius: 16px;
}

.message-bubble.sent::before {
    right: -8px;
    border-bottom-left-radius: 16px;
}

/* --- Avatars & Photos --- */

img.avatar, .profile-photo {
    border: 3px solid var(--organic-text);
    border-radius: 50% 48% 52% 50% / 50% 52% 48% 50%;
    box-shadow: var(--sketchy-shadow);
    transition: all 0.3s ease;
}

img.avatar:hover, .profile-photo:hover {
    transform: rotate(-5deg) scale(1.05);
    border-radius: 48% 52% 50% 50% / 52% 48% 50% 52%;
}

/* --- Formulaires stylisés --- */

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    font-family: 'Amatic SC', cursive;
    font-size: 1.5rem;
    color: var(--organic-text);
    margin-bottom: 5px;
    display: block;
}

/* Effet "highlighter" sur focus */
input:focus, textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--organic-primary);
    background: linear-gradient(to top, rgba(255, 143, 171, 0.2) 0%, transparent 100%);
}

/* --- Badges de statut (online, nouveau, etc.) --- */

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid var(--organic-text);
    border-radius: 12px 4px 10px 6px;
    background: var(--organic-green);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.status-badge.online {
    background: var(--organic-green);
}

.status-badge.new {
    background: var(--organic-accent);
}

.status-badge.verified {
    background: var(--organic-secondary);
}

/* --- Confettis et décorations --- */

@keyframes confetti-fall {
    0% { 
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Éléments décoratifs (coeurs, étoiles) */
.decorative-heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

/* =========================================
   OVERRIDES FOR FULL ORGANIC EXPERIENCE
   ========================================= */

/* --- Global Overrides --- */
body {
    background-color: var(--organic-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E") !important;
    font-family: 'Patrick Hand', cursive, sans-serif !important;
    color: var(--organic-text) !important;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Amatic SC', cursive !important;
    letter-spacing: 1px;
}

/* --- Header --- */
.header {
    background: #fff !important;
    border-bottom: 2px solid var(--organic-text) !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.05) !important;
    border-bottom-left-radius: 50% 2px;
    border-bottom-right-radius: 50% 2px;
}

.header-nav a {
    font-family: 'Amatic SC', cursive !important;
    font-weight: bold;
    font-size: 1.4rem !important;
}

/* --- Buttons & Inputs --- */
button, .btn, .cta-button, .action-btn {
    font-family: 'Patrick Hand', cursive !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    background-color: #fff !important;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1) !important;
    color: var(--organic-text) !important;
    text-transform: uppercase;
}

button:hover, .btn:hover {
    transform: translate(-2px, -2px) rotate(-1deg) !important;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.15) !important;
}

input, select, textarea {
    font-family: 'Patrick Hand', cursive !important;
    border: 2px solid var(--organic-text) !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    background: #fff !important;
    padding: 10px 15px !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05) !important;
}

input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--organic-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.2) !important;
}

/* --- Discover Page --- */
.discover-container {
    background: transparent !important;
}

.filters-panel {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius) !important;
    box-shadow: var(--sketchy-shadow) !important;
    transform: rotate(-1deg);
    padding: 1.5rem !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
}

/* Desktop: Sidebar is just a wrapper, no style */
@media (min-width: 1025px) {
    .filters-sidebar {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        transform: none !important;
    }
}

/* Mobile: Sidebar is an overlay */
@media (max-width: 1024px) {
    .filters-sidebar {
        background: rgba(0, 0, 0, 0.8) !important; /* Dark overlay */
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .filters-panel {
        transform: none !important; /* No rotation on mobile for better fit */
        max-height: 80vh !important;
        margin: 2rem auto !important;
    }
}

.filters-header h3 {
    color: var(--organic-text) !important;
    border-bottom: 2px dashed var(--organic-accent);
    padding-bottom: 5px;
}

.results-info {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    box-shadow: var(--sketchy-shadow) !important;
    color: var(--organic-text) !important;
}

#resultsCount {
    color: var(--organic-primary) !important;
    font-size: 1.2rem;
}

/* --- Filters Panel Fixes --- */
.filters-panel label, 
.filters-panel span, 
.filters-panel div,
.filters-panel h3,
.filters-panel h4 {
    color: var(--organic-text) !important;
    text-shadow: none !important;
}

.filters-panel input[type="text"],
.filters-panel input[type="number"],
.filters-panel select {
    color: var(--organic-text) !important;
    background-color: #fff !important;
    border-color: var(--organic-text) !important;
}

.filters-panel input::placeholder {
    color: #666 !important;
}

/* --- Header Greeting Fix --- */
/* Target specific greeting elements that might be white */
.nav-user span, 
#user-name, 
.user-greeting,
.header-nav a {
    color: var(--organic-text) !important;
    text-shadow: none !important;
}

.header-nav a:hover {
    color: var(--organic-primary) !important;
}

/* --- Profile Cards (Polaroid Style) --- */
.compact-profile-card {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: 2px !important;
    padding: 10px !important; /* Reduced padding, no extra bottom */
    box-shadow: 5px 5px 10px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
    transform: rotate(var(--rotation, 0deg));
    position: relative;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

/* Colorful sticky notes effect for cards */
.compact-profile-card:nth-child(5n+1) { --rotation: 2deg; background: #fff !important; }
.compact-profile-card:nth-child(5n+2) { --rotation: -1.5deg; background: #fffdf0 !important; /* Light yellow */ }
.compact-profile-card:nth-child(5n+3) { --rotation: 1deg; background: #f0faff !important; /* Light blue */ }
.compact-profile-card:nth-child(5n+4) { --rotation: -2deg; background: #fff0f5 !important; /* Light pink */ }
.compact-profile-card:nth-child(5n+5) { --rotation: 1.5deg; background: #f0fff5 !important; /* Light green */ }

.compact-profile-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 100;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.15) !important;
}

.compact-profile-image {
    border: 2px solid #eee !important;
    border-radius: 0 !important;
    overflow: hidden;
    filter: sepia(0.3) contrast(1.1);
    transition: filter 0.3s;
    aspect-ratio: 1 / 1;
    width: 100% !important;
    margin-bottom: 5px !important; /* Reduced space */
}

.compact-profile-card:hover .compact-profile-image {
    filter: sepia(0) contrast(1);
}

.compact-profile-info {
    position: relative !important; /* No longer absolute */
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    text-align: center;
    font-family: 'Patrick Hand', cursive !important;
    padding: 0 5px !important;
    margin: 0 !important; /* Reset all margins */
}

.compact-profile-info h4 {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.5rem !important;
    color: var(--organic-text) !important;
    margin: 0 0 2px 0 !important; /* Reduced margin */
    line-height: 1.2;
}

.compact-profile-city {
    font-size: 1rem !important;
    color: #666 !important;
    margin-top: 0 !important;
}

.compact-profile-last-seen {
    color: var(--organic-text) !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    margin-top: 5px !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* --- Profile Page --- */
.profile-header, .profile-section {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-lg) !important;
    box-shadow: var(--sketchy-shadow) !important;
    margin-bottom: 2rem !important;
    /* Grid paper effect */
    background-image: 
        linear-gradient(#fdfbf7 2px, transparent 2px), 
        linear-gradient(90deg, #fdfbf7 2px, transparent 2px), 
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px) !important;
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px !important;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px !important;
}

.profile-header-content h1, .profile-section h2 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: var(--organic-text) !important;
    text-decoration: underline;
    text-decoration-color: var(--organic-primary);
    text-decoration-style: wavy;
}

/* --- Messages Page --- */
.messages-container {
    background: transparent !important;
    gap: 1.5rem !important;
}

.conversations-sidebar {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius) !important;
    box-shadow: var(--sketchy-shadow) !important;
    transform: rotate(0.5deg);
}

.chat-area {
    height: 600px !important;
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-lg) !important;
    box-shadow: var(--sketchy-shadow) !important;
    /* Lined paper effect */
    background-image: repeating-linear-gradient(transparent, transparent 29px, #a2d2ff 30px) !important;
    background-attachment: local;
    transform: rotate(-0.5deg);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Center the empty state content */
.chat-area .no-conversation-selected {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    text-align: center !important;
    padding: 2rem !important;
}

.chat-area .no-conversation-selected h3 {
    font-family: 'Amatic SC', cursive !important;
    font-size: 2.5rem !important;
    color: var(--organic-primary) !important;
    margin-bottom: 1rem !important;
    transform: rotate(-2deg);
}

.chat-area .no-conversation-selected p {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.2rem !important;
    color: var(--organic-text) !important;
}

.message-bubble {
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    border: 2px solid var(--organic-text) !important;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1) !important;
    font-family: 'Patrick Hand', cursive !important;
    padding: 12px 18px !important;
    max-width: 70% !important;
}

.message-bubble.sent {
    background-color: var(--organic-green) !important;
    color: var(--organic-text) !important;
    transform: rotate(1deg);
    margin-left: auto !important;
}

.message-bubble.received {
    background-color: #fff !important;
    color: var(--organic-text) !important;
    transform: rotate(-1deg);
    margin-right: auto !important;
}

/* --- Badges & Tags --- */
.badge, .tag {
    border: 1px solid var(--organic-text) !important;
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px !important;
    background: var(--organic-accent) !important;
    color: var(--organic-text) !important;
    font-weight: bold;
    padding: 4px 10px !important;
}

/* --- Modal --- */
.modal-content, .profile-modal-overlay > div {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-lg) !important;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.15) !important;
    /* Paper texture */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E") !important;
    position: relative;
}

/* Close button as a hand-drawn X */
.close-modal, .modal-close-btn {
    background: transparent !important;
    border: none !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 2rem !important;
    color: var(--organic-text) !important;
    box-shadow: none !important;
    transform: rotate(5deg);
}

.close-modal:hover, .modal-close-btn:hover {
    transform: scale(1.2) rotate(-5deg) !important;
    color: var(--organic-primary) !important;
}

/* Profile Modal Specifics */
.profile-modal-header {
    border-bottom: 2px dashed var(--organic-text) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

/* Photo Container - Polaroid Style */
.profile-modal-photos, .profile-modal-photos-large {
    background: #fff !important;
    padding: 15px !important;
    padding-bottom: 40px !important; /* Polaroid bottom space */
    border: var(--sketchy-border) !important;
    border-radius: 2px !important; /* Sharper corners for photo paper */
    box-shadow: var(--sketchy-shadow) !important;
    transform: rotate(-2deg) !important;
    margin-bottom: 2rem !important;
    display: block !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.profile-modal-photos img, .profile-modal-photos-large img {
    border: 2px solid #eee !important; /* Inner border */
    box-shadow: none !important;
    width: 100% !important;
    max-width: 400px !important; /* Limit width */
    height: auto !important;
    display: block !important;
    transform: none !important; /* Reset internal rotation */
}

/* Info Details (Rows) - Sketchy Strips */
.profile-detail {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important; /* Sketchy radius */
    box-shadow: 3px 3px 0 rgba(0,0,0,0.05) !important;
    margin-bottom: 12px !important;
    padding: 12px 20px !important;
    transform: rotate(0.5deg) !important;
    transition: transform 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    animation: none !important; /* Disable slide animation to avoid conflicts */
}

.profile-detail:nth-child(even) {
    transform: rotate(-0.5deg) !important;
}

.profile-detail:hover {
    transform: scale(1.02) rotate(0deg) !important;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1) !important;
    background: #fffbf0 !important; /* Slightly cream on hover */
}

.detail-label {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: var(--organic-primary) !important;
    letter-spacing: 1px !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.detail-value {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.2rem !important;
    color: var(--organic-text) !important;
    font-weight: normal !important;
    float: none !important; /* Flexbox handles alignment */
}

/* Bio / About Section - Note Paper */
.profile-bio {
    background: #fff !important; /* White paper */
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius) !important;
    box-shadow: var(--sketchy-shadow) !important;
    padding: 25px !important;
    margin-top: 25px !important;
    transform: rotate(1deg) !important;
    position: relative !important;
    animation: none !important;
}

.profile-bio h4 {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.8rem !important;
    color: var(--organic-secondary) !important;
    border-bottom: 2px dashed var(--organic-secondary) !important;
    padding-bottom: 5px !important;
    margin-bottom: 15px !important;
    display: inline-block !important;
}

.profile-bio p {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.1rem !important;
    color: var(--organic-text) !important;
    line-height: 1.6 !important;
}

/* Interests Section - Organic Pills */
.profile-interests-full {
    margin-top: 25px !important;
    padding: 10px !important;
}

.profile-interests-full h4 {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.8rem !important;
    color: var(--organic-text) !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.interests-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.interest-badge {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%) !important; /* Warm gradient */
    color: #fff !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    padding: 8px 16px !important;
    border-radius: 50px !important; /* Pill shape */
    border: 2px solid rgba(255,255,255,0.5) !important;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1) !important;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1) !important;
    transform: rotate(-2deg) !important;
    transition: transform 0.2s !important;
    display: inline-block !important;
}

.interest-badge:nth-child(even) {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%) !important; /* Purple/Pink gradient alternate */
    transform: rotate(2deg) !important;
}

.interest-badge:nth-child(3n) {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%) !important; /* Green/Blue gradient alternate */
    transform: rotate(-1deg) !important;
}

.interest-badge:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

/* --- Home Page Overrides --- */

/* Hero Section */
.hero-modern {
    background: transparent !important; /* Remove gradient */
    padding: 80px 20px 120px !important;
    position: relative;
    overflow: visible !important;
}

/* Hand-drawn cloud/shape background for Hero */
.hero-modern::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: 0;
    background: linear-gradient(135deg, #fff5f5 0%, #f0f8ff 100%); /* Soft pastel gradient */
    border-bottom: 3px solid var(--organic-text);
    border-radius: 0 0 50% 50% / 0 0 20% 20%; /* Big curve */
    z-index: -1;
    box-shadow: 0 10px 0 rgba(0,0,0,0.05);
    transform: rotate(-1deg);
}

.hero-modern-title {
    color: var(--organic-text) !important;
    text-shadow: 3px 3px 0px rgba(255, 143, 171, 0.3) !important; /* Pink shadow */
    font-size: 4rem !important;
    transform: rotate(-2deg);
}

.hero-sub-tagline, .hero-tagline, .hero-modern-subtitle {
    color: var(--organic-text) !important;
    font-family: 'Patrick Hand', cursive !important;
    opacity: 0.9 !important;
}

.hero-sub-tagline {
    color: var(--organic-primary) !important;
    font-weight: bold !important;
    transform: rotate(2deg);
}

/* Hero CTA Button */
.btn-hero-modern-primary {
    background: var(--organic-accent) !important;
    color: var(--organic-text) !important;
    border: 3px solid var(--organic-text) !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2) !important;
    font-family: 'Amatic SC', cursive !important;
    font-size: 2rem !important;
    padding: 15px 50px !important;
    transform: rotate(-1deg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-hero-modern-primary:hover {
    transform: scale(1.1) rotate(2deg) !important;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.2) !important;
    background: var(--organic-primary) !important;
    color: #fff !important;
}

/* Hero Stats */
.hero-modern-stats {
    background: #fff !important;
    border: 2px solid var(--organic-text) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    padding: 15px !important;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1) !important;
    transform: rotate(1deg);
    margin-top: 30px;
    display: inline-flex;
    gap: 20px;
}

.hero-stat-item {
    border-right: 2px dashed #eee;
    padding-right: 20px;
}

.hero-stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.hero-stat-value {
    font-family: 'Amatic SC', cursive !important;
    font-size: 2rem !important;
    color: var(--organic-secondary) !important;
}

/* New Members Section */
.new-members-modern {
    margin-top: 50px;
}

.section-title-modern {
    font-family: 'Amatic SC', cursive !important;
    font-size: 3rem !important;
    color: var(--organic-text) !important;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title-modern::after {
    content: '';
    display: block;
    width: 100%;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='10' viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 5 Q 25 10 50 5 T 100 5' stroke='%23ff8fab' fill='none' stroke-width='3'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    margin-top: -10px;
}

.gender-section-modern {
    background: rgba(255, 255, 255, 0.6) !important; /* Semi-transparent white */
    border: var(--sketchy-border) !important;
    border-radius: var(--sketchy-radius-lg) !important;
    padding: 20px !important;
    margin-bottom: 40px;
    box-shadow: var(--sketchy-shadow) !important;
    position: relative;
}

.gender-section-modern:nth-of-type(odd) {
    transform: rotate(-0.5deg);
    background: #f0faff !important; /* Light blue tint */
}

.gender-section-modern:nth-of-type(even) {
    transform: rotate(0.5deg);
    background: #fff0f5 !important; /* Light pink tint */
}

/* Tape effect on corners */
.gender-section-modern::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px;
    height: 35px;
    background: rgba(255, 255, 220, 0.8); /* Yellowish tape */
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.gender-header-modern {
    border-bottom: 2px dashed var(--organic-text);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.gender-title-modern {
    font-family: 'Amatic SC', cursive !important;
    font-size: 2rem !important;
    color: var(--organic-text) !important;
}

/* --- Scrollbar --- */

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-left: 2px solid var(--organic-text);
}
::-webkit-scrollbar-thumb {
    background: var(--organic-text); 
    border-radius: 10px;
    border: 2px solid #fff;
}
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* --- Chat Specifics - Chalkboard Theme --- */

/* Main Container */
.messages-container {
    background: transparent !important;
    gap: 0 !important; /* Remove gap to connect board and notebook */
    padding: 20px !important;
}

/* Sidebar - The Notebook */
.conversations-sidebar {
    background: #fff !important;
    border: var(--sketchy-border) !important;
    border-right: none !important; /* Connect to board */
    border-radius: 10px 0 0 10px !important;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.1) !important;
    transform: rotate(-1deg);
    z-index: 2;
    /* Notebook lines */
    background-image: repeating-linear-gradient(transparent, transparent 29px, #a2d2ff 30px) !important;
    background-attachment: local;
}

.conversation-item {
    border-bottom: 1px dashed var(--organic-text) !important;
    padding: 10px 15px !important; /* Reduced padding */
    transition: background 0.2s;
    background: rgba(255,255,255,0.8) !important; /* Slightly see-through for lines */
    height: auto !important; /* Let content define height */
}

.conversation-content {
    display: flex !important;
    flex-direction: row !important; /* Horizontal layout */
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.conversation-avatar {
    flex-shrink: 0 !important;
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 0 !important; /* Reset any vertical margin */
}

.conversation-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2) !important;
}

.conversation-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-align: left !important; /* Align text to left */
}

.conversation-name {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: var(--organic-text) !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.conversation-preview {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1rem !important;
    color: #666 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

.conversation-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 60px !important;
}

.conversation-time {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1rem !important;
    color: #888 !important;
}

.conversation-item:hover, .conversation-item.active {
    background-color: rgba(255, 217, 125, 0.5) !important; /* Highlighter effect */
    transform: scale(1.02) translateX(5px);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* Chat Area - The Chalkboard */
.chat-area, #chat-main {
    background-color: #1e2b25 !important; /* Darker Blackboard Green */
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E"),
        radial-gradient(circle at center, #2c3e35 0%, #151f1a 100%) !important;
    border: 12px solid #5d4037 !important; /* Wood frame */
    border-radius: 5px 15px 5px 15px !important;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        10px 10px 20px rgba(0,0,0,0.2) !important;
    transform: rotate(1deg);
    margin-left: -10px; /* Overlap with notebook */
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    position: relative !important;
}

/* Reset #chat-main specific styles that might override */
#chat-main {
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Empty State - Chalk Writing */
.no-conversation-selected {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    text-align: center !important;
    padding: 2rem !important;
}

.no-conversation-selected h3 {
    font-family: 'Amatic SC', cursive !important;
    font-size: 4rem !important;
    color: rgba(255,255,255,0.95) !important; /* White Chalk */
    margin-bottom: 1.5rem !important;
    transform: rotate(-2deg);
    text-shadow: 
        2px 2px 0px rgba(0,0,0,0.2),
        0 0 5px rgba(255,255,255,0.3); /* Chalk glow */
}

.no-conversation-selected p {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 2.2rem !important; /* Larger text for readability */
    color: #ffffff !important; /* Pure white */
    font-weight: bold !important;
    letter-spacing: 1px !important;
    border: 4px solid rgba(255,255,255,0.6) !important; /* Thicker Chalk box */
    padding: 2rem 3rem !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    transform: rotate(1deg);
    max-width: 80%;
    background: rgba(0,0,0,0.2); /* Darker background for better contrast */
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); /* Shadow for readability */
}

/* Chat Header - Top of the board */
.chat-header {
    background: transparent !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
    box-shadow: none !important;
    color: #fff !important;
    flex-shrink: 0 !important; /* Don't shrink */
}

.chat-header h3, .chat-header p, .chat-header span {
    color: #fff !important;
    font-family: 'Amatic SC', cursive !important;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.chat-avatar img {
    border: 2px solid rgba(255,255,255,0.5) !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2) !important;
}

/* Messages - Chalk writing */
#chat-messages, .chat-messages {
    padding: 20px !important;
    padding-bottom: 100px !important; /* Adjusted for ~10px gap above input bar (bar is ~85px) */
    background: transparent !important;
    flex: 1 !important; /* Take available space */
    overflow-y: auto !important; /* Scrollable */
    height: 100% !important; /* Ensure full height */
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
}

/* Wrapper inside chat messages */
.messages-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding-bottom: 0px !important;
    width: 100% !important;
}

.message-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.5rem !important; /* Slightly larger */
    font-weight: bold !important;
    padding: 5px 15px !important;
    max-width: 80% !important;
    position: relative;
    letter-spacing: 0.5px;
    flex-shrink: 0 !important; /* Don't shrink messages */
    width: fit-content !important; /* Ensure it fits content */
    min-width: 50px !important; /* Minimum width to prevent crushing */
    word-break: normal !important; /* Prevent aggressive breaking */
    overflow-wrap: break-word !important; /* Only break if necessary */
    white-space: pre-wrap !important; /* Preserve spaces but wrap */
}

.message-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1.5rem !important; /* Ensure text size is applied here too */
    line-height: 1.2 !important;
}

/* --- Toast Notifications - Sticky Note Style --- */
.toast-notification, #message-toast {
    background: #fff176 !important; /* Brighter Yellow Sticky Note */
    color: #000 !important; /* Pure black for contrast */
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.5rem !important; /* Larger text */
    font-weight: bold !important;
    border: 3px solid #000 !important; /* Thicker border */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.2) !important; /* Deeper shadow */
    transform: translateX(-50%) rotate(-2deg) !important;
    padding: 20px 40px !important; /* More padding */
    max-width: 80vw !important;
    white-space: normal !important;
    text-align: center !important;
    z-index: 99999 !important;
    /* Override inline positioning */
    top: auto !important;
    bottom: 3rem !important;
    right: auto !important;
    left: 50% !important;
}

#message-toast img {
    border: 2px solid #000 !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1) !important;
    width: 80px !important; /* 2x bigger */
    height: 80px !important;
}

#message-toast div {
    font-family: 'Patrick Hand', cursive !important;
    color: #000 !important;
    text-shadow: none !important;
    font-size: 1.8rem !important; /* Bigger message text */
    line-height: 1.1 !important;
}

.toast-notification.show, #message-toast[style*="display: block"] {
    animation: toastPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes toastPop {
    0% { transform: translateX(-50%) scale(0.5) rotate(-10deg); opacity: 0; }
    70% { transform: translateX(-50%) scale(1.1) rotate(5deg); }
    100% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 1; }
}

/* --- Presence Indicators - Hand-drawn Dots --- */
.online-badge, .online-badge-inline, .profile-online-badge {
    background: #a5d6a7 !important; /* Pastel Green Chalk */
    border: 2px solid var(--organic-text) !important;
    box-shadow: none !important;
    border-radius: 50% 40% 60% 50% / 50% 60% 40% 50% !important; /* Imperfect circle */
    animation: organicPulse 3s infinite ease-in-out !important;
}

/* Remove gradients and modern effects */
.online-badge::after, .online-badge-inline::after {
    display: none !important;
}

@keyframes organicPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1); }
}

/* Specific adjustments for positioning if needed */
.online-badge {
    width: 18px !important;
    height: 18px !important;
    right: 15px !important;
    bottom: 15px !important;
}

.online-badge-inline {
    width: 14px !important;
    height: 14px !important;
    border-width: 1.5px !important;
    margin-left: 8px !important;
}

/* Blocked Badge - Red X Sticker */
.blocked-badge, .blocked-badge-header {
    background: #ffcdd2 !important; /* Pastel Red */
    border: 2px solid var(--organic-text) !important;
    border-radius: 5px !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 8px !important; /* More padding */
    font-family: 'Patrick Hand', cursive !important;
    font-weight: normal !important; /* Avoid faux bold blur */
    color: var(--organic-text) !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1) !important;
    transform: none !important; /* Remove rotation for maximum sharpness */
    display: inline-flex !important; /* Better alignment */
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: none !important; /* Remove blur effect */
    -webkit-backdrop-filter: none !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 0.5px !important;
    text-shadow: none !important; /* Ensure no shadow causes blur */
}

/* Specifics for .blocked-badge (Icon replacement) */
.blocked-badge {
    font-size: 0 !important; /* Hide original icon */
}
.blocked-badge::before {
    content: 'BLOQUÉ' !important;
    font-size: 0.9rem !important;
}

/* Specifics for .blocked-badge-header (Already text) */
.blocked-badge-header {
    font-size: 0.9rem !important;
}
.blocked-badge-header::before {
    content: none !important;
}

/* Hide original icon if it was an image/svg */
.blocked-badge svg, .blocked-badge img, .blocked-badge-header svg, .blocked-badge-header img {
    display: none !important;
}

/* Sent messages (Me) - White Chalk */
.message.sent {
    align-self: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
    max-width: 80% !important;
    width: fit-content !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

.message-bubble.sent, .message.sent .message-content {
    color: rgba(255, 255, 255, 0.95) !important;
    background: transparent !important;
    text-shadow: 
        1px 1px 0 rgba(255,255,255,0.2), 
        0 0 2px rgba(255,255,255,0.3); /* Chalk dust glow */
    transform: rotate(1deg);
    text-align: right;
    margin-left: 0 !important; /* Handled by parent */
    border-bottom: 2px solid rgba(255,255,255,0.3) !important; /* Thicker underline */
    border-radius: 0 0 255px 5px / 5px 225px 5px 25px !important; /* Curved underline */
    display: inline-block !important; /* Allow width to fit content */
    padding: 5px 15px !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Received messages (Them) - Pink Chalk */
.message.received {
    align-self: flex-start !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: left !important;
    max-width: 80% !important;
    width: fit-content !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.message-bubble.received, .message.received .message-content {
    color: #ffb7b2 !important; /* Pastel Pink Chalk */
    background: transparent !important;
    text-shadow: 
        1px 1px 0 rgba(255, 183, 178, 0.2), 
        0 0 2px rgba(255, 183, 178, 0.3);
    transform: rotate(-1deg);
    text-align: left;
    margin-right: 0 !important; /* Handled by parent */
    border-bottom: 2px solid rgba(255, 183, 178, 0.3) !important;
    border-radius: 0 0 5px 255px / 25px 5px 225px 5px !important;
    display: inline-block !important; /* Allow width to fit content */
    padding: 5px 15px !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Override gradient backgrounds from chat-enhancements.css */
.message.sent, .message.received {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Chat Metadata - Timestamps & Status */
.message-time, .message-time-inline {
    color: rgba(255,255,255,0.6) !important;
    font-family: 'Amatic SC', cursive !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    margin-top: 0px !important; /* Pull it up closer to text */
    /*line-height: 1 !important;*/
    margin-bottom: 2px !important;
}

.read-checkmark {
    color: #a5d6a7 !important; /* Pastel Green Chalk */
    text-shadow: 0 0 2px rgba(165, 214, 167, 0.4);
}

.read-checkmark.read {
    color: #66bb6a !important; /* Brighter Green when read */
}

/* Date Separators */
.date-separator {
    background: transparent !important;
    color: rgba(255,255,255,0.7) !important;
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.2rem !important;
    border-bottom: 1px dashed rgba(255,255,255,0.2) !important;
    margin: 15px auto !important;
    width: 80% !important;
    text-align: center !important;
}

.date-separator span {
    background: #1e2b25 !important; /* Match board background */
    padding: 0 10px !important;
}

/* Input Area - The Wood Tray */
.chat-input-container, .chat-input-area {
    background: #5d4037 !important; /* Lighter Wood for contrast */
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 4px) !important;
    border-top: 4px solid #3e2723 !important;
    padding: 15px 20px !important;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3) !important;
    position: absolute !important; /* Force to bottom */
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 100 !important; /* Ensure on top */
    display: block !important; /* Ensure visible */
}

.chat-input-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    width: 100% !important;
    gap: 15px !important;
    align-items: center !important;
}

/* Input Field - Paper Strip Style */
#message-input {
    background: #fff !important; /* White Paper */
    border: var(--sketchy-border) !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    color: var(--organic-text) !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.3rem !important;
    padding: 12px 20px !important;
    width: 100% !important;
    flex: 1 !important;
    box-sizing: border-box !important;
    min-height: 50px !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05) !important;
    transform: rotate(-0.5deg);
}

#message-input::placeholder {
    color: #999 !important;
    font-style: italic !important;
}

/* Send Button - Sticker Style */
.send-button {
    background: var(--organic-primary) !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    transition: all 0.2s ease !important;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: rotate(2deg);
}

.send-button:hover {
    background: var(--organic-secondary) !important;
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2) !important;
}

.send-button svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

/* Unread Badge - Red Sticker Style */
.unread-badge, 
.conversation-item .unread-badge, 
.nav-user .unread-badge,
.header-nav .unread-badge {
    background: #ff4757 !important; /* Vibrant Red Fill */
    color: #fff !important; /* White text */
    border: 2px solid #fff !important; /* White border for contrast */
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.2rem !important; /* Larger text */
    font-weight: bold !important;
    transform: rotate(-10deg);
    padding: 4px 8px !important; /* More padding */
    min-width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: badgePulse 2s infinite ease-in-out !important; /* Restore pulse */
    /* Reset potential gradient overrides */
    background-image: none !important;
}

@keyframes badgePulse {
    0% { transform: scale(1) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1) rotate(-10deg); }
}

/* =========================================
   HIGH CONTRAST & READABILITY FIXES
   ========================================= */

/* Force dark text on all standard text elements */
body, p, span, div, li, label, input, select, textarea, button {
    color: var(--organic-text);
}

/* EXCEPTION: Chat area needs light text */
.chat-area p, .chat-area span, .chat-area div, .chat-area input {
    color: inherit; /* Let specific rules handle it */
}

/* Specific overrides for elements that might be too light */
.text-muted, .text-secondary, .profile-subtitle, .discover-header p, .section-subtitle-modern, .hero-sub-tagline, .hero-tagline, .hero-modern-subtitle {
    color: #2c3e50 !important; /* Force dark charcoal */
    font-weight: 600 !important; /* Make it bolder */
    text-shadow: none !important;
}

/* Links */
a {
    color: var(--organic-text);
}

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

/* Footer Overrides - Complete Redesign */
footer {
    background: #fffbf0 !important; /* Creamy white */
    border-top: 2px solid var(--organic-text) !important;
    color: var(--organic-text) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E") !important;
    margin-top: 50px !important;
    box-shadow: 0 -5px 0 rgba(0,0,0,0.05) !important;
}

.footer-section h3 {
    color: var(--organic-text) !important;
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.8rem !important;
    border-bottom: 2px dashed var(--organic-accent);
    padding-bottom: 5px;
    margin-bottom: 15px !important;
}

.footer-section a {
    color: var(--organic-text) !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.2rem !important;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--organic-primary) !important;
    text-decoration: underline !important;
    text-decoration-style: wavy !important;
    opacity: 1;
    transform: translateX(5px);
    display: inline-block;
}

/* Input Placeholders - Make them readable */
::placeholder {
    color: #6c757d !important; /* Darker gray */
    opacity: 0.8 !important;
    font-style: italic;
}

/* Form Labels */
label {
    color: var(--organic-text) !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

/* Hero text specific fix */
.hero-modern-content {
    color: var(--organic-text) !important;
}

.hero-modern-content p {
    color: var(--organic-text) !important;
    opacity: 1 !important;
}

/* Fix for any white text on light background */
[class*="text-white"], .text-white {
    color: var(--organic-text) !important;
}

/* Fix for badges that might have white text */
.badge, .tag, .status-badge {
    color: var(--organic-text) !important;
    text-shadow: none !important;
}

/* ==========================================================================
   CONNECTED PROFILE EDIT - INTERESTS STYLING
   ========================================================================== */

/* Container */
.interests-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 10px 0 !important;
}

/* Base Interest Tag (Unselected) */
.interests-grid .interest-tag {
    background: #fff !important;
    color: var(--organic-text) !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.1rem !important;
    font-weight: normal !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    border: 2px solid #e0e0e0 !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.05) !important;
    transform: rotate(0deg) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
}

.interests-grid .interest-tag:hover {
    border-color: var(--organic-pink) !important;
    transform: translateY(-2px) !important;
    opacity: 1 !important;
}

/* Selected Interest Tag (Colorful Pills) */
.interests-grid .interest-tag.selected {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%) !important;
    color: #fff !important;
    font-weight: bold !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1) !important;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1) !important;
    transform: rotate(-2deg) scale(1.05) !important;
    opacity: 1 !important;
}

.interests-grid .interest-tag.selected:nth-child(even) {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%) !important;
    transform: rotate(2deg) scale(1.05) !important;
}

.interests-grid .interest-tag.selected:nth-child(3n) {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%) !important;
    transform: rotate(-1deg) scale(1.05) !important;
}

/* ==========================================================================
   CONNECTED PROFILE EDIT - FORM STYLING
   ========================================================================== */

/* 1. Read-only Info Items (Pink/Red original -> Organic Pink) */
.info-item {
    background: #fff !important;
    border: 2px solid var(--organic-pink) !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    box-shadow: 4px 4px 0 rgba(255, 127, 137, 0.2) !important;
    padding: 1.5rem !important;
    transform: rotate(-1deg) !important;
    transition: transform 0.3s ease !important;
    border-left: 2px solid var(--organic-pink) !important; /* Override original thick border */
}

.info-item:hover {
    transform: rotate(0deg) scale(1.02) !important;
    box-shadow: 6px 6px 0 rgba(255, 127, 137, 0.3) !important;
    background: #fff0f3 !important;
}

.info-item label {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.4rem !important;
    color: var(--organic-pink) !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
}

.info-item p {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.3rem !important;
    color: var(--organic-text) !important;
    font-weight: normal !important;
}

/* 2. Form Groups (Blue original -> Organic Blue) */
.form-group {
    background: #fff !important;
    border: 2px solid #8fd3f4 !important; /* Pastel Blue */
    border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px !important;
    box-shadow: 4px 4px 0 rgba(143, 211, 244, 0.3) !important;
    padding: 1.5rem !important;
    transform: rotate(1deg) !important;
    transition: transform 0.3s ease !important;
    border-left: 2px solid #8fd3f4 !important; /* Override original thick border */
}

.form-group:hover {
    transform: rotate(0deg) scale(1.02) !important;
    box-shadow: 6px 6px 0 rgba(143, 211, 244, 0.4) !important;
    background: #f0f8ff !important;
}

.form-group label {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.4rem !important;
    color: #4facfe !important; /* Stronger Blue for text */
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.form-group input,
.form-group select {
    border: 2px dashed #8fd3f4 !important;
    border-radius: 10px !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.1rem !important;
    color: var(--organic-text) !important;
    background: rgba(255,255,255,0.8) !important;
    box-shadow: none !important;
    padding: 0.8rem !important;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4facfe !important;
    border-style: solid !important;
    background: #fff !important;
    transform: scale(1.01) !important;
    outline: none !important;
}

/* 3. Full Width Form Groups (Purple original -> Organic Purple) */
.form-group.full-width {
    background: #fff !important;
    border: 2px solid #a18cd1 !important; /* Pastel Purple */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    box-shadow: 4px 4px 0 rgba(161, 140, 209, 0.3) !important;
    transform: rotate(-0.5deg) !important;
    border-left: 2px solid #a18cd1 !important; /* Override original thick border */
}

.form-group.full-width:hover {
    transform: rotate(0deg) scale(1.01) !important;
    box-shadow: 6px 6px 0 rgba(161, 140, 209, 0.4) !important;
    background: #f8f4ff !important;
}

.form-group.full-width label {
    color: #8e44ad !important; /* Stronger Purple */
}

.form-group.full-width textarea {
    border: 2px dashed #a18cd1 !important;
    border-radius: 15px !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.1rem !important;
    color: var(--organic-text) !important;
    background: rgba(255,255,255,0.8) !important;
    padding: 1rem !important;
}

.form-group.full-width textarea:focus {
    border-color: #8e44ad !important;
    border-style: solid !important;
    background: #fff !important;
    outline: none !important;
}

/* Field Hints */
.field-hint {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 0.9rem !important;
    color: #999 !important;
    font-style: italic !important;
    margin-top: 5px !important;
}

/* ==========================================================================
   ORGANIC FLAGS STYLING
   ========================================================================== */

.flag-icon {
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.15) !important;
    border: 2px solid #fff !important;
    transform: rotate(-2deg) scale(1.1) !important;
    transition: all 0.2s ease !important;
    filter: contrast(1.1) saturate(1.1) !important;
}

.flag-icon:hover {
    transform: rotate(2deg) scale(1.2) !important;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2) !important;
    z-index: 10 !important;
}

/* Adjust flags in dropdowns to be slightly less rotated to align better */
.language-option .flag-icon,
.language-item .flag-icon {
    transform: rotate(-1deg) scale(1) !important;
    margin-right: 8px !important;
}

.language-option:hover .flag-icon,
.language-item:hover .flag-icon {
    transform: rotate(1deg) scale(1.1) !important;
}

/* ==========================================================================
   ORGANIC LANGUAGE SELECTOR (Like Contact Button)
   ========================================================================== */

.language-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important; /* Slightly larger to fit sketchy shape */
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    background: linear-gradient(145deg, #a18cd1, #fbc2eb) !important; /* Purple/Pink gradient */
    border: 2px solid var(--organic-text) !important; /* Sketchy border like other buttons */
    border-radius: var(--sketchy-radius-sm) !important; /* Sketchy square shape */
    box-shadow: 3px 3px 0 rgba(0,0,0,0.15) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    overflow: hidden !important;
    animation: contactPulse 3s ease-in-out infinite reverse !important;
}

.language-toggle:hover {
    background: linear-gradient(145deg, #8e44ad, #a18cd1) !important;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2) !important;
    transform: scale(1.1) rotate(-2deg) !important;
}

.language-toggle:active {
    transform: scale(0.98) !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.15) !important;
}

/* Reset flag styles INSIDE the toggle */
.language-toggle .flag-icon {
    width: 24px !important;
    height: 18px !important;
    border-radius: 2px !important; /* Standard flag shape inside sketchy button */
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
    object-fit: cover !important;
}

.language-toggle:hover .flag-icon {
    transform: scale(1.1) !important;
}

/* ==========================================================================
   ORGANIC REPORT MODAL STYLING
   ========================================================================== */

/* Reasons Grid */
.report-reasons-grid {
    gap: 15px !important;
}

.report-reason-card {
    background: #fff !important;
    border: 2px solid var(--organic-text) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
    transform: rotate(0deg) !important;
}

.report-reason-card:hover {
    transform: rotate(-2deg) scale(1.02) !important;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.15) !important;
    background: #fffbf0 !important;
}

.report-reason-card.selected {
    background: #ffe3e3 !important; /* Light red/pink */
    border-color: #e74c3c !important;
    transform: rotate(1deg) scale(1.05) !important;
    box-shadow: 4px 4px 0 rgba(231, 76, 60, 0.2) !important;
}

.reason-emoji {
    font-size: 2rem !important;
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.1));
}

.reason-label {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    color: var(--organic-text) !important;
}

.reason-check {
    background: #e74c3c !important;
    border: 2px solid var(--organic-text) !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2) !important;
}

/* Textarea */
.report-textarea {
    border: 2px solid var(--organic-text) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    font-family: 'Patrick Hand', cursive !important;
    font-size: 1.1rem !important;
    background: #fff !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05) !important;
    padding: 15px !important;
}

.report-textarea:focus {
    border-color: var(--organic-primary) !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), 0 0 0 2px rgba(255, 143, 171, 0.2) !important;
}

/* Process Steps */
.report-process-section {
    background: rgba(255,255,255,0.5) !important;
    border: 2px dashed var(--organic-text) !important;
    border-radius: var(--sketchy-radius) !important;
    padding: 20px !important;
    margin-top: 20px !important;
}

.report-process-title {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.5rem !important;
    color: var(--organic-text) !important;
    border-bottom: none !important;
    text-decoration: underline decoration-wavy var(--organic-secondary);
}

.process-step {
    background: transparent !important;
    border-left: 2px solid var(--organic-secondary) !important;
    padding-left: 15px !important;
    margin-bottom: 15px !important;
}

.step-icon {
    font-size: 1.5rem !important;
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.1));
}

.step-text strong {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.3rem !important;
    color: var(--organic-text) !important;
}

.step-text small {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 0.9rem !important;
    color: #666 !important;
}

/* Footer Buttons */
.report-modal-footer {
    border-top: 2px dashed var(--organic-text) !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
}

.btn-cancel {
    background: #fff !important;
    color: var(--organic-text) !important;
}

.btn-submit {
    background: var(--organic-primary) !important;
    color: #fff !important;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2) !important;
}

.btn-submit:disabled {
    background: #ccc !important;
    border-color: #999 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Rules Section */
.report-rules-section {
    background: #fffbf0 !important;
    border: 2px solid var(--organic-text) !important;
    border-radius: var(--sketchy-radius-sm) !important;
    padding: 15px !important;
    margin-top: 15px !important;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1) !important;
}

.report-rules-title {
    font-family: 'Amatic SC', cursive !important;
    font-size: 1.4rem !important;
    color: var(--organic-text) !important;
    margin-bottom: 10px !important;
}

.report-rules-list li {
    font-family: 'Patrick Hand', cursive !important;
    font-size: 0.95rem !important;
    margin-bottom: 5px !important;
}

/* Warning */
.report-warning {
    background: #ffe3e3 !important;
    border: 2px dashed #e74c3c !important;
    border-radius: var(--sketchy-radius-sm) !important;
    padding: 10px !important;
    margin-top: 15px !important;
    font-family: 'Patrick Hand', cursive !important;
    color: #c0392b !important;
    text-align: center !important;
    transform: rotate(-1deg) !important;
}

/* ============================================
   MOBILE RESPONSIVE FIXES (HOTFIX)
   ============================================ */
@media (max-width: 768px) { 
    body, html { 
        overflow-x: hidden !important; 
        width: 100% !important; 
        position: relative; 
    } 
    .hero-modern { 
        padding-top: 80px !important;
        padding-left: 15px !important; 
        padding-right: 15px !important; 
        width: 100% !important; 
        max-width: 100% !important; 
        box-sizing: border-box !important; 
    } 
    .hero-modern-title { 
        font-size: 2rem !important; 
        word-break: break-word; 
    }
    
    /* Header Compact Fixes */
    .header-container {
        padding: 0 1rem !important;
        gap: 0.2rem !important;
    }
    .header .btn, .header a.btn, .nav-guest a, .action-btn {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.8rem !important;
        margin: 0 1px !important;
        min-width: auto !important;
        letter-spacing: -0.5px !important;
    }
    .logo {
        font-size: 1.7rem !important;
        margin-right: auto !important; /* Push everything else to the right */
        letter-spacing: -1px;
    }
    .header-actions {
        gap: 2px !important;
    }
    .language-toggle {
        padding: 2px !important;
        width: 24px !important;
        height: 24px !important;
    }
    .fi {
        font-size: 1.2rem !important;
        width: 1.2rem !important;
        height: 1.2rem !important;
    }
}

