/**
 * KAITRUST Dashboard Pages Styles
 * Profile, MyPage, Settings 페이지 전용 스타일
 * @version 1.0.0
 */

/* ========================================
   공통 페이지 컨테이너
   ======================================== */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-text, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.page-header h2 i {
    color: var(--admin-primary, #6366f1);
}

.page-header p {
    color: var(--admin-text-dim, #94a3b8);
    font-size: 0.95rem;
}

/* ========================================
   카드 스타일
   ======================================== */
.page-card {
    background: var(--admin-card, #1e293b);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--admin-border, #334155);
}

.page-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--admin-text, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-card-header h3 i {
    color: var(--admin-primary, #6366f1);
}

/* ========================================
   프로필 페이지
   ======================================== */

/* 프로필 이미지 업로드 */
.profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.profile-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--admin-primary, #6366f1);
    background: var(--admin-card, #1e293b);
}

.profile-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-primary, #6366f1), var(--admin-secondary, #8b5cf6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
    border: 4px solid var(--admin-primary, #6366f1);
}

.profile-image-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--admin-primary, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid var(--admin-card, #1e293b);
}

.profile-image-upload:hover {
    background: var(--admin-secondary, #8b5cf6);
    transform: scale(1.1);
}

.profile-image-upload i {
    color: white;
    font-size: 0.9rem;
}

.profile-image-upload input[type="file"] {
    display: none;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.9rem;
    color: var(--admin-text-dim, #94a3b8);
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: var(--admin-danger, #ef4444);
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--admin-bg, #0f172a);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 10px;
    color: var(--admin-text, #e2e8f0);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--admin-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control:disabled,
.form-control[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--admin-text-dim, #94a3b8);
    margin-top: 0.35rem;
}

/* 두 컬럼 그리드 */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 전문 분야 체크박스 */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--admin-bg, #0f172a);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.expertise-item:hover {
    border-color: var(--admin-primary, #6366f1);
}

.expertise-item.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--admin-primary, #6366f1);
}

.expertise-item input[type="checkbox"] {
    display: none;
}

.expertise-item .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--admin-border, #334155);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.expertise-item.selected .checkbox-custom {
    background: var(--admin-primary, #6366f1);
    border-color: var(--admin-primary, #6366f1);
}

.expertise-item.selected .checkbox-custom i {
    color: white;
    font-size: 0.7rem;
}

.expertise-item span {
    font-size: 0.9rem;
    color: var(--admin-text, #e2e8f0);
}

/* 버튼 그룹 */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--admin-primary, #6366f1), var(--admin-secondary, #8b5cf6));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--admin-border, #334155);
    color: var(--admin-text, #e2e8f0);
}

.btn-secondary:hover {
    border-color: var(--admin-text-dim, #94a3b8);
}

.btn-danger {
    background: linear-gradient(135deg, var(--admin-danger, #ef4444), #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   마이페이지
   ======================================== */

/* 멤버십 카드 */
.membership-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.membership-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.membership-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.membership-badge-large {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.membership-badge-large.free { background: #64748b; }
.membership-badge-large.expert { background: #10b981; }
.membership-badge-large.small_biz { background: #0ea5e9; }
.membership-badge-large.sme { background: #6366f1; }
.membership-badge-large.mid_corp { background: #8b5cf6; }
.membership-badge-large.enterprise { background: #a855f7; }
.membership-badge-large.super_admin { background: #ef4444; }

.membership-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 0.25rem;
}

.membership-details span {
    font-size: 0.85rem;
    color: var(--admin-text-dim, #94a3b8);
}

.membership-upgrade-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--admin-primary, #6366f1), var(--admin-secondary, #8b5cf6));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.membership-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.membership-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.membership-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--admin-text, #e2e8f0);
}

.membership-benefit-item i {
    color: var(--admin-success, #10b981);
}

/* 데이터 테이블 */
.data-table-wrapper {
    overflow-x: auto;
    margin: -0.5rem;
    padding: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border, #334155);
}

.data-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--admin-text-dim, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    font-size: 0.9rem;
    color: var(--admin-text, #e2e8f0);
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

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

/* 상태 배지 */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pill.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.approved,
.status-pill.enrolled {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-pill.in_progress,
.status-pill.reviewing {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-pill.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.unpaid {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-pill.refunded {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 액션 버튼 */
.table-action-btn {
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.25rem;
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.table-action-btn:hover {
    background: var(--admin-primary, #6366f1);
    color: white;
}

/* 인증서 그리드 */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.certificate-card {
    background: var(--admin-bg, #0f172a);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s;
}

.certificate-card:hover {
    border-color: var(--admin-primary, #6366f1);
    transform: translateY(-2px);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--admin-primary, #6366f1);
    flex-shrink: 0;
}

.certificate-info {
    flex: 1;
}

.certificate-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 0.25rem;
}

.certificate-info .grade {
    font-size: 0.85rem;
    color: var(--admin-primary, #6366f1);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.certificate-info .date {
    font-size: 0.8rem;
    color: var(--admin-text-dim, #94a3b8);
}

.certificate-download {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: none;
    border-radius: 6px;
    color: var(--admin-primary, #6366f1);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    align-self: center;
}

.certificate-download:hover {
    background: var(--admin-primary, #6366f1);
    color: white;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--admin-text-dim, #94a3b8);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ========================================
   설정 페이지
   ======================================== */

/* 설정 섹션 */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--admin-border, #334155);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section-title i {
    color: var(--admin-primary, #6366f1);
}

/* 토글 스위치 */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--admin-bg, #0f172a);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.setting-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.85rem;
    color: var(--admin-text-dim, #94a3b8);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

/* 접근성 개선: opacity 0으로 숨기되 접근 가능하게 유지 */
.toggle-switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    margin: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--admin-border, #334155);
    border-radius: 28px;
    transition: all 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

/* 키보드 포커스 스타일 */
.toggle-switch input:focus + .toggle-slider {
    outline: 2px solid var(--admin-primary, #6366f1);
    outline-offset: 2px;
}

/* 포커스-visible로 마우스 클릭 시에는 아웃라인 숨김 */
.toggle-switch input:focus:not(:focus-visible) + .toggle-slider {
    outline: none;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--admin-success, #10b981);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* 언어 선택 */
.language-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--admin-bg, #0f172a);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-option:hover {
    border-color: var(--admin-primary, #6366f1);
}

.language-option.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--admin-primary, #6366f1);
}

.language-option input[type="radio"] {
    display: none;
}

.language-option .radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--admin-border, #334155);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-option.selected .radio-custom {
    border-color: var(--admin-primary, #6366f1);
}

.language-option.selected .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--admin-primary, #6366f1);
    border-radius: 50%;
}

.language-option .flag {
    font-size: 1.25rem;
}

.language-option .name {
    font-size: 0.95rem;
    color: var(--admin-text, #e2e8f0);
}

/* 비밀번호 변경 */
.password-form {
    max-width: 400px;
}

.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    background: var(--admin-border, #334155);
    border-radius: 2px;
    margin-bottom: 0.35rem;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s;
}

.password-strength-fill.weak { width: 25%; background: #ef4444; }
.password-strength-fill.fair { width: 50%; background: #f59e0b; }
.password-strength-fill.good { width: 75%; background: #3b82f6; }
.password-strength-fill.strong { width: 100%; background: #10b981; }

.password-strength-text {
    font-size: 0.8rem;
    color: var(--admin-text-dim, #94a3b8);
}

/* 위험 영역 */
.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.danger-zone h4 {
    color: var(--admin-danger, #ef4444);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.danger-item:last-child {
    margin-bottom: 0;
}

.danger-item-info h5 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 0.25rem;
}

.danger-item-info p {
    font-size: 0.85rem;
    color: var(--admin-text-dim, #94a3b8);
}

.danger-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 6px;
    color: var(--admin-danger, #ef4444);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: var(--admin-danger, #ef4444);
    color: white;
}

/* ========================================
   탈퇴 확인 모달
   ======================================== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay.active {
    display: flex;
}

.confirm-modal {
    background: var(--admin-card, #1e293b);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    padding: 2rem;
}

.confirm-modal-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-modal h3 {
    text-align: center;
    font-size: 1.25rem;
    color: var(--admin-text, #e2e8f0);
    margin-bottom: 0.5rem;
}

.confirm-modal p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--admin-text-dim, #94a3b8);
    margin-bottom: 1.5rem;
}

.confirm-modal .form-group {
    margin-bottom: 1.5rem;
}

.confirm-modal .btn-group {
    justify-content: center;
}

/* ========================================
   로딩 상태
   ======================================== */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.page-loading i {
    font-size: 2rem;
    color: var(--admin-primary, #6366f1);
    animation: spin 1s linear infinite;
}

/* ========================================
   토스트 알림
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--admin-card, #1e293b);
    border: 1px solid var(--admin-border, #334155);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

.toast.success {
    border-left: 4px solid var(--admin-success, #10b981);
}

.toast.error {
    border-left: 4px solid var(--admin-danger, #ef4444);
}

.toast.warning {
    border-left: 4px solid var(--admin-warning, #f59e0b);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon { color: var(--admin-success, #10b981); }
.toast.error .toast-icon { color: var(--admin-danger, #ef4444); }
.toast.warning .toast-icon { color: var(--admin-warning, #f59e0b); }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--admin-text, #e2e8f0);
}

.toast-close {
    background: none;
    border: none;
    color: var(--admin-text-dim, #94a3b8);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--admin-text, #e2e8f0);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .membership-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .membership-benefits {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    .setting-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .danger-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: auto;
    }
}
