/* ==================== CSS 변수 ==================== */
:root {
    /* 주요 색상 */
    --primary-color: #6366f1;
    --danger-color: #ef4444;

    /* 회색 음영 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* 레이아웃 */
    --header-height: 64px;

    /* 그림자 */
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ==================== 전역 스타일 ==================== */
* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
}

/* ==================== 유틸리티 ==================== */
.cursor-pointer {
    cursor: pointer;
}

/* ==================== 랜딩 레이아웃 ==================== */
.landing-layout {
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-layout > main {
    flex: 1;
}

/* GNB */
.landing-gnb {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
    transition: box-shadow 0.3s;
}

.landing-gnb.gnb-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Bootstrap 모달이 GNB(z-index: 1100) 위에 표시되도록 오버라이드 */
.modal-backdrop {
    z-index: 1150;
}
.modal {
    z-index: 1200;
}

.gnb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
}

.gnb-link:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.gnb-link.gnb-link-outlined {
    border: 1px solid var(--gray-300);
    border-radius: 50rem;
    background: #fff;
    padding: 0.375rem 1rem;
}

.gnb-link.gnb-link-outlined:hover {
    border-color: var(--gray-500);
    background: var(--gray-50);
}

.gnb-link.gnb-link-cta {
    border: 1px solid var(--primary-color);
    border-radius: 50rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.375rem 1rem;
}

.gnb-link.gnb-link-cta:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.gnb-link.dropdown-toggle::after {
    font-size: 0.7rem;
}

.gnb-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Mega Menu */
.gnb-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1099;
}

.gnb-mega-inner {
    display: flex;
    gap: 0;
    max-width: 560px;
}

.gnb-mega-col {
    flex: 1;
    padding: 1.5rem 1.75rem;
}

.gnb-mega-col + .gnb-mega-col {
    border-left: 1px solid var(--gray-200);
}

.gnb-mega-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--primary-color);
    letter-spacing: 0;
}

.gnb-mega-links {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.gnb-mega-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s, background-color 0.2s;
    padding: 0.4rem 0.625rem;
    border-radius: 0.375rem;
    margin: 0 -0.625rem;
}

.gnb-mega-links a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.06);
}

/* Mobile nav */
.landing-mobile-nav {
    background: white;
    border-top: 1px solid var(--gray-200);
}

.gnb-mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
}

.gnb-mobile-link:hover {
    color: var(--primary-color);
}

