:root {
    --bg: #070b14;
    --bg-elevated: #0d1321;
    --surface: rgba(17, 24, 39, 0.72);
    --surface-hover: rgba(30, 41, 59, 0.85);
    --border: rgba(148, 163, 184, 0.12);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --accent: #22d3ee;
    --positive: #34d399;
    --negative: #f87171;
    --neutral: #94a3b8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(99, 102, 241, 0.22), transparent),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(34, 211, 238, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(99, 102, 241, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.container { width: min(1280px, 92%); margin: 0 auto; position: relative; z-index: 1; }
.container-narrow { width: min(560px, 92%); }
.container-contact { width: min(960px, 92%); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 20, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.65rem 0;
    column-gap: 0.85rem;
    position: relative;
    min-height: 3.25rem;
}

.logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.main-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    justify-self: center;
    position: relative;
    z-index: 3;
}

.header-end {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-actions.nav-actions-menu {
    display: none;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.4rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

.site-logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo .site-logo-img { height: 28px; max-width: 160px; }

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4)); }
    50% { filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.8)); }
}

.main-nav .nav-pill {
    max-width: 100%;
}

.nav-pill {
    display: flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-label-compact { display: none; }

.nav-inline-link {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-inline-link:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
}

.nav-inline-link.is-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.14);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.22);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger,
.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.62rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.nav-dropdown-trigger:hover,
.nav-user-trigger:hover,
.nav-dropdown.is-open > .nav-dropdown-trigger,
.nav-dropdown.is-open > .nav-user-trigger {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
}

.nav-dropdown-trigger.is-active,
.nav-user-trigger.is-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.14);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.22);
}

.nav-user-trigger {
    padding: 0.3rem 0.55rem 0.3rem 0.3rem;
    gap: 0.45rem;
}

.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e0e7ff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(34, 211, 238, 0.65));
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35);
    flex-shrink: 0;
}

.nav-user-label {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
}

.nav-dropdown-caret {
    flex-shrink: 0;
    opacity: 0.45;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown-trigger:hover .nav-dropdown-caret,
.nav-user-trigger:hover .nav-dropdown-caret,
.nav-dropdown.is-open .nav-dropdown-caret {
    opacity: 0.85;
}

.nav-dropdown.is-open .nav-dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    min-width: 13.5rem;
    padding: 0.4rem;
    background: rgba(13, 19, 33, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
}

.nav-dropdown-end .nav-dropdown-menu {
    left: auto;
    right: 0;
    transform-origin: top right;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@media (hover: hover) and (min-width: 901px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

.nav-dropdown-header {
    padding: 0.55rem 0.75rem 0.65rem;
    margin-bottom: 0.15rem;
}

.nav-dropdown-header-text {
    min-width: 0;
    flex: 1;
}

.nav-dropdown-header-avatar {
    display: none;
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.nav-dropdown-header-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.nav-dropdown-header-email {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-dropdown-item {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-dropdown-item:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
}

.nav-dropdown-item.is-active {
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.18);
}

.nav-dropdown-item-muted { color: var(--text-muted); }

.nav-dropdown-form { margin: 0; }
.nav-dropdown-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.nav-dropdown-divider {
    height: 1px;
    margin: 0.35rem 0.5rem;
    background: rgba(148, 163, 184, 0.12);
}

.nav-portfolio-link {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    transition: var(--transition);
}

.nav-portfolio-link:hover {
    color: #fff;
    background: rgba(34, 211, 238, 0.18);
    border-color: rgba(34, 211, 238, 0.4);
}

.nav-portfolio-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(99, 102, 241, 0.25));
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.nav-auth-link {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-auth-link:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
}

.nav-auth-cta {
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transition: var(--transition);
}

.nav-auth-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45);
}

.currency-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    padding: 0.15rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.65);
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.currency-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
}
.currency-toggle-btn:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.currency-toggle-btn.is-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.35);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.2));
    border: 1px solid rgba(129, 140, 248, 0.45);
    font-weight: 600;
}
.nav-link-accent { color: var(--accent) !important; }
.nav-link-accent.is-active {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.4), rgba(52, 211, 153, 0.15));
    border-color: rgba(129, 140, 248, 0.55);
}
.nav-auth-btn { margin-left: 0; }

@media (max-width: 1280px) {
    .nav-label-wide { display: none; }
    .nav-label-compact { display: inline; }
}

@media (max-width: 1100px) {
    .nav-user-label { display: none; }
    .nav-user-trigger { padding: 0.25rem; }
}

.mobile-menu-btn {
    display: none;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--text);
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.mobile-menu-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 18px;
    height: 18px;
}

.mobile-menu-bars span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.mobile-menu-btn.is-active .mobile-menu-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.is-active .mobile-menu-bars span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-menu-btn.is-active .mobile-menu-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-backdrop,
.mobile-nav-drawer-head,
.mobile-nav-label { display: none; }

@media (min-width: 901px) {
    .mobile-nav-drawer-head,
    .mobile-nav-label {
        display: none !important;
    }

    .mobile-nav-body {
        overflow: visible;
        padding: 0;
    }
}

.mobile-menu-btn:hover {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(129, 140, 248, 0.35);
}

