/* --- Reset & Base --- */
:root {
    --primary: #2563eb;
    --secondary: #475569;
    --accent: #0ea5e9;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; } 
.grid-3 { grid-template-columns: 1fr; }

/* Desktop Layout */
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Components --- */
.card { background: var(--white); border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 20px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 5px 10px; font-size: 0.85rem; }
input, select, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.text-center { text-align: center; }
.flex { display: flex; gap: 10px; }

/* --- Header & Nav --- */
header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav-links { display: none; } /* Mobile Default: Hide */
.nav-links a { margin-left: 20px; font-weight: 500; }

/* Mobile Menu Toggle */
.mobile-menu-btn { display: block; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--text); }

/* Desktop Nav */
@media (min-width: 768px) {
    .nav-links { display: flex; align-items: center; }
    .mobile-menu-btn { display: none; }
}

/* Nav Active State (Mobile) */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.nav-links.active a { margin: 10px 0; }

/* --- Tab System --- */
.tab-content { display: none; animation: fadeIn 0.3s ease-in-out; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Domain Hero --- */
.domain-hero { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 60px 0; text-align: center; }
.domain-title-large { font-size: 2.5rem; margin-bottom: 10px; }
.domain-meta-large { display: flex; justify-content: center; gap: 20px; font-size: 1.1rem; opacity: 0.9; }

/* --- Domain Card --- */
.domain-card { text-align: center; transition: transform 0.2s; border: 1px solid var(--border); }
.domain-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.domain-name { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; font-weight: bold; }
.domain-price { font-size: 1.2rem; color: var(--text); font-weight: bold; margin-bottom: 15px; }

/* --- Hero Section --- */
.hero { background: #1e293b; color: white; text-align: center; padding: 80px 20px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.filter-box { background: white; padding: 15px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* --- Modal --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; justify-content: center; align-items: center; }
.menu-item-row { display: flex; gap: 10px; margin-bottom: 5px; }

/* --- Dashboard Generic --- */
.dashboard-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sidebar { background: white; padding: 15px; border-radius: 8px; }
.sidebar ul li { padding: 12px; margin-bottom: 5px; cursor: pointer; border-radius: 6px; display: flex; align-items: center; gap: 10px; color: var(--text-light); }
.sidebar ul li:hover, .sidebar ul li.active { background: var(--bg); color: var(--primary); font-weight: bold; }

@media (min-width: 768px) {
    .dashboard-layout { grid-template-columns: 250px 1fr; }
    .sidebar { height: fit-content; }
}