/* Orixone — site layout on top of Bootstrap 5.3. Colours are in theme.css. */

/* ---------------------------------------------------------------- Brand -- */

.brand-logo {
    width: auto;
    height: 2.25rem;
}

/* Logo, wallet button and menu button share one row on phones. */
@media (max-width: 1199.98px) {
    .navbar-brand {
        margin-right: 0.5rem;
    }

    #btnConnect {
        --bs-btn-padding-x: 0.5rem;
        --bs-btn-padding-y: 0.3rem;
        --bs-btn-font-size: calc(0.8rem + 2px);
        --bs-btn-font-weight: 700;
        white-space: nowrap;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 359.98px) {
    .brand-logo {
        height: 1.75rem;
    }
}

.brand-logo-footer {
    display: block;
    width: auto;
    height: 2.75rem;
}

/* ---------------------------------------------------------------- Cards -- */

.card {
    background-color: var(--at-card);
}

.stat-tile {
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--at-surface);
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------- Levels -- */

.level-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    padding: 1rem;
    height: 100%;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.level-card:hover {
    transform: translateY(-2px);
}

.level-card.is-active {
    border-color: rgba(240, 185, 11, 0.6);
}

.level-card.is-blocked {
    border-color: rgba(246, 70, 93, 0.6);
}

.level-card.is-next {
    border-color: rgba(14, 203, 129, 0.5);
}

.level-card.is-locked {
    opacity: 0.55;
}

.level-number {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

/* --------------------------------------------------------------- Matrix -- */

.matrix-tree .node-self {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--at-accent), var(--at-accent-hover));
    color: var(--at-on-accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.matrix-tree .node-self::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 1.5rem;
    background: var(--bs-border-color);
}

.slot-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.slot {
    width: 5.5rem;
    padding: 0.65rem 0.35rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.7rem;
    font-size: 0.75rem;
}

.slot.filled {
    border-style: solid;
    border-color: rgba(14, 203, 129, 0.55);
    background: rgba(14, 203, 129, 0.1);
}

.slot .slot-index {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------ Utilities -- */

.table > :not(caption) > * > * {
    background-color: transparent;
}

code, .font-monospace {
    font-size: 0.9em;
}

#alertHost .alert {
    margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
    .display-5 { font-size: 2rem; }
    .slot { width: 4.5rem; }
}

/* ------------------------------------------------------ Level income -- */

.qual-badge {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    flex: none;
    border-radius: 50%;
    font-size: 1.4rem;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
}
.qual-badge.is-qualified {
    border-color: rgba(14, 203, 129, 0.6);
    background: rgba(14, 203, 129, 0.12);
    color: #0ecb81;
}
.qual-badge.is-pending {
    border-color: rgba(240, 185, 11, 0.5);
    background: rgba(240, 185, 11, 0.1);
    color: #f0b90b;
}

/* ------------------------------------------------------------- Team -- */