.mobile-menu-btn.is-active {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Cards */
.card-glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.3); }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero-content { max-width: 680px; margin-bottom: 3rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin: 1rem 0; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat-card {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat-label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-hover);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.badge-sm { font-size: 0.72rem; padding: 0.2rem 0.5rem; background: var(--bg-elevated); border-radius: 6px; }

/* Sections */
.main-content { position: relative; z-index: 1; min-height: calc(100vh - 200px); }
.section { padding: 3rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; }
.link-arrow { color: var(--accent); text-decoration: none; font-weight: 500; }
.link-arrow:hover { text-decoration: underline; }

.page-header { padding: 2.5rem 0 1rem; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-subtitle { color: var(--text-muted); margin-top: 0.35rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}
.contact-info { padding: 1.5rem; }
.contact-info h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.contact-info-email { margin: 1rem 0; }
.contact-info-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-info-list { margin: 1rem 0; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.9rem; }
.contact-info-list li { margin-bottom: 0.35rem; }
.contact-info-note { font-size: 0.85rem; margin-top: 1rem; }
.contact-form { padding: 1.5rem; }
.contact-form-title { font-size: 1.15rem; margin-bottom: 0.25rem; }
.contact-textarea { resize: vertical; min-height: 140px; font-family: inherit; }
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Tables */
.table-wrap { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.data-table th a { color: inherit; text-decoration: none; }
.data-table th a:hover { color: var(--accent); }
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: var(--surface-hover); }
.clickable-row { cursor: pointer; }
.sticky-header thead { position: sticky; top: 0; background: var(--bg-elevated); z-index: 2; }
.fund-code {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
}
.fund-code-lg { font-family: var(--mono); color: var(--accent); }
.fund-name { max-width: 280px; }
.mono { font-family: var(--mono); font-size: 0.85rem; }
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.neutral { color: var(--neutral) !important; }
.empty-state { text-align: center; padding: 3rem !important; color: var(--text-muted); }
.empty-state a { color: var(--accent); }

/* Fund toolbar */
.fund-toolbar { padding: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.fund-type-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.type-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}
.type-tab:hover { color: var(--text); background: var(--surface-hover); }
.type-tab.active { color: white; background: var(--primary); border-color: var(--primary); }
.search-form { display: flex; gap: 0.5rem; flex: 1; max-width: 420px; }

.input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }

.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mini-stat {
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.mini-stat span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.mini-stat strong { font-size: 1.1rem; }

.pagination { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.pagination-meta { font-size: 0.82rem; color: var(--text-muted); }
.pagination-controls { display: flex; gap: 0.35rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.35);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn-nav { font-weight: 700; }
.page-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.page-btn-ellipsis { border: none; background: transparent; min-width: auto; padding: 0 0.2rem; }

/* Market */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.market-group { padding: 1.25rem; }
.market-group h3 { margin-bottom: 1rem; font-size: 1rem; }
.market-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.market-item:last-child { border-bottom: none; }
.market-price { text-align: right; }
.market-price span { display: block; }
.market-section { margin-bottom: 2.5rem; }
.market-section h2 { margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.market-icon { opacity: 0.7; }
.market-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.market-card { padding: 1.25rem; }
.market-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.75rem; }
.market-card-price { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.35rem; }
.market-card-change { font-size: 0.9rem; font-weight: 600; }
.market-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Tabs */
.tabs { display: flex; gap: 0.35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* Fund detail */
.fund-detail-header { display: flex; justify-content: space-between; align-items: start; gap: 2rem; flex-wrap: wrap; }

.share-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

.chart-header .share-actions {
    margin-top: 0;
    flex-shrink: 0;
}

.share-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.share-action-btn:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(129, 140, 248, 0.35);
    transform: translateY(-1px);
}

.share-action-btn.is-copied {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.1);
}
.fund-price-box { padding: 1.5rem 2rem; text-align: right; min-width: 200px; }
.price-label { display: block; font-size: 0.8rem; color: var(--text-muted); }
.price-value { display: block; font-size: 2rem; font-weight: 800; margin: 0.25rem 0; }
.price-change { font-size: 0.9rem; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.detail-main { min-width: 0; }
.chart-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.chart-return { font-weight: 700; font-size: 0.95rem; }
.returns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
.return-card { padding: 1rem; text-align: center; }
.return-card span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.return-card strong { font-size: 1.1rem; }
.info-card { padding: 1.25rem; margin-bottom: 1rem; }
.info-card h3 { margin-bottom: 1rem; font-size: 1rem; }
.info-list div { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.info-list dt { color: var(--text-muted); }
.info-list dd { font-weight: 600; text-align: right; }

/* Stock detail (Fonoloji tarzı) */
.stock-breadcrumb { padding: 1rem 0 0; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--text); font-weight: 600; }
.stock-detail-header .page-header { padding-top: 0.5rem; }
.stock-meta-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 0.75rem; font-size: 0.88rem; color: var(--text-muted); }
.stock-meta-row strong { color: var(--text); }
.stock-updated { opacity: 0.8; }
.chart-period-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.chart-period-btn {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chart-period-btn:hover { border-color: var(--accent); color: var(--accent); }
.chart-period-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.stock-chart-card.loading { opacity: 0.65; pointer-events: none; }
.chart-wrap { position: relative; min-height: 280px; }
.stock-returns-grid { margin-bottom: 1.5rem; }
.stock-heatmap-card, .stock-fundamentals-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.stock-heatmap-card h2, .stock-fundamentals-card h2 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.section-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.perf-heatmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }
.heat-cell {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.15s ease;
}
.heat-cell:hover { transform: translateY(-2px); }
.heat-pos { background: rgba(52, 211, 153, calc(0.08 + var(--heat, 20) / 200)); }
.heat-neg { background: rgba(248, 113, 113, calc(0.08 + var(--heat, 20) / 200)); }
.heat-neutral { background: rgba(148, 163, 184, 0.08); }
.heat-label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.heat-value { font-size: 0.95rem; font-weight: 700; }
.fundamentals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.fundamental-item { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.fundamental-item span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.fundamental-item strong { font-size: 1rem; }
.fundamentals-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); opacity: 0.85; }
.section-heading-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.badge-muted { background: rgba(148, 163, 184, 0.12); color: var(--text-muted); border: 1px solid var(--border); }
.stock-funds-card, .stock-kap-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.fund-holder-list { display: flex; flex-direction: column; gap: 0.5rem; }
.fund-holder-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.fund-holder-row:hover { border-color: var(--accent); background: rgba(34, 211, 238, 0.04); }
.fund-holder-main { min-width: 0; }
.fund-holder-name { display: block; font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.fund-holder-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; flex-shrink: 0; }
.fund-holder-weight { font-weight: 700; font-size: 0.9rem; }
.fund-holder-return { font-size: 0.78rem; font-weight: 600; }
.kap-disclosure-list { display: flex; flex-direction: column; gap: 0.65rem; }
.kap-disclosure-item {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.kap-disclosure-item:hover { border-color: var(--accent); background: rgba(99, 102, 241, 0.05); }
.kap-disclosure-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.kap-disclosure-top time { font-size: 0.78rem; color: var(--text-muted); }
.kap-attachment { font-size: 0.72rem; padding: 0.15rem 0.45rem; border-radius: 999px; background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.kap-disclosure-item strong { display: block; font-size: 0.92rem; margin-bottom: 0.25rem; }
.kap-disclosure-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.empty-inline { color: var(--text-muted); font-size: 0.9rem; padding: 0.5rem 0; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.global-search-form { flex-wrap: wrap; }
.global-search-form .input-select { min-width: 140px; max-width: 180px; }
.global-table { font-size: 0.85rem; }
.global-table th, .global-table td { white-space: nowrap; }
.global-name-cell { max-width: 160px; display: inline-block; overflow: hidden; text-overflow: ellipsis; }
.sector-cell { max-width: 110px; display: inline-block; overflow: hidden; text-overflow: ellipsis; }
.market-links { margin-bottom: 1rem; }

/* Portfolio */
.portfolio-page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}
.portfolio-page-stack > * {
    width: 100%;
    min-width: 0;
}

/* Portföy ana sekme gezinmesi */
.portfolio-view-root {
    width: 100%;
    min-width: 0;
}
.portfolio-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: calc(var(--header-height, 64px) + 0.5rem);
    z-index: 20;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}
.portfolio-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    user-select: none;
}
.portfolio-view-tab svg {
    flex-shrink: 0;
    opacity: 0.8;
}
.portfolio-view-tab:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}
.portfolio-view-tab.is-active {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
}
.portfolio-view-tab.is-active svg {
    opacity: 1;
}
.portfolio-view-panels {
    width: 100%;
    min-width: 0;
}
.portfolio-view-panels > .portfolio-view-panel {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
}
.portfolio-view-panels > .portfolio-view-panel[data-pv-active="true"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.portfolio-view-panel > .portfolio-charts-card,
.portfolio-view-panel > .portfolio-premium-card,
.portfolio-view-panel > .portfolio-intelligence-card,
.portfolio-view-panel > .portfolio-performance-card,
.portfolio-view-panel > .portfolio-analytics-card {
    margin-top: 0;
}
@media (max-width: 640px) {
    .portfolio-view-tab {
        flex: 1 1 calc(50% - 0.35rem);
        justify-content: center;
        padding: 0.55rem 0.5rem;
        font-size: 0.78rem;
    }
}
.portfolio-holdings-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.portfolio-distribution-card {
    padding: 1rem 1.25rem 1.25rem;
}
.portfolio-distribution-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}
.portfolio-distribution-chart-wrap {
    position: relative;
    height: 220px;
    max-width: 420px;
    margin: 0 auto;
}
.portfolio-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.portfolio-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.portfolio-metric-card {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.portfolio-metric-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.portfolio-metric-card strong { font-size: 1.05rem; }
.portfolio-metric-card small { font-size: 0.82rem; }
.portfolio-analytics-card { margin-top: 1rem; }
.portfolio-analytics-card .chart-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.portfolio-analytics-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.portfolio-analytics-metric {
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm, 8px);
    min-width: 0;
    overflow: hidden;
}
.portfolio-analytics-metric span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.portfolio-analytics-metric strong {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.portfolio-analytics-allocation {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}
.portfolio-analytics-allocation h4 {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.portfolio-allocation-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.portfolio-allocation-row-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}
.portfolio-allocation-row-head em {
    font-style: normal;
    color: var(--text-muted);
    white-space: nowrap;
}
.portfolio-allocation-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.portfolio-allocation-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
}
.portfolio-benchmark-summaries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.portfolio-benchmark-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.portfolio-benchmark-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chip-color, #6366f1);
}
.portfolio-benchmark-chip strong { font-size: 0.82rem; }
.portfolio-analytics-chart-wrap { min-height: 280px; }

/* Portfolio intelligence */
.portfolio-intelligence-card {
    margin-top: 1rem;
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid rgba(129, 140, 248, 0.12);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(34, 211, 238, 0.04), transparent 50%);
}
.portfolio-intelligence-head {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.portfolio-intelligence-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #818cf8;
}
.portfolio-intelligence-head h3 { margin: 0; }
.portfolio-intelligence-head .chart-subtitle { margin-top: 0.3rem; }
.portfolio-intelligence-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.portfolio-intelligence-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.portfolio-intelligence-loading[hidden],
.portfolio-intelligence-body[hidden] { display: none !important; }
.portfolio-intelligence-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(129, 140, 248, 0.25);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: portfolio-intel-spin 0.7s linear infinite;
}
@keyframes portfolio-intel-spin { to { transform: rotate(360deg); } }

.portfolio-intelligence-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.portfolio-intelligence-scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.portfolio-score-card--hero {
    grid-column: 1 / -1;
}
@media (min-width: 960px) {
    .portfolio-intelligence-scores {
        grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(0, 1fr));
    }
    .portfolio-score-card--hero {
        grid-column: auto;
        grid-row: span 1;
    }
}
@media (max-width: 520px) {
    .portfolio-intelligence-scores { grid-template-columns: 1fr; }
}

