@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

/* Design tokens */
:root {
    /* Colors */
    --color-bg: #0b1021;
    --color-surface: #0f172a;
    --color-surface-2: #111827;
    --color-card: rgba(255, 255, 255, 0.04);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-primary: #2563eb;
    --color-accent: #22d3ee;
    --color-highlight: #f59e0b;
    --color-dark: #0f172a;
    --color-text: #e5e7eb;
    --color-muted: #cbd5e1;
    --color-light: #ffffff;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.28);

    /* Typography */
    --font-size-base: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
    --font-size-h1: clamp(2rem, 1.6rem + 2vw, 2.8rem);
    --font-size-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
    --line-height-base: 1.6;
    --line-height-heading: 1.2;

    /* Layout */
    --container-max: 72rem;
    --avatar-size: 80px;

    /* Mobile spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-6: 24px;
    --sp-8: 32px;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-modal: 1200;

    /* Motion */
    --motion-fast: 120ms;
    --motion-base: 200ms;
    --motion-gentle: 280ms;
    --motion-modal: 320ms;
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    /* Prevent aggressive word breaking that distorts mobile layout */
    overflow-wrap: break-word;
}

html,
body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.12), transparent 30%),
        var(--color-bg);
    color: var(--color-text);
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-heading);
}

h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-heading);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(12px, 4vw, 16px);
}

body.loaded {
    opacity: 1;
}

.hidden {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
}

a,
a:visited {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

a.link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.link-inline {
    color: inherit;
}

a.link-action {
    color: var(--color-primary);
    font-weight: 600;
}

a.link-muted {
    color: var(--color-text);
    opacity: 0.7;
}

a.link-external::after {
    content: "↗";
    margin-left: 0.25rem;
    font-size: 0.85em;
}

a.link-tap {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

a.link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-dark);
    color: var(--color-light);
    padding: 0.5rem 1rem;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Utility spacing */
.u-p-1 {
    padding: var(--sp-1) !important;
}

.u-p-2 {
    padding: var(--sp-2) !important;
}

.u-p-3 {
    padding: var(--sp-3) !important;
}

.u-mb-1 {
    margin-bottom: var(--sp-1) !important;
}

.u-mb-2 {
    margin-bottom: var(--sp-2) !important;
}

.u-mb-3 {
    margin-bottom: var(--sp-3) !important;
}

/* Elevation */
.u-elev-1 {
    box-shadow: var(--shadow-sm);
}

.u-elev-2 {
    box-shadow: var(--shadow-md);
}

/* Truncation */
.u-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.u-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Interaction */
.animate-press {
    transition: transform var(--motion-fast) var(--ease-standard),
        opacity var(--motion-fast) var(--ease-standard);
}

.animate-press:active {
    transform: scale(0.98);
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Navigation --- */
.nav-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

a.nav-logo,
a.nav-logo:visited {
    color: #fff;
    text-decoration: none;
}

a.nav-logo:hover {
    color: #fff;
    text-decoration: underline;
}

.nav-logo .title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.logo-main {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links a {
    color: var(--color-light);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease, color 0.2s ease, transform var(--motion-fast) var(--ease-standard);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 211, 238, 0.18));
    color: var(--color-light);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.95);
        padding: 0.75rem 1rem 1rem;
        display: none;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
    }
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.avatar {
    width: 48px;
    height: 48px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: 1rem;
}

.speaker-avatars {
    display: inline-flex;
    gap: var(--space-xs);
    vertical-align: middle;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--color-surface);
    color: var(--color-light);
    min-width: 150px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    z-index: var(--z-dropdown);
}

.dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-light);
    text-decoration: none;
}

.dropdown a:hover {
    background-color: var(--color-surface-2);
    color: var(--color-accent);
}

.user-menu.open .dropdown {
    display: block;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin: 0.5rem 0 1rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--color-light);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--color-dark);
    text-decoration: none;
}

.breadcrumbs a {
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.breadcrumbs a:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.breadcrumbs .sep {
    margin: 0 0.25rem;
    color: var(--color-primary);
}

.breadcrumbs:empty {
    display: none;
}

.sub-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sub-nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
}

.icon {
    margin-right: 0.25rem;
}

