/* ==========================================================================
   AquaBuddy (아쿠아버디) - Dynamic Application Styling (v42.0 Security & Mobile Typography)
   - 100% Mobile Viewport Korean Word-Break (`word-break: keep-all`)
   - Mobile Header Button Horizontal Lock (Zero Vertical Text Rotation/Squishing)
   - Mobile Ad Banners Vertical Column Layout (Zero Character Breaking Bug Fix)
   - Redesigned Glassmorphism Comment Form & Protected Admin Security UI
   ========================================================================== */

:root {
    --bg-dark: #070e17;
    --panel-bg: rgba(13, 27, 42, 0.75);
    --glass-border: rgba(0, 242, 254, 0.18);
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --text-dim: #6e7681;

    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-gold: #ffb703;
    --accent-amber: #ff8f00;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

html {
    height: auto !important;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important; /* 페이지 전체 전용 단 1개의 스크롤바 */
    overflow-x: hidden !important;
    max-width: 100vw;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding-top: 110px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 내부 박스의 강제 height 및 중복 스크롤 완전히 제거 */
main, #app, .main-container, .content-wrapper, .hero, .hero-section, .page-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; /* 내부 박스 스크롤 금지 */
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* Animated Water Bubbles */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(79, 172, 254, 0.05) 70%);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 50%;
    animation: rise 15s infinite ease-in-out;
}

@keyframes rise {
    0% { transform: translateY(0) scale(0.8); opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* Side Banners (Desktops & Laptops) */
.side-ad-banner {
    position: fixed;
    top: 130px;
    width: 140px;
    background: rgba(13, 27, 42, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.side-left { left: 16px; }
.side-right { right: 16px; }

@media (max-width: 1200px) {
    .side-ad-banner { display: none !important; }
}

.side-ad-banner .ad-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 6px;
}

.side-ad-img-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.side-ad-banner h4 {
    font-size: 0.85rem;
    margin: 8px 0 4px;
}

.side-ad-link {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
}

.side-ad-inquiry-box {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--glass-border);
}

.ad-inquiry-btn {
    display: block;
    width: 100%;
    padding: 6px 4px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(255, 143, 0, 0.2));
    border: 1px dashed var(--accent-gold);
    border-radius: var(--radius-sm);
    color: var(--accent-gold);
    font-size: 0.73rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ad-inquiry-btn:hover {
    background: linear-gradient(135deg, #ffb703, #ff8f00);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.ftc-notice-micro {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Header & Navbar (100% Fixed Sticky Top Navigation) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2500;
    background: rgba(7, 14, 23, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-container-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--accent-cyan);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.logo-accent {
    color: var(--accent-cyan);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.user-nav-badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--accent-cyan);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Restored Eye-Catching Vibrant Create Action Button (Horizontal Lock) */
.btn-vibrant-action {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)) !important;
    color: #000 !important;
    font-weight: 900 !important;
    font-size: 0.82rem !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4) !important;
    border: 1px solid var(--accent-cyan) !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-vibrant-action:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6) !important;
}

@media (max-width: 768px) {
    .logo-text { font-size: 1.25rem; }
    .nav-inst-btn { display: none !important; }
    .user-nav-badge { max-width: 90px; padding: 5px 8px; font-size: 0.73rem; }
    .btn-vibrant-action { font-size: 0.78rem !important; padding: 6px 10px !important; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.15rem; }
    .nav-container-top { gap: 4px; }
    .user-nav-badge { max-width: 80px; padding: 4px 6px; font-size: 0.7rem; }
    .btn-vibrant-action { font-size: 0.75rem !important; padding: 5px 9px !important; }
}

/* Nav Category Links Grid */
.nav-sub-menu {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
    width: 100%;
}

.nav-links-grid {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 4px;
}

.nav-links-grid::-webkit-scrollbar { display: none; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.nav-item:hover {
    color: #fff;
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.4);
}

.nav-item.active {
    color: #000 !important;
    background: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
    font-weight: 900 !important;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.6) !important;
    transform: translateY(-1px);
}

.nav-item.active i {
    color: #000 !important;
}

.nav-item.nav-item-gold.active {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 16px rgba(255, 183, 3, 0.6) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 40px 0 35px;
    overflow: hidden;
    width: 100%;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.4);
    transform: scale(1.05);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 14, 23, 0.4) 0%, rgba(7, 14, 23, 0.95) 100%);
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 2.0rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 12px;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.4rem; line-height: 1.4; }
    .nav-actions .nav-inst-btn { display: none; }
}

.highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 24px;
    word-break: keep-all;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    flex: 1 1 200px;
}

.stat-number {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.76rem;
    color: var(--text-dim);
}

/* Main Container & Filters */
.main-container {
    padding-bottom: 50px;
    width: 100%;
}

.filter-section {
    padding: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
}

.active-count {
    font-size: 0.82rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Category Tabs (Hidden to prevent duplication with top fixed navbar) */
.category-tabs {
    display: none !important;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    word-break: keep-all;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(0, 242, 254, 0.12);
    color: #fff;
}

.tab-btn.active {
    background: var(--accent-cyan);
    color: #000;
    font-weight: 900;
    border-color: var(--accent-cyan);
}

.tab-btn.instructor-tab {
    border-color: rgba(255, 183, 3, 0.4);
    color: var(--accent-gold);
}

.tab-btn.instructor-tab.active {
    background: var(--accent-gold);
    color: #000;
}

/* Activity Sub Tabs */
.activity-sub-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: rgba(0, 242, 254, 0.05);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--glass-border);
}

.sub-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.sub-tab-btn.active {
    background: var(--accent-blue);
    color: #fff;
    font-weight: 700;
    border-color: var(--accent-blue);
}

/* Filter Controls */
.filter-grid-clean {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    width: 100%;
}

@media (max-width: 768px) {
    .filter-grid-clean { grid-template-columns: 1fr; }
}

.filter-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-item i {
    position: absolute;
    left: 12px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.filter-item input,
.filter-item select {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.88rem;
}

.filter-action-row {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.reset-btn-clean {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* Category Page Toggle for Hero Section */
body.category-view-active .hero-section {
    display: none !important;
}

/* Main Dashboard Category Blocks (Homepage '전체 보기' Mode) */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 16px;
}

.dashboard-category-block {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-category-block:hover {
    border-color: rgba(0, 242, 254, 0.4);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.block-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.block-more-btn {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.block-more-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: translateX(2px);
}

/* Compact Text List Mode (텍스트 간소화 리스트) */
.compact-post-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.compact-post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-main);
}

.compact-post-row:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateX(4px);
}

.compact-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.compact-post-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-row-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.compact-author-name {
    color: var(--accent-cyan);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.compact-rating {
    color: var(--accent-gold);
    font-weight: 700;
}

.compact-action-link {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .compact-post-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px;
    }
    .compact-row-meta {
        width: 100%;
        justify-content: space-between;
        font-size: 0.76rem;
    }
}

/* Mobile Optimized Ad Banner Card System (Zero Character Breaking Fix) */
.ad-banner-panel {
    margin-bottom: 24px;
    padding: 16px;
    width: 100%;
}

.center-ad-visual-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 68px;
    width: 100%;
}

.center-ad-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
    z-index: 1;
    transition: transform 0.4s ease;
}

.center-ad-visual-card:hover .center-ad-bg-img {
    transform: scale(1.04);
}

.center-ad-overlay-content {
    position: relative;
    z-index: 2;
    word-break: keep-all;
}

.center-ad-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.center-ad-title {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.25;
    word-break: keep-all;
}

.center-ad-subtitle {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
    word-break: keep-all;
}

.center-ad-cta-btn {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent-gold), #ff8f00);
    color: #000;
    font-weight: 900;
    font-size: 0.76rem;
    padding: 6px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.center-ad-cta-btn {
    position: relative;
    z-index: 2;
    background: var(--accent-cyan);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .center-ad-visual-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 18px 16px;
    }
    .center-ad-title {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    .center-ad-cta-btn {
        margin-top: 14px;
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 9px 14px;
    }
}

