/* ========================================
   Color Palette - Mystic Teal Theme
   ======================================== */

:root {
    --color-void: #0a1628;
    --color-deep: #0f2035;
    --color-mid: #163044;
    --color-vivid: #1a8a7d;
    --color-lavender: #a8c4c0;
    --color-pink: #d4a843;
    --color-light: #f0ece2;
    --color-pale: #f5f0e6;

    --color-glow-purple: rgba(26, 138, 125, 0.35);
    --color-glow-pink: rgba(212, 168, 67, 0.3);

    --sidebar-width: 250px;
    --topbar-height: 50px;
    --transition-speed: 0.3s;
}

/* ========================================
   Base
   ======================================== */

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(160deg, #0c1a2e 0%, #081420 40%, #0e1e34 100%);
    color: #d0ddd9;
    min-height: 100vh;
}

a {
    color: var(--color-lavender);
}

a:hover,
a:focus {
    color: #5ec4b6;
}

h1, h2, h3, h4, h5, h6 {
    color: #e8f0ec;
}

p {
    color: #b0c8c2;
}

/* ========================================
   Discord Icon (inline SVG, matches glyphicon sizing)
   ======================================== */

.discord-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'%3E%3Cpath fill='%235865F2' d='M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.83 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0 105.89 105.89 0 0 0 19.39 8.09C2.79 32.65-1.71 56.6.54 80.21a105.73 105.73 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2.04a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2.04a68.68 68.68 0 0 1-10.87 5.19 77.28 77.28 0 0 0 6.89 11.1 105.45 105.45 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15ZM42.45 65.69C36.18 65.69 31 60 31 53.05s5-12.68 11.45-12.68S53.99 46.06 53.89 53.05c0 6.95-5.11 12.64-11.44 12.64Zm42.24 0C78.41 65.69 73.25 60 73.25 53.05s5-12.68 11.44-12.68S96.23 46.06 96.13 53.05c0 6.95-5.08 12.64-11.44 12.64Z'/%3E%3C/svg%3E");
}

/* ========================================
   Bootstrap Overrides
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--color-vivid), #22a899);
    border-color: #157a6e;
    box-shadow: 0 2px 12px var(--color-glow-purple);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #1e9c8d, var(--color-pink));
    border-color: #1a8a7d;
    box-shadow: 0 4px 20px var(--color-glow-purple), 0 2px 12px var(--color-glow-pink);
    color: #fff;
}

.btn-default {
    background-color: rgba(22, 48, 68, 0.6);
    border-color: #1e5c54;
    color: var(--color-lavender);
}

.btn-default:hover,
.btn-default:focus {
    background-color: var(--color-mid);
    border-color: var(--color-vivid);
    color: #fff;
}

.btn-lg {
    box-shadow: 0 4px 20px var(--color-glow-purple);
}

.btn-lg:hover {
    box-shadow: 0 6px 28px var(--color-glow-purple), 0 2px 16px var(--color-glow-pink);
}

/* Alert overrides for dark theme */
.alert-danger {
    background-color: rgba(185, 28, 28, 0.2);
    border-color: #991b1b;
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(22, 101, 52, 0.2);
    border-color: #166534;
    color: #86efac;
}

.alert-info {
    background-color: rgba(26, 138, 125, 0.15);
    border-color: var(--color-vivid);
    color: var(--color-lavender);
}

