/* ==========================================================================
   KASH LIBYA (كاش ليبيا) - FULLY RESPONSIVE ULTRA LUXURY THEME
   Engineered for 100% Compatibility: Mobile, Tablet, Laptop, and 4K Desktop
   ========================================================================== */

:root {
    --bg-base: #070a12;
    --bg-surface: #0e1526;
    --bg-surface-hover: #141f36;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #10b981;
    
    /* Accents */
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-cyan: #06b6d4;
    --accent-blue: #2563eb;
    --accent-crimson: #f43f5e;
    --accent-gold: #fbbf24;
    --accent-purple: #8b5cf6;

    /* Text */
    --text-pure: #ffffff;
    --text-body: #94a3b8;
    --text-muted: #64748b;

    /* Font Families */
    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 13.5px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-pure);
    font-family: var(--font-ar);
    line-height: 1.4;
    direction: rtl;
    text-align: right;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Clean Scrollbars */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   UNIFIED 100% CONSISTENT LUXURY DARK DROPDOWNS (SELECT, OPTION, OPTGROUP)
   ========================================================================== */
select, 
.dark-custom-select, 
.chat-mini-select, 
.chat-room-select, 
select.luxury-input {
    background-color: #0c1424 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-family: var(--font-ar) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    outline: none !important;
    cursor: pointer !important;
    border-radius: var(--radius-pill) !important;
    transition: 0.2s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.65rem center !important;
    background-size: 11px !important;
    max-width: 100%;
}

select:focus, 
.dark-custom-select:focus, 
.chat-mini-select:focus, 
.chat-room-select:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25) !important;
}

select option, 
.dark-custom-select option, 
.chat-mini-select option, 
.chat-room-select option {
    background-color: #0e172a !important;
    color: #f1f5f9 !important;
    padding: 8px 12px !important;
    font-family: var(--font-ar) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

select optgroup, 
.dark-custom-select optgroup, 
.chat-mini-select optgroup, 
.chat-room-select optgroup {
    background-color: #060a14 !important;
    color: var(--accent-gold) !important;
    font-weight: 900 !important;
    font-size: 0.78rem !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Utilities */
.hidden { display: none !important; }
.w-full { width: 100%; }
.flex-1 { flex: 1; }
.mt-1 { margin-top: 0.5rem; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-crimson { color: var(--accent-crimson) !important; }
.text-amber { color: var(--accent-amber) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-sub { color: var(--text-body) !important; }

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
    background: rgba(14, 21, 38, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 0.45rem 1rem;
}
.header-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    transition: 0.2s;
    flex-shrink: 0;
}
.brand:hover .brand-logo-img {
    transform: scale(1.06) rotate(3deg);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.5);
}
.brand-info {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-pure);
    line-height: 1.15;
    white-space: nowrap;
}
.brand-name span { color: var(--accent-emerald); }
.brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* CBL & Market Live Sync Badge */
.sync-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
    padding: 0.28rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.pulse-dot-green {
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-emerald);
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Membership Chip */
.membership-chip {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--accent-amber);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.membership-chip:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: var(--accent-gold);
}
.membership-chip.active-member {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.btn-post-action {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #090d16;
    border: none;
    padding: 0.38rem 0.9rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 800;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-post-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   APP LAYOUT & MARKET HERO
   ========================================================================== */
.app-layout {
    max-width: 860px;
    margin: 0.85rem auto 0;
    padding: 0 0.85rem;
}

.market-hero {
    margin-bottom: 0.85rem;
}
.rates-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.rates-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.last-sync-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dot-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-emerald);
    animation: blink 1.5s infinite;
}
.btn-refresh-rates {
    background: transparent;
    border: none;
    color: var(--text-body);
    font-family: var(--font-ar);
    font-size: 0.74rem;
    cursor: pointer;
}
.btn-refresh-rates:hover { color: var(--accent-emerald); }

