@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Variables — Light Theme (Default) ===== */
:root {
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(240, 242, 250, 0.95);
    --bg-glass: rgba(99, 102, 241, 0.04);
    --bg-input: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-active: rgba(99, 102, 241, 0.5);
    --text-primary: #1a1d2e;
    --text-secondary: #5c6080;
    --text-muted: #8b8fa7;
    --accent: #6366f1;
    --accent-light: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-soft: rgba(99, 102, 241, 0.06);
    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.08);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.08);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.08);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.08);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --ticker-bg: linear-gradient(90deg, #eef0f6, #f5f7fb, #eef0f6);
    --ticker-item-bg: rgba(0, 0, 0, 0.03);
    --ticker-sep: rgba(0, 0, 0, 0.1);
    --hero-gradient1: rgba(99, 102, 241, 0.06);
    --hero-gradient2: rgba(139, 92, 246, 0.04);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --bg-primary: #0a0b10;
    --bg-secondary: #12141e;
    --bg-card: rgba(22, 25, 40, 0.85);
    --bg-card-hover: rgba(35, 38, 58, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.035);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f1f3f9;
    --text-secondary: #8b8fa7;
    --text-muted: #5c6080;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-soft: rgba(99, 102, 241, 0.08);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(10, 11, 16, 0.85);
    --ticker-bg: linear-gradient(90deg, #0a0b10, #0f1629, #0a0b10);
    --ticker-item-bg: rgba(255, 255, 255, 0.03);
    --ticker-sep: rgba(255, 255, 255, 0.12);
    --hero-gradient1: rgba(99, 102, 241, 0.07);
    --hero-gradient2: rgba(139, 92, 246, 0.05);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, var(--hero-gradient1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, var(--hero-gradient2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Theme transition (sadece ana konteynerler) */
body,
.top-nav,
.ticker-bar,
.calc-card,
.dropdown-menu,
.footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ===== Ticker Bar ===== */
.ticker-bar {
    background: var(--ticker-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

.ticker-inner::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.2rem 0.75rem;
    border-radius: 6px;
    background: var(--ticker-item-bg);
    transition: background 0.2s;
}

.ticker-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.ticker-icon {
    font-size: 0.85rem;
}

.ticker-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 0.15rem;
}

.ticker-buy {
    color: #22c55e;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ticker-sell {
    color: #f97316;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ticker-sep {
    color: var(--ticker-sep);
    margin: 0 0.1rem;
}

/* ===== Top Navigation ===== */
.top-nav {
    position: sticky;
    top: 28px;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-logo .accent {
    color: var(--accent-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link .nav-icon {
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    color: var(--text-primary);
    background: var(--accent-soft);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-glass);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* Light mode: show moon, hide sun */
.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: inline;
}

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-icon-light {
    display: inline;
}

[data-theme="dark"] .theme-icon-dark {
    display: none;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 0.25rem;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        min-width: auto;
        display: none;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
}

/* ===== Main Content ===== */
.main-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 64px - 300px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    animation: fadeInDown 0.4s ease-out;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.breadcrumb .sep {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== Hero Section (Homepage) ===== */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Search bar */
.search-bar {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

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

.search-bar .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* ===== Category Section ===== */
.category-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.5s ease-out;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.category-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Calculator cards grid */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.calc-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.calc-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    color: inherit;
}

.calc-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--accent-soft);
    flex-shrink: 0;
}

.calc-card .card-body {
    flex: 1;
    min-width: 0;
}

.calc-card .card-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.calc-card .card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.calc-card .card-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
    align-self: center;
}

.calc-card:hover .card-arrow {
    color: var(--accent-light);
    transform: translateX(3px);
}

/* ===== Calculator Page Layout ===== */
.calc-page-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.5s ease-out;
}

.calc-page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.calc-page-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Calculator card (main tool) */
.calc-tool {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.calc-tool:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Form elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

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

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b8fa7' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Radio/Checkbox group */
.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-option .radio-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.radio-option input:checked+.radio-label {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-light);
}

.radio-option .radio-label:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.btn-lg {
    padding: 0.9rem 2.5rem;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ai {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
}

.btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ===== Result Card ===== */
.result-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 1.5rem;
    animation: fadeInUp 0.4s ease-out;
    display: none;
}

.result-card.show {
    display: block;
}

.result-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.result-currency {
    font-size: 1rem;
    font-weight: 600;
    -webkit-text-fill-color: var(--text-secondary);
}

/* Result detail rows */
.result-details {
    display: grid;
    gap: 0.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row .label {
    color: var(--text-secondary);
}

.result-row .value {
    font-weight: 600;
}

.result-row.highlight {
    background: rgba(99, 102, 241, 0.06);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    margin: 0.25rem -0.85rem;
    border-bottom: none;
}

.result-row.highlight .label {
    color: var(--text-primary);
    font-weight: 600;
}

.result-row.highlight .value {
    color: var(--accent-light);
}

/* Chart container */
.chart-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    max-height: 300px;
}

/* ===== Content Section ===== */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.content-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 0.6rem;
}

.content-section p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.content-section ul,
.content-section ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.content-section li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

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

/* Info Box */
.info-box {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-box.info {
    background: var(--info-bg);
    border-left: 3px solid var(--info);
}

.info-box.warning {
    background: var(--warning-bg);
    border-left: 3px solid var(--warning);
}

.info-box.success {
    background: var(--success-bg);
    border-left: 3px solid var(--success);
}

.info-box .info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-box p {
    color: var(--text-primary);
    margin: 0;
}

/* ===== FAQ Section ===== */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-glass);
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-answer-inner {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.75;
}

/* ===== Related Cards ===== */
.related-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.related-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.related-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    color: inherit;
}

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

.related-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--accent-soft);
    flex-shrink: 0;
}

