:root {
    --bg-top: #090604;
    --bg-mid: #1a0d06;
    --bg-bottom: #27221f;
    --text-main: #f5f0ea;
    --text-muted: #b9aaa0;
    --orange: #f47c00;
    --orange-soft: #ff9a2e;
    --card-bg: rgba(255, 255, 255, 0.065);
    --card-border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

body.ridektm-page {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        180deg,
        #000000 0px,
        #000000 420px,
        #080604 520px,
        #160b06 760px,
        #27221f 100%
    );
    color: var(--text-main);
    min-height: 100vh;
}

.hero {
    min-height: 460px;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 72%, #000000 100%),
        linear-gradient(90deg, rgba(0,0,0,0.05), rgba(0,0,0,0.82)),
        url("/static/ridektm/Banner-main-v2.jpg");
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    border-bottom: none;
    box-shadow: none;
}

.hero.compact {
    min-height: 300px;
    background-position: center top;
}

.hero-inner {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 50px 35px;
    display: flex;
    justify-content: flex-end;
}

.hero-text {
    max-width: 560px;
    text-align: left;
}

.eyebrow {
    color: var(--orange-soft);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

h1 {
    font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.88;
    margin: 14px 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

h1 span {
    display: block;
}

h1::after {
    content: "";
    display: block;
    width: 92px;
    height: 4px;
    margin-top: 18px;
    background: linear-gradient(90deg, var(--orange), rgba(244,124,0,0));
    border-radius: 999px;
}

.hero-subtitle {
    margin-top: 18px;
    font-size: 19px;
    color: var(--text-muted);
    line-height: 1.5;
}

.page {
    max-width: 1150px;
    margin: -50px auto 0 auto;
    padding: 0 35px 55px 35px;
    position: relative;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}

.card h2 {
    margin-top: 0;
    font-size: 26px;
}

p {
    color: var(--text-muted);
    line-height: 1.65;
}

.tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.meta-pill {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.18);
    font-size: 14px;
}

.video-player {
    width: 100%;
    max-height: 620px;
    border-radius: 18px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.12);
    margin-top: 14px;
}

.video-placeholder {
    min-height: 320px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(244,124,0,0.24), transparent 30%),
        linear-gradient(135deg, #111, #050505);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-top: 14px;
}

.buttons {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--orange), #b64600);
    box-shadow: 0 8px 24px rgba(244,124,0,0.24);
    border: none;
    cursor: pointer;
}

.btn.secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.section-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 24px;
    min-height: 185px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.section-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244,124,0,0.55);
}

.section-card h3 {
    margin-top: 0;
    font-size: 22px;
}

.section-card a,
.file-list a,
.footer a {
    color: var(--orange-soft);
    text-decoration: none;
    font-weight: bold;
}

.section-card a:hover,
.file-list a:hover,
.footer a:hover {
    text-decoration: underline;
}

.notice {
    background: rgba(80, 160, 90, 0.18);
    border: 1px solid rgba(120, 210, 130, 0.35);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.upload-box {
    background: rgba(255,255,255,0.055);
    border: 1px dashed rgba(255,255,255,0.22);
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 22px;
}

.file-list {
    list-style: none;
    padding-left: 0;
}

.file-list li {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.empty {
    color: var(--text-muted);
    font-style: italic;
}

.breadcrumb {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange-soft);
    text-decoration: none;
}

.footer {
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 850px) {
    .hero {
        min-height: 340px;
    }

    .hero-inner {
        justify-content: flex-start;
        padding: 40px 22px;
    }

    .page {
        margin-top: -28px;
        padding: 0 18px 40px 18px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .video-placeholder {
        min-height: 220px;
    }
.tour-date {
    color: var(--orange-soft);
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: -6px;
    margin-bottom: 18px;
}
}

/* Folder pages: galleries and file cards */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.photo-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
}

.photo-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #050505;
}

.photo-card-body {
    padding: 13px;
}

.file-name {
    color: var(--text-main);
    font-weight: bold;
    font-size: 14px;
    word-break: break-word;
}

