/*
 * OyunAdası Güvenli Ticaret v0.1.0
 */

body.oa-secure-trade-active .page-title,
body.oa-secure-trade-active .wd-page-title,
body.oa-secure-trade-active .woodmart-title-container,
body.oa-secure-trade-active .breadcrumbs{
    display:none!important;
}

.oa-trade-center,
.oa-trade-center *,
.oa-trade-gate,
.oa-trade-gate *{
    box-sizing:border-box;
    font-family:'Poppins',sans-serif!important;
}

.oa-trade-center{
    width:100%;
    color:#f7f9fc;
}

body:not(.oa-account-panel-active) .oa-trade-center{
    width:calc(100% - 40px);
    max-width:var(--wd-container-w,1480px);
    margin:0 auto 60px;
}

.oa-trade-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-bottom:18px;
    padding:25px 27px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:
        radial-gradient(circle at 86% 18%,rgba(76,99,255,.22),transparent 32%),
        linear-gradient(135deg,#111a27,#0a1018);
    box-shadow:0 18px 42px rgba(0,0,0,.15);
}

.oa-trade-hero>div>span{
    display:block;
    margin-bottom:7px;
    color:#677eff;
    font-size:12px;
    font-weight:800;
    letter-spacing:.13em;
}

.oa-trade-hero h1{
    margin:0 0 7px;
    color:#fff;
    font-size:29px;
    line-height:1.25;
    font-weight:700;
    letter-spacing:-.02em;
}

.oa-trade-hero p{
    max-width:760px;
    margin:0;
    color:#94a0b3;
    font-size:14px;
    line-height:1.7;
}

.oa-trade-back{
    display:inline-flex;
    margin-bottom:13px;
    color:#9aa6b8!important;
    font-size:13px;
    font-weight:600;
    text-decoration:none!important;
}

.oa-trade-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:29px;
    padding:0 10px;
    border-radius:9px;
    color:#d8deff;
    background:rgba(72,91,210,.16);
    font-size:11px;
    line-height:1;
    font-weight:800;
    white-space:nowrap;
}

.oa-trade-status.is-awaiting_delivery,
.oa-trade-status.is-reserved{
    color:#f2ca72;
    background:rgba(155,101,15,.16);
}

.oa-trade-status.is-delivered{
    color:#86b8ff;
    background:rgba(42,92,169,.18);
}

.oa-trade-status.is-completed{
    color:#69e5aa;
    background:rgba(15,145,85,.16);
}

.oa-trade-status.is-disputed,
.oa-trade-status.is-seller_overdue,
.oa-trade-status.is-refund_approved{
    color:#ffad7a;
    background:rgba(154,68,19,.17);
}

.oa-trade-status.is-refunded,
.oa-trade-status.is-cancelled{
    color:#adb6c5;
    background:#1a222e;
}

/* İşlem listesi */
.oa-trade-list{
    display:grid;
    gap:12px;
}

.oa-trade-list-card{
    display:grid;
    grid-template-columns:92px minmax(260px,1fr) 155px auto;
    gap:15px;
    align-items:center;
    min-height:105px;
    padding:13px 15px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:15px;
    background:#101720;
    box-shadow:0 13px 32px rgba(0,0,0,.12);
    transition:border-color .18s ease,transform .18s ease;
}

.oa-trade-list-card:hover{
    border-color:rgba(83,107,255,.30);
    transform:translateY(-1px);
}

.oa-trade-list-card__image{
    overflow:hidden;
    width:92px;
    height:72px;
    border-radius:10px;
    background:#070c13;
}

.oa-trade-list-card__image img{
    display:block;
    width:100%;
    height:100%;
    margin:0;
    object-fit:cover;
}

.oa-trade-list-card__main{
    min-width:0;
}

.oa-trade-list-card__meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:7px;
}

.oa-trade-list-card__meta small{
    color:#8793a6;
    font-size:12px;
}

.oa-trade-list-card h2{
    overflow:hidden;
    margin:0 0 5px;
    color:#fff;
    font-size:14px;
    line-height:1.4;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.oa-trade-list-card p{
    margin:0;
    color:#8995a8;
    font-size:12px;
}

.oa-trade-list-card__amount{
    text-align:right;
}

.oa-trade-list-card__amount strong,
.oa-trade-list-card__amount small{
    display:block;
}

.oa-trade-list-card__amount strong{
    color:#eef2f7;
    font-size:19px;
    line-height:1.3;
    font-weight:800;
}

.oa-trade-list-card__amount small{
    margin-top:5px;
    color:#8793a6;
    font-size:11px;
}

.oa-trade-list-card>a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:39px;
    padding:0 13px;
    border-radius:9px;
    color:#fff!important;
    background:linear-gradient(135deg,#5268ef,#4055d5);
    font-size:12px;
    font-weight:700;
    text-decoration:none!important;
}

/* Detay düzeni */
.oa-trade-detail-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 315px;
    gap:18px;
}