.related-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.related-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.6rem;
    line-height: 1.5;
}

.footer-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo .accent {
    color: var(--accent-light);
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.35rem;
}

.footer-col a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.footer-disclaimer {
    font-size: 0.72rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== Stats Counter (Homepage) ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ===== Table (for rate tables etc.) ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    text-align: left;
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: var(--bg-glass);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

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

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

    .result-value {
        font-size: 2rem;
    }

    .calc-tool {
        padding: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .stats-bar {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

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

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

    .container {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .stats-bar {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.35rem;
    }
}

/* ===== Admin Styles ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
}

.admin-sidebar .sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.sidebar-link.active {
    color: var(--accent-light);
    background: var(--accent-soft);
}

.admin-main {
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Admin cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.admin-stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-light);
}

.admin-stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Admin table */
.admin-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Login form */
.login-container {
    max-width: 400px;
    margin: 10vh auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.5s ease-out;
}

.login-container h1 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.35rem;
}

.login-container .login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.login-error {
    padding: 0.6rem 1rem;
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: var(--danger);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== Utility ===== */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-light);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

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

    .admin-sidebar {
        display: none;
    }
}

/* ===== Live Rates Bar ===== */
.live-rates-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.4s ease-out;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.live-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.live-rate-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
    text-align: center;
    transition: var(--transition);
}

.live-rate-item.clickable-rate {
    cursor: pointer;
}

.live-rate-item.clickable-rate:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.live-rate-item .rate-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.live-rate-item .rate-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.live-rate-item .rate-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.live-update-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: right;
}

/* ===== SEO: Last Updated Badge ===== */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: rgba(34, 197, 94, 0.06);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.last-updated .update-icon {
    font-size: 0.7rem;
}

.last-updated strong {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Footer links */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-links span {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.footer-update {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== Print Styles ===== */
@media print {

    .top-nav,
    .site-footer,
    .mobile-menu-btn,
    .btn,
    .search-bar,
    .related-section {
        display: none !important;
    }

    body::before {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .result-card {
        display: block !important;
        border: 1px solid #ccc;
    }
}