.file-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.small-btn {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    color: white;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.small-btn.primary {
    background: linear-gradient(135deg, var(--orange), #b64600);
    border: none;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.video-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
}

.video-card video {
    width: 100%;
    max-height: 320px;
    border-radius: 14px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.10);
}

.document-list {
    margin-top: 20px;
}

.document-item {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.upload-box input[type="file"] {
    color: var(--text-muted);
    max-width: 100%;
}

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

    .photo-card img {
        height: 220px;
    }
}

/* Cleaner photo gallery: hide technical file names */
.photo-card .file-name {
    display: none;
}

.photo-card .file-actions {
    justify-content: center;
    margin-top: 0;
}

.photo-card-body {
    padding: 12px;
}

.file-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

/* RideKTM Home */

.home-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
}

.home-column {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-list li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.location-list a {
    display: block;
    padding: 11px 0;
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
}

.location-list a:hover {
    color: var(--orange-soft);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tour-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tour-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244,124,0,0.55);
}

.tour-card-cover {
    width: 100%;
    height: 145px;
    object-fit: cover;
    display: block;
    background: #050505;
}

.tour-card-body {
    padding: 15px;
}

.tour-card-date {
    color: var(--orange-soft);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.tour-card-title {
    color: var(--text-main);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.tour-card-location {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.tour-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-box {
    min-height: 430px;
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 16px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.18);
}

.chat-placeholder-title {
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 8px;
}

@media (max-width: 1050px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* RideKTM Home layout refinement */

.page.home-page {
    max-width: none;
    width: 100%;
    margin: -50px auto 0 auto;
    padding: 0 34px 55px 34px;
}

.home-layout {
    display: grid;
    grid-template-columns: 230px minmax(720px, 1fr) 380px;
    gap: 26px;
    align-items: start;
    width: 100%;
}

.home-column {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
}

.home-column.latest-tours-column {
    padding: 26px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tour-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tour-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
    background: #050505;
}

.tour-card-body {
    padding: 14px 15px 15px 15px;
}

.tour-card-date {
    display: none;
}

.tour-card-title {
    color: var(--text-main);
    font-weight: bold;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.tour-card-location {
    display: none;
}

.tour-card-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.tour-card-actions .small-btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 8px 10px;
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: bold;
}

.language-switch a {
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.045);
}

.language-switch a:hover {
    color: var(--orange-soft);
    border-color: rgba(244,124,0,0.45);
}

.external-tour-info {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(244,124,0,0.28);
    border-radius: 18px;
    background: rgba(244,124,0,0.08);
}

.external-tour-info a {
    color: var(--orange-soft);
    font-weight: bold;
    text-decoration: none;
}

.external-tour-info a:hover {
    text-decoration: underline;
}

@media (max-width: 1300px) {
    .home-layout {
        grid-template-columns: 220px minmax(0, 1fr) 350px;
    }

    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .page.home-page {
        padding: 0 20px 45px 20px;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .tour-card-actions {
        flex-wrap: wrap;
    }
}

.external-tour-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.external-tour-info-title {
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 4px;
}

.external-tour-info-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

.external-tour-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.external-tour-links a {
    color: var(--orange-soft);
    font-weight: bold;
    text-decoration: none;
    border: 1px solid rgba(244,124,0,0.28);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.18);
}

.external-tour-links a:hover {
    background: rgba(244,124,0,0.14);
    text-decoration: none;
}

/* Hide old footer links on RideKTM home */
.home-page .footer {
    display: none;
}

/* RideKTM useful links refinement */

.external-tour-links a {
    font-size: 13px;
    padding: 7px 11px;
    letter-spacing: 0.2px;
}

.external-tour-links .link-domain {
    color: #ffffff;
    font-weight: bold;
}

/* RideKTM Archive page */

.page.archive-page {
    max-width: none;
    width: 100%;
    margin: -50px auto 0 auto;
    padding: 0 34px 55px 34px;
}

.archive-card {
    max-width: 1500px;
    margin: 0 auto;
}

.archive-year-block {
    margin-top: 30px;
}

.archive-year-title {
    color: var(--orange-soft);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 10px;
    margin-bottom: 22px;
}

.archive-location-block {
    margin-bottom: 36px;
}

.archive-location-title {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 18px;
}

@media (max-width: 1050px) {
    .page.archive-page {
        padding: 0 20px 45px 20px;
    }
}

/* RideKTM mobile and tablet optimization */

@media (max-width: 1100px) {
    .page.home-page {
        max-width: none;
        width: 100%;
        margin: -35px auto 0 auto;
        padding: 0 20px 45px 20px;
    }

    .home-layout {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    /* Mobile/tablet order:
       1 Latest Tours
       2 Locations
       3 Live Chat
    */
    .home-layout > .home-column:nth-child(1) {
        order: 2;
    }

    .home-layout > .home-column:nth-child(2) {
        order: 1;
    }

    .home-layout > .home-column:nth-child(3) {
        order: 3;
    }

    .home-column,
    .home-column.latest-tours-column {
        padding: 20px;
        border-radius: 20px;
    }

    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .chat-box {
        min-height: 260px;
    }

    .location-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 330px;
        background-position: center top;
    }

    .hero.compact {
        min-height: 240px;
    }

    .hero-inner {
        padding: 0 22px;
    }

    .hero-text h1,
    .hero h1 {
        font-size: 34px;
        line-height: 1.05;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.45;
    }

    .page.home-page,
    .page.archive-page,
    .page {
        margin: -28px auto 0 auto;
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-column,
    .home-column.latest-tours-column,
    .card {
        padding: 17px;
        border-radius: 18px;
    }

    .home-column h2,
    .card h2 {
        font-size: 20px;
        margin-top: 0;
    }

    .latest-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tour-card {
        border-radius: 18px;
    }

    .tour-card-cover {
        aspect-ratio: 16 / 9;
    }

    .tour-card-body {
        padding: 13px;
    }

    .tour-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .tour-card-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
    }

    .tour-card-actions .small-btn {
        flex: 1;
        padding: 8px 6px;
        font-size: 12px;
    }

    .location-list {
        grid-template-columns: 1fr;
    }

    .location-list a {
        padding: 10px 0;
        font-size: 14px;
    }

    .language-switch {
        justify-content: flex-start;
        margin-bottom: 14px;
    }

    .external-tour-info {
        align-items: flex-start;
        gap: 14px;
    }

    .external-tour-links {
        width: 100%;
        gap: 8px;
    }

    .external-tour-links a {
        font-size: 12px;
        padding: 7px 10px;
    }

    .chat-box {
        min-height: 220px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .hero {
        min-height: 300px;
    }

    .hero-text h1,
    .hero h1 {
        font-size: 30px;
    }

    .tour-card-actions {
        flex-wrap: wrap;
    }

    .tour-card-actions .small-btn {
        flex: 1 1 30%;
    }
}

/* Mobile banner focus: show motorcycle on the left side */
@media (max-width: 700px) {
    .hero {
        background-position:
            center top,
            center top,
            18% top;
    }

    .hero.compact {
        background-position:
            center top,
            center top,
            18% top;
    }
}

@media (max-width: 420px) {
    .hero {
        background-position:
            center top,
            center top,
            12% top;
    }

    .hero.compact {
        background-position:
            center top,
            center top,
            12% top;
    }
}

/* Official tour video player */

.official-video-card {
    margin-bottom: 26px;
}

.official-video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: center;
}

.official-video-player-wrap {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.official-video-player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

.official-video-side {
    color: var(--text-muted);
}

.official-video-side h3 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 21px;
}

.official-video-side p {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.official-video-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.official-video-actions .small-btn {
    text-align: center;
}

@media (max-width: 900px) {
    .official-video-layout {
        grid-template-columns: 1fr;
    }

    .official-video-side {
        order: -1;
    }
}

@media (max-width: 520px) {
    .official-video-card {
        margin-bottom: 20px;
    }

    .official-video-side h3 {
        font-size: 18px;
    }

    .official-video-actions .small-btn {
        flex: 1;
    }
}

/* RideKTM Location page: active / archived sections */

.page.location-page {
    max-width: none;
    width: 100%;
    margin: -50px auto 0 auto;
    padding: 0 34px 55px 34px;
}

.location-section-card {
    max-width: 1500px;
    margin: 0 auto;
}

.location-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 24px;
}

.location-intro {
    color: var(--text-muted);
    margin: 8px 0 0 0;
}

.location-tour-section {
    margin-top: 28px;
}

.location-tour-section + .location-tour-section {
    margin-top: 42px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title-row h3 {
    margin: 0;
    color: var(--orange-soft);
    font-size: 22px;
}

.section-title-row span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: bold;
}

.archived-tour-section {
    opacity: 0.92;
}

.archived-tour-section .tour-card {
    border-color: rgba(255,255,255,0.09);
}

@media (max-width: 900px) {
    .page.location-page {
        padding: 0 20px 45px 20px;
    }

    .location-header-row {
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .page.location-page {
        margin: -28px auto 0 auto;
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .section-title-row h3 {
        font-size: 19px;
    }
}

/* RideKTM legal pages */

.page.legal-page {
    max-width: none;
    width: 100%;
    margin: -50px auto 0 auto;
    padding: 0 34px 55px 34px;
}

.legal-card {
    max-width: 1050px;
    margin: 0 auto;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 12px;
}

.legal-content h2 {
    margin-top: 0;
    color: var(--text-main);
}

.legal-content h3 {
    color: var(--orange-soft);
    margin-top: 26px;
    margin-bottom: 8px;
    font-size: 18px;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 12px 0;
}

.legal-content a {
    color: var(--orange-soft);
    font-weight: bold;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .page.legal-page {
        margin: -28px auto 0 auto;
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* RideKTM language switch */

.language-switch a.active {
    color: var(--orange-soft);
    border-color: rgba(244,124,0,0.65);
    background: rgba(244,124,0,0.12);
}

/* RideKTM folder pages polish */

.folder-page .card,
.page .folder-card {
    border-radius: 24px;
}

.folder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.folder-header h2 {
    margin-bottom: 6px;
}

.folder-intro {
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 850px;
}

.file-list,
.video-list {
    display: grid;
    gap: 12px;
}

.file-row,
.video-row {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.file-row:hover,
.video-row:hover {
    border-color: rgba(244,124,0,0.42);
    background: rgba(244,124,0,0.06);
}

.file-title,
.video-title {
    color: var(--text-main);
    font-weight: 700;
    word-break: break-word;
}

.file-meta,
.video-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.upload-box {
    border: 1px dashed rgba(244,124,0,0.55);
    background: rgba(244,124,0,0.08);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;
}

.upload-box h3 {
    margin-top: 0;
    color: var(--orange-soft);
}

.upload-box p {
    color: var(--text-muted);
}

.empty {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.045);
    border-radius: 18px;
    padding: 18px;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .folder-header,
    .file-row,
    .video-row {
        display: block;
    }

    .file-actions,
    .video-actions {
        margin-top: 12px;
    }
}

/* Compact buttons inside Latest Tours cards on smaller screens */

.latest-grid .tour-card .file-actions,
.latest-grid .tour-card .tour-actions,
.latest-grid .tour-card .card-actions {
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .latest-grid .tour-card .small-btn,
    .latest-grid .tour-card .btn,
    .latest-grid .tour-card a.small-btn,
    .latest-grid .tour-card a.btn {
        padding: 7px 10px;
        min-height: 32px;
        border-radius: 12px;
        line-height: 1.15;
    }
}

@media (max-width: 520px) {
    .latest-grid .tour-card .file-actions,
    .latest-grid .tour-card .tour-actions,
    .latest-grid .tour-card .card-actions {
        gap: 6px;
    }

    .latest-grid .tour-card .small-btn,
    .latest-grid .tour-card .btn,
    .latest-grid .tour-card a.small-btn,
    .latest-grid .tour-card a.btn {
        padding: 6px 8px;
        min-height: 30px;
        border-radius: 10px;
    }
}

@media (max-width: 390px) {
    .latest-grid .tour-card .small-btn,
    .latest-grid .tour-card .btn,
    .latest-grid .tour-card a.small-btn,
    .latest-grid .tour-card a.btn {
        padding-left: 7px;
        padding-right: 7px;
    }
}

/* RideKTM Live Chat */

.ridektm-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--orange-soft);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    background: rgba(244,124,0,0.10);
    border: 1px solid rgba(244,124,0,0.28);
    border-radius: 999px;
    padding: 6px 10px;
}

.chat-messages {
    height: 340px;
    overflow-y: auto;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 12px;
}

.chat-empty,
.chat-login-required {
    color: var(--text-muted);
    line-height: 1.5;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 14px;
}

.chat-message {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 15px;
    padding: 10px 11px;
    margin-bottom: 9px;
}

.chat-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.chat-message-head strong {
    color: var(--text-main);
    font-size: 13px;
}

.chat-message-head span {
    color: var(--text-muted);
    font-size: 12px;
}

.chat-message-body {
    color: var(--text-main);
    line-height: 1.45;
    font-size: 14px;
    word-break: break-word;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-form textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px;
    color: var(--text-main);
    padding: 12px;
    outline: none;
}

.chat-form textarea:focus {
    border-color: rgba(244,124,0,0.58);
    box-shadow: 0 0 0 3px rgba(244,124,0,0.12);
}

.chat-form button {
    align-self: flex-end;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #111;
    font-weight: 900;
    padding: 9px 18px;
    cursor: pointer;
}

.chat-form button:hover {
    filter: brightness(1.08);
}

.chat-error {
    color: #ffb3a8;
    font-size: 13px;
    background: rgba(255,60,20,0.10);
    border: 1px solid rgba(255,90,60,0.22);
    border-radius: 14px;
    padding: 10px;
}

@media (max-width: 700px) {
    .chat-messages {
        height: 260px;
    }
}

/* RideKTM chat no-form compose */

.chat-compose {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px;
    color: var(--text-main);
    padding: 12px;
    outline: none;
}

.chat-textarea:focus {
    border-color: rgba(244,124,0,0.58);
    box-shadow: 0 0 0 3px rgba(244,124,0,0.12);
}

.chat-send-button {
    align-self: flex-end;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #111;
    font-weight: 900;
    padding: 9px 18px;
    cursor: pointer;
}

.chat-send-button:hover {
    filter: brightness(1.08);
}

.chat-send-button:disabled,
.chat-textarea:disabled {
    opacity: .55;
    cursor: wait;
}

/* RideKTM chat brighter visual style */

.ridektm-chat {
    background: linear-gradient(180deg, rgba(238,232,220,0.96), rgba(216,207,192,0.94));
    border: 1px solid rgba(244,124,0,0.35);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}

.ridektm-chat .chat-status {
    background: rgba(244,124,0,0.16);
    border-color: rgba(244,124,0,0.45);
    color: #5f2a00;
}

.ridektm-chat .chat-messages {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(90,70,50,0.18);
    box-shadow: inset 0 1px 10px rgba(0,0,0,0.06);
}

.ridektm-chat .chat-message {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(80,60,40,0.16);
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
}

.ridektm-chat .chat-message-head strong {
    color: #2a2018;
}

.ridektm-chat .chat-message-head span {
    color: #7a6a5b;
}

.ridektm-chat .chat-message-body {
    color: #2b241d;
}

.ridektm-chat .chat-empty,
.ridektm-chat .chat-login-required {
    background: rgba(255,255,255,0.62);
    border-color: rgba(80,60,40,0.16);
    color: #5c5044;
}

.ridektm-chat .chat-compose {
    background: rgba(255,255,255,0.50);
    border: 1px solid rgba(90,70,50,0.16);
    border-radius: 20px;
    padding: 12px;
}

.ridektm-chat .chat-textarea {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(90,70,50,0.22);
    color: #2a2018;
}

.ridektm-chat .chat-textarea::placeholder {
    color: #877869;
}

.ridektm-chat .chat-textarea:focus {
    border-color: rgba(244,124,0,0.75);
    box-shadow: 0 0 0 3px rgba(244,124,0,0.18);
}

.ridektm-chat .chat-send-button {
    background: var(--orange);
    color: #120b05;
    box-shadow: 0 8px 18px rgba(244,124,0,0.25);
}

.ridektm-chat .chat-error {
    background: rgba(150,40,20,0.10);
    border-color: rgba(150,40,20,0.22);
    color: #7a1f12;
}

/* RideKTM chat premium sober style */

.ridektm-chat {
    background: linear-gradient(180deg, rgba(58,52,46,0.96), rgba(38,34,30,0.96));
    border: 1px solid rgba(244,124,0,0.38);
    border-radius: 22px;
    padding: 15px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.36);
}

.ridektm-chat .chat-status {
    background: rgba(244,124,0,0.14);
    border-color: rgba(244,124,0,0.38);
    color: #ffb15a;
}

.ridektm-chat .chat-messages {
    background: rgba(236,226,212,0.86);
    border: 1px solid rgba(244,124,0,0.20);
    box-shadow: inset 0 1px 8px rgba(0,0,0,0.10);
}

.ridektm-chat .chat-message {
    background: rgba(255,250,242,0.86);
    border: 1px solid rgba(80,64,48,0.18);
    border-radius: 13px;
    box-shadow: none;
}

.ridektm-chat .chat-message-head strong {
    color: #211812;
}

.ridektm-chat .chat-message-head span {
    color: #756657;
}

.ridektm-chat .chat-message-body {
    color: #221b15;
}

.ridektm-chat .chat-compose {
    background: rgba(236,226,212,0.78);
    border: 1px solid rgba(244,124,0,0.22);
    border-radius: 18px;
    padding: 11px;
}

.ridektm-chat .chat-textarea {
    background: rgba(255,250,242,0.92);
    border: 1px solid rgba(65,52,40,0.24);
    color: #201812;
    border-radius: 14px;
}

.ridektm-chat .chat-send-button {
    background: linear-gradient(180deg, #ff8a1c, #f47c00);
    color: #120b05;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.16);
}

.ridektm-chat .chat-empty,
.ridektm-chat .chat-login-required {
    background: rgba(255,250,242,0.78);
    border-color: rgba(80,64,48,0.18);
    color: #4d4238;
}

/* RideKTM chat user colors */

.ridektm-chat .chat-message-own {
    margin-left: 26px;
    background: linear-gradient(180deg, rgba(255,226,190,0.96), rgba(255,202,136,0.92));
    border-color: rgba(244,124,0,0.38);
}

.ridektm-chat .chat-message-own .chat-message-head strong {
    color: #5f2a00;
}

.ridektm-chat .chat-user-color-0 {
    background: rgba(255,250,242,0.88);
    border-left: 4px solid rgba(244,124,0,0.70);
}

.ridektm-chat .chat-user-color-1 {
    background: rgba(240,236,226,0.90);
    border-left: 4px solid rgba(130,115,95,0.70);
}

.ridektm-chat .chat-user-color-2 {
    background: rgba(232,239,232,0.90);
    border-left: 4px solid rgba(82,130,86,0.65);
}

.ridektm-chat .chat-user-color-3 {
    background: rgba(235,235,244,0.90);
    border-left: 4px solid rgba(88,94,150,0.62);
}

.ridektm-chat .chat-user-color-4 {
    background: rgba(244,236,229,0.90);
    border-left: 4px solid rgba(150,92,62,0.62);
}

@media (max-width: 700px) {
    .ridektm-chat .chat-message-own {
        margin-left: 14px;
    }
}

/* RideKTM chat emoji bar */

.chat-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: -2px;
}

.chat-emoji-button {
    border: 1px solid rgba(80,64,48,0.18);
    background: rgba(255,250,242,0.78);
    border-radius: 999px;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.chat-emoji-button:hover {
    background: rgba(255,226,190,0.96);
    border-color: rgba(244,124,0,0.45);
    transform: translateY(-1px);
}

.chat-emoji-button:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    .chat-emoji-button {
        min-width: 30px;
        height: 29px;
        font-size: 15px;
        padding: 0 7px;
    }
}

/* RideKTM public video preview */

.public-video-card {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.public-video-card h2 {
    margin-top: 0;
}

.public-video-note {
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 18px;
}

.video-frame {
    background: #000;
    border-radius: 22px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Public video cards on home */

.public-tour-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.public-tour-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244,124,0,0.55);
}

.public-video-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(244,124,0,0.13);
    border: 1px solid rgba(244,124,0,0.35);
    color: var(--orange-soft);
    font-weight: 800;
    font-size: 13px;
}


/* Private tour chat */

.tour-chat-card {
    margin-top: 28px;
}

.tour-chat-intro {
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: -4px;
    margin-bottom: 18px;
}

.tour-chat-card .ridektm-chat {
    max-height: none;
}

.tour-chat-card .chat-messages {
    min-height: 280px;
    max-height: 460px;
}

@media (max-width: 760px) {
    .tour-chat-card .chat-messages {
        min-height: 240px;
        max-height: 380px;
    }
}


/* RideKTM admin tour overview */

.admin-summary-card .muted {
    color: var(--text-muted);
    line-height: 1.55;
}

.admin-location-card {
    margin-top: 24px;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.admin-tour-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-tour-table th,
.admin-tour-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    vertical-align: top;
}

.admin-tour-table th {
    color: var(--orange-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-small {
    color: var(--text-muted);
    font-size: 12px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.admin-badge-ok {
    background: rgba(47, 190, 120, 0.15);
    border: 1px solid rgba(47, 190, 120, 0.38);
    color: #8ff0b8;
}

.admin-badge-missing {
    background: rgba(244, 124, 0, 0.14);
    border: 1px solid rgba(244, 124, 0, 0.42);
    color: var(--orange-soft);
}

.admin-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-links a {
    display: inline-flex;
    text-decoration: none;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    font-weight: 700;
}

.admin-links a:hover {
    border-color: rgba(244,124,0,0.55);
    color: var(--orange-soft);
}


/* RideKTM admin tour overview v2 */

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.admin-kpi {
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
}

.admin-kpi-warning {
    border-color: rgba(244,124,0,0.45);
    background: rgba(244,124,0,0.10);
}

.admin-kpi-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.admin-kpi-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 8px;
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.admin-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.045);
    color: var(--text-main);
    font-weight: 800;
    font-size: 13px;
}

.admin-filter:hover,
.admin-filter-active {
    border-color: rgba(244,124,0,0.58);
    background: rgba(244,124,0,0.13);
    color: var(--orange-soft);
}

.admin-tour-table-v2 .admin-row-issue {
    background: rgba(244,124,0,0.045);
}

.admin-code,
.admin-path {
    display: inline-block;
    max-width: 260px;
    white-space: normal;
    word-break: break-word;
    border-radius: 10px;
    padding: 5px 7px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    font-size: 12px;
}

.admin-path {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }
}


/* Admin create/delete command panel */

.admin-command-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.admin-command-card {
    border-radius: 18px;
    padding: 16px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);
}

.admin-command-title {
    color: var(--orange-soft);
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.admin-command-code {
    display: inline-block;
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(244,124,0,0.32);
    color: var(--text-main);
    font-size: 13px;
}

.admin-command-help {
    margin-top: 10px;
    color: var(--text-muted);
    line-height: 1.45;
    font-size: 13px;
}

.admin-delete-command {
    display: inline-block;
    max-width: 220px;
    white-space: normal;
    word-break: break-word;
    border-radius: 10px;
    padding: 7px 9px;
    background: rgba(0,0,0,0.32);
    border: 1px solid rgba(244,124,0,0.28);
    color: var(--orange-soft);
    font-size: 12px;
    line-height: 1.45;
}

.admin-delete-command span {
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .admin-command-panel {
        grid-template-columns: 1fr;
    }
}


/* Admin command copy buttons */

.admin-copy-command,
.admin-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(244,124,0,0.36);
    background: rgba(244,124,0,0.12);
    color: var(--orange-soft);
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.admin-link-button {
    padding: 6px 10px;
    font-size: 13px;
}

.admin-delete-button {
    border-color: rgba(255,90,90,0.42);
    background: rgba(255,90,90,0.10);
    color: #ffb0a8;
}

.admin-copy-command:hover,
.admin-link-button:hover {
    transform: translateY(-1px);
    border-color: rgba(244,124,0,0.68);
}

.admin-command-copied {
    border-color: rgba(47,190,120,0.55) !important;
    background: rgba(47,190,120,0.14) !important;
    color: #8ff0b8 !important;
}


/* Admin mini copy buttons */

.admin-mini-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    border-radius: 999px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.055);
    color: var(--text-main);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

.admin-mini-copy:hover {
    border-color: rgba(244,124,0,0.58);
    color: var(--orange-soft);
    background: rgba(244,124,0,0.11);
}


/* RideKTM access denied page */

.access-denied-card {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.access-denied-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: rgba(244,124,0,0.14);
    border: 1px solid rgba(244,124,0,0.38);
    font-size: 34px;
}

.access-denied-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
}

