/* Portfolio CSS */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-input: rgba(15, 23, 42, 0.6);
    
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;
    
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-shadow: rgba(59, 130, 246, 0.15);
    
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: rgba(139, 92, 246, 0.1);
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Typography scale */
    --fs-display: 1.75rem;
    --fs-section: 1.125rem;
    --fs-md: 0.95rem;
    --fs-base: 0.875rem;
    --fs-sm: 0.8rem;
    --fs-xs: 0.72rem;
}

.portfolio-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.9rem 1.4rem;
    position: relative;
    overflow: hidden;
}

.portfolio-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientMove 15s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

.portfolio-container {
    width: 100%;
    margin-top: 0.5rem;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -1px rgba(0, 0, 0, 0.15),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* 헤더 스타일 */
.portfolio-header {
    width: 100%;
    padding: 0.85rem 1.3rem 0.55rem;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    background: linear-gradient(to right, var(--accent-light), transparent);
}

.portfolio-title {
    font-size: var(--fs-display);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    text-shadow: 0 0 20px var(--accent);
}

.portfolio-title::before {
    content: '💎';
    font-size: var(--fs-display);
    line-height: 1;
    margin-right: 0.75rem;
}

.portfolio-description {
    color: var(--accent);
    font-size: var(--fs-base);
    line-height: 1.2;
    margin-left: 1rem;
    padding-top: 0.5rem;
    font-weight: 600;
}

/* 지갑 연결 섹션 */
.wallet-connection-section {
    padding: 0.9rem 1.3rem;
    width: 100%;
}

.connection-form {
    width: 100%;
}

.input-section {
    margin-bottom: 0.6rem;
    margin-top: 0.6rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.input-label-group {
    padding-top: 0;
}

.input-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--fs-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.input-field {
    position: relative;
    margin-bottom: 0;
    width: 100%;
}

.input-field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.input-field input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: var(--fs-md);
    transition: all 0.2s ease;
}

.input-field input:hover {
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 1px var(--accent-light);
}

.input-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-light);
}

.input-field input:focus + i {
    color: var(--accent);
}

.input-field input::placeholder {
    color: var(--text-tertiary);
}

.stake-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.stake-address-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.45rem;
}

.stake-address-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-add-address,
.btn-remove-address {
    border: 1px solid var(--border-primary);
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-secondary);
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-address {
    color: #fca5a5;
}

.btn-add-address:hover,
.btn-remove-address:hover {
    border-color: var(--accent);
    color: #ffffff;
}

.btn-add-address:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.input-help {
    margin-top: 0.5rem;
}

.demo-info {
    margin-top: 8px;
}

.demo-text {
    color: var(--accent);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.demo-text code {
    background-color: rgba(139, 92, 246, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 11px;
    color: var(--accent);
}

/* 버튼 스타일 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.6rem;
}

.btn-connect {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: var(--fs-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px var(--accent-shadow);
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px var(--accent-shadow);
}

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

.btn-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-connect:hover .btn-icon {
    transform: scale(1.1);
}

/* 포트폴리오 개요 */
.portfolio-overview {
    padding: 0.9rem 1.3rem;
    border-bottom: 1px solid var(--border-primary);
}

.overview-body {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(320px, 1fr);
    gap: 0.9rem;
    align-items: stretch;
}

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

.overview-title {
    font-size: var(--fs-section);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.wallet-address-display {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: var(--fs-base);
    background: rgba(30, 41, 59, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.btn-disconnect {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.25rem;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-disconnect:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

/* 통계 카드 */
.portfolio-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.portfolio-stats .stat-card {
    align-items: center;
}

.portfolio-stats .stat-head {
    width: 100%;
    justify-content: center;
}

.portfolio-stats .stat-content {
    align-items: center;
    text-align: center;
}

.portfolio-stats .stat-pills {
    width: 100%;
    justify-content: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.78rem 0.85rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-2px);
}

.stat-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.stat-head h3 {
    margin: 0;
    color: var(--text-tertiary);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.stat-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 0.5rem;
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
}

.stat-content-col {
    flex-direction: column;
}

.stat-main {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-sub {
    color: #93c5fd;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.stat-meta {
    color: var(--text-secondary);
    font-size: var(--fs-xs);
}

.stat-meta strong {
    color: var(--text-primary);
    font-weight: 700;
}

.stat-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.28);
    color: var(--text-secondary);
    font-size: var(--fs-xs);
}

.stat-pill strong {
    color: #f8fafc;
    font-weight: 700;
}

.allocation-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.8rem 1rem;
}

.allocation-chart-wrap {
    flex-shrink: 0;
}

.allocation-donut {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(rgba(148,163,184,0.35) 0deg 360deg);
    position: relative;
}

.allocation-center {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
}

.allocation-center span {
    font-size: var(--fs-sm);
}

.allocation-center strong {
    font-size: var(--fs-md);
}

.allocation-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.allocation-legend li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.allocation-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.allocation-name {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.allocation-ratio {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.allocation-empty {
    color: var(--text-tertiary);
}

/* 자산 섹션 */
.assets-section {
    padding: 0.9rem 1.3rem;
}

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

.assets-title {
    font-size: var(--fs-section);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.25rem;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.asset-tabs {
    display: flex;
    gap: 0.75rem;
    margin-top: -0.5rem;
    margin-bottom: 0.6rem;
}

.asset-tab-btn {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-primary);
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-secondary);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-tab-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.asset-tab-btn.active {
    background: rgba(139, 92, 246, 0.18);
    border-color: var(--accent);
    color: #ffffff;
}

/* 테이블 스타일 */
.assets-table {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--border-primary);
}

/* NFT 카드형 레이아웃 */
.nft-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.nft-card {
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nft-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.nft-card-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0b1220;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.nft-card-image-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1.5rem;
}

.nft-card-image-wrap:not(.no-image) .nft-card-image-empty {
    display: none;
}

.nft-image-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.nft-image-modal-content {
    position: relative;
    width: min(92vw, 760px);
    max-height: 92vh;
    border-radius: 0.9rem;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem;
}

.nft-image-modal-img {
    width: 100%;
    max-height: calc(92vh - 120px);
    object-fit: contain;
    display: block;
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.55);
}

.nft-image-modal-title {
    margin-top: 0.55rem;
    color: var(--text-primary);
    font-size: var(--fs-base);
    text-align: center;
    font-weight: 600;
}

.nft-image-modal-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--border-primary);
    background: rgba(30, 41, 59, 0.75);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.nft-modal-open {
    overflow: hidden;
}

.nft-card-body {
    padding: 0.8rem 0.9rem 0.9rem;
}

.nft-card-name {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-card-unit {
    margin-top: 0.35rem;
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.assets-table-content th {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--fs-base);
    padding: 0.48rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
}

.assets-table-content td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.assets-table-content tr:hover {
    background: rgba(30, 41, 59, 0.3);
}

/* 토큰 정보 */
.token-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.token-image {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.token-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.45);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.token-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--fs-base);
}

.token-unit {
    color: var(--text-tertiary);
    font-size: var(--fs-xs);
    font-family: monospace;
}

.small-token-unit {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.small-token-unit:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.token-ticker {
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}

.token-type {
    text-align: center;
}

.asset-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

.asset-type-badge.token {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.32);
}

.asset-type-badge.nft {
    color: #f5d0fe;
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.32);
}

