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

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --secondary-light: #22d3ee;
    --accent: #ec4899;
    --blue: #3b82f6;
    --purple: #a855f7;
    --cyan: #06b6d4;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-gray: #e2e8f0;
    --white: #ffffff;
    --green: #10b981;
    --shadow: rgba(139, 92, 246, 0.15);
    --shadow-lg: rgba(139, 92, 246, 0.25);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
}

/* Animated Background */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--cyan), var(--secondary-light));
    bottom: -150px;
    left: -150px;
    animation-delay: 7s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Main Wrapper */
.main-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Centered Card */
.centered-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Header Section */
.card-header-center {
    margin-bottom: 32px;
}

.brand-logo-center {
    width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.brand-title-center {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.brand-subtitle-center {
    font-size: 14px;
    color: var(--text-gray);
}

/* Card Body */
.card-body {
    width: 100%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.action-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.action-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--secondary-light) 100%);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--bg-gray);
}

.full-width {
    width: 100%;
}

.btn-large {
    padding: 16px;
    font-size: 16px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-gray);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--bg-gray);
}

.divider span {
    padding: 0 12px;
}

/* Quick Connect */
.quick-connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: white;
    border: 1px solid var(--bg-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-connect-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.quick-connect-btn span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Footer */
.card-footer-center {
    margin-top: 32px;
    font-size: 12px;
    color: var(--text-gray);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Wallet Info (Hidden by default) */
.hidden {
    display: none !important;
}

.connected-wallet {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.address-label, .status-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 4px;
}

.address-value {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.registration-status-box {
    border-top: 1px solid var(--bg-gray);
    padding-top: 12px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .centered-card {
        padding: 24px;
    }
    
    .quick-connect-grid {
        grid-template-columns: 1fr;
    }
}