/* assets/css/app.css - Professional Agri-Fintech Minimalist Design System */

:root {
    /* Sophisticated InDrive / Stripe / Linear Corporate Palette */
    --primary: #0f172a;           /* Sleek midnight black primary */
    --primary-accent: #059669;    /* Clean emerald for financial/deal actions */
    --primary-accent-hover: #047857;
    --accent-subtle: #f0fdf4;
    --dark: #0f172a;
    --dark-muted: #1e293b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-stage: #090d16;          /* Dark stage background for desktop */
    --bg-surface: #f8fafc;        /* Clean light page background */
    --card-bg: #ffffff;
    --border-main: #e2e8f0;
    --border-subtle: #f1f5f9;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-card: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    --shadow-float: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
    --header-h: 58px;
    --footer-h: 64px;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-stage);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    -webkit-font-smoothing: antialiased;
}

body.urdu-mode {
    font-family: 'Noto Nastaliq Urdu', 'Plus Jakarta Sans', serif;
}

/* TOP DESKTOP PREVIEW TOOLBAR */
.desktop-preview-bar {
    width: 100%;
    background: #0b1120;
    border-bottom: 1px solid #1e293b;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
    z-index: 10000;
}

.desktop-preview-bar strong {
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.desktop-preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.desktop-preview-actions a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.74rem;
    transition: all 0.15s;
}

.desktop-preview-actions a:hover {
    background: #334155;
}

@media (max-width: 600px) {
    .desktop-preview-bar { display: none !important; }
}

/* DESKTOP SMARTPHONE STAGE */
.desktop-device-stage {
    padding: 20px 0 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (max-width: 600px) {
    .desktop-device-stage { padding: 0; }
}

/* MOBILE APP CONTAINER */
.mobile-app-shell {
    width: 100%;
    max-width: 420px;
    height: 92vh;
    min-height: 740px;
    background: var(--bg-surface);
    border-radius: 36px;
    box-shadow: 0 0 0 8px #1e293b, 0 25px 60px -10px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    body { background: var(--bg-surface); }
    .mobile-app-shell {
        max-width: 100%;
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
}

/* PHONE TOP SPEAKER NOTCH */
.phone-notch-bar {
    width: 100%;
    height: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1000;
}

.phone-speaker-pill {
    width: 65px;
    height: 4px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
}

@media (max-width: 600px) {
    .phone-notch-bar { display: none; }
}

/* STICKY CLEAN APP HEADER */
.app-top-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 900;
    flex-shrink: 0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
}

.brand-icon-box {
    width: 32px;
    height: 32px;
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.brand-sub-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background: #0f172a;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.icon-btn {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: background 0.15s;
}

.icon-btn:active {
    background: #e2e8f0;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.35);
    line-height: 1;
    z-index: 10;
}

.lang-switch-btn {
    background: #f1f5f9;
    color: var(--dark);
    border: 1px solid var(--border-main);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.header-wallet-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #fff;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.header-wallet-chip i {
    color: #34d399;
}

.header-login-btn {
    background: var(--dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

/* MAIN SCROLLABLE APP BODY */
.app-main-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* STICKY BOTTOM APP NAVIGATION */
.app-bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-h);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-main);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 900;
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    width: 20%;
    height: 100%;
    transition: color 0.15s;
    user-select: none;
}

.nav-item .nav-icon {
    font-size: 1.15rem;
    margin-bottom: 3px;
    transition: transform 0.15s;
}

.nav-item.active {
    color: var(--dark);
    font-weight: 800;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    color: var(--dark);
}

/* CENTER FAB (+) BUTTON (InDrive Minimalist Style) */
.nav-item.fab-center {
    position: relative;
    top: -12px;
}

