@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #31b7db;
    --dark: #252930;
    --light: #ebebeb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Geometry */
.bg-geometry {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(49, 183, 219, 0.05); /* very subtle */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(49, 183, 219, 0.15);
    animation: float 20s infinite linear;
    box-shadow: 0 0 40px rgba(49, 183, 219, 0.1);
}

.shape-1 {
    width: 300px; height: 300px;
    border-radius: 30px;
    top: 10%; left: -100px;
    transform: rotate(45deg);
    animation-duration: 35s;
}

.shape-2 {
    width: 450px; height: 450px;
    border-radius: 50%;
    bottom: -150px; right: -50px;
    animation-direction: reverse;
    animation-duration: 40s;
}

.shape-3 {
    width: 200px; height: 200px;
    border-radius: 40%;
    top: 30%; right: 10%;
    animation-duration: 25s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -50px) rotate(120deg); }
    66% { transform: translate(-30px, 40px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    position: relative;
    z-index: 10;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0px 0px 8px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Sidebar Menu */
.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* Must always be above the sidebar (z-index: 20) so it stays clickable when open */
    z-index: 100;
    padding: 5px;
    position: relative;
}

.hamburger span {
    width: 35px;
    height: 4px;
    background-color: var(--light);
    border-radius: 4px;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -8px); }

.sidebar {
    position: fixed;
    top: 0; right: -350px;
    width: 350px; height: 100vh;
    background: rgba(37, 41, 48, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 20;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.sidebar.open {
    right: 0;
}

/* Row at the top of the sidebar holding the close (X) button */
.sidebar-top {
    display: flex;
    justify-content: flex-end;
    padding: 25px 30px 10px;
}

/* The X-shaped close button inside the sidebar */
.sidebar .hamburger {
    margin: 0;
    z-index: 21;
    cursor: pointer;
}

.sidebar .hamburger span {
    background-color: var(--light);
}

.sidebar a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px 50px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    opacity: 0.8;
}

.sidebar a:hover {
    background: rgba(49, 183, 219, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
    opacity: 1;
    padding-left: 60px;
}

/* Main Layout */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 28px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    max-width: 650px;
    width: 100%;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

h1 span {
    color: var(--primary);
    position: relative;
}

.subtitle {
    margin-bottom: 40px; 
    color: rgba(235,235,235,0.7);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    color: var(--dark);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 16px 40px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(49, 183, 219, 0.3);
    margin-bottom: 20px;
    width: 100%;
}

.btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(49, 183, 219, 0.5);
    background-color: #38c8f0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(1.02) translateY(-2px);
}

/* Login & Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(235,235,235,0.9);
    padding-left: 5px;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--light);
    font-family: inherit;
    font-size: 1.05rem;
    padding: 16px 20px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.input-group input::placeholder {
    color: rgba(235, 235, 235, 0.3);
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 183, 219, 0.2);
}

.auth-form .btn {
    margin-top: 10px;
    margin-bottom: 0;
}
                

/* Roles Layout */
.roles-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.role-card {
    background-color: var(--primary);
    border-radius: 20px;
    padding: 60px 40px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(49, 183, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.role-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.role-card:hover::after {
    left: 150%;
}

.role-card:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 40px rgba(49, 183, 219, 0.5);
    background-color: #38c8f0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(235, 235, 235, 0.4);
    z-index: 10;
}

/* ── Admin Management Features ── */
.admin-toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(49, 183, 219, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    background-color: #38c8f0;
    box-shadow: 0 6px 18px rgba(49, 183, 219, 0.4);
}

.btn-danger {
    background-color: transparent;
    color: #ff5555;
    border: 1px solid #ff5555;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background-color: #ff5555;
    color: white;
}

.select-filter {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--light);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    cursor: pointer;
}

.select-filter option {
    background: var(--dark);
    color: var(--light);
}

.card-content-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.drag-handle {
    cursor: grab;
    color: rgba(235,235,235,0.3);
    font-size: 24px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    margin-left: auto; /* Push to right extreme */
}

/* ──────────────────────────────────────────
   Admin Custom Glassmorphism Checkbox
─────────────────────────────────────────── */
.card-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
    margin-right: 15px;
}

.card-checkbox:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(49, 183, 219, 0.3);
}

.card-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(49, 183, 219, 0.5);
}

.card-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark);
    font-weight: 900;
    font-size: 14px;
}

/* ──────────────────────────────────────────
   Admin Edit/Delete Neon Image Buttons
─────────────────────────────────────────── */
.btn-edit-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(49, 183, 219, 0.2); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(49, 183, 219, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 5px;
    padding: 8px;
}

.btn-edit-icon img {
    width: 130%;
    height: 130%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(49, 183, 219, 0.6));
}

.btn-edit-icon:hover {
    transform: scale(1.15) translateY(-3px);
    background: rgba(49, 183, 219, 0.35);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(49, 183, 219, 0.4);
}

.btn-edit-icon:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) brightness(1.3);
}

.btn-delete-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(225, 29, 72, 0.2); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(225, 29, 72, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 10px;
    padding: 8px;
}

.btn-delete-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(225, 29, 72, 0.5));
}

.btn-delete-icon:hover {
    transform: scale(1.15) translateY(-3px);
    background: rgba(225, 29, 72, 0.35);
    border-color: #ff5555;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
}

.btn-delete-icon:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 85, 85, 0.9)) brightness(1.3);
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

