/* ============================================================
   Swap Adipex Ai — Theme: Steel Blue + Stone
   New muted "fintech" palette, applied via CSS variables
   ============================================================ */

:root {
    /* Primary */
    --color-primary: #47607a;
    --color-primary-dark: #2a3a49;
    --color-primary-deep: #3f526a;
    --color-primary-soft: #6c7c8c;

    /* Accent (bronze/stone) */
    --color-accent: #a98f6a;
    --color-accent-soft: #b9a07e;
    --color-accent-deep: #8d7351;

    /* Neutrals */
    --color-text: #1a232b;
    --color-subtext: #5d6b7a;
    --color-border: #cdd3da;
    --color-bg: #ffffff;
    --color-bg-soft: #f4f6f8;
    --color-bg-softer: #eef1f5;
    --color-bg-card: #ffffff;

    /* Status colors (kept restrained) */
    --color-success: #4f7a55;
    --color-danger:  #a04848;
    --color-warning: #c08a3a;
}

/* ---------- Typography & smoothing ---------- */
body {
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); }
a:hover { color: var(--color-accent-deep); }
.accent { color: var(--color-primary); }
.accent-1 { color: var(--color-primary); }

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6,
.title-1, .title-2, .title-3, .title-4, .title-form {
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}

.title-1 { font-weight: 800; }
.title-2 { font-weight: 700; }
.title-3, .title-4 { font-weight: 700; }

/* H1 lowercase keyword displayed visually as "Swap Adipex Ai" via CSS */
.hero-h1 { text-transform: capitalize; }

/* ---------- Backgrounds ---------- */
.bg, .bg_gray { background-color: var(--color-bg-soft) !important; }
.bg_grad {
    background: linear-gradient(180deg, var(--color-bg-softer) 0%, var(--color-bg) 100%);
}

/* ---------- Buttons ---------- */
.btn,
.sdk-register-btn,
.sdk-login-button,
.modal-button,
.cta-inline__btn {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(42, 58, 73, 0.15);
}