.rates-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.rate-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}
.rate-card:hover {
    border-color: var(--accent-emerald);
    background: var(--bg-surface-hover);
    transform: translateY(-1px);
}
.rc-label {
    font-size: 0.74rem;
    color: var(--text-body);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-val {
    font-family: var(--font-en);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1.15;
}
.rc-val small {
    font-family: var(--font-ar);
    font-size: 0.7rem;
    color: var(--text-body);
}

/* ==========================================================================
   TRADE SWITCH & 3-WAY SELECTOR
   ========================================================================== */
.trade-switch-container {
    margin-bottom: 0.85rem;
}
.trade-switch {
    display: grid;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 0.2rem;
    gap: 0.2rem;
}
.trade-switch-3 {
    grid-template-columns: 1fr 1fr 1.2fr;
}
.switch-btn {
    background: transparent;
    border: none;
    color: var(--text-body);
    padding: 0.48rem 0.45rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: 0.2s;
    white-space: nowrap;
}
#tabSellOrders.active {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
#tabBuyOrders.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Live Bargain Floor Active Tab */
.btn-bargain-floor-tab {
    color: var(--accent-gold);
}
#tabBargainFloor.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(244, 63, 94, 0.2) 100%);
    color: #fbbf24;
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
.pulse-dot-red {
    width: 6px;
    height: 6px;
    background: #f43f5e;
    border-radius: 50%;
    box-shadow: 0 0 6px #f43f5e;
    animation: blink 1s infinite;
    display: inline-block;
}

/* Filter Strip */
.filter-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.95rem;
    flex-wrap: wrap;
}
.category-pills {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.cat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    padding: 0.32rem 0.65rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.cat-pill:hover {
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.08);
}
.cat-pill.active {
    background: var(--accent-emerald);
    color: #090d16;
    font-weight: 800;
    border-color: var(--accent-emerald);
}

/* Custom Dark Select Wrappers */
.city-selector-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.city-icon {
    position: absolute;
    right: 0.65rem;
    color: var(--accent-emerald);
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 2;
}
.dark-custom-select {
    padding: 0.35rem 1.8rem 0.35rem 1.5rem !important;
}

/* ==========================================================================
   DEALS FEED & CARDS (COMPACT PROPORTIONS)
   ========================================================================== */
.deals-feed {
    margin-bottom: 1.5rem;
}
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--text-body);
    margin-bottom: 0.55rem;
}
.shield-note { color: var(--accent-emerald); font-weight: 700; }

.deals-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.deal-row-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.95rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr;
    align-items: center;
    gap: 0.75rem;
    transition: 0.2s;
    position: relative;
}
.deal-row-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--bg-surface-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Featured Gold Ad Styling */
.deal-row-card.is-featured-gold {
    background: linear-gradient(145deg, #182035 0%, #111a2e 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 3px 15px rgba(245, 158, 11, 0.12);
}
.deal-row-card.is-featured-gold:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.22);
}
.featured-ribbon-tag {
    position: absolute;
    top: -8px;
    right: 0.95rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #090d16;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 0.1rem 0.55rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.deal-trader-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.d-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.d-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-pure);
}

/* Rating Badge Pill */
.d-rating-pill {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-amber);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.08rem 0.38rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-family: var(--font-en);
}
.d-rating-pill small {
    font-family: var(--font-ar);
    font-size: 0.65rem;
    color: var(--text-body);
}

.d-badge-vip {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.08rem 0.35rem;
    border-radius: var(--radius-pill);
}
.d-location-tag {
    font-size: 0.74rem;
    color: var(--text-body);
    line-height: 1.25;
}
.d-method-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    color: var(--accent-cyan);
    margin-top: 0.15rem;
    width: fit-content;
}

