:root {
    --bg-top: #073b4c;
    --bg-mid: #0f6b7c;
    --bg-accent: #f4a261;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.82);
    --text-main: #16313a;
    --text-muted: #688791;
    --primary: #da5a2a;
    --primary-dark: #b7471d;
    --border-soft: rgba(12, 62, 79, 0.12);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(244, 162, 97, 0.35), transparent 26%),
        linear-gradient(145deg, var(--bg-top), var(--bg-mid));
}

.hero-shell {
    min-height: 100vh;
}

.brand-banner,
.feature-strip,
.form-card,
.summary-card,
.login-card,
.dashboard-header,
.comment-item {
    animation: riseIn 0.55s ease both;
}

.brand-banner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    color: #fff;
}

.display-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    font-weight: 700;
}

.lead-copy {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffd7c2;
}

.feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-chip {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(8px);
}

.form-card,
.login-card,
.summary-card,
.dashboard-header,
.card {
    border-radius: 24px;
    background: var(--surface);
}

.section-label {
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-label {
    font-weight: 500;
}

.form-control,
.form-select {
    min-height: 3rem;
    border-radius: 16px;
    border-color: var(--border-soft);
    padding-inline: 1rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(218, 90, 42, 0.18);
    border-color: rgba(218, 90, 42, 0.5);
}

.submit-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 0;
    border-radius: 18px;
    min-height: 3.4rem;
}

.submit-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #963815);
}

.rating-grid {
    display: grid;
    gap: 1rem;
}

.rating-item {
    padding: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: #fff;
}

.star-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.star-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    border-radius: 14px;
    background: #edf4f6;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-check:checked + .star-label,
.star-label:hover {
    background: linear-gradient(135deg, #ffd166, var(--bg-accent));
    transform: translateY(-1px);
}

.admin-body,
.dashboard-body {
    background: linear-gradient(180deg, #f6fbfc, #e6f2f5);
}

.login-card {
    max-width: 30rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.summary-card {
    padding: 1.25rem;
    height: 100%;
    border: 1px solid var(--border-soft);
}

.summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.9rem;
    line-height: 1.1;
}

.breakdown-item {
    margin-bottom: 1rem;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.comment-stream {
    display: grid;
    gap: 0.9rem;
}

.comment-item {
    padding: 1rem;
    border-radius: 18px;
    background: #f7fafb;
    border: 1px solid #e6edf0;
}

.comment-meta {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.empty-state {
    padding: 1.25rem;
    border-radius: 18px;
    background: #f7fafb;
    color: var(--text-muted);
    text-align: center;
}

table.dataTable tbody td {
    vertical-align: top;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .brand-banner,
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-chip {
        width: 100%;
        text-align: center;
    }

    .star-group {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .summary-card strong {
        font-size: 1.5rem;
    }
}