/* TRONORIGIN Main Styles */

:root {
    /* Color Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1A0A0A;
    --bg-card: #1A0A0A;
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --accent-color: #FF1E1E;
    --accent-hover: #FF4D4D;
    --accent-glow: #FF4D4D;
    --border-color: #3a1a1a;
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-primary: 'Exo 2', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing Scale (consistent 8px base) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Line Heights */
    --line-height-tight: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-mono: 1.4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1A0A0A 0%, #0a0505 100%);
    z-index: -2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 30, 30, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 30, 30, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
}

.logo-image {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 30, 30, 0.5));
}

.logo .subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 30, 30, 0.2);
}

.card-header {
    margin-bottom: var(--space-md);
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--line-height-tight);
}

/* Search */
.search-wrapper {
    margin-bottom: var(--space-md);
}

.search-container {
    display: flex;
    gap: var(--space-sm);
}

/* Input with paste button wrapper */
.input-with-paste {
    position: relative;
    flex: 1;
    display: flex;
}

.input-with-paste .search-input {
    flex: 1;
    padding-right: 44px; /* Space for paste button */
}

.paste-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.paste-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 30, 30, 0.1);
}

.paste-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.paste-btn svg {
    width: 18px;
    height: 18px;
}

.paste-btn.pasted {
    color: #00c853;
    animation: paste-success 0.3s ease-out;
}

@keyframes paste-success {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

/* Recent Searches Dropdown */
.recent-searches {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease-out;
}

.recent-searches.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.recent-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recent-clear {
    padding: 2px 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.recent-clear:hover {
    color: var(--accent-color);
    background: rgba(255, 30, 30, 0.1);
}

.recent-list {
    list-style: none;
    margin: 0;
    padding: var(--space-xs) 0;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background 0.15s;
}

.recent-item:hover {
    background: rgba(255, 30, 30, 0.1);
}

.recent-address {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.recent-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s;
}

.recent-item:hover .recent-arrow {
    opacity: 1;
    transform: translateX(0);
}

.search-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: var(--line-height-mono);
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(255, 30, 30, 0.3);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Input Validation States */
.search-input.input-valid {
    border-color: #00c853;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.3);
}

.search-input.input-invalid {
    border-color: #FF4D4D;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
    animation: input-shake 0.3s ease-out;
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Validation Hint */
.validation-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    min-height: 1.2em;
    transition: color 0.2s;
}

.search-input.input-invalid ~ .validation-hint,
.input-invalid + .search-btn + .validation-hint {
    color: #FF4D4D;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 30, 30, 0.3);
    min-height: 44px; /* Touch target minimum */
}

.search-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(255, 77, 77, 0.4);
    transform: translateY(-1px);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.search-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.search-btn:disabled:hover {
    background: #555;
    transform: none;
    box-shadow: none;
}

/* Button Spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

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

/* Account Info */
.account-info {
    margin-top: var(--space-md);
}

.account-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-md);
}

.account-address {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    word-break: break-all;
    line-height: var(--line-height-mono);
}

.account-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.account-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.account-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: var(--line-height-normal);
}

.account-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: var(--line-height-mono);
}

/* Messages */
.loading {
    padding: var(--space-md);
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    line-height: var(--line-height-normal);
}

.error {
    padding: var(--space-md);
    text-align: center;
    color: #FF4D4D;
    background: rgba(255, 30, 30, 0.1);
    border: 1px solid rgba(255, 30, 30, 0.3);
    border-radius: 8px;
    line-height: var(--line-height-normal);
}

/* Error Container with Retry */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.error-container .error {
    width: 100%;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.retry-btn:active {
    transform: scale(0.98);
}

.retry-btn svg {
    transition: transform 0.3s;
}

.retry-btn:hover svg {
    transform: rotate(-45deg);
}

/* Rate Limit Countdown */
.rate-limit-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    text-align: center;
}

.rate-limit-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.rate-limit-icon {
    font-size: 1.5rem;
    animation: hourglass-spin 2s linear infinite;
}

@keyframes hourglass-spin {
    0%, 49% { transform: rotate(0deg); }
    50%, 100% { transform: rotate(180deg); }
}

.rate-limit-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffc107;
}

.rate-limit-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rate-limit-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.countdown-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: #ffc107;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rate-limit-bar {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.rate-limit-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffca2c);
    border-radius: 3px;
    transition: width 0.3s linear;
}

