/* ============================================================
   Forex Calculators Suite – style.css
   Theme: Dark | Primary: #00d094
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
    --fxc-primary:   #00d094;
    --fxc-primary-d: #00a876;
    --fxc-primary-g: rgba(0, 208, 148, 0.12);
    --fxc-bg:        #0d0f14;
    --fxc-surface:   #151820;
    --fxc-surface2:  #1c2030;
    --fxc-border:    rgba(255,255,255,0.07);
    --fxc-text:      #e8eaf0;
    --fxc-muted:     #6b7280;
    --fxc-warn:      #f87171;
    --fxc-radius:    12px;
    --fxc-font:      'Space Grotesk', sans-serif;
    --fxc-mono:      'DM Mono', monospace;
    --fxc-maxwidth:  1140px;
}

/* ── Wrapper ── */
.fxc-wrap {
    font-family: var(--fxc-font);
    background: var(--fxc-bg);
    color: var(--fxc-text);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    font-size: 20px;
    max-width: var(--fxc-maxwidth);
    margin: 32px auto;
}
.fxc-wrap *, .fxc-wrap *::before, .fxc-wrap *::after { box-sizing: border-box; }

/* ── Hero ── */
.fxc-hero {
    position: relative;
    background: var(--fxc-surface);
    padding: 52px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    overflow: hidden;
    max-width: var(--fxc-maxwidth);
    margin: 0 auto 32px auto;
}
.fxc-hero__glow {
    position: absolute;
    top: -80px; right: -80px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(0,208,148,0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Left column */
.fxc-hero__inner { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }

.fxc-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fxc-primary);
    background: var(--fxc-primary-g);
    border: 1px solid rgba(0,208,148,0.25);
    border-radius: 100px;
    padding: 5px 14px;
    width: fit-content;
}
.fxc-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fxc-primary);
    animation: fxc-pulse 2s infinite;
}
@keyframes fxc-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(1.4); }
}

.fxc-hero__title {
    font-size: clamp(26px, 3vw, 45px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--fxc-text);
    letter-spacing: -.02em;
}
.fxc-hero__title span { color: var(--fxc-primary); }

.fxc-hero__sub {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--fxc-text);
    line-height: 1.5;
    max-width: 480px;
}

/* Feature list */
.fxc-hero__features {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.fxc-hero__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    color: var(--fxc-text);
    line-height: 1.5;
}
.fxc-hero__feat-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fxc-primary-g);
    border: 1px solid rgba(0,208,148,0.3);
    color: var(--fxc-primary);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* Hero note (e.g. "Bookmark this page…") */
.fxc-hero__note {
    margin: 4px 0 0;
    font-size: 13px;
    font-style: italic;
    color: var(--fxc-muted);
    line-height: 1.5;
}

/* ── Join Telegram CTA ── */
.fxc-hero__telegram {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #229ED9 0%, #1c87bb 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-family: var(--fxc-font);
    box-shadow: 0 8px 24px rgba(34,158,217,0.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.fxc-hero__telegram:hover,
.fxc-hero__telegram:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(34,158,217,0.42);
    filter: brightness(1.05);
    color: #fff;
    text-decoration: none;
}
.fxc-hero__telegram-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fxc-hero__telegram-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.fxc-hero__telegram-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}
.fxc-hero__telegram-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.fxc-hero__telegram-arrow {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    transition: transform .18s ease;
}
.fxc-hero__telegram:hover .fxc-hero__telegram-arrow {
    transform: translateX(4px);
}

/* ── Panel ── */
.fxc-panel-wrap { position: relative; }
.fxc-panel { display: none; }
.fxc-panel--active { display: block; animation: fxc-fadein .3s ease; }
@keyframes fxc-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form ── */
.fxc-form {
    background: var(--fxc-surface2);
    border: 1px solid var(--fxc-border);
    border-radius: var(--fxc-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fxc-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.fxc-form__row--single { grid-template-columns: 1fr; }

.fxc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fxc-field label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fxc-muted);
}
.fxc-field input,
.fxc-field select {
    background: var(--fxc-bg);
    border: 1px solid var(--fxc-border);
    border-radius: 8px;
    color: var(--fxc-text);
    font-family: var(--fxc-font);
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
.fxc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.fxc-field input:focus,
.fxc-field select:focus {
    border-color: var(--fxc-primary);
    box-shadow: 0 0 0 3px rgba(0,208,148,0.12);
}
.fxc-field input::placeholder { color: var(--fxc-muted); font-size: 16px; }

/* ── Button ── */
.fxc-btn {
    background: var(--fxc-primary);
    color: #0a0d10;
    border: none;
    border-radius: 8px;
    font-family: var(--fxc-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 13px 24px;
    cursor: pointer;
    width: 100%;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0,208,148,0.25);
}
.fxc-btn:hover {
    background: var(--fxc-primary-d);
    box-shadow: 0 6px 28px rgba(0,208,148,0.35);
    transform: translateY(-1px);
}
.fxc-btn:active { transform: translateY(0); }

/* ── Result ── */
.fxc-result {
    background: rgba(0,208,148,0.06);
    border: 1px solid rgba(0,208,148,0.2);
    border-radius: 10px;
    padding: 20px;
    animation: fxc-fadein .35s ease;
}
.fxc-result__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.fxc-result__item {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fxc-result__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fxc-muted);
}
.fxc-result__value {
    font-family: var(--fxc-mono);
    font-size: 20px;
    font-weight: 500;
    color: var(--fxc-primary);
}
.fxc-result__value--warn { color: var(--fxc-warn); }

