/* ===== 추천인 페이지 스타일 ===== */

.referral-container {
    padding: 20px;
    background: var(--gray-100);
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* 포인트 현황 */
.point-status {
    margin-bottom: 20px;
}

.point-card {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, #8B5CF6 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.point-card h2 {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.point-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.point-amount .amount {
    font-size: 36px;
    font-weight: bold;
}

.point-amount .unit {
    font-size: 20px;
    opacity: 0.9;
}

.point-desc {
    font-size: 13px;
    opacity: 0.85;
}

/* 내 추천 코드 */
.my-referral-code {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.my-referral-code h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 12px;
}

#myReferralCode {
    flex: 1;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-red);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--gray-100);
}

.share-kakao-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.share-kakao-btn:hover {
    transform: scale(1.02);
}

/* 추천 통계 */
.referral-stats {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-stats h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 12px;
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--gray-900);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-700);
}

/* 추천 방법 안내 */
.referral-guide {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-guide h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-step .step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.step-content p {
    font-size: 13px;
    color: var(--gray-700);
}

/* 추천 내역 */
.referral-history {
    background: white;
    border-radius: 16px;
    padding: 20px;
}

.referral-history h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

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

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 8px;
}

.history-date {
    font-size: 12px;
    color: var(--gray-500);
    width: 70px;
}

.history-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-name {
    font-size: 14px;
    color: var(--gray-900);
}

.history-status {
    font-size: 13px;
    font-weight: 600;
}

.history-status.success {
    color: var(--success);
}

/* ===== 마이페이지 스타일 ===== */

.mypage-container {
    padding: 20px;
    background: var(--gray-100);
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* 프로필 섹션 */
.profile-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.profile-info p {
    font-size: 14px;
    color: var(--gray-700);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-700);
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--gray-900);
}

/* 구독 정보 */
.subscription-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.subscription-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.subscription-card {
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 16px;
}

.subscription-card.trial {
    border-color: var(--secondary-gold);
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.05), transparent);
}

.subscription-card.active {
    border-color: var(--success);
    background: linear-gradient(to bottom, rgba(76, 175, 80, 0.05), transparent);
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: var(--primary-red);
    color: white;
}

.subscription-card.trial .status-badge {
    background: var(--secondary-gold);
    color: var(--gray-900);
}

.subscription-card.active .status-badge {
    background: var(--success);
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail-row span:first-child {
    color: var(--gray-700);
}

.detail-row span:last-child {
    font-weight: 500;
    color: var(--gray-900);
}

.subscription-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
}

.manage-btn,
.cancel-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.manage-btn {
    background: var(--primary-red);
    color: white;
    border: none;
}

.manage-btn:hover {
    background: var(--primary-dark);
}

.cancel-btn {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.cancel-btn:hover {
    background: var(--gray-100);
}

/* 메뉴 리스트 */
.menu-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--gray-100);
}

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

.menu-icon {
    font-size: 20px;
}

.menu-title {
    font-size: 15px;
}

.menu-arrow {
    font-size: 18px;
    color: var(--gray-500);
}

/* 고객 지원 */
.support-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.support-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.support-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.support-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--gray-100);
    border: none;
    border-radius: 12px;
    font-size: 13px;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.2s;
}

.support-btn:hover {
    background: var(--gray-200);
}

.support-icon {
    font-size: 24px;
}

/* 로그아웃 */
.logout-section {
    padding: 0 20px 20px;
}

.logout-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--gray-100);
}

/* 취소 모달 추가 스타일 */
.cancel-info {
    list-style: none;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    margin: 16px 0;
}

.cancel-info li {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.cancel-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray-500);
}

.cancel-reason {
    margin-top: 16px;
}

.cancel-reason label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.cancel-reason select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.modal-confirm-btn.danger {
    background: var(--error);
}

.modal-confirm-btn.danger:hover {
    background: #D32F2F;
}