/* Panel overrides for dark theme */
.panel {
    background-color: rgba(10, 22, 40, 0.6);
    border-color: rgba(26, 138, 125, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.panel-body {
    color: #b0c8c2;
}

.panel-primary {
    border-color: rgba(26, 138, 125, 0.3);
}

.panel-primary > .panel-heading {
    background: linear-gradient(135deg, var(--color-vivid), #157a6e);
    border-color: rgba(26, 138, 125, 0.3);
    color: #fff;
}

.panel-danger {
    border-color: rgba(185, 28, 28, 0.4);
}

.panel-danger > .panel-heading {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: rgba(185, 28, 28, 0.4);
    color: #fff;
}

.panel-default {
    border-color: rgba(26, 138, 125, 0.2);
}

.panel-default > .panel-heading {
    background-color: rgba(22, 48, 68, 0.6);
    border-color: rgba(26, 138, 125, 0.15);
    color: #e8f0ec;
}

.panel-footer {
    background-color: rgba(15, 32, 53, 0.5);
    border-color: rgba(26, 138, 125, 0.15);
    color: #6d8f88;
}

/* Table overrides for dark theme */
.table {
    color: #d0ddd9;
}

.table > thead > tr > th {
    border-bottom-color: rgba(26, 138, 125, 0.25);
    color: var(--color-lavender);
    background-color: rgba(22, 48, 68, 0.5);
}

.table > tbody > tr > td {
    border-top-color: rgba(26, 138, 125, 0.1);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(15, 32, 53, 0.4);
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(10, 22, 40, 0.3);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(22, 48, 68, 0.5);
}

.table > tbody > tr > td a {
    color: var(--color-lavender);
}

.table > tbody > tr > td a:hover {
    color: #5ec4b6;
}

/* Breadcrumb override for dark theme */
.breadcrumb {
    background-color: rgba(15, 32, 53, 0.5);
    border: 1px solid rgba(26, 138, 125, 0.15);
    border-radius: 4px;
    color: #6d8f88;
}

.breadcrumb > li + li::before {
    color: #3d6b63;
}

.breadcrumb > .active {
    color: #6d8f88;
}

/* Badge override for dark theme */
.badge {
    background-color: var(--color-vivid);
    color: #fff;
}

/* Label overrides for dark theme */
.label-primary {
    background-color: var(--color-vivid);
}

.label-info {
    background-color: rgba(26, 138, 125, 0.5);
    color: var(--color-lavender);
}

.label-warning {
    background-color: rgba(212, 168, 67, 0.5);
    color: #fce7f3;
}

.label-success {
    background-color: rgba(22, 101, 52, 0.6);
    color: #86efac;
}

.label-default {
    background-color: rgba(22, 48, 68, 0.6);
    color: #6d8f88;
}

.label-danger {
    background-color: rgba(185, 28, 28, 0.5);
    color: #fca5a5;
}

.label-expired {
    background-color: rgba(139, 90, 43, 0.7);
    color: #e8c98a;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--color-deep) 0%, #081420 100%);
    color: var(--color-lavender);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid rgba(26, 138, 125, 0.15);
}

.sidebar-brand {
    background-color: var(--color-void);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--topbar-height);
    border-bottom: 1px solid rgba(26, 138, 125, 0.2);
}

.sidebar-brand a {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 12px var(--color-glow-purple);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand a:hover {
    text-decoration: none;
    color: #fff;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--color-lavender);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 8px;
    line-height: 1;
}

.sidebar-toggle:hover {
    color: #fff;
}

/* CTA button */
.sidebar-cta {
    padding: 12px 16px;
}

.sidebar-cta-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--color-pink), #c49535);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 12px var(--color-glow-pink);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.sidebar-cta-btn:hover,
.sidebar-cta-btn:focus {
    background: linear-gradient(135deg, #e0b84d, var(--color-pink));
    box-shadow: 0 4px 20px var(--color-glow-pink), 0 0 8px var(--color-glow-purple);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.sidebar-cta-btn .glyphicon {
    margin-right: 6px;
}

/* Nav links */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    flex: 1;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-lavender);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-nav li a:hover {
    background-color: var(--color-mid);
    color: #fff;
    text-decoration: none;
}

.sidebar-nav li.active a {
    color: #fff;
    background: linear-gradient(90deg, rgba(26, 138, 125, 0.25), transparent);
    border-left: 3px solid var(--color-pink);
    box-shadow: inset 0 0 20px rgba(26, 138, 125, 0.1);
}

.sidebar-nav li a .glyphicon {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Sidebar footer (auth links) */
.sidebar-footer {
    border-top: 1px solid rgba(26, 138, 125, 0.2);
    padding: 10px 0;
}

.sidebar-footer .sidebar-nav {
    margin: 0;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed) ease;
}

.main-content .content-body {
    flex: 1;
    padding: 20px 30px;
}

.main-content footer {
    padding: 15px 30px;
    border-top: 1px solid rgba(26, 138, 125, 0.15);
    color: #5d7e77;
}

/* ========================================
   Top Bar (mobile / collapsed)
   ======================================== */

.topbar {
    display: none;
    background-color: var(--color-void);
    padding: 10px 15px;
    min-height: var(--topbar-height);
    align-items: center;
    border-bottom: 1px solid rgba(26, 138, 125, 0.2);
}

.topbar .topbar-toggle {
    background: none;
    border: none;
    color: var(--color-lavender);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 8px;
    line-height: 1;
}

.topbar .topbar-toggle:hover {
    color: #fff;
}

.topbar .topbar-brand {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-left: 15px;
    text-decoration: none;
    text-shadow: 0 0 12px var(--color-glow-purple);
}

.topbar .topbar-brand:hover {
    text-decoration: none;
    color: #fff;
}

/* Mobile overlay backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(5, 12, 22, 0.75);
    z-index: 1030;
}

/* ========================================
   Desktop: Sidebar collapse
   ======================================== */
@media screen and (min-width: 768px) {
    .sidebar-collapsed .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .sidebar-collapsed .main-content {
        margin-left: 0;
    }

    .sidebar-collapsed .topbar {
        display: flex;
    }
}

/* ========================================
   Mobile: Sidebar overlay
   ======================================== */
@media screen and (max-width: 767px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        display: flex;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-open .sidebar-backdrop {
        display: block;
    }
}

/* ========================================
   Form / Content Styles
   ======================================== */

input,
select,
textarea {
    max-width: 280px;
}

.form-control {
    background-color: rgba(15, 32, 53, 0.6);
    border-color: #1e5c54;
    color: #d0ddd9;
}

.form-control:focus {
    background-color: rgba(15, 32, 53, 0.8);
    border-color: var(--color-vivid);
    color: #e8f0ec;
    box-shadow: 0 0 8px var(--color-glow-purple);
}

.form-control::placeholder {
    color: #5d7e77;
}

.page-header {
    margin-top: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(26, 138, 125, 0.2);
    color: #e8f0ec;
}

.jumbotron {
    padding: 60px 40px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75), rgba(22, 48, 68, 0.65)),
                url('/img/galaxy-hero.jpg') center center / cover no-repeat;
    border: 1px solid rgba(26, 138, 125, 0.25);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(26, 138, 125, 0.15), inset 0 1px 0 rgba(94, 196, 182, 0.1);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jumbotron h1 {
    margin-top: 0;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 0 30px var(--color-glow-purple);
}

.jumbotron .lead {
    color: #d0ddd9;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.well {
    background-color: rgba(22, 48, 68, 0.4);
    border-color: rgba(26, 138, 125, 0.2);
    color: #b0c8c2;
}

/* Row feature columns on home page */
.row h2 {
    color: var(--color-lavender);
    font-size: 20px;
    border-bottom: 2px solid rgba(26, 138, 125, 0.3);
    padding-bottom: 8px;
}

.row p {
    color: #8aa8a0;
}

/* ========================================
   Calendar - Weekly View
   ======================================== */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-header h2 {
    margin: 0;
    color: #e8f0ec;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav .btn {
    padding: 5px 12px;
}

.calendar-nav .calendar-range {
    font-size: 16px;
    font-weight: 600;
    min-width: 220px;
    text-align: center;
    color: var(--color-lavender);
}

.calendar-wrapper {
    border: 1px solid rgba(26, 138, 125, 0.25);
    border-radius: 6px;
    overflow: hidden;
    background-color: rgba(10, 22, 40, 0.5);
}

/* Day header row */
.calendar-day-headers {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background-color: rgba(22, 48, 68, 0.6);
    border-bottom: 1px solid rgba(26, 138, 125, 0.2);
}

.calendar-day-headers .cal-corner {
    border-right: 1px solid rgba(26, 138, 125, 0.15);
}

.calendar-day-headers .cal-day-header {
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6d8f88;
    border-right: 1px solid rgba(26, 138, 125, 0.1);
}

.calendar-day-headers .cal-day-header:last-child {
    border-right: none;
}

.calendar-day-headers .cal-day-header .cal-day-date {
    display: block;
    font-size: 22px;
    font-weight: 400;
    color: var(--color-lavender);
    margin-top: 2px;
    line-height: 1.2;
}

.calendar-day-headers .cal-day-header.cal-today .cal-day-date {
    background: linear-gradient(135deg, var(--color-vivid), #22a899);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 2px auto 0;
    display: block;
    box-shadow: 0 0 12px var(--color-glow-purple);
}

.calendar-day-headers .cal-day-header.cal-today {
    color: var(--color-vivid);
}

/* All-day area */
.calendar-allday-row {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    border-bottom: 1px solid rgba(26, 138, 125, 0.2);
    min-height: 28px;
}

.calendar-allday-row .cal-allday-label {
    font-size: 10px;
    color: #5d7e77;
    text-align: right;
    padding: 6px 6px 6px 0;
    border-right: 1px solid rgba(26, 138, 125, 0.15);
}

.calendar-allday-row .cal-allday-cell {
    border-right: 1px solid rgba(26, 138, 125, 0.08);
}

.calendar-allday-row .cal-allday-cell:last-child {
    border-right: none;
}

/* Scrollable time grid */
.calendar-scroll {
    max-height: 600px;
    overflow-y: auto;
}

.calendar-time-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
}

.calendar-time-grid .cal-time-label {
    grid-column: 1;
    text-align: right;
    padding: 0 6px 0 0;
    font-size: 10px;
    color: #5d7e77;
    border-right: 1px solid rgba(26, 138, 125, 0.15);
    height: 48px;
    position: relative;
}

.calendar-time-grid .cal-time-label span {
    position: relative;
    top: -7px;
}

.calendar-time-grid .cal-cell {
    border-bottom: 1px solid rgba(26, 138, 125, 0.08);
    border-right: 1px solid rgba(26, 138, 125, 0.08);
    height: 48px;
    position: relative;
}

.calendar-time-grid .cal-cell:nth-child(7n+8) {
    border-right: none;
}

.calendar-time-grid .cal-cell.cal-today-col {
    background-color: rgba(26, 138, 125, 0.06);
}

/* Current time indicator */
.cal-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-pink);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 8px var(--color-glow-pink);
}

