@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary: #3B5998;
    --primary-light: #5b7fc7;
    --primary-dark: #2c4278;
    --accent: #e8734a;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --header-bg: #3B5998;
    --text-main: #1a1a2e;
    --text-sub: #555;
    --text-muted: #888;
    --border: #e4e6ea;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --tab-active: #3B5998;
    --dept-봉: #e74c3c;
    --dept-어: #2980b9;
    --dept-청: #27ae60;
    --dept-은: #8e44ad;
    --dept-중: #f39c12;
    --dept-초: #16a085;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #3B5998 0%, #8ec5fc 100%);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo .church-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.login-logo .sub-title {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-main);
    background: #f8f9fa;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,89,152,0.15);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(0.98); }

.btn-sm {
    width: auto;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

.btn-danger {
    background: #e74c3c;
}
.btn-danger:hover { background: #c0392b; }

.btn-success {
    background: #27ae60;
}
.btn-success:hover { background: #219a52; }

.btn-secondary {
    background: #7f8c8d;
}
.btn-secondary:hover { background: #636e72; }

.login-footer {
    text-align: center;
    margin-top: 20px;
}
.login-footer a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}
.login-footer a:hover { color: var(--primary); }

/* ===== MAIN APP LAYOUT ===== */
.app-wrapper {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Header */
.app-header {
    background: var(--header-bg);
    color: white;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.app-header h1 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: left;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 13px;
    font-family: inherit;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.header-btn:hover { background: rgba(255,255,255,0.25); }

.header-logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

/* Search Bar */
.search-section {
    padding: 12px 16px;
    background: var(--header-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
}

.search-input {
    width: 100%;
    padding: 11px 44px 11px 38px;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.voice-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-search-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.voice-search-btn.recording {
    animation: pulse-red 1.5s infinite;
    background-color: rgba(255, 0, 0, 0.1);
}

@keyframes pulse-red {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Filter Tabs - Area */
.filter-section {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 54px;
    z-index: 150;
}

.area-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 8px;
    gap: 4px;
}
.area-tabs::-webkit-scrollbar { display: none; }

.area-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.area-tab:hover { color: var(--primary); }
.area-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.dept-filter-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}
.dept-filter-bar::-webkit-scrollbar { display: none; }

.dept-chip {
    flex-shrink: 0;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.dept-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* User List */
.user-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}
.user-card:active { transform: scale(0.98); box-shadow: var(--shadow); }
.user-card:hover { border-left-color: var(--primary-light); }

.user-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ecef;
    flex-shrink: 0;
    margin-right: 12px;
    border: 2px solid #e0e0e0;
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.user-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.dept-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
}
.dept-봉 { background: var(--dept-봉); }
.dept-어 { background: var(--dept-어); }
.dept-청 { background: var(--dept-청); }
.dept-은 { background: var(--dept-은); }
.dept-중 { background: var(--dept-중); }
.dept-초 { background: var(--dept-초); }
.dept-기타 { background: #95a5a6; }

.position-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: #3498db;
    color: white;
    flex-shrink: 0;
}

.user-card-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-phone-small {
    font-size: 13px;
    color: var(--text-muted);
}

.area-badge {
    font-size: 11px;
    color: var(--primary);
    background: rgba(59,89,152,0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.bns-badge {
    font-size: 11px;
    color: #888;
}

/* Stats bar */
.stats-bar {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-sheet {
    width: 100%;
    max-width: 640px;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    margin: 12px auto 0;
}

.modal-header {
    padding: 16px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.modal-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 6px;
}

.modal-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin-bottom: 12px;
}

.modal-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-body {
    padding: 16px 20px;
}

.info-section {
    margin-bottom: 12px;
}

.info-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.info-row {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}
.info-row:last-child { border-bottom: none; }

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 60px;
    padding-top: 1px;
}

.info-value {
    font-size: 15px;
    color: var(--text-main);
    flex: 1;
    word-break: break-all;
}

.info-value.clickable {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.info-value.clickable:active { opacity: 0.7; }

.call-btn {
    display: block;
    margin: 16px 20px;
    padding: 14px;
    background: #25D366;
    color: white;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.call-btn:active { background: #1da851; }

/* ===== ADMIN PAGE ===== */
.admin-page {
    max-width: 1500px;
    width: 98%;
    margin: 0 auto;
    padding: 16px;
}

.admin-header {
    background: #2c3e50;
    color: white;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.admin-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: left;
}

.admin-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.admin-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c3e50;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .admin-grid { grid-template-columns: 1fr; }
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
}
.upload-area:hover { border-color: var(--primary); }
.upload-area p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th {
    padding: 6px 4px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    text-align: center;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.admin-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    text-align: center;
}

.admin-table tr:hover td { background: #f8f9ff; }

.admin-table input.form-control,
.admin-table select.form-control,
.admin-table button.form-control {
    padding: 2px 4px !important;
    font-size: 11px !important;
    height: 24px !important;
    margin: 0 !important;
}

.admin-table .position-badge {
    font-size: 10px;
    padding: 1px 4px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

.toast.success { background: rgba(39,174,96,0.9); }
.toast.error { background: rgba(231,76,60,0.9); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Login glassmorphism bg particles */
.login-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,200,100,0.2) 0%, transparent 40%);
    animation: bgMove 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes bgMove {
    0% { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(2%, 2%) rotate(5deg); }
}

.login-box { position: relative; z-index: 1; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Admin login overlay */
.admin-login-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #2c3e50 0%, #4a6741 100%);
    padding: 20px;
}

.admin-login-box {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.admin-login-box h2 {
    text-align: center;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 24px;
}

/* Count badge */
.count-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 600;
    vertical-align: middle;
}

.user-card-extra {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.extra-row {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
.extra-row .icon {
    font-size: 14px;
    opacity: 0.8;
}

/* 연도 배지 */
.year-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    vertical-align: middle;
    margin-left: 6px;
}

/* 관리자 연도 선택바 */
.admin-year-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #fff3cd, #ffeeba);
    border-bottom: 2px solid #f0c040;
    padding: 8px 16px;
    font-size: 13px;
}
.admin-year-label {
    font-weight: 600;
    color: #856404;
}
.year-select {
    padding: 5px 12px;
    border: 1.5px solid #d4a017;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #5a3e00;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.year-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

/* ===== 가로 스크롤 래퍼 및 화살표 (PC 편의성) ===== */
.scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.scroll-wrapper:hover .scroll-arrow {
    opacity: 1;
    pointer-events: auto;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s;
    color: #555;
    font-size: 12px;
}

.scroll-arrow:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.scroll-arrow.left { left: 4px; }
.scroll-arrow.right { right: 4px; }

@media (max-width: 768px) {
    .scroll-arrow { display: none !important; }
}

/* ===== 대메뉴 탭 ===== */
.main-menu-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    padding: 10px 12px 0;
    background: #fff;
    border-bottom: 2px solid #eee;
    width: 100%;
    cursor: grab;
}
.main-menu-tabs:active { cursor: grabbing; }
.main-menu-tabs::-webkit-scrollbar { display: none; }

.main-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border: none;
    border-radius: 10px 10px 0 0;
    background: #f0f4f8;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}
.main-tab:hover { background: #e3eaf2; color: #333; }
.main-tab.active {
    background: #fff;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

/* ===== 서브메뉴 ===== */
.sub-menu {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf0;
    width: 100%;
    cursor: grab;
}
.sub-menu:active { cursor: grabbing; }
.sub-menu::-webkit-scrollbar { display: none; }

.sub-chip {
    flex-shrink: 0;
    padding: 5px 14px;
    border: 1.5px solid #dde3ea;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
}
.sub-chip:hover { border-color: var(--primary-light); color: var(--primary); }
.sub-chip.active-sub {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

/* 회별 & 직분 배지 */
.hoe-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.hoe-bong { background: #fde8e8; color: #c0392b; }
.hoe-eo   { background: #e8f4fd; color: #2471a3; }
.hoe-eun  { background: #f0e8fd; color: #7d3c98; }
.hoe-cheong { background: #e8fdf0; color: #1e8449; }
.hoe-etc  { background: #f0f0f0; color: #555; }

.position-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    background: #fdf2e9;
    color: #d35400;
    border: 1px solid #e67e22;
}



@media (max-width: 900px) {
    .pc-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== 모바일 사용자 편의성 개선 스타일 ===== */
.user-phone-link {
    color: #27ae60;
    border: 1px solid #27ae60;
    background-color: #f4fbf7;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}
.user-phone-link:active {
    background-color: #e8f8f0;
    opacity: 0.8;
}

.user-addr-link {
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.user-addr-link:active {
    color: var(--primary);
}

.call-btn-small {
    display: inline-block;
    padding: 6px 12px;
    background: #25D366;
    color: white;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.call-btn-small:active {
    background: #1da851;
    transform: scale(0.96);
}

/* Navigation Chooser Modal Styling */
.navi-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-top: 15px;
    color: var(--text-main);
}
.navi-address-box {
    margin: 12px 20px;
    padding: 12px;
    background: #f5f6f7;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    word-break: break-all;
    text-align: center;
    border: 1px solid #eee;
}
.navi-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 10px;
}
.navi-opt-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    outline: none;
    width: 100%;
}
.navi-opt-btn:active {
    transform: scale(0.98);
    background: #f9f9f9;
}
.navi-opt-btn .navi-icon {
    font-size: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navi-text-wrap {
    display: flex;
    flex-direction: column;
}
.navi-opt-btn .navi-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}
.navi-opt-btn .navi-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.navi-opt-btn.naver:active { background: #f0fdf4; border-color: #2db400; }
.navi-opt-btn.kakao:active { background: #fffdf0; border-color: #f7e600; }
.navi-opt-btn.tmap:active { background: #fdf2f2; border-color: #ff4040; }
