﻿/* =========================================
   REQUEST DETAIL – CHI TIẾT YÊU CẦU
   Kế thừa dark theme, 3D card từ layout.css
========================================= */

.page-request-detail {
    background: var(--bg-body, #18191a);
    color: var(--text-main, #e5e7eb);
}

/* ===== HIỆU ỨNG VÀO / RA TRANG ===== */

@keyframes requestSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.request-header-entrance {
    animation: requestSlideUp 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Khi rời trang */
@keyframes slideOutToBottom {
    0% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100px) rotateX(10deg);
        opacity: 0;
    }
}

.page-exit-request {
    animation: slideOutToBottom 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Độ trễ cho từng section */
.section-delay-1 {
    animation-delay: 0.05s;
}

.section-delay-2 {
    animation-delay: 0.12s;
}

.section-delay-3 {
    animation-delay: 0.2s;
}

/* ===== HÌNH NỀN FLOATING ===== */

.request-detail-page {
    position: relative;
    overflow: hidden;
}

.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.22), transparent 60%),
        radial-gradient(circle at 60% 90%, rgba(56, 189, 248, 0.18), transparent 60%);
    opacity: 0.8;
    z-index: -1;
}

/* ===== BREADCRUMB & HEADER ===== */

.request-header {
    padding: 18px 0 10px;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.breadcrumb-back {
    align-self: flex-start;
    border-radius: 999px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-soft, #9ca3af);
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast, 0.18s ease);
}

.breadcrumb-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.9);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-soft, #9ca3af);
}

.breadcrumb a {
    color: var(--text-soft, #9ca3af);
    text-decoration: none;
}

.breadcrumb li::after {
    content: "›";
    margin: 0 4px;
    opacity: 0.5;
}

.breadcrumb li:last-child::after {
    content: "";
}

/* Header top */

.request-header-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.request-status-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-soft, #9ca3af);
}

.request-status-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid transparent;
}

.status-open {
    background: rgba(22, 163, 74, 0.2);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.8);
}

.request-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-soft, #9ca3af);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast, 0.18s ease);
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
}

/* Progress bar */

.request-progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.3fr) minmax(0, 1.4fr);
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}

.progress-bar-outer {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transition: width 0.3s ease;
}

.progress-status {
    text-align: right;
    color: var(--text-soft, #9ca3af);
}

.progress-percent {
    font-weight: 600;
    color: #22c55e;
}

/* ===== HERO SECTION ===== */

.request-hero {
    padding: 8px 0 18px;
}

.request-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.25fr);
    gap: 18px;
    align-items: flex-start;
}

/* Title gradient */

.request-title-gradient {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(120deg, #f9fafb, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
}

/* Client */

.request-client {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.client-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px #242526, 0 0 0 3px rgba(37, 99, 235, 0.8);
}

.client-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-name {
    font-weight: 600;
}

.client-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.25);
    color: #bfdbfe;
}

.client-meta {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-soft, #9ca3af);
}

/* Summary */

.request-summary {
    font-size: 0.92rem;
    color: var(--text-soft, #9ca3af);
    margin-bottom: 8px;
}

/* Tags */

.request-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tag-pill {
    border-radius: 999px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.9);
    padding: 3px 9px;
    font-size: 0.8rem;
    color: var(--text-soft, #9ca3af);
    cursor: pointer;
    transition: 0.18s ease;
}

.tag-pill:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
    background: rgba(37, 99, 235, 0.35);
    color: #e0f2fe;
}

/* OS */

.request-os {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}

.os-label {
    color: var(--text-soft, #9ca3af);
}

.os-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.os-pill {
    border-radius: 999px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.95);
    padding: 2px 8px;
    font-size: 0.8rem;
    cursor: default;
    position: relative;
}

.os-pill.is-disabled {
    opacity: 0.6;
}

/* HERO SIDE */

.request-hero-side {
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 0.95);
    font-size: 0.88rem;
}

.budget-block {
    margin-bottom: 8px;
}

.budget-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
}

.budget-range {
    color: #22c55e;
    font-weight: 600;
}

.budget-note {
    font-size: 0.78rem;
    color: var(--text-soft, #9ca3af);
}

/* Deadline */

.deadline-block {
    margin-bottom: 10px;
}

.deadline-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
}