.cal-now-line::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    background-color: var(--color-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-glow-pink);
}

/* ========================================
   Group Card List (DiscordServers listing)
   ======================================== */

.sort-bar {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-bar-label {
    color: var(--color-lavender);
    font-size: 13px;
    margin-right: 4px;
}

.group-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.group-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(15, 32, 53, 0.7), rgba(22, 48, 68, 0.5));
    border: 1px solid rgba(26, 138, 125, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.group-card:hover,
.group-card:focus {
    border-color: var(--color-vivid);
    box-shadow: 0 6px 24px var(--color-glow-purple), 0 0 1px var(--color-vivid);
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
}

/* Banner image at top of portrait card */
.group-card-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background-color: var(--color-mid);
}

/* Fallback when no banner image */
.group-card-banner-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--color-mid), var(--color-deep));
}

/* Icon overlapping the banner/body boundary */
.group-card-icon-wrap {
    position: relative;
    margin-top: -28px;
    padding: 0 16px;
}

.group-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 3px solid rgba(15, 32, 53, 0.9);
    object-fit: cover;
    background-color: var(--color-deep);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Fallback when no icon image */
.group-card-icon-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 3px solid rgba(15, 32, 53, 0.9);
    background: linear-gradient(135deg, var(--color-vivid), var(--color-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.group-card-body {
    padding: 10px 16px 0;
    flex: 1;
}

.group-card-name {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #e8f0ec;
}

.group-card:hover .group-card-name {
    color: var(--color-lavender);
    text-shadow: 0 0 8px var(--color-glow-purple);
}

.group-card-description {
    margin: 0;
    font-size: 13px;
    color: #8aa8a0;
    line-height: 1.5;
}

.group-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-top: 12px;
    border-top: 1px solid rgba(26, 138, 125, 0.15);
}

.group-card-members {
    font-size: 12px;
    color: #6d8f88;
}

.group-card-members .glyphicon {
    margin-right: 4px;
    font-size: 11px;
}

.group-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.group-card-arrow {
    color: #3d6b63;
    font-size: 12px;
}

.group-card:hover .group-card-arrow {
    color: var(--color-vivid);
}

/* ========================================
   ViewGroup Detail Page
   ======================================== */

.group-detail {
    max-width: 720px;
}

/* Banner across the top of the detail page */
.group-detail-banner-wrap {
    margin: -20px -30px 0;
    position: relative;
}

.group-detail-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.group-detail-banner-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-mid), var(--color-deep));
}

