/* ==========================================================================
   ORDER MODAL — premium redesign (no range slider)
   + brand colours of the 12 service cards + Live badge
   Loaded after style.css and landing.css (homepage + new-order page).
   ========================================================================== */

/* ---- Service cards: official brand colours ---------------------------- */
.service-card[data-service="facebook"]  { --card-bg: #1877F2; --card-shadow: rgba(24,119,242,.35); }
.service-card[data-service="instagram"] { --card-bg: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #515BD4 100%); --card-shadow: rgba(221,42,123,.38); }
.service-card[data-service="instagram"] .icon { color: #DD2A7B; }
.service-card[data-service="tiktok"]    { --card-bg: #000000; --card-shadow: rgba(0,0,0,.32); }
.service-card[data-service="twitter"]   { --card-bg: #000000; --card-shadow: rgba(0,0,0,.32); }
.service-card[data-service="youtube"]   { --card-bg: #FF0000; --card-shadow: rgba(255,0,0,.35); }
.service-card[data-service="telegram"]  { --card-bg: #26A5E4; --card-shadow: rgba(38,165,228,.35); }
.service-card[data-service="spotify"]   { --card-bg: #1DB954; --card-shadow: rgba(29,185,84,.35); }
.service-card[data-service="discord"]   { --card-bg: #5865F2; --card-shadow: rgba(88,101,242,.35); }
.service-card[data-service="pinterest"] { --card-bg: #E60023; --card-shadow: rgba(230,0,35,.35); }
.service-card[data-service="snapchat"]  { --card-bg: #FFFC00; --card-shadow: rgba(200,200,0,.3); }
.service-card[data-service="tumblr"]    { --card-bg: #001935; --card-shadow: rgba(0,25,53,.4); }
.service-card[data-service="google"]    { --card-bg: #4285F4; --card-shadow: rgba(66,133,244,.35); }

/* 3 columns on desktop (2 on mobile is already defined in style.css) */
@media (min-width: 1101px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---- Live badge -------------------------------------------------------- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    margin-inline-start: 10px;
    border-radius: 999px;
    background: rgba(34,197,94,.12);
    color: #16a34a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-text-fill-color: #16a34a;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: liveDot 1.6s ease-in-out infinite;
}
@keyframes liveDot {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ---- Overlay ----------------------------------------------------------- */
.modal-overlay {
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---- Modal container --------------------------------------------------- */
.modal.om-modal {
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 30px 80px rgba(15,23,42,.35);
    overflow-x: hidden;
}

/* ---- Header ------------------------------------------------------------ */
.om-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #f1f2f6;
}
.om-header::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: var(--om-accent, #e63946);
}
.om-head-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.om-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--om-accent, #e63946);
    color: var(--om-fg, #ffffff);
    box-shadow: 0 10px 22px rgba(15,23,42,.18);
    transition: transform .3s ease;
}
.om-modal:hover .om-icon { transform: rotate(-4deg) scale(1.04); }
#modal-service-name {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}
.om-sub {
    margin: 3px 0 0;
    font-size: .78rem;
    font-weight: 500;
    color: #64748b;
}

/* ---- Body -------------------------------------------------------------- */
.om-body { padding: 18px 22px 22px; }
.om-section { margin-bottom: 18px; }
.om-label {
    display: block;
    margin-bottom: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}
.om-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.om-label-row .om-label { margin-bottom: 0; }
.om-help { font-size: .72rem; font-weight: 600; color: #94a3b8; }

/* ---- Category pills ---------------------------------------------------- */
.om-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.om-pills .subcategory-pill {
    padding: 8px 15px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.om-pills .subcategory-pill:hover {
    background: #ffffff;
    border-color: #e63946;
    color: #e63946;
    transform: translateY(-1px);
}
.om-pills .subcategory-pill.active {
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(230,57,70,.28);
}

/* ---- Quantity stepper -------------------------------------------------- */
.om-stepper {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.om-stepper:focus-within {
    border-color: #e63946;
    box-shadow: 0 0 0 4px rgba(230,57,70,.1);
}
.om-step {
    height: 46px;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
    transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
}
.om-step:hover { color: #e63946; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(230,57,70,.18); }
.om-step:active { transform: scale(.95); }
.om-qty {
    width: 100%;
    min-width: 0;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.om-qty::-webkit-outer-spin-button,
.om-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.om-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qty-chip {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all .2s ease;
}
.qty-chip:hover { border-color: #e63946; color: #e63946; transform: translateY(-1px); }
.qty-chip.active { background: #fff1f2; border-color: #e63946; color: #e63946; }

/* ---- Link input -------------------------------------------------------- */
.om-input-wrap { position: relative; }
.om-input-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .9rem;
    pointer-events: none;
}
.om-input-wrap .om-input {
    height: 50px;
    padding: 0 16px 0 42px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    font-size: .9rem;
}
.om-input-wrap .om-input:focus {
    background: #ffffff;
    border-color: #e63946;
    box-shadow: 0 0 0 4px rgba(230,57,70,.1);
}
html[dir=rtl] .om-input-wrap > i { left: auto; right: 15px; }
html[dir=rtl] .om-input-wrap .om-input { padding: 0 42px 0 16px; }
html[dir=rtl] .om-stepper { direction: ltr; }

/* ---- Price card -------------------------------------------------------- */
.price-display.om-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
    text-align: start;
}
.om-price .label {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}
.om-rate { margin-top: 3px; font-size: .74rem; color: #94a3b8; }
.om-price .price {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.om-price .price.om-bump { animation: omBump .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes omBump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ---- CTA --------------------------------------------------------------- */
.btn.om-pay {
    height: 54px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .2px;
    background: linear-gradient(135deg, #e63946 0%, #ff4d6d 55%, #ff6b6b 100%);
}
.om-secure {
    margin-top: 12px;
    text-align: center;
    font-size: .72rem;
    color: #94a3b8;
}
.om-secure i { color: #22c55e; margin-inline-end: 4px; }

/* ---- Dark theme -------------------------------------------------------- */
html[data-theme=dark] .modal.om-modal { background: #14141f; border-color: rgba(255,255,255,.1); }
html[data-theme=dark] .om-header { border-color: rgba(255,255,255,.08); }
html[data-theme=dark] #modal-service-name { color: #f1f1f6; }
html[data-theme=dark] .om-sub,
html[data-theme=dark] .om-label,
html[data-theme=dark] .om-price .label { color: #a5a5bc; }
html[data-theme=dark] .om-pills .subcategory-pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #e4e4ee; }
html[data-theme=dark] .om-pills .subcategory-pill.active { background: linear-gradient(135deg, #e63946, #ff6b6b); color: #fff; border-color: transparent; }
html[data-theme=dark] .om-stepper { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
html[data-theme=dark] .om-step { background: rgba(255,255,255,.1); color: #f1f1f6; box-shadow: none; }
html[data-theme=dark] input.om-qty { background: transparent !important; border: none !important; color: #ffffff; }
html[data-theme=dark] .qty-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #d4d4e2; }
html[data-theme=dark] .qty-chip.active { background: rgba(230,57,70,.18); border-color: #e63946; color: #ff8b93; }
html[data-theme=dark] .price-display.om-price { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }

/* ---- Mobile ------------------------------------------------------------ */
@media (max-width: 480px) {
    .om-header { padding: 20px 16px 14px; }
    .om-body { padding: 16px 16px 18px; }
    .om-icon { width: 42px; height: 42px; font-size: 1.15rem; }
    .om-qty { font-size: 1.35rem; }
    .qty-chip { padding: 6px 10px; font-size: .74rem; }
    .om-price .price { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .live-dot, .om-price .price.om-bump { animation: none !important; }
}
