@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* BSTPIK Purple Theme */
    --primary: #7c3aed;       /* Vibrant Purple */
    --primary-hover: #6d28d9; 
    --dark: #111827;          
    --gray: #6b7280;          
    --light-bg: #f5f3ff;      
    --white: #ffffff;
    --border: #e5e7eb;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
header {
    background: var(--white);
    height: 70px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 100;
}

/* FIXED: Added styling for the Text Brand "HALDER DIGITAL ASSET" */
.brand { 
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem; 
    font-weight: 800; /* Extra Bold */
    color: var(--dark);
    text-decoration: none; 
    letter-spacing: -0.04em; 
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span { 
    color: var(--primary); /* Makes "Digital Asset" Purple */
}

/* Keep this just in case you use an image later */
.brand-logo { height: 40px; width: auto; display: block; }

.nav-btn { 
    padding: 0.6rem 1.2rem; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: all 0.2s;
}
.btn-outline { border: 1px solid var(--border); color: var(--dark); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--white); }
.btn-primary { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 3rem auto; padding: 0 1.5rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; color: var(--dark); }
.section-subtitle { color: var(--gray); font-size: 1.1rem; }

/* --- Grid (3 Columns) --- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* --- Card Design (Purple Border + Glow) --- */
.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* Thin Purple Border */
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-md);
}

/* Glow Effect on Hover/Touch */
.card:hover, .card:focus-within, .card:active {
    transform: translateY(-8px);
    /* Deep Shadow + Purple Glow Blur */
    box-shadow: var(--shadow-lg), 0 0 25px rgba(124, 58, 237, 0.4);
    border-color: var(--primary-hover);
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #eef2f6;
}

.card-img-top { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img-top { transform: scale(1.05); }

/* FIXED: Stronger Typography for Card Text */
.card-body { 
    padding: 1.75rem; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    text-align: left;
}

.domain-name { 
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem; 
    font-weight: 800; /* Bolder Title */
    margin-bottom: 0.5rem; 
    color: var(--dark); 
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}

.domain-desc { 
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; 
    color: var(--gray); 
    line-height: 1.6; 
    margin-bottom: 2rem; 
    flex-grow: 1; 
}

/* --- Buttons --- */
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }

.btn-action {
    display: flex; justify-content: center; align-items: center;
    padding: 0.75rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: 0.2s;
}

.btn-view { background: #f3f4f6; color: var(--dark); }
.btn-view:hover { background: #e5e7eb; color: var(--primary); }

.btn-buy { background: var(--primary); color: white; }
.btn-buy:hover { background: var(--primary-hover); }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 0.8rem; margin-top: 4rem; }
.page-btn { 
    padding: 0.8rem 1.5rem; background: var(--white); border: 1px solid var(--border);
    text-decoration: none; color: var(--dark); border-radius: 8px; font-weight: 500;
    box-shadow: var(--shadow-sm); transition: 0.2s; 
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }

/* --- Admin --- */
.admin-panel { max-width: 600px; margin: 0 auto; background: white; padding: 2.5rem; border-radius: 16px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 1.25rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--dark); }
input, textarea { width: 100%; padding: 0.9rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem; transition: border 0.2s; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.btn-submit { width: 100%; padding: 1rem; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 1rem; margin-top: 1rem; }

/* Tables */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 2rem; background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th { background: #f9fafb; font-weight: 600; padding: 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 1.2rem; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }

/* Responsive */
@media (max-width: 1024px) { .domain-grid { gap: 1.5rem; } }
@media (max-width: 900px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .domain-grid { grid-template-columns: 1fr; } .section-title { font-size: 2rem; } }