@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;800&family=Nunito:wght@400;700&display=swap');
@import url('css/header-search.css');
@import url('css/section-header.css');
@import url('css/japan-map.css');
@import url('css/news-section.css');

* {
    box-sizing: border-box;
}

:root {
    /* Kawaii & Premium Palette */
    --primary: #FF85A1;
    /* Soft Pink */
    --primary-dark: #FF5C8A;
    /* Darker Pink */
    --secondary: #FFD93D;
    /* Gold/Yellow Accent */
    --accent: #B19BEB;
    /* Soft Lavender */

    --bg: #ffffff;
    /* White Background */
    --bg-gradient: #ffffff;

    --surface: #ffffff;
    --border: #FFE4E1;
    /* Misty Rose */

    --text-main: #5D4E60;
    /* Soft Dark Purple/Gray */
    --text-muted: #9A8C9E;

    --shadow-soft: 0 10px 30px rgba(255, 133, 161, 0.15);
    --shadow-pop: 4px 4px 0px rgba(255, 133, 161, 0.2);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-round: 50px;
}

body {
    margin: 0;
    font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.8;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    /* box-shadow: 0 4px 20px rgba(255, 133, 161, 0.05); */
}

/* [NEW] Demo / Beta Branding */
.beta-badge {
    display: inline-block;
    background: #4F46E5;
    /* Indigo */
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
}

.notification-bar {
    background: linear-gradient(90deg, #4F46E5, #9333EA);
    /* Indigo to Purple */
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 90;
    /* Below header and region-nav */
}

.notification-bar a {
    color: #FFD93D;
    text-decoration: underline;
    margin-left: 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    /* Increased from 70px for larger logo */
}

.logo {
    display: flex;
    align-items: center;
    /* Image logo handles the look */
}

/* 
.logo::before {
    content: '🌙';
    font-size: 1.4rem;
} 
*/

.gradient-text {
    /* Kept for potential use */
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
    display: inline-block;
}

/* Nav Icon Items */
.nav-links .nav-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    /* Gray color */
    margin-left: 1.5rem;
    transition: all 0.2s;
    font-weight: 700;
}

.nav-icon-item .material-symbols-outlined {
    font-size: 28px;
    margin-bottom: 2px;
    color: #AAA;
}

.nav-icon-item .nav-icon-label {
    font-size: 0.7rem;
    /* Small text */
    line-height: 1;
}

.nav-icon-item:hover {
    color: var(--primary);
    transform: translateY(-2px);
}



/* Specific Colors */
.nav-icon-home .material-symbols-outlined {
    color: #FF85A1;
    /* Pink */
}

.nav-icon-home:hover {
    color: #FF85A1;
    background: rgba(255, 133, 161, 0.1);
    border-radius: 12px;
}

.nav-icon-login .material-symbols-outlined {
    color: #4ECDC4;
    /* Teal */
}

.nav-icon-login:hover {
    color: #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 12px;
}

.nav-icon-signup .material-symbols-outlined {
    color: #FFD93D;
    /* Yellow */
}

.nav-icon-signup:hover {
    color: #FFC300;
    background: rgba(255, 217, 61, 0.1);
    border-radius: 12px;
}

.nav-icon-item {
    /* Add padding for hover background effect */
    padding: 5px 10px;
    margin-left: 0.5rem;
    /* Adjust margin since we have padding */
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a.active::after {
    content: '●';
    color: var(--primary);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
}

.btn-primary-sm {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 2px solid white;
    /* box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3); */
    transition: all 0.2s;
}

.btn-primary-sm:hover {
    transform: scale(1.05) rotate(-2deg);
    /* box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4); */
}

/* Hero */
.hero-portal {
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background decoration for Hero */
.hero-portal::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}

.hero-title span {
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding: 0 5px;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 217, 61, 0.6);
    /* Yellow Marker */
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border-radius: 20px;
    border: 3px solid var(--border);
    /* Thick border */
    background: white;
    color: var(--text-main);
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    /* box-shadow: var(--shadow-pop); */
}

.search-bar input:focus {
    border-color: var(--primary);
    transform: translateY(-2px);
    /* box-shadow: 6px 6px 0px rgba(255, 107, 107, 0.2); */
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: bold;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-darker {
    background: #ffffff;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '✨';
    margin-right: 10px;
}

.section-title::after {
    content: '✨';
    margin-left: 10px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
    border: 2px solid white;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
    border-color: var(--secondary);
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.1));
}

