/* ==========================================================================
   Guides - interactive onboarding tour
   Luxury identity: gold #c9a24b on deep navy. No generic component look.
   ========================================================================== */

/* ---------- Launcher (Concierge modal) ---------- */
.guides-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.guides-modal.is-open {
    display: flex;
}

.guides-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 6, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: guideFade 0.25s ease;
}

.guides-shell {
    position: relative;
    width: 100%;
    max-width: 1080px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: #0a0a0d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    box-shadow:
        0 24px 70px -12px rgba(0, 0, 0, 0.8),
        0 0 1px 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: guideReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.guides-head {
    padding: 34px 40px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(197, 168, 128, 0.03) 0%, transparent 100%);
}

.guides-head__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.guides-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #c5a880;
    margin-bottom: 8px;
}

.guides-eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(197, 168, 128, 0.35);
}

.guides-title {
    margin: 0;
    font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    font-size: 33px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: #ffffff;
}

.guides-sub {
    margin: 8px 0 0;
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: #8e8e98;
    max-width: 580px;
}

.guides-close {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: #8e8e98;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.guides-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.guides-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.guides-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    color: #8e8e98;
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.tab-btn.active {
    background: rgba(197, 168, 128, 0.12);
    border-color: rgba(197, 168, 128, 0.35);
    color: #f0e2cf;
}

.guides-body {
    padding: 30px 40px 38px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.07) transparent;
}

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

.guide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    padding: 20px;
    text-align: left;
    background: #111116;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    overflow: hidden;
}

.guide-card:hover {
    background: #16161d;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.5);
}

.guide-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.guide-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #c5a880;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover .guide-card__icon {
    background: rgba(197, 168, 128, 0.12);
    border-color: rgba(197, 168, 128, 0.35);
    color: #f0e2cf;
}

.guide-card__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.steps-tracker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.step-pip {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5c5c66;
}

.guide-card__title {
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 6px;
}

.guide-card__desc {
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: #8e8e98;
    margin-bottom: 16px;
}

.guide-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: auto;
}

.guide-card__tag {
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c5a880;
}

.guide-card__go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #8e8e98;
    transition: color 0.2s ease, transform 0.2s ease;
}

.guide-card__go svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.guide-card:hover .guide-card__go {
    color: #ffffff;
    transform: translateX(3px);
}

.guide-card.featured-ai {
    background: radial-gradient(circle at top right, rgba(197, 168, 128, 0.12) 0%, #111116 70%);
    border-color: rgba(197, 168, 128, 0.35);
}

.guide-card.featured-ai:hover {
    border-color: #c5a880;
    box-shadow: 0 12px 30px -6px rgba(197, 168, 128, 0.15);
}

.guide-card.featured-ai .guide-card__icon {
    background: rgba(197, 168, 128, 0.12);
    border-color: rgba(197, 168, 128, 0.35);
    color: #f0e2cf;
}

.ai-badge {
    font-family: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(197, 168, 128, 0.12);
    color: #f0e2cf;
    border: 1px solid rgba(197, 168, 128, 0.35);
    padding: 1px 6px;
    border-radius: 3px;
}

.guide-card.featured-ai .guide-card__title {
    color: #f0e2cf;
}

.guide-card.featured-ai .guide-card__foot {
    border-color: rgba(197, 168, 128, 0.35);
}

.guide-card.featured-ai .guide-card__tag,
.guide-card.featured-ai .guide-card__go {
    color: #f0e2cf;
}
/* ---------- Public entry retired: Guides is admin-only ---------- */

/* ---------- Tour overlay ---------- */
.guide-active {
    overflow: hidden;
}

.guide-spotlight {
    position: fixed;
    z-index: 100020;
    border: 2px solid #c9a24b;
    border-radius: 12px;
    box-shadow:
        0 0 0 9999px rgba(4, 6, 10, 0.74),
        0 0 26px 3px rgba(201, 162, 75, 0.35),
        inset 0 0 22px rgba(201, 162, 75, 0.12);
    pointer-events: none;
    transition:
        top 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
}

.guide-spotlight.is-hidden {
    opacity: 0;
}

/* ---------- Animated guiding cursor ---------- */
.guide-cursor {
    position: fixed;
    z-index: 100050;
    width: 30px;
    height: 30px;
    pointer-events: none;
    transition:
        transform 0.55s cubic-bezier(0.34, 1.28, 0.64, 1),
        opacity 0.25s ease;
    will-change: transform;
    opacity: 0;
}

.guide-cursor.is-visible {
    opacity: 1;
}

.guide-cursor__arrow {
    display: block;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.6));
}

.guide-cursor__ring {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #c9a24b;
    border-radius: 50%;
    animation: guidePulse 1.5s ease-out infinite;
}