.metrics-health {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.metrics-health .icon {
    margin-right: 0.25rem;
}

.metrics-health.ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.metrics-health.stale {
    background: #fff3e0;
    color: #ef6c00;
}

.metrics-health.empty {
    background: #eeeeee;
    color: #616161;
}

@media (max-width: 600px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-dark);
        color: var(--color-light);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .user-menu {
        width: 100%;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        background-color: var(--color-dark);
        color: var(--color-light);
    }

    .dropdown a {
        color: var(--color-light);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .dropdown a:hover {
        background-color: var(--color-accent);
        color: var(--color-light);
    }
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 1rem;
}

/* --- Generic components --- */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    animation: fadeInUp 0.3s ease;
}

.page-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--color-light);
    text-align: left;
    letter-spacing: -0.02em;
}

.card-title {
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-light);
    text-decoration: none;
    padding: calc(var(--space-sm) + 2px) calc(var(--space-md) + 4px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    font-weight: 600;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), filter var(--motion-fast) var(--ease-standard);
}

.btn:visited,
.btn:hover,
.btn:focus {
    color: var(--color-light);
    text-decoration: none;
}

.btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--color-surface-2);
    color: var(--color-light);
    border-color: var(--color-border);
}


.agenda-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.agenda-day summary {
    font-weight: bold;
    cursor: pointer;
    margin: 0.5rem 0;
}

/* Tabular layout for event agenda */
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.agenda-table th,
.agenda-table td {
    padding: 0.5rem;
    overflow-wrap: normal;
}

.agenda-title .icon {
    margin-right: 0.25rem;
}

.agenda-title a {
    color: var(--color-primary);
}

.agenda-title .agenda-title-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {

    /* Allow agenda table to adapt to narrow screens */
    .agenda-table colgroup col {
        width: auto !important;
    }

    .agenda-table th,
    .agenda-table td {
        padding: 0.25rem;
    }
}

.view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.view-toggle .btn.active {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.agenda-grid-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.agenda-grid-table th,
.agenda-grid-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    vertical-align: top;
}

.agenda-slot {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 0.25rem;
}

.agenda-slot-speakers {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.action-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.table th {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* Allow agenda table to size columns based on content */
.table.agenda-table {
    table-layout: auto;
}

/* Prevent truncation of scenario names in agenda table */
.agenda-location {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* --- Admin speaker list --- */
.speaker-list,
.talk-list {
    list-style: none;
    margin: 10px 0px;
    padding-left: 1rem;
    border-left: 2px solid #eee;
}

.speaker-card {
    margin-bottom: 1rem;
}

.speaker-card .speaker-photo {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    object-fit: cover;
}

.speaker-form,
.talk-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon {
    font-size: 1.25rem;
}

.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.field input {
    width: 100%;
}

.field textarea {
    width: 100%;
}

.talk-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.inline-form {
    display: inline;
}

.item-id {
    font-size: 0.85rem;
    color: #6b7280;
}

/* --- Home page --- */
.box {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
}

.project-header {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1rem;
}

@media (max-width: 900px) {
    .project-header {
        grid-template-columns: 1fr;
    }

    .sidebar-actions {
        flex-direction: row;
        gap: .5rem;
    }
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .5rem;
    padding-top: .5rem;
    border-bottom: 1px solid var(--color-border);
}

.box-header .title {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: .2px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--muted-foreground, #6b7280);
    font-size: .95rem;
}

.meta strong {
    color: var(--brand-text, #0b5cab);
}

.note {
    background: rgba(0, 120, 255, .06);
    border: 1px solid rgba(0, 120, 255, .12);
    border-radius: .75rem;
    padding: .1rem .5rem;
    line-height: 1.5;
}

p.note {
    margin-top: .5rem;
}

.sidebar-actions {
    display: flex;
    gap: 0.2rem;
    flex-direction: column;
    justify-content: center;
}

.release-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem .9rem;
    border-radius: .75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
    transition: all .2s ease;
}

.side-btn.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.side-btn.secondary {
    background: var(--color-surface-2);
    color: var(--color-light);
    border-color: var(--color-border);
}

.side-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}

.side-btn:focus-visible {
    outline: 2px solid var(--brand, #0ea5e9);
    outline-offset: 2px;
}

/* Hero */
.hero {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: clamp(1rem, 2vw, 1.75rem);
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.12), transparent 35%),
        var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-md);
}