/* Icon overlapping the banner bottom */
.group-detail-icon-wrap {
    position: absolute;
    bottom: 0;
    left: 30px;
    transform: translateY(50%);
    z-index: 2;
}

.group-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 4px solid rgba(15, 32, 53, 0.9);
    object-fit: cover;
    background-color: var(--color-deep);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.group-detail-icon-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 4px solid rgba(15, 32, 53, 0.9);
    background: linear-gradient(135deg, var(--color-vivid), var(--color-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.group-detail-header {
    margin-bottom: 24px;
    padding-top: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(26, 138, 125, 0.2);
}

.group-detail-header h2 {
    margin: 0 0 8px 0;
    color: #fff;
    text-shadow: 0 0 16px var(--color-glow-purple);
}

.group-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.group-detail-members {
    font-size: 14px;
    color: #6d8f88;
}

.group-detail-members .glyphicon {
    margin-right: 4px;
}

.group-detail-section {
    margin-bottom: 24px;
}

.group-detail-section h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-lavender);
}

.group-detail-section h4 .glyphicon {
    margin-right: 6px;
    font-size: 13px;
    color: var(--color-pink);
}

.group-detail-owner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-detail-owner .owner-name {
    font-size: 15px;
    font-weight: 500;
    color: #b0c8c2;
}

.group-detail-description {
    font-size: 15px;
    line-height: 1.7;
    color: #b0c8c2;
}

.group-detail-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.group-detail-rules {
    font-size: 14px;
    line-height: 1.7;
    color: #b0c8c2;
    background: rgba(22, 48, 68, 0.5);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 6px;
    padding: 15px 20px;
}

