/* Neo Design System */
body {
    background: #0b1526;
    min-height: 100vh;
}

:root {
    --neo-bg: #eff6fb;
    --neo-card: #fdfefe;
    --neo-shadow-dark: rgba(20, 42, 70, 0.15);
    --neo-shadow-light: rgba(255, 255, 255, 0.9);
    --neo-accent: #00bcd4;
    --neo-text: #223142;
}

.neo-dashboard {
    background: var(--neo-bg);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(15, 24, 43, 0.05);
}

@media (max-width: 767px) {
    .neo-dashboard {
        padding: 1.25rem;
    }
}

.neo-hero {
    border-radius: 28px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    background: var(--neo-card);
    color: var(--neo-text);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border: 1px solid rgba(15, 24, 43, 0.05);
}

.neo-hero__image {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 21 / 9;
    background-image: url('../images/banner_events.jpg');
    background-size: cover;
    background-position: center;
}

.neo-hero__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.neo-hero h1 {
    font-size: clamp(1.75rem, 2.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.neo-hero p {
    max-width: 640px;
    margin-bottom: 0;
    color: rgba(34, 49, 66, 0.8);
}

.neo-profile-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.neo-avatar,
.neo-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.1),
        inset -4px -4px 10px rgba(255, 255, 255, 0.6);
}

.neo-avatar-placeholder {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25), rgba(0, 188, 212, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--neo-text);
}

.neo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.neo-card {
    background: var(--neo-card);
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid rgba(15, 24, 43, 0.05);
    color: var(--neo-text);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.neo-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.neo-card__image {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.neo-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
}

.neo-text-soft {
    color: rgba(34, 49, 66, 0.7);
}

.neo-btn {
    border-radius: 999px;
    border: none;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    justify-content: center;
}

.neo-btn:focus,
.neo-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 20px rgba(0, 188, 212, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.12);
}

.neo-btn-primary {
    background: linear-gradient(135deg, #00bcd4, #00acc1);
    color: #fff;
}

.neo-btn-primary:hover {
    color: #fff;
}

.neo-btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 188, 212, 0.4);
    color: var(--neo-accent);
}

.neo-btn-outline:hover {
    color: var(--neo-accent);
}

.neo-btn-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.neo-btn-danger:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.neo-section+.neo-section {
    margin-top: 2rem;
}

.neo-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.neo-section__header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.neo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(0, 188, 212, 0.12);
    color: var(--neo-accent);
    font-weight: 500;
    width: fit-content;
}

.neo-table-card table {
    width: 100%;
    border-collapse: collapse;
}

.neo-table-card th,
.neo-table-card td {
    padding: 1rem;
    border-bottom: 1px solid rgba(34, 49, 66, 0.08);
}

.neo-table-card th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(34, 49, 66, 0.55);
    font-weight: 600;
}

.neo-table-card tbody tr:last-child td {
    border-bottom: none;
}

.neo-list-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(34, 49, 66, 0.05);
}

.neo-list-item:last-child {
    border-bottom: none;
}


/* Badges Theme */
:root {
    --badges-bg: #0b1526;
    --badges-card: #fdfefe;
    --badges-accent: #00bcd4;
    --badges-muted: rgba(31, 42, 55, 0.7);
}

.badges-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    color: #1f2a37;
}

.badges-hero {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 45px 100px rgba(4, 12, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--badges-card);
    margin-bottom: 2rem;
}

.badges-hero__image {
    width: 100%;
    aspect-ratio: 21 / 9;
    background-image: linear-gradient(120deg, rgba(0, 188, 212, 0.4), rgba(0, 188, 212, 0.05)),
        url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.badges-hero__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 2.4rem;
    gap: 1.25rem;
}

.badges-hero__content h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.badges-hero__content p {
    margin: 0;
    color: var(--badges-muted);
}

