/* ============================================================
   MBIV Development Platform - Main Stylesheet
   ============================================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1242b8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 8px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--gray-800); background: var(--light); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--gray-900); line-height: 1.3; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1600px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 600; border: none;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); color: var(--gray-700); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-white { background: #fff; color: var(--primary); border: 2px solid #fff; }
.btn-white:hover { background: transparent; color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.375rem; font-size: 0.875rem; color: var(--gray-700); }
.form-control {
    width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: 0.9375rem; font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--gray-200); overflow: hidden;
}
.card-header {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--gray-50);
}
.card-header h3, .card-header h4 { margin: 0; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); background: var(--gray-50); }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left; padding: 0.75rem 1rem; font-size: 0.8125rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--gray-500); background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.9375rem; }
.table tbody tr:hover { background: var(--gray-50); }
.table .actions { white-space: nowrap; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
    border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem;
    font-size: 0.9375rem; display: flex; align-items: center; gap: 0.75rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav { margin-top: 2rem; }
.pagination {
    list-style: none; display: flex; gap: 0.25rem;
    justify-content: center; padding: 0;
}
.pagination li a, .pagination li span {
    display: flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
    border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
    border: 1px solid var(--gray-300); color: var(--gray-600); background: #fff;
}
.pagination li a:hover { background: var(--gray-100); color: var(--primary); }
.pagination li.active a { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   STATS / DASHBOARD WIDGETS
   ============================================================ */