/* Post Cards Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    width: 100%;
}

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

.post-card {
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.badge-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-freediving { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); }
.badge-scuba { background: rgba(79, 172, 254, 0.15); color: var(--accent-blue); }
.badge-swimming { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.badge-openwater { background: rgba(255, 183, 3, 0.15); color: var(--accent-gold); }
.badge-instructor { background: linear-gradient(135deg, rgba(255, 183, 3, 0.3), rgba(255, 143, 0, 0.3)); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.badge-community { background: rgba(186, 104, 200, 0.18); color: #e1bee7; }
.badge-market { background: rgba(255, 138, 101, 0.18); color: #ffab91; }

.instructor-badge {
    font-size: 0.72rem;
    color: var(--accent-gold);
    font-weight: 800;
    background: rgba(255, 183, 3, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 183, 3, 0.3);
}

.status-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.status-recruiting { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.status-in_progress { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); }
.status-completed { background: rgba(110, 118, 129, 0.2); color: var(--text-dim); }

.post-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    word-break: keep-all;
}

.class-price-tag, .market-price-tag {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 10px;
    background: rgba(255, 183, 3, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    word-break: keep-all;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.user-details h4 {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-license {
    font-size: 0.76rem;
    color: var(--text-dim);
}

.host-rating-badge {
    font-size: 0.72rem;
    color: var(--accent-gold);
    font-weight: 800;
}

.post-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    word-break: keep-all;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-time {
    font-size: 0.76rem;
    color: var(--text-dim);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.12);
    color: #fff;
}

.btn-delete {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.4);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wishlist-btn, .like-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.78rem;
    cursor: pointer;
}

.wishlist-btn.active, .like-btn.active {
    color: #ff5252;
    border-color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

/* Weather & CCTVs Grids */
.weather-section {
    padding: 24px;
    margin-bottom: 24px;
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    width: 100%;
}

.section-title {
    margin-bottom: 18px;
    word-break: keep-all;
}

.section-title h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.section-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    width: 100%;
}

.weather-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.weather-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.weather-card-header h3 {
    font-size: 0.92rem;
    font-weight: 800;
}

.tide-badge {
    background: var(--accent-cyan);
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.weather-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.metric-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
}

.tide-times {
    font-size: 0.76rem;
    color: var(--accent-gold);
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 6px;
}

/* CCTVs Grid & Card (4-Column Command Center Layout on PC) */
.webcam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 1199px) {
    .webcam-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .webcam-grid {
        grid-template-columns: 1fr;
    }
}

.webcam-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.webcam-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-cyan);
}

.webcam-thumb-box {
    position: relative;
    height: 150px;
}

.webcam-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.badge-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff5252;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.webcam-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 242, 254, 0.85);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.webcam-card-body {
    padding: 12px;
}

.webcam-card-body h3 {
    font-size: 0.92rem;
    font-weight: 800;
}

/* Modals System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3500 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hidden { display: none !important; }

.modal-container {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    word-break: keep-all;
}

.modal-lg { max-width: 680px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    word-break: keep-all;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.close-btn:hover { color: #fff; }

.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.9rem;
}

/* High Contrast Calendar Picker Icon */
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.8) drop-shadow(0 0 4px var(--accent-cyan));
    cursor: pointer;
    padding: 4px;
}

/* 2x2 Photo Grid Layout for Post Details and Upload Previews */
.detail-photo-gallery-2x2,
.image-preview-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.detail-photo-item img,
.preview-img-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-photo-item img:hover,
.preview-img-item img:hover {
    transform: scale(1.03);
    border-color: var(--accent-cyan);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Redesigned Modern Glassmorphism Comment Form in Detail Modal */
.comment-form-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--accent-cyan);
    padding: 6px 8px 6px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form-modern:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.comment-input-modern {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    outline: none !important;
    padding: 8px 0 !important;
}

.comment-input-modern::placeholder {
    color: var(--text-dim);
}

.comment-submit-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)) !important;
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.comment-submit-btn:hover {
    filter: brightness(1.1);
}

/* Chat Room Modal Stream */
.chat-modal-container {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    word-break: keep-all;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: #fff;
}

.chat-bubble.host {
    align-self: flex-start;
    background: rgba(255, 183, 3, 0.2);
    border: 1px solid var(--accent-gold);
    color: #fff;
}

.chat-bubble.attendee {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
}

/* 60px Compact Image Upload Thumbnail Preview System */
.image-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-thumb-box {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-thumb-box .remove-img-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 82, 82, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 5;
    transition: transform 0.15s ease;
}

.preview-thumb-box .remove-img-btn:hover {
    transform: scale(1.15);
    background: #ff5252;
}

/* Admin Dashboard Tables */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    overflow-x: auto;
}

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.admin-tab-btn.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}

.admin-stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th, .admin-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(13, 27, 42, 0.95);
    border: 1px solid var(--accent-cyan);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Footer Section */
.bottom-footer-ad {
    margin-bottom: 30px;
    width: 100%;
}