.badges-btn {
    border-radius: 999px;
    padding: 0.9rem 1.6rem;
    font-weight: 600;
    border: 1px solid rgba(15, 24, 43, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 249, 0.85));
    color: #1f2a37;
    box-shadow: 0 18px 40px rgba(6, 12, 24, 0.2);
    text-decoration: none;
    display: inline-block;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.badge-card {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: 340px;
    min-width: 260px;
    border-radius: 20px;
    background: var(--badges-card);
    border: 1px solid rgba(15, 24, 43, 0.08);
    box-shadow: 0 15px 35px rgba(4, 12, 24, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 992px) {
    .badge-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .badge-card {
        flex: 1 1 100%;
    }
}

.badge-card__image {
    position: relative;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
}

.badge-card__content {
    padding: 1.25rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.badge-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.badge-card__meta {
    color: var(--badges-muted);
    font-size: 0.95rem;
}

.badge-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.badge-share .btn {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-status {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    width: fit-content;
}

.status-confirmed {
    background: rgba(46, 204, 113, 0.15);
    color: #1e8449;
}

.status-group {
    background: rgba(0, 188, 212, 0.15);
    color: #007888;
}

.status-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #a67c00;
}

.status-rejected {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.status-default {
    background: rgba(31, 42, 55, 0.12);
    color: rgba(31, 42, 55, 0.8);
}

.badge-empty {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .badges-shell {
        padding: 24px 12px 60px;
    }

    .badges-hero__content {
        padding: 1.6rem;
    }
}

/* Profile Theme */
:root {
    --profile-bg: #0b1526;
    --profile-card: #fdfefe;
    --profile-text: #1f2a37;
    --profile-muted: rgba(31, 42, 55, 0.65);
    --profile-accent: #00bcd4;
}

body.profile-body {
    background: var(--profile-bg);
    min-height: 100vh;
    padding: 40px 16px 80px;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--profile-text);
}

.profile-shell {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* For show.php which uses layout but needs shell padding if not provided by layout container */
/* Layout user_default uses .container mt-4. profile-shell has its own padding/width. */
/* We might need to adjust if show.php is wrapped in container. show.php extends layout. */
/* Layout has <div class="container mt-4"> <?= section('content') ?> </div> */
/* show.php has <div class="profile-shell"> ... </div> inside content. */
/* So it's nested. This is fine, but profile-shell sets max-width 960px. */

.profile-hero {
    border-radius: 28px;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.65), rgba(255, 255, 255, 0.35));
    color: #05202a;
    box-shadow: 0 25px 60px rgba(2, 10, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Override for show.php hero style which is slightly different in original code */
.profile-hero.view-mode {
    padding: 0;
    background: var(--profile-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.profile-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    margin-bottom: .5rem;
}

.profile-hero p {
    margin: 0;
    color: rgba(11, 21, 38, 0.8);
}

.profile-hero__image {
    width: 100%;
    aspect-ratio: 21 / 9;
    background-image: linear-gradient(120deg, rgba(0, 188, 212, 0.35), rgba(0, 188, 212, 0.05)),
        url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.profile-hero__content {
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.profile-container {
    background: var(--profile-card);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 35px 80px rgba(6, 12, 24, 0.5);
    border: 1px solid rgba(15, 24, 43, 0.07);
}

.profile-title {
    font-weight: 700;
    font-size: 1.65rem;
    margin-bottom: .5rem;
    color: var(--profile-text);
}

.profile-intro {
    color: var(--profile-muted);
    margin-bottom: 2rem;
}

.profile-avatar-area {
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(0, 188, 212, 0.05);
    border: 1px dashed rgba(0, 188, 212, 0.35);
}

.avatar-preview,
.avatar-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 26px;
    object-fit: cover;
    border: 4px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.avatar-placeholder {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(0, 188, 212, 0.05));
    color: var(--profile-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 600;
}

.profile-section+.profile-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 24, 43, 0.08);
}

.profile-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.profile-section__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.profile-section__subtitle {
    margin: 0;
    color: var(--profile-muted);
}

.profile-container .form-control,
.profile-container .form-select {
    border-radius: 16px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 24, 43, 0.15);
}

.profile-container .form-control:focus,
.profile-container .form-select:focus {
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.15);
}

.btn-profile {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    border: none;
    box-shadow: 0 18px 25px rgba(0, 188, 212, 0.25);
    color: #fff;
}

.btn-profile:hover {
    background: linear-gradient(135deg, #00cfe2, #00a4b8);
    color: #fff;
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    object-fit: cover;
    border: 4px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.profile-avatar-placeholder {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(0, 188, 212, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--profile-text);
}

.profile-status {
    display: inline-flex;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-complete {
    background: rgba(46, 204, 113, 0.2);
    color: #1e8449;
}

.status-incomplete {
    background: rgba(255, 159, 67, 0.2);
    color: #af601a;
}

.btn-edit {
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    border: none;
    color: #fff;
    box-shadow: 0 18px 25px rgba(0, 188, 212, 0.25);
    text-decoration: none;
}

.btn-edit:hover {
    color: #fff;
}

.profile-view-card {
    background: var(--profile-card);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 35px 80px rgba(6, 12, 24, 0.5);
    border: 1px solid rgba(15, 24, 43, 0.07);
    color: var(--profile-text);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.profile-card {
    border-radius: 20px;
    border: 1px solid rgba(15, 24, 43, 0.08);
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.profile-card h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-definition {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.95rem;
}

.profile-definition dt {
    margin: 0;
    font-weight: 600;
    color: var(--profile-muted);
}

.profile-definition dd {
    margin: 0;
    color: var(--profile-text);
}

.profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.profile-chip {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 188, 212, 0.15);
    color: #007888;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-back {
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border: 1px solid rgba(11, 21, 38, 0.12);
    color: var(--profile-text);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 251, 0.9));
    box-shadow: 0 12px 25px rgba(6, 12, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(6, 12, 24, 0.2);
    color: var(--profile-text);
}

@media (max-width: 768px) {
    body.profile-body {
        padding: 24px 12px 60px;
    }

    .profile-container {
        padding: 1.75rem;
    }

    .profile-hero {
        padding: 1.75rem;
    }

    .profile-hero__content {
        padding: 1.6rem;
    }

    .profile-definition {
        grid-template-columns: 1fr;
    }
}

/* Auth Theme */
body.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--neo-bg);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-banner {
    flex: 1;
    background-image: linear-gradient(135deg, rgba(0, 188, 212, 0.4), rgba(11, 21, 38, 0.8)),
        url('../images/banner_login.JPG');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    color: #fff;
}

.auth-banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.auth-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.auth-form-container {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--neo-card);
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neo-text);
    margin-bottom: 2rem;
    display: inline-block;
    text-decoration: none;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--neo-text);
}

.auth-subtitle {
    color: rgba(34, 49, 66, 0.6);
    margin-bottom: 2rem;
}

.neo-form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 24, 43, 0.1);
    background: #f8fafc;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.neo-form-control:focus {
    outline: none;
    border-color: var(--neo-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.neo-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neo-text);
}

.neo-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: rgba(34, 49, 66, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
}

.neo-divider::before,
.neo-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(15, 24, 43, 0.08);
}

.neo-divider::before {
    margin-right: 1rem;
}

.neo-divider::after {
    margin-left: 1rem;
}

@media (max-width: 992px) {
    .auth-banner {
        display: none;
    }

    .auth-form-container {
        flex: 1;
        background: var(--neo-bg);
    }

    .auth-card {
        background: var(--neo-card);
        padding: 2rem;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
}