.countries-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.countries-page *,
.countries-page *::before,
.countries-page *::after {
    box-sizing: border-box;
}

.countries-page .logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.countries-page #language-picker-widget {
    text-align: center;
    margin-bottom: 40px;
}

.countries-page #language-picker-widget .lpw-select2 .select2-selection--single {
    background: #6e586b;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    height: auto;
    padding: 10px 16px;
    outline: none;
    min-width: 220px;
}
.countries-page #language-picker-widget .lpw-select2 .select2-selection--single .select2-selection__rendered {
    color: #fff;
    font-size: 15px;
    padding: 0;
    line-height: 1.4;
}
.countries-page #language-picker-widget .lpw-select2 .select2-selection--single .select2-selection__arrow {
    display: none;
}
.lpw-select2-dropdown {
    background: #6e586b !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
}
.lpw-select2-dropdown .select2-search--dropdown { padding: 6px; }
.lpw-select2-dropdown .select2-search--dropdown .select2-search__field {
    background: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #333;
    outline: none;
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
}
.lpw-select2-dropdown .select2-search--dropdown .select2-search__field::placeholder { color: #999; }
.lpw-select2-dropdown .select2-results__option { color: #fff; font-size: 14px; padding: 7px 14px; }
.lpw-select2-dropdown .select2-results__option--highlighted[aria-selected] { background: rgba(255,255,255,0.2) !important; color: #fff !important; }
.lpw-select2-dropdown .select2-results__option[aria-selected=true] { background: rgba(255,255,255,0.1); }
.lpw-select2-dropdown .select2-results { max-height: 320px; overflow-y: auto; }

@media (max-width: 576px) {
    .countries-page #language-picker-widget .lpw-select2.select2-container,
    .countries-page #language-picker-widget .lpw-select2 .select2-selection--single { width: 100% !important; box-sizing: border-box; }
    .lpw-select2-dropdown { position: fixed !important; left: 0 !important; right: 0 !important; width: 100% !important; border-radius: 0 !important; }
}

.countries-page .countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.countries-page .country-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(110, 88, 107, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.countries-page .country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(110, 88, 107, 0.2);
}

.countries-page .country-link {
    text-decoration: none;
    color: #6e586b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 30px;
    flex: 1;
}

.countries-page .country-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.countries-page .country-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.countries-page .country-link:hover .country-title {
    color: #f1d6df;
}

.countries-page .stylist-count {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.countries-page .cities-btn-wrapper {
    width: 100%;
    border-top: 1px solid #f0f0f0;
}

.countries-page .cities-btn {
    background: transparent;
    color: #6e586b;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countries-page .cities-btn:hover {
    background: #f1d6df;
    color: #6e586b;
}

.countries-page .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    animation: cpFadeIn 0.3s ease;
}

.countries-page .modal.active {
    display: block;
}

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

.countries-page .modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 50px;
    border-radius: 20px;
    max-width: 900px;
    position: relative;
    animation: cpSlideIn 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

@keyframes cpSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.countries-page .close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 35px;
    font-weight: 300;
    color: #6e586b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.countries-page .close:hover {
    color: #f1d6df;
}

.countries-page .modal-title {
    color: #6e586b;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.countries-page .modal-title-link {
    color: #6e586b;
    text-decoration: none;
}

.countries-page .modal-title-link:hover {
    color: #f1d6df;
}

.countries-page .modal-top-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.countries-page .modal-top-tag {
    display: inline-block;
    background: #f1d6df;
    color: #6e586b;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.countries-page .modal-top-tag:hover {
    background: #6e586b;
    color: white;
    transform: scale(1.05);
}

.countries-page .modal-intro {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.countries-page .section-title {
    color: #6e586b;
    font-size: 22px;
    margin: 30px 0 20px;
    font-weight: 600;
}

.countries-page .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.countries-page .tag {
    display: inline-block;
    background: #f1d6df;
    color: #6e586b;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.countries-page .tag:hover {
    background: #6e586b;
    color: white;
    transform: scale(1.05);
}

.countries-page .routine-btn {
    display: inline-block;
    background: #6e586b;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.countries-page .routine-btn:hover {
    background: #f1d6df;
    color: #6e586b;
    transform: scale(1.05);
}

/* Standalone mode (com siteaccess) */
body.countries-standalone {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    min-height: 100vh;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .countries-page .modal-content {
        margin: 10px;
        padding: 25px 15px;
    }

    .countries-page .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countries-page .country-link {
        padding: 20px 15px 15px;
    }

    .countries-page .country-emoji {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .countries-page .country-title {
        font-size: 16px;
    }

    .countries-page .modal-title {
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .countries-page .countries-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== ZenChat ========== */
#zenchat-cta{position:fixed;top:0;left:0;right:0;z-index:2000;display:flex;justify-content:center;pointer-events:none;}
#zenchat-cta-btn{pointer-events:all;display:inline-flex;align-items:center;gap:6px;background:#fff;border:none;border-radius:0 0 20px 20px;padding:5px 18px 7px;font-size:12px;font-weight:600;letter-spacing:.04em;color:#6e586b;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.13);transition:box-shadow .2s;}
#zenchat-cta-btn:hover{box-shadow:0 4px 16px rgba(0,0,0,.2);}
#zenchat-badge{background:#d4698f;color:#fff;border-radius:10px;font-size:10px;font-weight:700;padding:1px 6px;margin-left:2px;display:none;}
#zenchat-badge.visible{display:inline-block;}
#zenchat-modal{display:none;position:fixed;bottom:0;right:0;left:0;top:0;z-index:1999;align-items:flex-end;justify-content:center;}
#zenchat-modal.open{display:flex;}
#zenchat-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35);}
#zenchat-box{position:relative;width:100%;max-width:480px;height:78vh;max-height:680px;background:#fff;border-radius:16px 16px 0 0;display:flex;flex-direction:column;box-shadow:0 -4px 30px rgba(0,0,0,.15);overflow:hidden;}
#zenchat-head{display:flex;align-items:center;gap:10px;padding:14px 16px;background:#6e586b;color:#fff;flex-shrink:0;}
#zenchat-head span{font-weight:700;font-size:15px;flex:1;}
#zenchat-head small{font-size:11px;opacity:.75;}
#zenchat-close{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;padding:0 4px;line-height:1;}
#zenchat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;}
.zenchat-msg{max-width:82%;padding:9px 13px;border-radius:14px;font-size:14px;line-height:1.45;}
.zenchat-msg.bot{background:#f3eff3;color:#333;align-self:flex-start;border-bottom-left-radius:3px;}
.zenchat-msg.user{background:#6e586b;color:#fff;align-self:flex-end;border-bottom-right-radius:3px;}
#zenchat-foot{padding:10px 12px;border-top:1px solid #eee;display:flex;gap:8px;align-items:flex-end;flex-shrink:0;}
#zenchat-input{flex:1;border:1px solid #ddd;border-radius:20px;padding:9px 14px;font-size:14px;resize:none;max-height:100px;outline:none;font-family:inherit;}
#zenchat-input:focus{border-color:#6e586b;}
#zenchat-send{background:#6e586b;border:none;border-radius:50%;width:38px;height:38px;color:#fff;cursor:pointer;font-size:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;}
#zenchat-send:hover{background:#5a4758;}
#zenchat-upload{background:none;border:none;cursor:pointer;font-size:18px;padding:4px;color:#999;flex-shrink:0;}
#zenchat-file-input{display:none;}
#zenchat-preview{padding:0 12px 8px;display:flex;gap:6px;flex-wrap:wrap;}
.zenchat-thumb{position:relative;width:52px;height:52px;}
.zenchat-thumb img{width:52px;height:52px;object-fit:cover;border-radius:8px;}
.zenchat-thumb-del{position:absolute;top:-4px;right:-4px;background:#d4698f;border:none;border-radius:50%;width:16px;height:16px;color:#fff;font-size:10px;cursor:pointer;line-height:16px;text-align:center;padding:0;}

