:root {
    --app-bg: #f4f6fb;
    --surface: #ffffff;
    --surface-soft: #f8f9fc;
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --brand: #3157f6;
    --brand-dark: #2344d8;
    --brand-soft: #eef2ff;
    --aqua: #50e3c2;
    --coral: #ff6b57;
    --violet: #7657e8;
    --teal: #0fa99d;
    --amber: #f4a52c;
    --rose: #d94f78;
    --lime: #78a92c;
    --warning: #fdb022;
    --success: #12b76a;
    --danger: #f04438;
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
    --shadow-md: 0 16px 40px rgba(16, 24, 40, .09);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --bottom-nav-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--app-bg);
    scroll-behavior: smooth;
}

body,
#offline-screen {
    background: var(--app-bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body::before {
    background:
        radial-gradient(circle at 12% 7%, rgba(118, 87, 232, .08), transparent 25rem),
        radial-gradient(circle at 88% 22%, rgba(255, 107, 87, .07), transparent 20rem),
        radial-gradient(circle at 72% 78%, rgba(15, 169, 157, .06), transparent 24rem);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-main {
    min-height: calc(100vh - 88px);
    padding-bottom: calc(var(--bottom-nav-height) + 30px);
}

.app-container {
    margin-inline: auto;
    max-width: 1160px;
    padding-inline: 18px;
    width: 100%;
}

.bg-gray {
    background-color: var(--app-bg) !important;
}

.text-primary {
    color: var(--brand) !important;
}

.bg-primary,
.btn-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
}

.btn {
    border-radius: 12px;
    font-weight: 650;
    min-height: 46px;
    padding: .7rem 1.05rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    box-shadow: 0 8px 18px rgba(49, 87, 246, .2);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}

.btn-soft {
    background: var(--brand-soft);
    color: var(--brand);
}

.btn-white {
    background: #fff;
    color: var(--ink);
}

.card {
    border-color: var(--line);
    border-radius: var(--radius-md);
}

/* Top navigation */
.app-navbar {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(228, 231, 236, .85);
    min-height: 72px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-navbar .navbar-brand img {
    height: 31px;
    width: auto;
}

.app-navbar-inner {
    display: flex;
    gap: 24px;
    min-height: 72px;
}

.event-status {
    align-items: center;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 999px;
    color: #067647;
    display: none;
    font-size: .75rem;
    font-weight: 750;
    gap: 7px;
    letter-spacing: .02em;
    padding: 6px 10px;
}

.event-status::before {
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .12);
    content: "";
    height: 7px;
    width: 7px;
}

.desktop-nav {
    align-items: center;
    display: none;
    gap: 6px;
    margin-left: auto;
}

.desktop-nav .nav-link {
    border-radius: 10px;
    color: #475467;
    font-size: .9rem;
    font-weight: 650;
    padding: 9px 13px;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    background: var(--brand-soft);
    color: var(--brand);
}

.nav-actions {
    align-items: center;
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #344054;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    position: relative;
    width: 42px;
}

.icon-button:hover {
    background: var(--surface-soft);
}

.icon-button .bi {
    font-size: 1.25rem;
}

.notification-dot {
    background: var(--danger);
    border: 2px solid #fff;
    border-radius: 50%;
    height: 9px;
    position: absolute;
    right: 8px;
    top: 7px;
    width: 9px;
}

.ticket-shortcut {
    align-items: center;
    background: var(--ink);
    border-radius: 12px;
    color: #fff;
    display: none;
    font-size: .85rem;
    font-weight: 700;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
}

/* Offcanvas */
.app-offcanvas {
    background: var(--app-bg);
    border: 0 !important;
    max-width: 390px;
}

.app-offcanvas .offcanvas-header {
    background: #fff;
}

.menu-eyebrow {
    color: var(--brand);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sidebar-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 112px;
    padding: 16px;
}

.sidebar-link .bi {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 11px;
    color: var(--brand);
    display: flex;
    font-size: 1.15rem;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.sidebar-link.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.sidebar-link.active .bi {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* Shared page headers */
.page-heading {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.page-kicker {
    color: var(--brand);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.page-heading h1 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 0;
}

.page-heading p {
    color: var(--muted);
    font-size: .95rem;
    margin: 8px 0 0;
}

/* Home */
.home-stack {
    display: grid;
    gap: 28px;
}

.event-hero {
    background:
        radial-gradient(circle at 89% 14%, rgba(255, 120, 91, .55), transparent 18rem),
        radial-gradient(circle at 55% 118%, rgba(54, 211, 177, .28), transparent 21rem),
        linear-gradient(135deg, #18152e 0%, #2b2057 50%, #63316d 110%);
    border-radius: var(--radius-lg);
    color: #fff;
    isolation: isolate;
    min-height: 390px;
    overflow: hidden;
    padding: clamp(24px, 5vw, 48px);
    position: relative;
}

.event-hero::before,
.event-hero::after {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.event-hero::before {
    background: rgba(255, 181, 71, .08);
    height: 340px;
    right: -135px;
    top: -140px;
    width: 340px;
}

.event-hero::after {
    background: rgba(80, 227, 194, .05);
    bottom: -170px;
    height: 390px;
    right: 13%;
    width: 390px;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 30px;
    height: 100%;
}

.hero-eyebrow {
    align-items: center;
    color: #ffe0d5;
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: .12em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero-eyebrow span {
    background: #ffb547;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.event-hero h1 {
    font-size: clamp(2.05rem, 7vw, 3.65rem);
    font-weight: 790;
    letter-spacing: -.055em;
    line-height: .98;
    max-width: 680px;
}

.hero-lead {
    color: #d0d5dd;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 570px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.hero-meta span {
    align-items: center;
    color: #e4e7ec;
    display: inline-flex;
    font-size: .86rem;
    gap: 8px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 9px;
    justify-content: center;
}

.next-session {
    backdrop-filter: blur(18px);
    background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 219, 205, .25);
    border-radius: 22px;
    padding: 20px;
}

.session-label {
    align-items: center;
    color: #ffe0d5;
    display: flex;
    font-size: .73rem;
    font-weight: 750;
    justify-content: space-between;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.session-time {
    color: #ffd06f;
    font-size: .8rem;
}

.next-session h2 {
    font-size: 1.22rem;
    font-weight: 730;
    line-height: 1.25;
    margin: 16px 0 10px;
}

.next-session p {
    color: #d0d5dd;
    font-size: .86rem;
    margin-bottom: 20px;
}

.session-progress {
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    height: 5px;
    overflow: hidden;
}

.session-progress span {
    background: var(--aqua);
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 36%;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: 1.25rem;
    font-weight: 760;
    letter-spacing: -.025em;
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    font-size: .86rem;
    margin: 4px 0 0;
}

.section-link {
    color: var(--brand);
    font-size: .83rem;
    font-weight: 750;
    white-space: nowrap;
}

.quick-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 145px;
    overflow: hidden;
    padding: 18px;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quick-action:hover {
    border-color: var(--tone, #c7d7fe);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.quick-icon,
.feature-icon {
    align-items: center;
    background: var(--brand-soft);
    border-radius: 13px;
    color: var(--brand);
    display: flex;
    font-size: 1.25rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tone-coral {
    --tone: var(--coral);
    --tone-soft: #fff0ec;
    --tone-ink: #b93828;
}

.tone-violet {
    --tone: var(--violet);
    --tone-soft: #f1efff;
    --tone-ink: #5439b6;
}

.tone-teal {
    --tone: var(--teal);
    --tone-soft: #e7f8f5;
    --tone-ink: #087e75;
}

.tone-amber {
    --tone: var(--amber);
    --tone-soft: #fff5df;
    --tone-ink: #a86205;
}

.tone-rose {
    --tone: var(--rose);
    --tone-soft: #fff0f4;
    --tone-ink: #a93458;
}

.tone-lime {
    --tone: var(--lime);
    --tone-soft: #f1f8e4;
    --tone-ink: #567b18;
}

.quick-action[class*="tone-"] {
    background: linear-gradient(145deg, var(--tone-soft) 0%, #fff 68%);
    border-color: color-mix(in srgb, var(--tone) 18%, #fff);
}

.quick-action[class*="tone-"]::after {
    background: var(--tone);
    border-radius: 50%;
    content: "";
    filter: blur(25px);
    height: 72px;
    opacity: .14;
    position: absolute;
    right: -20px;
    top: -22px;
    width: 72px;
}

.quick-action[class*="tone-"] .quick-icon,
.feature-card[class*="tone-"] .feature-icon {
    background: var(--tone-soft);
    color: var(--tone-ink);
}

.quick-action[class*="tone-"] strong {
    color: var(--tone-ink);
}

.quick-action strong {
    display: block;
    font-size: .96rem;
}

.quick-action small {
    color: var(--muted);
    display: block;
    font-size: .77rem;
    margin-top: 3px;
}

.agenda-preview,
.updates-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.agenda-row {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: 58px 1fr;
    padding: 18px;
    position: relative;
}

.agenda-row + .agenda-row {
    border-top: 1px solid #f0f2f5;
}

.agenda-row.is-live {
    background: linear-gradient(90deg, #e8faf5, #f8fffc);
    box-shadow: inset 4px 0 0 var(--teal);
}

.agenda-time {
    color: var(--brand);
    font-size: .82rem;
    font-weight: 750;
    padding-top: 2px;
}

.agenda-row.is-live .agenda-time {
    color: #087e75;
}

.agenda-row:nth-child(2) .agenda-time {
    color: var(--violet);
}

.agenda-row:nth-child(3) .agenda-time {
    color: #b66b06;
}

.agenda-row h3 {
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px;
}

.agenda-row p {
    color: var(--muted);
    font-size: .78rem;
    margin: 0;
}

.live-badge {
    background: #ecfdf3;
    border-radius: 999px;
    color: #067647;
    display: inline-flex;
    font-size: .65rem;
    font-weight: 800;
    margin-left: 7px;
    padding: 3px 7px;
    text-transform: uppercase;
}

.feature-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    min-height: 162px;
    padding: 18px;
    transition: border-color .18s ease, transform .18s ease;
}

.feature-card[class*="tone-"] {
    background: linear-gradient(150deg, var(--tone-soft), #fff 82%);
    border-color: color-mix(in srgb, var(--tone) 16%, #fff);
    box-shadow: inset 0 3px 0 color-mix(in srgb, var(--tone) 70%, #fff);
}

.feature-card[class*="tone-"]:hover {
    border-color: var(--tone);
}

.feature-card[class*="tone-"] h3 {
    color: var(--tone-ink);
}

.feature-card:hover {
    border-color: #b2c0ff;
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: .93rem;
    font-weight: 720;
    margin: 18px 0 4px;
}

.feature-card p {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
    margin: 0;
}

.coming-soon {
    align-items: center;
    background: linear-gradient(100deg, #fff9e8, #fff 55%, #f5f0ff);
    border: 1px dashed #e2c674;
    border-radius: var(--radius-md);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
}

.coming-soon-label {
    color: #8b5b09;
    font-size: .78rem;
    font-weight: 750;
    margin-right: 4px;
}

.coming-pill {
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .72rem;
    padding: 7px 10px;
}

.coming-pill:nth-of-type(2) {
    border-color: #ffc9bd;
    color: #a64031;
}

.coming-pill:nth-of-type(3) {
    border-color: #cfc5ff;
    color: #5b42b8;
}

.coming-pill:nth-of-type(4) {
    border-color: #aee3db;
    color: #087e75;
}

/* Agenda */
.day-switcher {
    background: #eaecf0;
    border-radius: 14px;
    display: inline-flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
}

.day-chip {
    background: transparent;
    border-radius: 10px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    padding: 9px 14px;
}

.day-chip.active {
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.agenda-day {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.agenda-day + .agenda-day {
    margin-top: 18px;
}

.agenda-day-header {
    align-items: center;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}

.agenda-day-header h2 {
    font-size: .95rem;
    font-weight: 750;
    margin: 0;
}

.agenda-day-header span {
    color: var(--muted);
    font-size: .75rem;
}

.agenda-list {
    padding: 0 18px;
}

.agenda-item {
    display: grid;
    gap: 12px;
    grid-template-columns: 76px 1fr;
    padding: 19px 0;
    position: relative;
}

.agenda-item + .agenda-item {
    border-top: 1px solid #f0f2f5;
}

.agenda-item-time {
    color: var(--brand);
    font-size: .8rem;
    font-weight: 760;
    line-height: 1.4;
}

.agenda-item h3 {
    font-size: .95rem;
    font-weight: 720;
    margin: 0 0 5px;
}

.agenda-item p {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
    margin: 0;
}

.agenda-item.alert {
    background: var(--brand-soft);
    border: 0;
    border-radius: 14px;
    margin: 8px -10px;
    padding: 16px 10px;
}

/* Ticket */
.ticket-wrap {
    margin-inline: auto;
    max-width: 620px;
}

.digital-ticket {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ticket-top {
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 107, 87, .5), transparent 13rem),
        linear-gradient(135deg, #18152e, #63316d);
    color: #fff;
    padding: 25px;
}

.ticket-topline {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ticket-topline strong {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ticket-type {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    padding: 6px 9px;
}

.ticket-top h2 {
    font-size: 1.6rem;
    font-weight: 760;
    letter-spacing: -.035em;
    margin: 34px 0 8px;
}

.ticket-top p {
    color: #d0d5dd;
    font-size: .84rem;
    margin: 0;
}

.ticket-cut {
    border-top: 2px dashed #d0d5dd;
    position: relative;
}

.ticket-cut::before,
.ticket-cut::after {
    background: var(--app-bg);
    border-radius: 50%;
    content: "";
    height: 26px;
    position: absolute;
    top: -14px;
    width: 26px;
}

.ticket-cut::before {
    left: -14px;
}

.ticket-cut::after {
    right: -14px;
}

.ticket-body {
    padding: 26px;
    text-align: center;
}

.ticket-code {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: inline-block;
    padding: 12px;
}

.ticket-code img {
    display: block;
    max-height: 150px;
    max-width: 100%;
}

.ticket-name {
    font-size: 1.15rem;
    font-weight: 750;
    margin: 20px 0 4px;
}

.ticket-id {
    color: var(--muted);
    font-size: .76rem;
}

.ticket-details {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 23px;
    padding-top: 20px;
    text-align: left;
}

.ticket-detail small {
    color: var(--muted);
    display: block;
    font-size: .68rem;
    font-weight: 650;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ticket-detail strong {
    display: block;
    font-size: .82rem;
    line-height: 1.4;
}

.ticket-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
}

/* Content cards */
.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 14px;
}

.speaker-grid {
    display: grid;
    gap: 14px;
}

.speaker-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.speaker-visual {
    aspect-ratio: 16 / 10;
    background: #e9e8ef;
    overflow: hidden;
    position: relative;
}

.speaker-visual img {
    height: 100%;
    object-fit: cover;
    object-position: center 27%;
    transition: transform .35s ease;
    width: 100%;
}

.speaker-card:hover .speaker-visual img {
    transform: scale(1.025);
}

.speaker-body {
    padding: 18px;
}

.speaker-body h2 {
    font-size: 1rem;
    font-weight: 740;
    margin: 0 0 3px;
}

.speaker-role {
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
}

.speaker-body p {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
    margin: 12px 0 0;
}

.location-grid,
.game-grid {
    display: grid;
    gap: 16px;
}

.map-card {
    background: #dde6ee;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    min-height: 330px;
    overflow: hidden;
    position: relative;
}

.map-card img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.map-pin {
    align-items: center;
    background: var(--brand);
    border: 5px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .25);
    color: #fff;
    display: flex;
    height: 46px;
    justify-content: center;
    left: 48%;
    position: absolute;
    top: 42%;
    transform: rotate(-45deg);
    width: 46px;
}

.map-pin .bi {
    transform: rotate(45deg);
}

.info-list {
    display: grid;
    gap: 14px;
}

.info-item {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.info-item .bi {
    color: var(--brand);
    font-size: 1rem;
    margin-top: 2px;
}

.info-item small {
    color: var(--muted);
    display: block;
    font-size: .7rem;
}

.info-item strong {
    display: block;
    font-size: .86rem;
    margin-top: 2px;
}

.leaderboard {
    display: grid;
    gap: 10px;
}

.leader-row {
    align-items: center;
    background: var(--surface-soft);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 28px 40px 1fr auto;
    padding: 11px 13px;
}

.leader-row.me {
    background: var(--brand-soft);
    border: 1px solid #c7d7fe;
}

.leader-rank {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 750;
    text-align: center;
}

.leader-avatar {
    align-items: center;
    background: #dce4ff;
    border-radius: 50%;
    color: var(--brand);
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.leader-name strong,
.leader-name small {
    display: block;
}

.leader-name strong {
    font-size: .82rem;
}

.leader-name small {
    color: var(--muted);
    font-size: .68rem;
}

.leader-points {
    color: var(--brand);
    font-size: .8rem;
    font-weight: 800;
}

.task-list {
    display: grid;
    gap: 10px;
}

.task-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 40px 1fr auto;
    padding: 13px;
}

.task-row .feature-icon {
    border-radius: 11px;
    font-size: 1rem;
    height: 40px;
    width: 40px;
}

.task-row strong,
.task-row small {
    display: block;
}

.task-row strong {
    font-size: .8rem;
}

.task-row small {
    color: var(--muted);
    font-size: .7rem;
    margin-top: 2px;
}

.points-pill {
    background: #fffaeb;
    border-radius: 999px;
    color: #b54708;
    font-size: .68rem;
    font-weight: 800;
    padding: 6px 8px;
}

.list-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: flex;
    gap: 15px;
    justify-content: space-between;
    padding: 17px;
}

.list-card + .list-card {
    margin-top: 10px;
}

.list-card-main {
    align-items: center;
    display: flex;
    gap: 13px;
    min-width: 0;
}

.list-card h2,
.list-card h3 {
    font-size: .9rem;
    font-weight: 720;
    margin: 0;
}

.list-card p {
    color: var(--muted);
    font-size: .72rem;
    margin: 4px 0 0;
}

.status-pill {
    background: #ecfdf3;
    border-radius: 999px;
    color: #067647;
    font-size: .68rem;
    font-weight: 750;
    padding: 6px 8px;
}

.status-pill.disabled {
    background: #f2f4f7;
    color: var(--muted);
}

/* Networking */
.network-profile {
    align-items: center;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 181, 71, .24), transparent 13rem),
        linear-gradient(120deg, #211b45, #5d316d);
    border-radius: var(--radius-lg);
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(22px, 4vw, 34px);
}

.network-profile-main,
.network-profile-stats {
    align-items: center;
    display: flex;
    gap: 16px;
}

.network-avatar {
    align-items: center;
    background: linear-gradient(145deg, #ff8d75, #cb4d77);
    border: 3px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.15rem;
    font-weight: 800;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.network-avatar.small {
    font-size: .78rem;
    height: 42px;
    width: 42px;
}

.network-profile h2 {
    font-size: 1.3rem;
    font-weight: 750;
    margin: 10px 0 3px;
}

.network-profile p {
    color: #e6dff0;
    font-size: .82rem;
    margin: 0;
}

.network-profile-stats {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    padding: 14px 18px;
}

.network-profile-stats div {
    min-width: 90px;
}

.network-profile-stats div + div {
    border-left: 1px solid rgba(255, 255, 255, .16);
    padding-left: 18px;
}

.network-profile-stats strong,
.network-profile-stats span {
    display: block;
}

.network-profile-stats strong {
    font-size: 1.35rem;
}

.network-profile-stats span {
    color: #e6dff0;
    font-size: .68rem;
}

.people-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.person-card-top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.person-avatar {
    align-items: center;
    background: var(--tone-soft, var(--brand-soft));
    border: 1px solid color-mix(in srgb, var(--tone, var(--brand)) 18%, #fff);
    border-radius: 50%;
    color: var(--tone-ink, var(--brand));
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .75rem;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.common-count {
    background: #f2f4f7;
    border-radius: 999px;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
    padding: 6px 8px;
}

.person-card h3 {
    font-size: 1rem;
    font-weight: 750;
    margin: 17px 0 3px;
}

.person-role {
    color: var(--muted);
    font-size: .74rem;
    min-height: 36px;
}

.interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.interest-list span,
.post-tags span {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #475467;
    font-size: .65rem;
    font-weight: 650;
    padding: 5px 8px;
}

.person-actions,
.match-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    margin-top: 18px;
}

.person-actions .btn {
    min-height: 42px;
    padding-block: .55rem;
}

.topic-banner {
    align-items: center;
    background: linear-gradient(100deg, #fff8e7, #fff);
    border: 1px solid #f5d79c;
    border-radius: var(--radius-md);
    display: flex;
    gap: 14px;
    padding: 17px;
}

.topic-banner strong {
    display: block;
    font-size: .86rem;
}

.topic-banner p {
    color: var(--muted);
    font-size: .76rem;
    margin: 3px 0 0;
}

.feature-icon[class*="tone-"] {
    background: var(--tone-soft);
    color: var(--tone-ink);
}

/* AI Match */
.ai-match-hero {
    align-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 107, 87, .38), transparent 16rem),
        linear-gradient(130deg, #18152e, #4b286d);
    border-radius: var(--radius-lg);
    color: #fff;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
}

.ai-orb {
    align-items: center;
    background: linear-gradient(145deg, #ffd06f, #ff7d66);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(255, 107, 87, .24);
    color: #442052;
    display: flex;
    font-size: 1.3rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 20px;
    width: 48px;
}

.ai-match-hero .page-kicker {
    color: #ffd9ce;
}

.ai-match-hero h2 {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 760;
    letter-spacing: -.04em;
    max-width: 620px;
}

.ai-match-hero p {
    color: #ddd6e8;
    font-size: .86rem;
    line-height: 1.6;
    margin: 12px 0 0;
    max-width: 620px;
}

.ai-criteria {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    display: grid;
    gap: 11px;
    padding: 18px;
}

.ai-criteria span {
    align-items: center;
    display: flex;
    font-size: .75rem;
    gap: 9px;
}

.ai-criteria .bi {
    color: #ffd06f;
}

.match-list {
    display: grid;
    gap: 13px;
}

.match-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: grid;
    gap: 17px;
    grid-template-columns: minmax(190px, .8fr) 90px minmax(260px, 1.3fr) auto;
    padding: 18px;
}

.match-person {
    align-items: center;
    display: flex;
    gap: 11px;
    min-width: 0;
}

.match-person strong,
.match-person h3 {
    display: block;
    font-size: .86rem;
    font-weight: 750;
    margin: 0;
}

.match-person small,
.match-person p {
    color: var(--muted);
    display: block;
    font-size: .68rem;
    margin: 3px 0 0;
}

.match-score {
    align-items: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle, #fff 55%, transparent 57%),
        conic-gradient(var(--teal) var(--match), #e9edf2 0);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 76px;
}

.match-score strong {
    font-size: .92rem;
}

.match-score span {
    color: var(--muted);
    font-size: .52rem;
}

.match-reason {
    align-items: center;
    display: flex;
    gap: 11px;
}

.match-reason strong {
    display: block;
    font-size: .72rem;
}

.match-reason p {
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.45;
    margin: 3px 0 0;
}

.match-card > .interest-list {
    display: none;
}

.match-actions {
    grid-template-columns: 1fr;
    margin: 0;
    min-width: 180px;
}

.match-actions .btn {
    font-size: .7rem;
    min-height: 39px;
    padding: .5rem .7rem;
}

/* Chat */
.chat-app {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 650px;
    overflow: hidden;
}

.chat-sidebar {
    border-right: 1px solid var(--line);
}

.chat-sidebar-head,
.chat-thread-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 74px;
    padding: 14px 17px;
}

.chat-sidebar-head strong,
.chat-sidebar-head span {
    display: block;
}

.chat-sidebar-head strong {
    font-size: .9rem;
}

.chat-sidebar-head span {
    color: var(--muted);
    font-size: .66rem;
}

.chat-search {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 11px;
    display: flex;
    gap: 8px;
    margin: 12px;
    padding: 0 11px;
}

.chat-search .bi {
    color: #98a2b3;
}

.chat-search input {
    background: transparent;
    border: 0;
    font-size: .75rem;
    min-height: 40px;
    outline: 0;
    width: 100%;
}

.conversation {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    display: grid;
    gap: 9px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 12px;
    text-align: left;
    width: 100%;
}

.conversation.active {
    background: #f3f0ff;
    border-left-color: var(--violet);
}

.conversation-copy,
.conversation-copy strong,
.conversation-copy small {
    display: block;
    min-width: 0;
}

.conversation-copy strong {
    font-size: .76rem;
}

.conversation-copy small {
    color: var(--muted);
    font-size: .64rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.conversation-meta small {
    color: var(--muted);
    font-size: .57rem;
}

.conversation-meta b {
    align-items: center;
    background: var(--violet);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: .55rem;
    height: 17px;
    justify-content: center;
    width: 17px;
}

.chat-thread {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
}

.chat-thread-head .match-person small .bi {
    color: var(--success);
    font-size: .45rem;
    margin-right: 4px;
}

.chat-thread-head .btn {
    font-size: .72rem;
    min-height: 40px;
}

.message-flow {
    background:
        radial-gradient(circle at 100% 0, rgba(118, 87, 232, .06), transparent 19rem),
        #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow: auto;
    padding: 22px;
}

.message-date {
    color: var(--muted);
    font-size: .62rem;
    text-align: center;
}

.message {
    border-radius: 16px;
    max-width: 68%;
    padding: 11px 13px 7px;
}

.message p {
    font-size: .76rem;
    line-height: 1.5;
    margin: 0;
}

.message span {
    display: block;
    font-size: .56rem;
    margin-top: 4px;
    opacity: .7;
    text-align: right;
}

.message.incoming {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.message.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, #6550c9, #7957aa);
    border-bottom-right-radius: 4px;
    color: #fff;
}

.meeting-proposal {
    align-items: center;
    align-self: center;
    background: #fff;
    border: 1px solid #d8d0fa;
    border-radius: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px 1fr auto;
    max-width: 88%;
    padding: 12px;
    width: 100%;
}

.meeting-proposal strong {
    font-size: .74rem;
}

.meeting-proposal p {
    color: var(--muted);
    font-size: .63rem;
    margin: 3px 0 0;
}

.message-composer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px;
    min-height: 70px;
    padding: 10px 16px;
}

.message-composer input {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    flex: 1;
    font-size: .76rem;
    min-height: 43px;
    outline: 0;
    padding: 0 12px;
}

.send-button {
    align-items: center;
    background: var(--violet);
    border: 0;
    border-radius: 12px;
    color: #fff;
    display: flex;
    height: 43px;
    justify-content: center;
    width: 43px;
}

/* Meetings */
.meeting-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
}

.time-slot-grid {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(3, 1fr);
}

.time-slot {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    min-height: 68px;
}

.time-slot strong,
.time-slot small {
    display: block;
}

.time-slot strong {
    font-size: .86rem;
}

.time-slot small {
    color: var(--muted);
    font-size: .62rem;
}

.time-slot.selected {
    background: #f1efff;
    border-color: var(--violet);
    box-shadow: 0 0 0 2px rgba(118, 87, 232, .12);
    color: #5439b6;
}

.time-slot.busy {
    background: #f2f4f7;
    color: #98a2b3;
    opacity: .75;
}

.selected-meeting {
    align-items: center;
    background: var(--surface-soft);
    border-radius: 16px;
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr auto auto;
    margin-top: 18px;
    padding: 14px;
}

.selected-time small,
.selected-time strong {
    display: block;
}

.selected-time small {
    color: var(--muted);
    font-size: .62rem;
}

.selected-time strong {
    font-size: .75rem;
}

.upcoming-meeting {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 58px 1fr auto;
    padding: 13px 0;
}

.upcoming-meeting + .upcoming-meeting {
    border-top: 1px solid var(--line);
}

.meeting-time-block {
    background: #f1efff;
    border-radius: 11px;
    color: #5439b6;
    padding: 9px 5px;
    text-align: center;
}

.meeting-time-block.tone-amber {
    background: var(--tone-soft);
    color: var(--tone-ink);
}

.meeting-time-block strong,
.meeting-time-block span {
    display: block;
}

.meeting-time-block strong {
    font-size: .78rem;
}

.meeting-time-block span {
    font-size: .55rem;
}

.upcoming-meeting > div:nth-child(2) strong {
    font-size: .76rem;
}

.upcoming-meeting p {
    color: var(--muted);
    font-size: .62rem;
    margin: 3px 0 0;
}

.status-pill.pending {
    background: #fff5df;
    color: #a86205;
}

.meeting-tip {
    align-items: flex-start;
    background: #eef8ff;
    border: 1px solid #b9ddf4;
    border-radius: var(--radius-md);
    color: #175b85;
    display: flex;
    font-size: .72rem;
    gap: 10px;
    padding: 14px;
}

.meeting-tip p {
    margin: 0;
}

/* Social wall */
.social-composer {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: grid;
    gap: 13px;
    grid-template-columns: auto 1fr auto;
    padding: 16px;
}

.social-composer strong {
    display: block;
    font-size: .82rem;
}

.social-composer p {
    color: var(--muted);
    font-size: .7rem;
    margin: 3px 0 0;
}

.social-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
}

.social-feed {
    display: grid;
    gap: 14px;
}

.social-post {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.social-post > header {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 42px 1fr auto;
    padding: 15px 17px 8px;
}

.post-avatar {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.social-post header strong,
.social-post header span {
    display: block;
}

.social-post header strong {
    font-size: .77rem;
}

.social-post header span {
    color: var(--muted);
    font-size: .62rem;
}

.social-post > p {
    font-size: .78rem;
    line-height: 1.55;
    margin: 7px 17px 14px;
}

.post-visual {
    min-height: 280px;
}

.post-visual-stage {
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 107, 87, .45), transparent 12rem),
        radial-gradient(circle at 85% 0%, rgba(80, 227, 194, .32), transparent 12rem),
        linear-gradient(145deg, #18152e, #4b286d);
    color: #fff;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.post-visual-stage .bi {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
}

.post-visual-stage strong,
.post-visual-stage small {
    display: block;
}

.post-visual-stage strong {
    font-size: 1.25rem;
}

.post-visual-stage small {
    color: #ddd6e8;
    margin-top: 4px;
}

.social-post > footer {
    display: flex;
    gap: 6px;
    padding: 9px 13px;
}

.social-post > footer button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    font-size: .7rem;
    padding: 7px 9px;
}

.social-post > footer button:hover {
    background: var(--surface-soft);
    color: var(--rose);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 17px 12px;
}

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

.trend-list li {
    align-items: center;
    display: flex;
    gap: 11px;
    padding: 10px 0;
}

.trend-list li + li {
    border-top: 1px solid var(--line);
}

.trend-list > li > span {
    color: #d0d5dd;
    font-size: 1rem;
    font-weight: 800;
}

.trend-list strong,
.trend-list small {
    display: block;
}

.trend-list strong {
    font-size: .75rem;
}

.trend-list small {
    color: var(--muted);
    font-size: .62rem;
}

/* Workshops */
.workshop-toolbar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.workshop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.workshop-filters .coming-pill.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.workshop-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workshop-card {
    background: linear-gradient(150deg, var(--tone-soft), #fff 48%);
    border: 1px solid color-mix(in srgb, var(--tone) 18%, #fff);
    border-radius: var(--radius-md);
    padding: 20px;
}

.workshop-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.workshop-time {
    color: var(--tone-ink);
    font-size: .7rem;
    font-weight: 800;
}

.workshop-card h2 {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
    margin: 18px 0 10px;
    min-height: 44px;
}

.workshop-host,
.workshop-place {
    color: var(--muted);
    font-size: .7rem;
    margin: 5px 0;
}

.workshop-card .interest-list {
    margin-top: 13px;
}

.capacity-row {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-top: 19px;
}

.capacity-row div span,
.capacity-row div strong {
    display: block;
}

.capacity-row div span {
    color: var(--muted);
    font-size: .62rem;
}

.capacity-row div strong {
    font-size: .78rem;
}

.capacity-row > span {
    color: var(--success);
    font-size: .64rem;
    font-weight: 750;
}

.capacity-row > span.almost-full {
    color: var(--danger);
}

.capacity-bar {
    background: #eaecf0;
    border-radius: 999px;
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
}

.capacity-bar span {
    background: var(--tone);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.stream-frame {
    background: #0c111d;
    border: 1px solid #1d2939;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 6px;
}

/* Footer + bottom navigation */
.app-footer {
    color: var(--muted);
    font-size: .72rem;
    padding: 16px 0 100px;
    text-align: center;
}

.bottom-nav {
    background: rgba(255, 255, 255, .95);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -8px 28px rgba(16, 24, 40, .06);
    left: 0;
    min-height: var(--bottom-nav-height);
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    position: fixed;
    right: 0;
    z-index: 1020;
}

.bottom-nav-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0 auto;
    max-width: 520px;
    padding: 0;
}

.bottom-nav-link {
    align-items: center;
    border-radius: 12px;
    color: #98a2b3;
    display: flex;
    flex-direction: column;
    font-size: .65rem;
    font-weight: 650;
    gap: 3px;
    padding: 5px 2px;
}

.bottom-nav-link .bi {
    font-size: 1.15rem;
}

.bottom-nav-link.active {
    color: var(--brand);
}

.bottom-nav-link.active .bi {
    background: var(--brand-soft);
    border-radius: 9px;
    padding: 4px 13px;
}

/* Offline */
#offline-screen {
    backdrop-filter: blur(14px);
}

#offline-screen .card {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md) !important;
}

/* Bootstrap modal refinement */
.modal-content {
    border: 0;
    border-radius: var(--radius-md);
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

@media (min-width: 576px) {
    .event-status,
    .ticket-shortcut {
        display: inline-flex;
    }

    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .feature-grid,
    .speaker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .agenda-item {
        grid-template-columns: 110px 1fr;
    }
}

@media (min-width: 768px) {
    .app-main {
        padding-bottom: 38px;
    }

    .app-footer {
        padding-bottom: 24px;
    }

    .bottom-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
    }

    .home-lower-grid {
        display: grid;
        gap: 22px;
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
    }

    .home-lower-grid .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-grid,
    .game-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    }

    .ticket-details {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
    }

    .nav-actions {
        margin-left: 0;
    }

    .navbar-toggler {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .people-grid,
    .workshop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-card {
        grid-template-columns: minmax(0, 1fr) 80px;
    }

    .match-reason,
    .match-actions {
        grid-column: 1 / -1;
    }

    .match-actions {
        grid-template-columns: 1fr 1fr;
    }

    .chat-app {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .meeting-proposal {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .network-profile {
        align-items: stretch;
        flex-direction: column;
    }

    .network-profile-stats {
        justify-content: space-around;
    }

    .people-grid,
    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .ai-match-hero,
    .meeting-layout,
    .social-layout {
        grid-template-columns: 1fr;
    }

    .match-card {
        grid-template-columns: minmax(0, 1fr) 74px;
    }

    .chat-app {
        grid-template-columns: minmax(0, 1fr);
    }

    .chat-sidebar {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }

    .conversation-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .conversation {
        border-bottom: 3px solid transparent;
        border-left: 0;
        flex: 0 0 250px;
    }

    .conversation.active {
        border-bottom-color: var(--violet);
        border-left: 0;
    }

    .message-flow {
        min-height: 470px;
    }

    .selected-meeting {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .selected-meeting .btn {
        width: 100%;
    }

    .workshop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .event-hero {
        border-radius: 24px;
        margin-inline: -6px;
        min-height: 0;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions .btn {
        padding-inline: .7rem;
    }

    .next-session {
        margin-top: 2px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .list-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .list-card .btn {
        width: 100%;
    }

    .network-profile-main {
        align-items: flex-start;
    }

    .network-profile-stats div {
        min-width: 0;
    }

    .match-card {
        grid-template-columns: 1fr 70px;
        padding: 15px;
    }

    .match-reason {
        align-items: flex-start;
    }

    .match-actions {
        grid-template-columns: 1fr;
    }

    .chat-thread-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .chat-thread-head .btn {
        width: 100%;
    }

    .message {
        max-width: 88%;
    }

    .meeting-proposal {
        grid-template-columns: 40px 1fr;
    }

    .meeting-proposal .status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .time-slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .upcoming-meeting {
        grid-template-columns: 58px 1fr;
    }

    .upcoming-meeting .status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .social-composer {
        grid-template-columns: auto 1fr;
    }

    .social-composer .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .post-visual {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