.category-card h3 {
    margin: 0.5rem 0;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 800;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Bot Grid (SNS Feed Style) */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* [NEW] Single Column Override */
.bot-grid-single {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    gap: 4rem;
    /* Increased margin between cards */
}

/* Hide Shop Header by default in Grid View */
.shop-header-container {
    display: none;
}

/* Show Shop Header ONLY in Single Column Mode */
.bot-grid-single .shop-header-container {
    display: block;
}

/* Hide Legacy Mini Header in Single Column Mode */
.bot-grid-single .bot-mini-header {
    display: none;
}

/* [NEW] Body Layout Logic */
.shop-body-single {
    display: none;
    /* Hidden by default (Grid view uses grid-view-content) */
}

.bot-grid-single .grid-view-content {
    display: none;
    /* Hide old grid content in Single Column Mode */
}

.bot-grid-single .shop-body-single {
    display: flex;
    /* Show new flex layout in Single Column Mode */
    gap: 15px;
    padding: 15px;
    align-items: stretch;
}

/* =========================================
   Alternating Themes (CSS Variables) 
   ========================================= */
/* Lavender Theme (Even) - Default */
.bot-grid-single .bot-card {
    --shop-primary: #9575CD;
    /* Deep Lavender */
    --shop-light: #EDE7F6;
    /* Light Lavender BG */
    --shop-bubble: #B39DDB;
    /* Medium Lavender */
    --shop-accent: #7E57C2;
    /* Darker Accent Text */
    --shop-text: #4527A0;
    /* Dark Text */
    --shop-btn-bg: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%);
    /* Purple Gradient */
    --shop-btn-shadow: 0 6px 12px rgba(124, 77, 255, 0.4);
    /* Purple Shadow */
    --shop-btn-hover-shadow: 0 8px 16px rgba(124, 77, 255, 0.6);
    /* Deeper Purple Shadow for Hover */
}

/* Pink Theme (Odd) - Alternating */
.bot-grid-single .bot-card:nth-child(odd) {
    --shop-primary: #FF4081;
    /* Vibrant Pink */
    --shop-light: #FF80AB;
    /* Soft Pink BG (Row2) - Using Soft Pink to match original request slightly better */
    --shop-bubble: #FF80AB;
    /* Soft Pink Bubble */
    --shop-accent: #C2185B;
    /* Dark Pink text */
    --shop-text: #880E4F;
    /* Darker Pink text */
    --shop-btn-bg: linear-gradient(135deg, #FF4081 0%, #FF80AB 100%);
    /* Pink Gradient */
    --shop-btn-shadow: 0 6px 12px rgba(255, 64, 129, 0.4);
    /* Pink Shadow */
    --shop-btn-hover-shadow: 0 8px 16px rgba(255, 64, 129, 0.6);
    /* Deeper Pink Shadow for Hover */
}

/* Specific Adjustment for Pink Theme Row2 Background (Use Lightest Pink for cleaner look if requested, but sticking to Soft Pink as per previous feedback) */
/* Actually, let's use a very light pink for Row2 background on Pink theme to match Lavender style, cleaner look */
.bot-grid-single .bot-card:nth-child(odd) {
    --shop-light: #FFEBEE;
    /* Very Light Pink BG */
}


/* Talk Button (Right) */
.shop-footer-talk-btn {
    background: var(--shop-btn-bg);
    /* Theme Gradient */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 45px;
    min-width: 160px;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shop-btn-shadow);
    /* Theme Shadow */
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Add box-shadow transition */
}

.shop-footer-talk-btn:hover {
    box-shadow: var(--shop-btn-hover-shadow);
    /* Theme Hover Shadow */
    transform: translateY(-2px);
    /* Slight lift on hover */
}