.token-amount {
    font-family: inherit;
    font-size: var(--fs-base);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    text-align: right;
}

.token-value {
    font-weight: 600;
    color: var(--success);
    text-align: right;
}

.token-price {
    text-align: right;
    font-size: var(--fs-base);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.token-value-usd {
    display: block;
    margin-top: 0.1rem;
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    font-weight: 500;
}

.token-ratio {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

/* 빈 상태 */
.empty-assets {
    text-align: center;
    padding: 1.5rem 0.8rem;
    color: var(--text-tertiary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
}

.empty-assets p {
    margin: 0;
    font-size: 1rem;
}

/* 로딩 상태 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.8rem;
    gap: 0.6rem;
}

.loading-spinner {
    position: relative;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    color: var(--text-secondary);
    margin: 0;
}

/* 유틸리티 클래스 */
.hidden {
    display: none !important;
}

/* 알림 메시지 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: var(--success);
    color: white;
}

.notification-error {
    background: var(--error);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 0.75rem;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

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

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .portfolio-wrapper {
        padding: 1rem;
    }
    
    .portfolio-container {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-wrapper {
        padding: 0.75rem;
    }
    
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .portfolio-title {
        font-size: 1.5rem;
    }
    
    .portfolio-description {
        margin-left: 0;
    }
    
    .wallet-connection-section,
    .portfolio-overview,
    .assets-section {
        padding: 1rem;
    }

    .action-buttons {
        width: 100%;
    }

    .btn-connect {
        width: 100%;
        justify-content: center;
    }

    .overview-body {
        grid-template-columns: 1fr;
    }
    
    .overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .wallet-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
    }

    .allocation-panel {
        justify-content: flex-start;
    }

    .allocation-donut {
        width: 150px;
        height: 150px;
    }
    
    .assets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .assets-table-content {
        font-size: 0.875rem;
    }
    
    .assets-table-content th,
    .assets-table-content td {
        padding: 0.75rem 0.5rem;
    }
    
    .token-info {
        gap: 0.5rem;
    }
    
    .token-image {
        width: 1.5rem;
        height: 1.5rem;
    }

    .nft-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .portfolio-wrapper {
        padding: 0.5rem;
    }
    
    .portfolio-title {
        font-size: 1.25rem;
    }
    
    .portfolio-title::before {
        font-size: 1.25rem;
    }
    
    .wallet-connection-section,
    .portfolio-overview,
    .assets-section {
        padding: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .stat-content p {
        font-size: 1.25rem;
    }

    .allocation-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .allocation-donut {
        width: 132px;
        height: 132px;
    }

    .nft-card-grid {
        grid-template-columns: 1fr;
    }
}

/* 반응형 통합: PC/모바일 요소 표시/숨김 제어 */
/* 포트폴리오는 모바일에서도 본 기능 화면(PC 레이아웃)을 사용 */
.mobile-portfolio-container {
    display: none !important;
}

.renew-portfolio.pc-portfolio {
    display: block !important;
}