.portfolio-score-card {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(15, 23, 42, 0.35);
    min-width: 0;
}
.portfolio-score-card--hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(15, 23, 42, 0.5));
    border-color: rgba(129, 140, 248, 0.22);
}
.portfolio-score-ring {
    --score: 0;
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(
        #818cf8 calc(var(--score) * 1%),
        rgba(255, 255, 255, 0.08) 0
    );
    display: grid;
    place-items: center;
}
.portfolio-score-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.92);
}
.portfolio-score-ring-value {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e0e7ff;
}
.portfolio-score-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.portfolio-score-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.portfolio-score-card--sub {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.portfolio-score-card--sub strong {
    font-size: 1.2rem;
    line-height: 1.2;
}
.portfolio-grade-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.02em;
    background: rgba(129, 140, 248, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(129, 140, 248, 0.25);
}
.portfolio-grade-badge.is-a { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.portfolio-grade-badge.is-b { background: rgba(129, 140, 248, 0.15); color: #c7d2fe; border-color: rgba(129, 140, 248, 0.3); }
.portfolio-grade-badge.is-c { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.28); }
.portfolio-grade-badge.is-d,
.portfolio-grade-badge.is-f { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border-color: rgba(248, 113, 113, 0.28); }

.portfolio-score-meter {
    height: 4px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}
.portfolio-score-meter i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    transition: width 0.5s ease;
}
.portfolio-score-meter--risk i { background: linear-gradient(90deg, #22d3ee, #38bdf8); }
.portfolio-score-meter--diversify i { background: linear-gradient(90deg, #a78bfa, #c4b5fd); }

.portfolio-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (max-width: 900px) {
    .portfolio-intelligence-grid { grid-template-columns: 1fr; }
}

.portfolio-intel-block {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.28);
}
.portfolio-intel-block h4 {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.portfolio-intel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-style: normal;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}
.portfolio-intel-block--health { border-left: 3px solid #34d399; }
.portfolio-intel-block--health .portfolio-intel-icon { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.portfolio-intel-block--risk { border-left: 3px solid #fbbf24; }
.portfolio-intel-block--risk .portfolio-intel-icon { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.portfolio-intel-block--profile { border-left: 3px solid #818cf8; }
.portfolio-intel-block--profile .portfolio-intel-icon { color: #818cf8; background: rgba(129, 140, 248, 0.12); }
.portfolio-intel-block--warn { border-left: 3px solid #f87171; background: rgba(248, 113, 113, 0.04); }
.portfolio-intel-block--similar { border-left: 3px solid #22d3ee; }
.portfolio-intel-block--tips { border-left: 3px solid #a78bfa; }
.portfolio-intel-block--table { padding-bottom: 0.65rem; }
.portfolio-intel-block--movements { border-left: 3px solid #6366f1; }

.portfolio-risk-badge {
    display: inline-flex;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: lowercase;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}
.portfolio-risk-badge.is-low { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.portfolio-risk-badge.is-mid { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.portfolio-risk-badge.is-high { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }

.portfolio-intel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #cbd5e1;
}
.portfolio-intel-list li {
    position: relative;
    padding-left: 1rem;
}
.portfolio-intel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6366f1;
}
.portfolio-intel-list--tips li::before { background: #a78bfa; }
.portfolio-intel-text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #94a3b8;
}
.portfolio-intel-lead { margin-bottom: 0.65rem; }

.portfolio-intel-summary-card {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(15, 23, 42, 0.32);
}
.portfolio-intel-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}
.portfolio-intel-summary-head h4 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.portfolio-intel-tabs { margin: 0; }
.portfolio-intel-summary {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}
.portfolio-intel-summary li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.86rem;
    line-height: 1.4;
    color: #e2e8f0;
}
.portfolio-intel-summary li::before {
    content: '•';
    color: #818cf8;
    font-weight: 700;
    flex-shrink: 0;
}
.portfolio-intel-list .portfolio-intel-empty::before { display: none; }
.portfolio-intel-list .portfolio-intel-empty {
    padding-left: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.portfolio-intel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.portfolio-intel-callouts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.portfolio-intel-callout {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #fecaca;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.portfolio-similar-group {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.portfolio-similar-group:last-child { border-bottom: none; padding-bottom: 0; }
.portfolio-similar-group > p {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
}
.portfolio-similar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.portfolio-similar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-decoration: none;
    color: #e2e8f0;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    transition: background 0.15s, border-color 0.15s;
}
.portfolio-similar-chip:hover {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.35);
}
.portfolio-similar-chip em {
    font-style: normal;
    font-size: 0.72rem;
    color: #67e8f9;
}

.portfolio-intel-table-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.portfolio-intel-table { font-size: 0.82rem; margin: 0; }
.portfolio-intel-table th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}
.portfolio-intel-table td { vertical-align: middle; }
.portfolio-intel-ai-btn {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.45rem !important;
    color: #a5b4fc !important;
}

.portfolio-intel-movements { display: flex; flex-direction: column; gap: 0.55rem; }
.portfolio-insight-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.portfolio-insight-row-main { flex: 1; min-width: 0; }
.portfolio-insight-row-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.portfolio-insight-row-head strong { font-size: 0.9rem; }
.portfolio-insight-pnl {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}
.portfolio-insight-pnl.is-up { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.portfolio-insight-pnl.is-down { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.portfolio-insight-pnl.is-flat { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }
.portfolio-insight-row .portfolio-intel-text { font-size: 0.82rem; margin-top: 0.15rem; }
.portfolio-insight-row .btn { flex-shrink: 0; white-space: nowrap; }

.portfolio-intel-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.85;
}

/* Portfolio charts & premium (61–90) */
.portfolio-charts-card,
.portfolio-premium-card {
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
}
.portfolio-charts-head,
.portfolio-premium-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.portfolio-charts-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.portfolio-charts-loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.portfolio-charts-loading[hidden],
.portfolio-charts-body[hidden],
.portfolio-premium-body[hidden] { display: none !important; }
.portfolio-charts-body { display: flex; flex-direction: column; gap: 0.85rem; }
.portfolio-charts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.portfolio-charts-tabs button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.portfolio-charts-tabs button:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.05); }
.portfolio-charts-tabs button.is-active {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
}
.portfolio-charts-stage { min-height: 280px; }
.portfolio-charts-canvas-wrap { height: 300px; }
.portfolio-charts-alt { min-height: 200px; }
.portfolio-charts-alt-title {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.portfolio-charts-hint {
    margin: 0;
    font-size: 0.72rem;
}
.portfolio-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.35rem;
}
.portfolio-heatmap-cell {
    border-radius: 8px;
    padding: 0.45rem 0.4rem;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.25;
    color: #0f172a;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
}
.portfolio-heatmap-cell em { font-style: normal; font-weight: 700; font-size: 0.72rem; }
.portfolio-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.45rem;
}
.portfolio-calendar-day {
    border-radius: 10px;
    padding: 0.55rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
}
.portfolio-calendar-day.is-positive { border-color: rgba(52, 211, 153, 0.35); }
.portfolio-calendar-day.is-negative { border-color: rgba(248, 113, 113, 0.35); }
.portfolio-calendar-date { font-size: 0.72rem; color: var(--text-muted); }
.portfolio-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
}
.portfolio-timeline-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #6366f1;
}
.portfolio-timeline-item.is-buy { border-left-color: #34d399; }
.portfolio-timeline-item.is-sell { border-left-color: #f87171; }
.portfolio-timeline-item time { font-size: 0.78rem; color: var(--text-muted); }
.portfolio-timeline-item strong { display: block; font-size: 0.86rem; }
.portfolio-timeline-item span { font-size: 0.78rem; }

.portfolio-premium-body { display: flex; flex-direction: column; gap: 1rem; }
.portfolio-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) {
    .portfolio-premium-grid { grid-template-columns: 1fr; }
}
.portfolio-premium-block {
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.35) 100%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.portfolio-premium-block--wide { grid-column: 1 / -1; }
.portfolio-premium-block-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.portfolio-premium-block-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.28);
    color: #a5b4fc;
}
.portfolio-premium-block-head h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: #e2e8f0;
}
.portfolio-premium-block-sub {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}
.portfolio-premium-block h4 {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.portfolio-premium-field span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.portfolio-premium-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.portfolio-premium-form label span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.portfolio-premium-form input,
.portfolio-premium-form select,
.portfolio-premium-form textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
    color: inherit;
    font-size: 0.86rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.portfolio-premium-form input:focus,
.portfolio-premium-form select:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.portfolio-premium-submit {
    align-self: flex-start;
    margin-top: 0.15rem;
}
.portfolio-premium-form--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}
.portfolio-premium-form--inline input,
.portfolio-premium-form--inline select { flex: 1; min-width: 140px; }

/* Goal progress */
.portfolio-goal-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
}
.portfolio-goal-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.portfolio-goal-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    width: 0;
    transition: width 0.4s ease;
}
.portfolio-premium-progress {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5b4fc;
}

/* Target allocation grid */
.portfolio-target-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem 0.65rem;
}
@media (max-width: 520px) {
    .portfolio-target-grid { grid-template-columns: 1fr; }
}
.portfolio-target-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.portfolio-target-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.portfolio-target-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.portfolio-target-input-wrap input {
    width: 100%;
    padding: 0.45rem 1.75rem 0.45rem 0.55rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
    color: inherit;
    font-size: 0.86rem;
}
.portfolio-target-suffix {
    position: absolute;
    right: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    pointer-events: none;
}
.portfolio-rebal-list {
    margin-top: 0.25rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.portfolio-rebal-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    line-height: 1.4;
}
.portfolio-rebal-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
}
.portfolio-rebal-item.is-ok { color: #6ee7b7; }
.portfolio-rebal-item.is-ok .portfolio-rebal-icon {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}
.portfolio-rebal-item.is-rebalance { color: #fcd34d; }
.portfolio-rebal-item.is-rebalance .portfolio-rebal-icon {
    background: rgba(252, 211, 77, 0.12);
    color: #fcd34d;
}
.portfolio-rebal-item.is-info { color: var(--text-muted); }
.portfolio-rebal-item.is-info .portfolio-rebal-icon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* Share section */
.portfolio-share-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.portfolio-share-form input,
.portfolio-share-form select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
    color: inherit;
    font-size: 0.86rem;
}
.portfolio-share-form input:focus,
.portfolio-share-form select:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.portfolio-share-form-row {
    display: grid;
    grid-template-columns: 1fr minmax(130px, 0.55fr) auto;
    gap: 0.55rem;
    align-items: end;
}
@media (max-width: 640px) {
    .portfolio-share-form-row {
        grid-template-columns: 1fr;
    }
}
.portfolio-share-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    height: 2.35rem;
}
.portfolio-share-list-title {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.portfolio-share-list {
    margin: 0;
}
.portfolio-share-list.is-empty::after {
    content: 'Henüz davet yok. Yukarıdan e-posta ile davet gönderin.';
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
}
.portfolio-share-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.portfolio-share-avatar {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.25);
    color: #c7d2fe;
    text-transform: uppercase;
}
.portfolio-share-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.portfolio-share-meta strong {
    font-size: 0.84rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portfolio-share-role {
    font-size: 0.72rem;
    font-weight: 500;
}
.portfolio-share-role--viewer { color: #94a3b8; }
.portfolio-share-role--family { color: #a5b4fc; }
.portfolio-share-copy {
    flex-shrink: 0;
    font-size: 0.78rem;
}

.portfolio-premium-list,
.portfolio-premium-shares,
.portfolio-premium-tokens {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.84rem;
}
.portfolio-premium-list li.is-ok { color: #6ee7b7; }
.portfolio-premium-list li.is-rebalance { color: #fcd34d; }
.portfolio-premium-list li.is-info { color: var(--text-muted); }
.portfolio-premium-shares li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.portfolio-premium-portfolios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.portfolio-premium-portfolio-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.35);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.portfolio-premium-portfolio-chip:hover {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}
.portfolio-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.6);
}
.portfolio-premium-portfolio-chip.is-current {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.45);
    color: #c7d2fe;
}
.portfolio-premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.65rem;
}
.portfolio-premium-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}
.portfolio-premium-scenarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}
.portfolio-scenario-chip {
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.portfolio-scenario-chip span { font-size: 0.72rem; color: var(--text-muted); }
.portfolio-premium-embed textarea {
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    resize: vertical;
}
.portfolio-premium-api-doc { margin: 0.5rem 0 0; font-size: 0.78rem; }
.portfolio-premium-disclaimer { margin: 0; font-size: 0.72rem; }

/* API & Widget premium block */
.portfolio-api-section { padding: 1.1rem 1.15rem 1.15rem; }
.portfolio-api-head { margin-bottom: 1rem; }
.portfolio-api-head h4 { margin-bottom: 0.3rem; }
.portfolio-api-sub {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}
.portfolio-api-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 0.85rem;
}
@media (max-width: 900px) {
    .portfolio-api-grid { grid-template-columns: 1fr; }
}
.portfolio-api-col { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.portfolio-api-card {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.42);
}
.portfolio-api-card-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: none;
    letter-spacing: normal;
}
.portfolio-api-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.portfolio-api-card-head .portfolio-api-card-title { margin: 0; }
.portfolio-api-hint {
    margin: 0 0 0.65rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-muted);
}
.portfolio-api-hint code {
    font-size: 0.72rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
}
.portfolio-api-create-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.portfolio-api-field span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.portfolio-api-create-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.portfolio-api-tokens {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.portfolio-api-tokens.is-empty::after {
    content: 'Henüz API anahtarı yok. Yukarıdan yeni anahtar oluşturun.';
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
}
.portfolio-api-token-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.portfolio-api-token-delete {
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    padding: 0.35rem 0.45rem;
    color: var(--text-muted);
    border-radius: 8px;
}
.portfolio-api-token-delete:hover:not(:disabled) {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.25);
}
.portfolio-api-token-delete:disabled {
    opacity: 0.5;
    cursor: wait;
}
.portfolio-api-token-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(129, 140, 248, 0.25);
}
.portfolio-api-token-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.portfolio-api-token-meta strong {
    font-size: 0.86rem;
    color: #f1f5f9;
}
.portfolio-api-token-meta span {
    font-size: 0.74rem;
    color: var(--text-muted);
}
.portfolio-api-token-unused {
    color: #94a3b8 !important;
    font-style: italic;
}
.portfolio-api-codebox {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.55);
    overflow: hidden;
}
.portfolio-api-code {
    width: 100%;
    min-height: 96px;
    padding: 0.7rem 0.75rem;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-family: ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    resize: vertical;
}
.portfolio-api-code:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.35);
}
.portfolio-api-endpoint {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(129, 140, 248, 0.22);
    background: rgba(99, 102, 241, 0.08);
    overflow-x: auto;
}
.portfolio-api-endpoint code {
    font-family: ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: #c7d2fe;
    word-break: break-all;
    white-space: pre-wrap;
}