.stat-card {
    background: #fff; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.stat-card .stat-label { font-size: 0.875rem; color: var(--gray-500); font-weight: 500; }
.stat-icon-blue { background: #dbeafe; color: var(--primary); }
.stat-icon-green { background: #d1fae5; color: var(--success); }
.stat-icon-yellow { background: #fef3c7; color: var(--warning); }
.stat-icon-red { background: #fee2e2; color: var(--danger); }

/* ============================================================
   FRONTEND TOPBAR
   ============================================================ */
.fe-topbar {
    background: #0f172a; color: rgba(255,255,255,.85);
    font-size: .8125rem; padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.fe-topbar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.fe-topbar-left {
    display: flex; align-items: center; gap: 1.25rem; flex: 1;
}
.fe-topbar-left a {
    color: rgba(255,255,255,.65); text-decoration: none; font-size: .8125rem;
    display: inline-flex; align-items: center; gap: .35rem; transition: color .2s;
}
.fe-topbar-left a:hover { color: #fff; }
.fe-topbar-left i { font-size: .75rem; }
.fe-topbar-center {
    font-size: .8125rem; font-weight: 500; letter-spacing: .02em;
    white-space: nowrap;
}
.fe-topbar-accent {
    color: #f59e0b; font-weight: 700;
}
.fe-topbar-right {
    display: flex; align-items: center; justify-content: flex-end; flex: 1;
}
.fe-topbar-socials {
    display: flex; align-items: center; gap: .6rem;
}
.fe-topbar-socials a {
    color: rgba(255,255,255,.5); font-size: .875rem; transition: color .2s;
    text-decoration: none;
}
.fe-topbar-socials a:hover { color: #60a5fa; }
@media (max-width: 767.98px) {
    .fe-topbar-inner { flex-direction: column; gap: .25rem; text-align: center; }
    .fe-topbar-left { justify-content: center; }
    .fe-topbar-right { justify-content: center; }
}

/* ============================================================
   FRONTEND HEADER / NAVIGATION
   ============================================================ */
.site-header {
    background: #fff; border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.site-header .navbar {
    padding: 0;
}
.site-header .container {
    display: flex; justify-content: space-between; align-items: center;
}
.site-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary) !important; display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.site-logo span { color: var(--gray-900); }
.site-logo:hover { color: var(--primary-dark) !important; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.fe-nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    color: var(--gray-700); font-size: 1.25rem;
    transition: all 0.2s; text-decoration: none;
    background: var(--gray-50); border: 1px solid var(--gray-200);
}
.fe-nav-icon:hover {
    color: var(--primary); background: var(--gray-100);
    border-color: var(--primary);
}

.site-header .navbar-toggler { border: 1px solid var(--gray-300); color: var(--gray-700); padding: .4rem .65rem; }
.site-header .navbar-toggler i { font-size: 1.25rem; }

.site-header .nav-link {
    color: var(--gray-700) !important; font-weight: 500; font-size: 0.9375rem;
    padding: 1.5rem 1.1rem !important; transition: color 0.2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--primary) !important; }
.site-header .nav-link.dropdown-toggle::after { margin-left: .35rem; }

/* Frontend Mega Menu */
.fe-mega-dropdown { position: static !important; }
.site-header .navbar {
    position: relative;
}
.fe-mega-menu {
    position: absolute !important;
    left: 50% !important; right: auto !important;
    transform: translateX(-50%);
    top: 100%; width: calc(100% - 3rem);
    max-width: calc(1600px - 3rem);
    border: none; border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    padding: 2rem 0; margin-top: 0 !important;
    box-sizing: border-box; background: #fff;
    overflow: hidden;
}
.fe-mega-menu > .row {
    margin-left: 0; margin-right: 0;
}
.fe-mega-title {
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--gray-900);
    padding-bottom: 0.75rem; margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex; align-items: center;
}
.fe-mega-title i { color: var(--primary); font-size: 1rem; }
.fe-mega-list {
    list-style: none; padding: 0; margin: 0;
}
.fe-mega-list li { margin-bottom: 0; }
.fe-mega-list li a {
    display: flex; align-items: center;
    padding: 0.45rem 0; color: var(--gray-600);
    font-size: 0.9rem; font-weight: 400; transition: all 0.2s;
    text-decoration: none; border-radius: 4px; gap: .4rem;
}
.fe-mega-list li a::before {
    content: '\F285'; font-family: 'bootstrap-icons';
    font-size: .6rem; color: var(--gray-400); transition: all .2s;
    flex-shrink: 0;
}
.fe-mega-list li a:hover {
    color: var(--primary);
}
.fe-mega-list li a:hover::before {
    color: var(--primary); transform: translateX(2px);
}

@media (max-width: 991.98px) {
    .site-header .nav-link { padding: 0.75rem 0 !important; }
    .fe-mega-menu { padding: 1rem; box-shadow: none; border-top: none; border-radius: 0; }
    .fe-mega-menu .row > div { margin-bottom: 1.25rem; }
    .fe-mega-title { font-size: 0.75rem; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 5rem 0; text-align: center;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 1.25rem; }
.hero p { font-size: 1.25rem; opacity: 0.9; max-width: 640px; margin: 0 auto 2rem; }
.hero .btn { margin: 0 0.5rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 3rem 0; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-dark { background: var(--gray-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-gray { background: var(--gray-100); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-500); font-size: 1.125rem; max-width: 640px; margin: 0 auto; }

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--gray-200); padding: 2rem; text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg); }
.pricing-card.popular::before {
    content: 'Populair'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 0.25rem 1rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700;
}
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); margin: 1rem 0; }
.pricing-card .price span { font-size: 0.875rem; font-weight: 500; color: var(--gray-500); }
.pricing-card .features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.pricing-card .features li { padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9375rem; color: var(--gray-600); }
.pricing-card .features li::before { content: '\2713'; color: var(--success); font-weight: 700; margin-right: 0.5rem; }

/* ============================================================
   DOMAIN SEARCH
   ============================================================ */
.domain-search-box {
    max-width: 640px; margin: 0 auto; display: flex; gap: 0;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.domain-search-box input {
    flex: 1; padding: 1rem 1.25rem; border: 2px solid var(--gray-300);
    border-right: none; border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1.125rem; outline: none;
}
.domain-search-box input:focus { border-color: var(--primary); }
.domain-search-box button {
    padding: 1rem 2rem; background: var(--primary); color: #fff;
    border: none; font-size: 1rem; font-weight: 700; cursor: pointer;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.domain-search-box button:hover { background: var(--primary-dark); }

.domain-results { margin-top: 2rem; }
.domain-result-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; background: #fff; border-radius: var(--radius);
    margin-bottom: 0.5rem; box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.domain-result-item .domain-name { font-weight: 600; font-size: 1.0625rem; }
.domain-result-item .domain-price { font-weight: 700; color: var(--primary); }
.domain-result-item.unavailable { opacity: 0.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--gray-900); color: var(--gray-400); padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a { color: var(--gray-400); display: block; padding: 0.25rem 0; font-size: 0.9375rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   BACKEND LAYOUT
   ============================================================ */
.backend-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; background: var(--secondary); color: #fff;
    position: fixed; top: 0; left: 0; height: 100vh;
    overflow-y: auto; z-index: 100; transition: transform 0.3s;
}
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo { font-size: 1.25rem; font-weight: 800; color: #fff; }
.sidebar-logo small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--gray-400); }
.sidebar-nav { padding: 1rem 0; }
.sidebar-section { padding: 0.5rem 1.5rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-top: 1rem; }
.sidebar-link {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.5rem;
    color: var(--gray-400); font-size: 0.9375rem; transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,0.1); border-left-color: var(--primary-light); }
.sidebar-link .icon { width: 20px; text-align: center; }
.sidebar-user { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; }
.sidebar-user .user-name { font-weight: 600; color: #fff; font-size: 0.875rem; }
.sidebar-user .user-role { font-size: 0.75rem; color: var(--gray-500); }

.main-content { margin-left: 260px; flex: 1; }
.topbar {
    background: #fff; border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem; height: 64px; display: flex;
    justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.content-area { padding: 2rem; }

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* ============================================================
   CHECKOUT / CART
   ============================================================ */
.checkout-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .checkout-wrapper { grid-template-columns: 1fr; } }
.order-summary { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-200); }
.order-summary .line-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); }
.order-summary .total-line { font-size: 1.25rem; font-weight: 700; padding-top: 1rem; }

/* ============================================================
   TICKET / CHAT STYLE
   ============================================================ */
.ticket-messages { max-height: 500px; overflow-y: auto; padding: 1rem; }
.ticket-message { margin-bottom: 1.5rem; display: flex; gap: 1rem; }
.ticket-message .message-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ticket-message .message-content { flex: 1; }
.ticket-message .message-header { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.ticket-message .message-author { font-weight: 600; font-size: 0.9375rem; }
.ticket-message .message-date { font-size: 0.8125rem; color: var(--gray-500); }
.ticket-message .message-body { background: var(--gray-50); border-radius: var(--radius); padding: 1rem; font-size: 0.9375rem; line-height: 1.6; }
.ticket-message.staff .message-avatar { background: var(--success); }
.ticket-message.internal .message-body { background: #fef3c7; border: 1px solid #fde68a; }

/* ============================================================
   INCIDENT / STORINGEN STATUS
   ============================================================ */
.status-timeline { position: relative; padding-left: 2rem; }
.status-timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.status-timeline .timeline-item { position: relative; margin-bottom: 1.5rem; }
.status-timeline .timeline-item::before { content: ''; position: absolute; left: -1.625rem; top: 0.25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gray-400); border: 2px solid #fff; }
.status-timeline .timeline-item.active::before { background: var(--danger); }
.status-timeline .timeline-item.resolved::before { background: var(--success); }

/* ============================================================
   MISC
   ============================================================ */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-500); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gray-600); margin-bottom: 0.5rem; }

