/* ==========================================================================
   Gaiscioch Community Calendar — Dark Age / Medieval Modernized UI
   Harmonizes with css/gsch-shell.css & events/manager-new.php
   ========================================================================== */

:root {
  --gcal-bg: #0f120f;
  --gcal-surface: rgba(20, 23, 19, 0.96);
  --gcal-surface-2: rgba(28, 31, 25, 0.96);
  --gcal-surface-card: rgba(23, 25, 20, 0.97);
  --gcal-cell-bg: rgba(17, 20, 17, 0.92);
  --gcal-cell-muted: rgba(11, 13, 11, 0.72);
  --gcal-cell-hover: rgba(34, 46, 35, 0.72);
  --gcal-today-bg: rgba(26, 72, 39, 0.28);
  --gcal-border: #5c4d2e;
  --gcal-border-soft: rgba(212, 175, 55, 0.24);
  --gcal-border-grid: rgba(212, 175, 55, 0.14);
  --gcal-gold: #d4af37;
  --gcal-gold-soft: #ccb06a;
  --gcal-gold-bright: #f4d88c;
  --gcal-emerald: #26a64c;
  --gcal-emerald-dark: #154b26;
  --gcal-text: #f0eadc;
  --gcal-muted: #aba391;
  --gcal-dim: #7c7668;
  --gcal-danger: #cf675c;
  --gcal-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  --gcal-radius: 12px;
  --gcal-radius-sm: 7px;
  --gcal-font-display: 'Cinzel', 'Caudex', Georgia, serif;
  --gcal-font-body: 'Caudex', Georgia, serif;
  --gcal-font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.gcal-shell {
  max-width: 1420px;
  margin: 0 auto;
  padding: 10px 18px 48px;
  color: var(--gcal-text);
  font-family: var(--gcal-font-body);
}

.gcal-shell *,
.gcal-shell *::before,
.gcal-shell *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Hero Banner
   -------------------------------------------------------------------------- */
.gcal-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  margin-bottom: 18px;
  border: 1px solid var(--gcal-border);
  border-radius: var(--gcal-radius);
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.14), transparent 48%),
    radial-gradient(circle at 12% 88%, rgba(34, 170, 68, 0.14), transparent 45%),
    linear-gradient(135deg, rgba(16, 19, 15, 0.96) 0%, rgba(37, 31, 21, 0.9) 100%),
    url('/images/backgrounds/stone.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--gcal-shadow), inset 0 1px 0 rgba(244, 216, 140, 0.18);
}

.gcal-hero::before,
.gcal-hero::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(212, 175, 55, 0.55);
  pointer-events: none;
}

.gcal-hero::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid rgba(212, 175, 55, 0.55);
  border-left: 2px solid rgba(212, 175, 55, 0.55);
  border-radius: 3px 0 0 0;
}

.gcal-hero::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.55);
  border-right: 2px solid rgba(212, 175, 55, 0.55);
  border-radius: 0 0 3px 0;
}