.bottom-ad-visual-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 100px;
    width: 100%;
}

@media (max-width: 768px) {
    .bottom-ad-visual-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .bottom-ad-cta-btn {
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
}

.bottom-ad-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    z-index: 1;
}

.bottom-ad-overlay-content {
    position: relative;
    z-index: 2;
    word-break: keep-all;
}

.bottom-ad-badge {
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.bottom-ad-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 4px;
    word-break: keep-all;
}

.bottom-ad-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    word-break: keep-all;
}

.bottom-ad-cta-btn {
    position: relative;
    z-index: 2;
    background: var(--accent-gold);
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ftc-legal-footer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.footer {
    background: rgba(4, 8, 14, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Redesigned Sleek Premium Auth Modal Tabs & Kakao Button */
.auth-switch-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.auth-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}

.social-login-group {
    width: 100%;
    margin-top: 10px;
}

.social-btn.kakao {
    width: 100%;
    padding: 13px 18px;
    background: #FEE500;
    color: #191919;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(254, 229, 0, 0.3);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-btn.kakao:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* =========================================================
   📱 RESPONSIVE OPTIMIZATION (MOBILE & TABLET) v2.0
   ========================================================= */

@media (max-width: 1024px) {
    .filter-grid-clean {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    /* HTML Body Scroll Lock Fix */
    body {
        padding-top: 100px;
    }

    /* Navbar compacting */
    .navbar {
        padding: 6px 10px;
        gap: 4px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .nav-container-top {
        gap: 4px;
    }
    .nav-actions {
        gap: 4px !important;
    }
    .nav-actions .btn {
        padding: 5px 8px !important;
        font-size: 0.74rem !important;
    }
    .btn-vibrant-action {
        padding: 6px 10px !important;
        font-size: 0.76rem !important;
    }
    
    /* Nav Category Links Scroll Peek-a-boo Styling */
    .nav-sub-menu {
        margin-top: 6px;
        padding-top: 6px;
        position: relative;
    }
    .nav-links-grid {
        gap: 5px;
        padding-right: 40px; /* 마지막 탭이 살짝 잘려보이게 Peek-a-boo 여백 확보 */
    }
    .nav-item {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* Filter Section Padding & Margin Diet */
    .filter-section {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    .filter-header {
        margin-bottom: 6px;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
    }
    .filter-header h2 {
        font-size: 0.9rem;
    }
    .active-count {
        font-size: 0.76rem;
    }
    
    /* 전국 해양 스팟 모바일 최적화 (CCTV 퀵선택 숨김 및 검색창 선명화) */
    .cctv-quick-select-box {
        display: none !important;
    }
    #tideSearchInput, .filter-item input, .filter-item select {
        border: 1.5px solid rgba(0, 242, 254, 0.45) !important;
        box-shadow: 0 0 8px rgba(0, 242, 254, 0.15) !important;
    }

    /* 모바일 쿠팡 광고 배너 크기 대폭 축소 */
    .ad-banner-panel, .ad-banner-container {
        padding: 6px 10px !important;
        margin-bottom: 10px !important;
        margin-top: 5px !important;
    }
    .center-ad-visual-card {
        height: 54px !important;
        min-height: 54px !important;
    }
    .center-ad-bg-img {
        height: 54px !important;
    }
    .center-ad-overlay-content {
        padding: 4px 10px !important;
    }
    .center-ad-badge, .center-ad-subtitle {
        display: none !important;
    }
    .center-ad-title {
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    .center-ad-cta-btn {
        padding: 3px 6px !important;
        font-size: 0.68rem !important;
        height: auto !important;
        margin-left: auto !important;
    }
    .ftc-legal-notice {
        font-size: 0.68rem !important;
        margin-top: 4px !important;
    }

    .filter-grid-clean {
        gap: 6px !important;
        margin-bottom: 8px;
    }
    .filter-grid-clean .filter-item input,
    .filter-grid-clean .filter-item select {
        padding: 8px 10px 8px 30px !important;
        font-size: 0.82rem !important;
        height: 36px !important;
    }
    .filter-grid-clean .reset-filter-btn {
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
        height: 36px !important;
    }
    .dashboard-category-block {
        margin-bottom: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    /* Extreme Mobile Spacing Fixes */
    body {
        padding-top: 92px;
    }
    .navbar {
        padding: 4px 6px;
    }
    .logo-text {
        font-size: 1rem;
    }
    .logo-icon {
        font-size: 1.2rem;
    }
    .nav-actions .btn {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }
    .btn-vibrant-action {
        padding: 5px 8px !important;
        font-size: 0.72rem !important;
    }
    .btn-vibrant-action i {
        font-size: 0.8rem;
    }
    .user-nav-badge {
        max-width: 60px;
        padding: 3px 5px;
        font-size: 0.65rem;
    }
}

/* Realtime Notification & Badge Pulse Styles */
@keyframes badgePulseKeyframes {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
    50% { transform: scale(1.25); box-shadow: 0 0 12px 4px rgba(255, 82, 82, 0.9); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.badge-pulse {
    animation: badgePulseKeyframes 0.8s ease-in-out infinite;
}

.header-bell-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.header-bell-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.global-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff5252, #ff1744);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1.5px solid #0b132b;
    box-shadow: 0 2px 6px rgba(255, 82, 82, 0.5);
}

/* Floating Realtime Chat Notice Toast */
.chat-notice-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999999;
    background: rgba(13, 27, 42, 0.95);
    border: 1.5px solid var(--accent-cyan);
    box-shadow: 0 8px 32px rgba(0, 242, 254, 0.3);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: toastSlideIn 0.35s ease-out;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.chat-notice-toast:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.45);
}

/* Notification Center Dropdown Layer Styles */
.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    max-height: 420px;
    background: rgba(13, 27, 42, 0.96);
    border: 1.5px solid var(--accent-cyan);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.35);
    backdrop-filter: blur(16px);
    z-index: 999999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--glass-border);
}

.btn-mark-all-read {
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-cyan);
    border: 1px dashed var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-all-read:hover {
    background: var(--accent-cyan);
    color: #000;
}

.notification-list {
    overflow-y: auto;
    max-height: 360px;
    padding: 6px;
}

.empty-notification-notice {
    text-align: center;
    padding: 30px 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    border: 1px solid transparent;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.notification-item.unread {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
}

.notification-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.notification-content {
    flex: 1;
    font-size: 0.8rem;
    color: #e0e0e0;
    line-height: 1.35;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 푸터 레이아웃 하단 고정 및 단일 가시성 확보 */
.main-footer, .footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    background: #0f172a !important;
    color: #94a3b8 !important;
    position: relative !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ad Banner Container Centered Bottom Layout */
.ad-banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Webmaster Dashboard Z-Index & Backdrop Overlay Override */
#webmasterDashboardModal, #adminDashboardModal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999999 !important;
    max-width: 1000px !important;
    width: 90% !important;
}

.modal-overlay, #webmasterDashboardModal::before, #adminDashboardModal::before {
    z-index: 9999998 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
}

/* 탭 콘텐츠 컨테이너 높이 및 스크롤바 레이아웃 정돈 */
#webmasterDashboardModal .admin-modal-body, #adminDashboardModal .admin-modal-body {
    min-height: 480px !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

/* 탭 메뉴 가로 스크롤바 스타일 정돈 */
#webmasterDashboardModal .admin-tab-nav, #adminDashboardModal .admin-tab-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Attached Image Gallery Thumbnail Grid & Lightbox Custom Styles */
.post-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-width: 440px;
}

.post-image-item {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.post-image-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
}

.lightbox-btn-close {
    position: fixed !important;
    top: 20px !important;
    right: 24px !important;
    z-index: 10000000 !important;
    background: linear-gradient(135deg, #ff5252, #ff1744) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.lightbox-btn-close:hover {
    transform: scale(1.08) !important;
    background: linear-gradient(135deg, #ff1744, #d50000) !important;
}

/* 게시글 카드 (.post-card, .feed-card, .feed-card-item, .compact-post-row) 1번 디자인 (가로 1줄 / 양끝 정렬 / 좌측 정렬) */
.compact-post-table, .posts-grid.compact-post-table {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.post-card, .feed-card, .feed-card-item, .compact-post-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important; /* 부모 영역 밖으로 튀어나옴 방지 */
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    text-align: left !important; /* 좌측 정렬 */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.post-card:hover, .feed-card:hover, .feed-card-item:hover, .compact-post-row:hover {
    background: rgba(0, 242, 254, 0.1) !important;
    border-color: rgba(0, 242, 254, 0.4) !important;
    transform: translateX(4px) !important;
}

/* 좌측 영역: [태그] + [글 제목] */
.post-card .post-info-left, .feed-card .post-info-left, .feed-card-item .post-info-left, .compact-post-row .post-info-left, .compact-row-main {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    text-align: left !important;
}

/* 우측 영역: [작성자] + [★평점] + [상세 ➔] */
.post-card .post-info-right, .feed-card .post-info-right, .feed-card-item .post-info-right, .compact-post-row .post-info-right, .compact-row-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    color: #38bdf8 !important;
    font-size: 0.9rem !important;
}

/* Kakao Map Container Height & Layout Fix */
#postDetailMap, .kakao-map-container, #modalLocationPickerBox, .map-preview-box {
    width: 100% !important;
    min-height: 300px !important;
    height: 300px !important;
    display: block !important;
    background: #0f172a !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Responsive Unified Spot Dashboard Grid Layout */
.spot-dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .spot-dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .dashboard-windy-section {
        grid-column: 1 / -1;
    }
    
    .dashboard-badatime-section {
        grid-column: 1;
    }
    
    .dashboard-cctv-section {
        grid-column: 2;
    }
}

/* Compact CCTV Dropdown Select Style */
.cctv-dropdown-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.4);
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cctv-dropdown-select:hover, .cctv-dropdown-select:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.cctv-dropdown-select optgroup {
    background: #0f172a;
    color: #ff9800;
    font-weight: 800;
}

.cctv-dropdown-select option {
    background: #1e293b;
    color: #ffffff;
    padding: 6px;
    font-weight: 500;
}

/* ===== 슬림 리스트 카드 (텍스트 전용) ===== */
.post-card-slim {
    background: rgba(13, 27, 42, 0.82);
    border: 1px solid rgba(0, 242, 254, 0.12);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 0;
    transition: background 0.18s, border-color 0.18s, transform 0.12s;
    overflow: hidden;
}

.post-card-slim:hover {
    background: rgba(0, 242, 254, 0.07);
    border-color: rgba(0, 242, 254, 0.35);
    transform: translateX(3px);
}

.slim-card-inner {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-line-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-line-2 {
    width: 100%;
}

.card-line-3 {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slim-cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid;
    border-radius: 20px;
    padding: 2px 9px;
    white-space: nowrap;
    flex-shrink: 0;
}

.slim-author {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: none;
    overflow: visible;
}

.slim-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    word-break: break-word;
    display: block;
}

.slim-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.slim-price {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.slim-time {
    font-size: 0.74rem;
    color: var(--text-muted);
    opacity: 0.75;
    white-space: nowrap;
    margin-left: auto;
}

/* 게시글 그리드를 슬림 리스트 모드에서 단일 컬럼으로 */
#postsGrid:has(.post-card-slim) {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

@media (max-width: 768px) {
    .slim-card-inner {
        padding: 12px 14px;
        gap: 6px;
    }
    .card-line-1 {
        gap: 6px;
    }
    .card-line-3 {
        gap: 8px;
        font-size: 0.76rem;
    }
    .slim-title {
        font-size: 0.96rem;
    }
}

/* ===== Target Depth & Required License Pill UI ===== */
.pill-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.depth-pill-btn, .license-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.depth-pill-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.5);
    color: #00f2fe;
}

.license-pill-btn:hover {
    background: rgba(255, 183, 3, 0.15);
    border-color: rgba(255, 183, 3, 0.5);
    color: #ffb703;
}

.depth-pill-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.25)) !important;
    border: 1px solid #00f2fe !important;
    color: #00f2fe !important;
    font-weight: 800 !important;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.license-pill-btn.active {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(255, 152, 0, 0.25)) !important;
    border: 1px solid #ffb703 !important;
    color: #ffb703 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.35);
}

/* ===== Group Buy Progress Bar ===== */
.group-buy-bar-container {
    width: 100%;
    margin: 8px 0 4px 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.group-buy-bar-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.group-buy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e676, #00f2fe);
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

/* ===== Instructor Class Type Pill UI ===== */
.classtype-pill-btn {
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.25);
    color: #e2e8f0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.classtype-pill-btn:hover {
    background: rgba(255, 183, 3, 0.18);
    border-color: rgba(255, 183, 3, 0.6);
    color: #ffb703;
}

.classtype-pill-btn.active {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.3), rgba(255, 152, 0, 0.3)) !important;
    border: 1px solid #ffb703 !important;
    color: #ffb703 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.4);
}


