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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafbfc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============= 네비게이션 ============= */
.navbar {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-menu a:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 모바일 네비게이션 */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        padding: 1rem;
        gap: 0.5rem;
    }
    .nav-menu.active { display: flex; }
    .nav-menu a {
        display: block;
        padding: 0.7rem 1rem;
    }
}

/* ============= 히어로 섹션 ============= */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

/* ============= 페이지 헤더 ============= */
.page-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.page-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}


/* ============= 서비스 카드 (홈) ============= */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 20px 0 40px;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h2 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============= 인스타그램 배너 ============= */
.instagram-banner {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.instagram-banner a {
    color: white;
    text-decoration: none;
}

.instagram-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.instagram-banner p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ============= 카드 ============= */
.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ============= 폼 스타일 ============= */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
}

.form-group input,
.form-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.form-hint {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* ============= 별자리 소개 ============= */
.zodiac-intro {
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}
.zodiac-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}
.zodiac-eng {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: normal;
}
.zodiac-date {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 0.6rem;
}
.zodiac-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.zodiac-traits .trait {
    background: linear-gradient(135deg, #e8f4fc, #d6eaf8);
    color: #2980b9;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.zodiac-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.6rem;
}
.zodiac-strengths {
    font-size: 0.9rem;
    color: #27ae60;
    margin-bottom: 0.3rem;
}
.zodiac-weaknesses {
    font-size: 0.9rem;
    color: #8e44ad;
}
.horoscope-divider {
    border: none;
    border-top: 2px solid #ecf0f1;
    margin: 1.5rem 0;
}

/* ============= 별자리 운세 퀵 링크 ============= */
.horoscope-quick-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.horoscope-quick-links a {
    flex: 1 1 0;
    text-align: center;
}

@media (max-width: 768px) {
    .horoscope-quick-links {
        flex-direction: column;
        gap: 0.6rem;
    }
}

/* ============= 버튼 ============= */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ============= 결과 박스 ============= */
.result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.result-box h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-content {
    line-height: 1.8;
    color: #444;
}

.result-content strong {
    color: #2c3e50;
}

/* ============= 로딩 ============= */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #3498db;
}

.loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ============= 에러 ============= */
.error {
    color: #e74c3c;
    padding: 1rem;
    background: #fdf0ed;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* ============= 배지 ============= */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ============= 로또 볼 ============= */
.lotto-set {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.8rem 0;
    flex-wrap: wrap;
}

.set-label {
    font-weight: 600;
    color: #666;
    min-width: 50px;
}

.lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.95rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ball-yellow { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.ball-blue   { background: linear-gradient(135deg, #3498db, #2980b9); }
.ball-red    { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ball-gray   { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.ball-green  { background: linear-gradient(135deg, #2ecc71, #27ae60); }

/* ============= 사주 정보 ============= */
.saju-info {
    margin-bottom: 1rem;
}

/* ============= 날짜 라벨 ============= */
.date-label {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============= 캡션 미리보기 ============= */
.caption-preview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ============= 히스토리 ============= */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.history-date {
    font-size: 0.85rem;
    color: #999;
}

.history-id {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: 1rem;
}

.empty-state {
    color: #999;
    text-align: center;
    padding: 2rem;
}

/* ============= 노트 ============= */
.note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

/* ============= 구분선 ============= */
hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 1.5rem 0;
}

/* ============= 푸터 ============= */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ============= 오늘의 전체 별자리 운세 페이지 ============= */
.today-actions {
    margin-bottom: 2rem;
}
.generate-status {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}
.generate-status.loading { color: #3498db; }
.generate-status.success { color: #27ae60; }
.generate-status.error { color: #e74c3c; }

.today-fortunes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.fortune-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fortune-card h3 {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.15rem;
    margin: 0;
}
.fortune-card .sign-eng {
    font-size: 0.85rem;
    opacity: 0.9;
}

.fortune-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fortune-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fortune-image-placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

.fortune-text {
    padding: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}
.fortune-text br { display: block; content: ""; margin-top: 0.35em; }

/* ============= 준비중 페이지 ============= */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}
.coming-soon h1 { margin-bottom: 1rem; }
.coming-soon-desc {
    color: #666;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.coming-soon-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e9ecef;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 1.5rem;
}
.coming-soon .btn { margin-top: 0.5rem; }

/* 메인 핵심/예정 섹션 */
.services-section { margin-bottom: 2.5rem; }
.section-title {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #dee2e6;
}
.section-title .eyebrow {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.coming-section .section-title { color: #868e96; }
.services-compact .service-card { flex: 1 1 200px; }
.service-card-coming { opacity: 0.92; }
.service-card-coming:hover { opacity: 1; }

/* 메인 대시보드 레이아웃 */
.dashboard-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.2rem;
    margin: 1.2rem 0 1.8rem;
}

.dashboard-copy {
    background: linear-gradient(135deg, #f8fbff, #edf5ff);
    border: 1px solid #dcecff;
    border-radius: 14px;
    padding: 1.4rem;
}

.dashboard-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    color: #0b63b6;
    background: #e3f0ff;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.7rem;
}

.dashboard-copy h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    color: #18314f;
}

.dashboard-copy p {
    color: #46607a;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.fortune-gauge-card {
    background: #fff;
    border: 1px solid #e9eef6;
    border-radius: 14px;
    padding: 1rem 1rem 0.8rem;
    box-shadow: 0 4px 16px rgba(21, 39, 73, 0.06);
}

.fortune-gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.fortune-gauge-header h2 {
    font-size: 1rem;
    color: #21334f;
}

.fortune-keyword {
    font-size: 0.8rem;
    color: #4e6f93;
}

.fortune-gauge {
    position: relative;
    height: 120px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-bg,
.gauge-value {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.gauge-bg {
    stroke: #e8eef7;
}

.gauge-value {
    stroke: url(#gaugeGradient);
}

.gauge-value-72 {
    stroke: #4f8ef7;
    stroke-dasharray: 160;
    stroke-dashoffset: 45;
}

.gauge-score {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-score strong {
    font-size: 1.8rem;
    color: #18314f;
}

.gauge-score span {
    display: block;
    font-size: 0.85rem;
    color: #6d7f95;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-grid-second {
    margin-top: 0.8rem;
}

.dashboard-card {
    text-align: left;
    padding: 1.4rem;
    position: relative;
}

.dashboard-card .service-icon {
    font-size: 2rem;
    margin-bottom: 0.7rem;
}

.dashboard-card h2 {
    font-size: 1.12rem;
}

.card-arrow {
    position: absolute;
    right: 1rem;
    bottom: 0.95rem;
    font-size: 1rem;
    color: #4f8ef7;
}

.home-cta {
    background: linear-gradient(135deg, #1e3a5f, #275b96);
    color: #fff;
    border-radius: 14px;
    margin: 2rem 0 1.4rem;
    padding: 1.3rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.home-cta h2 {
    font-size: 1.18rem;
    margin-bottom: 0.3rem;
}

.home-cta p {
    opacity: 0.92;
    font-size: 0.94rem;
}

.home-cta .btn {
    white-space: nowrap;
    background: #fff;
    color: #1f4f84;
}

@media (max-width: 768px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .dashboard-copy h1 {
        font-size: 1.9rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta {
        flex-direction: column;
        align-items: flex-start;
    }

}

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

