/* =============================================
   GG PROGRAM — Cinematic style
   ============================================= */

.gg-program-wrap {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0 24px 80px;
    margin-top: calc(-1 * var(--gg-header-height, 64px));
    padding-top: var(--gg-header-height, 64px);
    position: relative;
}
.gg-program-wrap::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gg-bg-overlay, rgba(0,0,0,0.15));
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s;
}
.gg-program-wrap > * {
    position: relative;
    z-index: 1;
}

/* Hero */
.gg-program-hero {
    text-align: center;
    padding: 0 0 2px;
    max-width: 700px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gg-program-logo {
    width: 24px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
    object-fit: contain;
}
.gg-program-bap-text {
    max-width: 350px;
    width: 350px;
    height: 30px;
    display: block;
    margin: 0 auto 6px;
    filter: invert(1);
    object-fit: contain;
}
.gg-program-hero h1 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.gg-program-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* View toggle */
.gg-program-view-toggle {
    display: inline-flex;
    gap: 0;
    margin-top: 8px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--gg-radius);
    overflow: hidden;
    width: auto;
}
.gg-view-btn {
    flex: 1;
    text-align: center;
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    transition: all 0.15s;
}
.gg-view-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.gg-view-btn-active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.gg-view-btn-active:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Overall progress */
.gg-program-overall-progress {
    max-width: 500px;
    margin: 4px auto 48px;
    text-align: center;
}
.gg-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 6px;
}
.gg-progress-fill {
    height: 100%;
    background: var(--gg-accent);
    border-radius: 0;
    transition: width 0.4s ease;
}
.gg-progress-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

/* =============================================
   ROADMAP — Stage grid
   ============================================= */

.gg-program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 10px auto 24px;
}

.gg-program-card {
    position: relative;
    background: rgba(10, 20, 40, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
}
.gg-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.25);
}

.gg-program-card-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.gg-program-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 20, 40, 0.8));
}

.gg-program-card-body {
    padding: 16px;
    flex: 1;
}
.gg-program-card-body h3 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
}
.gg-program-card-body p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.gg-card-progress {
    margin-top: 10px;
}
.gg-card-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.gg-card-progress-fill {
    height: 100%;
    background: var(--gg-accent);
    border-radius: 2px;
}

.gg-card-complete-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #059669;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 0;
    z-index: 2;
}

/* =============================================
   STAGE DETAIL PANEL
   ============================================= */

.gg-stage-detail {
    max-width: 800px;
    margin: 0 auto 48px;
}
.gg-stage-detail-header {
    margin-bottom: 24px;
    text-align: center;
}
.gg-stage-detail-header h2 {
    font-size: 1.6rem;
    color: #fff;
    margin: 12px 0 4px;
}
.gg-stage-detail-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