.access-denied-details {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-muted);
    text-align: left;
}

.access-denied-details strong {
    color: var(--text-main);
}

.access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.access-denied-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 22px;
}


/* RideKTM request access page */

.request-access-card {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.request-access-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: rgba(244,124,0,0.14);
    border: 1px solid rgba(244,124,0,0.38);
    font-size: 34px;
}

.request-access-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto;
}

.request-access-details {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-muted);
    text-align: left;
}

.request-access-details strong {
    color: var(--text-main);
}

.request-access-checklist {
    max-width: 520px;
    margin: 24px auto 0 auto;
    text-align: left;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
}

.request-access-checklist h3 {
    margin-top: 0;
    color: var(--orange-soft);
}

.request-access-checklist ul {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.request-access-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.request-access-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 22px;
}


/* RideKTM custom login page */

.ridektm-login-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ridektm-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: rgba(244,124,0,0.14);
    border: 1px solid rgba(244,124,0,0.38);
    font-size: 34px;
}

.ridektm-login-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 22px auto;
}

.ridektm-login-form {
    max-width: 420px;
    margin: 24px auto 0 auto;
    text-align: left;
}

.ridektm-login-label {
    display: block;
    color: var(--text-main);
    font-weight: 800;
    margin: 14px 0 7px 0;
}

