/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #1e1b29;
    color: #e8e6f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

input {
    font-family: inherit;
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    background: rgba(30, 27, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
    z-index: 100;
}

.header__container {
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 20px;
    font-weight: 600;
    color: #f5d36c;
    letter-spacing: 0.5px;
}

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

.header__point {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 100%);
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
}

.point-icon {
    color: #f5d36c;
    font-size: 16px;
}

.header__login {
    padding: 8px 16px;
    background: rgba(111, 92, 255, 0.15);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    color: #6f5cff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header__login:hover {
    background: rgba(111, 92, 255, 0.25);
    border-color: rgba(111, 92, 255, 0.5);
}

.header__user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 211, 108, 0.15);
    border: 1px solid rgba(245, 211, 108, 0.3);
    border-radius: 20px;
}

.header__user-email {
    font-size: 14px;
    color: #f5d36c;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== View System ==================== */
.view {
    display: none;
    max-width: 430px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.view--active {
    display: block;
}

.view__header {
    margin-bottom: 24px;
}

.view__title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
}

/* ==================== Type Selection ==================== */
.type-selection {
    padding: 20px 0;
}

.type-selection__desc {
    text-align: center;
    color: #b8b5c8;
    font-size: 15px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.category-section {
    margin: 0 0 32px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(111, 92, 255, 0.08) 0%, rgba(155, 136, 255, 0.03) 100%);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6f5cff, transparent);
    opacity: 0.5;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    padding: 0;
    margin-bottom: 8px;
}

.category-desc {
    font-size: 13px;
    color: #b8b5c8;
    padding: 0;
    margin-bottom: 16px;
}

/* ==================== Hero Section ==================== */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    background: linear-gradient(135deg, #f5d36c 0%, #ffa06c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero__subtitle {
    font-size: 16px;
    color: #b8b5c8;
    font-weight: 400;
}

/* ==================== Landing Page ==================== */
.landing {
    min-height: calc(100vh - 60px);
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
}

.landing-hero {
    text-align: center;
    padding: 0 40px;
    flex-shrink: 0;
    margin-top: 20px;
}

.landing-hero__badge {
    display: inline-block;
    background: rgba(111, 92, 255, 0.15);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: #6f5cff;
    margin-bottom: 24px;
    font-weight: 500;
}

.landing-hero__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 16px;
}

.landing-hero__title .highlight {
    background: linear-gradient(135deg, #f5d36c 0%, #ffa06c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.landing-hero__desc {
    font-size: 16px;
    color: #b8b5c8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.landing-hero__update {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 92, 92, 0.15), rgba(255, 160, 108, 0.15));
    border: 1px solid rgba(245, 211, 108, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 20px 0;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(245, 211, 108, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 211, 108, 0.5);
    }
}

.landing-hero__update-badge {
    background: linear-gradient(135deg, #ff5c5c 0%, #ffa06c 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.landing-hero__update-text {
    font-size: 14px;
    color: #f5d36c;
    font-weight: 500;
    line-height: 1.4;
}

.landing-hero__highlight {
    display: inline-block;
    background: linear-gradient(135deg, rgba(245, 211, 108, 0.15), rgba(111, 92, 255, 0.15));
    border: 2px solid #f5d36c;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.landing-hero__highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(245, 211, 108, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.landing-hero__highlight-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.landing-hero__highlight-text {
    font-size: 15px;
    color: #f5d36c;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
}

.landing-hero__tech-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    #margin-top: 20px;
    margin: 20px 0;
}

.tech-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(30, 27, 41, 0.6);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.tech-point:hover {
    background: rgba(30, 27, 41, 0.8);
    border-color: rgba(111, 92, 255, 0.4);
    transform: translateX(4px);
}

.tech-point__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tech-point__content {
    flex: 1;
}

.tech-point__content strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tech-point__content p {
    margin: 0;
    color: #b8b5c8;
    font-size: 13px;
    line-height: 1.4;
}

.landing-hero__highlight-text strong {
    color: #ffa06c;
    font-weight: 700;
}

.landing-features {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex-shrink: 0;
}

.landing-features .feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.feature-card {
    background: rgba(111, 92, 255, 0.08);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(111, 92, 255, 0.12);
    border-color: rgba(111, 92, 255, 0.4);
    transform: translateY(-2px);
}

.feature-card__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 14px;
    color: #b8b5c8;
    line-height: 1.5;
}

.feature-card--live {
    background: rgba(245, 211, 108, 0.08);
    border-color: rgba(245, 211, 108, 0.25);
}

.feature-card--live:hover {
    background: rgba(245, 211, 108, 0.14);
    border-color: rgba(245, 211, 108, 0.4);
}

.feature-card__live-value {
    font-size: 22px;
    font-weight: 700;
    color: #f5d36c;
    transition: opacity 0.3s ease;
}

.landing-spacer {
    flex: 1;
    min-height: 40px;
}

.landing-business {
    padding: 32px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.business-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(111, 92, 255, 0.08);
    border: 1px solid rgba(111, 92, 255, 0.25);
    border-radius: 24px;
    color: #b8b5c8;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-info-btn:hover {
    background: rgba(111, 92, 255, 0.15);
    border-color: rgba(111, 92, 255, 0.4);
    color: #e8e6f0;
    transform: translateY(-1px);
}

.business-info-btn:active {
    transform: translateY(0);
}

.business-info-btn__icon {
    font-size: 16px;
    line-height: 1;
}

.business-info-btn__text {
    line-height: 1;
}

/* ==================== Privacy Policy Modal ==================== */
.privacy-policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.privacy-policy-modal--active {
    display: flex;
}

.privacy-policy-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.privacy-policy-modal__container {
    position: relative;
    background: #2a2638;
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpFade 0.3s ease;
}

.privacy-policy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
    flex-shrink: 0;
}

.privacy-policy-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.privacy-policy-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b5c8;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.privacy-policy-modal__close:hover {
    background: rgba(111, 92, 255, 0.2);
    color: #e8e6f0;
}

.privacy-policy-modal__body {
    padding: 24px 20px;
    overflow-y: auto;
    flex: 1;
}

.privacy-section {
    margin-bottom: 24px;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section__title {
    font-size: 16px;
    font-weight: 600;
    color: #9b88ff;
    margin-bottom: 12px;
}

.privacy-section__content {
    font-size: 14px;
    color: #e8e6f0;
    line-height: 1.6;
    margin-bottom: 12px;
}

.privacy-section__content--highlight {
    background: rgba(245, 211, 108, 0.1);
    border-left: 3px solid #f5d36c;
    padding: 12px 16px;
    border-radius: 8px;
    color: #ffffff;
}

.privacy-section__content--meta {
    font-size: 13px;
    color: #b8b5c8;
    text-align: center;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(111, 92, 255, 0.2);
}

.privacy-section__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.privacy-section__list li {
    font-size: 14px;
    color: #e8e6f0;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.privacy-section__list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #6f5cff;
    font-weight: bold;
}

/* ==================== Operation Policy Modal ==================== */
.operation-policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.operation-policy-modal--active {
    display: flex;
}

.operation-policy-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.operation-policy-modal__container {
    position: relative;
    background: #2a2638;
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpFade 0.3s ease;
}

.operation-policy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
    flex-shrink: 0;
}

.operation-policy-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.operation-policy-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b5c8;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.operation-policy-modal__close:hover {
    background: rgba(111, 92, 255, 0.2);
    color: #e8e6f0;
}

.operation-policy-modal__body {
    padding: 24px 20px;
    overflow-y: auto;
    flex: 1;
}

/* ==================== Ticket Info Modal ==================== */
.ticket-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.ticket-info-modal--active {
    display: flex;
}

.ticket-info-modal__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ticket-info-modal__container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    background: linear-gradient(180deg, #2a2640 0%, #1e1b29 100%);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

.ticket-info-modal__header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-info-modal__title {
    font-size: 20px;
    font-weight: 600;
    color: #e8e6f0;
    margin: 0;
}

.ticket-info-modal__close {
    background: none;
    border: none;
    color: #9e95c7;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: all 0.2s;
}

.ticket-info-modal__close:hover {
    color: #e8e6f0;
    background: rgba(111, 92, 255, 0.2);
    border-radius: 4px;
}

.ticket-info-modal__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 티켓 카드 */
.ticket-card {
    background: rgba(111, 92, 255, 0.1);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.ticket-card:last-child {
    margin-bottom: 0;
}

.ticket-card--active {
    border-color: rgba(111, 92, 255, 0.5);
    background: rgba(111, 92, 255, 0.15);
}

.ticket-card--expired {
    opacity: 0.5;
    border-color: rgba(158, 149, 199, 0.3);
    background: rgba(158, 149, 199, 0.1);
}

.ticket-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
}

.ticket-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #e8e6f0;
    margin: 0;
}

.ticket-card__status {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(111, 92, 255, 0.3);
    color: #f5d36c;
    border-radius: 12px;
    font-weight: 500;
}

.ticket-card--expired .ticket-card__status {
    background: rgba(158, 149, 199, 0.3);
    color: #9e95c7;
}

.ticket-card__body {
    margin-bottom: 12px;
}