.portfolio-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.portfolio-insight-card {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.portfolio-insight-name {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portfolio-insight-card span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.portfolio-insight-card em {
    font-style: normal;
    font-size: 0.88rem;
    margin-top: 0.15rem;
}
.portfolio-last-tx {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
}
.portfolio-last-tx-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.portfolio-last-tx p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.portfolio-last-tx-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.portfolio-notes {
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
}
.portfolio-notes summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
}
.portfolio-notes summary::-webkit-details-marker { display: none; }
.portfolio-notes-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}
.summary-card { padding: 1.25rem; }
.summary-card span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.summary-card strong { font-size: 1.3rem; }
.empty-portfolio { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-portfolio h2 { margin-bottom: 0.5rem; }
.empty-portfolio p { color: var(--text-muted); margin-bottom: 1.5rem; }
.fund-link { color: inherit; text-decoration: none; }
.fund-link:hover .fund-code { background: rgba(34, 211, 238, 0.2); }

/* Auth */
.auth-section { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 2rem 1rem; }
.auth-card { width: min(440px, 100%); padding: 2.5rem; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 0.35rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.recaptcha-wrap { margin: 0.25rem 0 0.5rem; min-height: 78px; }
.recaptcha-notice { font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0 0.75rem; line-height: 1.5; }
.recaptcha-notice a { color: var(--accent); }
.recaptcha-notice-warn { padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.auth-form label span { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-footer a { color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin: 1rem 0; font-weight: 500; }
.alert-success { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--positive); }
.alert-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--negative); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; margin-top: 3rem; position: relative; z-index: 1; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.75rem; max-width: 28rem; }
.footer-logo { margin-bottom: 0.25rem; }
.footer-links-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}
.footer-links-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.3rem 0;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-inner { text-align: center; }
.footer-meta { color: var(--text-muted); font-size: 0.82rem; }
.footer-inner { text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.footer-meta { margin-top: 0.5rem; opacity: 0.6; }

/* Animations */
.fade-in { animation: fadeIn 0.6s ease both; }
.fade-in-up { animation: fadeInUp 0.6s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.55rem 0;
        min-height: 3rem;
    }

    .logo {
        padding: 0.1rem 0;
        min-width: 0;
    }

    .site-logo-img {
        height: 32px;
    }

    .header-end {
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .nav-label-wide { display: inline; }
    .nav-label-compact { display: none; }
    .nav-actions-bar { display: none; }

    .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(2, 6, 23, 0.62);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

    body.mobile-nav-open .mobile-nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 10000;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        margin: 0;
        padding: 0;
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
        background: linear-gradient(180deg, #0b1220 0%, #0f172a 48%, #111827 100%);
        border: none;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.34s;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.is-mobile-portal {
        position: fixed;
    }

    .main-nav.open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        flex-shrink: 0;
        background: rgba(7, 11, 20, 0.55);
    }

    .mobile-nav-drawer-brand {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        min-width: 0;
    }

    .mobile-nav-drawer-title {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .mobile-nav-drawer-sub {
        font-size: 0.78rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 2.75rem;
        height: 2.75rem;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 12px;
        background: rgba(148, 163, 184, 0.1);
        color: var(--text);
        cursor: pointer;
        transition: background 0.15s, border-color 0.15s;
    }

    .mobile-nav-close:hover {
        border-color: rgba(129, 140, 248, 0.4);
        background: rgba(99, 102, 241, 0.15);
    }

    .mobile-nav-body {
        flex: 1;
        min-height: 0;
        width: 100%;
        align-items: stretch;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 max(1.25rem, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-label {
        display: block;
        margin: 0;
        padding: 1.1rem 1.25rem 0.5rem;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(148, 163, 184, 0.85);
    }

    .mobile-nav-label-account {
        margin-top: 0.35rem;
        padding-top: 1.1rem;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }

    .nav-pill {
        width: 100%;
        align-items: stretch;
        border-radius: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        gap: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
    }

    .nav-actions.nav-actions-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.65rem;
        margin-top: 0;
        padding: 0 1.25rem 0;
        border-radius: 0;
        background: transparent;
        border: none;
    }

    .nav-dropdown {
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(7, 11, 20, 0.35);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0 0 0.35rem;
        margin: 0;
        border-radius: 0;
        min-width: 0;
        transition: none;
    }

    .nav-dropdown.is-open > .nav-dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        margin: 0 1.25rem 0.5rem;
        border-bottom: none;
        border-radius: 12px;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(129, 140, 248, 0.2);
    }

    .nav-dropdown-header-avatar {
        display: inline-flex;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8rem;
    }

    .nav-dropdown-item {
        color: var(--text);
        padding: 0.85rem 1.25rem 0.85rem 1.75rem;
        font-size: 0.95rem;
        border-radius: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    }

    .nav-dropdown-item:last-child {
        border-bottom: none;
    }

    .nav-dropdown-trigger,
    .nav-user-trigger,
    .nav-inline-link {
        width: 100%;
        justify-content: space-between;
        border-radius: 0;
        padding: 1rem 1.25rem;
        min-height: 52px;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
        background: transparent;
    }

    .nav-inline-link {
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }

    .nav-inline-link.is-active,
    .nav-dropdown-trigger.is-active,
    .nav-user-trigger.is-active {
        background: rgba(99, 102, 241, 0.12);
        box-shadow: inset 4px 0 0 var(--primary);
        color: #e0e7ff;
    }

    .nav-dropdown.is-open > .nav-dropdown-trigger {
        background: rgba(99, 102, 241, 0.08);
        color: #e0e7ff;
    }

    .nav-user-label { max-width: none; display: inline; font-size: 0.95rem; }

    .nav-user-avatar {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .nav-user-trigger {
        margin: 0;
        border: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
        border-radius: 0;
        background: transparent;
    }

    .nav-user-menu .nav-dropdown-menu {
        background: transparent;
        padding: 0;
    }

    .nav-portfolio-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.95rem 1rem;
        min-height: 52px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(99, 102, 241, 0.25));
        border: 1px solid rgba(34, 211, 238, 0.4);
        color: #cffafe;
        box-shadow: 0 6px 20px rgba(34, 211, 238, 0.12);
    }

    .nav-portfolio-link:hover {
        background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(99, 102, 241, 0.32));
        color: #ecfeff;
    }

    .nav-auth-link,
    .nav-auth-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.95rem 1rem;
        min-height: 52px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .nav-auth-link {
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .nav-auth-cta {
        background: linear-gradient(135deg, var(--primary), #4f46e5);
        color: #fff;
        border: none;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    }

    .nav-dropdown-button {
        color: #fca5a5;
        margin: 0.25rem 1.25rem 0;
        border-radius: 12px;
        border: 1px solid rgba(248, 113, 113, 0.2);
        background: rgba(248, 113, 113, 0.08);
        min-height: 48px;
        text-align: center;
        justify-content: center;
    }

    .nav-dropdown-button:hover {
        background: rgba(239, 68, 68, 0.15);
        color: #fecaca;
    }

    .nav-dropdown-divider {
        margin: 0.35rem 1.25rem;
    }

    .form-row { grid-template-columns: 1fr; }
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .hero-v2 h1 { font-size: 2rem; }
    .fund-detail-header { flex-direction: column; }
    .fund-price-box { text-align: left; width: 100%; }
    .movers-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
}

/* ===== TICKER (Fonoloji tarzı) ===== */
.ticker-bar {
    position: relative;
    z-index: 110;
    display: flex;
    align-items: stretch;
    background: rgba(5, 8, 16, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    height: 38px;
    overflow: hidden;
}

.ticker-live {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--positive);
    background: rgba(52, 211, 153, 0.08);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 2;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--positive);
    box-shadow: 0 0 8px var(--positive);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    animation: tickerScroll 60s linear infinite;
}

.ticker-viewport:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    border-right: 1px solid rgba(148, 163, 184, 0.06);
    height: 100%;
    transition: color 0.2s, background 0.2s;
}