/* Left Banner (50%) */
.shop-banner-left {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    background-color: #eee;
    height: 280px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* PC: imgタグは非表示（background-imageを使用） */
.shop-banner-img {
    display: none;
}

/* Right Details (50%) */
.shop-details-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Wage Box - Variable Theme */
.shop-wage-box {
    border: none;
    border-radius: 10px;
    padding: 18px 10px 10px;
    position: relative;
    text-align: center;
    background: var(--shop-light);
    margin-bottom: 8px;
}

.shop-wage-label {
    position: absolute;
    top: -12px;
    left: 10px;
    background: var(--shop-primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.shop-wage-value {
    color: var(--shop-text);
    font-weight: 800;
    font-size: 1.4rem;
}

/* Hours List */
.shop-hours-list {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shop-hour-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-yellow {
    background: #FFD93D;
    color: #555;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Action Buttons - hidden by default, shown in .bot-grid-single only */
.shop-action-buttons {
    display: none;
    gap: 8px;
}

.bot-grid-single .shop-action-buttons {
    display: flex;
}

.shop-action-buttons button {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px 5px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity 0.2s;
}

/* PC: 話すボタンは非表示（フッターにある） */
.shop-action-buttons .btn-talk-sp {
    display: none;
}

.shop-action-buttons button:hover {
    opacity: 0.9;
}

.shop-action-buttons .material-symbols-outlined {
    font-size: 20px;
}

.btn-sns-green {
    background: #25D366;
    color: white;
}

.btn-tel-pink {
    background: #3f72fc;
    /* Consistent Pink for Phone button regardless of theme */
    color: white;
}

.btn-hp-white {
    background: white;
    border: 1px solid var(--shop-primary) !important;
    /* Theme Border */
    color: var(--shop-primary) !important;
    /* Theme Text */
    transition: all 0.2s;
}

.btn-hp-white:hover {
    background: var(--shop-light);
    /* Slight BG tint on hover */
    border-color: var(--shop-primary) !important;
    color: var(--shop-primary) !important;
    opacity: 0.8;
}

/* Mobile Adjustment for Single Column Layout */
@media (max-width: 768px) {
    .bot-grid-single .shop-body-single {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 15px;
    }

    .shop-banner-left {
        flex: none;
        width: 100%;
        height: auto;
        border-radius: 8px;
        background-image: none !important;
        background-color: transparent;
    }

    .shop-banner-img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .shop-details-right {
        width: 100%;
    }

    .shop-wage-box {
        padding: 16px 8px 10px;
        margin-bottom: 10px;
    }

    .shop-wage-value {
        font-size: 1.2rem;
    }

    .shop-hours-list {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .shop-hour-row {
        margin-bottom: 8px;
    }

    .shop-action-buttons {
        gap: 6px;
        margin-top: 5px;
        flex-wrap: wrap;
    }

    .shop-action-buttons button,
    .shop-action-buttons .btn-talk-sp {
        flex: none;
        width: calc(50% - 3px);
        padding: 10px 3px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    /* SP: 話すボタンを表示 */
    .btn-talk-sp {
        display: flex !important;
        background: var(--shop-btn-bg);
        color: white;
        border: none;
    }

    /* SP: フッターの話すボタンを非表示 */
    .shop-footer-talk-btn {
        display: none;
    }

    /* Footer: icon + bubble + talk button */
    .bot-grid-single .shop-footer-single {
        padding: 12px;
        gap: 10px;
    }

    .shop-footer-icon {
        width: 50px;
        height: 50px;
    }

    .shop-footer-bubble {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .shop-footer-talk-btn {
        padding: 10px 16px;
        font-size: 1rem;
    }

    /* Card gap */
    .bot-grid-single {
        gap: 2rem;
    }
}


/* [NEW] Shop Footer Structure */
.shop-footer-single {
    display: none;
}

.bot-grid-single .shop-footer-single {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    margin-top: 5px;
}

/* Bot Icon (Circle) */
.shop-footer-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    /* border: 3px solid #000; */
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* Speech Bubble - Theme Variable */
.shop-footer-bubble {
    background: var(--shop-bubble);
    /* Theme Bubble */
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    flex-grow: 1;
    line-height: 1.4;
}

.shop-footer-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 12px 10px 0;
    border-style: solid;
    border-color: transparent var(--shop-bubble) transparent transparent;
    /* Theme Triangle */
}

/* Talk Button (Right) */
/* Old style removed - replaced by variable-based style above */

.shop-footer-talk-btn .material-symbols-outlined {
    font-size: 28px;
}

.shop-footer-talk-btn:active {
    transform: scale(0.95);
}

/* =============================================
   [NEW] Portal-only Card Enhancements
   Scoped to .bot-grid-single to not affect index.html
   ============================================= */

/* Wider banner on portal pages */
.bot-grid-single .shop-banner-left {
    flex: 1.3;
}

/* Category Tabs (出稼ぎ, 人妻・熟女, etc.) */
.bot-grid-single .shop-category-tabs {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.bot-grid-single .category-tab {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
}

.bot-grid-single .category-tab:hover {
    border-color: var(--shop-primary, #e91e8c);
    color: var(--shop-primary, #e91e8c);
}

/* Feature Tags Grid (こだわり条件 4×2) */
.bot-grid-single .shop-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.bot-grid-single .feature-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 4px;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(236, 72, 153, 0.25);
}



/* Form Apply Button */
.bot-grid-single .btn-form-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f9fafb;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.bot-grid-single .btn-form-apply .material-symbols-outlined {
    font-size: 16px;
}

.bot-grid-single .btn-form-apply:hover {
    background: #f1f5f9;
    border-color: #aaa;
}

/* Favorite Button */
.bot-grid-single .btn-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: #fff0f5;
    color: var(--shop-primary, #e91e8c);
    border: 1px solid #ffc0cb;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.bot-grid-single .btn-favorite .material-symbols-outlined {
    font-size: 16px;
}

.bot-grid-single .btn-favorite:hover {
    background: #ffe4ec;
    border-color: var(--shop-primary, #e91e8c);
}

/* Hide portal-only elements on non-portal layouts (index.html) */
.shop-category-tabs,
.shop-features-grid,
.btn-form-apply,
.btn-favorite {
    display: none;
}

/* Shop Header Styles - Theme Variable */
.shop-header-row1 {
    background: var(--shop-primary);
    /* Theme Primary */
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.shop-catchphrase {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.shop-favorite {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.shop-header-row2 {
    background: var(--shop-light);
    /* Theme Light BG */
    color: var(--shop-text);
    /* Theme Text */
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.shop-name-header {
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

/* [NEW] Industry Badge Styling */
.industry-badge {
    display: inline-flex;
    align-items: center;
    background: #FFF0F5;
    /* Soft pink tint */
    color: var(--shop-accent);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: 8px;
    vertical-align: middle;
}

.shop-meta-header {
    font-size: 0.85rem;
    font-weight: 700;
}


.bot-card {
    background: var(--surface);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid white;
    box-shadow: 0 2px 10px rgba(255, 133, 161, 0.1);
}

.bot-card:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 15px 35px rgba(255, 133, 161, 0.25); */
    /* border-color: var(--shop-primary) !important; */
    /* Use theme color instead of global primary */
}

.bot-cover {
    aspect-ratio: 2 / 1;
    background: linear-gradient(120deg, #FFC3A0 0%, #FF85A1 100%);
    /* Peach to Pink */
    position: relative;
    background-size: cover;
    background-position: center;
}

.bot-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: white;
    position: absolute;
    bottom: -37px;
    right: 20px;
    border: 4px solid var(--surface);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bot-info {
    padding: 0.8rem;
    padding-top: 0.5rem;
    /* padding-right removed to fix whitespace */
}

/* SNS Style Header inside Card */
.bot-mini-header {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 94px;
}

.bot-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 94px;
}

.bot-desc {
    font-size: 0.85rem;
    color: #7b6f80;
    /* Slightly purple gray */
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard Property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.bot-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: #FFF0F5;
    color: var(--primary-dark);
    font-weight: 800;
    border: 1px solid rgba(255, 133, 161, 0.2);
}

/* Like / Action Bar */
.card-actions {
    border-top: 2px solid #F7F7F7;
    padding-top: 10px;
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.action-item:hover {
    color: var(--primary);
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.2s;
}

.view-all:hover {
    color: var(--primary);
}


/* CTA */
.cta-section {
    text-align: center;
    background: #fdf2f8;
    margin-top: 4rem;
    padding: 4rem 2rem;
}

.cta-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: #db2777;
    color: white;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #be185d;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, #e0f7fa 0%, #ffffff 100%);
    padding: 5rem 0;
    margin-top: 3rem;
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-catch {
    font-size: 1rem;
    color: #5eadb0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5eadb0;
    margin-bottom: 1.5rem;
}

.about-logo {
    max-width: 200px;
    height: auto;
}

.about-block {
    margin-bottom: 2.5rem;
}

.about-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f472b6;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid #f472b6;
}

.about-block p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 2;
    margin-bottom: 1rem;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.about-block strong {
    color: #db2777;
    font-weight: 600;
}

.about-closing {
    text-align: center;
    padding: 2rem;
    background: #fdf2f8;
    margin-top: 2rem;
}

.about-closing p {
    font-size: 1rem;
    font-weight: 600;
    color: #db2777;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }

    .about-container {
        padding: 0 1rem;
    }

    .about-title {
        font-size: 1.3rem;
    }

    .about-logo {
        max-width: 160px;
    }

    .about-block h3 {
        font-size: 1.05rem;
    }

    .about-block p {
        font-size: 0.9rem;
    }

    .about-closing {
        padding: 1.5rem;
    }

    .about-closing p {
        font-size: 0.9rem;
    }
}

/* Skeleton */
.bot-skeleton {
    height: 300px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px dashed #eee;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Footer */
/* Pagination */
.pagination-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn.pagination-prev,
.pagination-btn.pagination-next {
    padding: 0 8px;
}

.pagination-btn .material-symbols-outlined {
    font-size: 20px;
}

.pagination-ellipsis {
    color: #9ca3af;
    padding: 0 4px;
}

.pagination-info {
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .pagination {
        gap: 0.3rem;
    }
}

/* Bottom Navigation Section */
.bottom-nav-section {
    margin-top: 2.5rem;
    padding: 0;
}

.bottom-nav-accordion {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 133, 161, 0.1);
    margin-bottom: 1.5rem;
}

.bottom-nav-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.bottom-nav-accordion-header:hover {
    filter: brightness(1.05);
}

.bottom-nav-accordion-header .accordion-icon {
    transition: transform 0.3s;
}

.bottom-nav-accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.bottom-nav-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bottom-nav-accordion.open .bottom-nav-accordion-body {
    max-height: 300px;
}

.bottom-nav-region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1.25rem;
}

.bottom-nav-region-btn {
    padding: 0.75rem 0.5rem;
    background: #fff;
    border: 2px solid #E9D5FF;
    border-radius: 25px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7C3AED;
    text-decoration: none;
    transition: all 0.2s;
}

.bottom-nav-region-btn:hover {
    background: #FAF5FF;
    border-color: #9333EA;
    transform: translateY(-2px);
}

.bottom-nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bottom-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
}

.bottom-nav-btn.primary {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.bottom-nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.bottom-nav-btn.outline {
    background: white;
    border: 2px solid #9333EA;
    color: #7C3AED;
}

.bottom-nav-btn.outline:hover {
    background: #FAF5FF;
    transform: translateY(-2px);
}

.bottom-nav-btn .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 768px) {
    .bottom-nav-region-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }

    .bottom-nav-region-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .bottom-nav-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .bottom-nav-btn {
        width: 100%;
        min-width: auto;
    }
}

/* =========================================
   Action Panel - Flat Section Layout
   ========================================= */
.action-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.action-card {
    padding: 1.5rem;
}

.search-card {
    background: linear-gradient(135deg, #fff5f7 0%, #fff0f3 100%);
}

.member-card {
    background: linear-gradient(135deg, #f8f5ff 0%, #f3efff 100%);
}

/* セクションヘッダー */
.action-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.search-card .action-card-header {
    color: #db2777;
}

.member-card .action-card-header {
    color: #7c3aed;
}

.action-card-header .material-symbols-outlined {
    font-size: 1.1rem;
}

/* セクションボディ */
.action-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* 検索ボタン */
.action-search-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.action-search-btn:hover {
    background: white;
    transform: translateX(4px);
}

.action-search-btn .material-symbols-outlined:first-child {
    color: #ec4899;
    font-size: 1.2rem;
}

.action-search-btn .arrow {
    margin-left: auto;
    color: #d1d5db;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

/* エリアドロップダウン */
.region-dropdown {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    padding: 0.6rem;
    background: white;
}

.region-dropdown.show {
    display: grid;
}

.region-dropdown a {
    padding: 0.5rem;
    background: #fff5f7;
    border: none;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #db2777;
    text-decoration: none;
    transition: all 0.15s;
}

.region-dropdown a:hover {
    background: #fce7f3;
}

/* 会員ボタン */
.action-member-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
}

.action-member-btn.login {
    background: white;
    color: #7c3aed;
}

.action-member-btn.login:hover {
    transform: translateX(4px);
}

.action-member-btn.register {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
}

.action-member-btn.register:hover {
    transform: translateX(4px);
}

.action-member-btn.mypage {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
}

.action-member-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

.register-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
}

/* セクションフッター */
.action-card-footer {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    font-size: 0.7rem;
    color: #9ca3af;
}

.action-card-footer .material-symbols-outlined {
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .action-panel {
        grid-template-columns: 1fr;
    }

    .action-card {
        padding: 1.25rem;
    }

    .action-search-btn,
    .action-member-btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.8rem;
    }

    .region-dropdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Prefecture Modal */
.prefecture-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.prefecture-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.prefecture-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.prefecture-modal-close:hover {
    background: #e5e7eb;
}

.prefecture-modal-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF85A1;
    margin-bottom: 1.5rem;
}

.prefecture-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prefecture-region-group {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
}

.prefecture-region-group:last-child {
    border-bottom: none;
}

.prefecture-region-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.prefecture-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prefecture-btn {
    background: linear-gradient(135deg, #FF85A1 0%, #FF6B8A 100%);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.prefecture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 133, 161, 0.4);
}

@media (max-width: 768px) {
    .prefecture-modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }

    .prefecture-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Region Modal Grid */
.region-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.region-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #FF85A1 0%, #FF6B8A 100%);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.region-modal-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .region-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
}

.trust-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 2rem;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-item>.material-symbols-outlined {
    font-size: 32px;
    color: #10b981;
    flex-shrink: 0;
}

.trust-item-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 0.5rem 0;
}

.trust-item-content p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .trust-section {
        padding: 2rem 0;
    }

    .trust-items {
        grid-template-columns: 1fr;
    }

    .trust-item {
        padding: 1rem;
    }
}

.footer-wrapper {
    background-color: #FFF0F5;
    /* Soft Pink background */
    padding: 4rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    /* Logo, Menu, Regions */
    gap: 3rem;
    align-items: start;
}

.footer-logo {
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 700;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
    /* Slide effect */
}

.footer-region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 1.5rem;
}

.footer-region-grid a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s;
    display: block;
}

.footer-region-grid a:hover {
    color: var(--primary);
}


@media (max-width: 768px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
        /* Disable slide on mobile */
    }

    .footer-region-grid {
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Chat Modal - Keep functional styles simpler but compatible */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Mobile viewport fix */
    background: rgba(74, 74, 74, 0.8);
    /* Darker since no blur */
    /* backdrop-filter: blur(5px); Removed to fix position:fixed context issues */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    height: 80vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.maximized {
    width: 100vw;
    max-width: none;
    height: 100vh;
    border-radius: 0;
}

#chat-frame {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.9);
}

/* Tabs UI (for Admin etc if they use portal.css) */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sub-tab-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.2s;
}

.sub-tab-btn:hover {
    background: #FFF0F5;
    color: var(--primary);
    border-color: var(--primary);
}

.sub-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    /* box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3); */
}

/* =========================================
   Mobile Navigation (Hamburger)
   ========================================= */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 200;
}

.hamburger-btn span {
    font-size: 32px;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        /* More space for content */
    }

    .header-content {
        justify-content: space-between;
    }

    .hamburger-btn {
        display: block;
        /* Show on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        /* Slightly wider */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        padding-top: 100px;
        /* Space for close button */
        align-items: center;
        transition: right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
        z-index: 150;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.5rem;
    }

    .bot-grid {
        grid-template-columns: 1fr;
        /* Force 1 column per user request */
        gap: 1.5rem;
        /* More breathing room */
    }

    /* Mobile specific Card Tweaks removed to use full width */
    /* .bot-avatar and .bot-name reverted to desktop styles */

    .bot-mini-header {
        flex-wrap: wrap;
        /* Allow wrapping */
        line-height: 1.2;
    }

    /* Stack Section Header on Mobile */
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    /* Fullscreen Chat Modal on Mobile */
    #chat-modal .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        /* iOS fix */
        max-width: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        /* Disable scale effect */
        top: 0 !important;
        left: 0 !important;
        position: fixed !important;
        background: white !important;
        z-index: 100000 !important;
    }
}

/* Sort Buttons */
.sort-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn:hover {
    border-color: #cbd5e1;
}

.sort-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Kawaii Buttons - Refined */
.btn-kawaii-primary {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 800;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin-bottom: 4px;
    box-shadow: 0 4px 10px rgba(255, 92, 138, 0.3);
}

.btn-kawaii-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(255, 92, 138, 0.4);
}

.btn-kawaii-primary:active {
    transform: translateY(1px);
}

.btn-kawaii-secondary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 800;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 4px;
}