@keyframes guidePulse {
    0% {
        transform: scale(0.4);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* ---------- Tooltip ---------- */
.guide-tip {
    position: fixed;
    z-index: 100040;
    width: min(360px, calc(100vw - 40px));
    padding: 20px 22px 18px;
    background: linear-gradient(180deg, #101825 0%, #0b111a 100%);
    border: 1px solid rgba(201, 162, 75, 0.28);
    border-radius: 12px;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    font-family: 'DM Sans', 'Inter', sans-serif;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.guide-tip.is-visible {
    opacity: 1;
}

.guide-tip__progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a24b, #e2c06c);
    border-radius: 2px 0 0 2px;
    transition: width 0.35s ease;
}

.guide-tip__step {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(201, 162, 75, 0.8);
    margin-bottom: 8px;
}

.guide-tip__title {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.28;
    color: #f4efe6;
}

.guide-tip__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(231, 224, 212, 0.72);
}

.guide-tip__hint {
    margin: 12px 0 0;
    padding: 9px 12px;
    background: rgba(201, 162, 75, 0.08);
    border-left: 2px solid rgba(201, 162, 75, 0.55);
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(233, 222, 200, 0.8);
}

.guide-tip__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.guide-tip__skip {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 11.5px;
    color: rgba(231, 224, 212, 0.45);
    cursor: pointer;
    transition: color 0.2s ease;
}

.guide-tip__skip:hover {
    color: rgba(231, 224, 212, 0.8);
}

.guide-tip__nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.guide-btn {
    padding: 8px 16px;
    border-radius: 7px;
    border: 1px solid rgba(201, 162, 75, 0.4);
    background: rgba(201, 162, 75, 0.09);
    color: #d8c68f;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-btn:hover {
    background: rgba(201, 162, 75, 0.2);
    border-color: rgba(201, 162, 75, 0.75);
    color: #f0e4c4;
}

.guide-btn--primary {
    background: linear-gradient(135deg, #d8b25c 0%, #c9a24b 100%);
    border-color: rgba(201, 162, 75, 0.6);
    color: #1a1408;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(201, 162, 75, 0.26);
}

.guide-btn--primary:hover {
    background: linear-gradient(135deg, #e2c06c 0%, #d4af57 100%);
    color: #1a1408;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201, 162, 75, 0.34);
}

.guide-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

/* ---------- Finish card ---------- */
.guide-done {
    position: fixed;
    z-index: 100070;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.guide-done.is-open {
    display: flex;
    animation: guideFade 0.3s ease;
}

.guide-done__card {
    width: min(430px, 100%);
    padding: 34px 32px 28px;
    text-align: center;
    background: linear-gradient(180deg, #0e1522 0%, #0a1017 100%);
    border: 1px solid rgba(201, 162, 75, 0.28);
    border-radius: 14px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6);
    animation: guideReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-done__mark {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid #c9a24b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a24b;
    font-size: 24px;
}

.guide-done__title {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #f4efe6;
}

.guide-done__text {
    margin: 0 0 22px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(231, 224, 212, 0.65);
}

.guide-done__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ---------- Animations ---------- */
@keyframes guideFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes guideReveal {
    0% { opacity: 0; transform: scale(0.96) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- RTL ---------- */
html[dir="rtl"] .guides-grid { direction: rtl; }
html[dir="rtl"] .guide-card { text-align: right; }
html[dir="rtl"] .guide-tip { text-align: right; }
html[dir="rtl"] .guide-tip__hint { border-left: none; border-right: 2px solid rgba(201, 162, 75, 0.55); border-radius: 6px 0 0 6px; }
html[dir="rtl"] .guide-tip__nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .guides-head__top { flex-direction: row-reverse; }
html[dir="rtl"] .guides-eyebrow::after { width: 24px; }
html[dir="rtl"] .guide-card__go { flex-direction: row-reverse; }
html[dir="rtl"] .guide-card:hover .guide-card__go { transform: translateX(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .guides-head { padding: 26px 24px 18px; }
    .guides-body { padding: 24px 24px 30px; }
    .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .guides-head { padding: 20px 20px 16px; }
    .guides-body { padding: 18px 20px 22px; }
    .guides-grid { grid-template-columns: 1fr; }
    .guides-title { font-size: 24px; }
    .guides-tabs { flex-wrap: wrap; }
    .guide-tip { width: calc(100vw - 28px); padding: 17px 18px 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .guide-spotlight,
    .guide-cursor,
    .guide-tip,
    .guides-shell,
    .guide-done__card {
        transition: none !important;
        animation: none !important;
    }
    .guide-cursor__ring { animation: none; }
}