.deal-pricing-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.d-price-big {
    font-family: var(--font-en);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--accent-emerald);
    line-height: 1.1;
}
.d-price-big small {
    font-family: var(--font-ar);
    font-size: 0.74rem;
    color: var(--text-body);
}
.d-amount-available {
    font-size: 0.75rem;
    color: var(--text-body);
}
.d-amount-available strong {
    font-family: var(--font-en);
    color: var(--text-pure);
}
.d-total-lyd {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Contact Seller Action Button */
.deal-cta-action {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.btn-contact-seller {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0.48rem 0.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: 0.2s;
    width: 100%;
    justify-content: center;
}
.btn-contact-seller:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   LIVE CITY CHAT MESSENGER (COMPACT PROPORTIONS)
   ========================================================================== */
.live-bargain-chat-section {
    background: linear-gradient(170deg, #0d1424 0%, #060a14 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Messenger Header */
.chat-messenger-header {
    background: rgba(14, 21, 38, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.95rem;
    display: flex;
    flex-direction: column;
}
.cmh-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.cmh-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cmh-status-circle {
    width: 26px;
    height: 26px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cmh-brand-text strong {
    font-size: 0.88rem;
    color: var(--accent-gold);
    display: block;
    line-height: 1.15;
}
.cmh-online {
    font-size: 0.68rem;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.cmh-online i { font-size: 0.4rem; }

/* Chat City Dropdown in Header */
.chat-city-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.chat-city-icon {
    position: absolute;
    right: 0.75rem;
    color: var(--accent-gold);
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 2;
}
.chat-room-select {
    padding: 0.32rem 1.8rem 0.32rem 1.4rem !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: var(--accent-gold) !important;
}

.cmh-guard-badge {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #38bdf8;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

/* Chat Stream Layout */
.chat-messenger-stream {
    height: 360px;
    overflow-y: auto;
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: radial-gradient(circle at top right, rgba(16, 28, 54, 0.4) 0%, transparent 60%);
    -webkit-overflow-scrolling: touch;
}

/* Chat Message Row */
.chat-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    animation: fadeInSlide 0.25s ease-out;
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.c-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.c-msg-avatar.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #090d16;
}

/* Chat Bubble Container */
.c-msg-bubble {
    background: #111a2e;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg) 4px var(--radius-lg) var(--radius-lg);
    padding: 0.65rem 0.85rem;
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}
.c-msg-bubble:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: #142038;
}

.c-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
}
.c-msg-user-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.c-msg-name {
    font-weight: 800;
    color: var(--text-pure);
    font-size: 0.82rem;
}
.c-msg-city-tag {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-gold);
    padding: 0.05rem 0.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
}
.c-msg-time {
    color: var(--text-muted);
    font-size: 0.68rem;
}

/* Natural Message Text */
.c-msg-text {
    font-size: 0.84rem;
    color: #f1f5f9;
    line-height: 1.45;
    word-break: break-word;
}
.c-msg-text .hl-price {
    font-family: var(--font-en);
    font-weight: 900;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.15);
    padding: 0.05rem 0.35rem;
    border-radius: var(--radius-sm);
}
.c-msg-text .hl-dollar {
    font-family: var(--font-en);
    font-weight: 800;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
    padding: 0.05rem 0.35rem;
    border-radius: var(--radius-sm);
}

/* Integrated Inside-Bubble Action */
.c-msg-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.35rem;
}
.btn-chat-contact {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #090d16;
    border: none;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 800;
    font-size: 0.74rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: 0.2s;
}
.btn-chat-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

/* Chat Input Floating Bar */
.chat-messenger-input-wrapper {
    background: rgba(14, 21, 38, 0.98);
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.65rem 0.85rem;
}
.natural-chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Identity Capsule Row */
.chat-identity-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.1fr;
    gap: 0.45rem;
}
.chat-id-field {
    position: relative;
    display: flex;
    align-items: center;
}
.chat-id-field i {
    position: absolute;
    right: 0.65rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}
.chat-mini-input {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    color: var(--text-pure);
    padding: 0.38rem 1.8rem 0.38rem 0.55rem;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 0.78rem;
    width: 100%;
    outline: none;
    transition: 0.2s;
}
.chat-mini-input:focus { border-color: var(--accent-emerald); }
.chat-mini-select {
    padding: 0.38rem 1.8rem 0.38rem 0.55rem !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    font-size: 0.78rem !important;
}

/* Unified Input Pill Box with Embedded Send Button */
.chat-main-input-row {
    width: 100%;
}
.chat-input-pill-box {
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    padding: 0.2rem 0.3rem 0.2rem 0.75rem;
    transition: 0.2s;
}
.chat-input-pill-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}
.chat-text-input {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.45rem 0.55rem;
    font-family: var(--font-ar);
    font-size: 0.84rem;
    width: 100%;
    outline: none;
}