/* Calendar Events */
.cal-event {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 2px 4px;
    background: linear-gradient(135deg, var(--color-vivid), #22a899);
    color: #fff;
    border-radius: 3px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 1px 6px var(--color-glow-purple);
}

.cal-event:hover,
.cal-event:focus {
    filter: brightness(1.2);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 12px var(--color-glow-purple);
}

.cal-event-restricted {
    background: linear-gradient(135deg, var(--color-pink), #c49535);
    border-left-color: #f0d080;
}

.cal-event-restricted:hover,
.cal-event-restricted:focus {
    box-shadow: 0 2px 12px var(--color-glow-pink);
}

.cal-event-c0 { background: linear-gradient(135deg, #1a8a7d, #22a899); border-left-color: #5ec4b6; }
.cal-event-c1 { background: linear-gradient(135deg, #0891b2, #06b6d4); border-left-color: #22d3ee; }
.cal-event-c2 { background: linear-gradient(135deg, #059669, #10b981); border-left-color: #34d399; }
.cal-event-c3 { background: linear-gradient(135deg, #b45309, #d97706); border-left-color: #fbbf24; }
.cal-event-c4 { background: linear-gradient(135deg, #4338ca, #6366f1); border-left-color: #818cf8; }
.cal-event-c5 { background: linear-gradient(135deg, #0369a1, #0284c7); border-left-color: #38bdf8; }

.cal-event-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.cal-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Calendar - Mobile list view */
.cal-mobile-list {
    display: none;
}

@media (max-width: 767px) {
    .calendar-wrapper {
        display: none;
    }
    .cal-mobile-list {
        display: block;
    }
}

.cal-mobile-day {
    font-weight: bold;
    padding: 10px 0 5px 0;
    border-bottom: 1px solid var(--color-mid);
    color: var(--color-lavender);
    font-size: 14px;
}

.cal-mobile-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.cal-mobile-event:hover,
.cal-mobile-event:focus {
    background: var(--color-mid);
    color: #fff;
    text-decoration: none;
}

.cal-mobile-event small {
    margin-left: auto;
    white-space: nowrap;
}

.cal-mobile-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ========================================
   Link Cards (Links page)
   ======================================== */

.link-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: block;
    background: linear-gradient(135deg, rgba(15, 32, 53, 0.7), rgba(22, 48, 68, 0.5));
    border: 1px solid rgba(26, 138, 125, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.link-card:hover::before,
.link-card:focus::before {
    opacity: 0.25;
}

.link-card-vrch::before {
    background: var(--color-vivid);
}

.link-card-yis::before {
    background-image: url('/img/thumbs/YourInductionSucks.jpg');
}

.link-card-lhk::before {
    background-image: url('/img/thumbs/LearnHypnokink.jpg');
}

.link-card-bh::before {
    background-image: url('/img/thumbs/BinauralHistolog.jpg');
}

.link-card-yh::before {
    background-image: url('/img/thumbs/yallhypno.jpg');
}

.link-card-jinxxy::before {
    background-image: url('/img/jinxxy.jpg');
}

.link-card-gumroad::before {
    background-image: url('/img/thumbs/Gumroad.png');
}

.link-card:hover,
.link-card:focus {
    border-color: var(--color-vivid);
    box-shadow: 0 4px 20px var(--color-glow-purple), 0 0 1px var(--color-vivid);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.link-card-body {
    margin-bottom: 12px;
}

.link-card-name {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #e8f0ec;
}

.link-card-name .glyphicon {
    margin-right: 6px;
    font-size: 14px;
    color: var(--color-pink);
}

.link-card:hover .link-card-name {
    color: var(--color-lavender);
    text-shadow: 0 0 8px var(--color-glow-purple);
}

.link-card-description {
    margin: 0;
    font-size: 14px;
    color: #8aa8a0;
    line-height: 1.5;
}

.link-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(26, 138, 125, 0.15);
}

.link-card-url {
    font-size: 13px;
    color: #5d7e77;
}

.link-card-arrow {
    color: #3d6b63;
    font-size: 12px;
}

.link-card:hover .link-card-arrow {
    color: var(--color-vivid);
}

/* ========================================
   Hypnotist Cards (FindHypnotist page)
   ======================================== */

.hypnotist-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.hypnotist-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 32, 53, 0.7), rgba(22, 48, 68, 0.5));
    border: 1px solid rgba(26, 138, 125, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hypnotist-card:hover {
    border-color: var(--color-vivid);
    box-shadow: 0 4px 20px var(--color-glow-purple);
    transform: translateY(-2px);
}

.hypnotist-card-image-link {
    display: block;
}

.hypnotist-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(26, 138, 125, 0.15);
    background: rgba(10, 22, 40, 0.5);
}

.hypnotist-card-image-default {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.5);
    border-bottom: 1px solid rgba(26, 138, 125, 0.15);
}

.hypnotist-card-image-default .glyphicon {
    font-size: 48px;
    color: var(--color-lavender);
}

.hypnotist-card-body {
    flex: 1;
    padding: 16px;
}

.hypnotist-card-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #e8f0ec;
}

.hypnotist-card:hover .hypnotist-card-name {
    color: var(--color-lavender);
    text-shadow: 0 0 8px var(--color-glow-purple);
}

.hypnotist-card-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hypnotist-card-badges .label {
    font-size: 11px;
}

.hypnotist-card-body p {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

.hypnotist-card-rating {
    margin-bottom: 4px;
}

.hypnotist-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-top: 1px solid rgba(26, 138, 125, 0.15);
}

/* Activity indicator dots */
.activity-line {
    font-size: 12px;
    margin: 4px 0 0 0;
    color: var(--color-lavender);
    opacity: 0.7;
}

.activity-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 2px;
}

.activity-dot-green {
    background-color: #2ecc71;
}

.activity-dot-yellow {
    background-color: #f1c40f;
}

.activity-dot-grey {
    background-color: #7a6b99;
}

.activity-dot-hollow {
    background-color: transparent;
    border: 1.5px solid #7a6b99;
}

/* Stale users section */
.stale-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 138, 125, 0.15);
}

.stale-toggle-btn {
    color: var(--color-lavender);
    border-color: rgba(26, 138, 125, 0.25);
    background-color: transparent;
}

.stale-toggle-btn:hover,
.stale-toggle-btn:focus {
    color: var(--color-light);
    border-color: rgba(26, 138, 125, 0.4);
    background-color: rgba(26, 138, 125, 0.1);
}

.stale-card {
    opacity: 0.55;
}

.stale-card:hover {
    opacity: 0.85;
}

/* Contact / Talk with me buttons */
.contact-btn {
    transition: background-color 0.2s;
}
.contact-btn:hover {
    background-color: var(--color-mid);
    color: #fff;
}

/* ========================================
   Featured Asset Cards (Assets page)
   ======================================== */

.asset-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 30px;
}

.asset-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 32, 53, 0.7), rgba(22, 48, 68, 0.5));
    border: 1px solid rgba(26, 138, 125, 0.2);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.asset-card:hover,
.asset-card:focus {
    border-color: var(--color-vivid);
    box-shadow: 0 4px 20px var(--color-glow-purple);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.asset-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid rgba(26, 138, 125, 0.15);
    background: rgba(10, 22, 40, 0.5);
}

.asset-card-body {
    flex: 1;
    padding: 16px;
}

.asset-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #e8f0ec;
}

.asset-card:hover .asset-card-title {
    color: var(--color-lavender);
    text-shadow: 0 0 8px var(--color-glow-purple);
}

.asset-card-description {
    margin: 0;
    font-size: 13px;
    color: #8aa8a0;
    line-height: 1.5;
}

.asset-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(26, 138, 125, 0.15);
}

.asset-card-creator {
    font-size: 13px;
    color: #5d7e77;
}

.asset-card-creator .glyphicon {
    margin-right: 4px;
    font-size: 11px;
}

/* ========================================
   Story Cards (Assets page)
   ======================================== */

.story-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 32, 53, 0.7), rgba(22, 48, 68, 0.5));
    border: 1px solid rgba(26, 138, 125, 0.2);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.story-card:hover {
    border-color: var(--color-vivid);
    box-shadow: 0 4px 20px var(--color-glow-purple);
    transform: translateY(-2px);
}

.story-card-body {
    flex: 1;
}

.story-card-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #e8f0ec;
}

