/* AutoWealthFX unified site theme v1.0
   One look for every page: same navy background, Georgia headings and gold accents as the landing page.
   Presentation only. It restyles the existing member/auth markup (Bootstrap + legacy classes);
   no form, field, URL or behaviour is changed. Loaded after style.css and store.css from base.html. */

/* ---------- page canvas: replaces the old full-screen photo background ---------- */
html { background: #091726; }
html body.awf-site,
html body.awf-site.site-background,
html body.awf-site:has(.auth-form-container) {
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-body-color: #f4f2ed;
    --bs-body-bg: #091726;
    --bs-border-color: rgba(211,225,238,.15);
    --bs-link-color: #dcc089;
    --bs-link-color-rgb: 220,192,137;
    --bs-link-hover-color: #f0d3a0;
    --bs-link-hover-color-rgb: 240,211,160;
    min-height: 100vh !important;
    margin: 0 !important;
    color: #f4f2ed !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    line-height: 1.6;
    background-color: #091726 !important;
    background-image: radial-gradient(ellipse at 70% 0%, rgba(102,135,158,.10), transparent 58%) !important;
    background-size: 100% 900px !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}
html body.awf-site::before,
html body.awf-site.site-background::before { content: none !important; display: none !important; background: none !important; }
.awf-site #main-content { outline: none; }
.awf-site #main-content > .container,
.awf-site #main-content > .container-fluid { padding-top: 56px !important; padding-bottom: 88px !important; margin-top: 0 !important; }
.awf-site #main-content > .container { max-width: 1180px; }
html body.awf-site .auth-wrapper,
html body.awf-site:has(.auth-form-container) .auth-wrapper {
    min-height: calc(100vh - 220px) !important;
    padding: 64px 18px 88px !important;
    background: transparent !important;
}

/* ---------- typography ---------- */
.awf-site :is(.container, .container-fluid, .auth-wrapper) :is(h1, h2, h3, .h4, .h5) {
    color: #f4f2ed !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    letter-spacing: -.02em;
    line-height: 1.18;
    text-shadow: none !important;
}
.awf-site #main-content > .container > h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 34px !important; }
.awf-site #main-content > .container > h2::before,
.awf-site .auth-form-container > h3::before {
    content: ""; display: block; width: 38px; height: 1px; background: #dcc089; margin-bottom: 20px;
}
.awf-site .auth-form-container > h3 { font-size: 1.95rem; margin-bottom: 26px !important; }
.awf-site .auth-form-container > h3::before { margin-inline: auto; }
.awf-site .form-container-dark h2.h4 { font-size: 1.85rem; }
.awf-site .form-container-dark h3.h5 { font-size: 1.3rem; }
.awf-site .card-header-dark-custom .h5 { font-size: 1.45rem; }
.awf-site .terms-page h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.awf-site :is(.container, .container-fluid, .auth-wrapper) p { color: #b1bcc7; }
.awf-site :is(.container, .container-fluid, .auth-wrapper) strong.text-white { color: #f0d3a0 !important; font-weight: 600; }
html body.awf-site .text-white-50 { color: #b1bcc7 !important; }
html body.awf-site .text-muted { color: #a9b6c1 !important; }
.awf-site .form-text { color: #94a2af !important; font-size: .78rem; }
.awf-site :is(.container, .container-fluid, .auth-wrapper) small { font-size: .82rem; }

/* ---------- panels: cards, form boxes, auth box, terms ---------- */
html body.awf-site .card-dark-custom,
html body.awf-site .form-container-dark,
html body.awf-site .auth-form-container,
html body.awf-site:has(.auth-form-container) .auth-form-container,
html body.awf-site .terms-page .terms-card,
html body.awf-site .card {
    background: #102235 !important;
    border: 1px solid rgba(211,225,238,.15) !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    color: #f4f2ed !important;
}
.awf-site .card:hover { transform: none !important; box-shadow: none !important; }
.awf-site .card-dark-custom { padding: 28px 30px; }
.awf-site .form-container-dark { padding: 38px 40px; }
.awf-site .auth-form-container { padding: 42px 40px !important; max-width: 470px; }
.awf-site .row .card-dark-custom.text-center { border-top: 1px solid rgba(220,192,137,.46) !important; }
.awf-site .card-header-dark-custom {
    background: #07111d !important;
    border-bottom: 1px solid rgba(211,225,238,.15) !important;
    border-radius: 0 !important;
    margin: -28px -30px 24px !important;
    padding: 18px 30px !important;
    color: #dcc089;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
}
.awf-site .card-header-dark-custom .h5 { text-transform: none; letter-spacing: -.02em; }
.awf-site .card-dark-custom .card-title { color: #f4f2ed !important; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.35rem; }
.awf-site .card-dark-custom .card-title.text-white-50 {
    color: #a9b6c1 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 14px;
}
.awf-site .card-dark-custom .card-text { color: #b1bcc7 !important; }
.awf-site .card-dark-custom .card-text.fs-2 {
    color: #dcc089 !important; font-family: Georgia, "Times New Roman", serif; font-weight: 400 !important;
    font-size: clamp(2.2rem, 3.2vw, 2.9rem) !important; line-height: 1.1; margin: 0;
}
.awf-site .terms-page { padding-top: 56px !important; padding-bottom: 88px !important; }
html body.awf-site .terms-page .terms-card :is(p, li, strong) { color: #c9d2da !important; }
html body.awf-site .terms-page .terms-card :is(h2, h3) { color: #dcc089 !important; text-shadow: none !important; font-family: Georgia, "Times New Roman", serif !important; font-weight: 400 !important; }
html body.awf-site .terms-page .terms-card h1 { color: #f4f2ed !important; text-shadow: none !important; }
html body.awf-site .terms-page .terms-card a { color: #dcc089 !important; }
html body.awf-site .terms-page .terms-card hr { border-color: rgba(211,225,238,.15) !important; }
.awf-site hr { border-color: rgba(211,225,238,.15) !important; opacity: 1; }

/* ---------- forms ---------- */
.awf-site .form-label,
.awf-site .auth-form-container .form-label,
.awf-site .form-container-dark .form-label,
.awf-site .card-dark-custom .form-label {
    color: #c4cdd6 !important; font-size: .8rem; font-weight: 500; letter-spacing: .01em; margin-bottom: 8px;
}
html body.awf-site :is(.form-control, .form-select, .form-control-dark),
html body.awf-site .auth-form-container .form-control {
    background-color: #091b2c !important;
    border: 1px solid #5c6f7f !important;
    border-radius: 2px !important;
    color: #f4f2ed !important;
    font-size: .9rem;
    min-height: 47px;
    padding: 11px 14px;
    box-shadow: none !important;
}
html body.awf-site :is(.form-control, .form-select, .form-control-dark)::placeholder { color: #8796a3 !important; }
html body.awf-site :is(.form-control, .form-select, .form-control-dark):focus {
    background-color: #0c2133 !important;
    border-color: #dcc089 !important;
    box-shadow: 0 0 0 3px rgba(220,192,137,.18) !important;
    color: #f4f2ed !important;
}
html body.awf-site :is(.form-control, .form-control-dark)[readonly] { color: #f0d3a0 !important; }
html body.awf-site .form-select,
html body.awf-site select.form-control-dark {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dcc089' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 10px !important;
}
.awf-site :is(.form-select, .form-control-dark) option { background: #091b2c; color: #f4f2ed; }
html body.awf-site .form-check-input { background-color: #091b2c; border-color: #5c6f7f; border-radius: 2px; }
html body.awf-site .form-check-input:checked { background-color: #dcc089; border-color: #dcc089; }
html body.awf-site .form-check-input:focus { box-shadow: 0 0 0 3px rgba(220,192,137,.18); border-color: #dcc089; }
.awf-site .form-check-label { color: #b1bcc7 !important; }
.awf-site .input-group > .form-control { border-right: 0 !important; }
.awf-site .text-danger.small { color: #eab9a3 !important; }

/* ---------- buttons (same as the landing page buttons) ---------- */
html body.awf-site .btn {
    border-radius: 2px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .01em;
    padding: 12px 22px;
    min-height: 47px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: none !important;
    transition: background-color .15s, border-color .15s, color .15s, transform .16s cubic-bezier(.23,1,.32,1);
}
html body.awf-site .btn:active { transform: scale(.97); }
html body.awf-site .btn.w-100, html body.awf-site .d-grid > .btn { display: flex; width: 100%; }
html body.awf-site .btn-lg { font-size: .9rem; min-height: 52px; }
html body.awf-site .btn-sm { min-height: 38px; padding: 8px 14px; font-size: .78rem; }
html body.awf-site :is(.btn-primary, .btn-success, .btn-danger, .btn-info, .btn-warning) {
    background-color: #dcc089 !important;
    border: 1px solid #dcc089 !important;
    color: #07111d !important;
}
html body.awf-site :is(.btn-primary, .btn-success, .btn-danger, .btn-info, .btn-warning):is(:hover, :focus-visible) {
    background-color: #f0d3a0 !important; border-color: #f0d3a0 !important; color: #07111d !important;
}
html body.awf-site :is(.btn-outline-light, .btn-secondary, .btn-outline-primary, .btn-outline-secondary) {
    background: transparent !important;
    border: 1px solid #617283 !important;
    color: #f4f2ed !important;
}
html body.awf-site :is(.btn-outline-light, .btn-secondary, .btn-outline-primary, .btn-outline-secondary):is(:hover, :focus-visible) {
    background: #162b40 !important; border-color: #dcc089 !important; color: #f0d3a0 !important;
}
html body.awf-site .btn-link {
    background: none !important; border: 0 !important; min-height: 0; padding: 8px 12px;
    color: #dcc089 !important; text-decoration: none; font-weight: 500;
}
html body.awf-site .btn-link:hover { color: #f0d3a0 !important; text-decoration: underline; text-underline-offset: 5px; }
html body.awf-site #installAppBtn {
    background-color: transparent !important; color: #f0d3a0 !important; border: 1px solid #8f805f !important;
    border-radius: 2px !important; font-weight: 600 !important; font-size: .85rem !important; padding: 12px 22px !important;
}
.awf-site :focus-visible { outline: 3px solid #f0d3a0; outline-offset: 3px; }

/* ---------- links ---------- */
html body.awf-site :is(.container, .container-fluid, .auth-wrapper) a:not(.btn) { color: #dcc089; text-decoration: none; }
html body.awf-site :is(.container, .container-fluid, .auth-wrapper) a:not(.btn):hover { color: #f0d3a0; text-decoration: underline; text-underline-offset: 4px; }
html body.awf-site .auth-form-container a { color: #dcc089 !important; }
html body.awf-site a.text-white-50 { color: #dcc089 !important; }

/* ---------- messages ---------- */
html body.awf-site .alert {
    background: #132b3e !important;
    border: 1px solid #355169 !important;
    border-left: 2px solid #dcc089 !important;
    border-radius: 2px !important;
    color: #d0d9e0 !important;
    font-size: .86rem;
}
html body.awf-site :is(.alert-danger, .alert-error, .alert-warning) { background: #302920 !important; border-color: #aa8762 !important; color: #f1dcc0 !important; }
html body.awf-site .alert-success { background: #12302f !important; border-color: #3f7a6f !important; border-left-color: #8fd1b0 !important; color: #d4efe5 !important; }
html body.awf-site .alert-info.fs-5 {
    background: #07111d !important; border: 1px solid rgba(211,225,238,.15) !important; border-left: 2px solid #dcc089 !important;
    color: #f0d3a0 !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.05rem !important;
    overflow-wrap: anywhere;
}

/* ---------- tables ---------- */
html body.awf-site .table,
html body.awf-site .table.table-dark {
    --bs-table-bg: #102235;
    --bs-table-color: #cad3dc;
    --bs-table-border-color: rgba(211,225,238,.15);
    --bs-table-striped-bg: #132a3f;
    --bs-table-striped-color: #cad3dc;
    --bs-table-hover-bg: #162b40;
    --bs-table-hover-color: #f4f2ed;
    --bs-table-active-bg: #162b40;
    border-color: rgba(211,225,238,.15);
    font-size: .84rem;
    margin-bottom: 0;
}
html body.awf-site .table > :not(caption) > * > * { padding: 16px 18px; vertical-align: middle; border-bottom-color: rgba(211,225,238,.15); }
html body.awf-site .table > thead > tr > th {
    --bs-table-bg: #07111d;
    background: #07111d;
    color: #b1bcc7;
    font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600;
}
.awf-site .table-responsive { border: 1px solid rgba(211,225,238,.15); }
.awf-site .card-dark-custom .card-body { padding: 0; }
html body.awf-site .table .text-success { color: #8fd1b0 !important; }
html body.awf-site .table .text-danger { color: #eab9a3 !important; }
html body.awf-site .badge {
    border-radius: 0 !important; font-weight: 500; font-size: .68rem; letter-spacing: .04em; padding: 6px 10px;
    border: 1px solid #527582; background: #15323d !important; color: #cae0e6 !important;
}
html body.awf-site .badge.bg-danger { background: #352d23 !important; border-color: #967850; color: #eacba1 !important; }
html body.awf-site .badge:is(.bg-primary, .bg-info) { background: rgba(220,192,137,.08) !important; border-color: rgba(220,192,137,.45); color: #f0d3a0 !important; }

/* ---------- lists (active investments) ---------- */
html body.awf-site .list-group-item-dark-custom,
html body.awf-site .list-group-item {
    background: #0c1d2e !important; border: 1px solid rgba(211,225,238,.15) !important; border-radius: 2px !important;
    color: #f4f2ed !important; padding: 14px 18px; margin-bottom: 8px;
}
.awf-site .list-group-item small { display: block; margin-top: 4px; }

/* ---------- payment page ---------- */
.awf-site .form-container-dark img.img-fluid { border: 6px solid #f4f2ed; border-radius: 2px !important; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
    .awf-site #main-content > .container,
    .awf-site #main-content > .container-fluid { padding-top: 36px !important; padding-bottom: 60px !important; }
    .awf-site .form-container-dark { padding: 28px 20px; }
    .awf-site .auth-form-container { padding: 32px 22px !important; }
    .awf-site .card-dark-custom { padding: 22px 20px; }
    .awf-site .card-header-dark-custom { margin: -22px -20px 20px !important; padding: 16px 20px !important; }
    html body.awf-site .auth-wrapper { padding: 40px 14px 60px !important; }
    .awf-site .form-container-dark > .d-flex { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html body.awf-site .btn { transition: none; } html body.awf-site .btn:active { transform: none; } }

/* Plain Bootstrap cards (password reset pages) use the same heading style as every other page. */
html body.awf-site .card :is(h1, h2, h3, .card-title) { color: #f4f2ed !important; font-family: Georgia, "Times New Roman", serif !important; font-weight: 400 !important; text-shadow: none !important; }
html body.awf-site .card .text-muted { color: #aeb8c3 !important; }
