/* 최종수정: 2026-02-07 22:00 */
/* JSX 데모 디자인 1:1 매칭 */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --navy-deep: #1e3a5f;
    --navy-dark: #0c4a6e;
    --ocean: #0369a1;
    --ocean-light: #f0f9ff;
    --bg: #f8fafc;
    --card-border: #e2e8f0;
    --text-dark: #1e293b;
    --text-mid: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --red: #dc2626;
    --red-bg: #fef2f2;
    --amber-bg: #fef3c7;
    --amber-text: #92400e;
    --footer-bg: #1e293b;
    --radius: 12px;
    --max-w: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #1e3a5f, #0c4a6e);
    color: #fff;
}

.header-top {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-name {
    font-size: 17px;
    font-weight: 800;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.8;
}

.btn-login {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.25);
}

/* Nav tabs */
.nav-tabs {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-tab {
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.nav-tab:hover {
    color: #fff;
}

.nav-tab.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-bottom-color: #fff;
}

/* ===== MAIN ===== */
.site-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 20px;
}

.section {
    margin-bottom: 24px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1e3a5f, #0369a1);
    border-radius: 16px;
    padding: 40px 32px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '🏗';
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 120px;
    opacity: 0.08;
    pointer-events: none;
}

.hero-org {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.3;
}

.hero p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
}

.btn-hero-primary {
    background: #fff;
    color: var(--ocean);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* ===== STAT CARDS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 20px;
    text-align: center;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-dark);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 20px;
}

/* ===== NOTICE LIST ===== */
.notice-list {
    list-style: none;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
}

.notice-item + .notice-item {
    border-top: 1px solid #f1f5f9;
}

.notice-date {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 80px;
    flex-shrink: 0;
}

.notice-title {
    font-size: 13px;
    color: var(--text-mid);
}

.badge-new {
    background: var(--red-bg);
    color: var(--red);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== SECTION HEADER ===== */
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 20px;
}

.section-title-sm {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-dark);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.15s;
}

.filter-tab.active {
    background: var(--ocean);
    color: #fff;
    border-color: var(--ocean);
}

/* ===== BOARD CARDS ===== */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.board-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

/* 게시대 썸네일 */
.board-thumb {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.board-thumb-icon {
    font-size: 28px;
    opacity: 0.7;
}

.board-thumb-num {
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

.board-roadview-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(255,255,255,0.92);
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.15s;
}

.board-roadview-btn:hover {
    background: #0369a1;
    color: #fff;
}

.board-card-body {
    padding: 12px 14px 14px;
}

.board-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.board-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.badge-popular {
    background: var(--amber-bg);
    color: var(--amber-text);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    margin-left: 5px;
}

.board-spec {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-avail {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    height: fit-content;
    flex-shrink: 0;
}

.badge-avail.open {
    background: var(--green-bg);
    color: var(--green);
}

.badge-avail.full {
    background: var(--red-bg);
    color: var(--red);
}

.slot-bar {
    display: flex;
    gap: 2px;
    margin-top: 8px;
}

.slot-bar .slot {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--card-border);
}

.slot-bar .slot.used {
    background: #3b82f6;
}

/* ===== GREETING ===== */
.greeting-layout {
    display: flex;
    gap: 24px;
}

.greeting-photo {
    width: 180px;
    flex-shrink: 0;
}

.greeting-photo-box {
    width: 180px;
    height: 220px;
    border-radius: 12px;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.greeting-photo-box span {
    font-size: 60px;
    opacity: 0.5;
}

.greeting-name {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.greeting-title-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.greeting-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-mid);
    line-height: 2;
    white-space: pre-line;
}

.greeting-sign {
    margin-top: 20px;
    text-align: right;
    color: var(--text-light);
    font-size: 13px;
}

.greeting-sign strong {
    color: var(--text-dark);
}

/* ===== CHAIRMEN GRID ===== */
.chairmen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.chairman-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 16px;
    text-align: center;
    position: relative;
}

.chairman-card.current {
    border: 2px solid var(--ocean);
}

.chairman-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ocean);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.chairman-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 8px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.chairman-card.current .chairman-avatar {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

.chairman-avatar span {
    font-size: 28px;
    opacity: 0.5;
}

.chairman-card.current .chairman-avatar span {
    opacity: 0.9;
}

.chairman-gen {
    font-size: 12px;
    color: var(--ocean);
    font-weight: 600;
}

.chairman-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 2px 0;
}

