:root {
    --bg-color: #f9fafb;
    --card-bg-color: #ffffff;
    --text-color: #1f2937;
    --link-color: #2563eb;
    --visited-link-color: #5b21b6;
    --snippet-color: #374151;
    --border-color: #e5e7eb;
    --accent-color: #2563eb;
    --muted-text-color: #6b7280;
    --like-color: #ec4899;
    --dislike-color: #888;
    --success-green: #10b981;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    padding: 24px 20px;
    border-bottom: 1px solid #374151;
    background-color: #1f2937;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 16px;
}

/* [추가] 로고 텍스트와 프로토타입 태그 스타일 */
.logo-svg {
    width: 42px; /* 수정: 아이콘 크기 조정 */
    height: 42px;
}

.logo-text-wrapper {
    display: flex;
    align-items: baseline; /* 텍스트와 태그의 하단 정렬 */
    gap: 8px;
}

.logo-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #f9fafb;
}

.prototype-tag {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b; /* Amber 500 */
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    top: -2px; /* 미세 위치 조정 */
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.main-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    color: #ffffff;
    border-bottom-color: #3b82f6;
}


.subscribe-button {
    background-color: var(--accent-color);
    border: 1px solid transparent;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.subscribe-button:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}
.subscribe-button svg {
    stroke: #ffffff;
}

.search-container {
    max-width: 720px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.search-form:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

#search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 16px;
    background: transparent;
}

.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--accent-color);
    color: white;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #1d4ed8;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 16px;
}

.filter-bar {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.filter-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #4b5563;
    border: 1px solid #6b7280;
    padding: 8px 12px;
    font-size: 13px;
    color: #e5e7eb;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}
.filter-select:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.filter-select:hover:not(:disabled) {
    background-color: #6b7280;
}
.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.main-content-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box;
}

.results-wrapper {
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
}

.results-container {
     width: 100%;
}

.placeholder {
    text-align: center;
    color: #9ca3af;
    padding-top: 80px;
}
.placeholder svg {
    stroke: #d1d5db;
}

.no-results-message {
    text-align: center;
    color: var(--muted-text-color);
    padding: 80px 20px;
}
.no-results-message svg {
    stroke: #d1d5db;
    margin-bottom: 16px;
}
.no-results-message h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px;
}
.no-results-message h4 span {
    color: var(--accent-color);
    font-weight: 700;
}
.no-results-message p {
    font-size: 14px;
    margin: 0;
}


.search-result {
    margin-bottom: 16px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
    position: relative;
    overflow: hidden; /* For feedback animation */
}
.search-result:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-result a { text-decoration: none; }

.search-result .title {
    font-size: 18px;
    color: var(--link-color);
    font-weight: 600;
    margin: 0 0 8px;
    display: block;
}
.search-result a:visited .title { color: var(--visited-link-color); }
.search-result .title:hover { text-decoration: underline; }

.search-result .meta {
    font-size: 13px;
    color: var(--muted-text-color);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.search-result .snippet {
    font-size: 14px;
    line-height: 1.6;
    color: var(--snippet-color);
    margin: 0;
}

/* --- Card Actions (Summary + Feedback) --- */
.card-actions {
    display: flex;
    justify-content: flex-start; /* Align left */
    align-items: center;
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.summary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: none;
    color: var(--muted-text-color);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.summary-btn:hover, .summary-btn.active {
    background-color: #eef2ff;
    color: var(--accent-color);
}
.summary-btn svg {
    stroke: currentColor;
}
.summary-btn[data-memo="false"] {
    opacity: 0.6;
    cursor: default;
}

.summary-content {
    margin-top: 16px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--snippet-color);
    border: 1px solid var(--border-color);
    position: relative;
}

.summary-content.unavailable {
    color: var(--muted-text-color);
    font-style: italic;
}


.feedback-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.feedback-actions.snippet-feedback {
    position: absolute;
    top: 16px;
    right: 16px;
}
.search-result:hover .feedback-actions.snippet-feedback {
    opacity: 1;
}

.feedback-actions.summary-feedback {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.summary-content:hover .feedback-actions.summary-feedback {
    opacity: 1;
}


.feedback-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s;
}
.feedback-btn svg {
    width: 18px; /* Icon size smaller */
    height: 18px;/* Icon size smaller */
    stroke: var(--muted-text-color);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.2s;
}
.feedback-btn.like-btn:hover svg {
    stroke: var(--like-color);
    fill: var(--like-color);
}
.feedback-btn.dislike-btn:hover svg {
    stroke: var(--dislike-color);
    fill: var(--dislike-color);
}

.feedback-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pop-and-fade 0.7s ease-out forwards;
    pointer-events: none;
}
.feedback-animation svg { width: 48px; height: 48px; stroke-width: 1.5; }
.feedback-animation .like-icon { stroke: var(--like-color); fill: var(--like-color); }
.feedback-animation .dislike-icon { stroke: var(--dislike-color); fill: var(--dislike-color); }