.ridektm-login-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.28);
    color: var(--text-main);
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}

.ridektm-login-input:focus {
    border-color: rgba(244,124,0,0.72);
    box-shadow: 0 0 0 3px rgba(244,124,0,0.15);
}

.ridektm-login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    margin-top: 14px;
    font-size: 14px;
}

.ridektm-login-submit {
    width: 100%;
    margin-top: 20px;
}

.ridektm-login-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.ridektm-login-details {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-muted);
    text-align: left;
}

.ridektm-login-details strong {
    color: var(--text-main);
}

.ridektm-login-already {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(47,190,120,0.12);
    border: 1px solid rgba(47,190,120,0.32);
    color: #8ff0b8;
    font-weight: 800;
}

.ridektm-login-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 22px;
}


/* RideKTM password help page */

.password-help-card {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.password-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: rgba(244,124,0,0.14);
    border: 1px solid rgba(244,124,0,0.38);
    font-size: 34px;
}

.password-help-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto;
}

.password-help-box {
    max-width: 520px;
    margin: 24px auto 0 auto;
    text-align: left;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
}

.password-help-box h3 {
    margin-top: 0;
    color: var(--orange-soft);
}

.password-help-box ul {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.password-help-details {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-muted);
    text-align: left;
}

.password-help-details strong {
    color: var(--text-main);
}

