/* ============================================
   FOREX PIP CALCULATOR — PREMIUM DESIGN SYSTEM
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #080b14;
    --bg-secondary: #0d1117;
    --bg-card: #111827;
    --bg-card-hover: #161f30;
    --bg-input: #0f1623;
    --bg-input-hover: #131b2c;

    --border-primary: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 229, 160, 0.3);
    --border-active: rgba(0, 229, 160, 0.5);

    --accent: #00E5A0;
    --accent-dim: rgba(0, 229, 160, 0.15);
    --accent-glow: rgba(0, 229, 160, 0.25);
    --accent-gradient: linear-gradient(135deg, #00E5A0, #00C9FF);
    --accent-gradient-soft: linear-gradient(135deg, rgba(0, 229, 160, 0.15), rgba(0, 201, 255, 0.15));

    --text-primary: #f0f4f8;
    --text-secondary: #8b95a5;
    --text-muted: #525c6b;

    --red: #ff4757;
    --red-dim: rgba(255, 71, 87, 0.15);
    --green: #00E5A0;
    --green-dim: rgba(0, 229, 160, 0.15);
    --blue: #00C9FF;
    --blue-dim: rgba(0, 201, 255, 0.15);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(0, 229, 160, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.08), transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 201, 255, 0.06), transparent 70%);
    bottom: 20%;
    left: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.05), transparent 70%);
    top: 50%;
    right: 20%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-50px, 100px); }
    66% { transform: translate(50px, -50px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(80px, -60px); }
    66% { transform: translate(-30px, 80px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, -40px); }
}

/* Container */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==================
   NAVIGATION
   ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(8, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 160, 0.2);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-pro {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: super;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================
   HERO
   ================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 229, 160, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-primary);
}

/* Hero Trading Card */
.hero-visual {
    position: relative;
}

.trading-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.trading-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.trading-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.trading-pair-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border: 1px solid rgba(0,229,160,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.pair-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.pair-full {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.price-change {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
}

.price-change.positive {
    color: var(--green);
}

.mini-chart {
    margin: 0 -8px;
    height: 160px;
}

.mini-chart canvas {
    width: 100%;
    height: 100%;
}

.trading-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.card-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.card-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.card-stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    animation: floatBadge 6s ease-in-out infinite;
}

.badge-profit {
    top: -10px;
    right: -20px;
}

.badge-alert {
    bottom: 60px;
    left: -30px;
    animation-delay: 3s;
}

.badge-icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.badge-icon-dot.green { background: var(--green); }
.badge-icon-dot.blue { background: var(--blue); }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==================
   SECTION HEADERS
   ================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 229, 160, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================
   CALCULATOR
   ================== */
.calculator-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.calc-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.calc-card-glow {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.6;
}

.calc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-primary);
}

.calc-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Calculator Form */
.calc-form {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    appearance: none;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 40px 12px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.form-select:hover {
    border-color: var(--border-hover);
    background: var(--bg-input-hover);
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.pair-type-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 14px;
    transition: var(--transition);
}

.form-input:hover {
    border-color: var(--border-hover);
    background: var(--bg-input-hover);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Toggle Group */
.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.toggle-btn:not(.active):hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Direction Toggle */
.direction-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.direction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.direction-btn.buy.active {
    background: var(--green-dim);
    border-color: rgba(0, 229, 160, 0.3);
    color: var(--green);
}

.direction-btn.sell.active {
    background: var(--red-dim);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--red);
}

.direction-btn:not(.active):hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Lot Chips */
.lot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.lot-chip {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    min-width: 56px;
    text-align: center;
}

.lot-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.lot-chip:not(.active):hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-input-hover);
}

/* Calculate Button */
.calc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.calc-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: transform 0.6s;
}

.calc-submit:hover::before {
    transform: translateX(50%);
}

.calc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.calc-submit:active {
    transform: translateY(0);
}

/* Results */
.results-body {
    padding: 28px;
}

