/* Orion additions on top of the PerediOn template (style.css / dashboard/style.css).
   Kept intentionally small — everything else uses the template's own classes. */

/* Floating WhatsApp "reach out" widget — fixed to the right edge, vertically
   centered. Admin-configurable number; hidden entirely when unset. */
.orion-whatsapp-widget {
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    z-index: 1050;
    transition: transform .2s, box-shadow .2s;
}
.orion-whatsapp-widget:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 26px rgba(37, 211, 102, .6);
}
@media (max-width: 575.98px) {
    .orion-whatsapp-widget { width: 48px; height: 48px; font-size: 1.4rem; right: 14px; }
}

/* Give the template's pill buttons more breathing room around the label —
   the stock 0/30px padding feels cramped once real copy (not "BET NOW") sits inside. */
a.prd-btn-1, button.prd-btn-1,
a.prd-btn-2, button.prd-btn-2 {
    height: auto;
    min-height: 54px;
    line-height: 1.2;
    padding: 14px 34px;
    gap: 10px;
}
a.prd-btn-1.medium, button.prd-btn-1.medium,
a.prd-btn-2.medium, button.prd-btn-2.medium {
    min-height: 46px;
    padding: 11px 26px;
}
a.prd-btn-1 i, button.prd-btn-1 i,
a.prd-btn-2 i, button.prd-btn-2 i {
    margin-left: 2px;
}

/* Auth forms (sign-in/register/forgot/reset): the template puts the submit
   button and helper links side-by-side by default — put the button on its
   own full-width row and stack the links underneath instead. */
.poklotto-form .part-form form .part-submit {
    flex-direction: column;
    align-items: stretch;
}
.poklotto-form .part-form form .part-submit > button,
.poklotto-form .part-form form .part-submit > a.prd-btn-1 {
    width: 100%;
    justify-content: center;
}
.poklotto-form .part-form form .part-submit p {
    max-width: 100%;
    margin-left: 0;
    margin-top: 18px;
    margin-bottom: 0;
    text-align: center;
}

/* Admin login page — moved out of an inline <style> block because CI4's CSP
   auto-appends a nonce to style-src/style-src-elem whenever CSP is enabled,
   and per spec 'unsafe-inline' is ignored by browsers when a nonce is also
   present in the same directive. External stylesheets aren't affected. */