.password-help-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.password-help-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 22px;
}

/* RideKTM login error */

.ridektm-login-error {
    max-width: 420px;
    margin: 18px auto 0 auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,90,90,0.12);
    border: 1px solid rgba(255,90,90,0.36);
    color: #ffb0a8;
    font-weight: 800;
    line-height: 1.45;
}


/* Admin invite client button */

.admin-invite-button {
    border-color: rgba(47,190,120,0.42);
    background: rgba(47,190,120,0.10);
    color: #8ff0b8;
}

.admin-invite-button:hover {
    border-color: rgba(47,190,120,0.68);
    background: rgba(47,190,120,0.16);
}


/* Admin client counts */

.admin-client-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(47,190,120,0.12);
    border: 1px solid rgba(47,190,120,0.34);
    color: #8ff0b8;
    font-weight: 900;
}

/* RideKTM upload feedback */
.notice.error {
    border-color: rgba(255, 100, 60, 0.65);
    background: rgba(255, 80, 40, 0.13);
    color: #ffd8ce;
}

/* RideKTM private tour welcome/navigation card */
.tour-welcome-card {
    border: 1px solid rgba(255, 102, 0, 0.35);
    background:
        radial-gradient(circle at top left, rgba(255, 102, 0, 0.18), transparent 38%),
        rgba(16, 16, 16, 0.92);
}

