/**
 * Signum Wallet - 프론트엔드 스타일
 * 테마: #2a2a2a (다크 그레이), #FFFFFF (흰색 배경)
 */

/* ===== 기본 스타일 ===== */
.me-wallet-container {
    font-family: inherit; /* 기본 폰트 사용 */
    color: #2a2a2a;
    background: #ffffff;
    max-width: 100%;
    margin: 0 auto;
}

/* ===== 버튼 스타일 ===== */
.me-wallet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit; /* 기본 폰트 사용 */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
    box-sizing: border-box;
}

.me-wallet-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.me-wallet-btn-primary {
    background-color: #2a2a2a;
    color: #ffffff;
}

.me-wallet-btn-primary:hover:not(:disabled) {
    background-color: #3a3a3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.2);
}

.me-wallet-btn-secondary {
    background-color: transparent;
    color: #2a2a2a;
    border: 2px solid #2a2a2a;
}

.me-wallet-btn-secondary:hover:not(:disabled) {
    background-color: #2a2a2a;
    color: #ffffff;
}

.me-wallet-btn-loader {
    margin-left: 8px;
}

/* ===== 스피너 ===== */
.me-wallet-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: me-wallet-spin 0.8s linear infinite;
}

.me-wallet-spinner-large {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid rgba(42, 42, 42, 0.1);
    border-top-color: #2a2a2a;
    border-radius: 50%;
    animation: me-wallet-spin 0.8s linear infinite;
}

@keyframes me-wallet-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Connect Wallet 카드 ===== */
.me-wallet-connect-card-front {
    position: relative;
    background: #ffffff !important;
}

/* Connect Wallet 카드 흰색 배경 (그라데이션 오버라이드) */
.me-wallet-connect-card-front::after {
    display: none;
}

.me-wallet-connect-card-front .me-wallet-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
}

.me-wallet-connect-card-title {
    margin: 0;
    margin-top: 16px;
    font-size: 48px;
    font-weight: 700;
    color: #2a2a2a;
    font-family: inherit;
    letter-spacing: -1px;
    text-align: left;
    line-height: 1.1;
}

.me-wallet-connect-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-top: auto;
}

.me-wallet-connect-link:hover {
    gap: 12px;
}

.me-wallet-connect-link-text {
    font-size: 16px;
    font-weight: 500;
    color: #2a2a2a;
    font-family: inherit;
    letter-spacing: -0.3px;
}

.me-wallet-connect-link-arrow {
    color: #2a2a2a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.me-wallet-connect-link:hover .me-wallet-connect-link-arrow {
    transform: translateX(4px);
}

.me-wallet-connect-btn-hidden {
    display: none !important;
}

/* ===== 지갑 상태 표시 ===== */
.me-wallet-status {
    margin-top: 0;
    max-width: 100%;
}

/* ===== 지갑 카드 ===== */
.me-wallet-card-wrapper {
    width: 100%;
    max-width: 340px;
    margin-bottom: 32px;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    position: relative;
    height: 0;
    padding-bottom: calc(100% * 1.586); /* aspect-ratio: 1 / 1.586 */
    overflow: visible; /* 그림자 효과를 위해 visible */
}

.me-wallet-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.me-wallet-card.flipped {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.me-wallet-card-front,
.me-wallet-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(42, 42, 42, 0.1), 0 1px 3px rgba(42, 42, 42, 0.06);
    border: 1px solid rgba(42, 42, 42, 0.08);
}

.me-wallet-card-front {
    background: #2a2a2a;
    padding: 40px;
    display: flex;
    align-items: stretch;
    position: relative;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

/* 카드 앞면 그라데이션 오버레이 (검정 투명 레이어) */
.me-wallet-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.me-wallet-card-front > * {
    position: relative;
    z-index: 1;
}

.me-wallet-card-back {
    background: #ffffff;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

/* 카드 뒷면 설정 버튼 */
.me-wallet-card-settings-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.1);
    border: 1px solid rgba(42, 42, 42, 0.15);
    color: rgba(42, 42, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
}

.me-wallet-card-settings-btn:hover {
    background: rgba(42, 42, 42, 0.15);
    color: rgba(42, 42, 42, 0.9);
    transform: scale(1.1);
}

.me-wallet-card-settings-btn:active {
    transform: scale(0.95);
}

.me-wallet-card-settings-btn svg {
    width: 14px;
    height: 14px;
}

/* 카드 뒷면 상단 (흰색 배경, QR 코드) */
.me-wallet-card-back-top {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 20px;
    border-radius: 20px 20px 0 0;
}

/* 카드 뒷면 액션 버튼 영역 */
.me-wallet-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.me-wallet-card-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.me-wallet-card-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(42, 42, 42, 0.2);
    padding: 0;
}