.ticket-info-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.ticket-info-row__icon {
    font-size: 18px;
    margin-right: 8px;
}

.ticket-info-row__label {
    flex: 1;
    color: #9e95c7;
    font-size: 14px;
}

.ticket-info-row__value {
    color: #e8e6f0;
    font-size: 14px;
    font-weight: 600;
}

.ticket-card__footer {
    padding-top: 8px;
    border-top: 1px solid rgba(111, 92, 255, 0.2);
}

.ticket-card__date {
    font-size: 12px;
    color: #9e95c7;
}

/* 티켓 없을 때 */
.ticket-info-empty {
    text-align: center;
    padding: 40px 20px;
}

.ticket-info-empty p {
    color: #9e95c7;
    font-size: 16px;
    margin: 0 0 20px;
}

.ticket-info-charge-btn {
    background: linear-gradient(135deg, #6f5cff 0%, #5a45e0 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-info-charge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 92, 255, 0.4);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ==================== Login Page ==================== */
.login-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    width: 100%;
}

.login-hero {
    text-align: center;
    margin-bottom: 48px;
}

.login-hero__icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.login-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.login-hero__desc {
    font-size: 15px;
    color: #b8b5c8;
    line-height: 1.6;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn__icon {
    width: 24px;
    height: 24px;
}

.login-btn--kakao {
    background: #FEE500;
    color: #000000;
}

.login-btn--kakao:hover {
    background: #FDD835;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

.login-btn--naver {
    background: #03C75A;
    color: #ffffff;
}

.login-btn--naver:hover {
    background: #02B350;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

.login-btn--google {
    background: #ffffff;
    color: #757575;
    border: 1px solid #dadce0;
}

.login-btn--google:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-btn--github {
    background: #3f4143;
    color: #ffffff;
}

.login-btn--github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.login-footer {
    text-align: center;
}

.login-footer__skip {
    background: none;
    border: none;
    color: #b8b5c8;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.login-footer__skip:hover {
    color: #6f5cff;
}

/* ==================== Scroll Down Arrow ==================== */
.scroll-down-arrow {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: rgba(111, 92, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(111, 92, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(111, 92, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: floatArrow 3s ease-in-out infinite;
}

.scroll-down-arrow:hover {
    background: rgba(111, 92, 255, 0.35);
    border-color: rgba(111, 92, 255, 0.8);
    box-shadow: 0 6px 24px rgba(111, 92, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.05);
}

.scroll-down-arrow:active {
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 2px 8px rgba(111, 92, 255, 0.4);
}

.scroll-down-arrow__icon {
    position: relative;
    width: 18px;
    height: 18px;
    animation: arrowPulse 2s ease-in-out infinite;
}

.scroll-down-arrow__icon::before,
.scroll-down-arrow__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 2.5px solid #a599ff;
    border-bottom: 2.5px solid #a599ff;
    transform-origin: center;
    filter: drop-shadow(0 0 4px rgba(111, 92, 255, 0.6));
}

.scroll-down-arrow__icon::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.scroll-down-arrow__icon::after {
    top: 6px;
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.7;
}

.scroll-down-arrow--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px) scale(0.8);
}

@keyframes floatArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(3px);
    }
}

/* ==================== Bottom Navigation ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 27, 41, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(111, 92, 255, 0.3);
    display: flex;
    justify-content: space-around;
    /*padding: 20px 0 calc(20px + env(safe-area-inset-bottom));*/
    z-index: 100;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: none;
    border: none;
    border-right: 1px solid rgba(111, 92, 255, 0.2);
    color: #b8b5c8;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 90px;
}

.bottom-nav__item:last-child {
    border-right: none;
}

.bottom-nav__item:hover,
.bottom-nav__item:active {
    color: #6f5cff;
    transform: translateY(-2px);
}

.bottom-nav__icon {
    font-size: 36px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.bottom-nav__item:hover .bottom-nav__icon {
    transform: scale(1.1);
}

.bottom-nav__label {
    font-size: 13px;
    font-weight: 500;
}

/* ==================== Menu Cards ==================== */
.menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    #grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 4px;
}

.menu__card {
    width: 100%;
    background: linear-gradient(135deg, rgba(111, 92, 255, 0.15) 0%, rgba(155, 136, 255, 0.05) 100%);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu__card:nth-child(odd):last-child {
    grid-column: 1 / -1;
}

.menu__card--charge {
    background: linear-gradient(135deg, rgba(245, 211, 108, 0.15) 0%, rgba(255, 160, 108, 0.05) 100%);
    border-color: rgba(245, 211, 108, 0.3);
}

.menu__card:hover,
.menu__card:active {
    transform: translateY(-4px);
    border-color: rgba(111, 92, 255, 0.6);
    box-shadow: 0 8px 24px rgba(111, 92, 255, 0.25);
}

.menu__card--charge:hover,
.menu__card--charge:active {
    border-color: rgba(245, 211, 108, 0.6);
    box-shadow: 0 8px 24px rgba(245, 211, 108, 0.25);
}

.menu__card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(111, 92, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu__card:hover::before {
    opacity: 1;
}

.menu__card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.menu__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.menu__card-desc {
    font-size: 14px;
    color: #b8b5c8;
    margin-bottom: 16px;
}

.menu__card-cost {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 211, 108, 0.15);
    color: #f5d36c;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ==================== Buttons ==================== */
.btn-back {
    color: #b8b5c8;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: #ffffff;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 100%);
    color: #ffffff;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e8e6f0;
    border: 1px solid rgba(111, 92, 255, 0.3);
}

.btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 92, 255, 0.4);
}

.btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--large {
    padding: 16px 24px;
    font-size: 16px;
    margin-top: 24px;
}

/* ==================== Form ==================== */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__section {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(111, 92, 255, 0.05);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 16px;
}

.form__section-title {
    font-size: 18px;
    font-weight: 600;
    color: #f5d36c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 211, 108, 0.2);
}

.form__label {
    font-size: 14px;
    font-weight: 600;
    color: #e8e6f0;
}

.required {
    color: #ff6b9d;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: #6f5cff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(111, 92, 255, 0.1);
}

.form__input::placeholder {
    color: #6b6878;
}

.form__radio-group {
    display: flex;
    gap: 12px;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label input {
    display: none;
}

.radio-label span {
    color: #b8b5c8;
    font-size: 15px;
    font-weight: 500;
}

.radio-label:has(input:checked) {
    background: rgba(111, 92, 255, 0.2);
    border-color: #6f5cff;
}

.radio-label:has(input:checked) span {
    color: #ffffff;
}

/* ==================== Tarot Cards ==================== */
.tarot {
    padding: 20px 0;
}

.tarot__instruction {
    text-align: center;
    color: #b8b5c8;
    font-size: 15px;
    margin-bottom: 32px;
}

/* 모드 선택 버튼 */
.tarot__mode-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px auto 20px;
    max-width: 280px;
}

.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(111, 92, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: rgba(111, 92, 255, 0.1);
    border-color: rgba(111, 92, 255, 0.4);
    transform: translateY(-2px);
}

.mode-btn--active {
    background: rgba(111, 92, 255, 0.2);
    border-color: #6f5cff;
}

.mode-btn__icon {
    font-size: 20px;
}

.mode-btn__label {
    font-size: 12px;
    font-weight: 600;
    color: #e8e6f0;
    margin-top: 2px;
}

.mode-btn__desc {
    font-size: 10px;
    color: #9d95b8;
    font-weight: 400;
}

.tarot__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 0 4px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.tarot__card {
    width: 60px;
    height: 100px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    opacity: 0;
    animation: cardShuffle 0.6s ease-out forwards;
}

@keyframes cardShuffle {
    0% {
        opacity: 0;
        transform: translateY(-30px) translateX(var(--shuffle-x, 0)) rotate(var(--shuffle-rotate, 0));
    }
    50% {
        opacity: 0.5;
        transform: translateY(-15px) translateX(calc(var(--shuffle-x, 0) * 0.5)) rotate(calc(var(--shuffle-rotate, 0) * 0.5));
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}

.tarot__card:hover:not(.selected):not(.disabled) {
    transform: translateY(-8px);
}

.tarot__card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.tarot__card.selected .tarot__card-inner {
    transform: rotateY(180deg);
}

.tarot__card-back,
.tarot__card-front {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tarot__card-back {
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 100%);
    border: 2px solid rgba(245, 211, 108, 0.5);
    font-size: 24px;
    color: #f5d36c;
}

.tarot__card-front {
    border: 2px solid rgba(245, 211, 108, 0.8);
    transform: rotateY(180deg);
    color: #1e1b29;
    font-weight: bold;
    flex-direction: column;
    padding: 8px 4px;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.tarot__card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.tarot__card-front::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

.tarot__card-number {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tarot__card-emoji {
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    z-index: 1;
}

.tarot__card-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.tarot__card-name {
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tarot__card.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tarot__card.disabled:hover {
    transform: none;
}

/* 카드 확대 오버레이 (신중모드) */
.card-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

.card-zoom-overlay.active {
    background: rgba(0, 0, 0, 0.85);
}

.card-zoom-overlay.fade-out {
    background: rgba(0, 0, 0, 0);
}

.card-zoom {
    width: 200px;
    height: 340px;
    border-radius: 16px;
    position: relative;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-zoom-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: rotateY(0deg);
}

.card-zoom.active {
    opacity: 1;
    transform: scale(1);
}

.card-zoom.active .card-zoom-inner {
    transform: rotateY(180deg);
}

.card-zoom-overlay.fade-out .card-zoom {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.card-zoom-back,
.card-zoom-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    gap: 12px;
    overflow: hidden;
}

.card-zoom-back {
    background: linear-gradient(135deg, #2a2640 0%, #1e1b29 100%);
    border: 3px solid rgba(111, 92, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-zoom-back::before {
    content: '✦';
    font-size: 80px;
    color: rgba(111, 92, 255, 0.5);
    position: absolute;
}

.card-zoom-front {
    transform: rotateY(180deg);
    border: 3px solid rgba(245, 211, 108, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-zoom-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.card-zoom-front::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    pointer-events: none;
}

.card-zoom-front .tarot__card-number {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.card-zoom-front .tarot__card-emoji {
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    z-index: 1;
}

.card-zoom-front .tarot__card-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-zoom-front .tarot__card-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ==================== Result ==================== */
.result {
    padding: 20px 0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1e1b29;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
}

.spinner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner-ring:nth-child(1) {
    width: 100px;
    height: 100px;
    border-top-color: #6f5cff;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80px;
    height: 80px;
    border-right-color: #f5d36c;
    animation: spin 2s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    border-bottom-color: #9b88ff;
    animation: spin 1s linear infinite;
}

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

.loading-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 15px;
    color: #b8b5c8;
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.result__card {
    background: linear-gradient(135deg, rgba(111, 92, 255, 0.1) 0%, rgba(155, 136, 255, 0.05) 100%);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 16px;
    padding: 28px 24px;
}

.result__content {
    font-size: 15px;
    line-height: 1.8;
    color: #e8e6f0;

    /* 텍스트 선명도 향상 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.result__content p {
    margin-bottom: 16px;
}

.result__content strong {
    color: #f5d36c;
    font-weight: 600;
}

.result__section {
    margin-bottom: 24px;
}

.result__section-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.3);
}

.result__card p {
    font-size: 18px;
}

/* ==================== Modal (중첩 지원) ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal--active {
    display: block;
    opacity: 1;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #2a2638;
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.modal__icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.modal__icon--info {
    color: #6f5cff;
}

.modal__icon--success {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal__icon--warning {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal__icon--error {
    color: #f44336;
    background: rgba(244, 67, 54, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal__title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.modal__message {
    font-size: 15px;
    color: #b8b5c8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal__text {
    font-size: 15px;
    color: #b8b5c8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal__buttons {
    display: flex;
    gap: 8px;
}

.modal__buttons button {
    flex: 1;
}

.modal__btn-cancel {
    flex: 1;
}

.modal__btn-confirm {
    flex: 1;
}

/* ==================== Business Info Modal ==================== */
.business-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.business-modal--active {
    display: flex;
}

.business-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.business-modal__container {
    position: relative;
    background: #2a2638;
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpFade 0.3s ease;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
}

.business-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.business-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b5c8;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-modal__close:hover {
    background: rgba(111, 92, 255, 0.2);
    color: #e8e6f0;
}

.business-modal__body {
    padding: 24px 20px;
    overflow-y: auto;
}

.business-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.business-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.business-info-item__label {
    font-size: 13px;
    color: #9b88ff;
    font-weight: 600;
}

.business-info-item__value {
    font-size: 15px;
    color: #e8e6f0;
    line-height: 1.5;
}

/* ==================== Responsive ==================== */
@media (min-width: 431px) and (max-width: 768px) {
    body {
        background: #1e1b29;
    }

    .header__container,
    .view,
    .landing,
    .charge,
    .my-page {
        max-width: 100%;
        padding-left: 32px;
        padding-right: 32px;
    }

    .bottom-nav {
        max-width: 100%;
        width: 100%;
    }
}

/* 데스크톱 (769px 이상) */
@media (min-width: 769px) {
    body {
        background: #16141f;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 680px;
        height: 100%;
        background: #1e1b29;
        z-index: -1;
    }

    .header {
        display: flex;
        justify-content: center;
    }

    .header__container {
        max-width: 680px;
        width: 100%;
    }

    .view,
    .landing,
    .charge,
    .my-page {
        max-width: 680px;
        margin: 0 auto;
    }

    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 680px;
        width: 100%;
    }
}

/* ==================== 이용권 구매 페이지 ==================== */
.charge {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 40px;
    min-height: calc(100vh - 60px);
}

/* 현재 잔액 */
.charge-balance {
    background: linear-gradient(135deg, rgba(111, 92, 255, 0.15) 0%, rgba(155, 136, 255, 0.1) 100%);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.charge-balance__label {
    font-size: 14px;
    color: #9d95b8;
    margin-bottom: 8px;
}

.charge-balance__amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 700;
    color: #f5d36c;
}

.charge-balance__amount .point-icon {
    font-size: 28px;
}

/* 이용권 구매 패키지 섹션 */
.charge-packages {
    margin-bottom: 32px;
}

.charge-packages__title {
    font-size: 18px;
    font-weight: 600;
    color: #e8e6f0;
    margin-bottom: 16px;
}

.package-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-item:hover {
    background: rgba(111, 92, 255, 0.1);
    border-color: rgba(111, 92, 255, 0.4);
}

.package-item--selected {
    background: rgba(111, 92, 255, 0.2);
    border-color: #6f5cff;
}

.package-item__header {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.package-item:hover .package-item__header {
    transform: translateY(-2px);
}

.package-item--popular {
    border-color: #f5d36c;
}

.package-item--popular::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #f5d36c, #6f5cff);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.package-item__badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #f5d36c, #ffb347);
    color: #1e1b29;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}

.package-item__points {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 600;
    color: #e8e6f0;
}

.package-item__points .point-icon {
    color: #f5d36c;
    font-size: 18px;
}

.package-item__price {
    font-size: 16px;
    font-weight: 500;
    color: #9d95b8;
}

.package-item__bonus {
    position: absolute;
    bottom: 3px;
    left: 20px;
    font-size: 14px;
    color: #f5d36c;
    font-weight: 600;
}

.package-item__check {
    position: absolute;
    top: 50%;
    right: 90px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(111, 92, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.3s ease;
}

.package-item--selected .package-item__check {
    background: #6f5cff;
    border-color: #6f5cff;
    color: white;
}

.package-item__toggle {
    width: 100%;
    background: rgba(111, 92, 255, 0.1);
    border: none;
    border-top: 1px solid rgba(111, 92, 255, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9d95b8;
    font-size: 14px;
}

.package-item__toggle:hover {
    background: rgba(111, 92, 255, 0.15);
    color: #6f5cff;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #6f5cff;
}

.package-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.package-item__content--open {
    max-height: 500px;
}

.package-detail {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(111, 92, 255, 0.2);
}

.package-detail__section {
    margin-bottom: 20px;
}

.package-detail__section:last-child {
    margin-bottom: 0;
}

.package-detail__title {
    font-size: 15px;
    font-weight: 600;
    color: #f5d36c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-detail__list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
}

.package-detail__list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: #b8b3cc;
    line-height: 1.5;
}

.package-detail__list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #6f5cff;
    font-weight: bold;
}

.package-detail__list li:last-child {
    margin-bottom: 0;
}

/* 결제 수단 섹션 */
.charge-payment {
    margin-bottom: 32px;
}

.charge-payment__title {
    font-size: 18px;
    font-weight: 600;
    color: #e8e6f0;
    margin-bottom: 16px;
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: rgba(111, 92, 255, 0.1);
    border-color: rgba(111, 92, 255, 0.4);
    transform: translateY(-2px);
}

.payment-item--selected {
    background: rgba(111, 92, 255, 0.2);
    border-color: #6f5cff;
}

.payment-item__icon {
    font-size: 18px;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(111, 92, 255, 0.2);
}

.payment-item__icon--kakao {
    background: #fee500;
    color: #3c1e1e;
}

.payment-item__icon--naver {
    background: #03c75a;
    color: white;
}

.payment-item__icon--toss {
    background: #0064ff;
    color: white;
}

.payment-item__icon--inicis {
    background: #1e3a8a;
    color: white;
}

.payment-item__icon--kcp {
    background: #1e3a8a;
    color: white;
}

.payment-item__name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #e8e6f0;
}

.payment-item__check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(111, 92, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.3s ease;
}

.payment-item--selected .payment-item__check {
    background: #6f5cff;
    border-color: #6f5cff;
    color: white;
}

/* 이용권 구매 액션 버튼 */
.charge-actions {
    margin-top: 32px;
}

.charge-actions .btn--large {
    width: 100%;
}

/* 헤더 뒤로가기 버튼 */
.header__back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8e6f0;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.header__back:hover {
    background: rgba(111, 92, 255, 0.2);
}

.header__title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #e8e6f0;
}

/* 성공 모달 */
.modal__content--success {
    text-align: center;
}

.modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

/* ==================== 공유 버튼 (플로팅) ==================== */
.btn-share {
    position: fixed;
    bottom: 32px;
    right: 20px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 100%);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(111, 92, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 90;
    transition: all 0.3s ease;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 92, 255, 0.6);
}

.btn-share:active {
    transform: translateY(0);
}

.btn-share__icon {
    font-size: 24px;
    line-height: 1;
}

.btn-share__text {
    font-size: 10px;
    font-weight: 500;
    color: white;
    line-height: 1;
}

@media (max-width: 360px) {
    .btn-share {
        bottom: 24px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .btn-share__icon {
        font-size: 20px;
    }

    .btn-share__text {
        font-size: 9px;
    }
}

/* 약관 동의 */
.charge-terms {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-agree {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-agree__item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #e8e6f0;
    padding: 8px 0;
}

.terms-agree__item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6f5cff;
}

.terms-agree__item--sub {
    padding-left: 30px;
    font-size: 13px;
    color: #b8b5c8;
    position: relative;
}

.terms-agree__item:first-child {
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 12px;
}

.terms-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.terms-detail-btn {
    margin-left: auto;
    padding: 4px 12px;
    font-size: 12px;
    color: #6f5cff;
    background: transparent;
    border: 1px solid #6f5cff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-detail-btn:hover {
    background: rgba(111, 92, 255, 0.1);
}

/* ==================== 정책 모달 (독립적인 클래스명) ==================== */
/* 정책 모달 래퍼 */
.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.policy-modal--active {
    display: flex;
}

/* 정책 모달 배경 */
.policy-modal__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2001;
}

/* 정책 모달 박스 */
.policy-modal__box {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    background: #1e1b29;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    z-index: 2002;
    overflow: hidden;
}

/* 정책 모달 헤더 */
.policy-modal__header {
    padding: 24px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.policy-modal__header-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e8e6f0;
}

/* 정책 모달 본문 (스크롤 영역) */
.policy-modal__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 20px;
    min-height: 0;
}

/* 스크롤바 스타일 */
.policy-modal__body::-webkit-scrollbar {
    width: 6px;
}

.policy-modal__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.policy-modal__body::-webkit-scrollbar-thumb {
    background: rgba(111, 92, 255, 0.5);
    border-radius: 3px;
}

.policy-modal__body::-webkit-scrollbar-thumb:hover {
    background: rgba(111, 92, 255, 0.7);
}

/* 정책 섹션 */
.policy-modal__section {
    margin-bottom: 28px;
}

.policy-modal__section:last-child {
    margin-bottom: 0;
}

.policy-modal__section-title {
    color: #6f5cff;
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.policy-modal__section-text {
    color: #b8b5c8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.policy-modal__section-text strong {
    color: #e8e6f0;
    font-weight: 600;
}

.policy-modal__section-list {
    padding-left: 20px;
    margin: 10px 0;
    list-style: disc;
}

.policy-modal__section-list li {
    color: #b8b5c8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* 정책 모달 푸터 */
.policy-modal__footer {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.policy-modal__footer .btn {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
}

/* ==================== My Page ==================== */
.my-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 40px;
    min-height: calc(100vh - 60px);
}

/* 프로필 섹션 */
.profile-section {
    margin-bottom: 32px;
}

.profile-card {
    background: linear-gradient(135deg, rgba(111, 92, 255, 0.15) 0%, rgba(155, 136, 255, 0.1) 100%);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-card__avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-card__avatar-icon {
    font-size: 32px;
    color: white;
}

.profile-card__info {
    flex: 1;
    min-width: 0;
}

.profile-card__name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-card__email {
    font-size: 14px;
    color: #b8b5c8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 포인트 카드 */
.point-card {
    background: linear-gradient(135deg, rgba(245, 211, 108, 0.15) 0%, rgba(255, 160, 108, 0.1) 100%);
    border: 1px solid rgba(245, 211, 108, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.point-card__label {
    font-size: 14px;
    color: #9d95b8;
    margin-bottom: 8px;
}

.point-card__amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 700;
    color: #f5d36c;
    margin-bottom: 16px;
}

.point-card__amount .point-icon {
    font-size: 28px;
}

.point-card__charge-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6f5cff 0%, #9b88ff 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.point-card__charge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 92, 255, 0.4);
}

/* 섹션 타이틀 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #e8e6f0;
    margin-bottom: 12px;
    padding-left: 4px;
}

/* 이력 섹션 */
.history-section {
    margin-bottom: 32px;
}

/* 고객지원 섹션 */
.support-section {
    margin-bottom: 32px;
}

/* 메뉴 리스트 */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.menu-list__item:hover {
    background: rgba(111, 92, 255, 0.1);
    border-color: rgba(111, 92, 255, 0.4);
    transform: translateX(4px);
}

.menu-list__icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.menu-list__text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #e8e6f0;
}

.menu-list__arrow {
    font-size: 18px;
    color: #6f5cff;
}

/* 계정 관리 섹션 */
.account-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.account-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.account-btn--logout {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(111, 92, 255, 0.3);
    color: #e8e6f0;
}

.account-btn--logout:hover {
    background: rgba(111, 92, 255, 0.15);
    border-color: rgba(111, 92, 255, 0.5);
}

.account-btn--delete {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ff6b6b;
}

.account-btn--delete:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}

/* ==================== History Modal ==================== */
.history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.history-modal--active {
    display: flex;
}

.history-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.history-modal__container {
    position: relative;
    background: #2a2638;
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpFade 0.3s ease;
}

.history-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
    flex-shrink: 0;
}

.history-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.history-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b5c8;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-modal__close:hover {
    background: rgba(111, 92, 255, 0.2);
    color: #e8e6f0;
}

.history-modal__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 이력 리스트 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-empty {
    text-align: center;
    color: #9d95b8;
    padding: 40px 20px;
    font-size: 15px;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.history-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-item__date {
    font-size: 13px;
    color: #9d95b8;
}

.history-item__badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.history-item__badge--complete {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.history-item__body {
    margin-bottom: 12px;
}

.history-item__title {
    font-size: 15px;
    font-weight: 600;
    color: #e8e6f0;
    margin-bottom: 6px;
}

.history-item__detail {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #b8b5c8;
}

.history-item__method {
    color: #9d95b8;
}

.history-item__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid rgba(111, 92, 255, 0.15);
}

.history-item__amount {
    font-size: 16px;
    font-weight: 700;
    color: #f5d36c;
}

.history-item__cost {
    font-size: 15px;
    font-weight: 600;
    color: #ff6b9d;
}

/* ==================== Inquiry Modal ==================== */
.inquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.inquiry-modal--active {
    display: flex;
}

.inquiry-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.inquiry-modal__container {
    position: relative;
    background: #2a2638;
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpFade 0.3s ease;
}

.inquiry-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
    flex-shrink: 0;
}

.inquiry-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.inquiry-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b5c8;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inquiry-modal__close:hover {
    background: rgba(111, 92, 255, 0.2);
    color: #e8e6f0;
}

.inquiry-modal__body {
    padding: 24px 20px;
    overflow-y: auto;
    flex: 1;
}

/* 문의 폼 */
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inquiry-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquiry-form__label {
    font-size: 14px;
    font-weight: 600;
    color: #e8e6f0;
}

.inquiry-form__select,
.inquiry-form__textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.inquiry-form__select:focus,
.inquiry-form__textarea:focus {
    outline: none;
    border-color: #6f5cff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(111, 92, 255, 0.1);
}

.inquiry-form__select option {
    background: #2a2638;
    color: #e8e6f0;
}

.inquiry-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.inquiry-form__textarea::placeholder {
    color: #6b6878;
}

.capture-mode * {
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui !important;
    font-weight: 500 !important;
}

/* ==================== Toast Notification ==================== */
.toast-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: calc(100% - 40px);
    max-width: 420px;
}

.toast-container--top {
    top: 20px;
}

.toast-container--bottom {
    bottom: 20px;
}

.toast {
    background: linear-gradient(135deg, #2a2640 0%, #1e1b29 100%);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top position animation */
.toast--top {
    transform: translateY(-20px);
}

.toast--top.toast--show {
    opacity: 1;
    transform: translateY(0);
}

.toast--top.toast--hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Bottom position animation */
.toast--bottom {
    transform: translateY(20px);
}

.toast--bottom.toast--show {
    opacity: 1;
    transform: translateY(0);
}

.toast--bottom.toast--hide {
    opacity: 0;
    transform: translateY(20px);
}

/* Toast 타입별 스타일 */
.toast--info {
    border-color: rgba(111, 92, 255, 0.5);
}

.toast--success {
    border-color: rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #2a3e2c 0%, #1e2b1f 100%);
}

.toast--warning {
    border-color: rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #3e362a 0%, #2b261e 100%);
}

.toast--error {
    border-color: rgba(244, 67, 54, 0.5);
    background: linear-gradient(135deg, #3e2a2a 0%, #2b1e1e 100%);
}

/* Toast 아이콘 */
.toast__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 50%;
    background: rgba(111, 92, 255, 0.2);
}

.toast--info .toast__icon {
    background: rgba(111, 92, 255, 0.2);
    color: #6f5cff;
}

.toast--success .toast__icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.toast--warning .toast__icon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.toast--error .toast__icon {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Toast 메시지 */
.toast__message {
    flex: 1;
    color: #e8e6f0;
    font-size: 14px;
    line-height: 1.5;
    user-select: none;
}

/* 클릭 가능한 Toast */
.toast--clickable .toast__message {
    cursor: pointer;
    transition: all 0.2s;
}

.toast--clickable:hover .toast__message {
    color: #f5d36c;
}

.toast--clickable:active .toast__message {
    transform: scale(0.98);
}

/* Toast 닫기 버튼 */
.toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9e95c7;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 4px;
}

.toast__close:hover {
    background: rgba(111, 92, 255, 0.2);
    color: #e8e6f0;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .toast-container {
        width: calc(100% - 32px);
    }

    .toast-container--top {
        top: 16px;
    }

    .toast-container--bottom {
        bottom: 16px;
    }

    .toast {
        padding: 12px 14px;
    }

    .toast__icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .toast__message {
        font-size: 13px;
    }
}

.d-none {
 display: none;
}

/* ==================== Gift Tickets Modal ==================== */
.gift-tickets-modal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gift-tickets-modal__header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
}

.gift-tickets-modal__header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f5d36c;
    margin-bottom: 8px;
}

.gift-tickets-modal__desc {
    font-size: 14px;
    color: #b0adbf;
    line-height: 1.5;
}

.gift-tickets-modal__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

/* Gift Ticket Card */
.gift-ticket-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gift-ticket-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(111, 92, 255, 0.4);
}

.gift-ticket-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gift-ticket-card__icon {
    font-size: 32px;
    flex-shrink: 0;
}

.gift-ticket-card__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.gift-ticket-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #e8e6f0;
    margin: 0;
}

.gift-ticket-card__sender {
    font-size: 13px;
    color: #9b88ff;
    margin: 0;
}

.gift-ticket-card__time {
    font-size: 12px;
    color: #6b6878;
    margin: 0;
}

.gift-ticket-card__actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.gift-ticket-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gift-ticket-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 수락 완료 상태 */
.btn--success {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.btn--success:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}

/* 스크롤바 스타일 */
.gift-tickets-modal__list::-webkit-scrollbar {
    width: 6px;
}

.gift-tickets-modal__list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.gift-tickets-modal__list::-webkit-scrollbar-thumb {
    background: rgba(111, 92, 255, 0.3);
    border-radius: 3px;
}

.gift-tickets-modal__list::-webkit-scrollbar-thumb:hover {
    background: rgba(111, 92, 255, 0.5);
}

/* ==================== Compatibility Result Styles ==================== */
.couple-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.person-info {
    padding: 16px;
    background: rgba(111, 92, 255, 0.1);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
}

.person-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #f5d36c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 211, 108, 0.2);
}

.person-info p {
    font-size: 14px;
    color: #b8b5c8;
    margin-bottom: 6px;
}

.person-info p strong {
    color: #e8e6f0;
}

.compatibility-score {
    font-size: 24px;
    color: #f5d36c;
    margin: 12px 0;
    text-align: center;
}

.compatibility-keyword {
    font-size: 16px;
    color: #9b88ff;
    margin: 12px 0;
    padding: 12px;
    background: rgba(111, 92, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* ==================== Selected Cards Display ==================== */
.selected-cards {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(245, 211, 108, 0.08) 0%, rgba(111, 92, 255, 0.08) 100%);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 16px;
}

.selected-cards__title {
    font-size: 16px;
    font-weight: 600;
    color: #f5d36c;
    margin-bottom: 16px;
    text-align: center;
}

.selected-cards__container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.selected-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(30, 27, 41, 0.5);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
    max-width: 120px;
    transition: transform 0.3s ease;
}

.selected-card:hover {
    transform: translateY(-4px);
}

.selected-card__image {
    width: 80px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.selected-card__name {
    font-size: 13px;
    font-weight: 500;
    color: #e8e6f0;
    text-align: center;
    line-height: 1.3;
}

/* 문의내역 리스트 */
.inquiry-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inquiry-history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inquiry-history-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.inquiry-history-item__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inquiry-history-item__date {
    font-size: 13px;
    color: #8b89a0;
}

.inquiry-history-item__type {
    font-size: 12px;
    color: #6f5cff;
    font-weight: 500;
}

.inquiry-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.inquiry-badge--answered {
    background: rgba(111, 92, 255, 0.15);
    color: #6f5cff;
}

.inquiry-badge--pending {
    background: rgba(245, 211, 108, 0.15);
    color: #f5d36c;
}

.inquiry-history-item__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquiry-history-item__title {
    font-size: 15px;
    font-weight: 600;
    color: #e8e6f0;
    line-height: 1.4;
}

.inquiry-history-item__content {
    font-size: 14px;
    color: #b0adbf;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 관리자 답글 */
.inquiry-reply {
    margin-top: 8px;
    padding: 14px;
    background: rgba(111, 92, 255, 0.08);
    border-left: 3px solid #6f5cff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inquiry-reply__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inquiry-reply__icon {
    font-size: 16px;
}

.inquiry-reply__label {
    font-size: 13px;
    font-weight: 600;
    color: #6f5cff;
}

.inquiry-reply__date {
    font-size: 12px;
    color: #8b89a0;
    margin-left: auto;
}

.inquiry-reply__content {
    font-size: 14px;
    color: #e8e6f0;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ==================== Used Ticket Table ==================== */
.ticket-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ticket-table thead {
    background: rgba(111, 92, 255, 0.15);
}

.ticket-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #e8e6f0;
    border-bottom: 2px solid rgba(111, 92, 255, 0.3);
    white-space: nowrap;
}

.ticket-table tbody tr {
    border-bottom: 1px solid rgba(111, 92, 255, 0.1);
    transition: background 0.2s ease;
}

.ticket-table tbody tr:hover {
    background: rgba(111, 92, 255, 0.05);
}

.ticket-table tbody tr:last-child {
    border-bottom: none;
}

.ticket-table td {
    padding: 14px 10px;
    color: #b0adbf;
    vertical-align: middle;
}

.ticket-table td:first-child {
    font-weight: 600;
    color: #e8e6f0;
}

.ticket-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ticket-status--used {
    background: rgba(139, 137, 160, 0.2);
    color: #8b89a0;
}

.payment-id {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #6f5cff;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .ticket-table {
        font-size: 12px;
    }

    .ticket-table th,
    .ticket-table td {
        padding: 10px 6px;
    }

    .payment-id {
        max-width: 100px;
    }
}

/* ==================== 만세력 정보 ==================== */

.manselyeok-area {
    margin-bottom: 24px;
}

.manselyeok {
    background: rgba(111, 92, 255, 0.05);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 16px;
    padding: 24px 20px;
    margin: 0 0px 20px;
}

.manselyeok__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 24px;
}

.manselyeok__header:hover .manselyeok__title {
    color: #ffd97a;
}

.manselyeok__title {
    font-size: 22px;
    font-weight: 600;
    color: #f5d36c;
    margin: 0;
    transition: color 0.2s ease;
}

.manselyeok__toggle {
    background: none;
    border: none;
    color: #f5d36c;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.manselyeok__toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.manselyeok__toggle.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.manselyeok__content {
    /*max-height: 10000px;
    overflow: hidden;*/
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.manselyeok__content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* 사주 기둥 */
.manselyeok__pillars {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pillar {
    flex: 1;
    min-width: 70px;
    background: rgba(30, 27, 41, 0.6);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.pillar__label {
    font-size: 13px;
    color: #a0a0b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.pillar__hanja {
    font-size: 26px;
    font-weight: 700;
    color: #f5d36c;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.pillar__hangul {
    font-size: 15px;
    color: #c8c6d8;
    margin-bottom: 6px;
}

.pillar__twelve {
    font-size: 13px;
    color: #fbbf24;
    margin-bottom: 6px;
    font-weight: 500;
}

.pillar__sipseong {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #8b89a0;
}

.pillar__sipseong span {
    background: rgba(111, 92, 255, 0.15);
    padding: 2px 4px;
    border-radius: 4px;
}

/* 섹션 */
.manselyeok__section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(111, 92, 255, 0.15);
}

.manselyeok__section-title {
    font-size: 18px;
    font-weight: 600;
    color: #e8e6f0;
    margin-bottom: 16px;
}

/* 오행 분포 */
.five-elements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.five-element {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.five-element__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
}

.five-element__name {
    font-weight: 500;
    color: #e8e6f0;
    min-width: 50px;
}

.five-element__star {
    color: #f5d36c;
    font-size: 14px;
    letter-spacing: 1px;
}

.five-element__pct {
    color: #a0a0b8;
    font-size: 14px;
    min-width: 45px;
    text-align: right;
}

.five-element__bar-bg {
    height: 8px;
    background: rgba(30, 27, 41, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.five-element__bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 정보 그리드 */
.manselyeok__info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item {
    background: rgba(30, 27, 41, 0.4);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.info-item__label {
    font-size: 13px;
    color: #a0a0b8;
    margin-bottom: 6px;
}

.info-item__value {
    font-size: 17px;
    font-weight: 600;
    color: #6f5cff;
}

.info-item__score {
    font-size: 13px;
    color: #a0a0b8;
    margin-top: 4px;
}

/* 기본 정보 요약 */
.manselyeok__summary {
    background: rgba(111, 92, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #c8c6d8;
}

.summary-item__icon {
    font-size: 20px;
}

.summary-item__text {
    font-weight: 500;
}

/* 십성 분포 */
.sipseong-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sipseong-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sipseong-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
}

.sipseong-item__name {
    font-weight: 500;
    color: #e8e6f0;
    min-width: 50px;
}

.sipseong-item__count {
    color: #f5d36c;
    font-size: 14px;
    font-weight: 600;
}

.sipseong-item__pct {
    color: #a0a0b8;
    font-size: 14px;
    min-width: 45px;
    text-align: right;
}

.sipseong-item__bar-bg {
    height: 8px;
    background: rgba(30, 27, 41, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.sipseong-item__bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 신살 v2 */
.sinsal-v2-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #a0a0b8;
}
.sinsal-v2-summary__present { color: #f5d36c; }
.sinsal-v2-summary__divider { color: rgba(111, 92, 255, 0.4); }

.sinsal-v2-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.sinsal-v2-filter__btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(111, 92, 255, 0.3);
    background: transparent;
    color: #a0a0b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.sinsal-v2-filter__btn--active {
    background: #6f5cff;
    color: #fff;
    border-color: #6f5cff;
}

.sinsal-v2-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sinsal-v2-list--present-only .sinsal-v2-item[data-sinsal-present="0"] {
    display: none;
}

/* 신살 아이템 (details/summary) */
.sinsal-v2-item {
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 10px;
    background: rgba(30, 27, 41, 0.45);
    overflow: hidden;
    transition: border-color 0.2s;
}
.sinsal-v2-item--present {
    border-color: rgba(245, 211, 108, 0.4);
}
.sinsal-v2-item[open] {
    border-color: rgba(111, 92, 255, 0.45);
}
.sinsal-v2-item--present[open] {
    border-color: rgba(245, 211, 108, 0.55);
}

.sinsal-v2-item__summary {
    list-style: none;
    padding: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.sinsal-v2-item__summary::-webkit-details-marker { display: none; }
.sinsal-v2-item__summary::marker { display: none; content: ''; }

.sinsal-v2-item__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sinsal-v2-item__badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sinsal-v2__code {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(111, 92, 255, 0.15);
    color: #a0a0b8;
}
.sinsal-v2__name {
    font-size: 15px;
    font-weight: 700;
    color: #e8e6f0;
}

/* 배지 공통 */
.sinsal-v2__badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.sinsal-v2__badge--present {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}
.sinsal-v2__badge--absent {
    background: rgba(160, 160, 184, 0.12);
    color: #888;
}
.sinsal-v2__badge--grade {
    font-weight: 600;
}
.sinsal-v2__badge--grade-s {
    background: rgba(245, 211, 108, 0.18);
    color: #f5d36c;
}
.sinsal-v2__badge--grade-a {
    background: rgba(111, 92, 255, 0.18);
    color: #9b8aff;
}
.sinsal-v2__badge--grade-b {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}
.sinsal-v2__badge--grade-c {
    background: rgba(160, 160, 184, 0.12);
    color: #888;
}

.sinsal-v2-item__position {
    font-size: 12px;
    color: #888;
}

/* 상세 본문 */
.sinsal-v2-item__body {
    padding: 0 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(111, 92, 255, 0.1);
    padding-top: 12px;
}

/* 초보자 해설 */
.sinsal-v2-explain {
    background: rgba(111, 92, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
}
.sinsal-v2-explain__label {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}
.sinsal-v2-explain__text {
    font-size: 13px;
    color: #c8c6d8;
    line-height: 1.65;
}
.sinsal-v2-explain__tip {
    font-size: 13px;
    color: #f5d36c;
    line-height: 1.65;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(245, 211, 108, 0.2);
}

/* 키워드 그리드 */
.sinsal-v2-keywords {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.sinsal-v2-keyword {
    background: rgba(30, 27, 41, 0.5);
    border: 1px solid rgba(111, 92, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sinsal-v2-keyword__label {
    font-size: 11px;
    color: #888;
}
.sinsal-v2-keyword__value {
    font-size: 13px;
    font-weight: 600;
    color: #e8e6f0;
    line-height: 1.4;
}

/* 조합 태그 */
.sinsal-v2-combos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sinsal-v2-combos__label {
    font-size: 12px;
    font-weight: 600;
    color: #a0a0b8;
}
.sinsal-v2-combos__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sinsal-v2-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.4;
}
.sinsal-v2-tag--tengod {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}
.sinsal-v2-tag--shinsal {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

/* 세부 지표 */
.sinsal-v2-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sinsal-v2-metrics__label {
    font-size: 12px;
    font-weight: 600;
    color: #a0a0b8;
}
.sinsal-v2-metrics__chart {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}
.sinsal-v2-radar {
    display: block;
    max-width: 100%;
    height: auto;
}
.sinsal-v2-metrics__grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sinsal-v2-metric {
    background: rgba(30, 27, 41, 0.4);
    border-radius: 6px;
    padding: 8px 10px;
}
.sinsal-v2-metric__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.sinsal-v2-metric__name {
    font-size: 13px;
    font-weight: 600;
    color: #e8e6f0;
}
.sinsal-v2-metric__desc {
    font-size: 10px;
    color: #888;
}
.sinsal-v2-metric__bar-bg {
    height: 5px;
    background: rgba(111, 92, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.sinsal-v2-metric__bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* 공망 정보 */
.gongmang-info {
    background: rgba(30, 27, 41, 0.4);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    padding: 12px;
}

.gongmang-chars {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.gongmang-char {
    font-size: 18px;
    font-weight: 600;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
}

/* 띠별 궁합 */
.zodiac-compatibility {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zodiac-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zodiac-group__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.zodiac-group__title--best {
    color: #f5d36c;
}

.zodiac-group__title--good {
    color: #4ade80;
}

.zodiac-group__title--caution {
    color: #fbbf24;
}

.zodiac-group__title--bad {
    color: #f87171;
}

.zodiac-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zodiac-badge {
    background: rgba(30, 27, 41, 0.4);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zodiac-badge--best {
    border-color: rgba(245, 211, 108, 0.5);
    background: rgba(245, 211, 108, 0.05);
    color: #f5d36c;
}

.zodiac-badge--good {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.05);
    color: #4ade80;
}

.zodiac-badge--caution {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.05);
    color: #fbbf24;
}

.zodiac-badge--bad {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.05);
    color: #f87171;
}

.zodiac-relation {
    font-size: 12px;
    color: #a0a0b8;
    font-weight: 400;
}

/* 길흉사 정보 */
.lucky-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lucky-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(30, 27, 41, 0.4);
    border-radius: 8px;
}

.lucky-info__label {
    font-size: 15px;
    color: #a0a0b8;
}

.lucky-info__value {
    font-size: 16px;
    font-weight: 600;
}

.lucky-info__value--good {
    color: #4ade80;
}

.lucky-info__value--bad {
    color: #f87171;
}

/* 대운 정보 */
.big-luck-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.big-luck-item {
    background: rgba(30, 27, 41, 0.4);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
}

.big-luck-item--current {
    background: rgba(111, 92, 255, 0.15);
    border-color: rgba(111, 92, 255, 0.5);
}

.big-luck-item__pillar {
    font-size: 22px;
    font-weight: 700;
    color: #f5d36c;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.big-luck-item__kor {
    font-size: 14px;
    color: #c8c6d8;
    margin-bottom: 6px;
}

.big-luck-item__age {
    font-size: 13px;
    color: #a0a0b8;
    margin-bottom: 2px;
}

.big-luck-item__year {
    font-size: 12px;
    color: #8b89a0;
}

.big-luck-item__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6f5cff;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==================== 만세력 고도화 v2 ==================== */

/* 요약 배지 */
.manse-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.manse-badge {
    display: inline-block;
    background: rgba(111, 92, 255, 0.15);
    border: 1px solid rgba(111, 92, 255, 0.3);
    color: #c8c6d8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
}

.manse-badge--accent {
    background: rgba(245, 211, 108, 0.15);
    border-color: rgba(245, 211, 108, 0.4);
    color: #f5d36c;
}

/* 만세력 테이블 */
.manse-table-wrap {
    overflow-x: auto;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.manse-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.manse-table th,
.manse-table td {
    text-align: center;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(111, 92, 255, 0.12);
}

.manse-table thead th {
    background: rgba(111, 92, 255, 0.1);
    color: #a0a0b8;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 4px;
}

.manse-table__day-head {
    color: #f5d36c !important;
}

.manse-table__label {
    font-size: 13px;
    font-weight: 600;
    color: #a0a0b8;
    text-align: left !important;
    padding-left: 8px !important;
    width: 60px;
    white-space: nowrap;
}

.manse-table__hanja {
    font-size: 24px;
    font-weight: 700;
    color: #e8e6f0;
    line-height: 1.3;
}

.manse-table__hangul-sub {
    font-size: 13px;
    color: #8b89a0;
    font-weight: 400;
    margin-left: 2px;
}

.manse-table__sipseong {
    font-size: 14px;
    color: #a0a0b8;
    padding: 6px 4px !important;
}

.manse-table__twelve {
    font-size: 14px;
    color: #fbbf24;
    padding: 6px 4px !important;
}

.manse-table__day-cell {
    color: #f5d36c !important;
}

.manse-table__day-cell .manse-table__hangul-sub {
    color: rgba(245, 211, 108, 0.6);
}

.manse-table__note {
    text-align: center;
    font-size: 13px;
    color: #8b89a0;
    margin-top: 10px;
}

.manse-table__note strong {
    color: #f5d36c;
}

/* 핵심 분석 - Core Grid */
.core-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.core-item {
    background: rgba(30, 27, 41, 0.5);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}

.core-item__label {
    font-size: 13px;
    color: #a0a0b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.core-item__value {
    font-size: 18px;
    font-weight: 700;
    color: #6f5cff;
}

.core-item__value--highlight {
    color: #f5d36c;
}

.core-item__sub {
    font-size: 12px;
    color: #8b89a0;
    margin-top: 4px;
}

/* 강약 판정 근거 */
.strength-detail {
    background: rgba(30, 27, 41, 0.4);
    border: 1px solid rgba(111, 92, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.strength-detail__summary {
    cursor: pointer;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #c8c6d8;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strength-detail__summary::-webkit-details-marker {
    display: none;
}

.strength-detail__summary::after {
    content: '▶';
    font-size: 12px;
    color: #8b89a0;
    transition: transform 0.2s ease;
}

details[open] .strength-detail__summary::after {
    transform: rotate(90deg);
}

.strength-detail__body {
    padding: 0 16px 14px;
}

.strength-detail__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #a0a0b8;
    border-bottom: 1px solid rgba(111, 92, 255, 0.08);
}

.strength-detail__row:last-child {
    border-bottom: none;
}

.strength-detail__row span:last-child {
    font-weight: 600;
    color: #c8c6d8;
}

.strength-detail__threshold {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(111, 92, 255, 0.08);
    border-radius: 6px;
    font-size: 13px;
    color: #8b89a0;
    text-align: center;
}

/* 합화 전/후 용신 비교 */
.yongshin-compare {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(30, 27, 41, 0.3);
    border: 1px solid rgba(111, 92, 255, 0.15);
    border-radius: 10px;
}

.yongshin-compare__title {
    font-size: 15px;
    font-weight: 700;
    color: #c8c6d8;
    text-align: center;
    margin-bottom: 12px;
}

.yongshin-compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.yongshin-compare__item {
    background: rgba(30, 27, 41, 0.5);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.yongshin-compare__item--after {
    background: rgba(111, 92, 255, 0.1);
    border: 1px solid rgba(111, 92, 255, 0.3);
}

.yongshin-compare__label {
    font-size: 12px;
    color: #8b89a0;
    margin-bottom: 4px;
}

.yongshin-compare__item--after .yongshin-compare__label {
    color: #6f5cff;
}

.yongshin-compare__value {
    font-size: 16px;
    font-weight: 700;
    color: #c8c6d8;
}

.yongshin-compare__item--after .yongshin-compare__value {
    color: #f5d36c;
}

.yongshin-compare__note {
    font-size: 13px;
    color: #8b89a0;
    text-align: center;
    margin-top: 10px;
}

/* 십성 분포 래퍼 */
.sipseong-wrap {
    margin-top: 16px;
}

.sipseong-wrap__title {
    font-size: 15px;
    font-weight: 600;
    color: #c8c6d8;
    margin-bottom: 12px;
}

/* 오행 합화 전/후 비교 */
.five-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.five-compare__item {
    background: rgba(30, 27, 41, 0.5);
    border-radius: 8px;
    padding: 10px;
}

.five-compare__item--after {
    background: rgba(111, 92, 255, 0.08);
    border: 1px solid rgba(111, 92, 255, 0.2);
}

.five-compare__label {
    font-size: 13px;
    font-weight: 600;
    color: #a0a0b8;
    margin-bottom: 6px;
}

.five-compare__item--after .five-compare__label {
    color: #6f5cff;
}

.five-compare__values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 13px;
    color: #c8c6d8;
}

/* 오행 요약 라인 */
.five-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-top: 14px;
    font-size: 14px;
}

.five-summary__item { font-weight: 600; }
.five-summary__item--wood { color: #4ade80; }
.five-summary__item--fire { color: #f87171; }
.five-summary__item--earth { color: #fbbf24; }
.five-summary__item--metal { color: #e5e7eb; }
.five-summary__item--water { color: #60a5fa; }

/* ============ 알고리즘 엔진 리포트 ============ */
.engine-card {
    background: rgba(30, 27, 41, 0.5);
    border: 1px solid rgba(111, 92, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.engine-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.engine-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #c8c6d8;
}

.engine-card__detail {
    margin-bottom: 8px;
    font-size: 14px;
    color: #a0a0b8;
}

.engine-card__detail-label {
    font-weight: 600;
    color: #c8c6d8;
    margin-right: 6px;
}

.engine-tag {
    display: inline-block;
    background: rgba(111, 92, 255, 0.1);
    color: #a0a0b8;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.engine-tag--active {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.engine-tag--inactive {
    background: rgba(139, 137, 160, 0.1);
    color: #8b89a0;
}

.engine-tag--fail {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* 강약 전/후 비교 카드 */
.engine-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.engine-metric {
    background: rgba(30, 27, 41, 0.6);
    border: 1px solid rgba(111, 92, 255, 0.12);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
}

.engine-metric__label {
    font-size: 12px;
    color: #8b89a0;
    margin-bottom: 4px;
}

.engine-metric__value {
    font-size: 15px;
    font-weight: 700;
    color: #c8c6d8;
}

.engine-metric__value--primary {
    color: #6f5cff;
}

/* 변화 상태 플래그 */
.engine-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.engine-flag {
    font-size: 13px;
    color: #a0a0b8;
    background: rgba(30, 27, 41, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
}

/* 분석 실행 순서 */
.engine-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.engine-flow__step {
    background: rgba(111, 92, 255, 0.08);
    color: #c8c6d8;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* 관계 해석 정책 */
.engine-card__policy-name {
    font-size: 14px;
    color: #a0a0b8;
    margin-bottom: 10px;
}

.engine-card__policy-name strong {
    color: #6f5cff;
}

.engine-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.engine-tier {
    background: rgba(30, 27, 41, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
}

.engine-tier__label {
    font-size: 16px;
    font-weight: 700;
    color: #c8c6d8;
    margin-bottom: 4px;
}

.engine-tier__desc {
    font-size: 14px;
    color: #8b89a0;
    line-height: 1.5;
}

/* ============ 지지 관계 ============ */
.branch-rel {
    margin-bottom: 12px;
}

.branch-rel__label {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.branch-rel__label--good { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.branch-rel__label--bad { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.branch-rel__label--caution { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.branch-rel__label--neutral { background: rgba(111, 92, 255, 0.15); color: #6f5cff; }
.branch-rel__label--special { background: rgba(245, 211, 108, 0.15); color: #f5d36c; }

.branch-rel__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.branch-rel__chip {
    background: rgba(30, 27, 41, 0.5);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 15px;
    color: #c8c6d8;
    font-weight: 500;
}

.branch-rel__chip--good { border-color: rgba(74, 222, 128, 0.3); }
.branch-rel__chip--bad { border-color: rgba(248, 113, 113, 0.3); }
.branch-rel__chip--caution { border-color: rgba(251, 191, 36, 0.3); }
.branch-rel__chip--special { border-color: rgba(245, 211, 108, 0.3); }

.branch-rel__kor {
    font-size: 12px;
    color: #8b89a0;
}

.branch-rel__empty {
    text-align: center;
    color: #8b89a0;
    font-size: 15px;
    padding: 16px;
    background: rgba(30, 27, 41, 0.3);
    border-radius: 10px;
}

/* ============ 띠별 궁합 v2 ============ */
.zodiac-subtitle {
    font-size: 14px;
    color: #8b89a0;
    margin-bottom: 14px;
}

.zodiac-subtitle strong {
    color: #6f5cff;
}

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

.zodiac-card {
    background: rgba(30, 27, 41, 0.5);
    border: 1px solid rgba(111, 92, 255, 0.15);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.zodiac-card:active {
    transform: scale(0.97);
}

.zodiac-card--best {
    border-color: rgba(111, 92, 255, 0.5);
    background: rgba(111, 92, 255, 0.08);
}

.zodiac-card--good {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.05);
}

.zodiac-card--caution {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.05);
}

.zodiac-card--bad {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.05);
}

.zodiac-card--neutral {
    border-color: rgba(111, 92, 255, 0.15);
}

.zodiac-card__animal {
    font-size: 26px;
    margin-bottom: 4px;
}

.zodiac-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #e8e6f0;
    margin-bottom: 4px;
}

.zodiac-card__branch {
    font-size: 12px;
    color: #8b89a0;
    font-weight: 400;
}

.zodiac-card__relation {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.zodiac-card--best .zodiac-card__relation { background: rgba(111, 92, 255, 0.3); color: #c8b6ff; }
.zodiac-card--good .zodiac-card__relation { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.zodiac-card--caution .zodiac-card__relation { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.zodiac-card--bad .zodiac-card__relation { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.zodiac-card--neutral .zodiac-card__relation { background: rgba(111, 92, 255, 0.1); color: #a0a0b8; }

.zodiac-card__desc {
    font-size: 12px;
    color: #8b89a0;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 28px;
}

.zodiac-card__bar-bg {
    height: 4px;
    background: rgba(30, 27, 41, 0.6);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.zodiac-card__bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.zodiac-card__score {
    font-size: 12px;
    color: #a0a0b8;
    font-weight: 600;
}

/* ============ 대운 테이블 v2 ============ */
.daeun-subtitle {
    font-size: 14px;
    color: #8b89a0;
    margin-bottom: 14px;
}

.daeun-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.daeun-table {
    width: 100%;
    border-collapse: collapse;
}

.daeun-table th {
    background: rgba(111, 92, 255, 0.1);
    color: #a0a0b8;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
}

.daeun-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(111, 92, 255, 0.08);
}

.daeun-table__current {
    background: rgba(111, 92, 255, 0.1) !important;
}

.daeun-table__current td {
    border-color: rgba(111, 92, 255, 0.3);
}

.daeun-table__pillar {
    font-size: 20px;
    font-weight: 700;
    color: #f5d36c;
    letter-spacing: 1px;
}

.daeun-table__kor {
    font-size: 13px;
    color: #8b89a0;
    font-weight: 400;
    margin-left: 4px;
}

.daeun-table__badge {
    display: inline-block;
    background: #6f5cff;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.daeun-table__age {
    font-size: 15px;
    color: #c8c6d8;
}

.daeun-table__year {
    font-size: 13px;
    color: #8b89a0;
}

/* ============ 거리별 영향력 분석 ============ */
.branch-distance {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(111, 92, 255, 0.15);
}

.branch-distance__title {
    font-size: 15px;
    font-weight: 700;
    color: #c8c6d8;
    margin-bottom: 6px;
}

.branch-distance__desc {
    font-size: 13px;
    color: #8b89a0;
    margin-bottom: 14px;
}

.branch-distance__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.branch-distance__table {
    width: 100%;
    border-collapse: collapse;
}

.branch-distance__table th {
    background: rgba(111, 92, 255, 0.1);
    color: #a0a0b8;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(111, 92, 255, 0.2);
}

.branch-distance__table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(111, 92, 255, 0.08);
    font-size: 14px;
    color: #c8c6d8;
}

.branch-distance__rel {
    font-weight: 600;
    color: #e8e6f0;
    text-align: left !important;
    padding-left: 12px !important;
    white-space: nowrap;
}

.branch-distance__count {
    font-weight: 500;
    min-width: 40px;
}

.branch-distance__factor {
    min-width: 100px;
}

.branch-distance__bar-bg {
    height: 6px;
    background: rgba(30, 27, 41, 0.6);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.branch-distance__bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.branch-distance__pct {
    font-size: 12px;
    color: #a0a0b8;
    font-weight: 600;
}

.branch-distance__note {
    font-size: 12px;
    color: #8b89a0;
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .manselyeok {
        padding: 20px 16px;
        margin: 0 0px 20px;
    }

    .manselyeok__header {
        margin-bottom: 20px;
    }

    .manselyeok__title {
        font-size: 18px;
    }

    .manselyeok__toggle {
        font-size: 18px;
    }

    .manselyeok__summary {
        padding: 10px 14px;
        margin-bottom: 16px;
    }

    .summary-item {
        font-size: 12px;
    }

    .summary-item__icon {
        font-size: 16px;
    }

    .manselyeok__pillars {
        gap: 6px;
    }

    .pillar {
        min-width: 65px;
        padding: 10px 6px;
    }

    .pillar__hanja {
        font-size: 20px;
    }

    .pillar__hangul {
        font-size: 12px;
    }

    .pillar__twelve {
        font-size: 10px;
    }

    .pillar__sipseong {
        font-size: 9px;
    }

    .manselyeok__section-title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .five-element__header {
        font-size: 12px;
    }

    .five-element__star {
        font-size: 11px;
    }

    .sipseong-item__header {
        font-size: 12px;
    }

    .info-item {
        padding: 10px;
    }

    .info-item__label {
        font-size: 10px;
    }

    .info-item__value {
        font-size: 14px;
    }

    .info-item__score {
        font-size: 10px;
    }

    .sinsal-item {
        padding: 10px;
    }

    .sinsal-item__name {
        font-size: 16px;
    }

    .sinsal-item__desc {
        font-size: 14px;
    }

    .sinsal-position {
        font-size: 9px;
        padding: 2px 6px;
    }

    .gongmang-char {
        font-size: 14px;
        padding: 6px 12px;
    }

    .zodiac-group__title {
        font-size: 13px;
    }

    .zodiac-badge {
        font-size: 12px;
        padding: 6px 10px;
    }

    .zodiac-relation {
        font-size: 9px;
    }

    .big-luck-item__pillar {
        font-size: 18px;
    }

    .big-luck-item__kor {
        font-size: 11px;
    }

    /* v2 고도화 모바일 */
    .manse-badges {
        gap: 6px;
    }

    .manse-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .manse-table__hanja {
        font-size: 18px;
    }

    .manse-table__hangul-sub {
        font-size: 10px;
    }

    .manse-table__label {
        font-size: 10px;
        padding-left: 4px !important;
    }

    .manse-table__sipseong,
    .manse-table__twelve {
        font-size: 10px;
    }

    .core-grid {
        gap: 8px;
    }

    .core-item {
        padding: 10px 8px;
    }

    .core-item__value {
        font-size: 14px;
    }

    .core-item__label {
        font-size: 10px;
    }

    .engine-metrics {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .engine-metric {
        padding: 8px;
    }

    .five-compare {
        grid-template-columns: 1fr;
    }

    .yongshin-compare__grid {
        grid-template-columns: 1fr;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .zodiac-card {
        padding: 10px 6px;
    }

    .zodiac-card__animal {
        font-size: 20px;
    }

    .zodiac-card__name {
        font-size: 12px;
    }

    .zodiac-card__desc {
        font-size: 12px;
    }

    .zodiac-card__relation {
        font-size: 9px;
    }

    .daeun-table__pillar {
        font-size: 16px;
    }

    .engine-tiers {
        grid-template-columns: 1fr;
    }
}

/* ==================== 신살 정밀 분석 섹션 ==================== */

.sinsal-section-desc {
    font-size: 13px;
    color: #b8b5c8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sinsal-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sinsal-detail-card {
    background: rgba(30, 27, 41, 0.6);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.sinsal-detail-card[open] {
    background: rgba(30, 27, 41, 0.8);
    border-color: rgba(111, 92, 255, 0.4);
}

.sinsal-detail-summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sinsal-detail-summary::-webkit-details-marker {
    display: none;
}

.sinsal-detail-header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sinsal-detail-main-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sinsal-code {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(111, 92, 255, 0.15);
    border: 1px solid rgba(111, 92, 255, 0.3);
    border-radius: 8px;
    color: #9b88ff;
    font-weight: 500;
}

.sinsal-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.sinsal-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.sinsal-status--active {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.sinsal-status--inactive {
    background: rgba(156, 163, 175, 0.15);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

.sinsal-grade {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.sinsal-grade.grade-s {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.sinsal-grade.grade-a {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.sinsal-grade.grade-b {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.sinsal-grade.grade-c {
    background: rgba(156, 163, 175, 0.15);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

.sinsal-position-info {
    font-size: 12px;
    color: #9e95c7;
}

.sinsal-detail-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(111, 92, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sinsal-explanation {
    background: rgba(111, 92, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
}

.sinsal-explanation--beginner {
    background: rgba(245, 211, 108, 0.08);
    border-left: 3px solid #f5d36c;
}

.sinsal-explanation-label {
    font-size: 11px;
    font-weight: 600;
    color: #9e95c7;
    margin-bottom: 8px;
}

.sinsal-explanation--beginner .sinsal-explanation-label {
    color: #f5d36c;
}

.sinsal-explanation-text {
    font-size: 13px;
    color: #e8e6f0;
    line-height: 1.6;
    margin: 0;
}

.sinsal-explanation-text strong {
    color: #ffffff;
    font-weight: 600;
}

.sinsal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sinsal-info-box {
    background: rgba(30, 27, 41, 0.4);
    border: 1px solid rgba(111, 92, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.sinsal-info-label {
    font-size: 11px;
    color: #9e95c7;
    margin-bottom: 6px;
}

.sinsal-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.sinsal-related-chars {
    background: rgba(245, 211, 108, 0.08);
    border-radius: 8px;
    padding: 12px;
}

.sinsal-related-chars-label {
    font-size: 11px;
    font-weight: 600;
    color: #f5d36c;
    margin-bottom: 8px;
}

.sinsal-related-chars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sinsal-char-badge {
    background: rgba(245, 211, 108, 0.15);
    border: 1px solid rgba(245, 211, 108, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #f5d36c;
    font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 400px) {
    .sinsal-detail-main-info {
        font-size: 14px;
    }

    .sinsal-name {
        font-size: 14px;
    }

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