.tour-welcome-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.tour-welcome-text {
    max-width: 760px;
}

.tour-welcome-kicker {
    margin-bottom: 6px;
    color: #ff8a2a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tour-welcome-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.tour-welcome-card p {
    margin-bottom: 0;
}

.tour-welcome-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 280px;
}

.tour-welcome-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.tour-welcome-links a:hover {
    border-color: rgba(255, 102, 0, 0.75);
    background: rgba(255, 102, 0, 0.16);
}

@media (max-width: 780px) {
    .tour-welcome-layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .tour-welcome-links {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .tour-welcome-links a {
        flex: 1 1 calc(50% - 10px);
    }
}

/* RideKTM tour page: welcome message below hero */
.tour-welcome-top-card {
    margin-top: 0;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 102, 0, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 102, 0, 0.13), rgba(20, 20, 20, 0.94) 42%),
        rgba(16, 16, 16, 0.94);
}

.tour-welcome-top-card .tour-welcome-kicker {
    margin-bottom: 6px;
    color: #ff8a2a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tour-welcome-top-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.tour-welcome-top-card p {
    margin-bottom: 0;
}

.tour-page-footer-after-chat {
    margin-top: 22px;
}

/* RideKTM Home: general community chat intro */
.home-chat-intro {
    margin-top: -4px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
    line-height: 1.45;
}