.ticker-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.ticker-label { font-weight: 600; color: var(--text); }
.ticker-price { font-family: var(--mono); font-weight: 500; }
.ticker-change { font-weight: 600; font-size: 0.72rem; }
.ticker-item.positive .ticker-change { color: var(--positive); }
.ticker-item.negative .ticker-change { color: var(--negative); }

/* ===== HERO V2 ===== */
.hero-v2 {
    padding: 3rem 0 2rem;
    text-align: center;
}

.hero-v2 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-v2 h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0.75rem 0 1rem;
}

.hero-v2 .hero-desc {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 720px;
    margin: 2rem auto 1.25rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    position: relative;
}

.hero-search-form { flex-wrap: wrap; }

.hero-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.45rem);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 50;
    text-align: left;
}

.hero-suggest-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
}

.hero-suggest-item:hover { background: var(--surface-hover); }

.hero-suggest-code { font-family: var(--mono); font-weight: 700; font-size: 0.85rem; }
.hero-suggest-name { font-size: 0.88rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-suggest-cat { font-size: 0.72rem; color: var(--accent); white-space: nowrap; }

.hero-suggest-all {
    display: block;
    padding: 0.7rem 0.9rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary-hover);
    text-decoration: none;
}

.hero-suggest-all:hover { background: var(--surface-hover); }

.global-search-form { max-width: 100%; margin: 0 0 1.5rem; }

.search-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.search-result-meta {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-group { margin-bottom: 1.5rem; }

.search-group-title {
    font-size: 1rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
}

.search-results-list { overflow: hidden; }

.search-result-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-hover); }

.search-result-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.search-result-code { font-weight: 700; font-size: 0.95rem; }
.search-result-name { font-size: 0.85rem; color: var(--text-muted); }

.search-result-meta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.search-result-cat { font-size: 0.72rem; color: var(--accent); }
.search-result-price { font-size: 0.9rem; }
.search-result-change { font-size: 0.78rem; }

@media (max-width: 640px) {
    .search-result-item { flex-direction: column; align-items: flex-start; }
    .search-result-meta-col { align-items: flex-start; }
    .hero-suggest-item { grid-template-columns: 64px 1fr; }
    .hero-suggest-cat { grid-column: 2; }
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.popular-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 820px;
    margin: 0 auto;
}

.chips-label { font-size: 0.85rem; color: var(--text-muted); }

.chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-hover);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--mono);
    transition: var(--transition);
}

.chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ===== DASHBOARD STATS ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dash-stat {
    padding: 1.5rem;
    text-align: center;
}

.dash-stat-value {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.dash-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.section-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== MOVERS ===== */
.movers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 1.25rem;
    align-items: start;
}

.mover-card { padding: 1.25rem; }

.mover-title {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.mover-list { list-style: none; }

.mover-list li a {
    display: grid;
    grid-template-columns: 28px 52px 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.65rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    transition: background 0.2s;
    border-radius: var(--radius-sm);
}

.mover-list li a:hover {
    background: var(--surface-hover);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mover-rank { font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono); }
.mover-code { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 0.82rem; }
.mover-name { font-size: 0.82rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover-change { font-weight: 700; font-size: 0.85rem; }

.featured-fund {
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.08));
    border-color: rgba(99, 102, 241, 0.25);
}

.featured-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.featured-fund h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    min-height: 2.8em;
}

.featured-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.featured-metrics span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.featured-metrics strong { font-size: 1.15rem; }

/* ===== MACRO CARDS ===== */
.macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}

.macro-card {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.macro-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.macro-price { font-size: 1.15rem; font-weight: 700; }
.macro-change { font-size: 0.82rem; font-weight: 600; }

/* ===== RANK LIST ===== */
.rank-list { padding: 0.5rem; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--surface-hover); }

.rank-num {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 28px;
}

.rank-info { flex: 1; min-width: 0; }
.rank-info strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.rank-info span { font-size: 0.78rem; color: var(--text-muted); }

.rank-stats { text-align: right; }
.rank-size { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.2rem; }
.rank-stats span:last-child { font-size: 0.82rem; font-weight: 600; }

/* ===== Home FAQ ===== */
.home-faq-section { padding-bottom: 1.5rem; }
.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 760px;
    margin: 0 auto;
}
.home-faq-item {
    padding: 0;
    overflow: hidden;
}
.home-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.15rem;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
    line-height: 1;
}
.home-faq-item[open] summary::after { content: '−'; }
.home-faq-item p {
    margin: 0;
    padding: 0 1.15rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ===== CTA ===== */
.cta-card {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(17, 24, 39, 0.8));
}

.cta-card h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.cta-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.cta-section .hero-actions { justify-content: center; }