.oa-trade-detail-main{
    display:grid;
    align-content:start;
    gap:15px;
}

.oa-trade-sidebar{
    display:grid;
    align-content:start;
    gap:15px;
}

.oa-trade-card,
.oa-trade-timeline,
.oa-trade-security{
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    background:#101720;
    box-shadow:0 15px 36px rgba(0,0,0,.12);
}

.oa-trade-card{
    padding:20px;
}

.oa-trade-card--warning{
    border-color:rgba(255,153,70,.18);
}

.oa-trade-card__title{
    margin-bottom:17px;
    padding-bottom:15px;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.oa-trade-card__title h2{
    margin:0 0 5px;
    color:#fff;
    font-size:16px;
    line-height:1.35;
    font-weight:600;
}

.oa-trade-card__title p{
    margin:0;
    color:#8793a6;
    font-size:12px;
    line-height:1.65;
}

.oa-trade-timeline{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    overflow:hidden;
}

.oa-trade-timeline>div{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    min-height:68px;
    padding:12px;
    color:#687487;
    background:#0d141e;
}

.oa-trade-timeline>div:not(:last-child):after{
    content:"";
    position:absolute;
    top:50%;
    right:-1px;
    width:2px;
    height:28px;
    background:rgba(255,255,255,.06);
    transform:translateY(-50%);
}

.oa-trade-timeline span{
    display:grid;
    place-items:center;
    width:24px;
    min-width:24px;
    height:24px;
    border-radius:50%;
    color:#707d91;
    background:#1a2330;
    font-size:11px;
    font-weight:800;
}

.oa-trade-timeline strong{
    font-size:12px;
    line-height:1.35;
    font-weight:600;
}

.oa-trade-timeline .is-active,
.oa-trade-timeline .is-completed{
    color:#fff;
}

.oa-trade-timeline .is-active span{
    color:#fff;
    background:#536bff;
    box-shadow:0 0 0 4px rgba(83,107,255,.12);
}

.oa-trade-timeline .is-completed span{
    color:#06150e;
    background:#29dc8f;
}

.oa-trade-timeline .is-warning span{
    color:#271204;
    background:#f5a252;
}

/* Formlar */
.oa-trade-form,
.oa-trade-approve-form{
    display:grid;
    gap:14px;
}

.oa-trade-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
}

.oa-trade-form label{
    display:block;
}

.oa-trade-form label.is-full{
    grid-column:1/-1;
}

.oa-trade-form label>span{
    display:block;
    margin-bottom:7px;
    color:#aeb8c7;
    font-size:12px;
    font-weight:700;
}

.oa-trade-form input,
.oa-trade-form select,
.oa-trade-form textarea{
    width:100%!important;
    margin:0!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:10px!important;
    color:#fff!important;
    background:#070c13!important;
    font-size:13px!important;
    outline:none!important;
    box-shadow:none!important;
}

.oa-trade-form input,
.oa-trade-form select{
    height:46px!important;
    padding:0 12px!important;
}

.oa-trade-form textarea{
    min-height:110px!important;
    padding:12px!important;
    line-height:1.65!important;
    resize:vertical;
}

.oa-trade-form input:focus,
.oa-trade-form select:focus,
.oa-trade-form textarea:focus{
    border-color:#536bff!important;
    box-shadow:0 0 0 3px rgba(83,107,255,.11)!important;
}

.oa-trade-form>button,
.oa-trade-approve-form>button,
.oa-trade-secondary-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    margin:0!important;
    padding:0 17px!important;
    border:0!important;
    border-radius:11px!important;
    color:#fff!important;
    background:linear-gradient(135deg,#5268ef,#4055d5)!important;
    box-shadow:0 11px 24px rgba(58,78,207,.22)!important;
    font-size:13px!important;
    font-weight:700!important;
    text-transform:none!important;
}

.oa-trade-secondary-button{
    border:1px solid rgba(83,107,255,.30)!important;
    background:rgba(67,85,198,.14)!important;
    box-shadow:none!important;
}

.oa-trade-danger-button{
    border:1px solid rgba(255,99,120,.25)!important;
    color:#ff9caa!important;
    background:rgba(145,26,45,.13)!important;
    box-shadow:none!important;
}