.results-placeholder {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.results-placeholder svg {
    margin-bottom: 16px;
}

.results-placeholder p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.result-main {
    text-align: center;
    padding: 24px;
    background: var(--accent-gradient-soft);
    border: 1px solid rgba(0, 229, 160, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.result-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-big {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.result-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.result-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 4px 0 16px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.result-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.result-item-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.result-item-value.profit { color: var(--green); }
.result-item-value.loss { color: var(--red); }

/* History */
.calc-history .calc-card-header {
    padding: 16px 24px;
}

.clear-history-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.clear-history-btn:hover {
    color: var(--red);
}

.history-body {
    padding: 16px 24px 24px;
    max-height: 340px;
    overflow-y: auto;
}

.history-body::-webkit-scrollbar {
    width: 4px;
}

.history-body::-webkit-scrollbar-track {
    background: transparent;
}

.history-body::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 2px;
}

.history-empty {
    text-align: center;
    padding: 24px 8px;
    color: var(--text-muted);
}

.history-empty svg {
    margin-bottom: 12px;
}

.history-empty p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.history-empty span {
    font-size: 0.8rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.history-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-input-hover);
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-pair {
    font-weight: 700;
    font-size: 0.9rem;
}

.history-details {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-item-right {
    text-align: right;
}

.history-pnl {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.history-pnl.profit { color: var(--green); }
.history-pnl.loss { color: var(--red); }

.history-pips {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================
   HOW IT WORKS
   ================== */
.how-it-works {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    max-width: 240px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.step-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 229, 160, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    margin-top: 64px;
    opacity: 0.4;
    flex-shrink: 0;
}

/* ==================
   FEATURES
   ================== */
.features {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 0.6;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 229, 160, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================
   CURRENCY PAIRS
   ================== */
.pairs-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.pairs-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    display: inline-flex;
    margin-left: 50%;
    transform: translateX(-50%);
}

.pair-tab {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.pair-tab.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.pair-tab:not(.active):hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.pairs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pair-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
}

.pair-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.pair-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pair-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pair-card-icon.major { background: var(--green-dim); color: var(--green); }
.pair-card-icon.minor { background: var(--blue-dim); color: var(--blue); }
.pair-card-icon.exotic { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.pair-card-icon.metals { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.pair-card-symbol {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.pair-card-pip {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================
   FAQ
   ================== */
.faq-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.open {
    border-color: rgba(0, 229, 160, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq-chevron {
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================
   SEO CONTENT SECTIONS
   ================== */
.content-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-primary);
}

.content-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 840px;
}

.content-section p strong {
    color: var(--text-primary);
}

/* Content Tables */
.content-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.content-table thead {
    background: rgba(0, 229, 160, 0.06);
    border-bottom: 1px solid var(--border-primary);
}

.content-table th {
    color: var(--accent);
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.content-table td {
    padding: 12px 18px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.content-table tbody tr:last-child td {
    border-bottom: none;
}

.content-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Content Steps List */
.content-steps-list {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.content-step:hover {
    border-color: var(--border-hover);
}

.content-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--bg-primary);
}

.content-step-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.content-step-body p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Pip Value Visual Chart */
.pip-value-visual {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pip-scale-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pip-scale-label {
    min-width: 150px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

.pip-scale-bar {
    height: 40px;
    min-width: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg-primary);
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.market-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: var(--transition);
}

.market-item:hover {
    border-color: var(--border-hover);
}

.market-item strong {
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

/* Content List */
.content-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.content-list li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.content-list li strong {
    color: var(--text-primary);
}

/* Learn Cards */
.learn-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.learn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.learn-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.learn-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.learn-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==================
   TRADING TOOLS GRID
   ================== */
.tools-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tool-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 229, 160, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover .tool-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.tool-card:hover .tool-icon svg {
    transform: scale(1.1);
}

.tool-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 160, 0.06);
    border: 1px solid rgba(0, 229, 160, 0.12);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tool-icon svg {
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: rgba(0, 229, 160, 0.1);
    border-color: rgba(0, 229, 160, 0.25);
    box-shadow: 0 0 16px rgba(0, 229, 160, 0.1);
}

.tool-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.tool-info h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-info h3 {
    color: var(--accent);
}

.tool-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.tool-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Highlight cards for instruments (gold, btc, us30, eurusd) */
.tool-card-highlight .tool-icon {
    border-color: rgba(255, 255, 255, 0.08);
}

.tool-card.tool-card-highlight:hover {
    border-color: rgba(255, 215, 0, 0.2);
}

/* Responsive: Tools Grid */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 16px 20px;
    }

    .tool-info h3 {
        font-size: 0.9rem;
    }

    .tool-info p {
        font-size: 0.78rem;
    }
}

/* ==================
   FOOTER
   ================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-primary);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-primary);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    max-width: 480px;
    text-align: right;
    line-height: 1.5;
}

/* Language Switcher */
.language-switcher {
    border-top: 1px solid var(--border-primary);
    padding: 24px 0;
    margin-top: 8px;
}

.language-switcher h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.lang-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 160, 0.15);
}

.lang-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 1px var(--accent);
}


/* ==================
   ANIMATIONS
   ================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pairs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        flex-wrap: wrap;
        gap: 16px;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: none;
        flex: 1 1 calc(50% - 8px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 11, 20, 0.97);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-primary);
    }

    .benefits-grid,
    .markets-grid {
        grid-template-columns: 1fr 1fr;
    }

    .learn-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pairs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-card {
        flex: 1 1 100%;
    }

    .benefits-grid,
    .markets-grid,
    .learn-cards {
        grid-template-columns: 1fr;
    }

    .content-heading {
        font-size: 1.4rem;
    }

    .content-section {
        padding: 60px 0;
    }

    .pip-scale-label {
        min-width: 110px;
        font-size: 0.78rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }

    .floating-badge {
        display: none;
    }

    .lot-chips {
        gap: 4px;
    }

    .lot-chip {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 48px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .direction-toggle {
        grid-template-columns: 1fr;
    }

    .pairs-grid {
        grid-template-columns: 1fr;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* Number input spinner hide */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ============================================
   INTERACTIVE ELEMENT STYLES
   ============================================ */

/* Content Layout: text + visual side by side */
.content-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-layout.reverse { direction: rtl; }
.content-layout.reverse > * { direction: ltr; }
.content-visual { display: flex; justify-content: center; align-items: center; }

/* Step Flow SVG */
.interactive-step-flow { width: 100%; max-width: 240px; }
.step-flow-svg { width: 100%; height: auto; }
.pulse-dot { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; r: 4; }
    50% { opacity: 1; r: 8; }
}
.step-node { transition: all 0.3s; }

/* Pip Ticker */
.interactive-pip-ticker {
    background: var(--bg-card); border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg); padding: 28px; text-align: center;
    min-width: 280px;
}
.ticker-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 12px; }
.ticker-display { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.ticker-digit { display: inline-block; padding: 4px 2px; }
.ticker-digit.pip-digit { color: var(--accent); background: var(--accent-dim); border-radius: 4px; padding: 4px 6px; animation: tickerGlow 3s ease-in-out infinite; }
.ticker-digit.pipette-digit { color: var(--text-muted); font-size: 1.8rem; }
.ticker-dot { color: var(--text-secondary); }
@keyframes tickerGlow { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 12px var(--accent-glow); } }
.ticker-arrows { margin: 8px 0; }
.ticker-pip-tag { font-size: 0.7rem; color: var(--accent); background: var(--accent-dim); padding: 4px 12px; border-radius: 20px; }
.ticker-info { margin-top: 16px; }
.ticker-info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.85rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-primary); }
.accent-text { color: var(--accent); font-weight: 600; }

/* Calculator Schematic */
.interactive-calc-schematic {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.schematic-box {
    background: var(--bg-card); border: 1px solid var(--border-primary);
    border-radius: var(--radius-md); padding: 20px 16px; text-align: center; min-width: 120px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.schematic-box:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.schematic-icon { font-size: 1.5rem; margin-bottom: 6px; }
.schematic-label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.schematic-items { display: flex; flex-direction: column; gap: 4px; }
.schematic-items span { font-size: 0.7rem; color: var(--text-muted); background: rgba(255,255,255,0.03); padding: 3px 8px; border-radius: 4px; }
.schematic-formula { font-size: 0.7rem; color: var(--accent); font-family: var(--font-heading); }
.schematic-arrow { flex-shrink: 0; opacity: 0.6; }

/* Benefit SVG Icons */
.benefit-icon-svg { width: 48px; height: 48px; margin-bottom: 16px; transition: transform 0.3s; }
.benefit-card:hover .benefit-icon-svg { transform: scale(1.15); }

/* Lot Slider Widget */
.interactive-lot-slider {
    background: var(--bg-card); border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg); padding: 28px; min-width: 260px;
}
.slider-title { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.slider-pair-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }
.slider-control { margin-bottom: 16px; }
.slider-control label { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 6px; }
.styled-slider { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,0.08); border-radius: 3px; outline: none; cursor: pointer; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px var(--accent-glow); }
.slider-value { text-align: center; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-top: 8px; }
.slider-result { text-align: center; margin: 12px 0; }
.slider-result-label { font-size: 0.75rem; color: var(--text-muted); }
.slider-result-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); }
.slider-lot-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--text-muted); }