.deadline-date {
    color: var(--text-soft, #9ca3af);
}

.deadline-countdown {
    font-size: 0.84rem;
    margin-top: 4px;
}

.deadline-progress-outer {
    height: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
    margin-top: 4px;
}

.deadline-progress-inner {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f97316, #ef4444);
    width: 40%;
    transition: width 0.3s ease;
}

/* Hero stats */

.request-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    margin-top: 6px;
}

.stat-item {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-md, 10px);
    padding: 6px 8px;
    font-size: 0.8rem;
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-soft, #9ca3af);
    margin-bottom: 2px;
}

.stat-value {
    font-weight: 600;
}

/* Hero actions */

.hero-side-actions,
.hero-extra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* ===== TABS SECTION ===== */

.request-tabs-section {
    padding: 10px 0 20px;
}

.request-tabs-nav {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.95);
    margin-bottom: 10px;
}

.request-tab-btn {
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-soft, #9ca3af);
    font-size: 0.82rem;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.18s ease;
}

.request-tab-btn.is-active {
    background: rgba(37, 99, 235, 0.3);
    color: #e0f2fe;
}

/* Panels */

.request-tabs-panels {
    border-radius: var(--radius-lg, 18px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 0.95);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    padding: 12px 14px;
    font-size: 0.9rem;
}

.request-tab-panel {
    display: none;
    animation: fadeTab 0.35s ease;
}

.request-tab-panel.is-active {
    display: block;
}

@keyframes fadeTab {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Functional checklist */

.functional-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.86rem;
}

.functional-checklist input {
    margin-right: 4px;
}

.request-description-code {
    margin-top: 10px;
}

.code-block {
    display: block;
    background: #242526;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: var(--radius-md, 10px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.78rem;
    overflow-x: auto;
    position: relative;
}

/* Tech table */

.tech-table-wrapper {
    margin-top: 8px;
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.tech-table th,
.tech-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.tech-table th {
    text-align: left;
    font-weight: 600;
}

/* Attachments */

.attachments h3 {
    margin-top: 10px;
    margin-bottom: 4px;
}

.attachment-btn {
    margin-top: 3px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.95);
    padding: 6px 8px;
    font-size: 0.86rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Gallery / docs */

.docs-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 10px;
}

.docs-item {
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.docs-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: 0.25s ease;
}

.docs-item::after {
    content: "Xem";
    position: absolute;
    inset: auto 6px 6px auto;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
}

.docs-item:hover img {
    transform: scale(1.07);
}

/* Video */

.docs-video {
    margin-top: 8px;
}

.video-placeholder {
    margin-top: 4px;
    padding: 10px;
    border-radius: var(--radius-md, 10px);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.9));
}

/* Gantt mini */

.gantt-mini {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gantt-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    font-size: 0.84rem;
}