.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-bar input { flex: 1; }

.detail-grid { display: grid; grid-template-columns: 200px 1fr; gap: 0.5rem 1rem; }
.detail-grid dt { font-weight: 600; color: var(--gray-600); font-size: 0.875rem; }
.detail-grid dd { color: var(--gray-900); font-size: 0.9375rem; margin-bottom: 0.5rem; }

.invoice-lines .add-line { margin-top: 0.5rem; }
.invoice-line-row { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr; gap: 0.5rem; margin-bottom: 0.5rem; align-items: start; }
@media (max-width: 768px) { .invoice-line-row { grid-template-columns: 1fr; } }

.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .blog-card-body { padding: 1.5rem; }
.blog-card .blog-card-body h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.blog-card .blog-card-body p { color: var(--gray-500); font-size: 0.9375rem; }
.blog-card .blog-meta { font-size: 0.8125rem; color: var(--gray-400); }

.portfolio-card { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.portfolio-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.3s; }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; padding: 1.5rem; }
.portfolio-card .overlay h3 { color: #fff; font-size: 1.125rem; }
.portfolio-card .overlay p { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin: 0; }

/* Knowledge base */
.kb-category-card { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); text-align: center; transition: transform 0.3s; }
.kb-category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kb-category-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.kb-category-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.kb-article-list { list-style: none; padding: 0; }
.kb-article-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
.kb-article-list li a { color: var(--gray-700); font-size: 0.9375rem; }
.kb-article-list li a:hover { color: var(--primary); }