/* Rediseño Botón Masivo - Que combine con el estilo imagen */
.btn-danger {
    background-color: #e11d48; /* Red intenso solido */
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.btn-danger img {
    width: 20px;
}

.btn-danger:hover {
    background-color: #be123c;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4);
    transform: translateY(-2px);
}

.drag-handle:hover {
    color: var(--primary);
}

.drag-handle:active {
    cursor: grabbing;
}

.event-card.dragging {
    opacity: 0.2; /* El elemento original se vuelve muy tenue */
}

/* SortableJS Classes */
.sortable-chosen {
    background: rgba(49, 183, 219, 0.15) !important;
    border-color: var(--primary) !important;
    transform: scale(1.02);
}

.sortable-ghost {
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px dashed var(--primary) !important;
}

.sortable-drag {
    opacity: 1 !important;
    transform: rotate(2deg) scale(1.05);
    background: rgba(37, 41, 48, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 30px rgba(49, 183, 219, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    z-index: 10000 !important;
    transition: none !important; /* Esencial para eliminar el lag visual */
    cursor: grabbing !important;
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.importance-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.importance-high { background: rgba(255, 85, 85, 0.2); color: #ff5555; }
.importance-medium { background: rgba(255, 184, 108, 0.2); color: #ffb86c; }
.importance-low { background: rgba(80, 250, 123, 0.2); color: #50fa7b; }

/* Modal Glassmorphism */
dialog {
    margin: auto;
    background: rgba(37, 41, 48, 0.75);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    color: var(--light);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content h3, dialog h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--light);
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 4px;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--light);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(49, 183, 219, 0.3);
}

.form-input option {
    background: #2d323a;
    color: var(--light);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.modal-actions .btn {
    width: auto;
    padding: 10px 20px;
    margin: 0;
    font-size: 1rem;
}

/* Page content for internal pages */
.page-content {
    text-align: left;
}

.page-content p {
    color: rgba(235,235,235,0.8);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ──────────────────────────────────────────
   Universal Events Wrapper & Cards Styles 
   (Shared by eventos.html & admin.html)
─────────────────────────────────────────── */
.events-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.events-header h1 {
    margin-bottom: 0;
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--light);
    padding: 9px 18px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: rgba(49, 183, 219, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.filter-btn .arrow {
    font-size: 0.75rem;
    line-height: 1;
}

/* Event list scroll */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 6px;
    padding-bottom: 40px; /* Evita que la sombra del último elemento se corte y parezca una línea */
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior-y: contain;
}

.events-list::-webkit-scrollbar {
    width: 6px;
}
.events-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}
.events-list::-webkit-scrollbar-thumb {
    background: rgba(49, 183, 219, 0.35);
    border-radius: 10px;
}
.events-list::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 183, 219, 0.6);
}

/* Single event card container */
.event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 20px;
    padding: 22px 30px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, border-color 0.3s, box-shadow 0.3s;
    gap: 20px;
    cursor: grab;
    user-select: none; /* Evita seleccionar texto/imágenes durante el drag */
}

.event-card:active {
    cursor: grabbing;
}

.event-card:hover {
    background: rgba(49, 183, 219, 0.08);
    border-color: rgba(49, 183, 219, 0.4);
    transform: scale(1.015); /* Eliminamos el translateX para evitar el bug de la línea azul */
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.event-card.past {
    opacity: 0.42;
    filter: saturate(0.3);
}

.event-card.past:hover {
    opacity: 0.6;
    filter: saturate(0.5);
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1; /* Para que en Admin la checkbox no lo empuje mal */
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--light);
    line-height: 1.3;
}

.event-category {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-dates {
    text-align: right;
    flex-shrink: 0;
}

.event-date-range {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--light);
    white-space: nowrap;
}

.event-date-range .date-sep {
    color: rgba(235,235,235,0.4);
    margin: 0 6px;
}

.event-status {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
    text-align: right;
}

.event-status.active-status { color: #4ade80; }
.event-status.upcoming-status { color: var(--primary); }
.event-status.past-status { color: rgba(235,235,235,0.4); }

.no-results {
    text-align: center;
    color: rgba(235,235,235,0.4);
    padding: 60px 0;
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
══════════════════════════════════════════ */
@media (max-width: 900px) {
    header {
        padding: 20px 30px;
    }

    .container {
        padding: 45px 35px;
    }

    h1 {
        font-size: 2.3rem;
    }

    .role-card {
        padding: 50px 25px;
        font-size: 1.5rem;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
══════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Header */
    header {
        padding: 16px 20px;
    }

    .logo img {
        height: 42px;
    }

    /* Sidebar goes full-width on small screens */
    .sidebar {
        width: 100vw;
        right: -100vw;
    }

    .sidebar a {
        font-size: 1.2rem;
        padding: 18px 35px;
    }

    .sidebar a:hover {
        padding-left: 45px;
    }

    /* Main container */
    main {
        padding: 16px;
        justify-content: flex-start;
        padding-top: 30px;
    }

    .container {
        padding: 35px 22px;
        border-radius: 18px;
    }

    /* Typography */
    h1 {
        font-size: 1.9rem;
        margin-bottom: 14px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* Buttons */
    .btn {
        font-size: 1.05rem;
        padding: 14px 24px;
    }

    /* Roles grid — stack vertically */
    .roles-grid {
        flex-direction: column;
        gap: 18px;
    }

    .role-card {
        padding: 40px 20px;
        font-size: 1.4rem;
        border-radius: 16px;
    }

    /* Footer */
    footer {
        padding: 20px;
        font-size: 0.85rem;
    }

    /* Page content */
    .page-content p {
        font-size: 1rem;
    }

    /* Reduce background shapes on mobile for performance */
    .shape-1 { width: 180px; height: 180px; }
    .shape-2 { width: 260px; height: 260px; }
    .shape-3 { width: 130px; height: 130px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Very small (≤ 380px)
══════════════════════════════════════════ */
@media (max-width: 380px) {
    h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 28px 16px;
    }

    .role-card {
        padding: 30px 16px;
        font-size: 1.2rem;
    }
}