.hero__content {
    display: grid;
    gap: 1rem;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero h1 {
    margin: 0;
    color: var(--color-light);
}

.hero .lead {
    color: var(--color-muted);
    margin: 0;
    max-width: 46ch;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-light);
    padding: calc(var(--space-sm) + 2px) calc(var(--space-md) + 4px);
    border-radius: var(--radius-md);
    transition: border-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}

.btn-ghost:hover {
    border-color: rgba(34, 211, 238, 0.6);
    color: var(--color-light);
    transform: translateY(-1px);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.25rem;
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.stat-value {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-light);
}

.stat-hint {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.hero__panel {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.surface {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.home-section {
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-light);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.section-heading .section-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--color-muted);
}

.no-events {
    margin-top: 2rem;
}

/* Timeline of upcoming events on the home page */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    opacity: 0.8;
}

.timeline-label {
    font-weight: 700;
    margin-left: 0;
    color: var(--color-muted);
}

.timeline-item {
    position: relative;
    margin-top: 2rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.6rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
}

.event-row {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.event-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.event-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: white;
}

.no-logo {
    color: var(--color-light);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem;
}

.event-main {
    flex: 1;
    min-width: 200px;
}

.event-description {
    margin: 0.5rem 0;
    color: var(--color-muted);
}

.event-countdown {
    text-align: right;
    min-width: 120px;
}

.days-left {
    font-weight: bold;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .event-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-countdown {
        text-align: left;
        align-self: flex-start;
    }
}

/* Shared event text styles */
.event-name {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--color-light);
}

.event-name a {
    color: var(--color-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.event-name a:visited {
    color: var(--color-light);
}

.event-name a::after {
    content: " \2192";
    margin-left: 0.25rem;
    font-size: 0.9rem;
}

.event-date {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0 0 0.25rem;
}

/* Past events grayscale styling */
.timeline.past-events::before {
    background-color: #9e9e9e;
}

.timeline-item.past::before {
    background-color: #9e9e9e;
}

.event-row.past {
    filter: grayscale(100%);
}

/* Event detail header */
.event-summary .event-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-summary .event-logo {
    max-width: 150px;
    height: auto;
}

.event-summary .event-info {
    flex: 1;
}

.event-datetime {
    font-weight: bold;
    margin: 0.5rem 0;
}

.event-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    color: var(--color-light);
}

.event-links a:visited {
    text-decoration: none;
    color: var(--color-light);
}

@media (max-width: 600px) {
    .event-summary .event-header {
        flex-direction: column;
        text-align: center;
    }

    .event-links {
        justify-content: center;
    }
}

/* Speaker detail header */
.speaker-summary .speaker-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.speaker-summary .speaker-photo {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    object-fit: cover;
}

.speaker-summary .speaker-info {
    flex: 1;
}

.speaker-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

@media (max-width: 600px) {
    .speaker-summary .speaker-header {
        flex-direction: column;
        text-align: center;
    }

    .speaker-links {
        justify-content: center;
    }
}

/* Grid of scenario cards on event detail */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 0;
}

