/* ================================================================
   TT Stars — Shared Help / Guide Page Styles
   ================================================================ */

/* ── Variables ── */
:root {
    --blue:   #0697CF;
    --blue-d: #0578a8;
    --red:    #EE2420;
    --gold:   #FFAA1D;
    --green:  #28a745;
    --bg:     #1C1C1C;
    --bg-2:   #252525;
    --bg-3:   #181818;
    --border: #2a2a2a;
    --text:   #fff;
    --muted:  #aaa;
    --dim:    #666;
}

/* ── Role colour tokens (overridden per page) ── */
:root {
    --role-color:      var(--blue);
    --role-color-bg:   rgba(6,151,207,.12);
    --role-color-border: rgba(6,151,207,.3);
}

/* ── Role Hero ── */
.role-hero {
    padding: 120px 0 56px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #080808 0%, #1c1c1c 55%, var(--role-hero-end, #0d2a3f) 100%);
}

.role-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 65% 35%, rgba(6,151,207,.14) 0%, transparent 58%),
        radial-gradient(ellipse at 15% 75%, rgba(238,36,32,.07) 0%, transparent 50%);
    pointer-events: none;
}

.role-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--role-color-bg);
    border: 1px solid var(--role-color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--role-color);
    margin-bottom: 20px;
}

.role-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
}

.role-hero h1 span { color: var(--role-color); }

.role-hero p.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: 28px;
}

/* Role breadcrumb nav */
.role-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--dim);
    margin-bottom: 20px;
}

.role-breadcrumb a { color: var(--blue); }
.role-breadcrumb i { font-size: .65rem; }

/* Hero stat pills */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .82rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-stat i { color: var(--role-color); }

/* ── Feature Badge ── */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--role-color-bg);
    border: 1px solid var(--role-color-border);
    color: var(--role-color);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

/* ── Two-column layout ── */
.help-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
    padding: 60px 0;
}

@media (max-width: 991px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-sidebar  { display: none; }
}

/* ── Sidebar ── */
.help-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.sidebar-card h6 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dim);
    margin-bottom: 14px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: .88rem;
    transition: all .2s;
    border-left: 2px solid transparent;
    text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--role-color);
    background: var(--role-color-bg);
    border-left-color: var(--role-color);
}

.sidebar-nav a i { font-size: .9rem; width: 18px; }

/* Other roles list */
.other-role-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s;
}

.other-role-link:last-child { border-bottom: none; }

.other-role-link:hover { transform: translateX(3px); }

.other-role-link .orl-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--blue);
    flex-shrink: 0;
}

.other-role-link .orl-text {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.3;
}

/* ── Section headings ── */
.section-heading {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.section-heading span { color: var(--role-color); }

.section-sub {
    color: var(--muted);
    margin-bottom: 36px;
    font-size: .95rem;
}

.help-section {
    padding: 60px 0;
    scroll-margin-top: 80px;
}

.help-section + .help-section {
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

/* ── Steps ── */
.step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) { .step-grid { grid-template-columns: 1fr; } }

.step-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: border-color .2s, transform .2s;
    position: relative;
}

.step-card:hover {
    border-color: var(--role-color);
    transform: translateY(-3px);
}

.step-card .step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--role-color-bg);
    border: 1px solid var(--role-color-border);
    color: var(--role-color);
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.step-card p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.step-card .step-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(6,151,207,.07);
    border-left: 3px solid var(--role-color);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px;
    margin-top: 12px;
    font-size: .8rem;
    color: #9ecde8;
}

.step-card .step-tip i { flex-shrink: 0; margin-top: 2px; color: var(--role-color); }

/* ── Linear step list (alternate layout) ── */
.step-list-item {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.step-list-item .sl-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--role-color), var(--blue-d));
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(6,151,207,.3);
}

.step-list-item .sl-body h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.step-list-item .sl-body p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Feature highlight row ── */
.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 768px) { .feature-row { grid-template-columns: 1fr; } }

.feature-pill {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color .2s;
}

.feature-pill:hover { border-color: var(--role-color); }

.feature-pill .fp-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--role-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--role-color);
    flex-shrink: 0;
}