.story-card-title .glyphicon {
    margin-right: 6px;
    color: var(--color-pink);
    font-size: 14px;
}

.story-card-preview {
    margin: 0;
    font-size: 13px;
    color: #8aa8a0;
    line-height: 1.6;
}

.story-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 138, 125, 0.15);
}

/* Story Content (ViewStory page) */

.story-content {
    max-width: 720px;
    line-height: 1.8;
    font-size: 15px;
}

.story-content p {
    margin-bottom: 16px;
    color: #b0c8c2;
}

/* ========================================
   Blog Article (VRChatHypnosis guide)
   ======================================== */

.blog-article {
    max-width: 720px;
}

.blog-article h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(26, 138, 125, 0.25);
    color: var(--color-lavender);
    font-size: 20px;
    font-weight: 600;
}

.blog-article h3 .glyphicon {
    margin-right: 8px;
    font-size: 16px;
    color: var(--color-pink);
}

.blog-article p {
    font-size: 15px;
    line-height: 1.7;
    color: #b0c8c2;
}

.blog-article ul,
.blog-article ol {
    font-size: 15px;
    line-height: 1.7;
    color: #b0c8c2;
    padding-left: 24px;
}

.blog-article ul li,
.blog-article ol li {
    margin-bottom: 10px;
}

.blog-callout {
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.blog-callout ul {
    margin-bottom: 0;
}

.blog-callout-warning {
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.blog-callout-tip {
    background: rgba(26, 138, 125, 0.12);
    border: 1px solid rgba(26, 138, 125, 0.25);
}

/* ========================================
   Scrollbar (Webkit)
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-void);
}

::-webkit-scrollbar-thumb {
    background: var(--color-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-vivid);
}

/* ========================================
   Calendar Responsive
   ======================================== */

@media screen and (max-width: 767px) {
    .calendar-day-headers,
    .calendar-allday-row,
    .calendar-time-grid {
        grid-template-columns: 40px repeat(7, 1fr);
    }

    .calendar-day-headers .cal-day-header {
        font-size: 10px;
        padding: 6px 2px;
    }

    .calendar-day-headers .cal-day-header .cal-day-date {
        font-size: 16px;
    }

    .calendar-day-headers .cal-day-header.cal-today .cal-day-date {
        width: 28px;
        height: 28px;
        line-height: 28px;
    }

    .calendar-time-grid .cal-time-label {
        font-size: 9px;
        padding-right: 3px;
    }

    .calendar-nav .calendar-range {
        font-size: 14px;
        min-width: 180px;
    }
}

/* ========================================
   Contact Page
   ======================================== */

/* Override the global max-width:280px on inputs/textareas */
.contact-form input,
.contact-form select,
.contact-form textarea {
    max-width: 100%;
}

/* Info panel cards (right sidebar) */
.contact-info-card {
    background: linear-gradient(135deg, rgba(15, 32, 53, 0.7), rgba(22, 48, 68, 0.5));
    border: 1px solid rgba(26, 138, 125, 0.2);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
    border-color: var(--color-vivid);
    box-shadow: 0 4px 16px var(--color-glow-purple);
}

.contact-info-card a {
    color: var(--color-lavender);
    text-decoration: none;
}

.contact-info-card a:hover {
    color: #5ec4b6;
    text-decoration: underline;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-vivid), #22a899);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 2px 10px var(--color-glow-purple);
}

.contact-info-card .contact-info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #5d7e77;
    margin-bottom: 2px;
}