.scenario-card {
    background-color: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.scenario-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.scenario-card .btn {
    margin-top: auto;
    align-self: flex-start;
    background-color: var(--color-primary);
}

.talk-item {
    background-color: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.talk-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.talk-item .talk-time {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.talk-item .btn {
    margin-top: auto;
    align-self: flex-start;
}

footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: auto;
}

@keyframes flow {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile talk cards */
.event-group {
    margin-bottom: 2rem;
}

.day-title {
    margin: 1rem 0 0.5rem;
    color: var(--color-dark);
}

.talks-day {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 600px) {
    .talks-day {
        flex-direction: column;
    }
}

.talk-card h5 {
    margin: 0 0 0.25rem;
    color: var(--color-dark);
}

.talk-card .talk-event {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.talk-card .talk-time,
.talk-card .talk-scenario {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.talk-card .attendance-icon {
    margin-right: 0.25rem;
}

.talk-card .state-icon {
    margin-left: 0.25rem;
}

.talk-card .motivation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.talk-card .motivation-badge {
    background: #e0e0e0;
    color: #333;
    cursor: pointer;
}

.talk-card .motivation-select {
    width: 100%;
}

.talk-card .talk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.talk-card .talk-actions .rating-label {
    margin-right: 0.25rem;
}

.talk-card .talk-actions .rating-select {
    min-width: 120px;
}

.talk-card .rating-select {
    width: 100%;
}

@media (min-width: 600px) {

    .talk-card .motivation-select,
    .talk-card .rating-select {
        width: auto;
    }
}

/* Compact talk row for agenda view */
.talk-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid #ddd;
}

.talk-row .talk-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
}

.talk-row .talk-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.talk-row .talk-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.talk-row .talk-title a {
    color: inherit;
    text-decoration: none;
}

.talk-row .talk-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.talk-row .talk-actions>* {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.talk-row .motivation-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.talk-row .motivation-badge {
    background: #e0e0e0;
    color: #333;
    cursor: pointer;
}

.talk-row .motivation-select,
.talk-row .rating-select {
    width: auto;
}

.talk-row .attendance-icon {
    margin-right: 0.25rem;
}

@media (max-width: 600px) {
    .talk-row {
        grid-template-columns: auto 1fr;
    }

    .talk-row .talk-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (min-width: 600px) {

    .talk-row .motivation-select,
    .talk-row .rating-select {
        width: auto;
    }
}

.filter {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.filter .btn {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
}

.badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.badge.info {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.35);
}

.badge.past {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.35);
}

.badge.event-type {
    background: rgba(34, 211, 238, 0.12);
    color: #a5f3fc;
    border: 1px solid rgba(34, 211, 238, 0.32);
    margin-bottom: 0;
}

.badge.event-type.event-type-hackathon {
    background: rgba(168, 85, 247, 0.12);
    color: #e9d5ff;
    border-color: rgba(168, 85, 247, 0.32);
}

.badge.event-type.event-type-meetup {
    background: rgba(234, 179, 8, 0.12);
    color: #fef08a;
    border-color: rgba(234, 179, 8, 0.32);
}

.badge.event-type.event-type-workshop {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.32);
}

.badge.event-type.event-type-conference {
    background: rgba(37, 99, 235, 0.12);
    color: #bfdbfe;
    border-color: rgba(37, 99, 235, 0.32);
}

.badge.event-type.event-type-other {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.32);
}

.event-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
    margin: 0.25rem 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-light);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1100;
}

.notification.success {
    border-left: 4px solid #4caf50;
}

.notification.info {
    border-left: 4px solid #2196f3;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* --- Admin layout coherence --- */
.admin-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.admin-card {
    background: var(--color-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.admin-actions .btn,
.admin-actions form {
    width: 100%;
}

.admin-actions form {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.admin-actions input[type=\"file\"] {
    flex: 1 1 auto;
}

.admin-table-wrapper {
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 0.65rem;
}

.admin-table th {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: left;
}

.admin-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.admin-table .action-group {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-form {
    display: grid;
    gap: var(--space-sm);
}

.admin-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #d0d7de;
    border-radius: var(--radius-sm);
}

.admin-form fieldset {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin: var(--space-sm) 0;
}

.admin-form legend {
    font-weight: 600;
    padding: 0 var(--space-xs);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
}

.admin-card button:not(.btn) {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-height: 2.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.admin-card button:not(.btn):hover {
    background-color: var(--color-accent);
}

.admin-card button:not(.btn):active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-dark);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* --- Admin metrics redesign --- */
.metrics-toolbar {
    position: sticky;
    top: 0;
    background: var(--color-light);
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.range-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metrics-toolbar select,
.metrics-toolbar input {
    padding: var(--space-sm);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    flex: 1 1 150px;
}

.metrics-toolbar .btn,
.metrics-toolbar .chip {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    min-height: 2.5rem;
    font-size: 0.875rem;
}

.chip {
    border: 1px solid var(--color-primary);
    background: var(--color-light);
    cursor: pointer;
    white-space: nowrap;
}

.chip:hover,
.chip:focus {
    background: var(--color-bg);
}

.chip.active {
    background: var(--color-primary);
    color: var(--color-light);
}

.chip-event {
    background: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

.chip-talk {
    background: #2e7d32;
    color: var(--color-light);
    border-color: #2e7d32;
}

.chip-break {
    background: #616161;
    color: var(--color-light);
    border-color: #616161;
}

.chip-announcement {
    background: #ff9800;
    color: #000;
    border-color: #ff9800;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-block: var(--space-sm);
}

.talk-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-dark);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.talk-detail .talk-title {
    -webkit-line-clamp: 3;
}

.talk-description {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.cards-grid {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-sm);
}

.kpi {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-xs) 0;
}

.kpi .label {
    display: block;
}

.kpi .value {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: right;
}

.list {
    display: flex;
    flex-direction: column;
}

.list-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.list-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--color-bg);
}

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

.list-row .metric {
    text-align: right;
}

/* Table-like list for multi-column metrics */
.list-table .list-header,
.list-table .list-row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-sm);
    align-items: center;
}