/* ==================== Solutions 섹션 ==================== */
.solution-problem-badge {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.solution-answer-badge {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

/* ==================== 히어로 섹션 ==================== */
.hero-section {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.65) 0%, rgba(30, 30, 60, 0.75) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.85;
}

.hero-cta {
    border-width: 2px;
    font-weight: 500;
    padding: 0.75rem 2rem;
}

.hero-cta:hover {
    background: white;
    color: var(--gray-900);
    border-color: white;
}

/* ==================== 크리에이터 쇼케이스 ==================== */
.creator-scroll-wrapper {
    width: 100%;
    overflow: hidden;
}

.creator-scroll-track {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    animation: creator-scroll 30s linear infinite;
    width: max-content;
}

.creator-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes creator-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.creator-card {
    width: 180px;
    height: 240px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.creator-card:hover {
    transform: scale(1.05);
}

.creator-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.creator-card-name {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Creator card color backgrounds */
.bg-creator-orange { background: #ff6b35; }
.bg-creator-purple { background: #8b5cf6; }
.bg-creator-yellow { background: #f59e0b; }
.bg-creator-green  { background: #10b981; }
.bg-creator-blue   { background: #3b82f6; }
.bg-creator-pink   { background: #ec4899; }
.bg-creator-red    { background: #ef4444; }
.bg-creator-teal   { background: #14b8a6; }

/* ==================== 통계 섹션 ==================== */
.stats-card {
    background: var(--gray-50);
    border-radius: 1.5rem;
    overflow: hidden;
    max-width: 900px;
}

.stats-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.stats-emoji {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.stats-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ==================== 기능 섹션 ==================== */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 단계 섹션 ==================== */
.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ==================== CTA 섹션 ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
}

/* ==================== 푸터 ==================== */
.landing-footer {
    background: #1a1a2e;
    color: var(--gray-400);
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-heading {
    color: white;
    font-weight: 600;
    font-size: 0.938rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 1rem;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==================== 랜딩 반응형 ==================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-number {
        font-size: 1.75rem;
    }

    .stats-item {
        padding: 1.5rem 1rem;
    }

    .creator-card {
        width: 150px;
        height: 200px;
    }
}

/* ==================== 회원가입 페이지 ==================== */
.signup-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

/* Plan Tabs */
.plan-tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    background: white;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.plan-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

/* Verification Code Inputs */
.code-input {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
    flex-shrink: 0;
}

/* Agreement Box */
.agreement-box {
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.agreement-box .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.agreement-error {
    border-color: #dc3545;
}

.agreement-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.agreement-badge.required {
    background: #e8eaf6;
    color: #3949ab;
}

.agreement-badge.optional {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Submit Button */
.signup-submit-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.signup-submit-btn:hover:not(:disabled) {
    background: #0f172a;
    color: white;
}

.signup-submit-btn:disabled {
    background: var(--gray-400);
    color: white;
}

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

.signup-modal {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.signup-modal-icon {
    font-size: 3rem;
    color: var(--gray-500);
}

/* ==================== Legal Modals ==================== */
.legal-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 1.5rem;
}

.legal-section h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.legal-content {
    white-space: pre-line;
    word-break: keep-all;
}

.legal-table-wrap .table {
    font-size: 0.8rem;
}

.legal-table-wrap .table th {
    white-space: nowrap;
    font-weight: 600;
}

/* ==================== 로그인 페이지 ==================== */

.login-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.login-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray-400);
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.125rem;
}

.login-submit-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.625rem;
    font-size: 1.0625rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.login-submit-btn:hover:not(:disabled) {
    background: #0f172a;
    color: white;
}

.login-submit-btn:disabled {
    background: var(--gray-400);
    color: white;
}

.login-signup-btn {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 0.625rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: border-color 0.2s;
}

.login-signup-btn:hover {
    border-color: var(--primary-color);
}

/* ==================== Auth 반응형 ==================== */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-avatar {
        width: 5rem;
        height: 5rem;
        font-size: 2rem;
    }

    .signup-card {
        padding: 1.5rem;
    }

    .plan-tab {
        padding: 0.375rem 0.875rem;
        font-size: 0.8rem;
    }

    .code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* ==================== 가격 페이지 ==================== */

/* 히어로 */
.pricing-hero {
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, var(--primary-color) 100%);
    color: white;
    padding-top: calc(var(--header-height) + 2rem);
}

/* 월간/연간 토글 */
.pricing-toggle-btn {
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    background: white;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-toggle-btn:hover {
    border-color: var(--gray-500);
    color: var(--gray-900);
}

.pricing-toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pricing-discount-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 플랜 카드 */
.pricing-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.pricing-card-recommended {
    border: 2px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.pricing-feature-list li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-feature-list li:last-child {
    border-bottom: none;
}

/* CTA 버튼 */
.pricing-cta-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    padding: 0.625rem 1rem;
}

.pricing-cta-outline:hover {
    background: var(--primary-color);
    color: white;
}

.pricing-cta-solid {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 0.625rem 1rem;
}

.pricing-cta-solid:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

/* 체크/X 아이콘 */
.pricing-check {
    color: #10b981;
    font-size: 1rem;
}

.pricing-cross {
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* Enterprise 배너 */
.pricing-enterprise {
    background: linear-gradient(135deg, #4338ca 0%, var(--primary-color) 50%, #818cf8 100%);
    border-radius: 1rem;
    padding: 3rem;
}

.pricing-enterprise-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* 비교 테이블 */
.pricing-comparison-table {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.pricing-table-header th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
    font-size: 0.95rem;
}

.pricing-table-header th:first-child {
    border-top-left-radius: 0.75rem;
}

.pricing-table-header th:last-child {
    border-top-right-radius: 0.75rem;
}

.pricing-category-row td {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-comparison-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.pricing-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== 가격 반응형 ==================== */
@media (max-width: 768px) {
    .pricing-hero {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .pricing-hero h1 {
        font-size: 1.5rem;
    }

    .pricing-price {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .pricing-enterprise {
        padding: 2rem 1.5rem;
    }

    .pricing-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .pricing-discount-badge {
        font-size: 0.75rem;
    }

    /* 비교 테이블 첫 번째 열 고정 */
    .pricing-comparison-table td:first-child,
    .pricing-comparison-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .pricing-comparison-table th:first-child {
        background: var(--primary-color);
    }

    .pricing-comparison-table td:first-child {
        background: white;
    }

    .pricing-category-row td:first-child {
        background: var(--gray-50);
    }

    .pricing-comparison-table th,
    .pricing-comparison-table td {
        min-width: 120px;
    }

    .pricing-comparison-table th:first-child,
    .pricing-comparison-table td:first-child {
        min-width: 140px;
    }
}

/* ==================== 환영 페이지 ==================== */
.welcome-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.welcome-check-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.welcome-info-box {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.25rem 2rem;
    max-width: 360px;
}

.welcome-plan-badge {
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
}

.welcome-step-card {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    height: 100%;
}

.welcome-step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.welcome-primary-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.625rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.welcome-primary-btn:hover {
    background: #0f172a;
    color: white;
}

.welcome-outline-btn {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 2rem;
    border-radius: 0.625rem;
    font-weight: 600;
    transition: border-color 0.2s;
}

.welcome-outline-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== 결제 페이지 ==================== */
.checkout-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

.checkout-subscription-info {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
}

.checkout-subscription-item {
    flex: 1;
    padding: 0.875rem 1rem;
}

.checkout-subscription-item + .checkout-subscription-item {
    border-left: 1px solid var(--gray-200);
}

.checkout-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.checkout-price-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-left: 0.25rem;
    vertical-align: baseline;
}

.checkout-card-box {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.checkout-notice-box {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    max-height: 200px;
    overflow-y: auto;
}

/* ==================== 결제 완료 페이지 ==================== */
.payment-complete-info {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    max-width: 480px;
}

.payment-complete-info .table td {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
}

.payment-complete-info .table tr:last-child td {
    border-bottom: none;
}

/* ==================== 마이페이지 ==================== */
.mypage-user-info {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.mypage-site-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.mypage-site-card:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.mypage-site-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mypage-plan-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mypage-plan-free {
    background: #e0e7ff;
    color: #3730a3;
}

.mypage-plan-basic {
    background: #dbeafe;
    color: #1d4ed8;
}

.mypage-plan-growth {
    background: #e8eaf6;
    color: #4338ca;
}

.mypage-plan-advanced {
    background: #fce7f3;
    color: #be185d;
}

.mypage-status-active {
    background: #d1fae5;
    color: #065f46;
}

.mypage-status-inactive {
    background: var(--gray-100);
    color: var(--gray-600);
}

.mypage-empty {
    background: white;
    border-radius: 1rem;
}

/* ==================== 환영/결제 반응형 ==================== */
@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .welcome-check-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }

    .checkout-card {
        padding: 1.5rem;
    }

    .checkout-subscription-info {
        flex-direction: column;
    }

    .checkout-subscription-item + .checkout-subscription-item {
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }

    .checkout-price {
        font-size: 2.5rem;
    }

    .checkout-price-unit {
        font-size: 1.125rem;
    }

    .mypage-site-card {
        padding: 1rem 1.25rem;
    }
}

/* ==================== 에러/점검 페이지 ==================== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 3rem 0;
    background: var(--gray-50);
}

.error-page-content {
    max-width: 520px;
    margin: 0 auto;
}

.error-page-illustration {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 2;
    background: #ede9fe;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd6fe;
    padding: 1.25rem;
    margin: 0 auto;
}

.error-page-illustration svg {
    width: 100%;
    height: 100%;
}

.error-page-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.error-page-title-lg {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.error-page-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.error-page-desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.error-page-btn {
    display: inline-block;
    background: #312e81;
    color: white;
    border: none;
    border-radius: 50rem;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 260px;
}

.error-page-btn:hover {
    background: #272463;
    color: white;
}

.error-page-schedule {
    display: inline-block;
}

@media (max-width: 768px) {
    .error-page {
        padding: 2rem 0;
    }

    .error-page-illustration {
        max-width: 320px;
    }

    .error-page-title {
        font-size: 1.25rem;
    }

    .error-page-title-lg {
        font-size: 1.5rem;
    }

    .error-page-btn {
        min-width: 180px;
        padding: 0.75rem 3rem;
    }
}