.gg-btn-back {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    margin-top: 3px;
    padding: 4px 10px;
    font-size: 12px;
}
.gg-btn-back:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Module accordion */
.gg-module-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gg-accordion-item {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--gg-radius);
    overflow: hidden;
}
.gg-accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--gg-primary);
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.gg-accordion-header:hover {
    background: #0a3550;
}
.gg-accordion-header .gg-acc-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.gg-accordion-header .gg-acc-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}
.gg-accordion-header .gg-acc-status {
    font-size: 0.75rem;
    opacity: 0.7;
}
.gg-accordion-header .gg-acc-pills {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
}
.gg-acc-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}
.gg-acc-pill-merlin {
    background: rgba(250, 240, 137, 0.18);
    color: var(--gg-yellow);
    border: 1px solid rgba(250, 240, 137, 0.35);
}
.gg-acc-pill-video {
    background: rgba(147, 197, 253, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.25);
}
.gg-acc-pill-read {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.15);
}
.gg-acc-done .gg-accordion-header {
    background: #064e3b;
}
.gg-acc-merlin .gg-accordion-header {
    border-left: 3px solid var(--gg-yellow);
}
@media (max-width: 640px) {
    .gg-accordion-header .gg-acc-pills { display: none; }
}
.gg-accordion-body {
    padding: 24px;
    background: #1F2937;
    color: rgba(255,255,255,0.88);
    display: none;
}
.gg-accordion-body h1,
.gg-accordion-body h2,
.gg-accordion-body h3,
.gg-accordion-body h4,
.gg-accordion-body h5,
.gg-accordion-body h6 {
    color: #fff;
}
.gg-accordion-body a {
    color: var(--gg-yellow);
}
.gg-accordion-body a:hover { color: #fff; }
.gg-accordion-body .gg-module-content {
    margin-bottom: 22px;
}
.gg-accordion-body .gg-module-content h4 {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 18px 0 8px;
    padding: 4px 10px 4px 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gg-yellow);
    border-bottom: 1px solid rgba(250, 240, 137, 0.35);
}
.gg-accordion-body .gg-module-content h4:first-child { margin-top: 0; }
.gg-accordion-body .gg-module-content p {
    margin: 0 0 12px;
    line-height: 1.65;
}
.gg-accordion-body .gg-module-content p:last-child { margin-bottom: 0; }
.gg-accordion-body .gg-module-content ul,
.gg-accordion-body .gg-module-content ol {
    margin: 0 0 12px 18px;
    line-height: 1.65;
}
.gg-accordion-body .gg-module-content ul li,
.gg-accordion-body .gg-module-content ol li { margin-bottom: 6px; }
.gg-accordion-body .gg-module-transcript {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
.gg-accordion-body .gg-module-transcript h4 {
    color: var(--gg-yellow);
    font-size: 1rem;
    font-weight: 700;
    margin: 18px 0 8px;
    letter-spacing: 0.01em;
}
.gg-accordion-body .gg-module-transcript h4:first-child { margin-top: 0; }
.gg-accordion-body .gg-module-transcript p {
    margin: 0 0 10px;
    line-height: 1.6;
}
.gg-accordion-body .gg-module-transcript p:last-child { margin-bottom: 0; }
.gg-accordion-body .gg-module-actions {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--gg-yellow);
    color: rgba(255,255,255,0.9);
}
.gg-accordion-body .gg-module-actions h4 { color: #fff; }
.gg-accordion-body .gg-module-assistant {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.88);
}
.gg-accordion-body .gg-module-complete-wrap {
    border-top: 1px solid rgba(255,255,255,0.1);
}
.gg-accordion-body .gg-merlin-panel {
    background: rgba(201, 162, 39, 0.08);
    border: 1px dashed var(--gg-yellow);
}
.gg-accordion-body .gg-merlin-label { color: var(--gg-yellow); }
.gg-accordion-body .gg-merlin-text {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}
.gg-accordion-body .gg-merlin-textarea {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--gg-yellow);
    color: rgba(255,255,255,0.92);
}
.gg-accordion-body .gg-merlin-textarea:focus {
    outline: 1px solid var(--gg-yellow);
    background: rgba(0,0,0,0.5);
}
.gg-accordion-body .gg-merlin-status { color: rgba(255,255,255,0.6); }