/* ── Drawdown bar ── */
.fxc-drawbar {
    margin-top: 16px;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
}
.fxc-drawbar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fxc-primary), var(--fxc-warn));
    border-radius: 100px;
    width: 0%;
    transition: width .6s cubic-bezier(.25,.8,.25,1);
}
.fxc-drawbar__label {
    font-size: 14px;
    color: var(--fxc-muted);
    margin: 6px 0 0;
}

/* ── Disclaimer ── */
.fxc-disclaimer {
    font-size: 14px;
    color: var(--fxc-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Grid section ── */
.fxc-grid-section {
    position: relative;
    padding: 34px 40px 44px;
    max-width: var(--fxc-maxwidth);
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(0,208,148,0.04) 100%);
    border-top: 1px solid var(--fxc-border);
}
.fxc-grid-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}
.fxc-grid-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fxc-primary);
    margin: 0 auto 12px auto;
    text-align: center;
    background: linear-gradient(90deg, rgba(0,208,148,0.15), rgba(0,208,148,0.02));
    border-radius: 32px;
    padding: 8px 18px;
    display: inline-block;
    border: 1px solid rgba(0,208,148,0.25);
    box-shadow: 0 2px 14px rgba(0,208,148,0.10);
}
.fxc-grid-title {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--fxc-text);
}
.fxc-grid-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #a5adbd;
}
.fxc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* ── Card ── */
.fxc-card {
    background: linear-gradient(170deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.008) 65%);
    border: 1px solid var(--fxc-border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--fxc-text);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    cursor: pointer;
    min-width: 0;
    min-height: 236px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.fxc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0,208,148,0.22), transparent 55%);
    opacity: 0;
    transition: opacity .25s;
    z-index: -1;
}
.fxc-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(0,208,148,0), rgba(0,208,148,0.85), rgba(0,208,148,0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}
.fxc-card:hover {
    border-color: var(--fxc-primary);
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.34), 0 2px 20px rgba(0,208,148,0.14);
    z-index: 2;
}
.fxc-card:hover::before { opacity: 1; }
.fxc-card:hover::after { transform: scaleX(1); }

.fxc-card--active {
    border-color: var(--fxc-primary);
    background: linear-gradient(170deg, rgba(0,208,148,0.10) 0%, rgba(255,255,255,0.01) 90%);
    box-shadow: 0 0 0 1px rgba(0,208,148,0.65), 0 14px 34px rgba(0,208,148,0.22);
}
.fxc-card--active::before { opacity: 1; }
.fxc-card--active::after { transform: scaleX(1); }

/* Top row: icon + arrow */
.fxc-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.fxc-card__icon {
    font-size: 24px;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.fxc-card__arrow {
    font-size: 15px;
    color: var(--fxc-muted);
    transition: color .2s, transform .2s, opacity .2s;
    opacity: .78;
}
.fxc-card:hover .fxc-card__arrow,
.fxc-card--active .fxc-card__arrow {
    color: var(--fxc-primary);
    transform: translateX(5px);
    opacity: 1;
}

.fxc-card__name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.fxc-card__name em {
    font-style: normal;
    font-weight: 500;
    color: #96a0b2;
}
.fxc-card--active .fxc-card__name { color: var(--fxc-primary); }
.fxc-card--active .fxc-card__name em { color: var(--fxc-primary-d); }

.fxc-card__tagline {
    font-size: 12.5px;
    font-weight: 700;
    color: #7cf6ca;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.fxc-card__body {
    font-size: 16px;
    color: #abb4c5;
    line-height: 1.6;
    margin-top: 1px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .fxc-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .fxc-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 20px 24px;
    }
    .fxc-hero__glow { display: none; }
    .fxc-hero__sub { max-width: 100%; }
    .fxc-hero__telegram { padding: 12px 14px; gap: 12px; }
    .fxc-hero__telegram-icon { width: 38px; height: 38px; }
    .fxc-hero__telegram-title { font-size: 16px; }
    .fxc-form { padding: 20px; }
    .fxc-form__row { grid-template-columns: 1fr; }
    .fxc-grid-section { padding: 26px 20px 30px; }
    .fxc-grid-head { margin-bottom: 18px; }
    .fxc-grid-title { font-size: 24px; }
    .fxc-grid-subtitle { font-size: 14px; }
    .fxc-grid { grid-template-columns: 1fr; }
    .fxc-card { min-height: 220px; }
}
@media (max-width: 480px) {
    .fxc-grid { grid-template-columns: 1fr; }
    .fxc-hero__telegram { flex-wrap: wrap; }
}