.fab-circle {
    width: 46px;
    height: 46px;
    background: var(--dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
    border: 3px solid #fff;
    transition: transform 0.15s;
}

.nav-item.fab-center:active .fab-circle {
    transform: scale(0.92);
}

.nav-item.fab-center .nav-label {
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.72rem;
    margin-top: 2px;
    display: block;
}

/* 1. PROFESSIONAL FINTECH WALLET CARD */
.wallet-card-container {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    position: relative;
    box-shadow: var(--shadow-card);
    border: 1px solid #1e293b;
}

.wallet-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wallet-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-label i {
    color: #34d399;
}

.currency-tag {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #cbd5e1;
}

.wallet-balance-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.wallet-sub-title {
    font-size: 0.72rem;
    color: #94a3b8;
}

.wallet-amount {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1.1;
    margin-top: 2px;
}

.wallet-quick-add {
    background: #ffffff;
    color: var(--dark);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s;
}

.wallet-quick-add:active {
    transform: scale(0.96);
}

/* 2. COMPACT SEARCH BAR */
.market-search-wrap {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    padding: 0 16px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.market-search-wrap:focus-within {
    border-color: var(--dark);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.search-icon {
    color: #64748b;
    font-size: 0.95rem;
}

.market-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-main);
}

.market-search-input::placeholder {
    color: #94a3b8;
}

.clear-search-btn {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

/* 3. PROFESSIONAL COMMODITY HUBS (POTATO & ONION) */
.section-micro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
    margin-bottom: -4px;
}

.section-micro-header span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.section-micro-header small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

/* QUICK ACTION MENU GRID (Fintech / Banking Style 2-Column) */
.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 16px;
}

.quick-menu-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 12px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.quick-menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
    border-color: #cbd5e1;
}

.quick-menu-card:active {
    transform: scale(0.97);
}

.quick-menu-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.quick-menu-card:hover .quick-menu-icon {
    transform: scale(1.06);
}

/* Custom Soft Color Palettes for Icons matching banking menu style */
.quick-menu-icon.icon-potato-sell {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.quick-menu-icon.icon-potato-buy {
    background: #ffedd5;
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.25);
}

.quick-menu-icon.icon-onion-sell {
    background: #ffe4e6;
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.25);
}

.quick-menu-icon.icon-onion-buy {
    background: #fce7f3;
    color: #db2777;
    border: 1px solid rgba(219, 39, 119, 0.25);
}

