/* =====================================================================
   StakeAlix UI refresh — tokens + base layer
   Loaded after the legacy bootstrap/style/responsive CSS. Global area
   layers (sa-chrome.css, sa-card.css) follow; page layers are pushed
   through @stack('page-css') in master.blade.php.
   ===================================================================== */

:root {
    /* palette */
    --sa-midnight: #0E1530;
    --sa-navy: #1B2A5E;
    --sa-ember: #FF7A1A;
    --sa-ember-ink: #C2410C;
    --sa-ember-soft: #FFF2E8;
    --sa-flare: #E02850;
    --sa-volt: #FFC53D;
    --sa-surface: #F3F5FA;
    --sa-surface-2: #E9EDF6;
    --sa-card: #FFFFFF;
    --sa-ink: #131A33;
    --sa-ink-2: #2B3352;
    --sa-muted: #5E6680;
    --sa-line: #E3E7F0;
    --sa-line-strong: #CDD3E1;
    --sa-success: #0B7A43;
    --sa-success-soft: #E7F6EE;
    --sa-danger: #D92D3A;

    /* gradients */
    --sa-grad-charge: linear-gradient(135deg, #F26B0F 0%, #EC4A2C 52%, #DC2750 100%);
    --sa-grad-deal: linear-gradient(135deg, #E0342C 0%, #CC1F4A 100%);
    --sa-grad-night: linear-gradient(120deg, #0E1530 0%, #16214A 55%, #1F2F66 100%);
    --sa-grad-stage: radial-gradient(120% 95% at 50% 18%, #FFFFFF 0%, #F4F6FB 60%, #E8ECF5 100%);
    --sa-glow-ember: radial-gradient(55% 90% at 88% 0%, rgba(255, 122, 26, 0.38) 0%, rgba(255, 122, 26, 0) 70%);

    /* type */
    --sa-font: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* shape */
    --sa-r-sm: 8px;
    --sa-r-md: 12px;
    --sa-r-lg: 16px;
    --sa-r-xl: 22px;
    --sa-r-pill: 999px;

    /* elevation (navy tinted) */
    --sa-shadow-1: 0 1px 2px rgba(14, 21, 48, 0.05), 0 2px 10px rgba(14, 21, 48, 0.05);
    --sa-shadow-2: 0 12px 30px -10px rgba(14, 21, 48, 0.22);
    --sa-shadow-cta: 0 10px 22px -10px rgba(220, 39, 80, 0.65);
    --sa-focus-ring: 0 0 0 3px rgba(255, 122, 26, 0.45);

    --sa-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */

body {
    font-family: var(--sa-font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--sa-ink);
    background: var(--sa-surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sa-font);
    color: var(--sa-ink);
    letter-spacing: -0.01em;
}

p {
    color: inherit;
}

a,
a:hover,
a:focus {
    color: inherit;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

.alinur,
.potro_font {
    font-family: var(--sa-font);
}

::selection {
    background: rgba(255, 122, 26, 0.22);
}

/* the legacy CSS strips every outline; bring keyboard focus back */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--sa-ember) !important;
    outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.parsley-errors-list {
    color: var(--sa-danger);
    font-size: 13px;
    margin-top: 6px;
}

.parsley-error {
    border-color: var(--sa-danger) !important;
}

/* ---------- shared components ---------- */

.sa-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sa-panel {
    background: var(--sa-card);
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    box-shadow: var(--sa-shadow-1);
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--sa-r-pill);
    font-family: var(--sa-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s var(--sa-ease), box-shadow 0.2s var(--sa-ease), background-position 0.35s var(--sa-ease), color 0.2s;
}

.sa-btn:active {
    transform: translateY(1px);
}

.sa-btn--charge,
.sa-btn--charge:hover,
.sa-btn--charge:focus {
    background: var(--sa-grad-charge);
    background-size: 150% 100%;
    background-position: 0 0;
    color: #fff;
    font-weight: 700;
    box-shadow: var(--sa-shadow-cta);
}

.sa-btn--charge:hover {
    background-position: 100% 0;
}

.sa-btn--night,
.sa-btn--night:hover,
.sa-btn--night:focus {
    background: var(--sa-grad-night);
    color: #fff;
}

.sa-btn--ghost,
.sa-btn--ghost:focus {
    background: var(--sa-card);
    color: var(--sa-ink);
    box-shadow: inset 0 0 0 1.5px var(--sa-line-strong);
}

.sa-btn--ghost:hover {
    color: var(--sa-ink);
    box-shadow: inset 0 0 0 1.5px var(--sa-ink);
}

.sa-btn--call,
.sa-btn--call:hover,
.sa-btn--call:focus {
    background: var(--sa-success-soft);
    color: var(--sa-success);
    box-shadow: inset 0 0 0 1.5px rgba(11, 122, 67, 0.25);
}

.sa-btn--block {
    display: flex;
    width: 100%;
}

.sa-btn--lg {
    min-height: 54px;
    font-size: 18px;
}

.sa-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--sa-r-sm);
    background: var(--sa-surface);
    color: var(--sa-ink-2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.sa-deal {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--sa-r-sm);
    background: var(--sa-grad-deal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.sa-price {
    color: var(--sa-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sa-was {
    color: var(--sa-muted);
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    font-variant-numeric: tabular-nums;
}

/* pedestal stage: product photo on a lit surface with a floor shadow */
.sa-stage {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--sa-r-md);
    background: var(--sa-grad-stage);
    overflow: hidden;
    isolation: isolate;
}

.sa-stage::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 6%;
    height: 9%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(14, 21, 48, 0.2), rgba(14, 21, 48, 0));
    z-index: 0;
    pointer-events: none;
}

.sa-stage img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    padding: 9%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.35s var(--sa-ease);
}

.sa-stage--flat::after {
    display: none;
}

.sa-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sa-section-title {
    margin: 0;
    color: var(--sa-ink);
    font-size: 24px;
    font-weight: 700;
    font-stretch: 112%;
    line-height: 1.2;
}

.sa-link,
.sa-link:focus {
    color: var(--sa-ember-ink);
    font-weight: 600;
    text-decoration: none;
}

.sa-link:hover {
    color: var(--sa-ember-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sa-field {
    margin-bottom: 16px;
}

.sa-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sa-ink-2);
    font-size: 14px;
    font-weight: 600;
}

.sa-input,
.sa-input.form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--sa-line-strong);
    border-radius: var(--sa-r-md);
    background: var(--sa-card);
    color: var(--sa-ink);
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sa-input:focus,
.sa-input.form-control:focus {
    border-color: var(--sa-ember);
    box-shadow: var(--sa-focus-ring) !important;
    outline: 0;
}

@media (max-width: 767.98px) {
    .sa-section-title {
        font-size: 20px;
    }
}