.btn-chat-send {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #090d16;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 900;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: 0.2s;
    flex-shrink: 0;
}
.btn-chat-send:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4);
}
.btn-chat-send:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Empty feed */
.empty-feed {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-subtle);
}
.empty-feed i { font-size: 1.6rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.empty-feed h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.empty-feed p { font-size: 0.78rem; color: var(--text-body); margin-bottom: 0.85rem; }

/* ==========================================================================
   SIMPLE 3 STEP GUIDE
   ========================================================================== */
.simple-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    background: rgba(16, 23, 38, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.85rem;
}
.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.g-num {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.guide-item strong {
    font-size: 0.8rem;
    display: block;
    color: var(--text-pure);
}
.guide-item p {
    font-size: 0.72rem;
    color: var(--text-body);
}

/* ==========================================================================
   SUPPORT FOOTER BANNER (0913881723)
   ========================================================================== */
.support-footer-banner {
    margin-top: 1.25rem;
    background: linear-gradient(135deg, rgba(16, 28, 54, 0.9) 0%, rgba(9, 18, 36, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}
.support-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.support-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-cyan);
}
.support-text strong {
    font-size: 0.84rem;
    color: var(--text-pure);
    display: block;
}
.support-text p {
    font-size: 0.72rem;
    color: var(--text-body);
}
.support-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.btn-support-wa {
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: 0.2s;
}
.btn-support-wa:hover {
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}
.btn-support-call {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-pure);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: 0.2s;
}
.btn-support-call:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 1rem 2.5rem;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* ==========================================================================
   FITTED MODALS & VIP GATE
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 15, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}
.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    padding: 1.15rem;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-window::-webkit-scrollbar { display: none; }
.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-body);
    font-size: 1.05rem;
    cursor: pointer;
}
.modal-heading {
    text-align: center;
    margin-bottom: 0.75rem;
}
.modal-heading h3 { font-size: 1.05rem; font-weight: 800; }
.icon-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--accent-amber);
    margin-bottom: 0.35rem;
}

.luxury-modal-window {
    max-width: 440px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.1);
}

.vip-gate-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.vip-crown-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.crown-glowing-circle {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.05) 70%);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-gold);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
    margin-bottom: 0.35rem;
}
.vip-crown-hero h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-pure);
}
.vip-subtitle {
    font-size: 0.76rem;
    color: var(--text-body);
    margin-top: 0.1rem;
}

.deal-context-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    padding: 0.38rem 0.75rem;
    font-size: 0.74rem;
    color: var(--text-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.vip-benefits-card {
    background: linear-gradient(135deg, #101c36 0%, #091224 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.vip-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.55rem;
}
.price-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}
.vip-price-figure {
    font-family: var(--font-en);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}
.vip-price-figure small {
    font-family: var(--font-ar);
    font-size: 0.7rem;
    color: var(--text-body);
}

.vip-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}
.v-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.38rem;
    font-size: 0.74rem;
    color: var(--text-pure);
    line-height: 1.3;
}
.v-feat-item i {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.btn-vip-action {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #047857 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 900;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: 0.2s;
}
.btn-vip-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Unlocked Contact Details */
.contact-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}
.c-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.c-item span { color: var(--text-body); }
.c-trader-box {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.phone-row {
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.45rem;
}
.phone-highlight {
    font-family: var(--font-en);
    font-size: 1.15rem;
    color: var(--accent-emerald);
    letter-spacing: 0.5px;
}
.contact-btn-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}
.btn-wa {
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    padding: 0.55rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.btn-call {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-pure);
    text-decoration: none;
    padding: 0.55rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.safety-box {
    background: rgba(245, 158, 11, 0.08);
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   ULTRA LUXURY BCD BANK CARD & PAYMENT FORM
   ========================================================================== */
.bcd-premium-card {
    background: linear-gradient(135deg, #101c36 0%, #091224 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 0.95rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.bcd-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bcd-bank-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 800;
}
.bcd-live-status {
    font-size: 0.68rem;
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 700;
}
.bcd-live-status i { font-size: 0.45rem; }

.bcd-card-middle {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.75rem;
}
.acc-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-body);
    margin-bottom: 0.15rem;
}
.acc-number-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bcd-acc-digits {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1px;
}
.btn-bcd-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-pure);
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: 0.2s;
}
.btn-bcd-copy:hover {
    background: var(--accent-emerald);
    color: #090d16;
    border-color: var(--accent-emerald);
}

