/* ==========================================
   Titan Team - الإضافات (السحوبات الحصرية، النماذج، الوكالات، التوقعات)
========================================== */

:root {
    --win: #2EE59D;
    --win-soft: rgba(46, 229, 157, .12);
    --danger: #FF6B6B;
}

/* ---------- شريط السحوبات المتحرك ---------- */
.wins-ticker {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: stretch;
    height: 40px;
    background: linear-gradient(90deg, rgba(245,197,66,.10), rgba(245,197,66,.03) 40%, rgba(245,197,66,.10));
    border-bottom: 1px solid rgba(245,197,66,.18);
    overflow: hidden;
    font-size: 12px;
}

.wt-label {
    flex: none;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    color: #111;
    background: linear-gradient(135deg, #FFE58A, #F5C542);
    font-weight: 800;
    letter-spacing: .3px;
    z-index: 2;
}

.wt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E0242B;
    box-shadow: 0 0 0 0 rgba(224,36,43,.6);
    animation: wt-pulse 1.6s infinite;
}

@keyframes wt-pulse {
    0% { box-shadow: 0 0 0 0 rgba(224,36,43,.55); }
    70% { box-shadow: 0 0 0 8px rgba(224,36,43,0); }
    100% { box-shadow: 0 0 0 0 rgba(224,36,43,0); }
}

.wt-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.wt-track {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    padding-inline-start: 18px;
    animation: wt-scroll 60s linear infinite;
}

.wins-ticker:hover .wt-track { animation-play-state: paused; }

@keyframes wt-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.wt-item { color: #D9D8DF; }
.wt-item b { color: var(--gold); font-weight: 800; }
.wt-item strong { color: var(--win); font-weight: 800; }
.wt-name { color: #fff; font-weight: 700; }
.wt-bot { color: var(--muted); }
.wt-time { color: var(--muted); font-size: 11px; margin-inline-start: 4px; }
.wt-sep { color: rgba(245,197,66,.45); }

/* ---------- قسم السحوبات ---------- */
.wins { padding: 70px 0 10px; }

.wins-highlight {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 620px;
    margin: 0 auto 26px;
    padding: 20px 24px;
    background:
        radial-gradient(circle at 85% 0%, rgba(245,197,66,.20), transparent 55%),
        linear-gradient(145deg, #1C1A12, #0F1016);
    border: 1px solid rgba(245,197,66,.38);
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(245,197,66,.08);
    overflow: hidden;
}

.wins-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 60%);
    transform: translateX(-100%);
    animation: wh-shine 4.5s ease-in-out infinite;
}

@keyframes wh-shine {
    0%, 55% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.wh-crown {
    flex: none;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    font-size: 28px;
    background: rgba(245,197,66,.12);
    border: 1px solid rgba(245,197,66,.3);
    border-radius: 16px;
}

.wins-highlight small { display: block; color: var(--gold); font-size: 11px; font-weight: 700; }
.wins-highlight strong { display: block; color: #fff; font-size: 30px; line-height: 1.3; font-weight: 900; }
.wins-highlight strong em { color: var(--gold); font-size: 15px; font-style: normal; }
.wins-highlight span { color: var(--muted); font-size: 12px; }

.wins-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.win-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px 16px;
    background: linear-gradient(145deg, #15171F, #0D0E13);
    border: 1px solid rgba(46,229,157,.18);
    border-radius: 14px;
    overflow: hidden;
    transition: .25s ease;
    animation: win-in .5s ease both;
    animation-delay: var(--d, 0ms);
}

.win-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--win), transparent);
    opacity: .7;
}

.win-card:hover {
    transform: translateY(-3px);
    border-color: rgba(46,229,157,.4);
    box-shadow: 0 10px 30px rgba(46,229,157,.08);
}

@keyframes win-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.win-badge {
    align-self: flex-start;
    padding: 2px 9px;
    color: var(--win);
    background: var(--win-soft);
    border: 1px solid rgba(46,229,157,.25);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
}