.feature-pill h6 {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.feature-pill p {
    font-size: .75rem;
    color: var(--dim);
    margin: 0;
}

/* ── Screen mockup ── */
.screen-mockup {
    background: #1a1a2e;
    border: 2px solid #2a3a50;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.55);
}

.mockup-topbar {
    background: #0f1117;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #2a3a50;
}

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.red    { background: #EE2420; }
.mockup-dot.yellow { background: #FFAA1D; }
.mockup-dot.green  { background: #28a745; }
.mockup-dot.label  { font-size:.7rem; color:#555; margin-left:auto; }

.mockup-ui {
    background: #1c1c2e;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.mockup-header-bar {
    background: #111827;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a3a50;
}

.mockup-nav-tabs {
    display: flex;
    background: #161620;
    border-bottom: 1px solid #2a3a50;
    overflow-x: auto;
}

.mockup-nav-tabs span {
    padding: 8px 14px;
    font-size: .72rem;
    color: #666;
    white-space: nowrap;
    cursor: default;
}

.mockup-nav-tabs span.at { color: var(--blue); border-bottom: 2px solid var(--blue); }

.mockup-content { padding: 12px 14px; flex: 1; }

.m-card {
    background: #252535;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-card.accent { border-left: 3px solid var(--role-color); }

.m-card .m-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.m-card .m-text .m-t { font-size: .78rem; color: #fff; font-weight: 600; }
.m-card .m-text .m-s { font-size: .68rem; color: #666; }

.m-badge {
    border-radius: 50px;
    padding: 2px 8px;
    font-size: .64rem;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.m-btn {
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 6px;
}

.m-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.m-stat {
    background: #252535;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.m-stat .m-val { font-size: 1.3rem; font-weight: 700; }
.m-stat .m-lbl { font-size: .65rem; color: #666; }

/* ── Video cards ── */
.video-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

.video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2a3a, #0d1a28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--role-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
    transition: transform .2s;
}

.video-placeholder:hover .play-btn { transform: scale(1.1); }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(6,151,207,.5); }
    70%  { box-shadow: 0 0 0 16px rgba(6,151,207,0); }
    100% { box-shadow: 0 0 0 0 rgba(6,151,207,0); }
}

.vid-label { color: var(--muted); font-size: .82rem; }

.video-card-body { padding: 16px; }
.video-card-body h6 { color: #fff; font-weight: 600; margin-bottom: 4px; }
.video-card-body p { color: #888; font-size: .82rem; margin: 0; }

.vid-duration {
    display: inline-block;
    background: var(--role-color-bg);
    color: var(--role-color);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: .72rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ── Video modal ── */
#videoModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#videoModal .vm-inner { position: relative; width: 90%; max-width: 900px; }
#videoModal .vm-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
#videoModal .vm-frame-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
#videoModal iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; border: none; }
#videoModal .vm-msg { text-align: center; color: #666; margin-top: 14px; font-size: .88rem; display: none; }

/* ── FAQ ── */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s;
}

.faq-item.open { border-color: var(--role-color); }

.faq-q {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--bg-2);
}

.faq-item.open .faq-q { background: #1e2a35; }
.faq-q span { font-size: .93rem; font-weight: 500; color: #fff; }
.faq-q i { color: var(--role-color); transition: transform .3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    background: #1e2a35;
    transition: max-height .35s ease;
}

.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 14px 20px; color: var(--muted); font-size: .88rem; line-height: 1.65; margin: 0; }

/* ── CTA banner ── */
.role-cta {
    padding: 56px 0;
    background: linear-gradient(135deg, #0d1a28, #0d2a3f);
    text-align: center;
}

.role-cta h2 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.role-cta h2 span { color: var(--role-color); }
.role-cta p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }

/* ── Role switcher bottom strip ── */
.role-switcher-strip {
    background: var(--bg-3);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.role-switcher-strip h5 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dim);
    margin-bottom: 20px;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none;
    transition: all .2s;
    margin: 4px;
}

.role-pill:hover,
.role-pill.current {
    background: var(--role-color-bg);
    border-color: var(--role-color);
    color: var(--role-color);
}

.role-pill i { font-size: .9rem; }

/* ── Warning / info callout ── */
.callout {
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    margin: 16px 0;
    font-size: .875rem;
    line-height: 1.6;
}

.callout-info {
    background: rgba(6,151,207,.08);
    border-left: 3px solid var(--blue);
    color: #9ecde8;
}

.callout-warn {
    background: rgba(255,170,29,.08);
    border-left: 3px solid var(--gold);
    color: #d4ac6e;
}

.callout i { flex-shrink: 0; margin-top: 2px; }

/* ── Back-to-top ── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--role-color);
    color: #fff;
    border-radius: 50%;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 16px rgba(6,151,207,.4);
    transition: background .2s;
}

.back-to-top:hover { background: var(--blue-d); }
.back-to-top.visible { display: flex; }

/* ── Utility ── */
.help-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 32px 0; }
.text-role { color: var(--role-color) !important; }

@media (max-width: 768px) {
    .role-hero h1 { font-size: 2rem; }
    .help-layout  { padding: 40px 0; }
}