/* Teslimat bilgileri */
.oa-trade-credentials{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:14px;
}

.oa-trade-credentials>div{
    min-width:0;
    padding:12px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:10px;
    background:#0b1119;
}

.oa-trade-credentials>div.is-full{
    grid-column:1/-1;
}

.oa-trade-credentials small,
.oa-trade-credentials strong{
    display:block;
}

.oa-trade-credentials small{
    margin-bottom:6px;
    color:#7f8b9e;
    font-size:11px;
}

.oa-trade-credentials strong{
    overflow-wrap:anywhere;
    color:#fff;
    font-size:13px;
    line-height:1.6;
    font-weight:600;
}

/* Sağ özet */
.oa-trade-summary,
.oa-trade-dispute{
    display:grid;
    gap:0;
    margin:0;
}

.oa-trade-summary>div,
.oa-trade-dispute>div{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
    padding:11px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.oa-trade-summary>div:last-child,
.oa-trade-dispute>div:last-child{
    border-bottom:0;
}

.oa-trade-summary dt,
.oa-trade-dispute dt{
    color:#7f8b9e;
    font-size:11px;
}

.oa-trade-summary dd,
.oa-trade-dispute dd{
    max-width:65%;
    margin:0;
    color:#fff;
    font-size:12px;
    line-height:1.55;
    font-weight:700;
    text-align:right;
}

.oa-trade-dispute>div{
    display:block;
}

.oa-trade-dispute dd{
    max-width:none;
    margin-top:7px;
    text-align:left;
}

.oa-trade-security{
    padding:16px;
    background:
        radial-gradient(circle at 100% 0,rgba(83,107,255,.13),transparent 40%),
        #101720;
}

.oa-trade-security strong{
    display:block;
    margin-bottom:6px;
    color:#fff;
    font-size:13px;
}

.oa-trade-security p{
    margin:0;
    color:#8793a6;
    font-size:11px;
    line-height:1.65;
}

/* Uyarı / boş ekran */
.oa-trade-alert{
    margin-bottom:14px;
    padding:12px 14px;
    border-radius:10px;
    font-size:12px;
    font-weight:600;
}

.oa-trade-alert.is-error{
    border:1px solid rgba(255,83,106,.25);
    color:#ffc0c8;
    background:rgba(151,27,45,.14);
}

.oa-trade-alert.is-success{
    border:1px solid rgba(31,213,132,.25);
    color:#b8f0d1;
    background:rgba(14,137,79,.14);
}

.oa-trade-empty,
.oa-trade-gate{
    display:grid;
    place-items:center;
    min-height:220px;
    padding:30px;
    border:1px dashed rgba(255,255,255,.12);
    border-radius:15px;
    color:#8793a6;
    background:#101720;
    text-align:center;
}

.oa-trade-empty h2,
.oa-trade-gate h2{
    margin:0 0 7px;
    color:#fff;
    font-size:16px;
}

.oa-trade-empty p,
.oa-trade-gate p{
    margin:0;
    font-size:12px;
}

/* Hesabım menü öğesi - hesap paneliyle aynı hizada */
.oa-account-sidebar__item.oa-trade-menu-item,
.oa-account-menu__item.oa-trade-menu-item{
    text-decoration:none!important;
}

.oa-account-sidebar__item.oa-trade-menu-item > span:nth-child(2),
.oa-account-menu__item.oa-trade-menu-item > span:nth-child(2){
    flex:1 1 auto;
}

.oa-account-sidebar__item.oa-trade-menu-item svg,
.oa-account-menu__item.oa-trade-menu-item svg{
    width:15px!important;
    height:15px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.7!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}

/* Yönetim paneli */
.oa-trade-admin-table td,
.oa-trade-admin-table th{
    vertical-align:middle;
}

.oa-trade-admin-delivery{
    max-width:800px;
    margin-top:15px;
    padding:18px;
    border:1px solid #ccd0d4;
    background:#fff;
}

.oa-trade-admin-actions{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:18px;
}

.oa-trade-admin-actions form{
    margin:0;
}

/* Responsive */
@media(max-width:1050px){
    .oa-trade-detail-grid{
        grid-template-columns:1fr;
    }

    .oa-trade-list-card{
        grid-template-columns:82px minmax(0,1fr) 135px;
    }

    .oa-trade-list-card__image{
        width:82px;
        height:66px;
    }

    .oa-trade-list-card>a{
        grid-column:2/-1;
        justify-self:start;
    }
}

@media(max-width:720px){
    body:not(.oa-account-panel-active) .oa-trade-center{
        width:calc(100% - 20px);
    }

    .oa-trade-hero{
        align-items:flex-start;
        flex-direction:column;
        padding:20px;
    }

    .oa-trade-hero h1{
        font-size:24px;
    }

    .oa-trade-list-card{
        grid-template-columns:72px minmax(0,1fr);
        gap:12px;
        padding:12px;
    }

    .oa-trade-list-card__image{
        width:72px;
        height:62px;
    }

    .oa-trade-list-card__amount{
        grid-column:2;
        text-align:left;
    }

    .oa-trade-list-card>a{
        grid-column:1/-1;
        width:100%;
    }

    .oa-trade-timeline{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .oa-trade-form-grid,
    .oa-trade-credentials{
        grid-template-columns:1fr;
    }

    .oa-trade-form label.is-full,
    .oa-trade-credentials>div.is-full{
        grid-column:auto;
    }
}


/* v0.1.1 - İşlem içi anlık mesajlaşma */
.oa-trade-message-button{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    width:100%!important;
    min-height:72px!important;
    margin:0!important;
    padding:13px 14px!important;
    border:1px solid rgba(83,107,255,.24)!important;
    border-radius:16px!important;
    color:#edf0ff!important;
    background:
        radial-gradient(circle at 100% 0,rgba(83,107,255,.17),transparent 42%),
        linear-gradient(145deg,#131c2b,#0f1722)!important;
    box-shadow:0 15px 36px rgba(0,0,0,.12)!important;
    text-align:left!important;
    text-transform:none!important;
    cursor:pointer!important;
    transition:border-color .18s ease,transform .18s ease,background .18s ease!important;
}

.oa-trade-message-button:hover{
    border-color:rgba(105,124,255,.42)!important;
    background:
        radial-gradient(circle at 100% 0,rgba(83,107,255,.22),transparent 42%),
        linear-gradient(145deg,#162135,#111a27)!important;
    transform:translateY(-1px);
}

.oa-trade-message-button__icon{
    display:grid;
    place-items:center;
    width:38px;
    min-width:38px;
    height:38px;
    border-radius:11px;
    color:#9eacff;
    background:rgba(76,96,220,.16);
}

.oa-trade-message-button__icon svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.oa-trade-message-button__copy{
    display:grid;
    min-width:0;
    flex:1;
    gap:5px;
}

.oa-trade-message-button__copy strong{
    color:#fff!important;
    font-size:13px!important;
    line-height:1.3!important;
    font-weight:700!important;
}

.oa-trade-message-button__copy small{
    color:#9aa6b8!important;
    font-size:11px!important;
    line-height:1.55!important;
    font-weight:500!important;
}

.oa-trade-message-button__arrow{
    display:grid;
    place-items:center;
    width:30px;
    min-width:30px;
    height:30px;
    border-radius:9px;
    color:#a8b5ff;
    background:rgba(76,96,220,.12);
    font-size:16px;
    transition:transform .18s ease;
}

.oa-trade-message-button:hover .oa-trade-message-button__arrow{
    transform:translateX(2px);
}

/* 0.1.5 - Sosyal medya hizmet siparişleri */
.oa-social-trade-target{border-color:rgba(89,108,233,.22)!important;background:linear-gradient(180deg,#262b43,#22273b)!important}.oa-social-target-summary{margin:14px 0 0;padding:14px 15px;border:1px solid rgba(89,108,233,.20);border-radius:11px;background:#1d2235}.oa-social-target-summary small{display:block;color:#919bb8;font-size:10px}.oa-social-target-summary strong{display:block;margin-top:5px;color:#fff;font-size:13px;line-height:1.5;word-break:break-word}.oa-social-password-warning{margin:11px 0 0;padding:10px 12px;border-radius:9px;background:rgba(242,179,64,.08);color:#d9be83;font-size:10px}.oa-social-review-info{margin:12px 0 16px;padding:12px 13px;border:1px solid rgba(89,108,233,.16);border-radius:10px;background:rgba(89,108,233,.07);color:#9da7c5;font-size:11px;line-height:1.55}.oa-trade-card--social-service .oa-trade-form>label{display:grid;gap:7px}.oa-trade-card--social-service .oa-trade-form>label span{font-size:12px;font-weight:600}.oa-trade-card--social-service textarea{width:100%;min-height:120px}.oa-trade-card--social-service .oa-trade-form>button{min-height:46px}.oa-trade-credentials div small{font-size:10px}.oa-trade-credentials div strong{font-size:12px;line-height:1.55}