.btn:hover,
.sdk-register-btn:hover,
.sdk-login-button:hover,
.modal-button:hover,
.cta-inline__btn:hover {
    background: var(--color-primary-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(42, 58, 73, 0.22);
}

.btn-join {
    background: var(--color-accent) !important;
    border-color: var(--color-accent);
}
.btn-join:hover {
    background: var(--color-accent-deep) !important;
}

/* ---------- Forms ---------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    background: #fff;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text);
    border-radius: 8px;
}
.form-control:focus { border-color: var(--color-primary) !important; outline: none; }

.form__bg, .form-bg {
    background: #ffffff !important;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(42, 58, 73, 0.08);
}
.title-form { color: var(--color-primary-dark) !important; }

/* ---------- Header / nav ---------- */
.header {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.menu__link { color: var(--color-primary-dark) !important; font-weight: 600; }
.menu__link:hover, .menu__link.active { color: var(--color-accent-deep) !important; }
.menu__link.active { border-bottom: 2px solid var(--color-accent); }

.header .logo__text { color: var(--color-primary-dark) !important; }
.iti__selected-dial-code { color: var(--color-primary) !important; }

/* ---------- Cards / blocks ---------- */
.block, .hold, .points, .trade, .faq, .testimonials, .cta-inline {
    color: var(--color-text);
}

.hold__column, .point, .testimonial-card, .qa-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

.bg_gray { background: var(--color-bg-softer) !important; }

.icon-square, .icon-circle {
    background: var(--color-bg-softer);
    border-radius: 10px;
}
.icon-circle { border-radius: 50%; }

/* ---------- QA / FAQ ---------- */
.qa-best-answer .qa-card {
    background: #ffffff;
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 14px;
    box-shadow: 0 4px 12px rgba(42,58,73,0.06);
}
.qa-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.spoiler__title { color: var(--color-primary-dark) !important; font-weight: 600; }
.spoiler__item { border: 1px solid var(--color-border); border-radius: 10px; }

/* ---------- Testimonials ---------- */
.testimonial-card .quote { color: var(--color-accent); }
.testimonial-card .name { color: var(--color-primary-dark); }
.testimonial-card .role { color: var(--color-subtext); }

/* ---------- Footer ---------- */
.footer {
    background: var(--color-primary-dark);
    color: #cbd2d9;
}
.footer .logo__text, .footer .copyright span,
.footer .nav__link a { color: #ffffff !important; }
.footer .nav__link a:hover { color: var(--color-accent-soft) !important; }
.footer p { color: #b5bdc6; }
.footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }

/* ---------- CTA Inline ---------- */
.cta-inline__box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-radius: 18px;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-inline__title { color: #ffffff !important; font-size: 24px; font-weight: 800; margin: 0; }
.cta-inline__text  { color: #d8e0e8 !important; margin: 4px 0 0; }
.cta-inline__btn   { background: var(--color-accent) !important; border-color: var(--color-accent) !important; }
.cta-inline__btn:hover { background: var(--color-accent-deep) !important; }

/* ---------- Modal ---------- */
.modal-content { border-radius: 16px; }
.modal-title  { color: var(--color-primary-dark); }
.modal-icon svg { color: var(--color-primary); }

/* ---------- Chat widget ---------- */
.chat-button { background: var(--color-primary); }
.chat-button:hover { background: var(--color-primary-dark); }
.chat-bubble { background: var(--color-primary-dark); color: #fff; }

/* ---------- Trading warning ---------- */
.trading-warning {
    background: rgba(26, 35, 43, 0.92);
}
.trading-warning__btn--confirm {
    background: var(--color-accent) !important;
}

/* ---------- Hero arrow ---------- */
.arrow img { filter: hue-rotate(0deg) saturate(0.7); }

/* ---------- Subpage layout ---------- */
.subpage {
    padding: 56px 0 72px;
    background: var(--color-bg);
}
.subpage .container > h1 {
    color: var(--color-primary-dark);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px;
}
.subpage h2 { margin-top: 32px; margin-bottom: 12px; font-size: 22px; }
.subpage h3 { margin-top: 22px; margin-bottom: 8px; font-size: 18px; }
.subpage p, .subpage li { color: var(--color-text); line-height: 1.7; }
.subpage ul { padding-left: 22px; margin: 10px 0 18px; }
.subpage ul li { list-style: disc; margin-bottom: 6px; }

.subpage .form-wrap {
    max-width: 560px;
    margin: 32px auto 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 10px 28px rgba(42,58,73,0.08);
}

/* Small fixes */
/* Icon circles: dark fills so the white SVG icon inside is clearly visible */
.icon-1 { background: var(--color-primary) !important; }       /* steel blue   */
.icon-2 { background: var(--color-accent) !important; }        /* bronze       */
.icon-3 { background: var(--color-primary-dark) !important; }  /* deeper navy  */
.icon-circle img,
.icon-square img,
.icon img {
    filter: brightness(0) invert(1);   /* force icon to pure white on the dark circle */
}
/* Story strip icons in source were dark navy already — keep them dark with white icon */
.story ul .icon { background-color: var(--color-primary) !important; }

/* ---------- Readability: maximize body text contrast on light cards ---------- */
body, p, li, span:not([class*="title"]):not([class*="copyright"]):not(.iti__country-name):not(.iti__dial-code) {
    color: var(--color-text);
}
/* Keep these dark-on-light explicitly even if other rules try to lighten them */
.bg_gray, .hold__column, .block, .card,
.bg_gray p, .hold__column p, .block p, .card p, .points p,
.subpage p, .subpage li,
.spoiler__text {
    color: var(--color-text) !important;
}
.bg_gray p, .hold__column p { line-height: 1.65; font-weight: 400; }
/* Footer p stays light on dark bg — re-assert */
.footer p, .footer .copyright { color: #b5bdc6 !important; }
.footer b, .copyright span { color: #fff !important; }
/* Risk-warning text stays light on dark bg — re-assert */
.trading-warning__text, .trading-warning__text p { color: #e7ecf1 !important; }
.trading-warning__expanded p { color: #d6dde4 !important; }

/* Hero CTA button (in case it's small) */
.arrow-row a {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(42, 58, 73, 0.15);
    transition: background 0.25s ease, transform 0.15s ease;
}
.arrow-row a:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

/* Make CTA buttons high-contrast on white sections */
#scrollButton1, #scrollButton2, #ctaScrollBtn {
    background: var(--color-primary) !important;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    margin-top: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}
#scrollButton1:hover, #scrollButton2:hover, #ctaScrollBtn:hover {
    background: var(--color-primary-dark) !important;
}

/* iTI flag dropdown look */
.iti__country-list { color: var(--color-text); }

/* Slight refinement of links inside text */
.subpage a { color: var(--color-primary); font-weight: 600; }
.subpage a:hover { color: var(--color-accent-deep); }

/* ---------- Social icons (footer) ---------- */
.social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 10px 0 0;
}
.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: background .2s ease, transform .2s ease;
    text-decoration: none;
    flex: 0 0 36px;
}
.social-media a:hover { background: var(--color-accent); transform: translateY(-1px); }
.social-media img,
.social-media svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ---------- Trading warning (bottom banner) — readable on dark bg ---------- */
.trading-warning {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: rgba(26, 35, 43, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #e7ecf1;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.trading-warning__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.trading-warning__left { flex: 1 1 480px; min-width: 0; }
.trading-warning__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.trading-warning__text { color: #e7ecf1; font-size: 13px; line-height: 1.55; }
.trading-warning__text strong { color: #ffffff; font-weight: 700; }
.trading-warning__text p { margin: 4px 0 10px; color: #d6dde4; }
.trading-warning__text a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.trading-warning__text a:hover { color: #d0b685; }
.trading-warning__expanded { display: none; max-height: 38vh; overflow-y: auto; padding-right: 6px; }
.trading-warning__expanded strong { display: block; margin-top: 8px; }
.trading-warning__expanded strong:first-child { margin-top: 0; }
.trading-warning--outline {
    display: inline-block;
    margin-top: 6px;
    color: #cfd5db;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
}
.trading-warning--outline:hover { color: #fff; }
.trading-warning__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    transition: background .2s ease, transform .15s ease;
}
.trading-warning__btn--confirm {
    background: var(--color-accent) !important;
    color: #1a232b;
}
.trading-warning__btn--confirm:hover { background: #b89a72 !important; transform: translateY(-1px); }
.trading-warning__close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfd5db;
    font-size: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    transition: background .2s ease, color .2s ease;
}
.trading-warning__close:hover { background: rgba(255,255,255,0.14); color: #fff; }

@media (max-width: 640px) {
    .trading-warning__container { padding: 12px 14px; gap: 12px; }
    .trading-warning__right { width: 100%; justify-content: space-between; }
    .trading-warning__btn { flex: 1 1 auto; padding: 10px 14px; }
    .trading-warning__text { font-size: 12.5px; }
}

/* Push page content up so warning banner doesn't cover footer (only on pages with the banner) */
body:has(#trading-warning) { padding-bottom: 110px; }
@media (max-width: 640px) {
    body:has(#trading-warning) { padding-bottom: 180px; }
}