.btn-kawaii-secondary:hover {
    background: #FFF0F5;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-kawaii-secondary:active {
    transform: translateY(1px);
}

/* Region Sub-menu */
.region-nav-container {
    background: #FF6699;
    /* Vivid Pink */
    background: linear-gradient(90deg, #FF6699 0%, #FF5C8A 100%);
    position: sticky;
    top: 80px;
    /* Header height (80px) */
    z-index: 99;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.region-nav-container::-webkit-scrollbar {
    display: none;
}

.region-nav-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.region-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.8rem 0;
    min-width: max-content;
    /* Ensure it scrolls nicely */
}

.region-nav a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.region-nav a:hover {
    color: #FFF0F5;
    background: rgba(255, 255, 255, 0.2);
}

.region-nav a.active {
    color: #FFFF00;
    /* Yellow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.region-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFFF00;
    border-radius: 2px;
}

@media (max-width: 768px) {
    body {
        padding-top: 140px;
        /* create space for fixed header + nav */
    }

    .glass-header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }

    .region-nav-container {
        position: fixed;
        width: 100%;
        top: 81px;
        /* Header height */
        left: 0;
    }

    .region-nav {
        justify-content: flex-start;
        padding: 0.8rem 1rem;
        gap: 1.5rem;
    }

    /* 細いスクロールバー表示 */
    .region-nav-container {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    }

    .region-nav-container::-webkit-scrollbar {
        display: block;
        height: 3px;
    }

    .region-nav-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.2);
    }

    .region-nav-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.6);
        border-radius: 3px;
    }
}