.team-levels { display: flex; flex-direction: column; gap: 0.4rem; }
.team-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr 3.5rem;
    gap: 0.75rem;
    align-items: center;
}
.team-k { font-size: 0.85rem; color: var(--bs-secondary-color); }
.team-track {
    height: 1.15rem;
    border-radius: 2px;
    background: var(--bs-tertiary-bg);
    overflow: hidden;
}
.team-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--at-accent), var(--at-accent-hover));
}
.team-v {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.85rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* A level bar doubles as the control that lists that level. */
.team-row-btn {
    width: 100%;
    padding: 0.25rem 0.4rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}
.team-row-btn:hover { background: var(--bs-tertiary-bg); }
.team-row-btn:focus-visible {
    outline: 2px solid var(--at-accent);
    outline-offset: 1px;
}
.team-row-btn.is-active {
    border-color: var(--at-accent);
    background: var(--bs-tertiary-bg);
}
.team-row-btn.is-active .team-k { color: var(--bs-body-color); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .team-row-btn { transition: none; }
}

/* ---------------------------------------------------------------- Modal -- */

/* Transaction popup (registration, slot purchase, claims): a step lighter than
   the page, with an accent border, so it stands out from what is behind it. */
.modal {
    --bs-modal-bg: #1e2329;
    --bs-modal-border-color: rgba(240, 185, 11, 0.55);
    --bs-modal-border-width: 1px;
    --bs-modal-border-radius: 0.9rem;
    --bs-modal-box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(240, 185, 11, 0.12);
}
.modal-content {
    box-shadow: var(--bs-modal-box-shadow);
}
.modal-header {
    background: rgba(240, 185, 11, 0.10);
    border-top-left-radius: calc(var(--bs-modal-border-radius) - 1px);
    border-top-right-radius: calc(var(--bs-modal-border-radius) - 1px);
}
.modal-backdrop.show {
    opacity: 0.7;
}

/* Error popup: same panel as the transaction popup, with a red accent. */
.modal-error {
    --bs-modal-border-color: rgba(246, 70, 93, 0.6);
}
.modal-error .modal-header {
    background: rgba(246, 70, 93, 0.12);
    border-bottom-color: rgba(246, 70, 93, 0.25);
}
.modal-error .table {
    --bs-table-bg: transparent;
}
.modal-error .table td,
.modal-error .table th {
    white-space: nowrap;
}

/* Nine menu items: keep each on one line and a little tighter on desktop. */
.navbar .nav-link { white-space: nowrap; }
@media (min-width: 1200px) {
    .navbar .nav-link { padding-left: 0.5rem; padding-right: 0.5rem; }
}
#btnConnect { white-space: nowrap; }

/* -------------------------------------------------------------- X3 grid -- */

.x3-cycle {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.x3-pos {
    text-align: center;
    padding: 0.55rem 0.25rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.7rem;
    font-size: 0.75rem;
    min-width: 0;
}

.x3-pos.filled {
    border-style: solid;
    border-color: rgba(14, 203, 129, 0.55);
    background: rgba(14, 203, 129, 0.1);
}

.x3-pos.recycle:not(.filled) {
    border-color: rgba(240, 185, 11, 0.45);
}

.x3-pos-index {
    font-weight: 700;
    font-size: 0.9rem;
}

.x3-pos-who {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x3-pos.filled.blocked {
    border-color: rgba(246, 70, 93, 0.6);
    background: rgba(246, 70, 93, 0.1);
}

/* Terms page. */
.terms h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
    scroll-margin-top: 5rem;
}

.terms p,
.terms li {
    color: var(--bs-secondary-color);
}

.terms li {
    margin-bottom: 0.35rem;
}

.terms strong {
    color: var(--bs-body-color);
}

.terms-toc {
    columns: 2;
    column-gap: 2rem;
}

@media (max-width: 575.98px) {
    .terms-toc {
        columns: 1;
    }
}

/* Short confirmation, pinned to the screen. */
.site-toast {
    position: fixed;
    left: 50%;
    top: 5rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.6rem;
    background: var(--at-raised);
    color: var(--bs-body-color);
    font-weight: 600;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
    animation: site-toast-in 0.2s ease-out;
}

.site-toast-success {
    border-color: var(--at-success);
}

.site-toast-success i {
    color: var(--at-success);
}

.site-toast-danger {
    border-color: var(--at-danger);
}

.site-toast-danger i {
    color: var(--at-danger);
}

@keyframes site-toast-in {
    from { opacity: 0; transform: translate(-50%, -0.5rem); }
}

/* Red text on the normal card colours. */
#x3Blocked {
    --bs-alert-bg: var(--at-card);
    --bs-alert-border-color: rgba(246, 70, 93, 0.6);
}

/* Phones and tablets: the join and dashboard buttons share one row. */
@media (max-width: 991.98px) {
    .hero-actions,
    .wallet-actions {
        flex-wrap: nowrap;
    }

    .hero-actions .btn,
    .wallet-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        --bs-btn-padding-y: 0.5rem;
        --bs-btn-padding-x: 0.5rem;
        --bs-btn-font-size: 0.95rem;
        white-space: nowrap;
    }
}

@media (max-width: 359.98px) {
    .hero-actions .btn,
    .wallet-actions .btn {
        --bs-btn-font-size: 0.85rem;
    }
}

/* Phones: registration leads the home page, so pull it up closer to the header. */
@media (max-width: 991.98px) {
    #register {
        margin-top: -1rem;
    }
}

/* Network badge with a pulsing green light that says the chain is live. */
.chain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(14, 203, 129, 0.45);
    border-radius: 999px;
    background: rgba(14, 203, 129, 0.1);
    color: var(--at-success);
    font-size: 0.8rem;
    font-weight: 600;
}

.live-dot {
    position: relative;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--at-success);
    box-shadow: 0 0 0.4rem var(--at-success);
    animation: live-blink 1.6s ease-in-out infinite;
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--at-success);
    animation: live-ring 1.6s ease-out infinite;
}

@keyframes live-blink {
    50% { opacity: 0.55; }
}

