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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

header .subtitle {
    color: #8892b0;
    font-size: 1.1rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.card h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

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

.profile-section,
.token-section {
    margin: 1.5rem 0;
    text-align: left;
}

.profile-section h3,
.token-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8892b0;
    justify-content: center;
    padding: 1rem;
}

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

.profile-table th,
.profile-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-table th {
    color: #8892b0;
    font-weight: 500;
    width: 40%;
}

.profile-table td {
    color: #e0e0e0;
    word-break: break-all;
}

.error-message {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #ff5252;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.error-text {
    color: #ff5252;
}

details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #8892b0;
    font-weight: 500;
}

summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #a0e0a0;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #5a5a7a;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .profile-table th,
    .profile-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}