/* Converter Flow */
.interactive-converter { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.converter-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-md); padding: 20px; text-align: center; min-width: 120px; transition: transform 0.3s; }
.converter-card:hover { transform: translateY(-4px); }
.converter-flag { font-size: 2rem; margin-bottom: 6px; }
.converter-currency { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.converter-amount { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent); margin: 4px 0; }
.converter-label { font-size: 0.7rem; color: var(--text-muted); }
.converter-arrow-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.converter-rate { font-size: 0.7rem; color: var(--accent); font-weight: 600; }
.arrow-animate { animation: arrowPulse 2s ease-in-out infinite; }
@keyframes arrowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Hoverable Table */
.content-table.hoverable tbody tr { transition: background 0.3s, transform 0.2s; }
.content-table.hoverable tbody tr:hover { background: rgba(0, 229, 160, 0.06); transform: scale(1.01); }

/* Pip Counter Widget */
.interactive-pip-counter {
    background: var(--bg-card); border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg); padding: 28px; text-align: center; min-width: 220px;
}
.counter-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 12px; }
.counter-display { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.counter-unit { font-size: 1rem; color: var(--text-muted); margin-left: 6px; }
.counter-buttons { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.counter-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-primary); background: var(--bg-card); color: var(--text-primary); font-size: 1.5rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.counter-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.counter-info { font-size: 0.85rem; color: var(--text-secondary); }

/* Animated Bars */
.animated-bars .pip-scale-bar { width: 0; transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
.animated-bars.visible .pip-scale-bar { width: var(--bar-width, 0%); }

/* Leverage Gauge */
.interactive-leverage-gauge {
    background: var(--bg-card); border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg); padding: 28px; text-align: center; min-width: 240px;
}
.gauge-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 8px; }
.gauge-display { position: relative; width: 200px; height: 120px; margin: 0 auto 12px; }
.gauge-svg { width: 100%; height: 100%; }
.gauge-value { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.gauge-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; }
.gauge-risk { font-size: 0.85rem; font-weight: 600; margin-top: 8px; color: var(--accent); transition: color 0.3s; }