.gcal-hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.gcal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gcal-gold);
  font-family: var(--gcal-font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.gcal-hero__title {
  margin: 6px 0 6px;
  font-family: var(--gcal-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gcal-gold-bright);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  line-height: 1.15;
}

.gcal-hero__sub {
  margin: 0;
  max-width: 720px;
  color: var(--gcal-muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

.gcal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Medieval Buttons
   -------------------------------------------------------------------------- */
.gcal-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: var(--gcal-radius-sm);
  border: 1px solid #7d6535;
  background: linear-gradient(180deg, #5e4926 0%, #3a2d18 100%);
  color: #fff6de;
  font-family: var(--gcal-font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 240, 195, 0.18), 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease, filter 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.gcal-btn:hover,
.gcal-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gcal-gold-bright);
  filter: brightness(1.1);
  color: #ffffff;
  outline: none;
}

.gcal-btn--emerald {
  border-color: #369e54;
  background: linear-gradient(180deg, #25733c 0%, #154824 100%);
  color: #f1fff4;
}

.gcal-btn--emerald:hover,
.gcal-btn--emerald:focus-visible {
  border-color: #62d682;
}

.gcal-btn--ghost {
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(20, 24, 20, 0.85);
  color: var(--gcal-text);
  box-shadow: none;
}

.gcal-btn--ghost:hover,
.gcal-btn--ghost:focus-visible {
  background: rgba(44, 38, 25, 0.9);
  border-color: var(--gcal-gold);
}

.gcal-btn--sm {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 0.83rem;
}

.gcal-btn--icon {
  width: 36px;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Control Deck & Filter Bar
   -------------------------------------------------------------------------- */
.gcal-controls {
  margin-bottom: 16px;
  border: 1px solid var(--gcal-border-soft);
  border-radius: var(--gcal-radius);
  background: var(--gcal-surface);
  box-shadow: var(--gcal-shadow);
  overflow: hidden;
}

.gcal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 16px;
  background: linear-gradient(180deg, rgba(84, 65, 33, 0.34) 0%, rgba(28, 24, 18, 0.45) 100%);
  border-bottom: 1px solid var(--gcal-border-soft);
}

.gcal-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gcal-period-heading {
  margin: 0 6px;
  font-family: var(--gcal-font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--gcal-gold-bright);
  min-width: 195px;
  text-align: center;
}

.gcal-jump-selects {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gcal-select-compact {
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: #141713;
  color: var(--gcal-text);
  font-family: var(--gcal-font-ui);
  font-size: 0.82rem;
  cursor: pointer;
}

.gcal-select-compact:focus {
  outline: none;
  border-color: var(--gcal-gold);
}

/* Segmented View Switcher */
.gcal-views {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(10, 12, 10, 0.78);
  gap: 2px;
}

.gcal-view-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gcal-muted);
  font-family: var(--gcal-font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gcal-view-btn:hover {
  color: var(--gcal-gold-bright);
}

.gcal-view-btn.is-active {
  background: linear-gradient(180deg, rgba(114, 88, 42, 0.7) 0%, rgba(64, 49, 24, 0.85) 100%);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fff8e2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Timezone Switcher */
.gcal-tz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(14, 18, 15, 0.85);
  color: var(--gcal-gold-soft);
  font-family: var(--gcal-font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gcal-tz-toggle:hover {
  border-color: var(--gcal-gold-bright);
  background: rgba(34, 48, 36, 0.75);
  color: #ffffff;
}

.gcal-tz-toggle__pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(38, 166, 76, 0.22);
  border: 1px solid rgba(38, 166, 76, 0.45);
  color: #9bf0b2;
  font-size: 0.72rem;
}

/* Filter Controls Row */
.gcal-filter-bar {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gcal-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(170px, 1.1fr) minmax(200px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
}

.gcal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gcal-input-wrap > i {
  position: absolute;
  left: 11px;
  color: var(--gcal-gold-soft);
  font-size: 0.85rem;
  pointer-events: none;
}

.gcal-control {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: #131613;
  color: var(--gcal-text);
  font-family: var(--gcal-font-ui);
  font-size: 0.86rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gcal-input-wrap .gcal-control {
  padding-left: 33px;
}

.gcal-control:focus {
  outline: none;
  border-color: var(--gcal-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.gcal-toggles {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.gcal-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(15, 18, 15, 0.85);
  color: var(--gcal-muted);
  font-family: var(--gcal-font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.gcal-chip:hover {
  border-color: var(--gcal-gold);
  color: var(--gcal-text);
}

.gcal-chip.is-active {
  background: rgba(34, 170, 68, 0.2);
  border-color: rgba(74, 210, 109, 0.65);
  color: #dfffe7;
}

.gcal-chip--game {
  padding-left: 7px;
}

.gcal-chip--game.is-active {
  background: color-mix(in srgb, var(--chip-color, #d4af37) 24%, #111511);
  border-color: var(--chip-color, #d4af37);
  color: #ffffff;
}

.gcal-chip__icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  background: #0d100d;
}

.gcal-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, #d4af37);
  flex-shrink: 0;
}

.gcal-quickgames-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gcal-quickgames {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gcal-status-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--gcal-font-ui);
  font-size: 0.8rem;
  color: var(--gcal-muted);
}

.gcal-status-count strong {
  color: var(--gcal-gold-bright);
}

/* --------------------------------------------------------------------------
   Calendar Main Stage
   -------------------------------------------------------------------------- */
.gcal-stage {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--gcal-border-soft);
  border-radius: var(--gcal-radius);
  background: var(--gcal-surface);
  box-shadow: var(--gcal-shadow);
  overflow: hidden;
}

.gcal-loading {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(12, 15, 12, 0.68);
  backdrop-filter: blur(2px);
  color: var(--gcal-gold-bright);
  font-family: var(--gcal-font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.gcal-stage.is-loading .gcal-loading {
  opacity: 1;
  pointer-events: auto;
}

.gcal-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.25);
  border-top-color: var(--gcal-gold-bright);
  animation: gcal-spin 0.7s linear infinite;
}

@keyframes gcal-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   MONTH VIEW
   -------------------------------------------------------------------------- */
.gcal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: linear-gradient(180deg, #272219 0%, #191610 100%);
  border-bottom: 1px solid var(--gcal-border);
}

.gcal-weekday {
  padding: 10px 8px;
  text-align: center;
  font-family: var(--gcal-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gcal-gold-soft);
  border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.gcal-weekday:last-child {
  border-right: 0;
}

.gcal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gcal-day-cell {
  position: relative;
  min-height: 136px;
  padding: 7px 6px 8px;
  border-right: 1px solid var(--gcal-border-grid);
  border-bottom: 1px solid var(--gcal-border-grid);
  background: var(--gcal-cell-bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: background 0.14s ease;
}

.gcal-day-cell:nth-child(7n) {
  border-right: 0;
}

.gcal-day-cell:hover {
  background: var(--gcal-cell-hover);
}

.gcal-day-cell.is-outside {
  background: var(--gcal-cell-muted);
  opacity: 0.56;
}

.gcal-day-cell.is-today {
  background: var(--gcal-today-bg);
  box-shadow: inset 0 0 0 1px rgba(62, 189, 98, 0.55);
}

.gcal-day-cell.is-selected {
  box-shadow: inset 0 0 0 2px var(--gcal-gold);
}

.gcal-day-cell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}

.gcal-day-num {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gcal-text);
  font-family: var(--gcal-font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.gcal-day-num:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gcal-gold-bright);
}

.gcal-day-cell.is-today .gcal-day-num {
  background: var(--gcal-emerald-dark);
  border-color: var(--gcal-emerald);
  color: #ffffff;
}

.gcal-day-add {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(20, 24, 19, 0.85);
  color: var(--gcal-gold);
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.gcal-day-cell:hover .gcal-day-add,
.gcal-day-cell:focus-within .gcal-day-add {
  opacity: 1;
}

.gcal-day-add:hover {
  background: var(--gcal-gold);
  color: #14120d;
}

.gcal-day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Event Pill inside Month Grid */
.gcal-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--ev-color, #d4af37);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ev-color, #d4af37) 22%, rgba(20, 22, 19, 0.96)) 0%,
    rgba(24, 27, 23, 0.94) 100%
  );
  color: #f4efe3;
  text-decoration: none;
  font-family: var(--gcal-font-ui);
  font-size: 0.74rem;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.gcal-pill:hover,
.gcal-pill:focus-visible {
  transform: translateY(-1px);
  border-color: var(--ev-color, #d4af37);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  outline: none;
  z-index: 2;
}

.gcal-pill.is-highlight {
  box-shadow: inset 0 0 0 1px rgba(244, 216, 140, 0.45);
}

.gcal-pill__icon {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0d100d;
}

.gcal-pill__time {
  color: var(--gcal-gold-bright);
  font-weight: 700;
  font-size: 0.69rem;
  flex-shrink: 0;
}

.gcal-pill__title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.gcal-pill__flags {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--gcal-gold-soft);
}

.gcal-pill__flags .fa-twitch {
  color: #b18aff;
}

.gcal-pill__flags .fa-star {
  color: var(--gcal-gold-bright);
}

.gcal-more-btn {
  appearance: none;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gcal-gold-bright);
  border-radius: 5px;
  padding: 3px 6px;
  font-family: var(--gcal-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.gcal-more-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gcal-gold-bright);
}

/* Mobile day drawer below Month grid */
.gcal-mobile-drawer {
  display: none;
  padding: 14px;
  border-top: 1px solid var(--gcal-border);
  background: rgba(14, 17, 14, 0.96);
}

/* --------------------------------------------------------------------------
   YEAR VIEW (12-Month Overview)
   -------------------------------------------------------------------------- */
.gcal-year-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.gcal-mini-month {
  border: 1px solid var(--gcal-border-soft);
  border-radius: 10px;
  background: rgba(16, 19, 16, 0.94);
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.gcal-mini-month:hover {
  border-color: rgba(212, 175, 55, 0.55);
}

.gcal-mini-month__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(78, 60, 31, 0.42), rgba(26, 22, 16, 0.6));
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.gcal-mini-month__title {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--gcal-gold-bright);
  font-family: var(--gcal-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.gcal-mini-month__title:hover {
  text-decoration: underline;
}

.gcal-mini-month__badge {
  font-family: var(--gcal-font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gcal-gold-soft);
}

.gcal-mini-month__badge.has-events {
  background: rgba(34, 170, 68, 0.18);
  border-color: rgba(58, 194, 94, 0.45);
  color: #a4f3b9;
}

.gcal-mini-weekdays,
.gcal-mini-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 4px 6px;
  gap: 2px;
}

.gcal-mini-weekdays span {
  text-align: center;
  font-family: var(--gcal-font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gcal-dim);
  padding: 3px 0;
}

.gcal-mini-day {
  position: relative;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gcal-muted);
  border-radius: 5px;
  height: 30px;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--gcal-font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.gcal-mini-day:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: #ffffff;
}

.gcal-mini-day.is-has-events {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.28);
  color: #fff6de;
  font-weight: 700;
}

.gcal-mini-day.is-today {
  background: var(--gcal-emerald-dark);
  border-color: var(--gcal-emerald);
  color: #ffffff;
}

.gcal-mini-pips {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.gcal-mini-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   DAY VIEW (Single-Day Zoom)
   -------------------------------------------------------------------------- */
.gcal-day-view {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 0;
}

.gcal-day-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(66, 53, 28, 0.34), rgba(22, 20, 16, 0.55));
  border-bottom: 1px solid var(--gcal-border-soft);
}

.gcal-day-header__title {
  margin: 0;
  font-family: var(--gcal-font-display);
  font-size: 1.35rem;
  color: var(--gcal-gold-bright);
}

.gcal-day-header__sub {
  margin: 2px 0 0;
  font-family: var(--gcal-font-ui);
  font-size: 0.82rem;
  color: var(--gcal-muted);
}

/* Detailed Cards List */
.gcal-day-cards {
  padding: 18px;
  border-right: 1px solid var(--gcal-border-grid);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gcal-event-card {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-left: 4px solid var(--ev-color, #d4af37);
  background: var(--gcal-surface-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.gcal-event-card:hover {
  transform: translateY(-2px);
  border-color: var(--ev-color, #d4af37);
}

.gcal-event-card__banner {
  position: relative;
  height: 118px;
  background: #0d100d;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
}

.gcal-event-card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(1.08);
  transition: transform 0.35s ease;
}

.gcal-event-card:hover .gcal-event-card__art {
  transform: scale(1.04);
}

.gcal-event-card__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 10, 0.25) 0%, rgba(12, 14, 12, 0.92) 100%);
}

.gcal-event-card__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gcal-event-card__logo {
  max-height: 44px;
  max-width: 165px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95));
}

.gcal-event-card__game-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(12, 16, 13, 0.85);
  border: 1px solid color-mix(in srgb, var(--ev-color, #d4af37) 75%, #ffffff);
  color: #fff8e6;
  font-family: var(--gcal-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.gcal-event-card__body {
  padding: 14px 16px 15px;
}

.gcal-event-card__time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--gcal-font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gcal-gold-bright);
  margin-bottom: 5px;
}

.gcal-event-card__pt-note {
  color: var(--gcal-muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.gcal-event-card__title {
  margin: 0 0 8px;
  font-family: var(--gcal-font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}

.gcal-event-card__title a {
  color: #fff4d6;
  text-decoration: none;
}

.gcal-event-card__title a:hover {
  color: var(--gcal-gold-bright);
  text-decoration: underline;
}

.gcal-event-card__desc {
  margin: 0 0 12px;
  color: #d6cfc0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.gcal-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.gcal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #dbd2c0;
  font-family: var(--gcal-font-ui);
  font-size: 0.74rem;
}

.gcal-tag--live {
  background: rgba(145, 70, 255, 0.2);
  border-color: rgba(177, 138, 255, 0.55);
  color: #e4d4ff;
}

.gcal-event-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gcal-card-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* 24-Hour Day Timeline Sidebar */
.gcal-timeline-wrap {
  padding: 16px;
  background: rgba(13, 16, 13, 0.75);
}

.gcal-timeline-title {
  margin: 0 0 10px;
  font-family: var(--gcal-font-display);
  font-size: 0.95rem;
  color: var(--gcal-gold-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gcal-timeline {
  position: relative;
  height: 1152px; /* 24 hours * 48px */
  border: 1px solid var(--gcal-border-grid);
  border-radius: 8px;
  background: rgba(16, 19, 16, 0.92);
  overflow: hidden;
}

.gcal-hour-row {
  position: relative;
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
}

.gcal-hour-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.gcal-hour-label {
  width: 66px;
  padding: 4px 8px 0;
  font-family: var(--gcal-font-ui);
  font-size: 0.69rem;
  color: var(--gcal-dim);
  text-align: right;
  flex-shrink: 0;
  border-right: 1px solid rgba(212, 175, 55, 0.14);
  height: 100%;
}

.gcal-timeline-events {
  position: absolute;
  top: 0;
  left: 72px;
  right: 8px;
  bottom: 0;
  pointer-events: none;
}

.gcal-time-block {
  position: absolute;
  pointer-events: auto;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--ev-color, #d4af37) 70%, transparent);
  border-left: 4px solid var(--ev-color, #d4af37);
  background: color-mix(in srgb, var(--ev-color, #d4af37) 26%, rgba(18, 20, 17, 0.95));
  color: #ffffff;
  text-decoration: none;
  font-family: var(--gcal-font-ui);
  font-size: 0.74rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: z-index 0.1s, transform 0.12s ease;
}

.gcal-time-block:hover {
  z-index: 10;
  transform: scale(1.015);
}

.gcal-time-block__time {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gcal-gold-bright);
  display: block;
}

.gcal-time-block__title {
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcal-now-line {
  position: absolute;
  left: 66px;
  right: 0;
  height: 2px;
  background: var(--gcal-gold-bright);
  box-shadow: 0 0 8px rgba(244, 216, 140, 0.7);
  z-index: 6;
  pointer-events: none;
}

.gcal-now-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gcal-gold-bright);
}

/* --------------------------------------------------------------------------
   AGENDA VIEW (Chronological List)
   -------------------------------------------------------------------------- */
.gcal-agenda {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gcal-agenda-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(84, 65, 33, 0.38), rgba(24, 26, 22, 0.3));
  border-left: 3px solid var(--gcal-gold);
}

.gcal-agenda-day__title {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--gcal-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gcal-gold-bright);
  cursor: pointer;
}

.gcal-agenda-day__title:hover {
  text-decoration: underline;
}

.gcal-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gcal-agenda-row {
  display: grid;
  grid-template-columns: 120px 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 4px solid var(--ev-color, #d4af37);
  background: rgba(22, 25, 21, 0.94);
  text-decoration: none;
  color: var(--gcal-text);
  transition: transform 0.13s ease, border-color 0.14s ease, background 0.14s ease;
}

.gcal-agenda-row:hover {
  transform: translateX(3px);
  border-color: var(--ev-color, #d4af37);
  background: rgba(31, 35, 29, 0.98);
}

.gcal-agenda-row__time {
  font-family: var(--gcal-font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gcal-gold-bright);
}

.gcal-agenda-row__time small {
  display: block;
  font-weight: 500;
  color: var(--gcal-muted);
  font-size: 0.72rem;
}

.gcal-agenda-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #0d100d;
}

.gcal-agenda-row__title {
  font-family: var(--gcal-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff4d6;
  margin-bottom: 3px;
}

.gcal-agenda-row__snippet {
  font-family: var(--gcal-font-ui);
  font-size: 0.8rem;
  color: var(--gcal-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty State */
.gcal-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--gcal-muted);
}

.gcal-empty i {
  font-size: 2.2rem;
  color: var(--gcal-gold);
  opacity: 0.65;
  margin-bottom: 10px;
  display: block;
}

.gcal-empty h3 {
  margin: 0 0 6px;
  font-family: var(--gcal-font-display);
  color: var(--gcal-gold-bright);
}

/* --------------------------------------------------------------------------
   RICH GAME-ART FLOATING TOOLTIP CARD (#gcal-tooltip)
   -------------------------------------------------------------------------- */
.gcal-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10200;
  width: min(370px, calc(100vw - 20px));
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-top: 3px solid var(--tip-color, #d4af37);
  background: #131613;
  color: var(--gcal-text);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.985);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.gcal-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.gcal-tooltip__hero {
  position: relative;
  height: 132px;
  background: linear-gradient(135deg, #1b221c, #111310);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}

.gcal-tooltip__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.1);
}

.gcal-tooltip__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 10, 0.35) 0%,
    rgba(12, 14, 12, 0.25) 40%,
    rgba(16, 19, 16, 0.96) 100%
  );
}

.gcal-tooltip__top-tags {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.gcal-tooltip__game-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(12, 15, 12, 0.84);
  border: 1px solid color-mix(in srgb, var(--tip-color, #d4af37) 80%, #fff);
  color: #fff8e3;
  font-family: var(--gcal-font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gcal-tooltip__type-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 22, 18, 0.84);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gcal-gold-bright);
  font-family: var(--gcal-font-ui);
  font-size: 0.68rem;
  font-weight: 700;
}

.gcal-tooltip__logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcal-tooltip__logo {
  max-height: 44px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95));
}

.gcal-tooltip__icon-fallback {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #0c0e0c;
}

.gcal-tooltip__body {
  padding: 11px 14px 12px;
}

.gcal-tooltip__title {
  margin: 0 0 6px;
  font-family: var(--gcal-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gcal-gold-bright);
  line-height: 1.24;
}

.gcal-tooltip__time {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--gcal-font-ui);
  font-size: 0.77rem;
  font-weight: 700;
  color: #e9e3d2;
  margin-bottom: 8px;
}

.gcal-tooltip__time i {
  color: var(--gcal-gold);
}

.gcal-tooltip__pt-ref {
  font-weight: 500;
  color: var(--gcal-muted);
  font-size: 0.72rem;
}

.gcal-tooltip__snippet {
  margin: 0 0 10px;
  color: #cfc8b8;
  font-family: var(--gcal-font-body);
  font-size: 0.87rem;
  line-height: 1.45;
}

.gcal-tooltip__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  font-family: var(--gcal-font-ui);
  font-size: 0.73rem;
  color: var(--gcal-muted);
}

.gcal-tooltip__foot strong {
  color: var(--gcal-text);
}

/* Compact Day Preview Tooltip (Year View) */
.gcal-tooltip--day {
  width: min(310px, calc(100vw - 20px));
  padding: 12px 14px;
}

.gcal-tooltip__day-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gcal-tooltip__day-list li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--gcal-font-ui);
  font-size: 0.77rem;
  color: var(--gcal-text);
}

.gcal-tooltip__day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   MODALS (Create Event & Export / Subscribe)
   -------------------------------------------------------------------------- */
dialog.gcal-modal {
  padding: 0;
  width: min(94vw, 760px);
  max-height: 90vh;
  border: 1px solid var(--gcal-border);
  border-radius: 14px;
  background: #141713;
  color: var(--gcal-text);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(244, 216, 140, 0.16);
  overflow: hidden;
  font-family: var(--gcal-font-body);
}

dialog.gcal-modal[open] {
  display: flex;
  flex-direction: column;
  animation: gcal-modal-in 0.16s ease-out;
}

dialog.gcal-modal::backdrop {
  background: rgba(6, 8, 7, 0.8);
  backdrop-filter: blur(4px);
}

@keyframes gcal-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gcal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: linear-gradient(180deg, rgba(88, 68, 34, 0.42), rgba(26, 22, 16, 0.7));
  border-bottom: 1px solid var(--gcal-border-soft);
}

.gcal-modal__head h2 {
  margin: 0;
  font-family: var(--gcal-font-display);
  font-size: 1.2rem;
  color: var(--gcal-gold-bright);
  display: flex;
  align-items: center;
  gap: 9px;
}

.gcal-modal__close {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(16, 19, 16, 0.9);
  color: var(--gcal-gold-bright);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, color 0.14s ease;
}

.gcal-modal__close:hover {
  background: var(--gcal-emerald-dark);
  color: #ffffff;
}

.gcal-modal__body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.gcal-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 20px;
  background: rgba(15, 18, 15, 0.95);
  border-top: 1px solid var(--gcal-border-soft);
}

/* Modal Form Controls */
.gcal-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.gcal-col-4  { grid-column: span 4; }
.gcal-col-6  { grid-column: span 6; }
.gcal-col-8  { grid-column: span 8; }
.gcal-col-12 { grid-column: span 12; }

.gcal-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--gcal-gold-soft);
  font-family: var(--gcal-font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gcal-field input[type="text"],
.gcal-field input[type="url"],
.gcal-field input[type="date"],
.gcal-field input[type="time"],
.gcal-field input[type="number"],
.gcal-field select,
.gcal-field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: #101310;
  color: var(--gcal-text);
  font-family: var(--gcal-font-ui);
  font-size: 0.88rem;
  outline: none;
}

.gcal-field textarea {
  resize: vertical;
  min-height: 86px;
}

.gcal-field input:focus,
.gcal-field select:focus,
.gcal-field textarea:focus {
  border-color: var(--gcal-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.gcal-field__help {
  margin-top: 4px;
  font-family: var(--gcal-font-ui);
  font-size: 0.75rem;
  color: var(--gcal-muted);
}

.gcal-tz-preview {
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid rgba(38, 166, 76, 0.35);
  background: rgba(21, 75, 38, 0.24);
  color: #b9f3c9;
  font-family: var(--gcal-font-ui);
  font-size: 0.79rem;
}

.gcal-form-error {
  padding: 10px 13px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(207, 103, 92, 0.65);
  background: rgba(145, 52, 44, 0.22);
  color: #f6c7c1;
  font-family: var(--gcal-font-ui);
  font-size: 0.84rem;
}

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

.gcal-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.gcal-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gcal-emerald);
}

.gcal-check b {
  display: block;
  font-family: var(--gcal-font-ui);
  font-size: 0.82rem;
  color: var(--gcal-gold-bright);
}

.gcal-check small {
  display: block;
  font-family: var(--gcal-font-ui);
  font-size: 0.73rem;
  color: var(--gcal-muted);
}

.gcal-cover-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  max-height: 175px;
  overflow-y: auto;
  padding: 2px;
}