/* Meet Merlin hero (used only on module 24 post_content) */
.gg-accordion-body .gg-meet-merlin-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px 20px;
    margin: 0 0 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(250, 240, 137, 0.25);
    border-left: 3px solid var(--gg-yellow);
}
.gg-accordion-body .gg-meet-merlin-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gg-yellow);
    box-shadow: 0 0 0 5px rgba(250, 240, 137, 0.15);
}
.gg-accordion-body .gg-meet-merlin-hero h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 6px 0 0;
    color: var(--gg-yellow);
    letter-spacing: 0.01em;
}
.gg-accordion-body .gg-meet-merlin-tag {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

/* Action steps icon */
.gg-accordion-body .gg-module-actions {
    position: relative;
    padding-top: 44px;
}
.gg-action-icon {
    position: absolute;
    top: -16px;
    left: 14px;
    width: 44px;
    height: 44px;
    background: var(--gg-yellow);
    color: var(--gg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gg-action-icon svg { display: block; }
.gg-accordion-body.gg-acc-open {
    display: block;
}

/* Hub stage groups */
.gg-stage-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.gg-group-card {
    background: rgba(10, 20, 40, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--gg-radius);
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: center;
    backdrop-filter: blur(8px);
}
.gg-group-card:hover {
    border-color: var(--gg-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.gg-group-card h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.gg-group-card span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

/* Stage nav */
.gg-stage-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =============================================
   MODULE CONTENT (inside accordion)
   ============================================= */

.gg-module-video { margin-bottom: 22px; }
.gg-video-facade {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #0a1428;
    border-radius: var(--gg-radius);
    cursor: pointer;
    overflow: hidden;
}
.gg-video-facade::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: background 0.2s;
}
.gg-video-facade:hover::after { background: rgba(0,0,0,0.2); }
.gg-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    transition: all 0.2s;
    z-index: 2;
}
.gg-video-facade:hover .gg-play-btn {
    background: rgba(0,0,0,0.7);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}
.gg-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--gg-radius);
    background: #000;
}
.gg-video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.gg-video-player {
    width: 100%;
    border-radius: var(--gg-radius);
}
.gg-module-content {
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.gg-module-content p { margin-bottom: 10px; }
.gg-module-transcript-wrap { margin-bottom: 22px; }
.gg-module-transcript {
    margin-top: 10px;
    padding: 16px;
    background: var(--gg-bg);
    border-radius: var(--gg-radius);
    font-size: 0.85rem;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
}
.gg-module-actions {
    margin-bottom: 22px;
    padding: 16px;
    background: var(--gg-bg);
    border-left: 3px solid var(--gg-accent);
    border-radius: 0;
}
.gg-module-actions h4 {
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.gg-module-actions ul, .gg-module-actions ol { padding-left: 20px; margin: 0; }
.gg-module-actions li { font-size: 0.88rem; line-height: 1.6; margin-bottom: 4px; }
.gg-module-assistant {
    margin-bottom: 22px;
    padding: 18px;
    background: var(--gg-bg);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
}
.gg-assistant-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 12px; }

/* =============================================
   MERLIN CLIENT CHAT PANEL
   ============================================= */
.gg-mchat {
    margin: 22px 0;
    padding: 20px;
    background: #1F2937;
    border: 1px solid rgba(250, 240, 137, 0.25);
    border-radius: var(--gg-radius);
    color: #e5e7eb;
}
.gg-mchat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gg-mchat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gg-yellow);
}
.gg-mchat-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gg-yellow);
}
.gg-mchat-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}
.gg-mchat-intro {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.15);
    border-left: 3px solid var(--gg-yellow);
    border-radius: 4px;
}
.gg-mchat-thread {
    max-height: 480px;
    overflow-y: auto;
    padding: 4px 2px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gg-mchat-thread:empty::before {
    content: 'Say hello to Merlin to get started.';
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    padding: 24px 0;
}
.gg-mchat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 100%;
}
.gg-mchat-msg-user {
    justify-content: flex-end;
}
.gg-mchat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.gg-mchat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 82%;
    word-wrap: break-word;
}
.gg-mchat-msg-user .gg-mchat-bubble {
    background: var(--gg-yellow);
    color: #1a1a2e;
    border-bottom-right-radius: 4px;
}
.gg-mchat-msg-assistant .gg-mchat-bubble {
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    border-bottom-left-radius: 4px;
}
.gg-mchat-msg-mock .gg-mchat-bubble {
    border: 1px dashed rgba(250, 240, 137, 0.4);
    color: rgba(255,255,255,0.7);
    font-style: italic;
}
.gg-mchat-msg-error .gg-mchat-bubble {
    background: rgba(220, 38, 38, 0.15);
    color: #fecaca;
    border: 1px solid rgba(220, 38, 38, 0.35);
}
.gg-mchat-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px 0;
}
.gg-mchat-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    animation: gg-mchat-dot 1.2s infinite ease-in-out;
}
.gg-mchat-dots span:nth-child(2) { animation-delay: 0.15s; }
.gg-mchat-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes gg-mchat-dot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40%           { opacity: 1;   transform: scale(1);   }
}
.gg-mchat-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.gg-mchat-input {
    flex: 1;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    resize: vertical;
    min-height: 44px;
}
.gg-mchat-input:focus {
    outline: none;
    border-color: var(--gg-yellow);
    background: rgba(0,0,0,0.35);
}
.gg-mchat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gg-mchat-send {
    flex-shrink: 0;
    white-space: nowrap;
}
.gg-mchat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Admin-only blocks (only rendered server-side for manage_options users) */
.gg-admin-only {
    margin-top: 16px;
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35), inset 0 0 8px rgba(34, 197, 94, 0.08);
    font-size: 0.82rem;
    color: rgba(220, 252, 231, 0.92);
    line-height: 1.5;
}
.gg-admin-only-label {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(187, 247, 208, 0.98);
}
.gg-admin-only-body {
    flex: 1 1 auto;
    min-width: 200px;
}
.gg-admin-only a {
    color: rgba(187, 247, 208, 0.98);
    text-decoration: underline;
}
.gg-mchat-blocked {
    padding: 18px 4px;
    text-align: center;
}
.gg-mchat-blocked p {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
    line-height: 1.6;
}
.gg-mchat-blocked .gg-btn {
    margin-top: 10px;
}