.me-wallet-card-action-btn:hover {
    background: #3a3a3a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.3);
}

.me-wallet-card-action-btn:active {
    transform: scale(0.95);
}

.me-wallet-card-action-btn svg {
    width: 18px;
    height: 18px;
}

.me-wallet-card-action-text {
    font-size: 12px;
    color: #2a2a2a;
    font-weight: 500;
    font-family: inherit;
}

/* 카드 뒷면 하단 (#2a2a2a 배경, 계정 정보) */
.me-wallet-card-back-bottom {
    background: #2a2a2a;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    position: relative;
    border-radius: 0 0 20px 20px;
}

/* 카드 뒷면 하단 그라데이션 오버레이 (검정 투명 레이어) */
.me-wallet-card-back-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.me-wallet-card-back-bottom > * {
    position: relative;
    z-index: 1;
}

.me-wallet-card-back-account-id,
.me-wallet-card-back-balance {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    font-family: inherit;
    line-height: 1.5;
}

.me-wallet-card-back-account-id {
    word-break: break-all;
}

.me-wallet-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* 우측 상단: 잔액 */
.me-wallet-card-balance {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
}

.me-wallet-balance-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.4px;
    font-family: inherit;
}

/* 최근 트랜잭션 */
.me-wallet-recent-tx {
    position: absolute;
    left: 0;
    bottom: 100px; /* RS 주소 위쪽 (더 위로 이동) */
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: calc(100% - 80px);
}

.me-wallet-recent-tx-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.6);
}

.me-wallet-recent-tx-icon svg {
    width: 100%;
    height: 100%;
}

.me-wallet-recent-tx-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.me-wallet-recent-tx-amount {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    font-family: inherit;
    line-height: 1.2;
}

.me-wallet-recent-tx-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    line-height: 1.2;
}

.me-wallet-recent-tx-txid {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.me-wallet-recent-tx-date {
    opacity: 0.7;
}

/* 좌측 하단: RS 주소 및 계정 ID */
.me-wallet-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-wallet-rs-short {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.1;
    font-family: inherit;
    text-transform: uppercase;
}

.me-wallet-account-id {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3px;
    font-family: inherit;
}

/* 환영 메시지 */
.me-wallet-greeting {
    font-size: 32px;
    font-weight: 700;
    color: #2a2a2a;
    text-align: left;
    margin-bottom: 40px;
    font-family: inherit;
    max-width: 340px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ===== 상세 설정 메뉴 ===== */
.me-wallet-settings-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.me-wallet-settings-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.me-wallet-settings-menu-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1;
    overflow: hidden;
}

.me-wallet-settings-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.1);
}

.me-wallet-settings-menu-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: inherit;
}

.me-wallet-settings-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
    font-family: inherit;
}

.me-wallet-settings-menu-close:hover {
    color: #2a2a2a;
}

.me-wallet-settings-menu-body {
    padding: 8px;
}

.me-wallet-settings-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
}

.me-wallet-settings-menu-item:hover {
    background: rgba(42, 42, 42, 0.05);
}

.me-wallet-settings-menu-item:active {
    background: rgba(42, 42, 42, 0.1);
}

.me-wallet-settings-menu-item-text {
    font-size: 16px;
    font-weight: 500;
    color: #2a2a2a;
    font-family: inherit;
}

.me-wallet-settings-menu-item svg {
    width: 16px;
    height: 16px;
    color: #6c757d;
    transform: rotate(90deg);
}

/* 기존 스타일 유지 (다른 곳에서 사용 가능) */
.me-wallet-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.me-wallet-status-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2a2a2a;
}

.me-wallet-status-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.me-wallet-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
}

.me-wallet-info-label {
    font-weight: 600;
    color: #6c757d;
}

.me-wallet-info-value {
    font-size: 14px;
    color: #2a2a2a;
    word-break: break-all;
}

.me-wallet-info-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.me-wallet-info-value-wrapper .me-wallet-info-value {
    flex: 1;
    text-align: right;
}

.me-wallet-copy-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.me-wallet-copy-btn:hover {
    color: #2a2a2a;
}

.me-wallet-copy-btn:active {
    transform: scale(0.95);
}

/* 지갑 액션 버튼 */
.me-wallet-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* ===== 바텀 시트 공통 스타일 ===== */
.me-wallet-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    pointer-events: none;
}

.me-wallet-bottom-sheet.active {
    pointer-events: all;
}

.me-wallet-bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.me-wallet-bottom-sheet.active .me-wallet-bottom-sheet-overlay {
    opacity: 1;
}

.me-wallet-bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.me-wallet-bottom-sheet.active .me-wallet-bottom-sheet-content {
    transform: translateY(0);
}

.me-wallet-bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(42, 42, 42, 0.2);
    border-radius: 2px;
    margin: 12px auto 0;
    cursor: grab;
    transition: background 0.2s;
}

