/* =========================================================
   ALPHA TRADE
   Minimal design matched with Assets
   File: public_html/trade.css
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   SAME VISUAL SYSTEM AS ASSETS
   ========================================================= */

:root {
    --alpha-yellow: #F0B90B;
    --alpha-yellow-hover: #DFAE00;
    --alpha-yellow-soft: #FFF8DB;

    --alpha-bg: #FFFFFF;
    --alpha-soft-bg: #F7F8FA;

    --alpha-text: #181A20;
    --alpha-muted: #707A8A;
    --alpha-light-muted: #9AA1AC;

    --alpha-border: #EAECEF;
    --alpha-border-strong: #D8DCE1;

    --alpha-success: #0ECB81;
    --alpha-success-soft: #EAFBF4;

    --alpha-danger: #F6465D;
    --alpha-danger-soft: #FFF0F2;

    --alpha-warning: #B58400;
    --alpha-warning-soft: #FFF8DB;

    --safe-top:
        env(safe-area-inset-top, 0px);

    --safe-bottom:
        env(safe-area-inset-bottom, 0px);

    --header-height: 60px;
    --bottom-nav-height: 76px;

    --content-width: 980px;

    --transition: 160ms ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 320px;
    min-height: 100%;

    overflow-x: hidden;

    background: var(--alpha-bg);

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    background: var(--alpha-bg);
    color: var(--alpha-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.trade-page {
    padding-bottom:
        calc(
            var(--bottom-nav-height)
            + var(--safe-bottom)
            + 26px
        );
}

body.trade-modal-open {
    overflow: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    margin: 0;
}

button:not(:disabled),
a {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dt,
dd {
    margin: 0;
}

[hidden] {
    display: none !important;
}

::selection {
    background: rgba(240, 185, 11, 0.22);
    color: var(--alpha-text);
}


/* =========================================================
   3. FOCUS
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(240, 185, 11, 0.26);
    outline-offset: 2px;
}


/* =========================================================
   4. CONTAINER
   SAME AS ASSETS
   ========================================================= */

.trade-container {
    width: min(
        calc(100% - 28px),
        var(--content-width)
    );

    margin-inline: auto;
}


/* =========================================================
   5. ALERT
   ========================================================= */

.trade-alert {
    position: fixed;

    top:
        calc(
            var(--safe-top)
            + var(--header-height)
            + 9px
        );

    left: 50%;
    z-index: 1600;

    width: min(
        calc(100% - 28px),
        420px
    );

    padding: 10px 13px;

    border: 1px solid var(--alpha-border);
    border-radius: 10px;

    background: #FFFFFF;
    color: var(--alpha-text);

    box-shadow:
        0 10px 28px
        rgba(24, 26, 32, 0.10);

    font-size: 12px;
    font-weight: 600;
    text-align: center;

    transform: translateX(-50%);
}

.trade-alert.is-success {
    border-color: rgba(14, 203, 129, 0.28);
    color: #087A4F;
}

.trade-alert.is-error {
    border-color: rgba(246, 70, 93, 0.28);
    color: #C92E44;
}

.trade-alert.is-warning {
    border-color: rgba(240, 185, 11, 0.35);
    color: #806000;
}


/* =========================================================
   6. PAGE LOADING
   ========================================================= */

.trade-page-loading {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 24px;

    background: rgba(255, 255, 255, 0.97);
    color: var(--alpha-muted);

    font-size: 12px;
    font-weight: 600;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.trade-page-loading__spinner {
    width: 22px;
    height: 22px;

    flex: 0 0 auto;

    border: 2px solid var(--alpha-border);
    border-top-color: var(--alpha-yellow);
    border-radius: 50%;

    animation: trade-spin 0.75s linear infinite;
}

@keyframes trade-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   7. HEADER
   MATCHED WITH ASSETS
   ========================================================= */

.trade-header {
    position: sticky;
    top: 0;
    z-index: 700;

    width: 100%;

    padding-top: var(--safe-top);

    border-bottom: 1px solid var(--alpha-border);

    background: rgba(255, 255, 255, 0.97);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.trade-header__inner {
    min-height: var(--header-height);

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr)
        38px;

    align-items: center;

    gap: 8px;
}

.trade-header__back {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--alpha-text);

    transition:
        background var(--transition),
        transform var(--transition);
}

.trade-header__back:hover {
    background: var(--alpha-soft-bg);
}

.trade-header__back:active {
    transform: scale(0.95);
}

.trade-header__back svg {
    width: 21px;
    height: 21px;
}

.trade-page-title {
    min-width: 0;

    overflow: hidden;

    color: var(--alpha-text);

    font-size: 19px;
    line-height: 1.2;
    font-weight: 600;

    letter-spacing: -0.25px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-header-spacer {
    width: 38px;
    height: 38px;
}


/* =========================================================
   8. MAIN
   MATCHED WITH ASSETS
   ========================================================= */

.trade-main {
    width: 100%;

    padding:
        24px
        0
        28px;

    background: #FFFFFF;
}

.trade-main > .trade-container {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   9. OTC TIMING
   ========================================================= */

.trade-timing-section {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;

    gap: 18px;

    padding:
        0
        0
        22px;

    border-bottom: 1px solid var(--alpha-border);
}

.trade-timing-item {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.trade-timing-item--right {
    align-items: flex-end;
    text-align: right;
}

.trade-timing-label {
    color: var(--alpha-muted);

    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

.trade-timing-value {
    max-width: 100%;

    overflow: hidden;

    color: var(--alpha-text);

    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   10. SECTION BASE
   ========================================================= */

.trade-action-section,
.trade-history-section {
    width: 100%;

    padding-top: 23px;
}

.trade-section-heading {
    min-height: 31px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.trade-section-heading h2 {
    color: var(--alpha-text);

    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;

    letter-spacing: -0.2px;
}


/* =========================================================
   11. COPY TRADE STATUS
   ========================================================= */

.copy-trade-status {
    min-height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 8px;

    border-radius: 999px;

    background: var(--alpha-soft-bg);
    color: var(--alpha-muted);

    font-size: 9px;
    line-height: 1;
    font-weight: 600;
}

.copy-trade-status.is-open,
.copy-trade-status.is-active,
.copy-trade-status.is-live {
    background: var(--alpha-success-soft);
    color: #087A4F;
}

.copy-trade-status.is-closed {
    background: var(--alpha-danger-soft);
    color: var(--alpha-danger);
}


/* =========================================================
   12. COPY TRADE
   NO CARD STYLE
   ========================================================= */

.copy-trade-card {
    width: 100%;

    margin-top: 9px;

    padding:
        16px
        0
        0;

    border: 0;
    border-top: 1px solid var(--alpha-border);
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}

.copy-trade-card__top {
    display: none;
}

.trade-js-copy-data {
    display: none !important;
}

.trade-copy-kicker,
.trade-copy-pair,
.trade-direction-pill {
    display: none !important;
}

.copy-trade-message {
    max-width: 430px;

    margin: 0;

    padding: 0;

    border: 0;

    background: transparent;
    color: var(--alpha-light-muted);

    font-size: 11px;
    line-height: 1.55;
    font-weight: 400;
}

.copy-trade-action {
    width: 100%;
    max-width: 320px;

    min-height: 46px;

    margin-top: 14px;

    padding: 10px 16px;

    border: 1px solid var(--alpha-yellow);
    border-radius: 10px;

    background: var(--alpha-yellow);
    color: var(--alpha-text);

    font-size: 13px;
    line-height: 1.2;
    font-weight: 650;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.copy-trade-action:hover:not(:disabled) {
    border-color: var(--alpha-yellow-hover);
    background: var(--alpha-yellow-hover);
}

.copy-trade-action:active:not(:disabled) {
    transform: scale(0.985);
}

.copy-trade-action:disabled {
    border-color: var(--alpha-border);
    background: var(--alpha-soft-bg);
    color: var(--alpha-light-muted);
}


/* =========================================================
   13. EMPTY COPY TRADE
   ========================================================= */

.copy-trade-card.is-empty {
    min-height: 105px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding:
        16px
        0
        0;

    text-align: left;
}

.copy-trade-card.is-empty
.copy-trade-message {
    margin-top: 0;
}

.copy-trade-card.is-empty
.copy-trade-action {
    margin-top: 13px;
}


/* =========================================================
   14. TRADE HISTORY
   ========================================================= */

.trade-history-section {
    margin-top: 0;
}

.trade-history-loading {
    width: 100%;

    margin-top: 9px;

    border-top: 1px solid var(--alpha-border);
}

.trade-history-skeleton {
    min-height: 66px;

    border-bottom: 1px solid var(--alpha-border);

    background:
        linear-gradient(
            90deg,
            #F1F2F3 25%,
            #FAFAFA 50%,
            #F1F2F3 75%
        );

    background-size: 200% 100%;

    animation:
        trade-history-shimmer
        1.25s linear infinite;
}

@keyframes trade-history-shimmer {
    to {
        background-position: -200% 0;
    }
}

.trade-history-list {
    width: 100%;

    margin-top: 9px;

    border-top: 1px solid var(--alpha-border);

    background: transparent;
}


/* =========================================================
   15. TRADE HISTORY ROW
   ========================================================= */

.trade-history-row {
    width: 100%;

    min-height: 68px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(92px, auto);

    align-items: center;

    gap: 12px;

    padding: 11px 0;

    border: 0;
    border-bottom: 1px solid var(--alpha-border);
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}

.trade-history-row__icon {
    display: none !important;
}

.trade-history-row__identity {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.trade-history-row__result-column {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 2px;

    text-align: right;
}

.trade-history-row__title {
    display: block;

    overflow: hidden;

    color: var(--alpha-text);

    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-history-row__reference,
.trade-history-row__direction {
    display: none !important;
}

.trade-history-row__date {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: var(--alpha-light-muted);

    font-size: 9px;
    line-height: 1.35;
    font-weight: 400;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-history-row__result {
    display: block;

    overflow: hidden;

    color: var(--alpha-text);

    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-history-row__result.is-win {
    color: var(--alpha-success);
}

.trade-history-row__result.is-loss,
.trade-history-row__result.is-missed {
    color: var(--alpha-danger);
}


/* =========================================================
   16. GENERIC DYNAMIC ROWS
   ========================================================= */

.trade-flat-row {
    width: 100%;

    min-height: 68px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(92px, auto);

    align-items: center;

    gap: 12px;

    padding: 11px 0;

    border-bottom: 1px solid var(--alpha-border);

    background: transparent;
}

.trade-flat-row > div {
    min-width: 0;
}

.trade-flat-row > div:last-child {
    text-align: right;
}

.trade-flat-row__title {
    display: block;

    overflow: hidden;

    color: var(--alpha-text);

    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-flat-row__meta {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: var(--alpha-light-muted);

    font-size: 9px;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-flat-row__status {
    color: var(--alpha-text);

    font-size: 11px;
    line-height: 1.35;
    font-weight: 650;
}

.trade-flat-row__status.is-win {
    color: var(--alpha-success);
}

.trade-flat-row__status.is-loss,
.trade-flat-row__status.is-missed {
    color: var(--alpha-danger);
}


/* =========================================================
   17. HISTORY EMPTY / ERROR
   ========================================================= */

.trade-history-empty-state,
.trade-history-error-state {
    width: 100%;

    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 16px 0;

    border: 0;
    border-top: 1px solid var(--alpha-border);

    background: transparent;

    text-align: left;
}

.trade-history-empty-state strong,
.trade-history-error-state strong {
    color: var(--alpha-muted);

    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}

.trade-history-empty-state p,
.trade-history-error-state p {
    max-width: 320px;

    margin-top: 4px;

    color: var(--alpha-light-muted);

    font-size: 9px;
    line-height: 1.5;
    font-weight: 400;
}

.trade-history-error-state button {
    min-height: 36px;

    margin-top: 10px;

    padding: 7px 11px;

    border: 1px solid var(--alpha-border);
    border-radius: 8px;

    background: #FFFFFF;
    color: var(--alpha-text);

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   18. MODAL BACKDROP
   ========================================================= */

.trade-modal-backdrop {
    position: fixed;

    inset: 0;

    z-index: 1900;

    background: rgba(24, 26, 32, 0.48);

    opacity: 0;

    transition: opacity 220ms ease;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.trade-modal-backdrop.is-visible {
    opacity: 1;
}


/* =========================================================
   19. MODAL
   ========================================================= */

.trade-modal {
    position: fixed;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2000;

    max-height: 88vh;

    display: flex;
    flex-direction: column;

    padding-bottom: var(--safe-bottom);

    overflow: hidden;

    border-top: 1px solid var(--alpha-border);
    border-radius: 18px 18px 0 0;

    background: #FFFFFF;

    box-shadow:
        0 -18px 50px
        rgba(24, 26, 32, 0.15);

    transform: translateY(105%);

    transition: transform 240ms ease;
}

.trade-modal.is-open {
    transform: translateY(0);
}

.trade-modal__header {
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 15px;

    border-bottom: 1px solid var(--alpha-border);
}

.trade-modal__header > div {
    min-width: 0;
}

.trade-modal__header span {
    display: block;

    color: var(--alpha-muted);

    font-size: 9px;
    font-weight: 500;
}

.trade-modal__header h2 {
    margin-top: 2px;

    color: var(--alpha-text);

    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
}

.trade-modal__close {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--alpha-soft-bg);
    color: var(--alpha-muted);
}

.trade-modal__close svg {
    width: 18px;
    height: 18px;
}

.trade-modal__content {
    overflow-y: auto;

    padding: 16px 15px;
}

.trade-modal__content > p {
    color: var(--alpha-muted);

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   20. CONFIRMATION
   ========================================================= */

.trade-confirmation-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    gap: 0;

    margin-top: 14px;

    border-top: 1px solid var(--alpha-border);
}

.trade-confirmation-grid > div {
    min-width: 0;

    padding: 10px 0;

    border-bottom: 1px solid var(--alpha-border);

    background: transparent;
}

.trade-confirmation-grid dt {
    color: var(--alpha-muted);

    font-size: 9px;
    font-weight: 500;
}

.trade-confirmation-grid dd {
    margin-top: 3px;

    overflow: hidden;

    color: var(--alpha-text);

    font-size: 12px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-confirmation-checkbox {
    display: grid;

    grid-template-columns:
        18px
        minmax(0, 1fr);

    align-items: flex-start;

    gap: 9px;

    margin-top: 14px;

    padding: 10px 0;

    border: 0;

    background: transparent;
}

.trade-confirmation-checkbox input {
    width: 17px;
    height: 17px;

    margin-top: 1px;

    accent-color: var(--alpha-yellow);
}

.trade-confirmation-checkbox span {
    color: var(--alpha-muted);

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   21. MODAL BUTTONS
   ========================================================= */

.trade-modal__primary,
.trade-modal__secondary {
    width: 100%;

    min-height: 46px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 650;

    transition:
        background var(--transition),
        transform var(--transition);
}

.trade-modal__primary {
    margin-top: 14px;

    border: 1px solid var(--alpha-yellow);

    background: var(--alpha-yellow);
    color: var(--alpha-text);
}

.trade-modal__primary:hover:not(:disabled) {
    background: var(--alpha-yellow-hover);
}

.trade-modal__secondary {
    margin-top: 8px;

    border: 1px solid var(--alpha-border);

    background: #FFFFFF;
    color: var(--alpha-text);
}

.trade-modal__primary:active:not(:disabled),
.trade-modal__secondary:active {
    transform: scale(0.985);
}


/* =========================================================
   22. RESULT MODAL
   ========================================================= */

.trade-result-modal
.trade-modal__content {
    text-align: left;
}

.trade-result-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin: 0;

    border-radius: 50%;

    background: var(--alpha-soft-bg);
    color: var(--alpha-muted);

    font-size: 18px;
    font-weight: 700;
}

.trade-result-icon.is-win {
    background: var(--alpha-success-soft);
    color: var(--alpha-success);
}

.trade-result-icon.is-loss {
    background: var(--alpha-danger-soft);
    color: var(--alpha-danger);
}

.trade-result-label {
    display: block;

    margin-top: 10px;

    color: var(--alpha-text);

    font-size: 17px;
    font-weight: 600;
}

.trade-result-label.is-win {
    color: var(--alpha-success);
}

.trade-result-label.is-loss {
    color: var(--alpha-danger);
}

.trade-result-modal
.trade-modal__content > p {
    margin-top: 4px;
}

.trade-result-amount-card {
    margin-top: 14px;

    padding: 11px 0;

    border-top: 1px solid var(--alpha-border);
    border-bottom: 1px solid var(--alpha-border);

    background: transparent;
}

.trade-result-amount-card span {
    display: block;

    color: var(--alpha-muted);

    font-size: 9px;
    font-weight: 500;
}

.trade-result-amount-card strong {
    display: block;

    margin-top: 4px;

    color: var(--alpha-text);

    font-size: 16px;
    font-weight: 650;
}

.trade-result-amount-card strong.is-positive {
    color: var(--alpha-success);
}

.trade-result-amount-card strong.is-negative {
    color: var(--alpha-danger);
}


/* =========================================================
   23. HIDDEN LOGIC / COMPATIBILITY
   ========================================================= */

.trade-internal,
.trade-logic-only {
    display: none !important;
}

.trade-chart-section,
.trade-chart,
.trade-chart-shell,
.trade-chart-header,
.trade-chart-toolbar,
.trade-chart-footer,
.trade-timeframe-tabs,
.trade-workspace__tabs,
.trade-workspace__tab,
#positionsPanel,
#ordersPanel,
#copyTradesPanel {
    display: none !important;
}


/* =========================================================
   24. BOTTOM NAVIGATION
   100% SAME VISUAL SYSTEM AS ASSETS
   ========================================================= */

.bottom-navigation {
    position: fixed;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 800;

    padding-bottom: var(--safe-bottom);

    border-top: 1px solid rgba(234, 236, 239, 0.95);

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 -8px 28px
        rgba(24, 26, 32, 0.055);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bottom-navigation__inner {
    width: min(
        100%,
        var(--content-width)
    );

    min-height: var(--bottom-nav-height);

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    align-items: center;

    margin-inline: auto;
}

.bottom-navigation__item {
    position: relative;

    min-width: 0;
    min-height: 68px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 6px 2px;

    border-radius: 14px;

    background: transparent;
    color: var(--alpha-muted);

    font-size: 10px;
    line-height: 1.15;
    font-weight: 650;

    text-align: center;

    transition:
        color var(--transition),
        background var(--transition);
}

.bottom-navigation__item:hover {
    color: var(--alpha-text);
}

.bottom-navigation__item.is-active,
.bottom-navigation__item[aria-current="page"] {
    background: transparent;

    color: var(--alpha-text);

    font-weight: 750;
}

.bottom-navigation__item::before {
    content: none;
}

.bottom-navigation__item.is-active::before,
.bottom-navigation__item[aria-current="page"]::before {
    content: "";

    position: absolute;

    top: 4px;
    left: 50%;

    width: 34px;
    height: 3px;

    border-radius: 999px;

    background: var(--alpha-yellow);

    transform: translateX(-50%);
}

.bottom-navigation__icon {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;
}

.bottom-navigation__icon svg {
    width: 100%;
    height: 100%;
}

.bottom-navigation__item.is-active
.bottom-navigation__icon,
.bottom-navigation__item[aria-current="page"]
.bottom-navigation__icon {
    color: var(--alpha-text);
}


/* =========================================================
   25. NOSCRIPT
   ========================================================= */

.noscript-notice {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: #FFFFFF;
    color: var(--alpha-text);

    font-size: 14px;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   26. SMALL MOBILE
   MATCH ASSETS BREAKPOINT
   ========================================================= */

@media (max-width: 379px) {

    :root {
        --header-height: 58px;
        --bottom-nav-height: 72px;
    }

    .trade-container {
        width: min(
            calc(100% - 22px),
            var(--content-width)
        );
    }

    .trade-header__inner {
        grid-template-columns:
            36px
            minmax(0, 1fr)
            36px;
    }

    .trade-header__back {
        width: 36px;
        height: 36px;
    }

    .trade-page-title {
        font-size: 18px;
    }

    .trade-main {
        padding-top: 21px;
    }

    .trade-timing-section {
        gap: 12px;
    }

    .trade-timing-label {
        font-size: 11px;
    }

    .trade-timing-value {
        font-size: 15px;
    }

    .trade-section-heading h2 {
        font-size: 16px;
    }

    .copy-trade-action {
        max-width: none;
    }

    .trade-history-row {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(76px, auto);

        gap: 8px;
    }

    .trade-history-row__title {
        font-size: 11px;
    }

    .trade-history-row__result {
        font-size: 11px;
    }

    .bottom-navigation__item {
        font-size: 9px;
    }

    .bottom-navigation__icon {
        width: 22px;
        height: 22px;
    }
}


/* =========================================================
   27. TABLET
   ========================================================= */

@media (min-width: 600px) {

    :root {
        --header-height: 64px;
    }

    .trade-container {
        width: min(
            calc(100% - 40px),
            var(--content-width)
        );
    }

    .trade-main {
        padding-top: 30px;
    }

    .trade-timing-section,
    .trade-action-section,
    .trade-history-section {
        max-width: 720px;

        margin-inline: auto;
    }

    .copy-trade-action {
        max-width: 330px;
    }

    .bottom-navigation__item {
        font-size: 11px;
    }
}


/* =========================================================
   28. DESKTOP
   SAME AS ASSETS
   ========================================================= */

@media (min-width: 900px) {

    :root {
        --header-height: 68px;
    }

    .trade-main {
        padding-top: 36px;
    }

    .trade-timing-section,
    .trade-action-section,
    .trade-history-section {
        max-width: 740px;

        margin-inline: auto;
    }

    .bottom-navigation {
        right: 22px;
        bottom: 18px;
        left: 22px;

        max-width: 720px;

        margin-inline: auto;

        padding-bottom: 0;

        border: 1px solid var(--alpha-border);
        border-radius: 22px;

        background: rgba(255, 255, 255, 0.98);

        box-shadow:
            0 18px 50px
            rgba(24, 26, 32, 0.14);
    }

    .bottom-navigation__inner {
        min-height: 72px;
    }

    .bottom-navigation__item {
        min-height: 60px;

        margin: 5px;
    }

    .trade-modal {
        right: 50%;
        bottom: 20px;
        left: auto;

        width: min(
            calc(100% - 40px),
            520px
        );

        border: 1px solid var(--alpha-border);
        border-radius: 18px;

        transform:
            translate(
                50%,
                calc(100% + 40px)
            );
    }

    .trade-modal.is-open {
        transform:
            translate(
                50%,
                0
            );
    }
}


/* =========================================================
   29. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}