@keyframes pop-and-fade {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.status-message {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    padding: 40px 0;
}

.loader {
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 광고 스타일 --- */
.ad-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 240px; /* 헤더 높이 변경에 따라 조정 */
    align-self: flex-start;
}

.ad-container {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    cursor: pointer;
}

.ad-label {
    font-size: 12px;
    color: var(--muted-text-color);
    font-weight: 500;
    margin-bottom: 4px;
    display: inline-block;
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.ad-link {
    text-decoration: none;
    color: inherit;
}

.ad-title {
    font-size: 16px;
    color: var(--link-color);
    font-weight: 600;
    margin: 0 0 6px;
}
.ad-title:hover {
    text-decoration: underline;
}
.ad-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--snippet-color);
    margin: 0 0 8px;
}
.ad-url {
    font-size: 13px;
    color: var(--muted-text-color);
    display: block;
}

.top-banner-ad {
    border-left: 3px solid #a5b4fc;
}

.in-feed-ad {
    border-left: 3px solid #a5b4fc;
}
.in-feed-ad .ad-title, .top-banner-ad .ad-title { font-size: 18px; }
.in-feed-ad .ad-description, .top-banner-ad .ad-description { font-size: 14px; line-height: 1.6; }
.in-feed-ad .ad-url, .top-banner-ad .ad-url { font-size: 13px; }

/* --- 신규 이미지 배너 광고 스타일 --- */
.image-ad-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #e5e7eb;
    aspect-ratio: 16 / 9;
    padding: 0;
}

.image-ad-card .ad-link {
    display: block;
    width: 100%;
    height: 100%;
}

.image-ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-ad-card:hover img {
    transform: scale(1.05);
}

.image-ad-card .ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.image-ad-card .ad-label {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.image-ad-card .ad-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.image-ad-card .ad-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.image-ad-card .ad-cta-button {
    background-color: var(--success-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.image-ad-card .ad-cta-button:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* --- 신규 플로팅 배너 광고 스타일 --- */
.floating-ad {
    position: fixed;
    bottom: -100%;
    right: 20px;
    width: 340px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 1001;
    display: flex;
    gap: 16px;
    padding: 16px;
    align-items: center;
    transition: bottom 0.5s ease-in-out;
    cursor: pointer;
}
.floating-ad.visible {
    bottom: 20px;
}
.floating-ad-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: #dcfce7;
    color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-ad-icon svg {
    width: 24px;
    height: 24px;
}
.floating-ad-content .ad-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937; /* 색상 명확히 지정 */
}
.floating-ad-content .ad-description {
    margin: 0;
    font-size: 13px;
    color: var(--muted-text-color);
}
.floating-ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted-text-color);
    cursor: pointer;
    z-index: 2; /* 배너 내용보다 위에 오도록 */
}

/* --- Modal styles --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); display: flex;
    justify-content: center; align-items: center; z-index: 1000;
    opacity: 0; animation: fadeIn 0.3s forwards;
}
#plan-modal {
    background-color: rgba(0,0,0,0.7);
    pointer-events: none;
}
.modal-content {
    background-color: #fff; padding: 24px; border-radius: 8px;
    width: 90%; max-width: 540px; /* 너비 살짝 넓힘 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: scale(0.95); animation: slideIn 0.3s forwards;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color); padding-bottom: 16px; margin-bottom: 16px;
}
.modal-header h3 { margin: 0; font-size: 18px; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted-text-color); }

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.modal-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-text-color);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.modal-tab-btn:hover {
    color: var(--text-color);
}
.modal-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

.modal-description { font-size: 14px; color: var(--muted-text-color); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input[type="email"] {
    width: 100%; padding: 10px; border: 1px solid var(--border-color);
    border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.interest-tags, .job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background-color: #f3f4f6; padding: 6px 12px; border-radius: 16px;
    font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.tag:hover { background-color: #e5e7eb; }
.tag.active { background-color: var(--accent-color); color: #fff; font-weight: 500; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.btn-primary, .btn-secondary {
    padding: 10px 20px; border-radius: 6px; font-size: 14px;
    font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary { background-color: var(--accent-color); color: #fff; }
.btn-primary:hover { background-color: #1d4ed8; }
.btn-secondary { background-color: #fff; color: var(--text-color); border-color: var(--border-color); }
.btn-secondary:hover { background-color: #f9fafb; }
.modal-status-message {
    font-size: 14px; text-align: center; padding: 10px; border-radius: 6px;
    margin-top: 16px; display: none;
}
.modal-status-message.success { background-color: #dcfce7; color: #166534; }
.modal-status-message.error { background-color: #fee2e2; color: #991b1b; }

/* 텔레그램 탭 스타일 */
.keyword-channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.channel-link {
    background-color: #eef2ff;
    color: #4338ca;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.channel-link:hover {
    background-color: #e0e7ff;
    color: #3730a3;
    transform: translateY(-1px);
}
.channel-join-info {
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted-text-color);
    text-align: center;
}
.channel-join-info a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}
.channel-join-info a:hover {
    text-decoration: underline;
}