.gantt-label {
    color: var(--text-soft, #9ca3af);
}

.gantt-bar {
    --gantt-start: 0;
    --gantt-width: 30%;
    position: relative;
    height: 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.gantt-bar::before {
    content: "";
    position: absolute;
    left: var(--gantt-start);
    width: var(--gantt-width);
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* ===== BIDDING ===== */

.request-bids-section {
    padding: 8px 0 20px;
}

.bid-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.bid-counter {
    color: var(--text-soft, #9ca3af);
}

.bid-average {
    color: #22c55e;
    font-weight: 600;
}

.bid-sort select {
    font-size: 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: #242526;
    color: var(--text-main, #e5e7eb);
    padding: 4px 8px;
}

/* Stats */

.bid-stats {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.bid-stat-bar {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 24px;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
}

.bid-stat-label {
    color: var(--text-soft, #9ca3af);
}

.bid-stat-line {
    height: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.bid-stat-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #a3e635);
}

/* Bid cards */

.bid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.bid-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 10px;
    font-size: 0.86rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bid-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.98);
}

.bid-dev {
    display: flex;
    gap: 8px;
}

.bid-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
}

.bid-dev-name-row {
    display: flex;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    margin-bottom: 4px;

    /* CHO PHÉP XUỐNG DÒNG, KHÔNG ĐÈ LÊN NHAU */
    flex-wrap: wrap;
}

.bid-dev-name {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    min-width: 0;
}

.bid-dev-badge {
    position: static !important;
    /* Ngăn mọi absolute/margin lạ từ file khác */
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
    /* Badge luôn trên một dòng */
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.55);
    color: #7dd3fc;
}

.bid-dev-meta {
    font-size: 0.78rem;
    color: var(--text-soft, #9ca3af);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Bid main */

.bid-price {
    margin-bottom: 4px;
}

.bid-price-label,
.bid-timeline-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-soft, #9ca3af);
}

.bid-price-value {
    font-weight: 600;
    color: #22c55e;
}

.bid-price-note {
    font-size: 0.78rem;
    color: var(--text-soft, #9ca3af);
}

.bid-timeline-value {
    font-weight: 500;
}

.bid-preview {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-soft, #9ca3af);
}

/* Bid actions */

.bid-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

/* Bid form */

.bid-form {
    margin-top: 10px;
    font-size: 0.86rem;
}

.bid-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.bid-form-group label {
    font-size: 0.8rem;
    display: block;
    margin-bottom: 2px;
}

.bid-form-footer {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-soft, #9ca3af);
}

/* ===== TIMELINE ===== */

.request-timeline-section {
    padding: 8px 0 20px;
}

.timeline {
    border-left: 2px solid rgba(55, 65, 81, 0.95);
    margin-top: 10px;
    padding-left: 16px;
}

.timeline-item {
    position: relative;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(14px);
    transition: 0.4s ease;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: -19px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
    box-shadow: 0 0 0 3px #242526;
}

.timeline-dot-main {
    background: #60a5fa;
}

.timeline-dot-highlight {
    background: #22c55e;
}

.timeline-content h3 {
    font-size: 0.96rem;
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 0.84rem;
    color: var(--text-soft, #9ca3af);
}

.timeline-time {
    font-size: 0.78rem;
    color: var(--text-soft, #9ca3af);
}

/* ===== COMMENTS ===== */

.request-comments-section {
    padding: 8px 0 20px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

/* Typing indicator */

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    color: var(--text-soft, #9ca3af);
    opacity: 0;
    transform: translateY(4px);
    transition: 0.2s ease;
}

.typing-indicator.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.typing-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.8);
    animation: typingDot 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingDot {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-2px);
        opacity: 1;
    }
}

/* Comments list */

.comments-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-item {
    display: flex;
    gap: 8px;
    font-size: 0.86rem;
}

.comment-item.comment-op .comment-author {
    color: #60a5fa;
}

.comment-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
}

.comment-body {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-md, 10px);
    padding: 6px 8px;
    border: 1px solid rgba(31, 41, 55, 0.95);
}

.comment-header-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.comment-meta {
    color: var(--text-soft, #9ca3af);
}

/* Comment form */

.comment-form {
    margin-top: 8px;
}

.comment-form-footer {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.comment-form-tools {
    display: flex;
    gap: 4px;
}

/* ===== RELATED CAROUSEL ===== */

.request-related-section {
    padding: 8px 0 20px;
}

.related-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.related-card {
    scroll-snap-align: start;
    min-width: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: perspective(600px) rotateY(-4deg) translateY(-3px);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.98);
}

.related-meta {
    margin-top: 4px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.similarity {
    color: #38bdf8;
}

/* ===== DEV SUGGEST ===== */

.request-dev-suggest-section {
    padding: 8px 0 70px;
}

.dev-suggest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.dev-header {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.dev-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
}

.dev-name-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    font-size: 0.86rem;
}

.dev-score {
    font-size: 0.78rem;
    color: #22c55e;
}

.dev-meta {
    font-size: 0.78rem;
    color: var(--text-soft, #9ca3af);
}

.dev-skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.dev-skills-cloud span {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.9);
}

/* ===== ACTION FOOTER ===== */

.request-action-footer {
    position: sticky;
    bottom: 0;
    z-index: 40;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.85));
    border-top: 1px solid rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(16px);
}

.action-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.86rem;
}

.action-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-soft, #9ca3af);
}

.action-footer-title span {
    font-weight: 600;
}

.action-footer-right {
    display: flex;
    gap: 6px;
}

/* ===== MODAL LIGHTBOX ===== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ===== MODAL SHARE ===== */

.share-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 55;
    background: rgba(15, 23, 42, 0.8);
}

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

.share-backdrop {
    position: absolute;
    inset: 0;
}