.rate-limit-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    text-align: center;
    color: #00c853;
    animation: ready-fade-in 0.3s ease-out;
}

@keyframes ready-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.ready-icon {
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .search-container {
        flex-direction: column;
    }

    .card {
        padding: var(--space-md);
    }

    .account-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-sm) var(--space-sm);
    }

    .card {
        padding: var(--space-md) var(--space-sm);
        border-radius: 8px;
    }
}

/* ============================================
   RICH ACCOUNT CARD STYLES
   ============================================ */

.rich-card {
    padding: 0;
    overflow: hidden;
}

/* Account Header */
.account-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 30, 30, 0.05) 0%, transparent 100%);
}

.rich-card .account-address {
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    opacity: 0.9;
}

/* Account Badges */
.account-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-normal {
    background: rgba(100, 100, 100, 0.3);
    color: var(--text-secondary);
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.badge-contract {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ED;
    border: 1px solid rgba(100, 149, 237, 0.4);
}

.badge-witness {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.badge-multisig {
    background: rgba(147, 112, 219, 0.2);
    color: #9370DB;
    border: 1px solid rgba(147, 112, 219, 0.4);
}

.badge-age {
    background: rgba(60, 179, 113, 0.2);
    color: #3CB371;
    border: 1px solid rgba(60, 179, 113, 0.4);
}

.badge-name {
    background: rgba(255, 30, 30, 0.15);
    color: var(--accent-hover);
    border: 1px solid rgba(255, 30, 30, 0.3);
}

/* Account Summary (Balance, Created, Transactions) */
.account-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.info-value-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.info-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Balance Breakdown */
.balance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--space-xs);
    padding-left: var(--space-sm);
    border-left: 2px solid var(--border-color);
}

.balance-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Transaction Breakdown */
.tx-breakdown {
    display: flex;
    gap: var(--space-xs);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.tx-in {
    color: #3CB371;
}

.tx-out {
    color: #FF6B6B;
}

.tx-divider {
    color: var(--text-secondary);
}

/* Account Sections */
.account-section {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.account-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.section-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-data {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: var(--space-md);
}

/* Token Holdings */
.tokens-section {
    background: rgba(0, 0, 0, 0.2);
}

.token-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

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

.token-row {
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.token-row:last-child {
    border-bottom: none;
}

.token-header {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.token-header .token-info,
.token-header .token-balance,
.token-header .token-value {
    font-weight: 600;
}

.token-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.token-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.token-logo-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.token-symbol {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

.token-balance {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: right;
}

.token-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.show-more {
    text-align: center;
    padding: var(--space-sm);
    font-size: 0.85rem;
    color: var(--accent-color);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    display: block;
}

.show-more:hover {
    color: var(--accent-hover);
}

.show-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: var(--space-sm);
}

.show-more-btn:hover {
    color: var(--accent-hover);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.show-more-btn:active {
    transform: scale(0.98);
}

/* Resources Section */
.resources-section {
    background: rgba(0, 0, 0, 0.1);
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.resource-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.resource-values {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.resource-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.resource-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.resource-bar-low {
    background: linear-gradient(90deg, #3CB371, #2E8B57);
}

.resource-bar-medium {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.resource-bar-high {
    background: linear-gradient(90deg, #FF6B6B, #FF4D4D);
}

.delegation-info {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.delegation-icon {
    font-size: 1rem;
}

/* Risk Indicators */
.risks-section {
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 30, 30, 0.05);
}

.risk-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
}

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

.risk-warning {
    background: rgba(255, 165, 0, 0.15);
    border: 1px solid rgba(255, 165, 0, 0.4);
    color: #FFA500;
}

.risk-danger {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #FF4D4D;
}

.risk-icon {
    font-size: 1rem;
}

/* Responsive Adjustments for Rich Card */
@media (max-width: 768px) {
    .account-summary {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

    .token-row {
        grid-template-columns: 1fr 1fr;
    }

    .token-value {
        display: none;
    }
    
    /* Mobile address truncation */
    .account-address {
        font-size: 0.85rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .rich-card .account-address {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .account-header,
    .account-summary,
    .account-section {
        padding: var(--space-md);
    }

    .info-value-large {
        font-size: 1.1rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .token-row {
        grid-template-columns: 1.5fr 1fr;
    }
}