.bcd-wabs-action-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.55rem;
}
.btn-wabs-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
    text-decoration: none;
    padding: 0.45rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 800;
    transition: 0.2s;
}
.btn-wabs-shortcut:hover {
    background: #25D366;
    color: #090d16;
}

/* Luxury Plan Selector Tabs */
.luxury-plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}
.luxury-plan-option input { display: none; }
.plan-card-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.55rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    height: 100%;
}
.plan-card-inner .p-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 0.15rem;
}
.plan-card-inner .p-price {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent-amber);
}
.plan-card-inner .p-price small {
    font-family: var(--font-ar);
    font-size: 0.65rem;
    color: var(--text-body);
}
.plan-card-inner .p-hint {
    font-size: 0.64rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.luxury-plan-option input:checked + .plan-card-inner {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* Luxury Form Inputs */
.luxury-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: 0.2rem;
    display: block;
}
.luxury-input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-pure) !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.82rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.luxury-input:focus {
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
}

.telegram-confirmation-note {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    font-size: 0.7rem;
    color: #bae6fd;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.btn-luxury-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #047857 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-shadow: 0 3px 15px rgba(16, 185, 129, 0.35);
    transition: 0.2s;
}
.btn-luxury-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5);
}

.modal-support-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    color: var(--text-body);
}
.support-wa-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.support-wa-link:hover { text-decoration: underline; }

/* ==========================================================================
   LIVE PENDING TELEGRAM APPROVAL SCREEN
   ========================================================================== */
.pending-verify-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.1rem;
    gap: 0.75rem;
}
.pending-spinner-container {
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pulse-ring-loader {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0.08) 70%);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    animation: floatGlow 2s infinite ease-in-out;
}
@keyframes floatGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(6, 182, 212, 0.3); }
    50% { transform: scale(1.06); box-shadow: 0 0 25px rgba(6, 182, 212, 0.6); }
}
.pending-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-pure);
}
.pending-desc {
    font-size: 0.76rem;
    color: var(--text-body);
    line-height: 1.35;
}

.pending-meta-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.p-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}
.p-meta-item span { color: var(--text-body); }
.req-id-badge {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
    padding: 0.08rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
}

.expedite-action-wrap {
    width: 100%;
    margin-top: 0.2rem;
}
.btn-expedite-wa {
    width: 100%;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    padding: 0.65rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
    transition: 0.2s;
}
.btn-expedite-wa:hover {
    box-shadow: 0 5px 16px rgba(37, 211, 102, 0.5);
    transform: translateY(-1px);
}

.btn-cancel-pending {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-ar);
    font-size: 0.74rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-cancel-pending:hover { color: var(--text-pure); }