/* ===== STOCKS ===== */
.stock-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.highlight-card { padding: 1.1rem 1.25rem; }
.highlight-card a { text-decoration: none; color: inherit; display: block; }
.highlight-card strong { display: block; font-family: var(--mono); color: var(--accent); font-size: 1.1rem; }
.highlight-card span { display: block; font-size: 0.8rem; color: var(--text-muted); margin: 0.25rem 0; }
.highlight-card em { font-style: normal; font-weight: 700; font-size: 0.95rem; }
.highlight-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem; }
.positive-border { border-color: rgba(52, 211, 153, 0.25); }
.negative-border { border-color: rgba(248, 113, 113, 0.25); }
.stats-mini { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.stats-mini div { text-align: center; flex: 1; }
.stats-mini span { display: block; font-size: 1.25rem; font-weight: 800; }
.stats-mini small { font-size: 0.7rem; color: var(--text-muted); }
.stock-name-sub { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.table-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.data-source-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1.5rem; text-align: center; opacity: 0.8; }
.stock-table td:first-child { min-width: 180px; }

/* ===== ECONOMY ===== */
.disclaimer-inline { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; opacity: 0.85; }
.economy-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.economy-stat-card { padding: 1.35rem 1.5rem; }
.economy-stat-label { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.economy-stat-main { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.economy-stat-value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.economy-stat-sub { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.economy-stat-period { display: block; font-size: 0.85rem; color: var(--text-muted); }
.economy-stat-note { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.65rem; opacity: 0.8; }
.economy-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.economy-section { margin-bottom: 2.5rem; }
.yearly-cpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}
.yearly-cpi-card { padding: 1rem; text-align: center; }
.yearly-cpi-year { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.yearly-cpi-value { display: block; font-size: 1.35rem; font-weight: 800; margin-bottom: 0.2rem; }
.yearly-cpi-label { display: block; font-size: 0.72rem; color: var(--text-muted); }
.yearly-cpi-sub { display: block; font-size: 0.68rem; color: var(--text-muted); margin-top: 0.35rem; opacity: 0.85; }
.economy-table .num { text-align: right; white-space: nowrap; }
.indicator-group-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 1.25rem 0 0.75rem; }
.indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}
.indicator-card { padding: 1.1rem 1.2rem; }
.indicator-name { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.35; }
.indicator-value { display: block; font-size: 1.4rem; font-weight: 800; margin-bottom: 0.25rem; }
.indicator-period { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.indicator-deltas { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; }
.economy-two-col {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}
.news-list { display: flex; flex-direction: column; gap: 0.75rem; }
.news-card { padding: 0; overflow: hidden; }
.news-card a { display: block; padding: 1rem 1.15rem; text-decoration: none; color: inherit; }
.news-card h3 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 0.45rem; }
.news-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; }
.news-meta { font-size: 0.72rem; color: var(--text-muted); }
.gold-sub { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: 0.15rem; }
.gold-table td:first-child { min-width: 160px; }
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.pagination-pages { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: center; }
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.pagination-page:hover { border-color: var(--accent); color: var(--accent); }
.pagination-page.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== NEWS FEED ===== */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.badge-live { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }
.badge-live::before { content: '● '; }
.news-page-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.news-sync-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); }
.news-featured { margin-bottom: 1rem; }
.news-spotlight { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.85rem; margin-bottom: 1.25rem; }
.news-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; margin-bottom: 1.25rem; }
.news-category-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.news-source-form { min-width: 200px; }
.news-today-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.85rem; }
.news-today-header h2 { font-size: 1.15rem; margin: 0; }
.news-today-count { color: var(--accent); font-weight: 700; }
.news-total-meta { font-size: 0.8rem; color: var(--text-muted); }
.news-feed-list { display: grid; gap: 0.75rem; }
.news-feed-card { padding: 0; overflow: hidden; }
.news-feed-card a { display: block; padding: 1rem 1.15rem; text-decoration: none; color: inherit; }
.news-feed-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 0.5rem; font-size: 0.72rem; color: var(--text-muted); }
.news-feed-card h3 { font-size: 0.98rem; line-height: 1.45; margin: 0; }
.news-feed-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin: 0.55rem 0 0; }
.news-variant-featured a { padding: 1.35rem 1.5rem; }
.news-variant-featured h3 { font-size: 1.35rem; }
.news-variant-compact h3 { font-size: 0.9rem; }
.news-category-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}
.news-cat-borsa { background: rgba(129, 140, 248, 0.18); color: #a5b4fc; }
.news-cat-doviz { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.news-cat-fon { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; }
.news-cat-makro { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.news-cat-sirket { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.news-cat-emtia { background: rgba(251, 146, 60, 0.15); color: #fdba74; }

/* ===== TOOLS ===== */
.tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.tool-hub-card {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}
.tool-hub-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}
.tool-hub-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.tool-hub-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1rem; }
.tools-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 1.25rem;
    align-items: start;
}
.tools-form-card { padding: 1.25rem; }
.calc-form .form-group { margin-bottom: 1.1rem; }
.calc-form label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 600; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.amount-chip, .date-chip { cursor: pointer; border: none; }
.btn-block { width: 100%; margin-top: 0.5rem; }
.asset-picker { position: relative; }
.asset-picker-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem 0.35rem 0.65rem;
    min-height: 46px;
}
.asset-picker-input { border: none !important; background: transparent !important; padding-left: 0 !important; }
.asset-picker-input[hidden] { display: none !important; }
.asset-picker-chevron { color: var(--text-muted); flex-shrink: 0; margin-left: auto; }
.asset-picker-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.35rem 0.15rem 0.35rem 0;
}
.asset-picker-chip-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.asset-picker-chip-text span { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-picker-chip-remove {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.35rem;
}
.asset-picker-chip-remove:hover { color: var(--text); }
.asset-picker-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 0.35rem); z-index: 40; }
.asset-picker-empty { padding: 0.85rem 1rem; color: var(--text-muted); font-size: 0.85rem; }
.asset-picker-hint { margin-top: 0.45rem; }
.fund-search-wrap { position: relative; }
.fund-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    max-height: 280px;
    overflow-y: auto;
}
.fund-suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.fund-suggestion-item:hover { background: var(--surface-hover); }
.fund-suggestion-item strong { font-family: var(--mono); color: var(--accent); }
.fund-suggestion-item span { font-size: 0.78rem; color: var(--text-muted); }
.calc-fund-selected { margin-bottom: 0.5rem; }
.calc-fund-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.4);
}
.calc-fund-chip-text { min-width: 0; }
.calc-fund-chip-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--accent);
}
.calc-fund-chip-text span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calc-fund-chip-remove {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.15rem;
}
.calc-fund-chip-remove:hover { color: var(--text); }
.tools-empty { padding: 2rem; text-align: center; color: var(--text-muted); }
.tools-result-panel { display: flex; flex-direction: column; gap: 1rem; }
.calc-result-hero { padding: 1.35rem 1.5rem; }
.calc-hero-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.calc-hero-label { display: block; font-weight: 700; }
.calc-hero-sub { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.calc-hero-value { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.35rem; }
.calc-hero-change { font-size: 1rem; font-weight: 700; }
.calc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}
.calc-metric { padding: 0.85rem 1rem; }
.calc-metric span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.calc-metric strong { font-size: 1rem; }
.compare-builder { padding: 1.25rem; margin-bottom: 1.25rem; }
.compare-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.compare-filters .form-group { margin-bottom: 0; }
.compare-category { font-size: 0.8rem; color: var(--text-muted); max-width: 10rem; white-space: normal; }
.compare-form-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; margin-top: 1rem; }
.compare-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; min-height: 2rem; margin-top: 0.75rem; }
.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.15);
    border: 1px solid rgba(129, 140, 248, 0.35);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
}
.compare-chip-remove {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
.compare-table-wrap { overflow-x: auto; }
.compare-table th, .compare-table td { white-space: nowrap; }
.compare-fund-link { text-decoration: none; color: inherit; display: block; }
.compare-fund-link span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.compare-winner { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; font-weight: 700; }
.compare-winner-low { background: rgba(96, 165, 250, 0.12); color: #93c5fd; font-weight: 700; }
.compare-results { display: flex; flex-direction: column; gap: 1rem; }
.compare-chart-card { margin-bottom: 0.25rem; }
.compare-chart-wrap { min-height: 320px; }
.compare-chart-empty { padding: 2rem 1rem; margin: 0; }
.compare-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0 0.25rem 1rem;
}
.compare-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
}
.compare-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.compare-legend-index {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* Portfolio v2 */
.portfolio-header-row { align-items: flex-start; gap: 1rem; }
.portfolio-header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portfolio-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.portfolio-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.portfolio-tab.is-active {
    color: #fff;
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(129, 140, 248, 0.2);
}
.portfolio-actions { white-space: nowrap; }
.portfolio-holdings-panel { min-width: 0; }
.portfolio-holdings-card { overflow: hidden; }
.portfolio-holdings-toolbar {
    padding: 1rem 1.15rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}
.portfolio-holdings-toolbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}
.portfolio-holdings-toolbar-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}
.portfolio-holdings-meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.portfolio-holdings-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 0.95fr)) auto;
    gap: 0.65rem 0.65rem;
    align-items: end;
}
.portfolio-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-width: 0;
}
.portfolio-filter-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.portfolio-filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.portfolio-filter-input-wrap .search-icon {
    position: absolute;
    left: 0.7rem;
    pointer-events: none;
    opacity: 0.5;
}
.portfolio-filter-field--search .portfolio-filter-input {
    padding-left: 2.25rem;
}
.portfolio-filter-input {
    padding: 0.58rem 0.8rem;
    font-size: 0.85rem;
}
.portfolio-filter-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-shrink: 0;
}
.portfolio-filter-actions .btn { white-space: nowrap; }
.portfolio-holdings-table-wrap {
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}
.portfolio-holdings-scroll-hint {
    display: none;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(148, 163, 184, 0.06);
}
.portfolio-holdings-table {
    min-width: 52rem;
}
.portfolio-holdings-table th,
.portfolio-holdings-table td {
    white-space: nowrap;
}
.portfolio-holdings-table th:first-child,
.portfolio-holdings-table td:first-child {
    min-width: 9.5rem;
    max-width: 11rem;
    white-space: normal;
}
.portfolio-holdings-table .fund-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 8.5rem;
    max-width: 10.5rem;
}
.portfolio-holdings-table .fund-link .fund-name {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.portfolio-holdings-empty { padding: 1.25rem 1rem; text-align: center; margin: 0; }
.portfolio-holdings-table tbody tr.is-filtered-out { display: none !important; }
.portfolio-holdings-table th:nth-child(7),
.portfolio-holdings-table td:nth-child(7) { white-space: nowrap; }
@media (max-width: 768px) {
    .portfolio-holdings-scroll-hint {
        display: flex;
    }
    .portfolio-holdings-table-wrap {
        background:
            linear-gradient(90deg, var(--surface) 30%, transparent),
            linear-gradient(90deg, transparent, var(--surface) 70%) 100% 0,
            radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.22), transparent),
            radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.22), transparent) 100% 0;
        background-repeat: no-repeat;
        background-size: 2.5rem 100%, 2.5rem 100%, 0.85rem 100%, 0.85rem 100%;
        background-attachment: local, local, scroll, scroll;
    }
    .portfolio-holdings-table th:first-child,
    .portfolio-holdings-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: var(--surface);
        box-shadow: 4px 0 12px rgba(2, 6, 23, 0.35);
    }
    .portfolio-holdings-table th:first-child {
        z-index: 3;
        background: var(--bg-elevated);
    }
    .portfolio-holdings-table tbody tr:hover td:first-child {
        background: var(--surface-hover);
    }
    .portfolio-holdings-table th,
    .portfolio-holdings-table td {
        padding: 0.7rem 0.85rem;
        font-size: 0.82rem;
    }
}
@media (max-width: 1200px) {
    .portfolio-holdings-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .portfolio-filter-field--search { grid-column: 1 / -1; }
    .portfolio-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
@media (max-width: 1100px) {
    .portfolio-holdings-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.input.is-loading { opacity: 0.7; }
.form-hint.text-error { color: #fca5a5; }
[data-price-hint] {
    margin-top: 0.35rem;
    min-height: 1.1rem;
    font-size: 0.82rem;
}
.basket-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
    margin: 0.75rem 0 1.25rem;
}
.basket-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}
.basket-category-card:has(input:checked) {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(129, 140, 248, 0.12);
}
.basket-category-card input { display: none; }
.basket-category-icon { font-size: 1.35rem; }
.basket-category-card small { color: var(--text-muted); font-size: 0.72rem; }
.tx-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    align-items: end;
}
.tx-filter-actions { display: flex; gap: 0.5rem; }
.tx-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-icon {
    flex-shrink: 0;
    opacity: 0.9;
}
.tx-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.tx-badge-buy { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.tx-badge-sell { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0.5rem 0 1rem; }

/* Market card links */
.macro-card-link, a.macro-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Home enhancements */
.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}
.home-tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem;
    text-decoration: none;
    color: inherit;
}
.home-tool-card span:last-child { font-size: 0.8rem; color: var(--text-muted); }
.home-tool-icon { font-size: 1.5rem; }
.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}
.news-preview-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.1rem 1.15rem;
    text-decoration: none;
    color: var(--text);
    min-height: 120px;
    transition: var(--transition);
}

.news-preview-card:hover {
    color: var(--text);
    border-color: rgba(99, 102, 241, 0.35);
}