.chairman-period {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid var(--ocean);
    padding: 24px 20px;
    text-align: center;
}

.pricing-card.featured {
    background: var(--ocean-light);
}

.pricing-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.pricing-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--ocean);
}

.pricing-amount span {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-note {
    font-size: 11px;
    color: var(--ocean);
    margin-top: 4px;
}

.rules-content {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 2;
}

/* ===== DIRECTIONS ===== */
.map-placeholder {
    height: 180px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--ocean);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 13px;
}

.info-item-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.info-item-value {
    color: var(--text-mid);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--text-muted);
    padding: 24px 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
}

.footer-name {
    margin-bottom: 6px;
}

.footer-powered {
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-mid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .stat-card { padding: 14px 8px; }
    .stat-value { font-size: 18px; }
    .stat-icon { font-size: 22px; }

    .hero { padding: 28px 20px; }
    .hero h1 { font-size: 22px; }

    .chairmen-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .greeting-layout {
        flex-direction: column;
        align-items: center;
    }

    .pricing-grid { gap: 10px; }
    .pricing-amount { font-size: 24px; }

    .info-grid { grid-template-columns: 1fr; }
    .board-grid { grid-template-columns: 1fr; }

    .nav-tabs { padding: 0 12px; }
    .nav-tab { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .chairmen-grid { grid-template-columns: repeat(2, 1fr); }
    .header-top { padding: 0 12px; height: 60px; }
    .logo-name { font-size: 15px; }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════
   데모 모드 전환 바
   ═══════════════════════════════════ */

.demo-bar {
    background: #1e293b;
    border-bottom: 2px solid #f59e0b;
    position: sticky;
    top: 0;
    z-index: 999;
}

.demo-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
}

.demo-label {
    font-size: 10px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 1px;
    margin-right: 4px;
    white-space: nowrap;
}

.demo-btn {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #334155;
    transition: all 0.15s;
    white-space: nowrap;
}

.demo-btn:hover { color: #e2e8f0; border-color: #64748b; }

.demo-btn.active {
    background: #f59e0b;
    color: #1e293b;
    border-color: #f59e0b;
}

.demo-btn.demo-proposal {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border-color: #3b82f6;
    position: relative;
    overflow: hidden;
    animation: proposal-glow 2s infinite;
}

.demo-btn.demo-proposal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: proposal-sweep 2.5s infinite;
}

@keyframes proposal-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(59,130,246,0.4); }
    50% { box-shadow: 0 0 14px rgba(59,130,246,0.7), 0 0 24px rgba(6,182,212,0.3); }
}

@keyframes proposal-sweep {
    0% { left: -100%; }
    60%, 100% { left: 100%; }
}

.admin-body .demo-bar-inner { max-width: 1100px; }

/* 회원 타입 배지 */
.m-type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* ═══════════════════════════════════
   고객(광고업체) 포탈 스타일
   ═══════════════════════════════════ */