.contact-info-card .contact-info-value {
    font-size: 14px;
    color: #d0ddd9;
}

/* Category selector row */
.contact-category-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.contact-category {
    flex: 1 1 0;
    min-width: 100px;
    background: rgba(22, 48, 68, 0.5);
    border: 1px solid rgba(26, 138, 125, 0.2);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: var(--color-lavender);
}

.contact-category:hover {
    border-color: var(--color-vivid);
    background: rgba(22, 48, 68, 0.7);
    box-shadow: 0 2px 12px var(--color-glow-purple);
}

.contact-category .glyphicon {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.contact-category .contact-category-label {
    font-size: 12px;
    font-weight: 600;
}

.contact-category-active {
    border-color: var(--color-pink);
    background: rgba(212, 168, 67, 0.12);
    box-shadow: 0 0 16px var(--color-glow-pink), 0 0 4px var(--color-glow-pink);
    color: #fff;
}

.contact-category-active:hover {
    border-color: var(--color-pink);
    box-shadow: 0 0 20px var(--color-glow-pink), 0 0 6px var(--color-glow-pink);
}

/* FAQ accordion */
.contact-faq .panel-group {
    margin-bottom: 0;
}

.contact-faq .panel {
    background: rgba(15, 32, 53, 0.5);
    border-color: rgba(26, 138, 125, 0.2);
    border-radius: 6px;
    margin-bottom: 6px;
}

.contact-faq .panel-heading {
    background: rgba(22, 48, 68, 0.5);
    border-color: rgba(26, 138, 125, 0.15);
    padding: 0;
}

.contact-faq .panel-heading a {
    display: block;
    padding: 10px 14px;
    color: var(--color-lavender);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.contact-faq .panel-heading a:hover {
    color: #fff;
}

.contact-faq .panel-heading a .glyphicon {
    margin-right: 6px;
    font-size: 11px;
    color: var(--color-pink);
}

.contact-faq .panel-body {
    color: #8aa8a0;
    font-size: 13px;
    line-height: 1.6;
    border-top-color: rgba(26, 138, 125, 0.15);
}

/* Message textarea + ring wrapper */
.contact-msg-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-msg-wrap textarea {
    flex: 1;
}

/* SVG ring */
.contact-ring-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    position: relative;
    margin-top: 4px;
}

.contact-ring-wrap svg {
    width: 64px;
    height: 64px;
    transform: rotate(-90deg);
}

.contact-ring-track {
    fill: none;
    stroke: rgba(26, 138, 125, 0.15);
    stroke-width: 4;
}

.contact-ring-progress {
    fill: none;
    stroke: var(--color-vivid);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease, stroke 0.2s ease;
}

.contact-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #6d8f88;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

.contact-ring-text .contact-ring-count {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-lavender);
}

.contact-ring-full .contact-ring-progress {
    animation: contact-pulse 1.2s ease-in-out infinite;
}

@keyframes contact-pulse {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.5; }
}

/* Contact responsive */
@media screen and (max-width: 767px) {
    .contact-msg-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-ring-wrap {
        align-self: flex-end;
        margin-top: 8px;
    }

    .contact-category {
        min-width: 80px;
        padding: 10px 6px;
    }

    .contact-category .glyphicon {
        font-size: 16px;
    }

    .contact-category .contact-category-label {
        font-size: 11px;
    }
}

/* ========================================
   About Page - Spiral Image
   ======================================== */

.about-spiral {
    float: right;
    max-width: 300px;
    width: 40%;
    border-radius: 10px;
    border: 1px solid rgba(26, 138, 125, 0.25);
    box-shadow: 0 4px 24px var(--color-glow-purple);
    opacity: 0.85;
    margin: 0 0 16px 24px;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.about-spiral:hover {
    opacity: 1;
    box-shadow: 0 6px 32px var(--color-glow-purple), 0 0 16px var(--color-glow-pink);
}

/* ========================================
   Blog Banner (VRChatHypnosis guide)
   ======================================== */

.blog-banner {
    height: 160px;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.6), rgba(22, 48, 68, 0.5)),
                url('/img/galaxy-hero.jpg') center center / cover no-repeat;
    border-radius: 8px;
    border: 1px solid rgba(26, 138, 125, 0.25);
    margin-bottom: 24px;
    box-shadow: 0 4px 24px var(--color-glow-purple);
}

/* ========================================
   Feature Icons (Default page)
   ======================================== */

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-vivid), #22a899);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 2px 12px var(--color-glow-purple);
}