/* Save confirmation card inside chat thread */
.gg-mchat-savecard {
    align-self: flex-start;
    max-width: 92%;
    margin-left: 36px;
    padding: 14px 16px;
    background: rgba(250, 240, 137, 0.08);
    border: 1px solid rgba(250, 240, 137, 0.35);
    border-radius: 10px;
}
.gg-mchat-savecard-head {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gg-yellow);
    margin-bottom: 6px;
}
.gg-mchat-savecard-field {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}
.gg-mchat-savecard-value {
    width: 100%;
    padding: 8px 10px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 10px;
    resize: vertical;
}
.gg-mchat-savecard-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.gg-mchat-savecard-status {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}
.gg-mchat-savecard-err { color: #fecaca; }
.gg-mchat-savecard-done {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.4);
}
.gg-mchat-savecard-cancelled { color: rgba(255,255,255,0.5); }

/* =============================================
   ACCOUNT SETUP FORM (M25)
   ============================================= */
.gg-setup-form {
    margin: 22px 0;
    padding: 22px;
    background: #1F2937;
    border: 1px solid rgba(250, 240, 137, 0.25);
    border-radius: var(--gg-radius);
    color: #e5e7eb;
}
.gg-setup-title {
    font-family: 'Raleway', sans-serif;
    color: var(--gg-yellow);
    font-size: 1.15rem;
    margin: 0 0 4px;
}
.gg-setup-sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin: 0 0 16px;
}
.gg-setup-banner {
    padding: 10px 12px;
    margin-bottom: 16px;
    background: rgba(250, 240, 137, 0.08);
    border: 1px solid rgba(250, 240, 137, 0.3);
    border-radius: 6px;
    font-size: 0.82rem;
    color: rgba(250, 240, 137, 0.85);
}
.gg-setup-row {
    display: block;
    margin-bottom: 12px;
}
.gg-setup-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    margin-bottom: 4px;
}
.gg-setup-req {
    color: var(--gg-yellow);
}
.gg-setup-form input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
}
.gg-setup-form input:focus {
    outline: none;
    border-color: var(--gg-yellow);
    background: rgba(0,0,0,0.35);
}
.gg-setup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.gg-setup-status {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}
.gg-setup-ok  { color: #86efac; }
.gg-setup-err { color: #fecaca; }
.gg-module-complete-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gg-border);
}
.gg-btn-complete, .gg-btn-uncomplete { width: 100%; }
.gg-btn-success {
    background: #059669;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--gg-radius);
    font-family: var(--gg-font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.gg-btn-success:hover { background: #047857; }

/* Loading */
.gg-loading {
    text-align: center;
    padding: 24px;
    color: rgba(255,255,255,0.5);
}

/* =============================================
   TIMELINE VIEW (kept from original)
   ============================================= */

.gg-timeline { position: relative; padding-left: 40px; max-width: 800px; margin: 0 auto; }
.gg-timeline::before {
    content: '';
    position: absolute;
    left: 19px; top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.gg-timeline-stage { position: relative; margin-bottom: 8px; }
.gg-timeline-stage-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(10, 20, 40, 0.7);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--gg-radius);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
}
.gg-timeline-stage-header:hover { border-color: var(--gg-accent); }
.gg-timeline-marker {
    position: absolute;
    left: -40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gg-timeline-marker-done {
    width: 32px; height: 32px; border-radius: 50%;
    background: #059669; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700;
}
.gg-timeline-marker-active {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gg-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
    animation: gg-glow 2s ease-in-out infinite;
}
.gg-timeline-marker-future {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 600;
}
@keyframes gg-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(99,102,241,0.4); }
    50% { box-shadow: 0 0 24px rgba(99,102,241,0.6); }
}
.gg-timeline-stage-info { flex: 1; }
.gg-timeline-stage-info h2 { font-size: 1.15rem; color: #fff; margin-bottom: 2px; }
.gg-timeline-stage-info p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.gg-timeline-progress { display: flex; align-items: center; gap: 8px; max-width: 200px; }
.gg-timeline-progress span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.gg-timeline-chevron { font-size: 0.9rem; color: rgba(255,255,255,0.4); transition: transform 0.2s; }
.gg-timeline-stage-header.gg-expanded .gg-timeline-chevron { transform: rotate(90deg); }
.gg-timeline-stage-current .gg-timeline-stage-header {
    border-color: var(--gg-accent);
    box-shadow: 0 2px 12px rgba(99,102,241,0.2);
}
.gg-timeline-stage-complete .gg-timeline-stage-header { opacity: 0.7; }
.gg-timeline-stage-complete .gg-timeline-stage-info h2 { color: rgba(255,255,255,0.5); }
.gg-timeline-stage-future .gg-timeline-stage-header { opacity: 0.5; }
.gg-timeline-modules {
    padding: 8px 0 8px 20px;
    display: flex; flex-direction: column; gap: 4px;
}
.gg-timeline-module {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--gg-radius);
    overflow: hidden;
}
.gg-timeline-module-active {
    border-color: var(--gg-accent);
    box-shadow: 0 0 8px rgba(99,102,241,0.15);
}
.gg-module-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; cursor: pointer; user-select: none;
    background: rgba(10, 20, 40, 0.6);
    transition: background 0.15s;
}
.gg-module-header:hover { background: rgba(10, 20, 40, 0.8); }
.gg-module-status-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gg-module-check {
    width: 22px; height: 22px; border-radius: 50%;
    background: #059669; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
.gg-module-current-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--gg-accent);
    box-shadow: 0 0 8px rgba(99,102,241,0.4);
    animation: gg-pulse 2s ease-in-out infinite;
}
.gg-module-pending-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}
@keyframes gg-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}
.gg-module-title { flex: 1; font-size: 0.9rem; font-weight: 500; color: #fff; }
.gg-timeline-module-done .gg-module-title {
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}
.gg-module-chevron { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: transform 0.2s; }
.gg-module-body {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.97);
    color: var(--gg-text);
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {
    .gg-program-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gg-program-hero h1 { font-size: 1.8rem; }
    .gg-program-card-img { height: 110px; }
    .gg-timeline { padding-left: 32px; }
    .gg-timeline::before { left: 15px; }
    .gg-timeline-marker { left: -32px; }
    .gg-timeline-marker-active, .gg-timeline-marker-done, .gg-timeline-marker-future {
        width: 28px; height: 28px; font-size: 0.85rem;
    }
    .gg-stage-groups { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gg-program-grid { grid-template-columns: 1fr; }
    .gg-program-card-img { height: 100px; }
}

/* =============================================
   MERLIN PROMPT PANEL (admin only)
   ============================================= */
.gg-merlin-panel {
    margin-top: 20px;
    padding: 12px;
    border: 1px dashed #c9a227;
    background: rgba(201, 162, 39, 0.05);
    border-radius: 6px;
}
.gg-merlin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gg-merlin-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8a6d0f;
    letter-spacing: 0.02em;
}
.gg-merlin-body {
    margin-top: 10px;
}
.gg-merlin-text {
    white-space: pre-wrap;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    max-height: 360px;
    overflow: auto;
    border: 1px solid #e5e5e5;
    margin: 0 0 8px 0;
}
.gg-merlin-textarea {
    width: 100%;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c9a227;
    box-sizing: border-box;
    resize: vertical;
    min-height: 240px;
}
.gg-merlin-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gg-merlin-status {
    font-size: 0.85rem;
    color: #5f6368;
}

/* Identity-scope variant (top of /program-roadmap/, not inside a module accordion) */
.gg-merlin-panel--identity {
    margin: 14px 24px 0;
    background: rgba(255, 255, 255, 0.92);
}