.gcal-cover-opt {
  position: relative;
  display: block;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: #0d100d;
  cursor: pointer;
}

.gcal-cover-opt input {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  accent-color: var(--gcal-gold);
}

.gcal-cover-opt img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.gcal-cover-opt input:checked + img {
  opacity: 1;
  outline: 2px solid var(--gcal-gold-bright);
  outline-offset: -2px;
}

.gcal-cover-opt span {
  display: block;
  padding: 4px 6px;
  font-family: var(--gcal-font-ui);
  font-size: 0.7rem;
  color: var(--gcal-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Export Modal Cards */
.gcal-export-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--gcal-font-ui);
  font-size: 0.84rem;
}

.gcal-sub-box {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(38, 166, 76, 0.42);
  background: linear-gradient(135deg, rgba(21, 75, 38, 0.28), rgba(18, 22, 19, 0.92));
}

.gcal-sub-box h3 {
  margin: 0 0 6px;
  font-family: var(--gcal-font-display);
  font-size: 1rem;
  color: var(--gcal-gold-bright);
}

.gcal-sub-box p {
  margin: 0 0 10px;
  font-family: var(--gcal-font-ui);
  font-size: 0.82rem;
  color: var(--gcal-muted);
}

.gcal-copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.gcal-copy-row input {
  flex: 1 1 auto;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #0f120f;
  color: #e6f5ea;
  font-family: monospace;
  font-size: 0.8rem;
}

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