.win-amount { color: #fff; font-size: 22px; font-weight: 900; line-height: 1.5; }
.win-amount em { color: var(--win); font-size: 12px; font-style: normal; }
.win-name { color: #E7E6EC; font-size: 12px; font-weight: 700; }
.win-meta { color: var(--muted); font-size: 11px; }

/* ---------- نافذة السحب المنبثقة ---------- */
.win-popup {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(330px, calc(100vw - 100px));
    padding: 12px 14px;
    background: rgba(13,17,26,.96);
    border: 1px solid rgba(46,229,157,.3);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 25px rgba(46,229,157,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: .35s ease;
}

.win-popup.show { opacity: 1; transform: none; pointer-events: auto; }

.wp-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 20px;
    background: var(--win-soft);
    border-radius: 12px;
}

.wp-body { min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.wp-body small { color: var(--gold); font-size: 10px; font-weight: 700; }
.wp-body strong { color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-body span { color: var(--muted); font-size: 10px; }

.wp-close {
    position: absolute;
    top: 4px;
    left: 8px;
    color: var(--muted);
    background: none;
    border: 0;
    font-size: 16px;
    cursor: pointer;
}

/* ---------- شارة "قدّم طلبك" على البطاقات ---------- */
.card-form-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 3px 9px;
    color: #111;
    background: linear-gradient(135deg, #FFE58A, #F5C542);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(245,197,66,.2);
}

/* ---------- نماذج الطلبات ---------- */
.request-form {
    margin: 20px 0 16px;
    padding: 16px;
    background: rgba(245,197,66,.035);
    border: 1px solid rgba(245,197,66,.2);
    border-radius: 12px;
}

.rf-title { margin-bottom: 12px; color: var(--gold); font-size: 14px; }

.rf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rf-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #C9C8D0; }
.rf-full { margin-top: 10px; }

.rf-field input,
.rf-field select,
.rf-field textarea {
    width: 100%;
    padding: 10px 11px;
    color: var(--text);
    background: #0A0C12;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease;
}

.rf-field textarea { resize: vertical; min-height: 78px; }

.rf-field input:focus,
.rf-field select:focus,
.rf-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245,197,66,.12);
}

.rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.rf-msg { min-height: 0; margin: 8px 0 0; font-size: 12px; }
.rf-msg.err { color: var(--danger); }

.rf-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #111;
    background: linear-gradient(100deg, #FFE58A, #F5C542);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.rf-submit:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.rf-submit:disabled { opacity: .65; cursor: wait; }

.rf-success { padding: 18px 10px; text-align: center; }
.rf-success span { display: block; font-size: 34px; }
.rf-success strong { display: block; color: var(--win); font-size: 16px; margin: 4px 0; }
.rf-success p { color: #C9C8D0; font-size: 12px; }

.modal-cta.modal-cta-secondary {
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: none;
}

/* ---------- الوكالات والتوقعات ---------- */
.x-block { margin-top: 18px; }
.x-title { margin-bottom: 10px; color: var(--gold); font-size: 13px; }

.x-badge {
    padding: 1px 7px;
    color: var(--win);
    background: var(--win-soft);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

.x-btn {
    flex: none;
    padding: 7px 13px;
    color: #111;
    background: linear-gradient(135deg, #FFE58A, #F5C542);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.agency-list, .pred-list { display: flex; flex-direction: column; gap: 9px; }

.agency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
}

.agency-item strong { color: #fff; font-size: 13px; }
.agency-item small { display: block; color: var(--muted); font-size: 11px; }
.agency-item p { color: #B9B8C1; font-size: 11px; margin-top: 2px; }

.pred-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pred-rate { color: var(--muted); font-size: 11px; }
.pred-rate b { color: var(--win); }

.pred-item {
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-inline-start: 3px solid var(--gold);
    border-radius: 11px;
}

.pred-item.st-won { border-inline-start-color: var(--win); }
.pred-item.st-lost { border-inline-start-color: var(--danger); opacity: .85; }
.pred-item.st-void { border-inline-start-color: var(--muted); opacity: .7; }

.pred-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.pred-status { font-weight: 700; color: #D9D8DF; }
.pred-item > strong { display: block; color: #fff; font-size: 13px; margin: 2px 0 4px; }
.pred-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #B9B8C1; font-size: 11px; }
.pred-pick b { color: var(--gold); }
.pred-item p { color: var(--muted); font-size: 11px; margin-top: 4px; }

.pred-conf {
    width: 70px;
    height: 6px;
    background: rgba(255,255,255,.08);
    border-radius: 99px;
    overflow: hidden;
}

.pred-conf i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--win)); }

/* ---------- الهاتف ---------- */
@media (max-width: 900px) {
    .wins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .wins { padding-top: 48px; }
    .wins-ticker { height: 36px; font-size: 11px; }
    .wt-label { padding: 0 10px; }
    .wins-highlight { padding: 16px; gap: 12px; }
    .wh-crown { width: 46px; height: 46px; font-size: 22px; }
    .wins-highlight strong { font-size: 23px; }
    .wins-grid { gap: 10px; }
    .win-card { padding: 14px 12px 12px; }
    .win-amount { font-size: 17px; }
    .rf-grid { grid-template-columns: 1fr; }
    .win-popup { left: 12px; bottom: 18px; width: calc(100vw - 86px); }
    .card-form-badge { bottom: 16px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .wt-track, .wins-highlight::after, .win-card, .wt-dot { animation: none; }
    .wt-viewport { overflow-x: auto; }
}