/* Hero Slider */
.hero-portal {
    padding: 2rem 0 0;
    overflow: hidden;
    position: relative;
}

.slider-viewport {
    width: 100%;
    /* overflow: hidden; */
    display: flex;
    justify-content: flex-start;
    /* Changed from center to flex-start to align coords with JS */
    position: relative;
    /* Ensure stable context */
}

.slider-track {
    display: flex;
    align-items: center;
    gap: 20px;
    /* transition is managed by JS for the loop reset */
    will-change: transform;
}

.slide {
    width: 695px;
    height: auto;
    flex-shrink: 0;
    /* Prevent shrinking */
    /* border-radius: 16px; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); Removed for flat look */
    /* Ensure they look good */
    display: block;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    /* border-radius: 50%; */
    cursor: pointer;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--primary);
    /* Pink */
    opacity: 0;
    /* Hidden by default */
}

/* Show buttons on hover */
.hero-portal:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    /* box-shadow: 0 6px 15px rgba(255, 105, 180, 0.4); */
}

.prev-btn {
    left: calc(50% - 390px);
    /* 695px/2 = 347.5px + padding */
}

.next-btn {
    right: calc(50% - 390px);
}

@media (max-width: 900px) {

    /* On smaller screens where the calculation might push them off-screen or too close */
    .prev-btn {
        left: 20px;
    }

    .next-btn {
        right: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Region Nav (Horizontal Scroll) */
.region-nav {
    display: flex;
    justify-content: center;
    /* Center on PC */
    gap: 15px;
    padding: 10px 20px;
    overflow-x: auto;
    /* Enable scroll */
    white-space: nowrap;
    /* Prevent wrapping */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.region-nav::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

@media (max-width: 768px) {
    .region-nav {
        justify-content: flex-start;
        /* Align left for scrolling */
    }
}

/* Section Colors Swap */
#featured {
    background-color: #ffffff;
}

/* Sub Region Nav - Kawaii Style */
.sub-region-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 12px;
    padding: 15px 5px;
    margin-bottom: 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sub-region-nav::-webkit-scrollbar {
    display: none;
}

/* SP: 都道府県ボタンにも細いスクロールバー */
@media (max-width: 768px) {
    .sub-region-nav {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 133, 161, 0.5) rgba(255, 133, 161, 0.15);
    }

    .sub-region-nav::-webkit-scrollbar {
        display: block;
        height: 3px;
    }

    .sub-region-nav::-webkit-scrollbar-track {
        background: rgba(255, 133, 161, 0.15);
    }

    .sub-region-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 133, 161, 0.5);
        border-radius: 3px;
    }
}

