/* ============================================================
   ORDER-CREATE PAGE
   ============================================================ */
.order-create-page{ background: #f0f4f8; }

.oc-layout{
    display: grid; grid-template-columns: 1fr 320px; gap: 28px;
    padding: 24px 0 60px; align-items: start;
}

/* Header */
.oc-header{ margin-bottom: 24px; }
.oc-header__title{ font-size: 1.6rem; font-weight: 800; color: #1a1a2e; }
.oc-header__sub{ font-size: .9rem; color: #888; margin-top: 6px; }

/* Step indicator */
.oc-steps{
    display: flex; align-items: center;
    background: #fff; border-radius: 14px; padding: 18px 24px;
    margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); gap: 0;
}
.oc-step{
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 600; color: #aaa;
    flex-shrink: 0;
}
.oc-step--active{ color: #1a5276; }
.oc-step--done{ color: #27ae60; }
.oc-step__circle{
    width: 28px; height: 28px; border-radius: 50%;
    background: #dde3ea; color: #888;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 800; flex-shrink: 0;
}
.oc-step--active .oc-step__circle{ background: #1a5276; color: #fff; }
.oc-step--done .oc-step__circle{ background: #27ae60; color: #fff; }
.oc-step__line{
    flex: 1; height: 2px; background: #dde3ea; margin: 0 8px;
}
.oc-step__line--done{ background: #27ae60; }

/* Step sections */
.oc-section{
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 14px; overflow: hidden;
    border: 1.5px solid #e8edf2;
}
.oc-section--active{ border-color: #1a5276; }
.oc-section--locked{ opacity: .55; pointer-events: none; }
.oc-section__head{
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px;
}
.oc-section__num{
    width: 30px; height: 30px; border-radius: 50%;
    background: #dde3ea; color: #888; font-size: .82rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.oc-section__num--active{ background: #1a5276; color: #fff; }
.oc-section--done .oc-section__num{ background: #27ae60; color: #fff; }
.oc-section__title{ font-size: 1rem; font-weight: 700; color: #1a1a2e; flex: 1; }
.oc-section__done-val{ font-size: .88rem; color: #666; }
.oc-section__edit{ font-size: .8rem; color: #1a5276; font-weight: 600; background: none; cursor: pointer; padding: 0; }
.oc-section__edit:hover{ text-decoration: underline; }
.oc-section__body{ padding: 0 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.oc-section__body .form-group:first-child{ margin-top: 4px; }
.oc-section__footer{ display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.oc-section__footer--publish{ justify-content: space-between; align-items: center; }

/* Form hint */
.form-hint{ font-size: .75rem; color: #aaa; margin-top: 4px; }
.req{ color: #e74c3c; }
.oc-char-count{ margin-left: auto; }
.form-textarea--lg{ min-height: 130px; }

/* File drop */
.file-drop{
    border: 2px dashed #dde3ea; border-radius: 12px; padding: 28px 20px;
    text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop--has-files{ border-color: #1a5276; background: #f6f9fc; }
.file-drop__icon{ color: #aaa; margin-bottom: 10px; }
.file-drop__text{ font-size: .88rem; color: #555; }
.file-drop__text span{ color: #1a5276; font-weight: 600; }
.file-drop__hint{ font-size: .75rem; color: #aaa; margin-top: 4px; }
.file-preview{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-item{
    display: flex; align-items: center; gap: 6px;
    background: #eaf0f6; border-radius: 8px; padding: 6px 10px;
    font-size: .8rem; color: #1a5276; font-weight: 500;
}
.file-item button{ background:none; cursor:pointer; color:#1a5276; font-size:.9rem; padding:0 2px; }

/* Object type radio group */
.oc-radio-group{ display: flex; gap: 10px; flex-wrap: wrap; }
.oc-radio input[type=radio]{ display: none; }
.oc-radio__box{
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px 18px; border: 1.5px solid #dde3ea; border-radius: 12px;
    cursor: pointer; font-size: .82rem; font-weight: 600; color: #555;
    transition: all .2s; min-width: 90px; text-align: center;
}
.oc-radio__box:hover{ border-color: #1a5276; color: #1a5276; background: #f6f9fc; }
.oc-radio input:checked + .oc-radio__box{
    border-color: #1a5276; background: #eaf0f6; color: #1a5276;
}

/* Budget */
.oc-budget__row{ display: flex; align-items: center; gap: 10px; }
.oc-budget__input{
    flex: 1; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #888;
}
.oc-budget__input .form-input{ flex: 1; }
.oc-budget__sep{ color: #ccc; }
.oc-checklist{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }

/* Visibility cards */
.oc-visibility-group{ display: flex; gap: 12px; flex-wrap: wrap; }
.oc-visibility-card input[type=radio]{ display: none; }
.oc-visibility-card__body{
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; border: 1.5px solid #dde3ea; border-radius: 12px;
    cursor: pointer; transition: all .2s; min-width: 200px; font-size: .88rem; color: #555;
}
.oc-visibility-card__body strong{ display: block; color:#1a1a2e; font-size:.9rem; }
.oc-visibility-card__body span{ font-size:.78rem; color:#888; }
.oc-visibility-card input:checked + .oc-visibility-card__body{
    border-color: #1a5276; background: #eaf0f6; color: #1a5276;
}
.oc-visibility-card__body:hover{ border-color: #1a5276; background: #f6f9fc; }

/* Promo cards */
.oc-promo-group{ display: flex; gap: 12px; flex-wrap: wrap; }
.oc-promo-card input[type=radio]{ display: none; }
.oc-promo-card__body{
    padding: 18px 16px; border: 1.5px solid #dde3ea; border-radius: 12px;
    cursor: pointer; transition: all .2s; min-width: 140px; text-align: center;
}
.oc-promo-card__price{ font-size: 1.2rem; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.oc-promo-card__name{ font-size: .82rem; font-weight: 700; color: #555; margin-bottom: 10px; }
.oc-promo-card__features{ font-size: .75rem; color: #888; text-align: left; padding-left: 14px; }
.oc-promo-card__features li{ margin-bottom: 3px; }
.oc-promo-card input:checked + .oc-promo-card__body{
    border-color: #e8740c; background: #fef3e9;
}
.oc-promo-card__body:hover{ border-color: #e8740c; }
.oc-promo-card input:checked + .oc-promo-card__body .oc-promo-card__price{ color: #e8740c; }
.oc-publish-btn{ gap: 8px; }

/* Success */
.oc-success{
    display: flex; flex-direction: column; align-items: center;
    background: #fff; border-radius: 16px; padding: 48px 32px; text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.oc-success__icon{ margin-bottom: 16px; }
.oc-success__title{ font-size: 1.5rem; font-weight: 800; color: #1a1a2e; margin-bottom: 10px; }
.oc-success__sub{ font-size: .9rem; color: #666; margin-bottom: 28px; }
.oc-success__actions{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Sidebar tips */
.oc-sidebar{ display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; }
.oc-tip-card{
    background: #fff; border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.oc-tip-card--blue{ background: linear-gradient(135deg, #1a5276, #154360); color: #fff; }
.oc-tip-card--blue .oc-tip-card__title{ color: #fff; }
.oc-tip-card--warn{
    background: #fff8f0; border: 1.5px solid #fde8d8;
    display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: #b7600c;
}
.oc-tip-card__title{
    font-size: .88rem; font-weight: 700; color: #1a1a2e;
    margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.oc-tip-list{ padding-left: 18px; font-size: .83rem; color: #555; display: flex; flex-direction: column; gap: 5px; }
.oc-tip-list li::marker{ color: #1a5276; }

.oc-stat-mini{
    display: flex; justify-content: space-around; text-align: center;
}
.oc-stat-mini strong{ display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.oc-stat-mini span{ font-size: .72rem; color: rgba(255,255,255,.7); }

.oc-steps-mini{ display: flex; flex-direction: column; gap: 10px; }
.oc-steps-mini__item{
    display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: #444;
}
.oc-steps-mini__num{
    width: 20px; height: 20px; border-radius: 50%; background: #1a5276; color: #fff;
    font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ============================================================
   ORDER DETAIL PAGE
   ============================================================ */
.order-page{ background: #f0f4f8; }

.order-layout{
    display: grid; grid-template-columns: 1fr 300px;
    gap: 28px; padding: 20px 0 60px; align-items: start;
}

/* Order header card */
.order-header-card{
    background: #fff; border-radius: 16px; padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 16px;
}
.order-header-card__top{
    display: flex; justify-content: space-between; gap: 20px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.order-header-card__meta-row{
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.order-num{ font-size: .8rem; font-weight: 700; color: #888; }
.order-date{ font-size: .78rem; color: #aaa; }
.order-title{ font-size: 1.35rem; font-weight: 800; color: #1a1a2e; margin-bottom: 12px; }
.order-meta-pills{ display: flex; flex-wrap: wrap; gap: 8px; }
.order-header-card__actions{ display: flex; gap: 8px; flex-shrink: 0; align-self: flex-start; }
.order-budget-row{
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid #f0f4f8; flex-wrap: wrap; gap: 12px;
    font-size: .88rem; color: #666;
}
.order-budget-block strong, .order-deadline-block strong{ color: #1a1a2e; font-weight: 700; margin-left: 6px; }
.order-timeleft{
    background: #eafaf1; color: #27ae60; font-weight: 600;
    font-size: .75rem; padding: 3px 10px; border-radius: 20px; margin-left: 8px;
}

/* Order sections */
.order-section{
    background: #fff; border-radius: 16px; padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 16px;
}
.order-section__head{
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.order-section__title{
    font-size: 1.1rem; font-weight: 800; color: #1a1a2e;
    display: flex; align-items: center; gap: 10px;
}
.order-resp-count{
    font-size: .82rem; background: #eaf0f6; color: #1a5276;
    padding: 2px 9px; border-radius: 20px; font-weight: 700;
}
.order-desc{ font-size: .9rem; color: #444; line-height: 1.7; margin-bottom: 14px; }
.order-requirements{ display: flex; flex-wrap: wrap; gap: 8px; }
.order-req-tag{
    display: inline-flex; align-items: center; gap: 5px;
    background: #f0f4f8; color: #666; font-size: .8rem; font-weight: 500;
    padding: 5px 12px; border-radius: 20px;
}
.order-req-tag--ok{ background: #eafaf1; color: #27ae60; }

/* Photos */
.order-photos{ display: flex; gap: 10px; flex-wrap: wrap; }
.order-photo{
    width: 130px; height: 100px; border-radius: 10px;
    background: #f0f4f8 center/cover; border: 1px solid #eee; cursor: pointer;
    transition: opacity .2s;
}
.order-photo:hover{ opacity: .85; }
.order-photo--add{
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px dashed #dde3ea; background: none; color: #aaa; font-size: .75rem; gap: 4px;
}
.order-photo--add:hover{ border-color: #1a5276; color: #1a5276; }

/* Response tabs */
.order-resp-tabs{ display: flex; gap: 2px; background: #f0f4f8; border-radius: 10px; padding: 4px; }
.order-resp-tab{
    padding: 7px 14px; border-radius: 8px; border: none; background: none;
    font-size: .82rem; font-weight: 600; color: #777; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.order-resp-tab--active{ background: #fff; color: #1a5276; box-shadow: 0 1px 6px rgba(0,0,0,.07); }

/* Response cards */
.resp-list{ display: flex; flex-direction: column; gap: 12px; }
.resp-card{
    display: flex; gap: 14px; padding: 18px;
    border: 1.5px solid #e8edf2; border-radius: 14px; position: relative;
    transition: border-color .2s, box-shadow .2s;
}
.resp-card:hover{ border-color: #1a5276; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.resp-card--new{ border-color: #1a5276; background: #f9fbfd; }
.resp-card--viewed{ opacity: .85; }
.resp-card__new-badge{
    position: absolute; top: -1px; left: 14px;
    font-size: .68rem; font-weight: 800; background: #1a5276; color: #fff;
    padding: 2px 8px; border-radius: 0 0 6px 6px;
}
.resp-card__avatar{
    width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
    border: 2px solid #eee; flex-shrink: 0;
}
.resp-card__avatar img{ width: 100%; height: 100%; object-fit: cover; }
.resp-card__avatar--text{
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: .9rem;
}
.resp-card__body{ flex: 1; }
.resp-card__head-row{
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px;
}
.resp-card__name-row{ display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 2px; }
.resp-card__name{ font-size: .95rem; font-weight: 800; color: #1a1a2e; }
.resp-card__name:hover{ color: #1a5276; }
.resp-card__rating{ display: flex; align-items: center; gap: 6px; }
.resp-card__bid{ text-align: right; flex-shrink: 0; }
.resp-card__bid-val{ font-size: 1.15rem; font-weight: 800; color: #1a5276; }
.resp-card__bid-label{ font-size: .72rem; color: #aaa; }
.resp-card__text{ font-size: .85rem; color: #444; line-height: 1.6; margin-bottom: 12px; }
.resp-card__footer{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.resp-card__time{ font-size: .75rem; color: #aaa; }
.resp-card__actions{ display: flex; gap: 8px; flex-wrap: wrap; }
.order-load-more{ margin-top: 16px; width: 100%; }

/* Sidebar */
.order-sidebar{ display: flex; flex-direction: column; gap: 16px; position: sticky; top: 82px; }
.order-stat-card{
    background: #fff; border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.order-stat-card__title{ font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: #1a1a2e; }
.order-stat-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-stat-item{
    background: #f0f4f8; border-radius: 10px; padding: 14px 12px; text-align: center;
}
.order-stat-item strong{ display: block; font-size: 1.5rem; font-weight: 800; color: #1a1a2e; }
.order-stat-item span{ font-size: .74rem; color: #888; }
.order-stat-item--orange{ background: #fef3e9; }
.order-stat-item--orange strong{ color: #e8740c; }
.order-stat-item--green{ background: #eafaf1; }
.order-stat-item--green strong{ color: #27ae60; }

.order-customer-card{
    background: #fff; border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.order-customer-card__title{ font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: #1a1a2e; }
.order-customer-card__body{ display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.order-customer-card__name{ font-size: .92rem; font-weight: 700; color: #1a1a2e; }
.order-customer-card__stats{ display: flex; align-items: center; gap: 6px; }
.order-customer-card__history{
    display: flex; justify-content: space-between; align-items: center;
    font-size: .82rem; color: #888; border-top: 1px solid #f0f4f8; padding-top: 10px;
}
.order-customer-card__history strong{ color: #1a1a2e; font-weight: 700; }

.order-actions-card{
    background: #fff; border-radius: 14px; padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    display: flex; flex-direction: column; gap: 10px;
}
.order-similar{
    background: #fff; border-radius: 14px; padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.order-similar__title{ font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: #1a1a2e; }
.order-similar-item{
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid #f0f4f8; font-size: .84rem; color: #1a1a2e;
}
.order-similar-item:last-child{ border: none; }
.order-similar-item__avatar{
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    color: #fff; font-weight: 800; font-size: .75rem;
    display: flex; align-items: center; justify-content: center;
}
.order-similar-item__name{ font-weight: 600; }
.order-similar-item__meta{ font-size: .75rem; color: #aaa; }

/* Responsive */
@media(max-width: 900px){
    .oc-layout{ grid-template-columns: 1fr; }
    .oc-sidebar{ position: static; }
    .order-layout{ grid-template-columns: 1fr; }
    .order-sidebar{ position: static; }
}
@media(max-width: 600px){
    .oc-steps{ padding: 12px 16px; }
    .oc-step span{ display: none; }
    .oc-visibility-group{ flex-direction: column; }
    .oc-promo-group{ flex-direction: column; }
    .oc-checklist{ grid-template-columns: 1fr; }
    .resp-card{ flex-direction: column; }
    .resp-card__head-row{ flex-direction: column; }
    .resp-card__bid{ text-align: left; }
    .order-resp-tabs{ flex-wrap: wrap; }
}