/* --- 후원 및 소개 모달 스타일 --- */
.support-modal-intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--snippet-color);
    margin-top: 0;
    margin-bottom: 16px;
}
.support-modal-intro strong {
    color: var(--accent-color);
    font-weight: 600;
}
.civic-group-list-container {
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}
.civic-group-list-container h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}
.civic-group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.civic-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.civic-group-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.group-info h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}
.group-info p {
    margin: 0;
    font-size: 13px;
    color: var(--muted-text-color);
}
.support-link-btn {
    flex-shrink: 0;
    background-color: #dcfce7;
    color: #166534;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.support-link-btn:hover {
    background-color: #bbf7d0;
    color: #155e2b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- [수정] 사업계획 팝업 모달 (애니메이션 재시작을 위해 수정) --- */
.plan-modal-content {
    position: relative;
    padding: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    color: #fff;
    max-width: 400px;
    opacity: 0; /* 시작 시 투명 */
}
.plan-modal-icon {
    font-size: 64px;
    transform: scale(0); /* 시작 시 작게 */
}
.plan-modal-content p {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0; /* 시작 시 투명 */
}
.pop-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* .visible 클래스가 추가되었을 때만 애니메이션 실행 */
#plan-modal.visible .plan-modal-content {
    opacity: 1;
    animation: popOutEffect 0.5s 2.3s ease-in forwards;
}
#plan-modal.visible .plan-modal-icon {
    animation: iconPop 0.5s ease-out forwards;
}
#plan-modal.visible .plan-modal-content p {
    animation: textFadeIn 0.5s 0.2s forwards;
}
#plan-modal.visible .pop-effect {
    animation: burstEffect 0.6s ease-out forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: scale(0.95) translateY(-20px); } to { transform: scale(1) translateY(0); } }

@keyframes iconPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes burstEffect {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(20); opacity: 0; }
}
@keyframes popOutEffect {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

/* --- [추가] 모바일 반응형 스타일 --- */
@media (max-width: 768px) {
    /* 광고 숨기기 */
    .ad-sidebar,
    .floating-ad {
        display: none;
    }
    /* JS로 제어되는 광고는 !important로 확실하게 숨김 */
    .top-banner-ad {
        display: none !important;
    }

    /* 레이아웃 조정 */
    .header {
        padding: 16px 12px;
    }
    .main-content-area {
        flex-direction: column;
        padding: 16px 12px;
    }
    .results-wrapper {
        max-width: 100%;
    }

    /* 컨트롤 바 (필터, 구독버튼) 수직 정렬 */
    .controls-bar {
        flex-direction: column;
        align-items: stretch; /* 자식 요소들을 꽉 채움 */
        gap: 12px;
    }
    .subscribe-button {
        justify-content: center; /* 버튼 내부 컨텐츠 중앙 정렬 */
    }

    /* 검색 결과 카드 패딩 조정 */
    .search-result {
        padding: 16px;
    }

    /* 모달 창 조정 */
    .modal-content {
        padding: 20px 16px;
    }
    .modal-footer {
        flex-direction: column-reverse; /* 버튼들을 수직으로 쌓고, 주 버튼이 위로 오도록 */
        align-items: stretch;
    }
    .btn-primary, .btn-secondary {
        justify-content: center;
    }

    /* 그룹 아이템 버튼들이 너무 길어지는 것 방지 */
    .civic-group-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .support-link-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}