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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector label {
    font-size: 12px;
    color: #666;
}

.language-selector select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    color: #333;
    cursor: pointer;
}

.language-selector select:hover {
    border-color: #5865F2;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.status {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.status.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.status.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.status.info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

.hidden {
    display: none !important;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #5865F2;
    color: white;
}

.btn-primary:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-secondary {
    background: #747f8d;
    color: white;
}

.btn-secondary:hover {
    background: #5e6770;
}

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

.info {
    color: #666;
    font-size: 12px;
    margin-top: 15px;
    text-align: center;
}

.wallet-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    word-break: break-all;
}

.wallet-info strong {
    color: #333;
}

#walletAddress {
    color: #5865F2;
    font-family: monospace;
}

.success {
    text-align: center;
}

.success h2 {
    color: #57F287;
    margin-bottom: 15px;
}

.success p {
    color: #666;
    margin-bottom: 10px;
}

#roleInfo {
    font-weight: 600;
    color: #333;
    margin: 15px 0;
}

.wallets-list {
    margin: 20px 0;
    text-align: left;
}

.wallets-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.wallet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wallet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.wallet-address {
    font-family: monospace;
    font-size: 14px;
    color: #5865F2;
    font-weight: 500;
}

.wallet-nft-info {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
}

.wallet-nft-info.pro-nft {
    color: #5865F2;
    background: #e8ebff;
}

.wallet-nft-info.royal-nft {
    color: #f59e0b;
    background: #fef3c7;
}

.wallet-nft-info.no-nft {
    color: #666;
    background: #e5e5e5;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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