@keyframes live-ring {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot,
    .live-dot::after {
        animation: none;
    }
}

.register-intro {
    font-size: 12px;
}

/* Home headline and intro, each 6px under Bootstrap's display-5 / lead sizes. */
.hero-title { font-size: calc(1.425rem + 2.1vw - 6px); }
.hero-lead { font-size: calc(1.25rem - 6px); }

@media (min-width: 1200px) {
    .hero-title { font-size: calc(3rem - 6px); }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: calc(2rem - 6px); }
}

/* SBT calculator: highlighted pool liquidity and lock status. */
.liquidity-box {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(var(--at-success-rgb), 0.45);
    border-radius: 0.5rem;
    background: rgba(var(--at-success-rgb), 0.08);
}

@media (max-width: 575.98px) {
    .market-links .btn { flex: 1 1 100%; }
}

/* Tour campaign banner (includes/tour-banner.php) ------------------------- */
.tour-banner {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(240, 185, 11, .45);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(240, 185, 11, .18), transparent 55%),
        radial-gradient(90% 120% at 100% 100%, rgba(14, 203, 129, .16), transparent 60%),
        linear-gradient(135deg, #12161c 0%, #0b0e11 100%);
    box-shadow: 0 0 0 1px rgba(240, 185, 11, .08), 0 18px 40px -18px rgba(240, 185, 11, .35);
    padding: 2rem;
    min-height: 300px;
}
.tour-banner .tour-scene {
    position: absolute;
    right: 0; bottom: 0;
    width: 60%; height: 100%;
    opacity: .9;
    pointer-events: none;
}
.tour-banner .tour-content { position: relative; z-index: 1; max-width: 560px; }
.tour-tag {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(240, 185, 11, .15);
    color: #F0B90B;
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.tour-title {
    margin: .75rem 0 .5rem;
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    color: #EAECEF;
}
.tour-title-lead { display: block; font-size: .55em; font-weight: 700; color: #EAECEF; letter-spacing: .01em; }
/* The destination: large shimmering gold text with a soft glow. */
.tour-dest {
    display: inline-block;
    font-size: 1.35em;
    font-weight: 900;
    letter-spacing: .02em;
    background: linear-gradient(100deg, #F0B90B 0%, #FCD535 30%, #FFF6C9 45%, #FCD535 60%, #F0B90B 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(240, 185, 11, .45));
    animation: tour-shimmer 3.5s linear infinite;
}
@keyframes tour-shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.tour-flag {
    width: 1.1em; height: auto; margin-left: .35em; vertical-align: .55em;
    border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    transform-origin: left center; animation: tour-wave 2.6s ease-in-out infinite;
}
.tour-flag-sm { width: 1.5rem; margin-left: 0; vertical-align: middle; animation: none; }
@keyframes tour-wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-4deg) scaleX(.94); } }
/* In the small tag and on the campaign page heading. */
.tour-tag-dest {
    padding: .05rem .45rem; border-radius: 999px;
    background: #F0B90B; color: #0B0E11; font-weight: 800;
}
.tour-page-dest { color: #F0B90B; font-weight: 800; text-shadow: 0 0 12px rgba(240, 185, 11, .4); }
.tour-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tour-steps li {
    padding: .4rem .8rem;
    border-radius: .6rem;
    background: rgba(30, 35, 41, .85);
    border: 1px solid rgba(234, 236, 239, .1);
    color: #EAECEF;
}
.tour-steps .bi { color: #0ECB81; }
.tour-countdown { display: flex; gap: .5rem; }
.tour-countdown div {
    min-width: 64px;
    padding: .45rem .3rem;
    border-radius: .6rem;
    text-align: center;
    background: rgba(11, 14, 17, .75);
    border: 1px solid rgba(240, 185, 11, .35);
}
.tour-countdown b { display: block; font-size: 1.5rem; line-height: 1.1; color: #F0B90B; font-variant-numeric: tabular-nums; }
.tour-countdown small { font-size: .7rem; color: #929AA5; text-transform: uppercase; letter-spacing: .05em; }
.tour-deadline { margin-top: .6rem; color: #B7BDC6; font-size: .95rem; }
.tour-small { margin-top: .9rem; font-size: .75rem; color: #848E9C; }
.tour-small a { color: inherit; }

/* Phone-only flight layer (includes/tour-banner.php): behind the text, top of the card. */
.tour-banner .tour-scene-m {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: auto;
    pointer-events: none;
    z-index: 0;
}
.tour-banner .tour-scene-m .tour-trail { opacity: .4; }
.tour-plane.tour-plane-m { offset-path: path("M175 212 C 225 214, 262 196, 282 168 S 318 112, 368 98"); }

/* The plane flies the route (taking off slowly, gliding, then easing out), banks
   gently, and leaves a white contrail that fades behind it. Plane and trail
   share the same duration and easing so the trail always ends at the plane. */
.tour-plane {
    offset-path: path("M-40 270 C 110 230, 190 120, 320 120 S 520 60, 660 30");
    offset-rotate: auto;
    animation: tour-fly 9s cubic-bezier(.45, .05, .35, 1) infinite;
    filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .45)) drop-shadow(0 0 6px rgba(240, 185, 11, .25));
}
/* Inside the moving group, 0 0 is the plane centre: banking and the climb-in-size happen around it. */
.tour-plane-body {
    transform-origin: 0 0;
    animation: tour-bank 3s ease-in-out infinite, tour-size 9s cubic-bezier(.45, .05, .35, 1) infinite;
}
@keyframes tour-size { 0% { scale: .7; } 50% { scale: 1.08; } 100% { scale: .85; } }
.tour-trail {
    stroke-dasharray: 160 2000;
    animation: tour-trail 9s cubic-bezier(.45, .05, .35, 1) infinite;
    opacity: .55;
}
@keyframes tour-fly {
    0%   { offset-distance: 0%;   opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}
@keyframes tour-trail {
    0%   { stroke-dashoffset: 160;  opacity: 0; }
    12%  { opacity: .55; }
    88%  { opacity: .55; }
    100% { stroke-dashoffset: -840; opacity: 0; }
}
@keyframes tour-bank {
    0%, 100% { transform: translateY(0) rotate(0deg) scaleY(1); }
    30%      { transform: translateY(-1.5px) rotate(-3deg) scaleY(.9); }
    70%      { transform: translateY(1.5px) rotate(2deg) scaleY(.95); }
}
.tour-sun { animation: tour-glow 4s ease-in-out infinite; transform-origin: 470px 130px; }
@keyframes tour-glow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }

@media (max-width: 767.98px) {
    .tour-banner { padding: 1.4rem 1.1rem; }
    .tour-banner .tour-scene { display: none; }
    .tour-banner .tour-scene-m { display: block; }
    .tour-banner { min-height: 0; }
    .tour-countdown div { min-width: 0; flex: 1; }
    .tour-banner .btn-lg { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .tour-plane, .tour-plane-body, .tour-sun, .tour-trail, .tour-dest, .tour-flag { animation: none; }
    .tour-plane { offset-distance: 72%; }
    .tour-trail { display: none; }
}

/* Home page: what a registered wallet sees instead of the join form. */
.registered-panel { padding: .5rem 0 .25rem; }
.registered-icon {
    width: 64px; height: 64px; margin: 0 auto .75rem;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 2rem; color: #0ECB81;
    background: rgba(14, 203, 129, .12);
    box-shadow: 0 0 0 6px rgba(14, 203, 129, .06);
}
@media (max-width: 575.98px) {
    .registered-panel .btn-lg { width: 100%; }
}

/* SBT trading chart on the home page (includes/sbt-chart.php). */
.sbt-chart-card { overflow: hidden; }
.sbt-chart-stats > div { padding: .75rem .5rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
.sbt-chart-stats > div + div { border-left: 1px solid var(--bs-border-color-translucent); }
.sbt-chart-frame { position: relative; height: 420px; background: #0b0e11; }
.sbt-chart-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sbt-chart-card .live-dot { display: inline-block; vertical-align: middle; margin: 0 .4rem 0 .15rem; }
@media (max-width: 767.98px) {
    .sbt-chart-frame { height: 340px; }
    .sbt-chart-stats > div:nth-child(3) { border-left: 0; }
}

/* Tours & Campaigns page (tours.php): one card per tour campaign. */
.tour-card {
    display: flex; flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(240, 185, 11, .4);
    background: #12161c;
    box-shadow: 0 14px 34px -20px rgba(240, 185, 11, .45);
}
.tour-card.is-closed { border-color: var(--bs-border-color-translucent); box-shadow: none; opacity: .85; }
.tour-card-top {
    padding: 1.25rem 1.25rem 1rem;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(240, 185, 11, .2), transparent 55%),
        radial-gradient(90% 120% at 100% 100%, rgba(14, 203, 129, .14), transparent 60%),
        linear-gradient(135deg, #161b22, #0b0e11);
}
.tour-card-title { margin: .7rem 0 .35rem; font-weight: 800; line-height: 1.05; color: #EAECEF; font-size: 1.9rem; }
.tour-card-lead { display: block; font-size: .5em; font-weight: 700; }
.tour-card-title .tour-dest { font-size: 1.15em; }
.tour-card-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tour-card-body > .d-flex:last-child { margin-top: auto !important; padding-top: 1rem; }
.tour-rules { list-style: none; padding: 0; margin: 0 0 .75rem; }
.tour-rules li { padding: .35rem 0; border-bottom: 1px dashed var(--bs-border-color-translucent); }
.tour-rules li:last-child { border-bottom: 0; }
.tour-rules li .bi { color: #848E9C; margin-right: .35rem; }
.tour-rules li.is-done .bi { color: #0ECB81; }
.tour-rule-me { color: #848E9C; font-size: .85em; }
.tour-me { padding: .55rem .75rem; border-radius: .6rem; background: rgba(132, 142, 156, .12); font-size: .9rem; }
.tour-me.is-ok { background: rgba(14, 203, 129, .14); color: #0ECB81; }
.tour-me.is-wip { background: rgba(240, 185, 11, .12); color: #F0B90B; }
.tour-mini-countdown { font-size: 1.15rem; font-weight: 700; color: #F0B90B; }
@media (max-width: 575.98px) {
    .tour-card-title { font-size: 1.6rem; }
}
.tour-all-link { display: inline-block; margin-top: .9rem; color: #F0B90B; font-weight: 600; text-decoration: none; }
.tour-all-link:hover { text-decoration: underline; }
.tour-card-title .tour-flag { width: .9em; vertical-align: middle; margin-left: .3em; }

/* Several tours on the home page: destination tabs + arrows above a sliding banner. */
.tour-carousel.carousel { padding-top: 3rem; }
.tour-carousel .tour-tabs {
    position: absolute; top: 0; left: 0; right: 96px; bottom: auto;
    margin: 0; padding: 0;
    justify-content: flex-start; gap: .5rem;
}
.tour-carousel .tour-tabs [data-bs-target] {
    width: auto; height: auto; margin: 0; padding: .4rem .9rem;
    text-indent: 0; opacity: 1;
    border: 1px solid rgba(240, 185, 11, .35); border-radius: 999px;
    background: #12161c; background-clip: border-box;
    color: #B7BDC6; font-weight: 600; font-size: .9rem;
    display: inline-flex; align-items: center; gap: .35rem;
    transition: background .2s, color .2s;
}
.tour-carousel .tour-tabs [data-bs-target].active { background: #F0B90B; border-color: #F0B90B; color: #0B0E11; }
.tour-carousel .tour-tab-flag { width: 1.1rem; margin: 0; vertical-align: middle; animation: none; }
.tour-carousel .tour-nav {
    top: 0; bottom: auto; width: 40px; height: 36px; opacity: 1;
    border: 1px solid var(--bs-border-color-translucent); border-radius: .6rem;
    background: #12161c; color: #EAECEF; font-size: 1rem;
}
.tour-carousel .tour-nav:hover { border-color: #F0B90B; color: #F0B90B; }
.tour-carousel .carousel-control-prev.tour-nav { left: auto; right: 48px; }
.tour-carousel .carousel-control-next.tour-nav { right: 0; }
@media (max-width: 575.98px) {
    .tour-carousel .tour-tabs [data-bs-target] { padding: .35rem .7rem; font-size: .85rem; }
}

/* Dashboard SBT campaigns card (campaign/dashboard-card.php): no sideways scrolling.
   Wide screens: a normal table that wraps. Phones: one stacked block per campaign. */
.campaign-table td, .campaign-table th { white-space: normal; }
@media (max-width: 767.98px) {
    .campaign-table thead { display: none; }
    .campaign-table, .campaign-table tbody, .campaign-table tr, .campaign-table td { display: block; width: 100%; }
    .campaign-table tr { padding: .75rem 1rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
    .campaign-table tr:last-child { border-bottom: 0; }
    .campaign-table td { border: 0; padding: .2rem 0; text-align: left !important; background: transparent; }
    .campaign-table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
    .campaign-table td[data-label]::before { content: attr(data-label); color: var(--bs-secondary-color); font-size: .85rem; font-family: var(--bs-body-font-family); }
    .campaign-table td.campaign-action:not(:empty) { padding-top: .5rem; }
    .campaign-table td.campaign-action .btn { width: 100%; }
    .campaign-table td[colspan] { text-align: center !important; }
}