/* ============================================================
   FRONTEND HOMEPAGE - MODERN REDESIGN
   ============================================================ */

/* Hero */
.fe-hero {
    position: relative; overflow: hidden;
    color: #fff; padding-bottom: 4rem;
}
.fe-hero-bg {
    position: absolute; inset: 0;
    background: url('/assets/img/hero-breda.jpg') center/cover no-repeat;
}
.fe-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.7);
}
.fe-hero-title {
    font-size: 2.75rem; font-weight: 800; line-height: 1.2;
    color: #fff; margin-bottom: 1.25rem;
}
.fe-gradient-text {
    color: #fff; -webkit-text-fill-color: #fff;
}
.fe-hero-subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.85);
    max-width: 560px; margin-bottom: 2rem; line-height: 1.7;
}
.fe-hero-diagonal {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Product Blocks */
.fe-product-block {
    background: #fff; border-radius: var(--radius);
    padding: 2rem; height: 100%;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}
.fe-product-block:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.fe-product-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: rgba(var(--primary-rgb, 230,0,126), 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary);
    margin-bottom: 1.25rem;
}
.fe-product-block h4 {
    font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem;
}
.fe-product-block p {
    font-size: .9rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1rem;
}
.fe-product-link {
    font-size: .875rem; font-weight: 600; color: var(--primary);
    text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
}
.fe-product-link:hover { color: var(--primary-dark); gap: .5rem; }

@media (max-width: 991.98px) {
    .fe-hero-title { font-size: 2.25rem; }
    .fe-hero-subtitle { font-size: 1rem; }
}
@media (max-width: 575.98px) {
    .fe-hero-title { font-size: 1.75rem; }
    .fe-hero-diagonal { height: 50px; }
}

/* Sections */
.fe-section { padding: 5rem 0; background: #fff; }
.fe-section-dark { background: var(--gray-900); color: #fff; }
.fe-section-light { background: var(--gray-50); }
.fe-section-light-gray { background: #f9fafb; }

/* Waarom CloudXL blocks */
.fe-why-block { text-align: center; padding: 1.5rem; }
.fe-why-block-icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: rgba(var(--primary-rgb, 230,0,126), 0.1);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary);
    margin-bottom: 1rem;
}
.fe-why-block h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.fe-why-block p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 0; }
.fe-section-header {
    text-align: center; margin-bottom: 3.5rem; max-width: 640px; margin-left: auto; margin-right: auto;
}
.fe-section-header h2 { margin-bottom: .75rem; font-size: 2rem; }
.fe-section-header p { color: var(--gray-500); font-size: 1.05rem; line-height: 1.7; }
.fe-section-label {
    display: inline-flex; align-items: center; gap: .25rem;
    background: #dbeafe; color: var(--primary); padding: .3rem .875rem;
    border-radius: 9999px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem;
}
.fe-section-label-light {
    background: rgba(255,255,255,0.1); color: #93c5fd;
}

/* Service cards */
.fe-service-card {
    background: #fff; border-radius: 12px; padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all .3s ease; height: 100%;
}
.fe-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}
.fe-service-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
}
.fe-service-card h4 { font-size: 1.125rem; margin-bottom: .5rem; }
.fe-service-card p { color: var(--gray-500); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.fe-service-link {
    font-size: .875rem; font-weight: 600; color: var(--primary);
    display: inline-flex; align-items: center; gap: .35rem;
    transition: gap .2s;
}
.fe-service-link:hover { gap: .6rem; color: var(--primary-dark); }

/* Why cards */
.fe-why-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 1.75rem;
    transition: all .3s ease;
}
.fe-why-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.fe-why-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(96,165,250,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: #60a5fa; margin-bottom: 1rem;
}
.fe-why-card h5 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.fe-why-card p { color: rgba(255,255,255,0.5); font-size: .875rem; margin: 0; line-height: 1.6; }

