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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    min-height: 100vh;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-weight: 500;
    color: #4b5563;
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-logout:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.welcome-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.package-badge {
    padding: 4px 12px;
    background: #e5e7eb;
    color: #4b5563;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.package-badge.pro {
    background: #dbeafe;
    color: #1d4ed8;
}

.stats-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.stat {
    background: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 140px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.stat-value.pro {
    color: #1d4ed8;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.domain-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s, transform 0.15s;
}

.domain-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.domain-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    word-break: break-all;
}

.domain-actions {
    display: flex;
    gap: 10px;
}

.domain-actions a,
.domain-actions button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-preview {
    background: #f3f4f6;
    color: #374151;
}

.btn-preview:hover {
    background: #e5e7eb;
}

.loading {
    color: #6b7280;
    padding: 40px;
    text-align: center;
    grid-column: 1 / -1;
}

.upgrade-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    border-radius: 12px;
    padding: 28px 32px;
    color: white;
}

.upgrade-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.upgrade-content p {
    opacity: 0.9;
    margin-bottom: 16px;
    max-width: 600px;
}

.btn-upgrade {
    padding: 10px 20px;
    background: white;
    color: #1e3a5f;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-upgrade:hover {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .main {
        padding: 20px;
    }
    
    .header {
        padding: 12px 20px;
    }
    
    .stats-bar {
        flex-direction: column;
    }
    
    .domain-actions {
        flex-direction: column;
    }
}