.list-table .title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status {
    margin-bottom: 0.5rem;
}

.badge {}

.auth .login-button {
    display: none !important;
}

/* Now box styles */
.now-box.box {
    border-radius: 16px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.now-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .now-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.now-event {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
}

.now-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.now-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.now-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fafafa;
    border-radius: 10px;
    padding: 10px 12px;
}

.row-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.chip {
    font-size: .75rem;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
    align-self: flex-start;
}

.chip-last {
    background: #eee;
    color: #6b7280;
}

.chip-current {
    background: #e6f7ea;
    color: #1b7f38;
}

.chip-next {
    background: #e9f1ff;
    color: #1b4fbd;
}

/* Banners and compact hero */
.banner {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    margin: 12px 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.banner.success {
    border-color: #16a34a;
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.08);
}

.banner.warning {
    border-color: #f59e0b;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.08);
}

.banner.info {
    border-color: #22d3ee;
    color: #c3f0ff;
    background: rgba(34, 211, 238, 0.08);
}

.banner .btn.inline {
    margin-left: auto;
}

.hero--compact {
    padding: 1.5rem 0;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(34, 211, 238, 0.08));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

/* Community */
.community-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.community-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.community-card__header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.community-card__header .avatar.xl,
.community-card__header .avatar.placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.community-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.link-badge {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-light);
}

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-light);
}

/* Events and projects */
.event-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.event-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

.event-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.event-card__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.event-card__links {
    display: flex;
    gap: 8px;
}

.event-card__tags {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
}

/* Profile redesign */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.profile-banners {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.hero-content h1 {
    font-size: clamp(2.3rem, 2rem + 1vw, 3rem);
    margin: 0.25rem 0;
}

.hero-subtitle {
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-summary {
    margin-top: var(--space-md);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.stat-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    font-size: 2.3rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.stat-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.profile-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.panel {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    min-height: 180px;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.talks-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.talks-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.talk-groups {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.talk-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
}

.talk-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.day-block {
    margin-bottom: var(--space-md);
}

.talk-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-sm);
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.5rem;
}

.talk-row:last-child {
    margin-bottom: 0;
}

.talk-time span {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.talk-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.talk-title a {
    font-weight: 600;
    color: var(--color-light);
}

.speaker-avatars {
    display: flex;
    gap: 0.35rem;
}

.talk-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}

.motivation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.motivation-select,
.rating-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-light);
    padding: 0.25rem 0.5rem;
}

.empty-state {
    color: var(--color-muted);
    margin: var(--space-md) 0;
}

.filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--color-light);
}

/* Profile GitHub section */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.integration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

.integration-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Home (landing) --- */
.hd-home {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(1.5rem, 2vw, 3rem) 0 3rem;
}

.hd-page {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 3vw, 1.5rem);
}

.hd-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 211, 238, 0.12));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.hd-hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.5rem, 3vw, 3rem);
}

.hd-hero-copy {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.hd-hero-title {
    margin: 0;
    font-size: clamp(2rem, 2vw + 1.25rem, 2.75rem);
    line-height: var(--line-height-heading);
    color: var(--color-light);
}

.hd-hero-subtitle {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.hd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
    border: 1px solid transparent;
}

.hd-btn:hover,
.hd-btn:focus-visible {
    transform: translateY(-1px);
    text-decoration: none;
}

.hd-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #1d4ed8);
    color: var(--color-light);
    box-shadow: var(--shadow-sm);
}

.hd-btn-primary:hover,
.hd-btn-primary:focus-visible {
    box-shadow: var(--shadow-md);
}

.hd-btn-secondary {
    background: transparent;
    color: var(--color-light);
    border-color: var(--color-border);
}