/* Compact Post Form */
.compact-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.form-row-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
}
.choice-tab input { display: none; }
.choice-pill {
    display: block;
    text-align: center;
    padding: 0.42rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.76rem;
    cursor: pointer;
}
.choice-tab input:checked + .choice-pill {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.form-field label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-body);
}
.dark-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    color: var(--text-pure);
    padding: 0.42rem 0.65rem;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 0.82rem;
    outline: none;
    width: 100%;
}
.dark-input:focus { border-color: var(--accent-emerald); }
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.address-guidance-hint {
    font-size: 0.68rem;
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

/* Featured Promotion in Post Form */
.featured-promotion-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    margin: 0.25rem 0;
}
.featured-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    cursor: pointer;
}
.featured-checkbox-label input {
    margin-top: 0.2rem;
    accent-color: var(--accent-amber);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.featured-text-info strong {
    font-size: 0.78rem;
    color: var(--accent-gold);
    display: block;
}
.featured-text-info p {
    font-size: 0.7rem;
    color: var(--text-body);
    margin-top: 0.1rem;
}

/* Toast */
.toast-popup {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #162032;
    border: 1px solid var(--accent-emerald);
    color: var(--text-pure);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* ==========================================================================
   ADVANCED RESPONSIVE ENGINE (MOBILE / TABLET / DESKTOP)
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 860px) */
@media (max-width: 860px) {
    .app-layout {
        padding: 0 0.65rem;
    }
    .header-container {
        padding: 0 0.25rem;
    }
    .deal-row-card {
        grid-template-columns: 1.3fr 1fr auto;
    }
}

/* Standard Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    /* Header optimization */
    .app-header {
        padding: 0.4rem 0.65rem;
    }
    .sync-badge { 
        display: none; /* Hide sync badge on mobile to save valuable horizontal space */
    }
    .brand-name {
        font-size: 0.98rem;
    }
    .brand-sub {
        display: none;
    }
    .membership-chip {
        padding: 0.3rem 0.55rem;
        font-size: 0.72rem;
    }
    .btn-post-action {
        padding: 0.32rem 0.65rem;
        font-size: 0.74rem;
    }

    /* Market rates ribbon: 3 compact columns */
    .rates-ribbon {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }
    .rate-card {
        padding: 0.45rem 0.5rem;
    }
    .rc-label {
        font-size: 0.68rem;
    }
    .rc-val {
        font-size: 1rem;
    }

    /* Switch Tabs */
    .trade-switch-3 {
        grid-template-columns: 1fr 1fr 1.15fr;
        padding: 0.15rem;
    }
    .switch-btn {
        padding: 0.42rem 0.25rem;
        font-size: 0.75rem;
    }

    /* Deal cards stack */
    .deal-row-card {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.75rem 0.85rem;
    }
    .deal-pricing-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 0, 0, 0.25);
        padding: 0.45rem 0.65rem;
        border-radius: var(--radius-md);
    }
    .deal-cta-action .btn-contact-seller {
        padding: 0.55rem;
        font-size: 0.84rem;
    }

    /* Chat Section */
    .chat-messenger-stream {
        height: 320px;
        padding: 0.65rem 0.75rem;
    }
    .cmh-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .cmh-guard-badge {
        font-size: 0.65rem;
        align-self: flex-start;
    }
    .chat-city-dropdown-wrap {
        width: 100%;
    }
    .chat-room-select {
        width: 100% !important;
    }

    /* Chat input */
    .chat-identity-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .chat-input-pill-box {
        padding: 0.15rem 0.25rem 0.15rem 0.55rem;
    }
    .chat-text-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.45rem;
    }
    .btn-chat-send {
        padding: 0.45rem 0.85rem;
        font-size: 0.76rem;
    }

    /* Guide & Footer */
    .simple-guide {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .luxury-plan-selector {
        grid-template-columns: 1fr;
    }
    .support-footer-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
    }
    .support-actions {
        flex-direction: column;
    }
    .btn-support-wa, .btn-support-call {
        justify-content: center;
    }
}

/* Extra Small Phones (<= 420px: iPhone SE, small Androids) */
@media (max-width: 420px) {
    html {
        font-size: 12.5px;
    }
    .app-header {
        padding: 0.35rem 0.45rem;
    }
    .brand-name {
        font-size: 0.92rem;
    }
    .rates-ribbon {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .rate-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 0.75rem;
    }
    .trade-switch-3 {
        grid-template-columns: 1fr;
    }
    .modal-window {
        padding: 0.95rem 0.75rem;
        border-radius: var(--radius-md);
    }
}
