/* ============================================================
   BaoLucHĐ — Main Stylesheet
   Anti-School-Violence Social Network
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
    /* Primary palette — warm, approachable */
    --primary: #FF6B6B;
    --primary-dark: #E85555;
    --primary-light: #FF8A8A;
    --secondary: #4ECDC4;
    --secondary-dark: #3AB8B0;
    --accent: #FFE66D;
    --accent-dark: #F5D445;

    /* Neutrals */
    --bg: #FFF5F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFF0EA;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;
    --border: #F0E6E0;
    --border-light: #F8F0EB;

    /* Status colors */
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E17055;
    --info: #74B9FF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .12);
    --shadow-glow: 0 0 30px rgba(255, 107, 107, .15);

    /* Layout */
    --navbar-h: 68px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --container: 1100px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -.5px;
}

.nav-logo i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 107, .08);
}

.nav-report {
    background: linear-gradient(135deg, var(--primary), var(--danger));
    color: #fff !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    animation: pulse-report 2s ease-in-out infinite;
}

.nav-report:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-dark), #D63031);
}

@keyframes pulse-report {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, .3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }
}

.btn-register {
    background: var(--secondary);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-register:hover {
    background: var(--secondary-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: .9rem;
}

.nav-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.nav-avatar i {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.nav-logout {
    font-size: .85rem !important;
    color: var(--text-muted) !important;
}

/* ── Mobile toggle ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MAIN CONTENT ── */
.main-content {
    padding-top: calc(var(--navbar-h) + 20px);
    min-height: calc(100vh - 300px);
}

/* ── HERO SECTION ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8E71 40%, var(--accent) 100%);
    border-radius: var(--radius);
    padding: 60px 48px;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.hero p {
    font-size: 1.1rem;
    opacity: .92;
    max-width: 600px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--bg);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .3);
    color: #fff;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--primary), var(--danger));
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.btn-success {
    background: var(--secondary);
    color: #fff;
}

.btn-success:hover {
    background: var(--secondary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: .85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ── STAT CARDS ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: .85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ── POST CARDS ── */
.feed-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

.posts-grid {
    display: grid;
    gap: 20px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 20px;
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.post-card-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.post-card-meta {
    flex: 1;
}

.post-card-author {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
}

.post-card-time {
    font-size: .78rem;
    color: var(--text-muted);
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
}

.post-card-title a {
    color: inherit;
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    font-size: .92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.post-card-actions {
    display: flex;
    gap: 16px;
}

.post-card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.post-card-actions button:hover {
    color: var(--primary);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-story {
    background: #FFEAA7;
    color: #D68910;
}

.badge-awareness {
    background: #DFE6E9;
    color: #636E72;
}

.badge-resource {
    background: #C8F7C5;
    color: #27AE60;
}

.badge-discussion {
    background: #D6EAF8;
    color: #2980B9;
}

/* ── FORMS ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-h) - 100px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: .92rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group label i {
    margin-right: 4px;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    background: var(--bg);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, .1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636E72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-error {
    color: var(--danger);
    font-size: .82rem;
    margin-top: 4px;
}

.form-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: .85rem;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

/* ── REPORT PAGE ── */
.report-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.report-privacy-banner {
    background: linear-gradient(135deg, #00B894, #55E6C1);
    color: #fff;
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.report-privacy-banner i {
    font-size: 1.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.report-privacy-banner h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.report-privacy-banner p {
    font-size: .88rem;
    opacity: .92;
    line-height: 1.5;
}

.report-form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.report-form-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-form-card h2 i {
    color: var(--primary);
}

/* Category selector */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.category-option {
    position: relative;
}

.category-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.category-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    text-align: center;
    font-size: .82rem;
    font-weight: 500;
    transition: all var(--transition);
}

.category-option label i {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.category-option input:checked+label {
    border-color: var(--primary);
    background: rgba(255, 107, 107, .06);
}

.category-option input:checked+label i {
    color: var(--primary);
}

/* Urgency select */
.urgency-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.urgency-option {
    position: relative;
}

.urgency-option input {
    position: absolute;
    opacity: 0;
}

.urgency-option label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.urgency-option input:checked+label.urgency-low {
    border-color: var(--info);
    background: #EBF5FF;
    color: #2980B9;
}

.urgency-option input:checked+label.urgency-medium {
    border-color: var(--warning);
    background: #FFF9E6;
    color: #D68910;
}

.urgency-option input:checked+label.urgency-high {
    border-color: var(--danger);
    background: #FFEAA7;
    color: #D63031;
}

.urgency-option input:checked+label.urgency-critical {
    border-color: #E74C3C;
    background: #FFE0DB;
    color: #C0392B;
}

/* Report success */
.report-success {
    text-align: center;
    padding: 40px 20px;
}

.report-success .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #55E6C1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
    animation: scaleIn .5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.report-success h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.report-success p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.report-code-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    margin: 16px 0;
}

.report-code-display code {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.report-code-display .copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .8rem;
    transition: background var(--transition);
}

.report-code-display .copy-btn:hover {
    background: var(--primary-dark);
}

/* Check status section */
.check-status-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-top: 28px;
}

.check-status-section h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-status-section h3 i {
    color: var(--secondary);
}

.check-status-form {
    display: flex;
    gap: 10px;
}

.check-status-form .form-control {
    flex: 1;
}

.status-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: none;
}

.status-result.show {
    display: block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
}

.status-pending {
    background: #FFEAA7;
    color: #D68910;
}

.status-reviewing {
    background: #D6EAF8;
    color: #2980B9;
}

.status-resolved {
    background: #C8F7C5;
    color: #27AE60;
}

.status-dismissed {
    background: #FADBD8;
    color: #E74C3C;
}

/* ── CREATE POST PAGE ── */
.create-post-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(255, 107, 107, .04);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-light);
    font-size: .9rem;
}

.upload-zone .upload-hint {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── ALERT / TOAST ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #D5F5E3;
    color: #1E8449;
    border: 1px solid #A9DFBF;
}

.alert-error {
    background: #FADBD8;
    color: #C0392B;
    border: 1px solid #F1948A;
}

.alert-warning {
    background: #FEF9E7;
    color: #D68910;
    border: 1px solid #FAD7A0;
}

.alert-info {
    background: #D6EAF8;
    color: #2471A3;
    border: 1px solid #AED6F1;
}

/* ── FOOTER ── */
.footer {
    background: var(--text);
    color: #fff;
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand h3 i {
    color: var(--primary);
}

.footer-brand p {
    color: rgba(255, 255, 255, .65);
    font-size: .88rem;
    line-height: 1.6;
}

.footer-motto {
    font-style: italic;
    margin-top: 10px !important;
    color: var(--accent) !important;
}

.footer-links h4,
.footer-support h4 {
    font-size: .95rem;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .9);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, .6);
    font-size: .88rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.hotline-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, .06);
    border-radius: var(--radius-sm);
}

.hotline-card i {
    color: var(--success);
    font-size: 1.1rem;
    margin-top: 2px;
}

.hotline-card strong {
    display: block;
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 2px;
}

.hotline-card a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .4);
}