/* About stats grid */
.fe-about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.fe-about-stat-card {
    background: #fff; border-radius: 12px; padding: 1.75rem;
    border: 1px solid var(--gray-200);
    text-align: center; transition: transform .3s;
}
.fe-about-stat-card:hover { transform: translateY(-3px); }
.fe-about-stat-card i { font-size: 1.75rem; color: var(--primary); margin-bottom: .75rem; display: block; }
.fe-about-stat-num { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.fe-about-stat-label { font-size: .8125rem; color: var(--gray-500); font-weight: 500; }
.fe-about-stat-accent { background: linear-gradient(135deg, #dbeafe, #bfdbfe); border-color: transparent; }
.fe-about-stat-accent i { color: var(--primary); }
.fe-about-stat-dark { background: var(--gray-900); border-color: transparent; }
.fe-about-stat-dark i, .fe-about-stat-dark .fe-about-stat-num { color: #fff; }
.fe-about-stat-dark .fe-about-stat-label { color: var(--gray-400); }

/* About features */
.fe-about-features { display: flex; flex-direction: column; gap: 1rem; }
.fe-about-feature {
    display: flex; align-items: flex-start; gap: 1rem;
}
.fe-about-feature-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: #d1fae5; color: #059669;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: .875rem;
}

/* Carousel */
.fe-carousel-wrapper { position: relative; }
.fe-carousel {
    display: flex; gap: 1.5rem; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: .5rem;
}
.fe-carousel::-webkit-scrollbar { display: none; }
.fe-carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start; min-width: 280px;
}
.fe-carousel-nav {
    display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem;
}
.fe-carousel-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--gray-300); background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; color: var(--gray-600);
}
.fe-carousel-btn:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

@media (max-width: 991.98px) {
    .fe-carousel-item { flex: 0 0 calc(50% - .75rem); }
}
@media (max-width: 575.98px) {
    .fe-carousel-item { flex: 0 0 85%; }
}

/* Portfolio cards */
.fe-portfolio-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all .3s ease;
}
.fe-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.fe-portfolio-img {
    position: relative; height: 200px; overflow: hidden;
}
.fe-portfolio-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.fe-portfolio-card:hover .fe-portfolio-img img { transform: scale(1.05); }
.fe-portfolio-placeholder {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex; align-items: center; justify-content: center;
}
.fe-portfolio-placeholder > i { font-size: 2.5rem; color: var(--gray-400); }
.fe-portfolio-overlay {
    position: absolute; inset: 0;
    background: rgba(15,23,42,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.fe-portfolio-card:hover .fe-portfolio-overlay { opacity: 1; }
.fe-portfolio-body { padding: 1.25rem; }
.fe-portfolio-body h5 { font-size: 1rem; margin-bottom: .5rem; }
.fe-portfolio-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.fe-tag {
    display: inline-block; padding: .2rem .625rem;
    background: var(--gray-100); color: var(--gray-600);
    border-radius: 9999px; font-size: .75rem; font-weight: 500;
}

/* Blog cards */
.fe-blog-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all .3s ease; height: 100%;
    display: flex; flex-direction: column;
}
.fe-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.fe-blog-img { height: 180px; overflow: hidden; }
.fe-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fe-blog-card:hover .fe-blog-img img { transform: scale(1.05); }
.fe-blog-placeholder {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex; align-items: center; justify-content: center;
}
.fe-blog-placeholder i { font-size: 2rem; color: var(--gray-400); }
.fe-blog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.fe-blog-meta {
    display: flex; align-items: center; gap: .75rem;
    font-size: .8125rem; color: var(--gray-400); margin-bottom: .75rem;
}
.fe-blog-body h5 { font-size: 1rem; margin-bottom: .5rem; }
.fe-blog-body h5 a { color: var(--gray-900); }
.fe-blog-body h5 a:hover { color: var(--primary); }
.fe-blog-body p { color: var(--gray-500); font-size: .875rem; line-height: 1.6; flex: 1; }

/* CTA banner */
.fe-cta { padding: 3rem 0; }
.fe-cta-inner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: 16px; padding: 3rem;
    box-shadow: 0 20px 50px rgba(26,86,219,0.3);
}