.sub-region-btn {
    background: #FFF;
    border: 1px solid var(--primary);
    /* thinner border */
    border-radius: 50px;
    padding: 6px 16px;
    /* slightly smaller padding */
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    flex-shrink: 0;
    /* No shadow */
}

.sub-region-btn:hover {
    background: #FFF0F5;
    /* No shadow, no transform */
}

.sub-region-btn.active {
    background: var(--primary);
    color: white;
    /* No shadow */
}

/* --- City/Area Filter Nav (Second Level) --- */
.city-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
}

.city-nav::-webkit-scrollbar {
    display: none;
}

.city-nav.hidden {
    display: none;
}

.city-btn {
    background: #FFF;
    border: 1px solid #f59e0b;
    border-radius: 20px;
    padding: 5px 14px;
    color: #b45309;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.city-btn:hover {
    background: #fffbeb;
}

.city-btn.active {
    background: #f59e0b;
    color: white;
    border-color: #d97706;
}

/* --- Genre Filter Nav --- */
.genre-nav {
    position: relative;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.genre-nav-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0px;
    padding: 12px 5px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.genre-nav-scroll::-webkit-scrollbar {
    display: none;
}

.genre-btn {
    background: var(--genre-color);
    border: 2px solid var(--genre-color);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 6px 4px;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: opacity 0.15s;
    flex-shrink: 0;
    font-family: inherit;
    width: 113px;
    text-align: center;
    opacity: 0.6;
}

.genre-btn:hover {
    opacity: 1;
}

.genre-btn.active {
    opacity: 1;
    background: #ffffff;
    color: var(--genre-color);
}

#genre-tab-connector {
    position: absolute;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: #ffffff;
    transition: left 0.2s ease, width 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

/* --- 2-Banner Hero Grid --- */
.hero-banner-grid {
    display: grid;
    grid-template-columns: 695px 1fr;
    /* Left: 695px fixed, Right: remaining */
    grid-template-rows: 1fr;
    /* Single row */
    gap: 0;
    /* No gap */
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    height: 390px;
    /* Fixed height as requested */
}

.banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* No rounded corners */
    cursor: pointer;
    /* No shadow */
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Large Banner (Left) */
.banner-large {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/* Right Banner (Right) */
.banner-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: #4ECDC4;
    /* Fallback/Placeholder color */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 0;
        padding: 0;
    }

    .banner-large {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        height: auto;
    }

    .banner-right {
        display: none;
        /* SPでは非表示 */
    }
}