/* ── LOADING SPINNER ── */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin .8s ease infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay .spinner {
    width: 44px;
    height: 44px;
    border-width: 3px;
    border-color: var(--border);
    border-top-color: var(--primary);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 14px;
    opacity: .4;
}

.empty-state p {
    font-size: .95rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-user {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 4px;
    }

    .hero {
        padding: 36px 24px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: .95rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .urgency-options {
        flex-direction: column;
    }

    .check-status-form {
        flex-direction: column;
    }

    .report-code-display {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── STATUS BADGES (Reports) ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
}

.status-pending {
    background: #FFF3CD;
    color: #856404;
}

.status-reviewing {
    background: #D1ECF1;
    color: #0C5460;
}

.status-resolved {
    background: #D4EDDA;
    color: #155724;
}

.status-dismissed {
    background: #F8D7DA;
    color: #721C24;
}

/* ── ALERTS ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 500;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* ── VISUAL ENHANCEMENTS (Lively Images) ── */

/* 1. Global Subtle Pattern */
body {
    background-color: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 107, 107, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(78, 205, 196, 0.08) 0px, transparent 50%),
        url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle texture */
    background-attachment: fixed;
}

/* 2. Hero Section with Image */
.hero {
    /* Overlay + Image */
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 142, 113, 0.85) 100%),
        url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center 30%;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* 3. Auth Pages Background */
.auth-page {
    /* Vibrant abstract background */
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
        url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Ensure it covers full viewport height minus navbar */
    min-height: calc(100vh - var(--navbar-h));
    margin-top: -20px;
    /* Offset the main-content padding for full immersion */
    padding-top: 60px;
    padding-bottom: 60px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 4. Report Page visual */
.report-page {
    position: relative;
}

.report-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at top right, rgba(78, 205, 196, 0.1), transparent 400px);
    z-index: -1;
}

.report-form-card {
    border-top: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.95);
}

/* 5. Footer visual */
.footer {
    background:
        linear-gradient(to bottom, rgba(45, 52, 54, 0.95), rgba(45, 52, 54, 1)),
        url('https://www.transparenttextures.com/patterns/stardust.png');
    position: relative;
}

/* 6. Hero Floating Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 230, 109, 0.4) 0%, rgba(255, 230, 109, 0) 70%);
    top: -50px;
    left: -50px;
    animation-duration: 25s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.3) 0%, rgba(78, 205, 196, 0) 70%);
    bottom: -100px;
    right: -50px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}