.news-preview-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-preview-source { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.news-preview-date { font-size: 0.75rem; color: var(--text-muted); margin-top: auto; }
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.home-blog-section {
    padding-bottom: 2.5rem;
    margin-bottom: 0;
}
.home-blog-grid .blog-card-body h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
}
@media (max-width: 900px) {
    .home-blog-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.macro-card-link { text-decoration: none; color: inherit; display: block; }

/* Legal pages */
.legal-content { padding: 1.5rem 1.75rem; line-height: 1.7; }
.legal-content ul, .legal-content ol { margin: 0.75rem 0 0 1.25rem; }
.legal-content p { margin-bottom: 0.75rem; }
.legal-content h2, .legal-content h3 { margin: 1.25rem 0 0.5rem; }
.legal-content a { color: var(--accent); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-content th, .legal-content td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; }

/* AI Assistant */
.scroll-section-nav {
    position: fixed;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 190;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.scroll-section-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-section-up {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.88);
    color: rgba(226, 232, 240, 0.85);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.scroll-section-up:hover {
    color: #fff;
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-1px);
}
.scroll-section-up.is-at-top {
    color: rgba(34, 211, 238, 0.95);
    border-color: rgba(34, 211, 238, 0.35);
}
.scroll-section-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 7px 5px;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.scroll-section-segment {
    width: 4px;
    height: 20px;
    border: none;
    padding: 0;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}
.scroll-section-segment:hover {
    background: rgba(148, 163, 184, 0.5);
}
.scroll-section-segment.is-passed {
    background: rgba(99, 102, 241, 0.62);
}
.scroll-section-segment.is-active {
    width: 5px;
    height: 26px;
    background: rgba(34, 211, 238, 0.95);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.42);
}
@media (max-width: 520px) {
    .scroll-section-nav {
        right: 0.35rem;
        top: auto;
        bottom: 5.5rem;
        transform: none;
    }
    .scroll-section-segment {
        height: 16px;
    }
    .scroll-section-segment.is-active {
        height: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-section-nav { transition: none; }
}

.ai-assistant {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 200;
    overflow: visible;
}

.ai-fab {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(99, 102, 241, 0.92) 45%, rgba(8, 145, 178, 0.9));
    background-size: 220% 220%;
    color: #fff;
    cursor: pointer;
    overflow: visible;
    box-shadow:
        0 0 10px rgba(99, 102, 241, 0.45),
        0 0 20px rgba(34, 211, 238, 0.22),
        0 6px 18px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation:
        ai-fab-gradient 4s ease infinite,
        ai-fab-glow-shadow 2.6s ease-in-out infinite;
    isolation: isolate;
}

.ai-fab::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%);
    pointer-events: none;
    z-index: 1;
}

.ai-fab-inner {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.42rem 0.72rem 0.42rem 0.58rem;
    white-space: nowrap;
}

.ai-fab-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.ai-fab:hover {
    transform: translateY(-2px);
}

.ai-fab:active {
    transform: translateY(0) scale(0.98);
}

.ai-fab-aura {
    position: absolute;
    inset: -14px -8px;
    border-radius: 14px;
    background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.42) 0%, rgba(34, 211, 238, 0.22) 40%, transparent 72%);
    filter: blur(8px);
    opacity: 0.8;
    animation: ai-fab-aura 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: -3;
}

.ai-fab-glow {
    position: absolute;
    inset: -8px -4px;
    border-radius: 16px;
    background: radial-gradient(ellipse at 30% 50%, rgba(34, 211, 238, 0.45) 0%, rgba(99, 102, 241, 0.25) 45%, transparent 75%);
    opacity: 0.85;
    animation: ai-fab-pulse 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

.ai-fab-ring {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 1.5px solid rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
    opacity: 0;
    animation: ai-fab-ring 2.6s ease-out infinite;
    pointer-events: none;
}

.ai-fab-ring-2 {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
    animation-delay: 1.3s;
}

.ai-fab-shine {
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.ai-fab-shine::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -120%;
    width: 45%;
    height: 180%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.1) 35%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.1) 65%, transparent 100%);
    transform: rotate(12deg);
    animation: ai-fab-sweep 3.2s ease-in-out infinite;
}

.ai-fab-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.88rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 12px rgba(34, 211, 238, 0.45));
    animation: ai-fab-sparkle 2.2s ease-in-out infinite;
}

.ai-assistant.is-open .ai-fab {
    animation: none;
    background: linear-gradient(135deg, #4f46e5, #0891b2);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transform: none;
}

.ai-assistant.is-open .ai-fab-aura,
.ai-assistant.is-open .ai-fab-glow,
.ai-assistant.is-open .ai-fab-ring,
.ai-assistant.is-open .ai-fab-shine::after {
    animation: none;
    opacity: 0;
}

.ai-assistant.is-open .ai-fab-icon {
    animation: ai-fab-sparkle-open 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55));
}

.ai-assistant.is-open .ai-fab-label {
    opacity: 0.92;
}

@keyframes ai-fab-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ai-fab-glow-shadow {
    0%, 100% {
        box-shadow:
            0 0 14px rgba(99, 102, 241, 0.55),
            0 0 28px rgba(34, 211, 238, 0.28),
            0 8px 24px rgba(0, 0, 0, 0.28);
    }
    50% {
        box-shadow:
            0 0 22px rgba(99, 102, 241, 0.75),
            0 0 40px rgba(34, 211, 238, 0.42),
            0 10px 28px rgba(0, 0, 0, 0.32);
    }
}

