/* ==========================================================================
   PRIVE VIP TATTOO - Arabic RTL (Right-to-Left) Luxury Stylesheet
   ========================================================================== */

[dir="rtl"], [dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif !important;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] .prive-signature,
[dir="rtl"] .hero-giant-prive,
[dir="rtl"] .section-title,
[dir="rtl"] .artist-name-title,
[dir="rtl"] .btn-vip-primary,
[dir="rtl"] .btn-vip-secondary,
[dir="rtl"] .btn-enter-atelier {
    font-family: 'Cairo', sans-serif !important;
    letter-spacing: normal !important;
}

[dir="rtl"] .section-tag {
    padding-left: 0;
    padding-right: 1.4rem;
}

[dir="rtl"] .section-tag::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .hero-video-wrapper {
    right: auto;
    left: 0;
}

[dir="rtl"] .hero-video-wrapper::before {
    background: linear-gradient(270deg, #0B0C0E 15%, rgba(11, 12, 14, 0.85) 45%, rgba(11, 12, 14, 0.15) 100%) !important;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .artist-month-badge {
    right: auto;
    left: 2rem;
}

[dir="rtl"] .canvas-viewport {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

[dir="rtl"] .admin-sidebar {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

[dir="rtl"] .admin-shell {
    grid-template-columns: 1fr 260px;
}

[dir="rtl"] .prive-table th, 
[dir="rtl"] .prive-table td {
    text-align: right;
}

/* Floating AI Chat in Arabic (Flip to bottom left for ergonomics) */
[dir="rtl"] .floating-ai-container {
    right: auto;
    left: 24px;
}

[dir="rtl"] .floating-chat-window {
    right: auto;
    left: 0;
}

[dir="rtl"] .f-chat-msg.bot {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 12px;
    text-align: right;
}

[dir="rtl"] .f-chat-msg.user {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 12px;
    text-align: left;
}

/* Form inputs & controls */
[dir="rtl"] input, 
[dir="rtl"] select, 
[dir="rtl"] textarea {
    text-align: right;
}

[dir="rtl"] .hero-cta-group {
    justify-content: flex-start;
}

[dir="rtl"] .artist-meta-line {
    justify-content: flex-start;
}

[dir="rtl"] .btn-arrow-gold {
    transform: scaleX(-1);
    display: inline-block;
}

[dir="rtl"] .brand-crest-mini {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .social-header-actions {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .financial-pill-box .fin-pill:nth-child(2) {
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
}

[dir="rtl"] .photoshop-workspace-grid {
    direction: ltr; /* Keep graphic editor canvas LTR so coordinates match */
}

[dir="rtl"] .ps-inspector,
[dir="rtl"] .photoshop-header-bar,
[dir="rtl"] #artistMockupModal {
    direction: rtl;
    text-align: right;
}
