
.deals-shell {
    background: #f8fafc;
    min-height: 100vh;
    padding: 30px 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.deals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.deals-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
    color: #ffffff;
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.4);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.deals-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}
.deals-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.deals-hero h1 {
    margin: 0 0 10px 0;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.deals-hero p {
    max-width: 750px;
    margin: 0 0 24px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}
.hero-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-post-request {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-post-request:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(37, 99, 235, 0.6);
    color: #fff;
}
.hero-stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-stat-pill strong {
    color: #38bdf8;
    font-size: 1.05rem;
}

/* Flash Messages */
.deal-flash {
    display: none;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}
.deal-flash.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.deal-flash.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Floor Section Header */
.floor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.floor-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.floor-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.filter-pill.active, .filter-pill:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Reverse Deal Cards Grid */
.reverse-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}
.reverse-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reverse-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
}
.reverse-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.badge-category {
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.badge-status-live {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-status-awarded {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.reverse-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 8px 0;
}
.reverse-card-buyer {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.reverse-card-buyer strong {
    color: #334155;
}
.reverse-card-specs {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 16px;
}
.reverse-card-specs strong {
    color: #0f172a;
}

/* Price & Bidding Status Box */
.bidding-box {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}
.bidding-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.target-price {
    font-size: 0.85rem;
    color: #64748b;
}
.target-price del {
    font-weight: 700;
    color: #94a3b8;
}
.lowest-bid-wrapper {
    background: #ffffff;
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lowest-bid-label {
    font-size: 0.78rem;
    color: #059669;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lowest-bid-amount {
    font-size: 1.45rem;
    font-weight: 900;
    color: #047857;
}
.lowest-bidder-info {
    font-size: 0.82rem;
    color: #475569;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lowest-bidder-info strong {
    color: #0f172a;
}
.timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ef4444;
}

/* Competing Bids Timeline / Stream */
.bids-history-toggle {
    font-size: 0.82rem;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bids-history-toggle:hover {
    text-decoration: underline;
}
.bids-history-list {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 14px;
    max-height: 140px;
    overflow-y: auto;
}
.bid-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.8rem;
}
.bid-history-item:last-child {
    border-bottom: none;
}
.bid-history-vendor {
    font-weight: 600;
    color: #334155;
}
.bid-history-amount {
    font-weight: 700;
    color: #047857;
}

/* Action Forms */
.bid-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.bid-input-group {
    display: flex;
    gap: 8px;
}
.bid-input-group input[type="number"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s;
}
.bid-input-group input[type="number"]:focus {
    border-color: #2563eb;
}
.btn-bid-lower {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-bid-lower:hover {
    background: #047857;
    transform: translateY(-1px);
}
.btn-award-deal {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
    margin-top: 4px;
}
.btn-award-deal:hover {
    background: #1e293b;
}

/* Post Request Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    padding: 28px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.modal-title {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}
.modal-subtitle {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: #64748b;
}
.form-field {
    margin-bottom: 16px;
}
.form-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: #2563eb;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.btn-submit-request {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transition: background 0.15s;
}
.btn-submit-request:hover {
    background: #1d4ed8;
}

@media (max-width: 640px) {
    .deals-hero { padding: 24px 20px; }
    .deals-hero h1 { font-size: 1.6rem; }
    .hero-action-bar { flex-direction: column; align-items: stretch; }
    .btn-post-request { justify-content: center; }
    .reverse-deals-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
}