/* ============================================================
   DOMAIN BANNER
   ============================================================ */
.fe-domain-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    padding: 4rem 0;
}
.fe-domain-search .form-control {
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
}
.fe-domain-search .form-control::placeholder { color: rgba(255,255,255,0.5); }
.fe-domain-search .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
    color: #fff;
}
.fe-domain-search .btn-primary {
    background: var(--primary-light);
    border: none;
}
.fe-domain-search .btn-primary:hover { background: var(--primary); }
.fe-domain-tlds {
    display: flex; flex-wrap: wrap; gap: .75rem;
}
.fe-tld {
    display: inline-flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,0.9); font-weight: 600; font-size: .9rem;
    background: rgba(255,255,255,0.08); padding: .35rem .75rem;
    border-radius: 6px;
}
.fe-tld small { color: rgba(255,255,255,0.5); font-weight: 400; }

/* ============================================================
   HOSTING CARDS
   ============================================================ */
.fe-hosting-card {
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 2rem 1.5rem;
    text-align: center; height: 100%;
    display: flex; flex-direction: column;
    transition: all .3s ease;
    position: relative;
}
.fe-hosting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.fe-hosting-popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 8px 30px rgba(26,86,219,0.15);
}
.fe-hosting-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    font-size: .75rem; font-weight: 700; padding: .3rem 1rem;
    border-radius: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.fe-hosting-name {
    font-size: 1.1rem; font-weight: 700; color: var(--gray-900);
    margin-bottom: .5rem;
}
.fe-hosting-price {
    font-size: 2rem; font-weight: 800; color: var(--primary);
    margin-bottom: 1.25rem;
}
.fe-hosting-price span {
    font-size: .875rem; font-weight: 500; color: var(--gray-500);
}
.fe-hosting-features {
    list-style: none; padding: 0; margin: 0 0 1.5rem 0;
    text-align: left; flex: 1;
}
.fe-hosting-features li {
    padding: .5rem 0; font-size: .875rem; color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; gap: .5rem;
}
.fe-hosting-features li:last-child { border-bottom: none; }
.fe-hosting-features li i { color: var(--success); font-size: 1rem; }

/* ============================================================
   DATACENTER MAP
   ============================================================ */
.fe-map-container { margin: 0 auto; max-width: 800px; }
.fe-map-world {
    position: relative; background: var(--gray-50);
    border-radius: 12px; border: 1px solid var(--gray-200);
    overflow: hidden; padding: 1rem;
}
.fe-world-svg { width: 100%; height: auto; }
.fe-map-land {
    fill: var(--gray-300); stroke: var(--gray-200); stroke-width: 1;
}
.fe-map-pin {
    position: absolute; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    transform: translate(-50%, -50%);
}
.fe-pin-dot {
    width: 12px; height: 12px; background: var(--primary);
    border-radius: 50%; border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative; z-index: 2;
}
.fe-pin-pulse {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 28px; height: 28px;
    background: rgba(26, 86, 219, 0.2);
    border-radius: 50%;
    animation: fe-pulse 2s ease-out infinite;
}
@keyframes fe-pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
.fe-pin-label {
    margin-top: 4px; font-size: .7rem; font-weight: 600;
    color: var(--gray-700); background: #fff;
    padding: 2px 6px; border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.fe-dc-card {
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 1.5rem; text-align: center;
    transition: all .3s ease;
}
.fe-dc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.fe-dc-flag { font-size: 2rem; margin-bottom: .75rem; }
.fe-dc-card h5 { font-size: 1rem; margin-bottom: .5rem; }