/* Header */
.m-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.m-header-top {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.m-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.m-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.m-logo-text span {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
}

.m-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-user-name {
    font-size: 13px;
    color: #475569;
}

.m-btn-logout {
    background: #f1f5f9;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
}

/* Tabs */
.m-tabs {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.m-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.m-tab:hover { color: #475569; }

.m-tab.active {
    background: #fff;
    color: #0369a1;
    border-bottom-color: #0369a1;
}

/* Main */
.m-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px;
}

.m-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
}

.m-subtitle {
    color: #94a3b8;
    font-size: 12px;
    margin: 0 0 14px;
}

/* Board cards in member mode */
.m-board-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 14px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.m-board-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.slot-bar-member {
    margin-top: 8px;
}

.slot-bar-member .slot-m {
    flex: 1;
    height: 8px;
    border-radius: 3px;
}

.slot-bar-member .slot-m.used {
    background: #3b82f6;
}

.slot-bar-member .slot-m.free {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

/* Back button */
.m-back {
    background: none;
    border: none;
    color: #0369a1;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: inherit;
}

/* Hold banner */
.hold-banner {
    background: #faf5ff;
    border: 2px solid #8b5cf6;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hold-label {
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
}

.hold-time {
    font-size: 13px;
    color: #8b5cf6;
    margin-left: 10px;
    font-family: monospace;
    font-weight: 700;
}

.btn-hold-form {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* Slot buttons */
.btn-slot-hold {
    background: #0369a1;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-slot-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}

.btn-slot-form {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-body {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.hold-timer-badge {
    background: #faf5ff;
    color: #7c3aed;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.form-info-grid {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
}

.fi-label { color: #94a3b8; }

.form-field {
    margin-bottom: 12px;
}

.form-field label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.form-field input[type="text"],
.form-field input[type="date"] {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.form-field input:disabled {
    background: #f8fafc;
}

.dur-opt {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.15s;
}

.dur-opt.active {
    border: 2px solid #0369a1;
    background: #f0f9ff;
}

.duration-options {
    display: flex;
    gap: 8px;
}

.file-drop {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #94a3b8;
}

.payment-box {
    background: #fffbeb;
    border-radius: 10px;
    padding: 14px;
    margin-top: 8px;
    border: 1px solid #fde68a;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.btn-submit {
    flex: 2;
    padding: 11px;
    border-radius: 8px;
    border: none;
    background: #0369a1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* Toast */
.m-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: bottom 0.3s;
    z-index: 2000;
    white-space: nowrap;
}

.m-toast.show {
    bottom: 30px;
}

@media (max-width: 480px) {
    .m-header-top { padding: 0 12px; height: 50px; }
    .m-logo-text { font-size: 13px; }
    .m-user-name { display: none; }
    .m-tabs { padding: 0 8px; }
    .m-tab { padding: 8px 10px; font-size: 12px; }
    .form-info-grid { grid-template-columns: 1fr; }
    .modal-body { padding: 16px; }
}

/* ═══════════════════════════════════
   관리자 화면 (다크 테마)
   ═══════════════════════════════════ */

.admin-body {
    background: #0f172a;
    color: #e2e8f0;
}

/* Header */
.a-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.a-header-top {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.a-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.a-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.a-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
}

.a-logo-text span {
    color: #64748b;
    font-weight: 400;
    font-size: 13px;
}

.a-btn-home {
    background: #334155;
    color: #94a3b8;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}

.a-btn-home:hover { color: #e2e8f0; }

/* Tabs */
.a-tabs {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.a-tab {
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.a-tab:hover { color: #e2e8f0; }

.a-tab.active {
    background: #0f172a;
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Main */
.a-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.a-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #e2e8f0;
}

/* Dark card */
.a-dcard {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 16px;
}

/* Stat grid */
.a-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.a-stat-label {
    font-size: 11px;
    color: #94a3b8;
}

.a-stat-value {
    font-size: 24px;
    font-weight: 800;
    margin-top: 4px;
}

/* Two column */
.a-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.a-card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #e2e8f0;
}

.a-list-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #334155;
    font-size: 12px;
}

.a-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Day buttons */
.a-day-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 2px solid #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: #94a3b8;
    font-family: inherit;
    transition: all 0.15s;
}

.a-day-btn.active {
    border-color: var(--day-color);
    background: color-mix(in srgb, var(--day-color) 10%, transparent);
    color: #f8fafc;
}

/* Install/Remove tags */
.a-tag-install {
    background: #052e16;
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.a-tag-remove {
    background: #450a0a;
    color: #fca5a5;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

/* Admin table */
.a-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.a-table thead tr {
    background: #0f172a;
}

.a-table th {
    padding: 9px 10px;
    text-align: left;
    color: #64748b;
    font-weight: 600;
    font-size: 10px;
    border-bottom: 1px solid #334155;
    text-transform: uppercase;
}

.a-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
}

.a-table tbody tr:hover {
    background: #1e293b88;
}

/* Buttons */
.a-btn-confirm {
    background: #052e16;
    color: #4ade80;
    border: 1px solid #166534;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

.a-btn-approve {
    background: #1e3a5f;
    color: #3b82f6;
    border: 1px solid #2563eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

/* Admin scrollbar */
.admin-body ::-webkit-scrollbar { width: 6px; }
.admin-body ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

/* Admin responsive */
@media (max-width: 768px) {
    .a-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .a-two-col { grid-template-columns: 1fr; }
    .a-header-top { padding: 0 12px; }
    .a-tabs { padding: 0 8px; }
    .a-tab { padding: 8px 10px; font-size: 12px; }
    .a-stat-value { font-size: 18px; }
}

@media (max-width: 480px) {
    .a-day-btn { padding: 5px 10px; font-size: 11px; }
}

/* ═══════════════════════════════════
   스카이차량 예약 스타일
   ═══════════════════════════════════ */

.m-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
}

.m-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}

.sky-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 24px 0 12px;
}

/* 요금표 카드 */
.sky-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.sky-price-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    position: relative;
    transition: all 0.15s;
}

.sky-price-card.popular {
    border: 2px solid var(--ocean);
    background: #f0f9ff;
}

.sky-popular-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--ocean);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.sky-price-duration {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.sky-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--ocean);
    margin-bottom: 2px;
}

.sky-price-market {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.sky-price-desc {
    font-size: 11px;
    color: #64748b;
}

/* 차량 카드 */
.sky-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.sky-vehicle-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.sky-vehicle-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.sky-vehicle-card.selected { border: 2px solid var(--ocean); background: #f0f9ff; }

.sky-vehicle-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sky-vehicle-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.sky-vehicle-plate { font-size: 11px; color: #64748b; font-family: monospace; }
.sky-vehicle-type { font-size: 11px; color: #94a3b8; }
.sky-vehicle-info { flex: 1; }
.sky-vehicle-status { font-size: 11px; font-weight: 700; }

/* 주간 캘린더 */
.sky-calendar {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.sky-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--card-border);
}

.sky-cal-title { font-size: 14px; font-weight: 700; color: #1e293b; }

.sky-cal-nav {
    background: #fff;
    border: 1px solid var(--card-border);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sky-cal-grid {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    gap: 1px;
    background: var(--card-border);
}

.sky-cal-cell {
    background: #fff;
    padding: 8px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sky-cal-cell.head {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    min-height: 40px;
    background: #f8fafc;
}

.sky-cal-cell.head span { font-size: 16px; color: #1e293b; }

.sky-cal-cell.label {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
}

.sky-cal-type { font-size: 10px; color: #94a3b8; font-weight: 400; }

.sky-cal-cell.free {
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    background: #f0fdf4;
}

.sky-cal-cell.free:hover { background: #dcfce7; }

.sky-cal-avail { font-size: 11px; color: #16a34a; font-weight: 600; }

.sky-cal-cell.booked { text-align: center; }

.sky-cal-badge {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
}

/* 범례 */
.sky-legend {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    font-size: 11px;
    color: #64748b;
}

.sky-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}

/* 예약 모달 내 시간 선택 */
.sky-dur-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sky-dur-options .dur-opt { text-align: left; padding: 12px; }

/* 반응형 */
@media (max-width: 768px) {
    .sky-pricing-grid { grid-template-columns: 1fr; }
    .sky-cal-grid { grid-template-columns: 80px repeat(5, 1fr); }
    .sky-cal-cell.label { font-size: 10px; }
    .sky-cal-cell { padding: 4px; min-height: 50px; }
}

@media (max-width: 480px) {
    .sky-cal-grid { grid-template-columns: 60px repeat(5, 1fr); }
    .sky-price-amount { font-size: 18px; }
}

/* ═══════════════════════════════════
   관리자 모달 / 폼 / 게시대관리
   ═══════════════════════════════════ */

.a-btn-add {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.a-btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }

/* 기간 칩 (테이블 내) */
.period-chip {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.period-chip.on {
    background: #052e16;
    color: #4ade80;
    border: 1px solid #166534;
}

.period-chip.off {
    background: #1e293b;
    color: #475569;
    border: 1px solid #334155;
}

.period-chip:hover { opacity: 0.8; }

/* 관리자 모달 */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.admin-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.admin-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.admin-modal-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #334155;
}

/* 폼 필드 */
.admin-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.admin-form-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.admin-form-field input,
.admin-form-field select {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    color: #e2e8f0;
    font-family: inherit;
    outline: none;
    transition: border 0.15s;
}

.admin-form-field input:focus,
.admin-form-field select:focus {
    border-color: #3b82f6;
}

.admin-form-field input::placeholder { color: #475569; }

/* 기간 체크박스 그룹 */
.period-check-group {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.period-check {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #e2e8f0;
}

.period-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* 모달 버튼 */
.admin-btn-cancel {
    background: #334155;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.admin-btn-save {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.admin-btn-save:hover { box-shadow: 0 4px 12px rgba(59,130,246,0.4); }

@media (max-width: 480px) {
    .admin-modal { max-width: 100%; }
    .admin-form-row { grid-template-columns: 1fr; }
    .period-check-group { flex-wrap: wrap; }
}