body.orion-admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #14151A;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(208,51,85,.28), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(77,142,83,.22), transparent 45%);
    position: relative;
    overflow-x: hidden;
}
.admin-login-shell { max-width: 440px; margin: 40px auto; width: 100%; position: relative; z-index: 2; }
.admin-login-shape { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none; }
.admin-login-shape img { position: absolute; top: -80px; right: -80px; width: 420px; max-width: none; }
.admin-login-logo { height: 110px; width: auto; }
.admin-login-tag { font-size: .85rem; letter-spacing: 3px; }
.admin-login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    padding: 2.6rem 2.2rem;
}
.admin-login-card .title {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 1.6rem;
    text-align: center;
}
.admin-input-group {
    position: relative;
    margin-bottom: 1.1rem;
}
.admin-input-group label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .4rem;
    color: #14151A;
}
.admin-input-group .icon {
    position: absolute;
    left: 14px;
    top: 42px;
    color: #9aa0ac;
}
.admin-input-group input {
    width: 100%;
    padding: .75rem .9rem .75rem 2.6rem;
    border: 1px solid #e2e4ea;
    border-radius: 10px;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.admin-input-group input:focus {
    outline: none;
    border-color: #FB7A6B;
    box-shadow: 0 0 0 .2rem rgba(208,51,85,.12);
}
.admin-login-footer { text-align: center; margin-top: 1.6rem; }
.admin-login-footer a { color: #b7bdc9; font-size: .85rem; }
.admin-login-footer a:hover { color: #fff; }
.admin-login-submit { padding: .85rem; font-size: 1rem; border-radius: 10px; }

/* Initials avatar — replaces the template's stock stock-photo placeholder
   in the dashboard/admin header "user-pic" circle since we don't have real
   profile photos for users/admins. */
.orion-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135.89deg, #D03355 -5.11%, #FB7A6B 97.89%);
    color: #fff;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: .04em;
    user-select: none;
}
@media (max-width: 1199.98px) { .orion-avatar { font-size: 2rem; } }
@media (max-width: 991.98px) { .orion-avatar { font-size: 1.6rem; } }
@media (max-width: 767.98px) { .orion-avatar { font-size: 1.3rem; } }

/* Sticky header polish — the template already toggles `.header-fixed` on scroll
   (see main.js); just smooth the transition and keep it above everything. */
.header { transition: background-color .25s ease, box-shadow .25s ease; }
.header.header-fixed { box-shadow: 0 4px 20px rgba(0,0,0,.15); }

/* Status tags for signal legs. Template only ships win/lost (binary bet outcome);
   we need void/unsettled too since a signal leg can be postponed or still in play. */
.orion-status-tag {
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.orion-status-won { background: #e6f6ea; color: #4D8E53; }
.orion-status-lost { background: #fdeaea; color: #D03355; }
.orion-status-void { background: #eceff1; color: #55606a; }
.orion-status-unsettled { background: #fff4e5; color: #b06b00; }

/* Template only ships .status .win/.lost (bet outcome); we also need a
   neutral "pending" state for payments still awaiting Mobile Money approval. */
.status span.pending { color: #b06b00; font-weight: 600; }

/* Paywall teaser: blur the pick/odds for non-subscribers, same visual language
   as the template's own bet cards, just non-interactive and obscured. */
.placing-bet.is-locked .bet-ratio,
.placing-bet.is-locked .team-name,
.bet-type .text.orion-locked-text {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}
.orion-score { font-size: 11px; color: #4D8E53; display: block; }

/* Admin match-status inline form embedded inside the template's match row */
.orion-admin-match-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.orion-admin-match-controls .form-control,
.orion-admin-match-controls .form-select {
    width: auto;
    min-width: 90px;
}

/* Admin panel: Bootstrap's default flat gray inputs/buttons read as "unstyled"
   next to the template's vibrant theme — brand them consistently. */
.single-db-element .form-control,
.single-db-element .form-select,
.dashboard-header .form-control,
.dashboard-header .form-select {
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    padding: .55rem .9rem;
    font-size: .92rem;
    transition: border-color .2s, box-shadow .2s;
}
.single-db-element .form-control:focus,
.single-db-element .form-select:focus {
    border-color: #FB7A6B;
    box-shadow: 0 0 0 .2rem rgba(208, 51, 85, .12);
}
.single-db-element .form-control-sm,
.single-db-element .form-select-sm {
    padding: .35rem .6rem;
    font-size: .82rem;
    border-radius: 6px;
}
.single-db-element label.form-label {
    font-weight: 600;
    font-size: .88rem;
    color: #14151A;
}

.single-db-element .btn,
.dashboard-header .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: .5rem 1.1rem;
    transition: all .2s;
}
.single-db-element .btn-sm { padding: .32rem .75rem; font-size: .8rem; }
.single-db-element .btn-outline-dark { border-color: #14151A; color: #14151A; }
.single-db-element .btn-outline-dark:hover { background: #14151A; border-color: #14151A; }
.single-db-element .btn-outline-danger:hover,
.single-db-element .btn-outline-success:hover { color: #fff; }
.btn-orion-primary {
    background: linear-gradient(135.89deg, #D03355 -5.11%, #FB7A6B 97.89%);
    color: #fff;
    border: none;
}
.btn-orion-primary:hover { color: #fff; filter: brightness(1.08); }

/* Pricing cards reuse the template's card/button language but need a
   plain container since the template has no literal "pricing" page. */
.orion-pricing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(20, 21, 26, .06);
    padding: 2.2rem 1.4rem;
    text-align: center;
    position: relative;
    height: 100%;
}
.orion-pricing-card .price { font-size: 1.9rem; }
.orion-pricing-card.featured { box-shadow: 0 10px 40px rgba(208, 51, 85, .18); border: 1px solid #FB7A6B; }
.orion-pricing-card .badge-featured {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135.89deg, #D03355 -5.11%, #FB7A6B 97.89%);
    color: #fff; padding: .3rem 1rem; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.orion-pricing-card .price { font-size: 2.2rem; font-weight: 700; margin: .5rem 0; }
.orion-pricing-card .price small { font-size: 1rem; font-weight: 400; color: #6b7280; }
.orion-pricing-card ul { list-style: none; padding: 0; margin: 1.2rem 0; text-align: left; }
.orion-pricing-card ul li { padding: .35rem 0; }
.orion-pricing-card ul li i { color: #4D8E53; margin-right: .5rem; }