.gcal-export-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(20, 23, 19, 0.92);
  text-decoration: none;
  color: var(--gcal-text);
  transition: border-color 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

.gcal-export-card:hover {
  border-color: var(--gcal-gold-bright);
  background: rgba(34, 38, 30, 0.96);
  transform: translateY(-1px);
  color: #ffffff;
}

.gcal-export-card__info strong {
  display: block;
  font-family: var(--gcal-font-ui);
  font-size: 0.88rem;
  color: var(--gcal-gold-bright);
}

.gcal-export-card__info small {
  display: block;
  font-family: var(--gcal-font-ui);
  font-size: 0.74rem;
  color: var(--gcal-muted);
}

.gcal-export-card__icon {
  font-size: 1.35rem;
  color: var(--gcal-gold);
  width: 34px;
  text-align: center;
  flex-shrink: 0;
}

/* Toast Notification */
.gcal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10300;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(18, 28, 20, 0.97);
  color: #f3f7ee;
  font-family: var(--gcal-font-ui);
  font-size: 0.86rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gcal-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gcal-toast.is-error {
  border-color: rgba(207, 103, 92, 0.7);
  background: rgba(45, 18, 16, 0.97);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .gcal-year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gcal-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gcal-day-view {
    grid-template-columns: 1fr;
  }
  .gcal-day-cards {
    border-right: 0;
    border-bottom: 1px solid var(--gcal-border-grid);
  }
}

@media (max-width: 820px) {
  .gcal-shell {
    padding: 8px 10px 36px;
  }
  .gcal-hero {
    padding: 18px 16px;
  }
  .gcal-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gcal-day-cell {
    min-height: 78px;
    padding: 4px;
  }
  .gcal-pill__time,
  .gcal-pill__flags {
    display: none;
  }
  .gcal-day-events {
    gap: 2px;
  }
  .gcal-mobile-drawer {
    display: block;
  }
  .gcal-agenda-row {
    grid-template-columns: 88px 36px minmax(0, 1fr);
  }
  .gcal-agenda-row__badge {
    display: none;
  }
  .gcal-export-grid,
  .gcal-options-grid {
    grid-template-columns: 1fr;
  }
  .gcal-col-4,
  .gcal-col-6,
  .gcal-col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 560px) {
  .gcal-filter-grid {
    grid-template-columns: 1fr;
  }
  .gcal-year-grid {
    grid-template-columns: 1fr;
  }
  .gcal-period-heading {
    min-width: auto;
    font-size: 1.15rem;
  }
  .gcal-weekday {
    font-size: 0.7rem;
    padding: 7px 2px;
  }
}