/* =========================================
   [NEW] Clickable Card Badges
   ========================================= */
.industry-badge.clickable-badge {
    cursor: pointer;
    transition: all 0.2s;
}

.industry-badge.clickable-badge:hover {
    background: #ff6b8b;
    /* Slightly darker pink for active feedback */
    color: white;
}

.meta-link {
    cursor: pointer;
    transition: color 0.2s;
}

.meta-link:hover {
    color: var(--shop-primary);
    text-decoration: underline;
}

/* =========================================
   SP Square Banner Slider (PC/SP Complete Split)
   ========================================= */
.hero-sp {
    display: none;
    /* PCでは完全非表示 */
}

@media (max-width: 768px) {

    /* PCスライダーを非表示 */
    .hero-portal {
        display: none !important;
    }

    /* SP用スライダーを表示 */
    .hero-sp {
        display: block;
        overflow: hidden;
        position: relative;
    }

    .sp-slider-track {
        display: flex;
        will-change: transform;
    }

    .sp-slide {
        width: 100vw;
        height: 100vw;
        /* 正方形 */
        object-fit: cover;
        flex-shrink: 0;
    }

    /* ドットインジケーター */
    .sp-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
    }

    .sp-slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s;
    }

    .sp-slider-dot.active {
        background: var(--primary);
        transform: scale(1.3);
    }
}

/* =============================================
   Custom Industry Dropdown
   ============================================= */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 160px;
}

.custom-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #ff85a1 0%, #ff6b8a 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 138, 0.3);
    white-space: nowrap;
}

.custom-dropdown-trigger:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.5);
    transform: translateY(-1px);
}

.custom-dropdown-trigger .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s;
}

.custom-dropdown.open .custom-dropdown-trigger .material-symbols-outlined {
    transform: rotate(180deg);
}

.custom-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.custom-dropdown.open .custom-dropdown-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s;
}

.custom-dropdown-item:hover {
    background: #fff0f3;
    color: #ff4081;
}

.custom-dropdown-item.selected {
    color: #ff4081;
    font-weight: 700;
    background: #fff5f7;
}

.custom-dropdown-item.selected::before {
    content: '✓';
    font-weight: 900;
    color: #ff4081;
}

.custom-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.custom-dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* =========================================
   Application Form Modal Styles (Portal)
   ========================================= */
.apply-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200000;
    /* チャットモーダル(100000)より上に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.apply-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.apply-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.apply-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.apply-close-btn:hover {
    color: #333;
}

.apply-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.apply-form-group {
    margin-bottom: 15px;
}

.apply-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 5px;
}

.apply-form-group .required {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: normal;
}

.apply-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.apply-form-group input:focus {
    border-color: #ec4899;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.apply-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.apply-modal-footer button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.apply-modal-footer .btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.apply-modal-footer .btn-submit {
    background: #ec4899;
    color: #fff;
}

.apply-modal-footer .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =========================================
   Cute Application Form Styles (V2)
   ========================================= */
.apply-modal-cute {
    border-radius: 20px;
    border: 2px solid #fce7f3;
    overflow: hidden;
}