.feature-card {
    display: block;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #c4ddd6;
    color: #fff;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.feature-card-overlay {
    padding: 24px 16px;
    background: rgba(10, 22, 40, 0.75);
    transition: background 0.2s;
}

.feature-card:hover .feature-card-overlay,
.feature-card:focus .feature-card-overlay {
    background: rgba(10, 22, 40, 0.6);
}

.feature-card:hover,
.feature-card:focus {
    border-color: var(--color-vivid);
    box-shadow: 0 4px 16px var(--color-glow-purple);
    text-decoration: none;
    color: #fff;
}

.feature-card h2 {
    font-size: 20px;
    margin-top: 0;
    color: var(--color-lavender);
}

.feature-card p {
    color: #ddd;
    margin-bottom: 0;
}

.feature-card-events {
    background-image: url('/img/media/dance.jpg');
}

.feature-card-hypnotists {
    background-image: url('/img/media/metronome.jpeg');
}

.feature-card-learn {
    background-image: url('/img/media/graduationcap.jpg');
}

/* ========================================
   Sidebar / Topbar Logo
   ======================================== */

.sidebar-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.topbar-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ========================================
   Link Card Favicon
   ======================================== */

.link-card-favicon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 4px;
    object-fit: contain;
}

/* ========================================
   About Page Responsive
   ======================================== */

@media screen and (max-width: 767px) {
    .about-spiral {
        float: none;
        width: 100%;
        max-width: 100%;
        display: block;
        margin: 0 auto 16px;
    }
}

/* ========================================
   Custom Checkboxes
   ======================================== */

.checkbox label,
.checkbox-inline label {
    padding-left: 0;
    cursor: pointer;
}

.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
    position: relative;
    margin: 0 8px 0 0;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #1e5c54;
    border-radius: 5px;
    background-color: rgba(15, 32, 53, 0.6);
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    margin: 0 12px 0 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="checkbox"]:hover {
    border-color: var(--color-vivid);
    background-color: rgba(22, 48, 68, 0.8);
    box-shadow: 0 0 8px var(--color-glow-purple);
}

input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--color-vivid);
    box-shadow: 0 0 0 3px var(--color-glow-purple);
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--color-vivid), #22a899);
    border-color: var(--color-vivid);
    box-shadow: 0 0 12px var(--color-glow-purple);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:active {
    transform: scale(0.92);
}

/* ========================================
   Page Header Row (title + action buttons)
   ======================================== */

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.page-header-row h2 {
    margin: 0;
}

/* ========================================
   Session Filter Bar & Pager
   ======================================== */

.session-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 15px;
}

.session-filter-bar .btn.active {
    box-shadow: 0 2px 8px var(--color-glow-purple);
}

.session-role-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pager-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pager-info {
    color: var(--color-lavender);
    font-size: 14px;
}

/* ========================================
   Supporter Badge
   ======================================== */

.label-supporter {
    background-color: #d4a017;
    color: #fff;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5), 0 0 2px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.6);
}

/* ========================================
   Professional Badge
   ======================================== */

.label-professional {
    background-color: #0e7490;
    color: #fff;
    box-shadow: 0 0 6px rgba(14, 116, 144, 0.4);
    border: 1px solid rgba(14, 116, 144, 0.6);
}

/* ========================================
   My Calendar - Status Event Colors
   ======================================== */

.cal-event-status-pending,
.cal-event-status-requested {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.cal-event-status-pending:hover,
.cal-event-status-pending:focus,
.cal-event-status-requested:hover,
.cal-event-status-requested:focus {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 12px rgba(217, 119, 6, 0.4);
}

.cal-event-status-accepted {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.cal-event-status-accepted:hover,
.cal-event-status-accepted:focus {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4);
}

.cal-event-status-upcoming {
    background: linear-gradient(135deg, var(--color-vivid), #147a6e);
}

.cal-event-status-upcoming:hover,
.cal-event-status-upcoming:focus {
    background: linear-gradient(135deg, #2db8a8, var(--color-vivid));
    box-shadow: 0 2px 12px var(--color-glow-purple);
}

.cal-event-status-inprogress {
    background: linear-gradient(135deg, var(--color-pink), #c49535);
}

.cal-event-status-inprogress:hover,
.cal-event-status-inprogress:focus {
    background: linear-gradient(135deg, #e0b84d, var(--color-pink));
    box-shadow: 0 2px 12px var(--color-glow-pink);
}

.cal-event-status-completed {
    background: linear-gradient(135deg, #059669, #047857);
}

.cal-event-status-completed:hover,
.cal-event-status-completed:focus {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.4);
}

.cal-event-role-badge {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    flex-shrink: 0;
}

.mycal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #b0c8c2;
}

.mycal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mycal-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mycal-dot-pending {
    background: #d97706;
}

.mycal-dot-accepted {
    background: #2563eb;
}

.mycal-dot-upcoming {
    background: var(--color-vivid);
}

.mycal-dot-inprogress {
    background: var(--color-pink);
}

.mycal-dot-completed {
    background: #059669;
}