.me-wallet-bottom-sheet-handle:active {
    cursor: grabbing;
    background: rgba(42, 42, 42, 0.3);
}

.me-wallet-bottom-sheet-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.08);
}

.me-wallet-bottom-sheet-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: inherit;
    text-align: center;
}

.me-wallet-bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}

/* SIGNA 전송 섹션 */
.me-wallet-send-section {
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-send-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-send-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.me-wallet-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-wallet-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit; /* 기본 폰트 사용 */
    border: 2px solid rgba(42, 42, 42, 0.12);
    border-radius: 10px;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.me-wallet-form-input:focus {
    outline: none;
    border-color: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(42, 42, 42, 0.1);
}

.me-wallet-form-error {
    color: #e74c3c;
    font-size: 12px;
    margin: 0;
}

.me-wallet-fee-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.me-wallet-fee-label {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
}

.me-wallet-fee-value {
    font-size: 14px;
    font-weight: 600;
    color: #2a2a2a;
}

/* ===== 전송 바텀 시트 전용 스타일 ===== */
.me-wallet-send-step {
    display: block;
}

.me-wallet-send-option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.me-wallet-send-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 24px;
    background: #ffffff;
    border: 1.5px solid rgba(42, 42, 42, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.me-wallet-send-option:hover {
    background: #fafafa;
    border-color: rgba(42, 42, 42, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.08);
}

.me-wallet-send-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(42, 42, 42, 0.06);
}

.me-wallet-send-option svg {
    color: #2a2a2a;
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.me-wallet-send-option span {
    font-size: 15px;
    font-weight: 500;
    color: #2a2a2a;
    font-family: inherit;
    letter-spacing: -0.2px;
}

.me-wallet-send-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.me-wallet-send-qr-scanner {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 2px dashed rgba(42, 42, 42, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.me-wallet-send-qr-hint {
    font-size: 14px;
    color: #6c757d;
    font-family: inherit;
    text-align: center;
}

.me-wallet-send-back-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
    transition: color 0.2s;
}

.me-wallet-send-back-btn:hover {
    color: #2a2a2a;
}

.me-wallet-send-recipient-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid rgba(42, 42, 42, 0.06);
}

.me-wallet-send-recipient-label {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.me-wallet-send-recipient-value {
    font-size: 13px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: inherit;
    word-break: break-all;
    letter-spacing: -0.2px;
}

/* ===== 승인 바텀 시트 ===== */
.me-wallet-approval-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.me-wallet-approval-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid rgba(42, 42, 42, 0.06);
}

.me-wallet-approval-item-label {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.me-wallet-approval-item-value {
    font-size: 15px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: inherit;
    word-break: break-all;
    letter-spacing: -0.2px;
}

.me-wallet-approval-item-value-large {
    font-size: 20px;
    font-weight: 700;
    color: #2a2a2a;
    font-family: inherit;
    letter-spacing: -0.5px;
}

.me-wallet-approval-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
}

/* 승인 결과 바텀 시트 */
.me-wallet-approval-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    text-align: center;
}

.me-wallet-approval-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.me-wallet-approval-result-icon.success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.me-wallet-approval-result-icon.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.me-wallet-approval-result-icon svg {
    width: 32px;
    height: 32px;
}

.me-wallet-approval-result-message {
    font-size: 16px;
    font-weight: 500;
    color: #2a2a2a;
    font-family: inherit;
    line-height: 1.5;
}

.me-wallet-approval-result-details {
    font-size: 13px;
    color: #6c757d;
    font-family: inherit;
    word-break: break-all;
    margin-top: 8px;
}

.me-wallet-send-qr-scanner {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    background: #000000;
    border: 2px solid rgba(42, 42, 42, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.me-wallet-send-qr-loading,
.me-wallet-send-qr-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.95);
    z-index: 2;
    padding: 24px;
    text-align: center;
}

.me-wallet-send-qr-hint {
    font-size: 13px;
    color: #6c757d;
    font-family: inherit;
    text-align: center;
    letter-spacing: -0.2px;
    margin: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border-radius: 8px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    backdrop-filter: blur(8px);
}

.me-wallet-send-qr-error p {
    font-size: 14px;
    color: #2a2a2a;
    font-family: inherit;
    margin: 0 0 12px;
}

.me-wallet-send-qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* 거래 내역 */
.me-wallet-transactions {
    margin-top: 24px;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    box-shadow: 0 4px 16px rgba(42, 42, 42, 0.06);
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-transactions-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2a2a2a;
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-transactions-list {
    max-height: 400px;
    overflow-y: auto;
}

.me-wallet-loading,
.me-wallet-empty {
    text-align: center;
    padding: 24px;
    color: #6c757d;
    font-size: 14px;
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-transaction-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.me-wallet-transaction-item {
    padding: 18px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-transaction-item:hover {
    background: #f5f5f5;
    border-color: rgba(42, 42, 42, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.08);
}

.me-wallet-transaction-item.me-wallet-transaction-pending {
    opacity: 0.6;
    background: #f0f0f0;
}

.me-wallet-transaction-status {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.me-wallet-transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.me-wallet-transaction-type {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 14px;
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-transaction-date {
    font-size: 12px;
    color: #6c757d;
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-transaction-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.me-wallet-transaction-amount {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 14px;
    font-family: inherit; /* 기본 폰트 사용 */
}

.me-wallet-transaction-link {
    font-size: 12px;
    color: #2271b1;
    text-decoration: none;
}

.me-wallet-transaction-link:hover {
    text-decoration: underline;
}

/* ===== 모달 ===== */
.me-wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.me-wallet-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.me-wallet-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.me-wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.me-wallet-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2a2a2a;
}

.me-wallet-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.me-wallet-modal-close:hover {
    color: #2a2a2a;
}

.me-wallet-modal-body {
    padding: 24px;
}

/* ===== 지갑 생성 바텀 시트 단계별 스타일 ===== */
.me-wallet-step {
    display: block;
}

.me-wallet-step-content {
    max-width: 100%;
}

.me-wallet-step-title {
    display: none; /* 헤더에 이미 제목이 있으므로 숨김 */
}

.me-wallet-step-description {
    display: none; /* 불필요한 설명 제거 */
}

.me-wallet-step-text {
    margin: 24px 0 0;
    font-size: 14px;
    color: #6c757d;
    font-family: inherit;
    text-align: center;
}

/* ===== Secret Phrase 표시 ===== */
.me-wallet-phrase-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 0 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid rgba(42, 42, 42, 0.08);
    width: 100%;
    max-width: 100%;
}

.me-wallet-phrase-word {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    background: #ffffff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #2a2a2a;
    border: 1px solid rgba(42, 42, 42, 0.1);
    font-family: inherit;
    transition: all 0.2s ease;
}

.me-wallet-phrase-word:hover {
    border-color: rgba(42, 42, 42, 0.2);
    background: #fafafa;
}

.me-wallet-phrase-word-number {
    display: inline-block;
    min-width: 20px;
    margin-right: 8px;
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
}

/* ===== 체크박스 ===== */
.me-wallet-checkbox-label {
    display: flex;
    align-items: center;
    margin: 0 0 24px;
    cursor: pointer;
    font-size: 14px;
    color: #2a2a2a;
    font-family: inherit;
    justify-content: flex-start;
}

.me-wallet-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #2a2a2a;
}

/* ===== PIN 입력 (폼 스타일 사용) ===== */
.me-wallet-pin-input {
    display: none; /* 폼 인풋 스타일 사용 */
}

.me-wallet-login-phrase {
    display: none; /* 폼 인풋 스타일 사용 */
}

/* ===== 성공 아이콘 ===== */
.me-wallet-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: rgba(46, 213, 115, 0.12);
    color: #2ed573;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    font-family: inherit;
}

/* ===== 스피너 ===== */
.me-wallet-spinner-large {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 3px solid rgba(42, 42, 42, 0.1);
    border-top-color: #2a2a2a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 에러 메시지 ===== */
.me-wallet-error-message {
    margin-top: 16px;
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.me-wallet-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
}

.me-wallet-error-text {
    color: #856404;
    font-size: 14px;
}

.me-wallet-error-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #856404;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== 반응형 ===== */
@media (max-width: 480px) {
    .me-wallet-modal-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .me-wallet-phrase-display {
        grid-template-columns: 1fr;
    }
    
    .me-wallet-card-wrapper {
        max-width: 100%;
    }
    
    .me-wallet-card-front {
        padding: 32px 24px;
    }
    
    .me-wallet-card-back-top {
        padding: 20px;
    }
    
    .me-wallet-card-back-bottom {
        padding: 20px;
    }
    
    .me-wallet-rs-short {
        font-size: 28px;
        letter-spacing: 1.5px;
    }
    
    .me-wallet-balance-text {
        font-size: 13px;
    }
    
    .me-wallet-account-id {
        font-size: 12px;
    }
    
    .me-wallet-qr-code {
        max-width: 150px;
    }
    
    .me-wallet-card-back-account-id,
    .me-wallet-card-back-balance {
        font-size: 12px;
    }
    
    .me-wallet-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .me-wallet-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


.me-wallet-qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 180px;
}

.me-wallet-qr-code img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 접근성 ===== */
.me-wallet-btn:focus-visible,
.me-wallet-modal-close:focus-visible,
.me-wallet-pin-input:focus-visible {
    outline: 2px solid #2a2a2a;
    outline-offset: 2px;
}

