/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

h1 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 0;
}

.highlight {
    color: #667eea;
    font-weight: bold;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #4299e1;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary:hover:not(:disabled) {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: #718096;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    text-align: center;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-success {
    background: #48bb78;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success:hover:not(:disabled) {
    background: #38a169;
    transform: translateY(-2px);
}

.btn-wallet {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-wallet:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== MAIN SECTIONS ===== */
main {
    padding: 0 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* ===== DOMAIN CARDS ===== */
.domain-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.management-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
}

.info-item strong {
    display: block;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-item span {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== RESULT BOXES ===== */
.result-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.loading {
    color: #4a5568;
    background: #edf2f7;
}

.success {
    color: #22543d;
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
}

.error {
    color: #742a2a;
    background: #fed7d7;
    border: 1px solid #fc8181;
}

.processing {
    color: #744210;
    background: #feebc8;
    border: 1px solid #fbd38d;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin: 20px 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 5px;
}

.form-group small {
    color: #718096;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* ===== DASHBOARD SPECIFIC ===== */
.connect-required {
    text-align: center;
    padding: 60px 20px;
}

.domains-grid {
    margin: 20px 0;
}

.domain-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #718096;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* ===== UTILITY CLASSES ===== */
.platform-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.platform-links a {
    padding: 12px 20px;
    background: #4299e1;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.platform-links a:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.platform-links a:nth-child(2) {
    background: #8247e5;
}

.platform-links a:nth-child(2):hover {
    background: #6b21c8;
}

.tips {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    border-left: 4px solid #48bb78;
}

.tips h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.tips ol, .tips ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tips li {
    margin: 8px 0;
    color: #4a5568;
}

.tips small {
    color: #718096;
    font-size: 0.9em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    main {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .wallet-section {
        justify-content: center;
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-links {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-links a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .dashboard-actions,
    .action-buttons,
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-wallet {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .management-card {
        padding: 15px;
    }
    
    .info-item {
        padding: 15px;
    }
}