@keyframes ai-fab-aura {
    0%, 100% { transform: scale(0.95); opacity: 0.65; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes ai-fab-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes ai-fab-ring {
    0% { transform: scale(0.92); opacity: 0.7; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes ai-fab-sweep {
    0%, 18% { left: -120%; opacity: 0; }
    35% { opacity: 1; }
    55%, 100% { left: 140%; opacity: 0; }
}

@keyframes ai-fab-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(14deg); }
    50% { transform: scale(0.92) rotate(-10deg); }
    75% { transform: scale(1.12) rotate(8deg); }
}

@keyframes ai-fab-sparkle-open {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
}

@media (max-width: 520px) {
    .ai-assistant {
        right: 0.75rem;
        bottom: 0.75rem;
    }
    .ai-fab-inner {
        padding: 0.38rem 0.62rem 0.38rem 0.52rem;
        gap: 0.35rem;
    }
    .ai-fab-label {
        font-size: 0.7rem;
    }
    .ai-assistant-panel {
        width: min(380px, calc(100vw - 1.5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-fab,
    .ai-fab-aura,
    .ai-fab-glow,
    .ai-fab-ring,
    .ai-fab-shine::after,
    .ai-fab-icon {
        animation: none !important;
    }

    .ai-fab {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}
.ai-assistant-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.65rem);
    width: min(380px, calc(100vw - 2rem));
    max-height: min(520px, calc(100vh - 6rem));
    display: none;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.ai-assistant.is-open .ai-assistant-panel { display: flex; }
.ai-assistant-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}
.ai-assistant-sub { display: block; font-size: 0.72rem; color: var(--text-muted); }
.ai-assistant-actions { display: flex; gap: 0.25rem; }
.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem 0;
}
.ai-suggestion-chip {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    cursor: pointer;
    text-align: left;
}
.ai-suggestion-chip:hover { border-color: var(--accent); color: var(--text); }
.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 180px;
    max-height: 280px;
}
.ai-msg {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 92%;
}
.ai-msg-bot { background: rgba(255,255,255,0.05); align-self: flex-start; }
.ai-msg-user { background: rgba(99, 102, 241, 0.25); align-self: flex-end; }
.ai-msg-typing { opacity: 0.7; font-style: italic; }
.ai-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}
.ai-input-row .input { flex: 1; }
.ai-disclaimer {
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0 0.85rem 0.65rem;
    margin: 0;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.favorite-btn:hover { border-color: #fbbf24; color: #fbbf24; }
.favorite-btn.is-active {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}
.favorite-icon { font-size: 1rem; line-height: 1; }

.watchlist-grid {
    display: grid;
    gap: 1.25rem;
}
.watchlist-grid h2 { margin: 0 0 1rem; font-size: 1.1rem; }

.alert-details { margin-top: 1rem; }
.alert-summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.75rem 1rem;
    list-style: none;
}
.alert-summary::-webkit-details-marker { display: none; }
.alert-form { padding: 0 1rem 1rem; }
.alert-form .form-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0.75rem;
}
.alert-list { display: flex; flex-direction: column; gap: 0.75rem; }
.alert-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.alert-list-actions { display: flex; align-items: center; gap: 0.5rem; }
.digest-form { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.inline-form { display: inline; }

.portfolio-performance-card { margin-bottom: 0; }
.portfolio-section-holdings { margin-bottom: 0; }
.portfolio-summary + .portfolio-page-stack { margin-top: 0; }
.portfolio-page-stack .portfolio-view-panel .portfolio-performance-card,
.portfolio-page-stack .portfolio-view-panel .portfolio-analytics-card,
.portfolio-page-stack .portfolio-view-panel .portfolio-metrics-grid,
.portfolio-page-stack .portfolio-view-panel .portfolio-insights-grid,
.portfolio-page-stack .portfolio-view-panel .portfolio-last-tx,
.portfolio-page-stack .portfolio-view-panel .portfolio-notes,
.portfolio-page-stack .portfolio-view-panel .portfolio-intelligence-card,
.portfolio-page-stack .portfolio-view-panel .portfolio-charts-card,
.portfolio-page-stack .portfolio-view-panel .portfolio-premium-card,
.portfolio-page-stack .portfolio-performance-card,
.portfolio-page-stack .portfolio-analytics-card,
.portfolio-page-stack .portfolio-metrics-grid,
.portfolio-page-stack .portfolio-insights-grid,
.portfolio-page-stack .portfolio-last-tx,
.portfolio-page-stack .portfolio-notes,
.portfolio-page-stack .portfolio-intelligence-card,
.portfolio-page-stack .portfolio-charts-card,
.portfolio-page-stack .portfolio-premium-card { margin-top: 0; }
.portfolio-chart-wrap { position: relative; min-height: 260px; height: 280px; }
.chart-empty-msg { text-align: center; color: var(--text-muted); padding: 2rem 1rem; font-size: 0.9rem; }
.chart-empty-error { color: #f87171; }
.chart-period-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.profile-aside {
    padding: 1.5rem;
    text-align: center;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.2));
    color: #e2e8f0;
}
.profile-name { margin: 0 0 0.25rem; font-size: 1.2rem; }
.profile-email { margin: 0 0 1rem; font-size: 0.9rem; word-break: break-all; }
.profile-meta {
    display: grid;
    gap: 0.65rem;
    text-align: left;
    margin: 0 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.profile-meta dt { font-size: 0.75rem; color: var(--text-muted); }
.profile-meta dd { margin: 0; font-weight: 500; }
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.profile-stat {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.35rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.profile-stat:hover { background: rgba(99, 102, 241, 0.12); }
.profile-stat strong { font-size: 1.1rem; }
.profile-stat span { font-size: 0.7rem; color: var(--text-muted); }
.profile-main { display: flex; flex-direction: column; gap: 1.25rem; }
.profile-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profile-form h2 { margin: 0; font-size: 1.1rem; }
.profile-form h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.profile-section { padding-top: 0.5rem; }
.profile-hint { margin: 0.35rem 0 0; font-size: 0.8rem; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.profile-form label { display: flex; flex-direction: column; gap: 0.35rem; }
.profile-form label span { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 900px) {
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
    .movers-grid { grid-template-columns: 1fr; }
    .economy-two-col { grid-template-columns: 1fr; }
    .economy-charts-grid { grid-template-columns: 1fr; }
    .tools-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* Blog */
.blog-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.blog-search-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    min-width: min(100%, 360px);
}
.blog-search-form .input { flex: 1; min-width: 0; }
.blog-layout, .blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}
.blog-main,
.blog-article-main {
    min-width: 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.blog-card { overflow: hidden; padding: 0; }
.blog-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.blog-card-media {
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.35;
}
.blog-card-body { padding: 1rem 1.1rem 1.15rem; }
.blog-card-body time { font-size: 0.78rem; color: var(--text-muted); }
.blog-card-body h2 { margin: 0.35rem 0 0.5rem; font-size: 1.05rem; line-height: 1.35; }
.blog-card-body p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.blog-read-more { display: inline-block; margin-top: 0.75rem; font-size: 0.85rem; color: var(--accent); }
.blog-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.blog-sidebar-card { padding: 1rem 1.1rem; }
.blog-sidebar-card h3 { margin: 0 0 0.75rem; font-size: 0.95rem; }
.blog-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-recent-list a { display: flex; flex-direction: column; gap: 0.2rem; color: inherit; text-decoration: none; }
.blog-recent-list a:hover strong { color: var(--accent); }
.blog-recent-list span { font-size: 0.78rem; color: var(--text-muted); }
.blog-empty { padding: 2rem; text-align: center; }
.blog-search-meta { margin: 0 0 1rem; }
.blog-article-header { padding: 1.25rem 1.5rem; }
.blog-article-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-article-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.blog-article-title-row h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.blog-article-excerpt { margin: 0.75rem 0 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.55; }
.blog-article-cover { margin: 1rem 0 0; border-radius: var(--radius); overflow: hidden; }
.blog-article-cover img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.blog-article-content { padding: 1.5rem; margin-top: 1rem; }
.blog-article-content.prose {
    line-height: 1.8;
    font-size: 1.02rem;
    color: var(--text);
}
.blog-article-content.prose p {
    margin: 0 0 1.15rem;
}
.blog-article-content.prose p:last-child {
    margin-bottom: 0;
}
.blog-article-content.prose h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    margin: 0 0 1rem;
}
.blog-article-content.prose h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.35rem;
    line-height: 1.3;
}
.blog-article-content.prose h3 {
    margin: 1.35rem 0 0.6rem;
    font-size: 1.12rem;
    line-height: 1.35;
}
.blog-article-content.prose h4 {
    margin: 1.1rem 0 0.5rem;
    font-size: 1rem;
}
.blog-article-content.prose ul,
.blog-article-content.prose ol {
    margin: 0 0 1.15rem 1.35rem;
    padding: 0;
}
.blog-article-content.prose li {
    margin-bottom: 0.45rem;
}
.blog-article-content.prose li:last-child {
    margin-bottom: 0;
}
.blog-article-content.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-article-content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}
.blog-article-content.prose blockquote {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid rgba(129, 140, 248, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-article-content.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}
.blog-article-content.prose th,
.blog-article-content.prose td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.blog-article-content.prose hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--border);
}
.blog-comments { padding: 1.25rem 1.5rem; margin-top: 1rem; }
.blog-comments h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.blog-comment-count { color: var(--text-muted); font-weight: 500; }
.blog-comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.blog-comment-item { padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.blog-comment-head { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; font-size: 0.85rem; }
.blog-comment-head time { color: var(--text-muted); }
.blog-comment-item p { margin: 0; line-height: 1.55; }
.blog-comment-form-wrap { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem; }
.blog-comment-form-wrap h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.blog-comment-hint { margin: 0 0 1rem; font-size: 0.85rem; }
.blog-comment-form { display: flex; flex-direction: column; gap: 0.85rem; }
.panel-seo-details { margin: 1rem 0; padding: 0.75rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.panel-seo-details summary { cursor: pointer; font-weight: 600; }
.panel-filter-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.panel-filter-tabs .is-active { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); }

/* Blog tags — frontend */
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e0e7ff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(129, 140, 248, 0.35);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.blog-tag::before {
    content: '#';
    font-size: 0.72rem;
    font-weight: 700;
    color: #67e8f9;
    opacity: 0.85;
}
a.blog-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.34), rgba(34, 211, 238, 0.16));
    border-color: rgba(129, 140, 248, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.blog-card-tags { padding: 0 1.1rem 1rem; margin-top: -0.35rem; }
.blog-article-tags { margin-top: 0.85rem; }

@media (max-width: 900px) {
    .blog-layout,
    .blog-article-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .blog-page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .blog-search-form {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

    .blog-search-form .btn {
        flex: 1 1 auto;
        min-width: 5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-sidebar {
        position: static;
        order: 2;
    }

    .blog-main {
        order: 1;
    }

    .blog-sidebar-card {
        padding: 1rem;
    }

    .blog-recent-list {
        gap: 0.65rem;
    }

    .blog-article-header {
        padding: 1rem 1.1rem;
    }

    .blog-article-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .blog-article-title-row h1 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .blog-article-title-row .share-actions {
        align-self: flex-start;
    }

    .blog-article-excerpt {
        font-size: 0.95rem;
    }

    .blog-article-content {
        padding: 1rem 1.1rem;
        margin-top: 0.85rem;
    }

    .blog-article-cover {
        margin-top: 0.85rem;
    }

    .blog-article-cover img {
        max-height: 240px;
    }

    .blog-comments {
        padding: 1rem 1.1rem;
        margin-top: 0.85rem;
    }

    .blog-comment-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .page-header .breadcrumb {
        flex-wrap: wrap;
        row-gap: 0.25rem;
        font-size: 0.8rem;
    }

    .page-header .breadcrumb span:last-child {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .portfolio-holdings-controls {
        grid-template-columns: 1fr;
    }
    .portfolio-filter-field--search,
    .portfolio-filter-actions {
        grid-column: auto;
    }
    .portfolio-filter-actions {
        justify-content: stretch;
    }
    .portfolio-filter-actions .btn {
        flex: 1;
    }
}

/* Dialog (tefasDialog) */
body.tefas-dialog-open { overflow: hidden; }
.tefas-dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}
.tefas-dialog[hidden] { display: none !important; }
.tefas-dialog-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.tefas-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(85vh, 720px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    animation: tefasDialogIn 0.22s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.tefas-dialog-panel--wide { width: min(560px, 100%); }
@keyframes tefasDialogIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tefas-dialog-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem 0.65rem;
}
.tefas-dialog-icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}
.tefas-dialog-icon.is-success { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.tefas-dialog-icon.is-warning { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.tefas-dialog-icon.is-error { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.tefas-dialog-title {
    flex: 1;
    margin: 0;
    padding-top: 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f1f5f9;
}
.tefas-dialog-x {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    line-height: 0;
}
.tefas-dialog-x:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.06); }
.tefas-dialog-body {
    padding: 0 1.15rem 1rem 3.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #cbd5e1;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 50vh;
}
.tefas-dialog-panel--wide .tefas-dialog-body { padding-left: 1.15rem; }
.tefas-dialog-lead {
    margin: 0 0 0.75rem;
    white-space: normal;
}
.tefas-dialog-hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: normal;
}
.tefas-dialog-copybox {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.55rem 0.55rem 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: rgba(15, 23, 42, 0.65);
}
.tefas-dialog-secret {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #e0e7ff;
    word-break: break-all;
    white-space: pre-wrap;
}
.tefas-dialog-copybox .btn { flex-shrink: 0; align-self: center; }
.tefas-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(15, 23, 42, 0.35);
}
@media (max-width: 520px) {
    .tefas-dialog-body { padding-left: 1.15rem; }
    .tefas-dialog-head { padding-bottom: 0.35rem; }
}

/* Portföy sekmeleri — son kural */
.portfolio-view-panels > .portfolio-view-panel[data-pv-active="true"] {
    display: flex !important;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 1 !important;
    visibility: visible !important;
}
.portfolio-view-panels > .portfolio-view-panel[data-pv-active="false"] {
    display: none !important;
}
.portfolio-view-panels .fade-in-up,
.portfolio-view-panel .card-glass {
    opacity: 1 !important;
    transform: none !important;
}
.portfolio-view-panels .fade-in-up {
    animation: none !important;
}