.hd-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.hd-hero-stat {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.hd-hero-stat-label {
    display: block;
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.hd-hero-stat-value {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-light);
}

.hd-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hd-hero-placeholder {
    min-height: 180px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.hd-hero-widget {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.hd-hero-widget-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hd-hero-widget-label {
    margin: 0;
    font-weight: 700;
}

.hd-hero-widget-hint {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.hd-section {
    padding-block: clamp(1.5rem, 3vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.35);
    box-shadow: var(--shadow-sm);
}

.hd-section-title {
    margin: 0 0 0.75rem 0;
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem);
    color: var(--color-light);
}

.hd-section-intro {
    margin: 0 0 1.5rem 0;
    color: var(--color-muted);
}

.hd-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.hd-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.hd-card-title {
    margin: 0;
    font-size: 1.1rem;
}

.hd-card-text {
    margin: 0;
    color: var(--color-muted);
}

.hd-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.hd-step {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.hd-step-number {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-weight: 700;
    color: var(--color-muted);
}

.hd-step-title {
    margin: 0 0 0.5rem 0;
}

.hd-step-text {
    margin: 0;
    color: var(--color-muted);
}

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

.hd-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.hd-link {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hd-link::after {
    content: '↗';
    font-size: 0.85em;
    color: var(--color-muted);
}

.hd-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 211, 238, 0.12));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.hd-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Comunidad */
.hd-main {
    width: 100%;
}

.hd-page--community {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hd-section--hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(34, 211, 238, 0.16));
}

.hd-section--alt {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

.hd-container {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.hd-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.hd-grid--2cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hd-grid--3cols {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hd-grid--4cols {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hd-grid--stats {
    align-items: stretch;
}

.hd-grid--cards {
    align-items: start;
}

.hd-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hd-eyebrow {
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.hd-hero-panel {
    height: 100%;
}

.hd-hero-panel--projects {
    background: linear-gradient(150deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.22));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: var(--shadow-md);
}

.hd-panel-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: var(--color-light);
}

.hd-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hd-panel-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-light);
}

.hd-panel-list li span:first-child {
    color: var(--color-muted);
}

.hd-hero-panel--pixel {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.75));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: var(--shadow-md);
}

.hd-character-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.hd-character-title {
    margin: 0;
    font-size: 1.15rem;
}

.hd-character-username {
    margin: 0;
    color: var(--color-muted);
}

.hd-character-username span {
    color: var(--color-light);
}

.hd-character-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--color-light);
}

.hd-character-stats span:first-child {
    color: var(--color-muted);
}

.hd-btn--full {
    width: 100%;
}

.hd-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.hd-section-subtitle {
    margin: 0;
    color: var(--color-muted);
}

.hd-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.hd-stat-label {
    margin: 0 0 0.5rem 0;
    color: var(--color-muted);
}

.hd-stat-value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-light);
}

.hd-card--contributor {
    gap: 0.75rem;
}

.hd-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-light);
}

.hd-card-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.hd-card-list span:first-child {
    color: var(--color-muted);
}

.hd-card--project {
    gap: 0.75rem;
    height: 100%;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}

.hd-card--project:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hd-card-title a {
    color: var(--color-light);
    text-decoration: none;
}

.hd-card-title a:hover {
    color: var(--color-accent);
}

.hd-card-description {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.hd-card-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hd-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.hd-card-meta-row dt {
    margin: 0;
    color: var(--color-muted);
    font-weight: 600;
}

.hd-card-meta-row dd {
    margin: 0;
    color: var(--color-light);
    font-weight: 700;
}

.hd-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    font-size: 0.95rem;
}

.hd-pill--language {
    border-color: rgba(34, 211, 238, 0.6);
    background: rgba(34, 211, 238, 0.12);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
    color: var(--color-light);
}

.hd-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hd-card-meta-text {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.hd-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-light);
}

.hd-badge--accent {
    border-color: rgba(34, 211, 238, 0.6);
    background: rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.hd-placeholder {
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    color: var(--color-muted);
    line-height: 1.6;
}

.hd-list--activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hd-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.hd-activity-main {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hd-activity-user {
    color: var(--color-light);
    font-weight: 700;
}

.hd-activity-action {
    color: var(--color-muted);
}

.hd-activity-repo {
    color: var(--color-accent);
}

.hd-activity-when {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.hd-nav-link--active {
    color: var(--color-light);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3);
}

@media (max-width: 768px) {
    .hd-hero-inner {
        grid-template-columns: 1fr;
    }

    .hd-section,
    .hd-hero {
        border-radius: var(--radius-lg);
    }

    .hd-section-grid,
    .hd-steps,
    .hd-community-grid {
        grid-template-columns: 1fr;
    }

    .hd-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===========================================
   FORMS
   =========================================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-input:disabled,
.form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: var(--space-lg);
    justify-content: flex-start;
}