.apply-modal-cute .apply-modal-header {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-bottom: 2px solid #fbcfe8;
    padding: 18px 20px;
    position: relative;
}

.apply-header-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.apply-modal-cute .apply-modal-header h3 {
    font-size: 1.15rem;
    color: #be185d;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.apply-modal-cute .apply-close-btn {
    color: #f472b6;
    font-size: 1.8rem;
}

.apply-modal-cute .apply-close-btn:hover {
    color: #be185d;
}

.apply-section {
    background: #fefefe;
    border: 1px solid #fce7f3;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.apply-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #be185d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apply-form-row {
    display: flex;
    gap: 12px;
}

.apply-form-half {
    flex: 1;
}

.apply-datetime-row {
    display: flex;
    gap: 10px;
}

.apply-datetime-row input[type="date"] {
    flex: 1;
}

.apply-datetime-row select {
    width: 120px;
    padding: 10px;
    border: 1px solid #fbcfe8;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #333;
}

.apply-datetime-row select:focus {
    border-color: #ec4899;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.apply-modal-cute .apply-form-group label {
    font-size: 0.85rem;
    color: #6b7280;
}

.apply-modal-cute .apply-form-group input,
.apply-modal-cute .apply-form-group textarea {
    border: 1px solid #fbcfe8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.apply-modal-cute .apply-form-group input:focus,
.apply-modal-cute .apply-form-group textarea:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
    outline: none;
}

.apply-modal-cute .apply-form-group textarea {
    resize: vertical;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
}

.apply-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 5px;
    display: block;
}

.apply-warning {
    font-size: 0.75rem;
    color: #ef4444;
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fef2f2;
    border-radius: 6px;
}

.apply-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
    margin-top: 10px;
}

.apply-modal-cute .apply-modal-footer {
    background: #fdf2f8;
    border-top: 2px solid #fce7f3;
    padding: 16px 20px;
}

.apply-modal-cute .btn-cancel {
    background: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.apply-modal-cute .btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.apply-modal-cute .btn-submit {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.apply-modal-cute .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.apply-modal-cute .btn-submit:disabled {
    background: #d1d5db;
    box-shadow: none;
    transform: none;
}

.btn-icon {
    font-size: 1.1rem;
}

/* =========================================
   Member Auth Styles
   ========================================= */

/* --- Login/Register Modal --- */
.member-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.member-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.member-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

.member-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: #64748b;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.member-modal-header {
    padding: 20px 20px 0;
}

.member-modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
}

.member-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.member-tab.active {
    color: #ec4899;
}

.member-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ec4899;
}

.member-modal-body {
    padding: 24px;
}

.member-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.member-form.hidden {
    display: none;
}

.member-form input {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.member-form input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.member-submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.member-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.member-form-msg {
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    min-height: 1.2em;
}

.member-form-msg.error {
    color: #ef4444;
}

.member-form-msg.success {
    color: #22c55e;
}

.member-form-note {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin: 8px 0 0;
}

/* --- Member Drawer --- */
.member-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    visibility: hidden;
}

.member-drawer.active {
    visibility: visible;
}

.member-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.member-drawer.active .member-drawer-overlay {
    opacity: 1;
}

.member-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.member-drawer.active .member-drawer-content {
    transform: translateX(0);
}

.member-drawer-header {
    padding: 20px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #fbcfe8;
}

.member-drawer-header>.material-symbols-outlined {
    font-size: 36px;
    color: #ec4899;
}

.member-drawer-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
    color: #831843;
}

.member-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9d174d;
    padding: 4px;
}

.member-drawer-nav {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.member-drawer-nav-item:hover {
    background: #f3f4f6;
}

.member-drawer-nav-item .material-symbols-outlined {
    color: var(--primary);
}

.member-drawer-search {
    display: flex;
    gap: 8px;
}

.member-drawer-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
}

.member-drawer-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.member-drawer-search button {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    color: white;
    cursor: pointer;
}

.member-drawer-section {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.member-drawer-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.member-drawer-section-title .material-symbols-outlined {
    color: #ec4899;
    font-size: 20px;
}

.member-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-favorites-loading,
.member-favorites-empty {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
    font-size: 0.9rem;
}

.member-favorites-more-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.member-favorites-more-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.member-favorite-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 10px;
    transition: background 0.2s;
}

.member-favorite-item:hover {
    background: #f3f4f6;
}

.member-favorite-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.member-favorite-info {
    flex: 1;
    min-width: 0;
}

.member-favorite-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-favorite-location {
    font-size: 0.8rem;
    color: #6b7280;
}

.member-favorite-chat-btn,
.member-favorite-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}

.member-favorite-chat-btn {
    color: #ec4899;
}

.member-favorite-chat-btn:hover {
    background: #fce7f3;
}

.member-favorite-remove-btn {
    color: #9ca3af;
}

.member-favorite-remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.member-drawer-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}

.member-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.member-logout-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* --- Toast Notification --- */
.member-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.member-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- Favorite Button States --- */
.btn-favorite.favorited {
    background: #fce7f3 !important;
    color: #ec4899 !important;
    border-color: #fbcfe8 !important;
}

.btn-favorite.favorited .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}