/* Market Icons */
.market-icon { font-size: 1.5rem; margin-bottom: 8px; }
.animated-markets .market-item { transition: transform 0.3s, box-shadow 0.3s; }
.animated-markets .market-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* Candlestick Chart */
.interactive-candlestick { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); padding: 16px; }
.candlestick-svg { width: 100%; height: auto; }
.candle { animation: candleFade 0.6s ease-out backwards; }
.candle.c1 { animation-delay: 0.1s; } .candle.c2 { animation-delay: 0.2s; }
.candle.c3 { animation-delay: 0.3s; } .candle.c4 { animation-delay: 0.4s; }
.candle.c5 { animation-delay: 0.5s; } .candle.c6 { animation-delay: 0.6s; }
@keyframes candleFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Flip Cards */
.flip-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flip-card { perspective: 600px; height: 180px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    border-radius: var(--radius-md); border: 1px solid var(--border-primary);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 16px; text-align: center;
}
.flip-card-front { background: var(--bg-card); }
.flip-card-front h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--text-primary); margin-bottom: 8px; }
.flip-hint { font-size: 0.65rem; color: var(--text-muted); }
.flip-card-back { background: var(--bg-secondary); transform: rotateY(180deg); border-color: var(--border-hover); }
.flip-card-back h3 { font-family: var(--font-heading); font-size: 0.85rem; color: var(--accent); margin-bottom: 8px; }
.flip-card-back p { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; }

/* Responsive: Interactive Elements */
@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; gap: 32px; }
    .content-layout.reverse { direction: ltr; }
    .flip-cards { grid-template-columns: repeat(3, 1fr); }
    .interactive-calc-schematic { flex-direction: column; }
}
@media (max-width: 600px) {
    .flip-cards { grid-template-columns: repeat(2, 1fr); }
    .flip-card { height: 150px; }
    .ticker-display { font-size: 1.8rem; }
}
