/* LAYOUT */
  .page { display: flex; min-height: 100vh; }

  /* SIDEBAR */
  .sidebar {
    width: 260px; min-width: 260px; background: var(--brown-deep); color: var(--cream);
    display: flex; flex-direction: column; padding: 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100;
  }
  .sidebar-logo {
    display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none; cursor: pointer;
  }
  .sidebar-logo img { width: 40px; height: 40px; object-fit: contain; }
  .sidebar-brand-name { font-family: var(--font-body); font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.25; }
  .sidebar-brand-name .b-white { color: var(--cream); }
  .sidebar-brand-name .b-orange { color: #FF6700; }
  .sidebar-logo-sub { font-size: 12px; color: rgba(255,248,236,0.5); letter-spacing: 0.08em; text-transform: uppercase; }

  .sidebar-section { padding: 16px 0 8px; }
  .sidebar-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,248,236,0.35); padding: 0 16px 6px; }
  .sidebar-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 16px;
    font-size: 17px; font-weight: 500; color: rgba(255,248,236,0.75); cursor: pointer;
    text-decoration: none; border-radius: 0; transition: all 0.15s;
  }
  .sidebar-item:hover { background: rgba(255,255,255,0.07); color: var(--cream); }
  .sidebar-item.active { background: #FF6700; color: var(--cream); font-weight: 600; }
  .sidebar-icon { font-size: 21px; width: 20px; text-align: center; }

  .sidebar-admin { margin-top: auto; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.15); }
  .sidebar-admin-label { font-size: 12px; color: #FF6700; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
  .sidebar-admin-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 16px; color: rgba(255,248,236,0.6); cursor: pointer; }
  .sidebar-admin-item:hover { color: var(--cream); }

  /* MAIN */
  .main { margin-left: 260px; flex: 1; }

  /* TOPBAR / GODMORGEN-BLOK (identisk med live-siden) */
  .topbar {
    background: linear-gradient(160deg, #1E0800 0%, var(--brown-deep) 100%);
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 28px;
  }
  .greeting-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; width: 100%; }
  .greeting-logo-link { display: flex; order: 0; line-height: 0; }
  .greeting-logo { width: 63px; height: 63px; object-fit: contain; flex-shrink: 0; }
  .greeting-left { display: flex; align-items: center; gap: 14px; }
  .greeting-sun {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    order: 2;
  }
  .greeting-sun img { width: 100%; height: 100%; object-fit: contain; }
  .greeting-text { order: 1; }
  .greeting-title {
    font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--cream); line-height: 1.2;
  }
  .greeting-title span { color: #FF6700; }
  .greeting-sub { font-size: 14.5px; color: rgba(255,248,236,0.55); margin-top: 2px; }
  .greeting-right { display: flex; align-items: center; gap: 10px; }
  /* Log ud og Min side følger ENSARTET KNAP-SYSTEM: var(--btn-radius), 16px/700 tekst,
     Min side = orange (som btn-primary), Log ud = sand (som btn-ghost). Ikon til højre. */
  .greeting-right a {
    display: inline-flex; align-items: center; gap: 8px; flex-direction: row-reverse;
    border: none; font-size: 15px; font-weight: 700;
    padding: 10px 18px; border-radius: var(--btn-radius); letter-spacing: 0.01em;
    font-family: var(--font-body); text-decoration: none; cursor: pointer;
    transition: background 0.15s, transform 0.15s;
  }
  .greeting-right a.btn-minside { background: var(--orange); color: var(--cream); }
  .greeting-right a.btn-minside:hover { background: var(--orange-light); transform: translateY(-1px); }
  .greeting-right a.btn-logud { background: #FFF0D3; color: #FF6700; }
  .greeting-right a.btn-logud:hover { background: var(--cream-mid); transform: translateY(-1px); }
  .greeting-right a.btn-minside i { color: var(--cream); }
  .greeting-right a.btn-logud i { color: #FF6700; }
  /* Logget ind er status-tekst, ikke en knap */
  .login-pill {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,248,236,0.55); font-size: 13.5px; font-weight: 600;
    letter-spacing: 0.02em; font-family: var(--font-body);
  }
  .login-pill i { color: #FF6700; }

  /* CONTENT */
  .content { padding: 24px 28px 48px; }

  /* HERO CARD */
  .hero {
    position: relative; overflow: hidden;
    background: var(--brown-deep);
    border-radius: 16px; padding: 28px; color: var(--cream); margin-bottom: 20px;
    display: grid; grid-template-columns: 1fr 460px; column-gap: 24px; align-items: start;
  }
  .hero-header { grid-column: 1 / -1; }
  .hero-left { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
  .hero-title { font-size: 34px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; font-family: var(--font-display); }
  .hero-title span { color: #FF6700; }
  .hero-sub { font-size: 17px; color: rgba(255,248,236,0.65); margin-bottom: 18px; }

  .next-live-badge {
    display: block;
    background: #FF6700; color: var(--cream);
    padding: 16px; border-radius: 12px;
  }
  .next-live-badge-row { display: flex; flex-direction: row; align-items: center; gap: 20px; }
  .next-live-badge-cols { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
  .next-live-badge-left { flex: 0 1 auto; min-width: 0; }
  .next-live-badge-heading { display: flex; align-items: center; gap: 10px; }
  .next-live-heading-text { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #461604; white-space: nowrap; }
  .next-live-heading-text span { color: var(--cream); }
  .live-icon-2 { height: 26px; width: auto; flex-shrink: 0; display: block; }
  .next-live-badge-datetime { font-size: 16px; font-weight: 700; letter-spacing: 0.03em; margin-top: 8px; color: rgba(255,248,236,0.95); white-space: nowrap; }
  .next-live-badge-right { flex-shrink: 0; }
  .trainer-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; flex-shrink: 0; }
  .trainer-avatar {
    width: 42px; height: 42px; border-radius: 50%; background: var(--orange);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 21px; flex-shrink: 0;
  }
  .trainer-info { flex: 0 1 auto; min-width: 0; }
  .trainer-name { font-size: 18px; font-weight: 700; color: var(--text); }
  .trainer-meta { font-size: 16px; color: var(--cream); }
  .session-badge {
    background: var(--orange); color: var(--cream); font-size: 13px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px; margin-left: 6px;
  }
  /* ENSARTET KNAP-SYSTEM: alle knapper bruger --btn-radius, 16px/700 tekst,
     og kun de 3 reference-farver fra "Dine reminders" (sand / orange / mørkebrun). */
  .calendar-btn {
    background: #FFF0D3; border: none; color: #FF6700;
    font-size: 16px; font-weight: 700; padding: 12px 24px; border-radius: var(--btn-radius); cursor: pointer; font-family: var(--font-body);
    transition: background 0.15s, transform 0.15s;
  }
  .calendar-btn:hover { background: var(--cream-mid); transform: translateY(-1px); }

  .countdown {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 17px; color: rgba(255,248,236,0.85);
  }
  .countdown-title { font-size: 16px; color: rgba(255,248,236,0.85); }
  .countdown-group > div:not(.countdown-sep) { position: relative; }
  .countdown-group { display: flex; align-items: center; gap: 6px; }
  .countdown-num {
    background: rgba(255,255,255,0.20); border-radius: 6px;
    padding: 6px 10px; font-size: 29px; font-weight: 800; color: var(--cream); min-width: 52px; text-align: center;
  }
  .countdown-sep { font-size: 26px; font-weight: 800; color: rgba(255,248,236,0.55); }
  .countdown-label { font-size: 12px; color: rgba(255,248,236,0.7); text-align: center; margin-top: 2px; letter-spacing: 0.06em; }

  .missede { display: flex; flex-direction: column; gap: 12px; width: 100%; font-size: 17px; color: var(--text-muted); }
  .missede a { color: #FF6700; font-weight: 600; text-decoration: none; }
  .missede-card {
    background: #FFF0D3; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; padding: 16px;
    flex: 0 0 auto; display: flex;
  }
  .missede-text { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 6px; }
  .missede-thumb-wrap {
    position: relative; width: 220px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; align-self: center;
  }
  .missede-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .missede-thumb-play-icon {
    position: absolute; top: 45%; left: 50%; transform: translate(-50%,-50%);
    width: 42px; height: 42px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  }
  .hero-right .card-title, .missede-text .card-title { color: var(--text); }

  /* INFO BOX */
  .hero-right-col { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
  .hero-right {
    background: #FFF0D3; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; padding: 16px;
  }
  .info-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
  .info-body { font-size: 17px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
  .info-img {
    width: 200px; max-width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 8px;
    background: linear-gradient(135deg, #FF8C42 0%, #E05C00 100%);
    display: flex; align-items: center; justify-content: center; font-size: 52px;
  }

  /* STATS */
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
  .stat-card {
    background: #FFFFFF; border-radius: var(--radius); padding: 18px 16px;
    border: 1px solid #FFF0D3;
  }
  .stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .stat-label { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .stat-icon { font-size: 23px; }
  .stat-num { font-size: 42px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 4px; font-family: var(--font-display); }
  .stat-sub { font-size: 14px; color: #FF6700; font-weight: 600; }

  /* TWO COL */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }

  /* BADGES */
  .card { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid rgba(0,0,0,0.06); }
  .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .card-title { font-size: 21px; font-weight: 700; font-family: var(--font-display); }
  .card-title span { color: var(--orange);  }
  .card-link { font-size: 16px; color: #FF6700; font-weight: 600; text-decoration: none; }

  .xp-bar-wrap { margin-bottom: 14px; }
  .xp-label { font-size: 14px; color: var(--text-muted); margin-bottom: 5px; display: flex; justify-content: space-between; }
  .xp-bar { height: 8px; background: #FFDDA5; border-radius: 4px; overflow: hidden; }
  .xp-fill { height: 100%; background: linear-gradient(90deg, #FF6700 0%, #FF800A 100%); border-radius: 4px; width: 82%; }

  .badges-row { display: flex; gap: 12px; flex-wrap: wrap; }
  .badge-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .badge-circle {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 31px;
  }
  .badge-circle.earned { background: linear-gradient(135deg, #FF6700 0%, #A1390B 100%); }
  .badge-circle.locked { background: #FFDDA5; filter: grayscale(1); opacity: 0.5; }
  .badge-name { font-size: 16px; font-weight: 600; color: var(--text-muted); text-align: center; max-width: 60px; }

  /* SCHEDULE */
  .schedule-list { display: flex; flex-direction: column; gap: 8px; }
  .schedule-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; background: #FFF8EC; border-radius: 8px; border: 1px solid #FFF0D3;
  }
  .schedule-date { text-align: center; min-width: 36px; }
  .schedule-day { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.06em; }
  .schedule-num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
  .schedule-info { flex: 1; }
  .schedule-topic { font-size: 18px; font-weight: 600; }
  .schedule-meta { font-size: 16px; color: var(--text-muted); }
  .schedule-badge { background: #FF6700; color: var(--cream); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 5px; }
  .tilmeld-btn {
    background: var(--brown-deep); color: var(--cream); border: none; border-radius: var(--btn-radius);
    padding: 12px 24px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
    transition: background 0.15s, transform 0.15s;
  }
  .tilmeld-btn:hover { background: var(--brown-mid); transform: translateY(-1px); }

  /* ELASTIK BANNER */
  .elastik-banner {
    background: #FF6700 url('../images/forside/forside-01-c33ae3c1fd44f49f.webp') center/cover no-repeat;
    border-radius: 14px; padding: 22px 24px;
    margin-bottom: 24px;
  }
  .elastik-banner-title {
    font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 20px;
  }
  .elastik-banner-title .b1 { color: var(--brown-deep); }
  .elastik-banner-title .b2 { color: var(--cream); }
  .elastik-banner-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 14px; row-gap: 8px; align-items: start;
  }
  .elastik-video {
    border-radius: 10px; overflow: hidden; background: rgba(0,0,0,0.25);
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
  }
  .elastik-img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; margin: 0;
  }
  .play-btn {
    width: 44px; height: 44px; background: transparent; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  }
  .play-btn:hover { transform: scale(1.06); }
  .elastik-label { font-size: 14px; color: rgba(255,248,236,0.7); font-weight: 600; }
  .elastik-title { font-size: 18px; font-weight: 700; color: var(--cream); }
  .elastik-date { font-size: 14px; color: rgba(255,248,236,0.6); }
  .elastik-link { color: var(--cream); font-weight: 700; font-size: 17px; text-decoration: none; }
  .elastik-shop-card {
    display: flex; flex-direction: column; gap: 8px; justify-content: center;
  }
  .elastik-shop-title { font-size: 18px; font-weight: 700; color: var(--cream); }
  .shop-btn {
    background: #FFF0D3; color: #FF6700; border: none; border-radius: var(--btn-radius);
    padding: 12px 24px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: var(--font-body);
    width: fit-content; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    transition: background 0.15s, transform 0.15s;
  }
  .shop-btn:hover { background: var(--cream-mid); transform: translateY(-1px); }

  /* VIDEO GRID */
  .section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
  .section-title { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--brown-deep); line-height: 1.2; margin-bottom: 14px; }
  .section-title span { color: var(--orange);  }
  .section-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; }
  .section-link { font-size: 17px; color: #FF6700; font-weight: 600; text-decoration: none; }

  .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
  .video-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
  .video-thumb {
    aspect-ratio: 16/9; background: linear-gradient(135deg, #2A0A00 0%, #5A2000 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .video-play {
    width: 44px; height: 44px; background: transparent; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  }
  .video-play:hover { transform: scale(1.06); }
  .video-dur {
    position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7);
    color: var(--cream); font-size: 14px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  }
  .video-info { padding: 12px 14px; }
  .video-title { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
  .video-meta { font-size: 16px; color: var(--text-muted); }

  /* REMINDERS */
  .reminder-card { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid rgba(0,0,0,0.06); margin-bottom: 28px; }
  .reminder-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .reminder-title { font-size: 21px; font-weight: 700; font-family: var(--font-display); }
  .reminder-title span { color: var(--orange);  }
  .toggle {
    width: 44px; height: 24px; background: #FF6700; border-radius: 12px;
    position: relative; cursor: pointer;
  }
  .toggle::after {
    content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
    background: white; border-radius: 50%;
  }
  .toggle-label { font-size: 14px; font-weight: 700; color: var(--orange); margin-left: 8px; }

  .reminder-section-label { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
  .days-row { display: flex; gap: 8px; margin-bottom: 16px; }
  .day-pill {
    width: 64px; height: 44px; padding: 0; border-radius: var(--btn-radius); font-size: 16px; font-weight: 700; cursor: pointer;
    background: #FFF0D3; color: #FF6700; font-family: var(--font-body); border: none;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.15s;
  }
  .day-pill:hover { background: var(--cream-mid); transform: translateY(-1px); }
  .day-pill.active { background: #FF6700; color: var(--cream); }
  .day-pill.active:hover { background: var(--orange-light); }

  .timing-row { display: flex; gap: 8px; margin-bottom: 16px; }
  .timing-pill {
    padding: 10px 18px; border-radius: var(--btn-radius); font-size: 16px; font-weight: 700; cursor: pointer;
    background: #FFF0D3; color: #FF6700; font-family: var(--font-body); border: none;
    transition: background 0.15s, transform 0.15s;
  }
  .timing-pill:hover { background: var(--cream-mid); transform: translateY(-1px); }
  .timing-pill.active { background: var(--brown-deep); color: var(--cream); }
  .timing-pill.active:hover { background: var(--brown-mid); }

  .ferie-row {
    display: flex; align-items: center; justify-content: space-between;
    background: #FFF0D3; border-radius: 8px; padding: 12px 14px;
  }
  .ferie-title { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
  .ferie-sub { font-size: 14px; color: var(--text-muted); }

  .uge-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
  .uge-nav { background: none; border: none; color: var(--orange); font-size: 20px; cursor: pointer; padding: 4px 6px; line-height: 1; }
  .uge-pills { display: flex; gap: 8px; justify-content: flex-start; }
  .uge-pill {
    padding: 10px 18px; border-radius: var(--btn-radius); font-size: 16px; font-weight: 700; cursor: pointer;
    background: #FFF0D3; color: #FF6700; font-family: var(--font-body); border: none;
    transition: background 0.15s, transform 0.15s;
  }
  .uge-pill:hover { background: var(--cream-mid); transform: translateY(-1px); }
  .uge-pill.active { background: var(--brown-deep); color: var(--cream); }
  .uge-pill.active:hover { background: var(--brown-mid); }

  .nb-box {
    background: #FFF0D3; border-radius: 8px; padding: 12px 14px;
    font-size: 15px; color: var(--text-muted); line-height: 1.5;
    margin-top: 32px;
  }

  .player-card {
    position: relative; border-radius: 18px; overflow: hidden;
    background: var(--cream-dark); aspect-ratio: 16 / 9;
  }
  .player-bg {
    position: absolute; inset: 0;
    background-color: var(--cream-dark); background-size: cover; background-position: center 22%;
  }
  .player-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,6,0,0.76) 0%, rgba(20,6,0,0.42) 38%, rgba(20,6,0,0.90) 100%);
  }
  .player-badge-row {
    position: absolute; top: 18px; left: 18px; display: flex; gap: 10px; z-index: 2;
  }
  .badge-viewers {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(70,22,4,0.45); color: var(--cream); font-size: 13px; font-weight: 700;
    padding: 6px 12px; border-radius: 20px;
  }
  .player-center {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; z-index: 2;
  }
  .play-btn {
    width: 74px; height: 74px; border-radius: 50%; background: transparent;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    filter: drop-shadow(0 10px 20px rgba(70,22,4,0.35));
  }
  .player-lock-note { color: rgba(255,248,236,0.9); font-size: 14.5px; text-shadow: 0 1px 4px rgba(0,0,0,0.45); }
  .player-controls {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
    display: flex; align-items: center; gap: 14px; background: linear-gradient(to top, rgba(20,6,0,0.55), transparent); z-index: 2;
  }
  .progress-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.3); overflow: hidden; }
  .progress-fill { width: 34%; height: 100%; background: var(--orange); }
  .player-controls i { color: var(--cream); font-size: 18px; }
  .time-label { color: rgba(255,248,236,0.9); font-size: 13px; font-variant-numeric: tabular-nums; }