.quick-menu-icon.icon-wallet-add {
    background: #d1fae5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.quick-menu-icon.icon-deals-history {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.quick-menu-icon.icon-upload-lot {
    background: #ede9fe;
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.quick-menu-icon.icon-app-settings {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.quick-menu-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.quick-menu-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.quick-menu-sub {
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Urdu Mode adjustments for Quick Menu */
.urdu-mode .quick-menu-title {
    font-size: 0.88rem;
    line-height: 1.45;
}

.urdu-mode .quick-menu-sub {
    font-size: 0.70rem;
    line-height: 1.35;
}

/* Active Card Highlights for Commodity Hubs */
.quick-menu-card.active-potato-sell {
    border: 2px solid #d97706;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-potato-buy {
    border: 2px solid #ea580c;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.16);
    background: #ffffff;
}

.card-active-indicator {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.active-potato-sell .card-active-indicator {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.active-potato-buy .card-active-indicator {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.quick-menu-card.active-onion-sell {
    border: 2px solid #e11d48;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-onion-buy {
    border: 2px solid #db2777;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.16);
    background: #ffffff;
}

.active-onion-sell .card-active-indicator {
    background: #ffe4e6;
    color: #9f1239;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.active-onion-buy .card-active-indicator {
    background: #fce7f3;
    color: #9d174d;
    border: 1px solid rgba(219, 39, 119, 0.3);
}

.quick-menu-card.active-wallet-topup {
    border: 2px solid #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-wallet-history {
    border: 2px solid #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-deals-listings {
    border: 2px solid #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-deals-bids {
    border: 2px solid #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-settings-profile {
    border: 2px solid #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-settings-security {
    border: 2px solid #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-intent-sell {
    border: 2px solid #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-intent-buy {
    border: 2px solid #ea580c;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-crop-potato {
    border: 2px solid #d97706;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-crop-onion {
    border: 2px solid #e11d48;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.16);
    background: #ffffff;
}

.quick-menu-card.active-auth-login {
    border: 2px solid #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
    background: #ffffff;
}

.active-auth-login .card-active-indicator {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.quick-menu-card.active-auth-signup {
    border: 2px solid #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
    background: #ffffff;
}

.active-auth-signup .card-active-indicator {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.quick-menu-card.active-auth-forgot {
    border: 2px solid #d97706;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.16);
    background: #ffffff;
}

.active-auth-forgot .card-active-indicator {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Auth Screens Vertical Centering (Mobile Center Shell) */
.auth-center-container {
    margin: auto 0;
    width: 100%;
    padding: 16px 0 28px;
    display: flex;
    flex-direction: column;
}

/* Quick Amount Chips & Payment Cards for Wallet */
.quick-chip-btn {
    background: #f8fafc;
    border: 1.5px solid var(--border-main);
    border-radius: var(--radius-xs);
    padding: 8px 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.quick-chip-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.quick-chip-btn.active {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--border-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    user-select: none;
}

.payment-method-card:hover {
    border-color: #cbd5e1;
    background: #fafafa;
}

.payment-method-card.selected {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}

.payment-method-card input[type="radio"] {
    accent-color: #059669;
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
}

.payment-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.urdu-mode .card-active-indicator {
    right: auto;
    left: 8px;
}

/* HORIZONTAL SCROLLABLE VARIETY FILTER PILLS */
.variety-filter-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 2px 10px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 8px;
}

.variety-filter-scroll::-webkit-scrollbar {
    display: none;
}

.variety-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-main);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.variety-pill:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.variety-pill.active {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}


/* ========================================================
   DAILY MARKET REPORT & TRADING CHART STYLES
   ======================================================== */
.daily-market-report-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 14px 14px 12px 14px;
    margin-bottom: 16px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.market-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.report-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-radar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.report-title-wrap h3 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.report-title-wrap small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Crop Switcher Pills */
.crop-report-switcher {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: var(--radius-sm);
    gap: 2px;
}

.crop-report-btn {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.crop-report-btn.active {
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Crop Panel Toggle */
.crop-report-panel {
    display: none;
    animation: fadeInReport 0.25s ease-in-out;
}

.crop-report-panel.active {
    display: block;
}

@keyframes fadeInReport {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3 Price Stat Metric Blocks */
.report-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.report-stat-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.report-stat-box.box-high {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.04);
}

.report-stat-box.box-low {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.04);
}

.report-stat-box.box-avg {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.04);
}

.report-stat-label {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 2px;
}

.report-stat-box.box-high .report-stat-label { color: #059669; }
.report-stat-box.box-low .report-stat-label { color: #dc2626; }
.report-stat-box.box-avg .report-stat-label { color: #2563eb; }

.report-stat-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.report-stat-sub {
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sale vs Buy Breakdown Chips */
.report-range-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.range-chip {
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.69rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-main);
}

.range-chip.chip-sell {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.range-chip.chip-buy {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.range-chip strong {
    font-weight: 800;
}

/* Trading Chart Container */
.trading-chart-card {
    background: #0f172a;
    border-radius: var(--radius-sm);
    padding: 10px 10px 8px 10px;
    position: relative;
    overflow: hidden;
}

.trading-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 4px;
}

.chart-title-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-title-tag i {
    color: #38bdf8;
}

.chart-live-badge {
    font-size: 0.58rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.trading-chart-container {
    width: 100%;
    height: 95px;
    position: relative;
}

.trading-sparkline-svg {
    width: 100%;
    height: 95px;
    display: block;
    overflow: visible;
}

.chart-point-target {
    cursor: pointer;
}

.chart-tooltip-bubble {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #334155;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 4px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    top: 0;
    left: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.trading-chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 0 6px;
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.trading-chart-footer span i {
    font-size: 0.6rem;
    margin-right: 3px;
}

.urdu-mode .report-title-wrap h3 {
    font-size: 0.96rem;
    line-height: 1.4;
}

.urdu-mode .report-stat-val {
    font-size: 0.92rem;
}

.urdu-mode .range-chip {
    font-size: 0.72rem;
}

.crop-hub-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    overflow: hidden;
    isolation: isolate;
}

.crop-hub-card.card-potato {
    border-color: #fde68a;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.crop-hub-card.card-onion {
    border-color: #fbcfe8;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.08);
}

.crop-hub-card:hover {
    border-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.crop-hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-radius: var(--radius-md);
    mix-blend-mode: multiply;
}

.crop-hub-card.card-potato::before {
    background-image: url('../img/bg_potato.jpg');
    opacity: 0.42;
}

.crop-hub-card.card-onion::before {
    background-image: url('../img/bg_onion.jpg');
    opacity: 0.38;
}

.crop-hub-card:hover::before {
    opacity: 0.52;
    transform: scale(1.05);
}

.crop-top,
.crop-body,
.crop-footer {
    position: relative;
    z-index: 1;
}

.crop-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.crop-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.live-count-chip {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.crop-body h3 {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.crop-body p {
    font-size: 0.74rem;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.crop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1.5px solid rgba(15, 23, 42, 0.12);
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 4. FEED HEADER & TRADING TABS */
.feed-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 8px;
}

.feed-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-title-left h2, .feed-title-left h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.live-pulse-indicator {
    width: 7px;
    height: 7px;
    background: #059669;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.btn-create-demand-mini {
    background: var(--dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background 0.15s;
}

.trading-filter-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 12px;
}

.trading-filter-scroll .filter-pill {
    flex: 1;
    min-height: 38px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border: 1px solid var(--border-main);
    background: #ffffff;
    color: var(--text-muted);
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.trading-filter-scroll .filter-pill.active {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.filter-pill {
    background: #fff;
    border: 1px solid var(--border-main);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    cursor: pointer;
}

.filter-pill.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

/* 5. INDRIVE DEAL CARDS (Clean Corporate Structure) */
.deal-cards-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.modern-deal-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-subtle);
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.contact-reveal-card,
#contactRevealSection {
    flex-shrink: 0 !important;
    min-height: fit-content !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.card-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.deal-badges-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.deal-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-seller {
    background: #0f172a;
    color: #fff;
}

/* Crop image thumbnail in card */
.deal-card-image-wrap {
    width: 100%;
    height: 155px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 8px 0;
    background: #f1f5f9;
    border: 1px solid var(--border-main);
}

.deal-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tag-buyer {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid var(--border-main);
}

.crop-pill {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    color: var(--dark);
}

.status-indicator-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-indicator-pill.live-pill {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator-pill.live-pill .dot-blink {
    width: 5px;
    height: 5px;
    background: #047857;
    border-radius: 50%;
}

.status-indicator-pill.paused-pill {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.deal-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.25;
}

.deal-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.info-cell {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.info-cell i {
    color: #64748b;
    font-size: 0.72rem;
}

.deal-desc-preview {
    font-size: 0.76rem;
    color: var(--text-muted);
    background: #f8fafc;
    border-left: 2px solid #0f172a;
    padding: 6px 10px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.card-bottom-row {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    overflow: visible;
}

.rate-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 2px;
}

.rate-figure {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.3px;
    line-height: 1.35;
    overflow: visible;
}

.rate-figure small {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
}

.btn-action-view {
    background: var(--dark);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}

.btn-action-view:hover {
    background: #1e293b;
}

.btn-action-view:active {
    transform: scale(0.97);
}

/* EMPTY STATE */
.empty-state-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-main);
    padding: 30px 16px;
    text-align: center;
}

.empty-icon {
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.empty-state-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.empty-state-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* SLIDE-OVER DRAWER */
.sidebar-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: absolute;
    top: 0;
    left: -280px;
    width: 270px;
    height: 100%;
    background: #ffffff;
    z-index: 1001;
    transition: left 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    background: var(--dark);
    color: #fff;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    background: #334155;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.user-meta h4 {
    font-size: 0.9rem;
    font-weight: 800;
}

.user-meta p {
    font-size: 0.72rem;
    color: #94a3b8;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
}

.drawer-nav {
    list-style: none;
}

.drawer-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: background 0.15s;
}

.drawer-nav li a i {
    color: #64748b;
    width: 20px;
}

.drawer-nav li a:hover, .drawer-nav li a:active {
    background: #f1f5f9;
}

.admin-link-item a {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    color: var(--dark) !important;
}

.drawer-logout-btn, .drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.drawer-logout-btn {
    background: #fee2e2;
    color: #dc2626;
}

.drawer-login-btn {
    background: var(--dark);
    color: #fff;
}

/* LIVE TOAST */
.live-toast-container {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.toast-alert {
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    border-left: 3px solid #34d399;
}

/* COMMON BUTTONS & FORMS */
.btn-primary {
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #1e293b;
}

.btn-primary:active {
    transform: scale(0.97);
}

.form-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-subtle);
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    background: #fff;
    transition: border-color 0.15s;
}

.form-control:focus {
    border-color: var(--dark);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.phone-input-wrap {
    display: flex;
    gap: 6px;
}

.country-code-select {
    width: 95px;
    height: 44px;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #f8fafc;
    cursor: pointer;
}

.password-input-wrap {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ==========================================================================
   VIP MOBILE MODAL DIALOG (Custom Touch-Optimized Alert & Confirm)
   ========================================================================== */
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.app-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 330px;
    border-radius: 18px;
    padding: 22px 20px 18px;
    text-align: center;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transform: scale(0.92) translateY(8px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-backdrop.active .app-modal-dialog {
    transform: scale(1) translateY(0);
}

.app-modal-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.app-modal-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.app-modal-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 18px;
}

.app-modal-actions {
    display: flex;
    gap: 8px;
}

.app-modal-btn {
    flex: 1;
    height: 42px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    outline: none;
}

.app-modal-btn:active {
    transform: scale(0.96);
}

.btn-modal-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
}

.btn-modal-confirm {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-modal-confirm:hover {
    background: #047857;
}

.btn-modal-dark {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn-modal-dark:hover {
    background: #1e293b;
}

.btn-modal-danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-modal-danger:hover {
    background: #b91c1c;
}

/* Views Pill & Meta */
.views-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f8fafc;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.btn-login-cta,
.btn-signup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: #ffffff;
    color: var(--dark);
    border: 1.5px solid var(--dark);
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
    transition: all 0.15s;
}

.btn-login-cta:hover,
.btn-signup-cta:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

/* VIP Post Three-Dots Menu Dropdown */
.post-options-dropdown {
    position: relative;
    display: inline-block;
}

.btn-three-dots {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-main);
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-three-dots:hover,
.btn-three-dots:focus {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: scale(1.05);
}

.btn-three-dots:active {
    transform: scale(0.94);
}

.post-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 175px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 6px;
    z-index: 100;
    display: none;
    animation: dropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.post-dropdown-menu.active {
    display: block;
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    background: none;
    border: none;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.dropdown-action-item:hover {
    background: #f8fafc;
}

.dropdown-action-item i {
    font-size: 0.92rem;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 6px;
}

.dropdown-action-item.action-danger {
    color: #dc2626;
}

.dropdown-action-item.action-danger:hover {
    background: #fee2e2;
}

