:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --dark: #0f172a;
    --dark-2: #111827;
    --light: #f8fafc;
    --muted: #64748b;
    --success: #16a34a;
    --messenger: #0084ff;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7fb;
    color: #1e293b;
    line-height: 1.6;
    font-size: 16px;
}

.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
}

.top-bar .container,
.navbar .container,
.section .container,
.footer .container,
.hero .container {
    width: min(92%, 1200px);
    margin: 0 auto;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

.navbar {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
    padding: 14px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: 0.4px;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    margin-left: 8px;
}

.nav-link:hover {
    color: #cfe2ff !important;
}

.hero {
    min-height: 92vh;
    background:
        linear-gradient(rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.64)),
        url('../images/vanpri.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 70px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    color: #fff;
    font-size: 3.2rem;
    line-height: 1.1;
    margin: 0 0 18px;
    font-weight: 800;
    max-width: 760px;
}

.hero p {
    color: #e2e8f0;
    font-size: 1.08rem;
    max-width: 700px;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.card-box {
    background: rgba(255,255,255,0.98);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.card-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.7rem;
    color: var(--dark);
}

.section {
    padding: 85px 0;
}

.section-alt {
    background: #eef4fb;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 38px;
    font-size: 1rem;
}

.services-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card,
.review-card,
.dashboard-card,
.stat-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 24px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.review-card:hover,
.dashboard-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.service-card h5,
.review-card h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 800;
}

.service-card p,
.review-card p {
    margin-bottom: 0;
    color: #475569;
    font-size: 15px;
}

.review-stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-name {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    color: var(--dark);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d7e1ec;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-main,
.btn-outline-main,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    font-size: 15px;
}

.btn-main,
button {
    background: var(--primary);
    color: #fff;
}

.btn-main:hover,
button:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline-main {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-main:hover {
    background: #fff;
    color: var(--dark);
}

.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.call-btn {
    background: var(--success);
}

.msg-btn {
    background: var(--messenger);
}

.footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 36px 0;
}

.footer p {
    margin: 6px 0;
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.64)),
        url('../images/bannerfan.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th,
table td {
    padding: 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

table th {
    background: var(--dark-2);
    color: #fff;
}

@media (max-width: 1100px) {
    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-main,
    .btn-outline-main {
        width: 100%;
    }

    .card-box {
        padding: 24px;
    }
}