.share-dialog {
    position: relative;
    max-width: 400px;
    width: 92%;
    z-index: 1;
    font-size: 0.86rem;
}

.share-link-row {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.share-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ===== SKELETON BLOCK (loading state) ===== */

@keyframes shimmerRd {
    0%   { background-position: 300% 0; }
    100% { background-position: -300% 0; }
}

.skeleton-block {
    display: block;
    border-radius: var(--radius-sm, 6px);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.04) 0%,
        rgba(255,255,255,.09) 50%,
        rgba(255,255,255,.04) 100%
    );
    background-size: 300% 100%;
    animation: shimmerRd 1.4s infinite ease-in-out;
}

/* ===== ROLE-BASED UI NOTICES ===== */

.bid-empty-state {
    grid-column: 1 / -1;
    padding: 36px 24px;
    text-align: center;
    border: 1px dashed rgba(51,65,85,.8);
    border-radius: var(--radius-lg, 18px);
    color: var(--text-soft, #9ca3af);
    font-size: .9rem;
}

.bid-closed-notice,
.bid-login-prompt,
.bid-already-sent {
    margin-top: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-lg, 18px);
    border: 1px solid rgba(51,65,85,.8);
    background: rgba(15,23,42,.95);
    font-size: .88rem;
    color: var(--text-soft, #9ca3af);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.bid-already-sent { border-color: rgba(34,197,94,.3); }
.bid-already-sent p { color: #86efac; }

.bid-login-prompt { border-color: rgba(99,102,241,.3); }

/* ===== STATUS BADGE EXTRA STATES ===== */

.status-in-progress {
    background: rgba(251,191,36,.18);
    color: #fde68a;
    border-color: rgba(251,191,36,.6);
}

.status-closed,
.status-cancelled {
    background: rgba(239,68,68,.14);
    color: #fca5a5;
    border-color: rgba(239,68,68,.5);
}

.status-pending {
    background: rgba(148,163,184,.14);
    color: #cbd5e1;
    border-color: rgba(148,163,184,.4);
}

/* ===== CHOSEN BID CARD ===== */

.bid-card-chosen {
    border-color: rgba(74,222,128,.45) !important;
    background: rgba(74,222,128,.06) !important;
}

.bid-chosen-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(74,222,128,.18);
    color: #4ade80;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid rgba(74,222,128,.4);
}

/* ===== PAGE ERROR STATE ===== */

.page-error-state {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-error-msg {
    font-size: .95rem;
    color: var(--text-soft, #9ca3af);
}

/* ===== TEXT MUTED HELPER ===== */

.text-muted {
    color: var(--text-soft, #9ca3af);
    font-size: .88rem;
}

/* ===== ANIMATE ON SCROLL ===== */

[data-animate-on-scroll] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

[data-animate-on-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== THEME LIGHT (TÙY CHỌN) ===== */

body[data-theme="light"] {
    --bg-body: #f9fafb;
    --bg-elevated: #ffffff;
    --text-main: #0f172a;
    --text-soft: #4b5563;
}

body[data-theme="light"] .request-detail-page {
    background: #f9fafb;
}

body[data-theme="light"] .floating-shapes {
    opacity: 0.35;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .request-hero-inner {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    }

    .bid-card {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr);
    }

    .bid-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .request-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .request-progress-row {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.4fr);
        grid-auto-rows: auto;
    }

    .progress-status {
        grid-column: 1 / -1;
        text-align: left;
    }

    .request-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .request-hero-side {
        order: -1;
    }

    .bid-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .bid-card {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.4fr);
    }

    .request-action-footer {
        padding-bottom: 4px;
    }

    .action-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .request-progress-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .request-hero-side {
        padding: 10px;
    }

    .request-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bid-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .request-tabs-panels {
        padding: 10px;
    }

    .gantt-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .request-action-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    /* Đẩy nội dung lên trên footer cố định */
    .request-page-inner {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .request-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 0;
    }

    .action-footer-right {
        display: flex;
        gap: 8px;
    }

    .action-footer-right .btn-primary,
    .action-footer-right .btn-secondary {
        flex: 1;
        justify-content: center;
    }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {

    .request-header-entrance,
    .page-exit-request,
    [data-animate-on-scroll],
    .timeline-item,
    .typing-dot {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}