*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --blue: #69c7ff;
    --blue-glow: rgba(105, 199, 255, 0.4);
    --green: #00ff9c;
    --red: #ff4d4d;
    --border: #2a3542;
    --bg-dark: #0f1720;
    --bg-card: #121922;
    --bg-card-2: #1a2430;
    --text-soft: #8b98a7;
    --text-main: #e6edf3;

    --vote-up: #00ff9c;
    --vote-flat: #5f6f86;
    --vote-down: #ff4d4d;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.1), transparent 25%),
        linear-gradient(180deg, #0a0f14 0%, #0f1720 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.hidden {
    display: none !important;
}

/* =========================
   NAV
========================= */

nav {
    background: linear-gradient(145deg, #1a2430, #0f1720);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-mobile-current {
    display: none;
}

nav ul {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--blue);
    background: linear-gradient(145deg, #1a2430, #0f1720);
}

nav a[href*="votemarket.html"]:hover,
nav a[href*="vote-market/"]:hover {
    color: var(--green);
}

nav a[href*="quickdiscovery.html"]:hover,
nav a[href*="stock-swipe/"]:hover {
    color: var(--red);
}

nav a.active[href*="votemarket.html"],
nav a.active[href*="vote-market/"] {
    color: var(--green);
}

nav a.active[href*="quickdiscovery.html"],
nav a.active[href*="stock-swipe/"] {
    color: var(--red);
}

.burger-btn {
    font-size: 22px;
    cursor: pointer;
    color: white;
    background: #2a3542;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.burger-btn:hover {
    transform: translateY(-1px);
    background: #334154;
    box-shadow: 0 0 18px rgba(105, 199, 255, 0.18);
}

.nav-back-btn {
    font-size: 22px;
    cursor: pointer;
    color: white;
    background: #2a3542;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.nav-back-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    font-weight: 400;
    transform: none;
    line-height: 1;
}

.nav-back-btn:hover {
    transform: translateY(-1px);
    background: #334154;
    box-shadow: 0 0 18px rgba(105, 199, 255, 0.18);
}

.burger-btn:focus-visible,
.nav-back-btn:focus-visible,
.nav-drawer-close:focus-visible,
.nav-drawer-link:focus-visible {
    outline: 2px solid rgba(105, 199, 255, 0.78);
    outline-offset: 3px;
}

.nav-drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 260;
    pointer-events: none;
}

.nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 12, 0.62);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.nav-drawer-panel {
    position: absolute;
    top: 18px;
    left: 18px;
    bottom: 18px;
    width: min(360px, calc(100vw - 36px));
    padding: 24px;
    border: 1px solid rgba(105, 199, 255, 0.14);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.14), transparent 38%),
        linear-gradient(155deg, rgba(19, 28, 39, 0.98), rgba(10, 16, 24, 0.98));
    box-shadow:
        0 30px 55px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(105, 199, 255, 0.08);
    transform: translateX(calc(-100% - 20px));
    transition: transform 0.34s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.nav-drawer-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
}

.nav-drawer-title {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 1.15;
    color: #ffffff;
}

.nav-drawer-close {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid rgba(105, 199, 255, 0.16);
    border-radius: 14px;
    background: rgba(32, 46, 63, 0.82);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-drawer-close:hover {
    transform: translateY(-1px);
    background: rgba(44, 61, 80, 0.96);
    box-shadow: 0 0 18px rgba(105, 199, 255, 0.14);
}

.nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-drawer-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(105, 199, 255, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(17, 25, 35, 0.94), rgba(22, 32, 44, 0.98));
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.nav-drawer-link:hover {
    transform: translateX(4px);
    border-color: rgba(105, 199, 255, 0.28);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(105, 199, 255, 0.1);
}

.nav-drawer-link.active {
    border-color: rgba(105, 199, 255, 0.34);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(18, 29, 42, 0.98), rgba(16, 24, 35, 0.98));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(105, 199, 255, 0.12);
}

.nav-drawer-link-sentiment.active {
    border-color: rgba(0, 255, 156, 0.32);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(14, 34, 29, 0.98), rgba(12, 24, 21, 0.98));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(0, 255, 156, 0.12);
}

.nav-drawer-link-discovery.active {
    border-color: rgba(255, 77, 77, 0.3);
    background:
        radial-gradient(circle at top right, rgba(255, 77, 77, 0.1), transparent 38%),
        linear-gradient(145deg, rgba(34, 20, 25, 0.98), rgba(24, 16, 19, 0.98));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(255, 77, 77, 0.12);
}

.nav-drawer-link-sentiment .nav-drawer-link-eyebrow {
    color: var(--green);
}

.nav-drawer-link-discovery .nav-drawer-link-eyebrow {
    color: #ff7b7b;
}

.nav-drawer-link-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #93d8ff;
}

.nav-drawer-link-title {
    font-size: 22px;
    line-height: 1.1;
}

body.nav-drawer-open {
    overflow: hidden;
}

body.nav-drawer-open .nav-drawer-layer {
    pointer-events: auto;
}

body.nav-drawer-open .nav-drawer-backdrop {
    opacity: 1;
}

body.nav-drawer-open .nav-drawer-panel {
    transform: translateX(0);
}

@media (max-width: 900px) {
    nav ul {
        gap: 16px;
    }

    nav a {
        font-size: 18px;
        padding: 9px 11px;
    }
}

@media (max-width: 720px) {
    nav {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-content: stretch;
        gap: 10px;
        overflow: visible;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        flex: 0 0 auto;
    }

    .nav-mobile-current {
        display: none;
    }

    nav ul {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: initial;
        display: flex;
        justify-content: safe center;
        gap: 6px;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-padding-left: 10px;
        scroll-padding-right: 18px;
        padding-left: 10px;
        padding-right: 18px;
        padding-bottom: 2px;
    }

    nav ul > li {
        flex: 0 0 auto;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav a {
        font-size: 15px;
        padding: 8px 8px;
        white-space: nowrap;
    }

    .nav-drawer-panel {
        width: min(360px, calc(100vw - 24px));
        top: 12px;
        left: 12px;
        bottom: 12px;
    }
}

.info-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 30px 0;
}

.info-hero,
.info-section {
    background: linear-gradient(145deg, #121922, #0f1720);
    border: 1px solid rgba(100, 180, 255, 0.14);
    border-radius: 24px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 16px rgba(105, 199, 255, 0.06);
}

.info-hero {
    padding: 42px 34px;
}

.info-kicker {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
}

.info-hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    color: #ffffff;
}

.info-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.info-section {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.info-card {
    padding: 22px;
    border: 1px solid rgba(105, 199, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(20, 30, 42, 0.96), rgba(13, 20, 29, 0.98));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #ffffff;
}

.info-card p,
.info-list p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-list-item {
    padding: 20px 22px;
    border: 1px solid rgba(105, 199, 255, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 28, 40, 0.95), rgba(12, 18, 27, 0.98));
}

.info-list-item strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 17px;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 30px 0;
}

.profile-auth-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-clerk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 20px;
}

.profile-clerk-column,
.profile-clerk-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-clerk-card {
    border: 1px solid rgba(105, 199, 255, 0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(20, 30, 42, 0.96), rgba(13, 20, 29, 0.98));
    padding: 24px;
    min-height: 280px;
}

.profile-clerk-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fdcff;
}

.profile-clerk-title {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.profile-clerk-note {
    margin: 14px 0 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.profile-clerk-mount {
    margin-top: 18px;
}

.profile-account-badge {
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(105, 199, 255, 0.18);
    background: rgba(105, 199, 255, 0.1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-clerk-user-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.profile-clerk-user-button {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.profile-auth-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-auth-tab {
    border: 1px solid rgba(105, 199, 255, 0.14);
    background: rgba(12, 18, 26, 0.55);
    color: #b8cadf;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.profile-auth-tab.active,
.profile-auth-tab:hover {
    border-color: rgba(105, 199, 255, 0.35);
    color: #ffffff;
}

.profile-auth-form,
.profile-account-card {
    border: 1px solid rgba(105, 199, 255, 0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(20, 30, 42, 0.96), rgba(13, 20, 29, 0.98));
    padding: 24px;
}

.profile-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.profile-account-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.profile-account-avatar {
    width: 52px;
    height: 52px;
}

.profile-account-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-account-copy strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.profile-account-copy span {
    color: var(--text-soft);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-logout-btn {
    background: transparent;
}

.profile-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.profile-stat-card {
    padding: 20px 22px;
    border: 1px solid rgba(105, 199, 255, 0.12);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(19, 29, 41, 0.98), rgba(12, 18, 26, 0.98));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.profile-stat-card span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fdcff;
}

.profile-stat-card strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    word-break: break-word;
}

.profile-stat-card p {
    margin: 10px 0 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
}

.profile-disclaimer {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 205, 96, 0.14);
    background: rgba(255, 205, 96, 0.05);
    color: #f2d18b;
    font-size: 14px;
    line-height: 1.65;
}

.profile-form {
    border: 1px solid rgba(105, 199, 255, 0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(20, 30, 42, 0.96), rgba(13, 20, 29, 0.98));
    padding: 24px;
}

.profile-form-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 18px 0;
}

.profile-form-note,
.profile-form-count {
    color: rgba(174, 197, 224, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.profile-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.profile-feedback {
    margin: 16px 0 0 0;
    color: #9fb4d1;
    font-size: 13px;
    line-height: 1.6;
}

.profile-feedback.is-error {
    color: #ff7575;
}

.profile-feedback.is-success {
    color: #27db89;
}

@media (max-width: 720px) {
    .info-hero {
        padding: 32px 24px;
    }

    .info-hero h1 {
        font-size: 34px;
    }

    .info-section {
        padding: 22px;
    }

    .profile-form {
        padding: 20px;
    }

    .profile-auth-form,
    .profile-account-card {
        padding: 20px;
    }

    .profile-clerk-card {
        padding: 20px;
    }
}

@media (max-width: 940px) {
    .profile-clerk-layout {
        grid-template-columns: 1fr;
    }
}

.account-page {
    margin: 52px 0 30px;
}

html.account-auth-preview-authenticated #account-guest-shell {
    display: none !important;
}

html.account-auth-preview-authenticated #profile-account-card {
    display: block !important;
}

.account-kicker {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9fdcff;
}

.account-guest-shell {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.account-guest-panel,
.account-dashboard {
    width: 100%;
    border: 1px solid rgba(105, 199, 255, 0.14);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.08), transparent 32%),
        radial-gradient(circle at bottom left, rgba(0, 255, 156, 0.05), transparent 24%),
        linear-gradient(145deg, #121922, #0f1720);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.34),
        0 0 20px rgba(105, 199, 255, 0.06);
}

.account-guest-panel {
    max-width: 100%;
    padding: 40px;
}

.account-guest-copy {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.account-guest-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: 48px;
    line-height: 1.06;
}

.account-guest-copy p {
    margin: 16px auto 0;
    max-width: 680px;
    color: #c3d2e1;
    font-size: 17px;
    line-height: 1.8;
}

.account-guest-benefits {
    display: grid;
    gap: 16px;
}

.account-guest-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto 28px;
}

.account-guest-feature {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(105, 199, 255, 0.1);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.1), transparent 42%),
        linear-gradient(145deg, rgba(16, 25, 36, 0.94), rgba(12, 18, 28, 0.98));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.account-guest-feature span {
    display: inline-block;
    margin-bottom: 10px;
    color: #9fdcff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.account-guest-feature-voting span {
    color: #00f59b;
}

.account-guest-feature-voting {
    border-color: rgba(0, 245, 155, 0.2);
    background:
        radial-gradient(circle at top right, rgba(0, 245, 155, 0.16), transparent 40%),
        linear-gradient(145deg, rgba(12, 31, 28, 0.96), rgba(12, 18, 28, 0.98));
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(0, 245, 155, 0.08);
}

.account-guest-feature-community span {
    color: #69c7ff;
}

.account-guest-feature-community {
    border-color: rgba(105, 199, 255, 0.2);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.16), transparent 40%),
        linear-gradient(145deg, rgba(14, 26, 39, 0.96), rgba(12, 18, 28, 0.98));
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(105, 199, 255, 0.08);
}

.account-guest-feature-discovery span {
    color: #ff6b78;
}

.account-guest-feature-discovery {
    border-color: rgba(255, 107, 120, 0.2);
    background:
        radial-gradient(circle at top right, rgba(255, 107, 120, 0.16), transparent 40%),
        linear-gradient(145deg, rgba(35, 20, 28, 0.96), rgba(12, 18, 28, 0.98));
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 107, 120, 0.08);
}

.account-guest-feature strong {
    display: block;
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.account-guest-feature p {
    margin: 12px 0 0;
    color: #b9cadb;
    font-size: 15px;
    line-height: 1.72;
}

.account-guest-surface {
    display: flex;
    justify-content: center;
    width: 100%;
}

.account-guest-brand,
.account-signin-card,
.account-hub-card,
.account-stat-card {
    border: 1px solid rgba(105, 199, 255, 0.1);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(20, 30, 42, 0.96), rgba(13, 20, 29, 0.98));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.account-guest-brand {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.account-guest-label,
.account-signin-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9fdcff;
}

.account-guest-brand h2,
.account-signin-title,
.account-hub-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.1;
}

.account-guest-brand p,
.account-signin-copy,
.account-hub-card p {
    margin: 14px 0 0;
    color: #b7c8da;
    font-size: 15px;
    line-height: 1.75;
}

.account-guest-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.account-guest-point {
    padding: 16px;
    border-radius: 18px;
    background: rgba(11, 19, 28, 0.6);
    border: 1px solid rgba(105, 199, 255, 0.08);
}

.account-guest-point span {
    display: inline-block;
    margin-bottom: 8px;
    color: #9fdcff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-guest-point strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.account-signin-card {
    padding: 36px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(100%, 920px);
    margin: 0 auto;
    min-height: 560px;
}

.account-signin-feedback {
    margin-top: 16px;
}

.account-signin-card .profile-clerk-mount {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 452px;
}

.account-signin-card .profile-clerk-mount > * {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
}

.account-signin-card .cl-rootBox,
.account-signin-card .cl-cardBox {
    display: flex;
    justify-content: center;
    width: min(100%, 620px);
    max-width: 620px;
    margin-inline: auto;
}

.account-signin-card .cl-card {
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.account-signin-card .cl-footer,
.account-signin-card .cl-navbar,
.account-signin-card .cl-socialButtonsBlockButton {
    width: 100%;
}

.account-signin-card .cl-main,
.account-signin-card .cl-header,
.account-signin-card .cl-form,
.account-signin-card .cl-socialButtons {
    width: 100%;
    margin-inline: auto;
}

.account-guest-bottom-card {
    width: 100%;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(105, 199, 255, 0.12);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.1), transparent 38%),
        linear-gradient(145deg, rgba(18, 28, 39, 0.96), rgba(12, 18, 28, 0.98));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    color: #c8d8ea;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.account-dashboard {
    padding: 30px;
}

.account-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.account-dashboard-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-dashboard-clerk-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    min-width: 70px;
    height: 70px;
    min-height: 70px;
    flex: 0 0 70px;
}

.account-dashboard-avatar {
    width: 70px;
    height: 70px;
    font-size: 22px;
}

.stock-comment-avatar.has-image,
.account-dashboard-avatar.has-image {
    padding: 0;
    overflow: hidden;
    color: transparent;
    letter-spacing: 0;
}

.avatar-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.account-dashboard-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.05;
}

.account-dashboard-copy p {
    margin: 8px 0 0;
    color: #afc1d4;
    font-size: 15px;
}

.account-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-stats-grid,
.account-hub-grid {
    display: grid;
    gap: 18px;
}

.account-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 26px;
}

.account-stat-card {
    padding: 22px;
    width: 100%;
    appearance: none;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(105, 199, 255, 0.2);
}

.account-stat-card.is-active {
    border-color: rgba(105, 199, 255, 0.28);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(105, 199, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(22, 32, 45, 0.98), rgba(13, 20, 29, 0.98));
}

.account-stat-card:focus-visible {
    outline: 2px solid rgba(159, 220, 255, 0.65);
    outline-offset: 2px;
}

.account-stat-card > span,
.account-hub-card > span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fdcff;
}

.account-stat-card strong {
    display: block;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
}

.account-stat-card p {
    margin: 12px 0 0;
    color: #b6c7d8;
    font-size: 14px;
    line-height: 1.7;
}

.account-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.account-hub-card {
    padding: 24px;
}

.account-panel-list,
.account-favorites-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-favorite-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(11, 18, 27, 0.56);
    border: 1px solid rgba(255, 217, 102, 0.1);
}

.account-favorite-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-favorite-copy strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.account-favorite-copy span,
.account-favorite-meta span,
.account-favorite-empty {
    color: #adc1d4;
    font-size: 14px;
    line-height: 1.55;
}

.account-favorite-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    white-space: nowrap;
}

.account-favorite-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-favorite-link,
.account-favorite-remove {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.account-favorite-link {
    border: 1px solid rgba(20, 231, 147, 0.22);
    background: rgba(20, 231, 147, 0.1);
    color: #79f3bc;
}

.account-favorite-remove {
    border: 1px solid rgba(255, 217, 102, 0.18);
    background: rgba(255, 217, 102, 0.08);
    color: #ffe8a4;
    cursor: pointer;
}

.account-favorite-link:hover,
.account-favorite-remove:hover {
    transform: translateY(-1px);
}

.account-favorite-empty {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 217, 102, 0.16);
    background: rgba(255, 217, 102, 0.04);
}

.account-panel-more {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.account-panel-more-btn {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(105, 199, 255, 0.2);
    background: rgba(105, 199, 255, 0.08);
    color: #69c7ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.account-panel-more-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(105, 199, 255, 0.34);
    color: #edf5ff;
}

.account-panel-more-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.account-panel-tag {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 217, 102, 0.16);
    background: rgba(255, 217, 102, 0.08);
    color: #ffe8a4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-panel-note {
    color: #9fb4c8;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.account-stock-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.account-stock-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-vote-pill {
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(180, 195, 212, 0.16);
    background: rgba(180, 195, 212, 0.08);
    color: #e8f0fb;
}

.account-vote-pill-label {
    display: inline-block;
    line-height: 1;
    transform: none;
}

.account-vote-pill.is-up {
    border-color: rgba(20, 231, 147, 0.2);
    background: rgba(20, 231, 147, 0.1);
    color: #79f3bc;
}

.account-vote-pill.is-flat {
    border-color: rgba(151, 160, 172, 0.2);
    background: rgba(151, 160, 172, 0.12);
    color: #d3dae2;
}

.account-vote-pill.is-down {
    border-color: rgba(255, 93, 102, 0.2);
    background: rgba(255, 93, 102, 0.1);
    color: #ff8e96;
}

.account-stock-date {
    color: #9fb4c8;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.account-comment-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(11, 18, 27, 0.56);
    border: 1px solid rgba(105, 199, 255, 0.08);
}

.account-comment-head,
.account-comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.account-comment-stock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.account-comment-stock strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.account-comment-stock span,
.account-comment-meta span,
.account-comment-footer span {
    color: #adc1d4;
    font-size: 13px;
    line-height: 1.55;
}

.account-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.account-comment-body {
    margin: 14px 0 0;
    color: #edf5ff;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.account-comment-body-wrap {
    margin-top: 14px;
}

.account-comment-body-wrap .account-comment-body {
    margin-top: 0;
}

.account-comment-expand-btn {
    margin-top: 8px;
    border: none;
    background: none;
    padding: 0;
    color: #69c7ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.account-comment-expand-btn:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.account-comment-footer {
    margin-top: 14px;
}

.account-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-identity-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-identity-list div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(11, 18, 27, 0.56);
    border: 1px solid rgba(105, 199, 255, 0.08);
}

.account-identity-list dt {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.account-identity-list dd {
    margin: 6px 0 0;
    color: #adc1d4;
    font-size: 14px;
    line-height: 1.65;
}

.account-identity-list dt {
    margin: 0;
}

.account-identity-list dd {
    word-break: break-word;
}

.account-user-button-avatar {
    width: 70px;
    height: 70px;
}

@media (max-width: 1080px) {
    .account-stats-grid,
    .account-guest-benefits,
    .account-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .account-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .account-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-hub-grid {
        grid-template-columns: 1fr;
    }

    .account-guest-benefits,
    .account-guest-points {
        grid-template-columns: 1fr;
    }

    .account-favorite-item {
        grid-template-columns: 1fr;
    }

    .account-favorite-meta {
        text-align: left;
    }

    .account-favorite-actions,
    .account-stock-action-row,
    .account-comment-head,
    .account-comment-footer {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .account-stock-actions {
        align-items: flex-start;
    }

    .account-comment-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .account-page {
        margin: 30px 0 22px;
    }

    .account-guest-shell {
        min-height: auto;
    }

    .account-guest-panel,
    .account-dashboard {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .account-guest-bottom-card {
        padding: 16px 18px;
        border-radius: 20px;
    }

    .account-guest-copy h1,
    .account-dashboard-copy h1 {
        font-size: 32px;
    }

    .account-guest-copy p {
        font-size: 15px;
    }

    .account-guest-feature {
        padding: 18px;
        border-radius: 18px;
    }

    .account-guest-feature strong {
        font-size: 20px;
    }

    .account-guest-brand,
    .account-signin-card,
    .account-hub-card,
    .account-stat-card {
        border-radius: 20px;
    }

    .account-signin-card {
        padding: 22px 16px;
        min-height: 0;
    }

    .account-signin-card .profile-clerk-mount {
        min-height: 0;
    }
}



/* =========================
   HEADER
========================= */

header {
    background: linear-gradient(145deg, #121922, #1a2430);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px var(--blue-glow);
}



header h1 {
    font-size: 48px;
    color: #ffffff;
    margin: 0;
    
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    
    
}

.header-brand img {
    width: 40px;
    height: 40px;
}

.header-brand h1 {
    font-size: 42px;
    color: #ffffff;
    margin: 0;
}

.header-sub {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 16px;
    text-align: center;
    
}

/* =========================
   GENERIC SECTIONS
========================= */

.section-header {
    margin-bottom: 15px;
    color: #ffffff;
}

.section-main {
    display: block;
    font-size: 14px;
    color: var(--blue);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-sub {
    color: #ffffff;
    font-size: 32px !important;
    margin: 8px 0 0 0;
    font-weight: 700;
    line-height: 1.15;
}

.section-subtitle {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 24px;
}


/* =========================
   BUTTONS
========================= */

.market-btn,
.vote-btn,
.discover-btn,
.skip-btn,
.vote-now-btn,
.btn-green,
.btn-red {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.market-btn,
.vote-btn,
.discover-btn {
    margin-top: auto;
}

.market-btn {
    background: linear-gradient(145deg, #69c7ff, #8fd9ff);
    color: #07121a;
}

.market-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(105, 199, 255, 0.4);
}

.vote-btn,
.btn-green,
.vote-now-btn {
    background: linear-gradient(145deg, #00d97f, #00ff9c);
    color: #07140f;
}

.vote-btn:hover,
.btn-green:hover,
.vote-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.35);
}

.discover-btn,
.skip-btn,
.btn-red {
    background: linear-gradient(145deg, #ff4d4d, #ff6b6b);
    color: #1a0a0a;
}

.discover-btn:hover,
.skip-btn:hover,
.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.35);
}

/* =========================
   HEATMAP / STOCK
========================= */

.heatmap-section {
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 30px;
    background: linear-gradient(145deg, #121922, #0f1720);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(105, 199, 255, 0.1);
}

.heatmap-subtitle {
    color: var(--text-soft);
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 2px solid var(--blue);
    padding-left: 10px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.heatmap-section h2 {
    font-size: 26px;
    margin-bottom: 5px;
    color: inherit;
}

.stock {
    position: relative;
    overflow: hidden;
    padding: 18px 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: white;
    transition: 0.2s;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.stock.big {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 120px;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stock.medium {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 82px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stock.small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 72px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stock.green {
    background: linear-gradient(145deg, #0f6b4a, #00c978);
}

.stock.red {
    background: linear-gradient(145deg, #7a1f1f, #c82333);
}

.stock:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.stock span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: normal;
}

.stock.green:hover {
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.25);
}

.stock.red:hover {
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.25);
}

.stock::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: 0.2s;
}

.stock:hover::after {
    opacity: 1;
}

.stock-detail-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(145deg, #121922, #0f1720);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stock-detail-section h2 {
    margin-top: 0;
    font-size: 32px;
    color: var(--blue);
}

.stock-detail-section p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.6;
}

/* =========================
   NEWS
========================= */

.news-section {
    margin-top: 35px;
    background: linear-gradient(145deg, #121922, #0f1720);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.news-section h2 {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 28px;
}

.news-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.news-card {
    background: linear-gradient(145deg, #1a2430, #121922);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    min-height: 190px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        0 0 15px rgba(105, 199, 255, 0.2);
}

.news-card h3 {
    color: #ffffff;
    margin: 10px 0;
    font-size: 20px;
}

.news-card p {
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 14px;
}

.news-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue);
}

/* =========================
   FOOTER
========================= */

footer {
    width: 100%;
    margin: 25px 0 0 0;
    padding: 12px 20px;
    border: 1px solid rgba(100, 180, 255, 0.18);
    border-radius: 12px;
    color: #9fb4d1;
    background: rgba(10, 20, 35, 0.7);
    box-sizing: border-box;
}

.home-site-footer,
.vote-market-site-footer {
    margin-top: 34px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(100, 180, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(0, 217, 127, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(10, 18, 30, 0.96), rgba(8, 13, 24, 0.98));
    box-shadow:
        0 22px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-site-footer-top,
.vote-market-site-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-site-footer-brand,
.home-site-footer-column,
.vote-market-site-footer-brand,
.vote-market-site-footer-column {
    min-width: 0;
}

.home-site-footer-kicker,
.vote-market-site-footer-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #69c7ff;
    margin-bottom: 14px;
}

.home-site-footer-brand h2,
.vote-market-site-footer-brand h2 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.08;
}

.home-site-footer-brand p,
.vote-market-site-footer-brand p {
    margin: 14px 0 0;
    color: #afc1d4;
    font-size: 15px;
    line-height: 1.7;
    max-width: 48ch;
}

.home-site-footer-column h3,
.vote-market-site-footer-column h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dce9f8;
}

.home-site-footer-links,
.home-site-footer-meta,
.vote-market-site-footer-links,
.vote-market-site-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-site-footer-links a,
.home-site-footer-meta span,
.home-site-footer-meta a,
.vote-market-site-footer-links a,
.vote-market-site-footer-meta span,
.vote-market-site-footer-meta a {
    color: #9fb4d1;
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
}

.home-site-footer-links a:hover,
.home-site-footer-meta a:hover,
.vote-market-site-footer-links a:hover,
.vote-market-site-footer-meta a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.home-site-footer-links a,
.home-site-footer-meta a,
.vote-market-site-footer-links a,
.vote-market-site-footer-meta a {
    transition: color 0.18s ease, transform 0.18s ease;
}

.home-site-footer-bottom,
.vote-market-site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(100, 180, 255, 0.12);
    color: #86a0c0;
    font-size: 13px;
    line-height: 1.5;
}

.site-footer-legal-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.18s ease;
}

.site-footer-legal-link:hover {
    color: #ffffff;
}

.stock-detail-site-footer {
    padding: 18px 24px;
}

.stock-detail-site-footer .vote-market-site-footer-bottom {
    padding-top: 0;
    border-top: none;
}




/* =========================
   VOTE MARKET
========================= */

.vote-market-page {
    width: 100%;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-sizing: border-box;
}

.vote-examples,
.vote-search-section,
.vote-panel {
    background: linear-gradient(145deg, #08111f, #0d1b2f);
    border: 1px solid rgba(100, 180, 255, 0.14);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.05);
}

.vote-panel .section-main {
    color: var(--green);
}

.vote-top-search {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(100, 180, 255, 0.12);
}

.search-filter-box {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vote-search-input,
.vote-sector-select {
    background: rgba(8, 17, 31, 0.95);
    border: 1px solid rgba(100, 180, 255, 0.18);
    color: white;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.98rem;
    outline: none;
}

.vote-search-input {
    flex: 2;
    min-width: 260px;
}

.vote-sector-select {
    flex: 1;
    min-width: 220px;
}

.vote-market-cap-select {
    flex: 1;
    min-width: 220px;
}

.vote-search-input::placeholder {
    color: #8fa3bf;
}

.vote-search-input:focus,
.vote-sector-select:focus {
    border-color: rgba(0, 255, 140, 0.35);
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.08);
}

.vote-native-select {
    display: none;
}

.vote-custom-select {
    position: relative;
    flex: 1;
    min-width: 220px;
    z-index: 3;
}

.vote-custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(100, 180, 255, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    color: #f5fbff;
    font-size: 0.98rem;
    line-height: 1.2;
    cursor: pointer;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(14, 22, 32, 0.92), rgba(10, 17, 26, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.vote-custom-select-trigger:hover {
    border-color: rgba(0, 255, 140, 0.3);
    box-shadow:
        0 10px 18px rgba(4, 11, 19, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vote-custom-select-trigger:focus-visible,
.vote-custom-select.is-open .vote-custom-select-trigger {
    border-color: rgba(0, 255, 140, 0.42);
    box-shadow:
        0 0 0 1px rgba(0, 255, 140, 0.12),
        0 14px 26px rgba(3, 9, 16, 0.28),
        0 0 18px rgba(0, 255, 140, 0.1);
}

.vote-custom-select-value {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

.vote-custom-select-chevron {
    flex-shrink: 0;
    color: #4ff0a3;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.22s ease, color 0.22s ease;
}

.vote-custom-select.is-open .vote-custom-select-chevron {
    transform: rotate(180deg);
    color: #b9ffd9;
}

.vote-custom-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 140, 0.16);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 140, 0.1), transparent 34%),
        linear-gradient(145deg, rgba(13, 20, 31, 0.98), rgba(8, 14, 24, 0.99));
    box-shadow:
        0 24px 38px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(0, 255, 140, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    z-index: 25;
}

.vote-custom-select-menu::-webkit-scrollbar {
    width: 8px;
}

.vote-custom-select-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 140, 0.2);
    border-radius: 999px;
}

.vote-custom-select-option {
    width: 100%;
    display: block;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #d9ecff;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vote-custom-select-option:hover {
    background: rgba(0, 255, 140, 0.08);
    border-color: rgba(0, 255, 140, 0.14);
    color: #ffffff;
    transform: translateX(1px);
}

.vote-custom-select-option.is-selected {
    background:
        linear-gradient(145deg, rgba(9, 40, 30, 0.92), rgba(10, 24, 20, 0.98));
    border-color: rgba(0, 255, 140, 0.24);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vote-custom-select-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vote-custom-select.is-disabled .vote-custom-select-trigger {
    opacity: 0.55;
    cursor: not-allowed;
}

.search-btn {
    background: linear-gradient(145deg, #00c853, #00e676);
    color: #08111f;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(0, 255, 140, 0.18);
}

.vote-filter-reset-btn {
    margin-top: 0;
}

.vote-filter-summary {
    margin-top: 16px;
    color: #9fb8d6;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.vote-filter-summary-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    column-gap: 24px;
    row-gap: 0;
    width: 100%;
}

.vote-filter-summary {
    min-width: 0;
}

.vote-filter-summary-legal {
    margin-top: 16px;
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-self: end;
    align-self: start;
    align-items: baseline;
    justify-content: flex-end;
    column-gap: 10px;
    row-gap: 0;
    text-align: right;
    color: #9fb8d6;
    font-size: 14px;
    line-height: 1.5;
}

.vote-filter-summary-legal-topline {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.vote-filter-summary-legal-primary {
    white-space: nowrap;
}

.vote-filter-summary-legal-secondary {
    white-space: nowrap;
}

.vote-filter-summary-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.vote-filter-summary-legal a:hover {
    color: #ffffff;
}

.vote-market-status-banner {
    margin-top: 14px;
    border: 1px solid rgba(100, 180, 255, 0.16);
    border-radius: 16px;
    background: rgba(12, 18, 26, 0.48);
    padding: 14px 16px;
    color: #c7d8eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.vote-market-status-banner.is-warning {
    border-color: rgba(255, 217, 102, 0.22);
    color: #ffe8a4;
}

.vote-market-status-banner.is-error {
    border-color: rgba(255, 107, 107, 0.24);
    color: #ffb7b7;
}

.vote-market-status-banner-copy {
    flex: 1 1 240px;
    min-width: 0;
    line-height: 1.55;
}

.vote-market-status-banner-action {
    margin-top: 0;
    flex: 0 0 auto;
}

.vote-market-pagination {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 180, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.vote-market-pagination-meta {
    color: #9fb8d6;
    font-size: 14px;
    line-height: 1.5;
}

.vote-market-pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vote-market-page-btn {
    border: 1px solid rgba(100, 180, 255, 0.18);
    background: rgba(12, 19, 31, 0.78);
    color: #dce9f8;
    border-radius: 999px;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.vote-market-page-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(105, 199, 255, 0.34);
    background: rgba(18, 28, 42, 0.95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.vote-market-page-btn.is-active {
    border-color: rgba(105, 199, 255, 0.45);
    background: linear-gradient(145deg, rgba(24, 82, 150, 0.92), rgba(38, 112, 194, 0.94));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(20, 82, 150, 0.28);
}

.vote-market-page-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vote-market-page-nav {
    min-width: 88px;
}

.vote-market-page-ellipsis {
    color: #7e97b5;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0 2px;
}

.vote-domain-filter-block {
    margin-top: 18px;
}

.vote-domain-filter-label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green);
    line-height: 1.2;
}

.vote-domain-tags {
    gap: 10px;
}

.vote-domain-tag {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(100, 180, 255, 0.06);
    border: 1px solid rgba(100, 180, 255, 0.16);
    color: #b7d4f0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vote-domain-tag:hover {
    transform: translateY(-1px);
    border-color: rgba(105, 199, 255, 0.3);
    color: #ffffff;
}

.vote-domain-tag.is-active {
    border-color: rgba(0, 255, 156, 0.36);
    background: rgba(0, 255, 156, 0.12);
    color: #00ff9c;
    box-shadow: 0 0 14px rgba(0, 255, 156, 0.1);
}

.sector-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sector-tags span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 255, 140, 0.08);
    border: 1px solid rgba(0, 255, 140, 0.18);
    color: #9ff5c8;
    font-size: 0.92rem;
}

.vote-stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.vote-stock-card {
    background: rgba(12, 22, 38, 0.95);
    border: 1px solid rgba(145, 165, 189, 0.18);
    border-radius: 22px;
    padding: 24px;
    transition: 0.25s ease;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.18);
    min-width: 0;
    height: 100%;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.vote-stock-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(145, 165, 189, 0.05), transparent 38%);
    z-index: 0;
}

.vote-stock-card > * {
    position: relative;
    z-index: 1;
}

.vote-stock-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 22px rgba(145, 165, 189, 0.12);
    border-color: rgba(145, 165, 189, 0.26);
}

.vote-stock-card:focus-visible {
    outline: 2px solid rgba(0, 255, 156, 0.75);
    outline-offset: 3px;
}

.vote-stock-card h3 {
    color: white;
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.vote-stock-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    min-height: 76px;
}

.vote-stock-title-block {
    min-width: 0;
    flex: 1;
}

.vote-stock-primary-link {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.vote-stock-primary-link:hover h3,
.vote-stock-primary-link:hover .vote-stock-company-name {
    color: #ffffff;
}

.vote-stock-card-header h3 {
    margin: 0;
}

.vote-stock-company-name {
    margin-top: 4px;
    display: block;
    color: #89a0bb;
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
}

.vote-stock-move-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
    min-height: 76px;
}

.vote-market-favorite-indicator {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 217, 102, 0.16);
    background: rgba(255, 217, 102, 0.06);
    color: #ffe8a4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.vote-market-move-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(145, 165, 189, 0.12);
    color: #c7d8eb;
}

.vote-market-move-badge.is-positive {
    border-color: rgba(0, 255, 156, 0.35);
    background: rgba(0, 255, 156, 0.12);
    color: #00ff9c;
}

.vote-market-move-badge.is-negative {
    border-color: rgba(255, 77, 77, 0.35);
    background: rgba(255, 77, 77, 0.12);
    color: #ff6f6f;
}

.vote-market-move-badge.is-unavailable {
    min-width: 150px;
    color: #ffd3d3;
    border-color: rgba(255, 107, 107, 0.22);
    background: rgba(255, 77, 77, 0.08);
}

.vote-market-api-copy {
    color: #ffb9b9;
}

.vote-card-filter-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vote-card-filter-chip,
.vote-card-domain-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(145, 165, 189, 0.18);
    background: rgba(145, 165, 189, 0.08);
    color: #c7d8eb;
}

.vote-card-filter-chip-cap {
    border-color: rgba(105, 199, 255, 0.24);
    background: rgba(105, 199, 255, 0.09);
    color: #9fddff;
}

.vote-card-domain-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vote-card-domain-chip {
    font-weight: 600;
    color: #9ec6eb;
}

.vote-meta {
    overflow-wrap: break-word;
    word-break: break-word;
}

.vote-bar {
    width: 100%;
    height: 9px;
    background: #182536;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.vote-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00c853, #00e676);
}

.vote-percent {
    color: #00e676;
    font-weight: bold;
    font-size: 14px;
    margin-top: 8px;
}

.vote-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.vote-actions button {
    flex: 1;
}

.vote-meta {
    margin-top: auto;
    padding-top: 12px;
    color: #89a0bb;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vote-meta-main {
    display: flex;
    align-items: center;
    gap: inherit;
    flex-wrap: wrap;
    min-width: 0;
}

.vote-meta-count {
    color: #b8d9ff;
    font-weight: 700;
}

.vote-meta-separator {
    opacity: 0.7;
}

.vote-stock-card .vote-meta {
    color: #9eb3c9;
    font-size: 13.5px;
    gap: 7px;
    width: 100%;
}

.vote-stock-card .vote-meta-count {
    color: #d3eaff;
    font-weight: 800;
}

.vote-stock-card .vote-meta .vote-meta-detail {
    color: #b4c8dc;
}

.vote-stock-card .vote-meta-separator {
    color: #7f95aa;
    opacity: 0.82;
}

.vote-card-disclaimer-link {
    margin-left: auto;
    color: inherit;
    font: inherit;
    line-height: inherit;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.18s ease;
}

.vote-card-disclaimer-link:hover {
    color: #ffffff;
}

.vote-actions.voted {
    margin-top: 16px;
}

.selected-vote {
    transform: translateY(-1px);
}

.vote-empty-state {
    grid-column: 1 / -1;
    padding: 36px 30px;
    border: 1px solid rgba(100, 180, 255, 0.14);
    border-radius: 24px;
    background: linear-gradient(145deg, #0d1725, #101c2c);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
}

.vote-empty-state h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #ffffff;
}

.vote-empty-state p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.vote-empty-state.is-loading {
    border-color: rgba(105, 199, 255, 0.2);
}

.vote-empty-state.is-warning {
    border-color: rgba(255, 217, 102, 0.2);
}

.vote-empty-state.is-error {
    border-color: rgba(255, 107, 107, 0.24);
}

.vote-empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.home-sentiment-state,
.stock-detail-page-state {
    margin-top: 14px;
}

.stock-detail-status-banner,
.account-page-status-banner {
    margin-bottom: 16px;
}

.vote-empty-action-secondary {
    background: linear-gradient(145deg, rgba(84, 101, 123, 0.95), rgba(112, 129, 153, 0.95));
    color: #f3f8ff;
}

.vote-empty-action-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(145, 165, 189, 0.22);
}

/* =========================
   TINDVESTEMENTS
========================= */

.tind-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    scroll-snap-type: y mandatory;
}

.feed-card {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: stretch;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 95px;
    padding: 14px 0;
    box-sizing: border-box;
}

.tind-page,
.detail-page {
    width: 100%;
    margin: 0;
}

.tind-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
}

.feed-loader {
    text-align: center;
    padding: 18px;
    margin-bottom: 24px;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, #121922, #0f1720);
}

.discovery-status-banner {
    margin: 18px 0 16px;
    border: 1px solid rgba(100, 180, 255, 0.16);
    border-radius: 16px;
    background: rgba(12, 18, 26, 0.48);
    padding: 14px 16px;
    color: #c7d8eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.discovery-status-banner.is-warning {
    border-color: rgba(255, 217, 102, 0.22);
    color: #ffe8a4;
}

.discovery-status-banner.is-error {
    border-color: rgba(255, 107, 107, 0.24);
    color: #ffb7b7;
}

.discovery-status-banner-copy {
    flex: 1 1 240px;
    min-width: 0;
    line-height: 1.55;
}

.discovery-status-banner-action {
    margin-top: 0;
    flex: 0 0 auto;
}

.discovery-feed-state {
    margin: 12px 0 20px;
}

.discovery-empty-state {
    padding: 34px 30px;
    border: 1px solid rgba(100, 180, 255, 0.14);
    border-radius: 24px;
    background: linear-gradient(145deg, #0d1725, #101c2c);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
}

.discovery-empty-state h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #ffffff;
}

.discovery-empty-state p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.discovery-empty-state.is-loading {
    border-color: rgba(105, 199, 255, 0.2);
}

.discovery-empty-state.is-warning {
    border-color: rgba(255, 217, 102, 0.2);
}

.discovery-empty-state.is-error {
    border-color: rgba(255, 107, 107, 0.24);
}

.discovery-empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tind-top-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}

.tind-main-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.tind-title-row,
.detail-title-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.tind-title-inline {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tind-title-text,
.detail-title-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.tind-title-text h2,
.detail-title-text h2 {
    margin: 0;
    font-size: 34px;
    color: #ffffff;
}

.ticker,
.tind-main-info .ticker,
.tind-title-text .ticker,
.detail-title-text .ticker {
    margin-top: 6px;
    font-size: 15px;
    color: var(--red);
    font-weight: bold;
    text-align: left;
}

.discovery-market-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(145, 165, 189, 0.12);
    color: #c7d8eb;
}

.discovery-market-move.is-positive {
    border-color: rgba(0, 255, 156, 0.35);
    background: rgba(0, 255, 156, 0.12);
    color: #00ff9c;
}

.discovery-market-move.is-negative {
    border-color: rgba(255, 77, 77, 0.35);
    background: rgba(255, 77, 77, 0.12);
    color: #ff6f6f;
}

.company-desc,
.tind-main-info .company-desc {
    margin: 18px 0 0 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-soft);
    text-align: left;
}

.tind-card,
.detail-card,
.discovery-face,
.detail-face {
    background: linear-gradient(145deg, #121922, #0f1720);
}

.tind-card,
.discovery-face {
    border: 1px solid rgba(255, 77, 77, 0.18);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 77, 77, 0.08);
}

.detail-card,
.detail-face {
    border: 1px solid var(--border);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(105, 199, 255, 0.08);
}

.tind-card,
.detail-card {
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
    will-change: transform, opacity;
    cursor: grab;
    touch-action: none;
}

.tind-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.detail-card {
    text-align: left;
}

.tind-card.is-dragging,
.detail-card.is-dragging {
    transition: none;
    cursor: grabbing;
}

.tind-card.swipe-left,
.detail-card.swipe-left {
    transform: translateX(-120px) rotate(-8deg);
    opacity: 0;
}

.tind-card.swipe-right,
.detail-card.swipe-right {
    transform: translateX(120px) rotate(8deg);
    opacity: 0;
}

.tind-card.swipe-up,
.detail-card.swipe-up {
    transform: translateY(-120px);
    opacity: 0;
}

.tind-card.swipe-down,
.detail-card.swipe-down {
    transform: translateY(120px);
    opacity: 0;
}

.unified-feed-card {
    position: relative;
    perspective: 1400px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
}

.unified-feed-card.swipe-out-left {
    transform: translateX(-120px) rotate(-8deg);
    opacity: 0;
}

.unified-feed-card.swipe-out-right {
    transform: translateX(120px) rotate(8deg);
    opacity: 0;
}

.unified-card-inner {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 118px);
    transition: transform 0.35s ease;
    will-change: transform;
    touch-action: auto;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.card-face,
.discovery-face,
.detail-face {
    min-height: calc(100vh - 118px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-face,
.tind-card,
.detail-card,
.discovery-face,
.detail-face {
    border-radius: 18px;
    padding: 28px;
}

.unified-card-inner.is-dragging {
    transition: none;
    cursor: default;
}

.card-face {
    backface-visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.show-discovery .discovery-face {
    display: flex;
}

.show-discovery .detail-face {
    display: none;
}

.show-details .discovery-face {
    display: none;
}

.show-details .detail-face {
    display: flex;
}

.flipping {
    animation: cardFlipFade 0.22s ease;
}

@keyframes cardFlipFade {
    0% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(0.985) rotateY(8deg);
        opacity: 0.35;
    }

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

.tind-actions {
    margin-top: auto;
    padding-top: 26px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-extra-actions {
    margin-top: 18px;
}

.stock-template-face {
    gap: 0;
}

.stock-template-feed-card {
    min-height: 0;
    align-items: flex-start;
    padding: 10px 0 18px;
}

.stock-template-feed-card .unified-card-inner,
.stock-template-feed-card .card-face,
.stock-template-feed-card .discovery-face,
.stock-template-feed-card .detail-face {
    min-height: 0;
    padding: 0;
}

.stock-template-feed-card .discovery-face {
    overflow: hidden;
}

.discovery-face-footer {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 18px 18px;
}

.discovery-actions-panel {
    border: 1px solid rgba(105, 199, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(23, 33, 45, 0.95), rgba(16, 24, 33, 0.98));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.discovery-actions-panel {
    padding: 12px 18px 14px;
}

.discovery-post-vote-actions {
    display: block;
}

.discovery-post-vote-actions .detail-nav-actions {
    margin-top: 0;
}

.discovery-face-footer .tind-actions {
    margin-top: 0;
    padding-top: 0;
}

.discovery-stock-embed-shell {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.discovery-stock-embed-shell-placeholder {
    display: none;
}

.discovery-stock-embed-frame {
    width: 100%;
    display: block;
    border: none;
    background: transparent;
}

.discovery-stock-embed-frame-preview {
    height: 560px;
    pointer-events: none;
}

.discovery-stock-embed-frame-discovery {
    height: 1120px;
}

.discovery-stock-embed-frame-full {
    height: 1980px;
}

.detail-nav-actions {
    margin-top: 24px;
}

.detail-card h2 {
    margin: 0;
    font-size: 38px;
    color: #ffffff;
}

.stock-price {
    margin-top: 18px;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
}

.stock-change {
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--green);
}

.negative-change {
    color: var(--red);
}

.vote-results-box {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(145deg, #17212d, #101821);
    opacity: 0.55;
    transform: translateY(4px);
    transition: 0.25s ease;
}

.vote-results-box.show-results {
    opacity: 1;
    transform: translateY(0);
}

.vote-results-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.vote-bar-large {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #182536;
    margin-bottom: 10px;
}

.vote-bar-bullish {
    height: 100%;
    background: linear-gradient(145deg, #00d97f, #00ff9c);
}

.vote-bar-bearish {
    height: 100%;
    background: linear-gradient(145deg, #ff4d4d, #ff6b6b);
}

.vote-user-state {
    margin: 0;
    font-size: 14px;
    color: var(--text-soft);
}

.comments-section {
    margin-top: 30px;
    text-align: left;
}

.comments-section h3 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.comment {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.comment p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.like-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: #8fa3bf;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.25s;
}

.like-btn:hover {
    border-color: var(--blue);
    color: #ffffff;
}

/* =========================
   STOCK TEMPLATE
========================= */

.stock-template-page {
    width: 100%;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stock-template-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.stock-template-left,
.stock-price-chart-section,
.stock-chart-box,
.advanced-chart-panel,
.chart-main-area,
.stock-hero-box {
    min-width: 0;
}

.stock-template-main>* {
    min-width: 0;
}

.stock-template-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
}

.stock-template-vote-section,
.stock-template-comments-section {
    width: 100%;
}

.stock-template-vote-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.stock-embed {
    background: transparent;
}

body.stock-embed .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.stock-embed nav,
body.stock-embed footer,
body.stock-embed .nav-drawer-layer {
    display: none;
}

body.stock-embed a {
    pointer-events: none;
}

body.stock-embed .stock-template-page {
    margin: 0;
    gap: 20px;
}

body.stock-embed.stock-embed-hero .stock-template-page {
    gap: 0;
}

html.stock-detail-frame-loading .stock-template-page {
    opacity: 0;
    pointer-events: none;
}

body.stock-embed.stock-embed-hero .stock-price-chart-section {
    padding: 22px 22px 18px;
}

body.stock-embed.stock-embed-hero .stock-template-vote-section,
body.stock-embed.stock-embed-hero .stock-template-comments-section {
    display: none;
}

body.stock-embed.stock-embed-hero .stock-chart-intro {
    margin-bottom: 16px;
    padding-bottom: 14px;
}

body.stock-embed.stock-embed-hero .stock-short-description {
    margin-top: 10px;
}

body.stock-embed.stock-embed-hero .stock-price-header {
    margin-bottom: 16px;
}

body.stock-embed.stock-embed-hero .stock-main-price {
    font-size: 34px;
}

body.stock-embed.stock-embed-hero .stock-price-move,
body.stock-embed.stock-embed-hero .stock-price-percent {
    font-size: 16px;
}

body.stock-embed.stock-embed-hero .advanced-chart-panel,
body.stock-embed.stock-embed-hero .chart-main-area {
    min-height: 310px;
}

body.stock-embed.stock-embed-hero .chart-time-controls-bottom {
    margin-top: 14px;
    margin-bottom: 12px;
}

body.stock-embed.stock-embed-hero .range-summary-box {
    gap: 12px 18px;
    padding: 12px 14px;
}

.stock-hero-box,
.stock-price-chart-section,
.vote-template-box,
.stock-comments-box {
    background: linear-gradient(145deg, #121922, #0f1720);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.stock-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.stock-title-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.stock-template-page {
    --stock-detail-heading-size: 28px;
}

.stock-title-text h1,
#stock-vote-box .stock-section-heading-row h3,
#stock-vote-history-box .stock-section-heading-row h3 {
    margin: 0;
    font-family: inherit;
    font-size: var(--stock-detail-heading-size) !important;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 0;
}

.stock-title-text,
.stock-section-heading-group,
.stock-comments-heading-group {
    width: 100%;
    min-width: 0;
}

.stock-seo-heading-row,
.stock-section-heading-row {
    display: inline-flex;
    align-items: flex-start;
    align-self: flex-start;
    max-width: 100%;
    gap: 10px;
}

.stock-seo-heading-row h1,
.stock-section-heading-row h3 {
    min-width: 0;
}

.stock-section-heading-group,
.stock-comments-heading-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.stock-ticker {
    margin: 8px 0 0 0;
    font-size: 15px;
    font-weight: bold;
    color: var(--red);
}

.stock-seo-help-btn {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    padding: 0;
    margin-top: 3px;
    border: 1px solid rgba(148, 170, 195, 0.24);
    border-radius: 999px;
    background: rgba(148, 170, 195, 0.04);
    color: #94aac3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.stock-seo-help-btn:hover {
    border-color: rgba(148, 170, 195, 0.34);
    background: rgba(148, 170, 195, 0.08);
    color: #b5c7da;
}

.stock-seo-help-btn[aria-expanded="true"] {
    border-color: rgba(148, 170, 195, 0.38);
    background: rgba(148, 170, 195, 0.1);
    color: #c4d3e2;
}

.stock-seo-inline-copy {
    margin: 12px 0 0 0;
    color: #94aac3;
    font-size: 15px;
    line-height: 1.65;
    max-width: 680px;
}

.stock-seo-inline-copy p {
    margin: 0;
}

.stock-swipe-hero-heading-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
}

.stock-swipe-hero-heading-row .section-sub {
    margin: 0;
}

.stock-swipe-seo-hero .section-subtitle {
    margin-bottom: 0;
}

.stock-swipe-hero-help-panel {
    margin-top: 14px;
    max-width: 760px;
}

.stock-swipe-hero-help-block + .stock-swipe-hero-help-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(105, 199, 255, 0.12);
}

.stock-swipe-hero-help-block h2 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.stock-short-description {
    margin: 14px 0 0 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
}

.stock-short-description.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.stock-description-toggle {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #69c7ff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.stock-description-toggle:hover {
    color: #9fddff;
}

.stock-description-toggle.hidden {
    display: none;
}

.stock-favorite-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 217, 102, 0.18);
    background: rgba(255, 217, 102, 0.08);
    color: #ffe8a4;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.stock-favorite-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 217, 102, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.stock-favorite-btn.is-active {
    background: rgba(255, 217, 102, 0.16);
    border-color: rgba(255, 217, 102, 0.34);
    color: #fff1bf;
}

.stock-favorite-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.stock-chart-intro {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(105, 199, 255, 0.12);
}

.stock-price-chart-section {
    width: 100%;
    overflow: hidden;
}

.stock-price-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.price-line-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.stock-main-price {
    margin: 0;
    font-size: 34px;
    color: #ffffff;
    line-height: 1;
}

.stock-price-move,
.stock-price-percent {
    font-weight: bold;
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 10px;
}

.stock-price-move.positive,
.stock-price-percent.positive {
    color: #00ff9c;
    background: rgba(0, 255, 156, 0.08);
    border: 1px solid rgba(0, 255, 156, 0.18);
}

.stock-price-move.negative,
.stock-price-percent.negative {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.18);
}

.chart-time-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: center;
}

.chart-time-btn {
    border: 1px solid rgba(105, 199, 255, 0.12);
    background: linear-gradient(145deg, #17212d, #101821);
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.chart-time-btn:hover,
.chart-time-btn.active {
    border-color: rgba(105, 199, 255, 0.35);
    color: var(--blue);
    box-shadow: 0 0 14px rgba(105, 199, 255, 0.15);
}

.chart-time-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: #8ea2bd;
    box-shadow: none;
}

.stock-chart-box {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.advanced-chart-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 66px;
    align-items: stretch;
    min-height: 360px;
    border-radius: 20px;
    border: 1px solid rgba(105, 199, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(105, 199, 255, 0.06), rgba(105, 199, 255, 0.015)),
        linear-gradient(145deg, #101821, #0d141c);
    overflow: hidden;
}

.chart-y-axis {
    position: relative;
    padding: 0 10px 0 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    text-align: right;
}

.chart-y-axis .chart-y-label {
    position: absolute;
    left: 8px;
    right: 10px;
    transform: translateY(-50%);
    color: #9fb4d1;
    font-size: 12px;
    line-height: 1;
}

.chart-y-axis .chart-y-label.is-edge {
    color: #b3c6df;
}

.chart-main-area {
    position: relative;
    min-height: 360px;
    overflow: visible;
}

.chart-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: none;
}

.chart-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px solid rgba(156, 190, 226, 0.32);
    box-shadow: 0 0 0 1px rgba(12, 19, 27, 0.10);
    transform: translateY(-0.5px);
}

.chart-grid-line.is-edge {
    border-top-color: rgba(176, 209, 244, 0.42);
}

.chart-area-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 182, 255, 0.10), rgba(31, 182, 255, 0.015));
    z-index: 1;
    pointer-events: none;
}

.chart-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.chart-polyline {
    fill: none;
    stroke: #1fb6ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 12px rgba(31, 182, 255, 0.28));
}

.chart-user-vote-marker {
    pointer-events: none;
}

.chart-user-vote-label {
    fill: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.chart-reference-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 1;
}

.chart-reference-high {
    top: 22%;
    background: rgba(0, 255, 156, 0.6);
}

.chart-reference-low {
    top: 74%;
    background: rgba(255, 77, 77, 0.6);
}

.chart-time-controls-bottom {
    margin-top: 18px;
    margin-bottom: 14px;
}

.range-summary-box {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    gap: 18px 24px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, #17212d, #101821);
    border: 1px solid rgba(105, 199, 255, 0.08);
}

.range-summary-box span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.stock-api-warning {
    width: 100%;
    max-width: 760px;
    margin: 14px auto 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 93, 93, 0.18);
    background: linear-gradient(145deg, rgba(255, 93, 93, 0.08), rgba(255, 93, 93, 0.03));
    color: #ffd3d3;
    font-size: 14px;
    line-height: 1.6;
}

.chart-reference-tag {
    position: absolute;
    right: 0;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    transform-origin: right center;
    z-index: 6;
}

.chart-tag-high {
    transform: translateY(calc(-100% - 4px));
    color: #00ff9c;
    border: 1px solid rgba(0, 255, 156, 0.32);
    background: rgba(0, 255, 156, 0.08);
}

.chart-tag-low {
    transform: translateY(4px);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.32);
    background: rgba(255, 77, 77, 0.08);
}

.chart-x-axis {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    padding: 0;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.chart-x-axis .chart-x-label {
    position: absolute;
    bottom: 14px;
    transform: translateX(-50%);
    color: #9fb4d1;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1;
}

.chart-x-axis .chart-x-label.is-first {
    transform: translateX(0);
}

.chart-x-axis .chart-x-label.is-last {
    transform: translateX(-100%);
}

.vote-template-header,
.comments-template-header {
    margin-bottom: 18px;
}

.vote-template-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vote-template-main {
    display: inline-block;
    color: var(--green);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.comments-template-main {
    display: inline-block;
    color: var(--blue);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.vote-template-header h3,
.comments-template-header h3 {
    margin: 0;
    font-size: 28px;
    color: #ffffff;
}

.vote-skip-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 77, 77, 0.28);
    background: transparent;
    color: rgba(255, 118, 118, 0.92);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.vote-skip-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(255, 77, 77, 0.07);
    color: #ffb3b3;
}

.stock-comments-intro {
    margin: 12px 0 0 0;
    color: #9fb4d1;
    font-size: 15px;
    line-height: 1.65;
    max-width: 760px;
}

.stock-comment-form {
    margin: 0 0 24px 0;
    padding: 0 0 20px 0;
    border: none;
    border-bottom: 1px solid rgba(105, 199, 255, 0.12);
    background: transparent;
    box-shadow: none;
}

.stock-comment-form.is-disabled {
    opacity: 1;
}

.stock-comments-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 18px;
    margin: 0 0 20px 0;
}

.stock-comments-title {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.stock-comment-compose-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.stock-comment-compose-trigger-copy {
    flex: 1 1 auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(105, 199, 255, 0.16);
    color: rgba(174, 197, 224, 0.78);
    font-size: 14px;
}

.stock-comment-form.is-expanded .stock-comment-compose-trigger {
    margin-bottom: 12px;
}

.stock-comment-compose-main {
    min-width: 0;
    padding-left: 56px;
}

.stock-comment-compose-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.stock-comment-compose-meta strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.stock-comment-reply-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(105, 199, 255, 0.12);
    background: rgba(12, 18, 26, 0.42);
    color: #cfe4ff;
    font-size: 13px;
    font-weight: 700;
}

.stock-comment-reply-cancel-btn {
    border: none;
    background: none;
    color: #69c7ff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 0;
}

.stock-comment-reply-cancel-btn:hover {
    color: #ffffff;
}

.stock-comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(35, 200, 255, 0.25), rgba(0, 255, 156, 0.18));
    border: 1px solid rgba(105, 199, 255, 0.2);
    color: #eaf3ff;
    font-weight: 900;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.stock-comment-avatar-compose {
    margin-top: 2px;
}

.stock-comment-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

.stock-comment-field span {
    color: rgba(174, 197, 224, 0.8);
    font-size: 12px;
    font-weight: 700;
}

.stock-comment-field-inline {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    gap: 8px;
}

.stock-comment-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
    transition: 0.18s ease;
}

.stock-comment-profile-link:hover {
    color: #9fdcff;
}

.stock-comment-input,
.stock-comment-textarea,
.stock-comment-select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(105, 199, 255, 0.14);
    background: rgba(12, 18, 26, 0.65);
    color: #eaf3ff;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.stock-comment-input:focus,
.stock-comment-textarea:focus,
.stock-comment-select:focus {
    border-color: rgba(105, 199, 255, 0.38);
    box-shadow: 0 0 0 3px rgba(105, 199, 255, 0.08);
}

.stock-comment-textarea {
    resize: vertical;
    min-height: 92px;
    line-height: 1.6;
}

.stock-comment-textarea-simple {
    padding: 10px 0 12px;
    border: none;
    border-bottom: 1px solid rgba(105, 199, 255, 0.16);
    border-radius: 0;
    background: transparent;
}

.stock-comment-textarea-simple:focus {
    border-color: rgba(105, 199, 255, 0.38);
    box-shadow: none;
}

.stock-comment-form-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.stock-comment-submit-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.stock-comment-cancel-btn {
    border: 1px solid rgba(105, 199, 255, 0.12);
    background: transparent;
    color: #b6c7dc;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.stock-comment-cancel-btn:hover {
    border-color: rgba(105, 199, 255, 0.3);
    color: #ffffff;
}

.stock-comment-char-count {
    color: #9fb4d1;
    font-size: 12px;
    font-weight: 700;
}

.stock-comment-submit-btn {
    border: 1px solid rgba(105, 199, 255, 0.18);
    background: rgba(16, 24, 34, 0.82);
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

.stock-comment-submit-btn:hover {
    border-color: rgba(105, 199, 255, 0.35);
    color: var(--blue);
}

.stock-comment-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.stock-comment-form-feedback {
    margin: 0;
    color: #9fb4d1;
    font-size: 13px;
    line-height: 1.6;
}

.stock-comment-form-feedback.is-hidden {
    display: none;
}

.stock-comment-form-feedback.is-error {
    color: #ff7575;
}

.stock-comment-form-feedback.is-success {
    color: #27db89;
}

.stock-comments-toolbar {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.stock-comment-select {
    width: auto;
    min-width: 150px;
    padding: 9px 12px;
    border-radius: 999px;
}

.stock-comments-summary {
    color: #ffffff;
}

.stock-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stock-comments-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.stock-comments-more-btn {
    border: 1px solid rgba(105, 199, 255, 0.16);
    background: rgba(12, 18, 26, 0.55);
    color: #cfe4ff;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.stock-comments-more-btn:hover {
    border-color: rgba(105, 199, 255, 0.34);
    color: #ffffff;
    transform: translateY(-1px);
}

.stock-comment-thread {
    margin-left: calc(var(--comment-depth, 0) * 24px);
}

.stock-comment-replies {
    display: flex;
    flex-direction: column;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(105, 199, 255, 0.12);
}

.stock-comments-state-card {
    border: 1px solid rgba(105, 199, 255, 0.12);
    border-radius: 18px;
    background: rgba(12, 18, 26, 0.45);
    padding: 16px;
    color: rgba(174, 197, 224, 0.9);
    line-height: 1.6;
}

.stock-comments-state-card.is-error {
    border-color: rgba(255, 117, 117, 0.22);
    color: #ffb0b0;
}

.stock-comment-card {
    padding: 18px 0;
    border: none;
    border-bottom: 1px solid rgba(105, 199, 255, 0.1);
    background: transparent;
    box-shadow: none;
}

.stock-comment-thread.is-reply > .stock-comment-card {
    padding-top: 14px;
}

.stock-comment-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.stock-comment-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.stock-comment-author-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stock-comment-author {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-comment-time {
    color: rgba(174, 197, 224, 0.7);
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

.stock-comment-meta-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

.stock-comment-vote-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    border: 1px solid rgba(105, 199, 255, 0.12);
    background: rgba(12, 18, 26, 0.55);
    color: #d8e4f4;
}

.stock-comment-vote-badge.is-up {
    border-color: rgba(0, 255, 156, 0.22);
    color: #27db89;
}

.stock-comment-vote-badge.is-flat {
    border-color: rgba(185, 197, 217, 0.22);
    color: #d7e3f4;
}

.stock-comment-vote-badge.is-down {
    border-color: rgba(255, 117, 117, 0.22);
    color: #ff7575;
}

.stock-comment-like-copy {
    color: rgba(174, 197, 224, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.stock-comment-body-wrap {
    margin-top: 10px;
}

.stock-comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.stock-comment-footer-left,
.stock-comment-footer-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-comment-footer-right {
    justify-content: flex-end;
    margin-left: auto;
}

.stock-comment-like-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stock-comment-like-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(105, 199, 255, 0.12);
    background: rgba(12, 18, 26, 0.55);
    color: #92a7c4;
    border-radius: 999px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.stock-comment-like-btn:hover {
    border-color: rgba(105, 199, 255, 0.35);
    box-shadow: 0 0 14px rgba(105, 199, 255, 0.12);
}

.stock-comment-like-btn.is-liked {
    border-color: rgba(255, 105, 180, 0.28);
    color: #ff6aa9;
    box-shadow: 0 0 16px rgba(255, 105, 180, 0.12);
}

.stock-comment-like-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.stock-comment-delete-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 217, 102, 0.18);
    background: rgba(255, 217, 102, 0.08);
    color: #ffe8a4;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.stock-comment-delete-btn:hover {
    transform: translateY(-1px);
}

.stock-comment-delete-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.stock-comment-reply-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(105, 199, 255, 0.14);
    background: rgba(12, 18, 26, 0.42);
    color: #9fdcff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.stock-comment-reply-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(105, 199, 255, 0.32);
    color: #ffffff;
}

.stock-comment-reply-count {
    color: rgba(174, 197, 224, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.stock-comment-body {
    margin: 0;
    color: rgba(234, 243, 255, 0.92);
    font-size: 14px;
    line-height: 1.7;
    white-space: normal;
}

.stock-comment-expand-btn {
    margin-top: 8px;
    border: none;
    background: none;
    padding: 0;
    color: #69c7ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.stock-comment-expand-btn:hover {
    color: #ffffff;
    transform: translateX(2px);
}

@media (max-width: 820px) {
    .stock-title-actions {
        width: auto;
        align-items: flex-end;
    }

    .stock-comments-title {
        font-size: 24px;
    }

    .stock-comments-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .stock-comment-compose-main {
        padding-left: 0;
    }

    .stock-comment-form-bottom {
        align-items: flex-start;
    }

    .stock-comment-submit-group {
        width: 100%;
        justify-content: space-between;
    }

    .stock-comments-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .stock-comment-field-inline {
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
    }

    .stock-comment-field-inline .stock-comment-select {
        width: 100%;
        min-width: 0;
    }

    .stock-comment-author-row {
        gap: 6px;
    }

    .stock-comment-replies {
        margin-left: 12px;
        padding-left: 12px;
    }

    .stock-comment-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-comment-footer-right {
        margin-left: 0;
        justify-content: flex-start;
    }
}

.vote-template-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #182536;
    margin-bottom: 14px;
}

.vote-template-bullish {
    height: 100%;
    background: linear-gradient(145deg, #00d97f, #00ff9c);
}

.vote-template-bearish {
    height: 100%;
    background: linear-gradient(145deg, #ff4d4d, #ff6b6b);
}

.vote-template-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 18px;
}

.vote-template-actions {
    display: flex;
    gap: 12px;
}

.vote-template-actions button {
    flex: 1;
}

.future-comment-card {
    background: linear-gradient(145deg, #17212d, #101821);
    border: 1px solid rgba(105, 199, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    margin-top: 14px;
}

.future-comment-card p {
    margin: 0;
    color: #ffffff;
    line-height: 1.7;
    font-size: 14px;
}

/* =========================
   3-WAY VOTE SYSTEM
========================= */

.three-way-bar {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #182536;
}

.vote-template-up,
.vote-template-flat,
.vote-template-down {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vote-template-up {
    background: linear-gradient(145deg, #00d97f, #00ff9c);
}

.vote-template-flat {
    background: linear-gradient(145deg, #55657b, #6f8199);
}

.vote-template-down {
    background: linear-gradient(145deg, #ff4d4d, #ff6b6b);
}

.vote-template-stats-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.vote-template-stats-3 span {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.vote-template-actions-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vote-btn-up,
.vote-btn-flat,
.vote-btn-down {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease,
        outline-color 0.25s ease;
}

.vote-btn-up {
    background: linear-gradient(145deg, #00d97f, #00ff9c);
    color: #07140f;
}

.vote-btn-flat {
    background: linear-gradient(145deg, #55657b, #6f8199);
    color: #ffffff;
}

.vote-btn-down {
    background: linear-gradient(145deg, #ff4d4d, #ff6b6b);
    color: #1a0a0a;
}

.vote-btn-up:hover,
.vote-btn-flat:hover,
.vote-btn-down:hover {
    transform: translateY(-2px);
}

.vote-btn-selected {
    outline: none;
    box-shadow: none;
    filter: none;
}

.vote-btn-up.vote-glow-active {
    animation: vote-glow-up 0.65s ease-out;
}

.vote-btn-flat.vote-glow-active {
    animation: vote-glow-flat 0.65s ease-out;
}

.vote-btn-down.vote-glow-active {
    animation: vote-glow-down 0.65s ease-out;
}

.vote-template-actions:has(.vote-btn-selected) button:not(.vote-btn-selected),
.vote-card-actions:has(.vote-btn-selected) button:not(.vote-btn-selected) {
    opacity: 0.62;
    filter: saturate(0.6) brightness(0.84);
    box-shadow: none;
}

.vote-template-actions:has(.vote-btn-selected) button:not(.vote-btn-selected):hover,
.vote-card-actions:has(.vote-btn-selected) button:not(.vote-btn-selected):hover {
    transform: none;
    opacity: 0.72;
    filter: saturate(0.68) brightness(0.9);
}

.vote-template-actions:has(.vote-btn-selected) button.vote-btn-selected,
.vote-card-actions:has(.vote-btn-selected) button.vote-btn-selected {
    opacity: 1;
    filter: none;
}

.vote-user-feedback {
    margin: 14px 0 0 0;
    color: #9fb4d1;
    font-size: 14px;
    line-height: 1.6;
}

.vote-total-count {
    margin: 6px 0 0 0;
    color: #d3eaff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

body.stock-embed.stock-embed-full .vote-user-feedback.vote-user-feedback-quick-count {
    margin-top: 10px;
    color: #d6e4f3;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

html.stock-detail-pre-vote-init #stock-vote-box .vote-template-up,
html.stock-detail-pre-vote-init #stock-vote-box .vote-template-flat,
html.stock-detail-pre-vote-init #stock-vote-box .vote-template-down {
    width: 0 !important;
    transition: none;
}

html.stock-detail-pre-vote-init #stock-vote-box .vote-template-stats-3,
html.stock-detail-pre-vote-init #template-vote-total-count,
html.stock-detail-pre-vote-init #stock-vote-history-box,
html.stock-detail-pre-vote-init .stock-template-comments-section {
    display: none;
}

.vote-card-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #182536;
    margin-bottom: 12px;
}

.vote-card-up,
.vote-card-flat,
.vote-card-down {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vote-card-up {
    background: linear-gradient(145deg, #00d97f, #00ff9c);
}

.vote-card-flat {
    background: linear-gradient(145deg, #55657b, #6f8199);
}

.vote-card-down {
    background: linear-gradient(145deg, #ff4d4d, #ff6b6b);
}

@keyframes vote-glow-up {
    0% {
        box-shadow: 0 0 0 rgba(0, 255, 156, 0);
        transform: translateY(0) scale(1);
    }

    35% {
        box-shadow: 0 0 0 7px rgba(0, 255, 156, 0.16), 0 0 24px rgba(0, 255, 156, 0.48);
        transform: translateY(-1px) scale(1.035);
    }

    100% {
        box-shadow: 0 0 0 rgba(0, 255, 156, 0);
        transform: translateY(0) scale(1);
    }
}

@keyframes vote-glow-flat {
    0% {
        box-shadow: 0 0 0 rgba(150, 169, 196, 0);
        transform: translateY(0) scale(1);
    }

    35% {
        box-shadow: 0 0 0 7px rgba(150, 169, 196, 0.16), 0 0 24px rgba(150, 169, 196, 0.44);
        transform: translateY(-1px) scale(1.035);
    }

    100% {
        box-shadow: 0 0 0 rgba(150, 169, 196, 0);
        transform: translateY(0) scale(1);
    }
}

@keyframes vote-glow-down {
    0% {
        box-shadow: 0 0 0 rgba(255, 77, 77, 0);
        transform: translateY(0) scale(1);
    }

    35% {
        box-shadow: 0 0 0 7px rgba(255, 77, 77, 0.16), 0 0 24px rgba(255, 77, 77, 0.48);
        transform: translateY(-1px) scale(1.035);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 77, 77, 0);
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vote-template-up,
    .vote-template-flat,
    .vote-template-down,
    .vote-card-up,
    .vote-card-flat,
    .vote-card-down {
        transition: none;
    }

    .vote-btn-up.vote-glow-active,
    .vote-btn-flat.vote-glow-active,
    .vote-btn-down.vote-glow-active {
        animation: none;
    }
}

.vote-card-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.vote-card-lines span {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.vote-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.vote-card-actions button {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 12px;
}

.vote-history-box {
    overflow: hidden;
}

.vote-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}

.vote-history-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.vote-history-description {
    margin: 12px 0 0 0;
    color: #9fb4d1;
    font-size: 15px;
    line-height: 1.65;
    max-width: 680px;
}

#stock-vote-box .vote-template-header {
    margin-bottom: 4px;
}

#stock-vote-box #template-vote-description {
    margin: 0 0 10px 0;
}

#stock-vote-history-box .vote-history-description {
    margin-top: 6px;
}

.vote-history-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin: 6px 0 0 0;
    flex: 0 0 auto;
}

.vote-history-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8e4f4;
    font-size: 14px;
    font-weight: 700;
}

.vote-history-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.vote-history-legend-swatch-up {
    background: linear-gradient(180deg, #23d986 0%, #0f8e4f 100%);
}

.vote-history-legend-swatch-down {
    background: linear-gradient(180deg, #ff6767 0%, #df3636 100%);
}

.vote-history-legend-swatch-flat {
    background: linear-gradient(180deg, #b9c5d9 0%, #8a9bb5 100%);
}

.vote-history-plot {
    position: relative;
    min-height: 400px;
    border-radius: 22px;
    border: 1px solid rgba(105, 199, 255, 0.16);
    background:
        radial-gradient(circle at top center, rgba(22, 214, 127, 0.08), transparent 46%),
        linear-gradient(180deg, rgba(105, 199, 255, 0.04), rgba(105, 199, 255, 0.01)),
        linear-gradient(145deg, #111b25 0%, #0b1218 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 22px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.vote-history-plot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 16.666% 100%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.vote-history-y-axis {
    position: absolute;
    top: 24px;
    left: 0;
    bottom: 88px;
    width: 64px;
    z-index: 4;
    pointer-events: none;
}

.vote-history-axis-title {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    color: rgba(174, 197, 224, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
}

.vote-history-y-axis span {
    position: absolute;
    left: 24px;
    transform: translateY(-50%);
    color: #9fb4d1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.vote-history-y-axis .is-top {
    transform: translateY(-50%);
}

.vote-history-y-axis .is-bottom {
    transform: translateY(-50%);
}

.vote-history-y-axis .is-zero {
    color: #d8e5f7;
}

.vote-history-grid {
    position: absolute;
    inset: 24px 18px 88px 62px;
    pointer-events: none;
    z-index: 1;
}

.vote-history-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px solid rgba(166, 192, 222, 0.28);
    transform: translateY(-0.5px);
}

.vote-history-grid-line.is-zero {
    border-top-color: rgba(214, 228, 247, 0.46);
    box-shadow: 0 0 0 1px rgba(208, 221, 240, 0.05);
}

.vote-history-grid-line.is-top,
.vote-history-grid-line.is-bottom {
    border-top-color: rgba(171, 197, 228, 0.34);
}

.vote-history-groups {
    position: absolute;
    inset: 24px 22px 88px 66px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.vote-history-group {
    position: relative;
    min-width: 0;
    min-height: 0;
}

.vote-history-group + .vote-history-group::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -9px;
    width: 1px;
    background: rgba(255, 255, 255, 0.035);
}

.vote-history-group-bars {
    display: block;
    height: 100%;
    min-height: 0;
    padding: 0 8px;
}

.vote-history-group-meta {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vote-history-group-counts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}

.vote-history-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.vote-history-group-count-up {
    color: #23d986;
    border-color: rgba(35, 217, 134, 0.22);
    background: rgba(15, 142, 79, 0.16);
}

.vote-history-group-count-flat {
    color: #d9e3f2;
    border-color: rgba(185, 196, 215, 0.22);
    background: rgba(185, 196, 215, 0.12);
}

.vote-history-group-count-down {
    color: #ff7d7d;
    border-color: rgba(223, 54, 54, 0.24);
    background: rgba(223, 54, 54, 0.14);
}

.vote-history-stack {
    position: relative;
    height: 100%;
    width: min(48px, 100%);
    margin: 0 auto;
}

.vote-history-bar {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: none;
}

.vote-history-bar-up {
    background: linear-gradient(180deg, #23d986 0%, #0f8e4f 100%);
    border-radius: 5px 5px 0 0;
}

.vote-history-bar-down {
    background: linear-gradient(180deg, #ff6767 0%, #df3636 100%);
    border-radius: 0 0 5px 5px;
}

.vote-history-bar-flat {
    background: linear-gradient(180deg, #b9c4d7 0%, #879ab4 100%);
    border-radius: 0;
}

.vote-history-group-label {
    color: #a9bdd8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.vote-history-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.vote-history-status {
    min-height: 18px;
    margin-top: 10px;
    text-align: center;
    color: #79d3ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.vote-history-btn {
    border: 1px solid rgba(105, 199, 255, 0.14);
    background: linear-gradient(145deg, #17212d, #101821);
    color: #d8e4f4;
    border-radius: 12px;
    padding: 8px 14px;
    min-width: 64px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.vote-history-btn:hover,
.vote-history-btn.active {
    border-color: rgba(105, 199, 255, 0.36);
    color: #79d3ff;
    box-shadow: 0 0 14px rgba(105, 199, 255, 0.14);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
    .stock-template-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .heatmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }



    .tind-top-layout {
        grid-template-columns: 1fr;
    }

    .tind-main-info {
        text-align: left;
    }

    .tind-title-row,
    .detail-title-row {
        justify-content: flex-start;
        flex-direction: row;
        align-items: flex-start;
    }

    .tind-main-info .company-desc {
        text-align: left;
    }

    .stock-price-header {
        align-items: flex-start;
    }

    .vote-stock-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .advanced-chart-panel {
        grid-template-columns: 1fr 58px;
        min-height: 320px;
    }

    .chart-main-area {
        min-height: 320px;
    }

}

@media (max-width: 700px) {

    .tind-card,
    .detail-card,
    .card-face {
        padding: 24px 18px;
    }

    .tind-card h2,
    .detail-card h2,
    .tind-title-text h2,
    .detail-title-text h2 {
        font-size: 30px;
    }

    .tind-title-inline {
        gap: 12px;
        align-items: center;
    }

    .tind-actions,
    .vote-actions {
        flex-direction: column;
    }

    .skip-btn,
    .vote-now-btn,
    .btn-green,
    .btn-red {
        width: 100%;
    }

    .vote-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feed-card {
        min-height: calc(100vh - 78px);
        padding: 10px 0;
    }

    .unified-card-inner,
    .card-face,
    .discovery-face,
    .detail-face {
        min-height: calc(100vh - 98px);
    }

    .card-face,
    .tind-card,
    .detail-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .stock-hero-box,
    .stock-price-chart-section,
    .vote-template-box,
    .stock-comments-box {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .stock-main-price {
        font-size: 30px;
    }

    .stock-price-move,
    .stock-price-percent {
        font-size: 15px;
        padding: 5px 8px;
    }

    .vote-history-legend {
        gap: 14px;
    }

    .vote-history-plot {
        min-height: 320px;
    }

    .vote-history-y-axis {
        width: 56px;
        top: 22px;
        bottom: 82px;
    }

    .vote-history-header {
        flex-direction: column;
        gap: 14px;
    }

    .vote-history-legend {
        justify-content: flex-start;
        margin-top: 0;
    }

    .vote-history-axis-title {
        left: 8px;
        font-size: 9px;
    }

    .vote-history-y-axis span {
        left: 20px;
        font-size: 12px;
    }

    .vote-history-grid {
        inset: 22px 14px 82px 52px;
    }

    .vote-history-groups {
        inset: 22px 16px 82px 56px;
        gap: 12px;
    }

    .vote-history-group-bars {
        height: 100%;
    }

    .vote-history-btn {
        min-width: 58px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .advanced-chart-panel {
        grid-template-columns: 1fr 52px;
        min-height: 250px;
        border-radius: 16px;
    }

    .range-summary-box {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        justify-items: center;
        align-items: center;
        gap: 12px 16px;
        overflow: visible;
    }

    .stock-short-description {
        max-width: 100%;
    }

    .chart-main-area {
        min-height: 250px;
    }

    .chart-time-controls {
        gap: 8px;
    }

    .chart-time-btn {
        padding: 8px 11px;
        font-size: 12px;
    }

    .chart-reference-tag {
        right: 0;
        padding: 5px 8px;
        font-size: 11px;
    }

    .chart-x-axis {
        padding: 0 14px 12px 14px;
    }

    .chart-y-axis {
        padding: 0 6px 0 6px;
    }

    .chart-y-axis .chart-y-label {
        left: 6px;
        right: 6px;
    }

    .vote-template-actions {
        flex-direction: row;
    }

    .vote-template-actions-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .vote-card-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 600px) {

    .vote-hero,
    .vote-examples,
    .vote-search-section,
    .vote-panel {
        padding: 22px 18px;
    }

    .vote-market-pagination {
        align-items: flex-start;
    }

    .vote-market-pagination-controls {
        gap: 8px;
    }

    .market-map-section {
        padding: 18px;
        border-radius: 16px;
    }

    .sector-grid {
        grid-auto-rows: 36px;
        gap: 5px;
    }

    .heat-tile.size-xl .tile-symbol {
        font-size: 22px;
    }

    .heat-tile.size-xl .tile-change {
        font-size: 14px;
    }

    .heat-tile.size-lg .tile-symbol {
        font-size: 18px;
    }

    .heat-tile.size-md .tile-symbol {
        font-size: 14px;
    }

    .vote-history-plot {
        min-height: 280px;
    }

    .vote-history-y-axis {
        width: 48px;
        top: 20px;
        bottom: 84px;
    }

    .vote-history-axis-title {
        left: 7px;
        font-size: 8px;
        letter-spacing: 0.14em;
    }

    .vote-history-y-axis span {
        left: 18px;
        font-size: 11px;
    }

    .vote-history-grid {
        inset: 20px 10px 84px 44px;
    }

    .vote-history-groups {
        inset: 20px 10px 84px 48px;
        gap: 8px;
    }

    .vote-history-group-bars {
        height: 100%;
    }

    .vote-history-group-label {
        font-size: 11px;
    }

    .vote-history-group-counts {
        gap: 3px;
    }

    .vote-history-group-count {
        min-width: 30px;
        padding: 2px 5px;
        font-size: 9px;
    }

    .vote-stock-card-header {
        flex-wrap: wrap;
    }

    .vote-stock-card {
        padding: 20px;
        min-height: 0;
    }

}

.stock-template-page.hidden {
    display: none !important;
}





/* =========================
   HOME PAGE
========================= */

/* ---------- HERO ---------- */

.home-hero {
    margin: 30px 0;
    padding: 38px 32px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.08), transparent 30%),
        linear-gradient(145deg, #121922, #0f1720);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(105, 199, 255, 0.08);
}

.home-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    
}

.hero-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.home-hero h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
    color: #ffffff;
}

.home-hero-text {
    margin-top: 18px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
    line-height: 1.8;
    color: #ffffff;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.home-hero-actions a {
    text-decoration: none;
}

.home-hero-actions .vote-btn,
.home-hero-actions .discover-btn,
.home-hero-actions .market-btn {
    margin-top: 0;
    padding: 13px 22px;
    font-size: 15px;
}

/* ---------- LIVE SENTIMENT ---------- */



.live-title-green {
    color: var(--green) !important;
}

.home-live-sentiment-section .section-main,
.home-how-section .section-main,
.home-intelligence-label,
.home-discovery-label {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.home-live-sentiment-section .section-sub,
.home-how-section .section-sub,
.home-intelligence-title,
.home-discovery-title {
    font-size: 32px !important;
    line-height: 1.15;
    margin: 0 0 16px 0;
    max-width: 820px;
    font-weight: 700;
}

.home-live-sentiment-section {
    margin-top: 24px;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 156, 0.16);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.08), transparent 30%),
        linear-gradient(145deg, #121922, #0f1720);
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(0, 255, 156, 0.05);
}

.fusion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.fusion-grid.is-single-card {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.fusion-card {
    position: relative;
    padding: 20px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(145deg, #17212d, #101821);
    border: 1px solid rgba(0, 255, 156, 0.14);
    box-shadow: 0 0 14px rgba(0, 255, 156, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.fusion-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 156, 0.28);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(0, 255, 156, 0.10);
}

.fusion-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 255, 156, 0.06), transparent 34%);
    opacity: 1;
}

.fusion-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: var(--green);
}

.home-sentiment-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.fusion-card h3 {
    font-size: 20px;
    margin: 0;
    color: #ffffff;
}

.home-sentiment-heading {
    min-width: 0;
}

.home-sentiment-name {
    display: block;
    margin-top: 6px;
    color: #9fb4d1;
    font-size: 14px;
    line-height: 1.4;
}

.home-sentiment-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(145, 165, 189, 0.12);
    color: #c7d8eb;
}

.home-sentiment-change.is-positive {
    color: #00ff9c;
    border-color: rgba(0, 255, 156, 0.35);
    background: rgba(0, 255, 156, 0.12);
}

.home-sentiment-change.is-negative {
    color: #ff6f6f;
    border-color: rgba(255, 77, 77, 0.35);
    background: rgba(255, 77, 77, 0.12);
}

.home-sentiment-change.is-neutral {
    color: #c7d8eb;
}

.home-sentiment-change.is-unavailable {
    min-width: 164px;
    color: #ffd3d3;
    border-color: rgba(255, 107, 107, 0.22);
    background: rgba(255, 77, 77, 0.08);
}

.fusion-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #c8d3df;
    margin: 14px 0 16px 0;
}

.fusion-card .home-card-sector {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--green);
}

.fusion-card .vote-card-bar {
    margin: 14px 0 12px;
}

.fusion-card .vote-card-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 14px;
}

.home-sentiment-actions {
    margin-bottom: 14px;
}

.home-sentiment-actions .vote-btn-up,
.home-sentiment-actions .vote-btn-flat,
.home-sentiment-actions .vote-btn-down {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 12px;
    pointer-events: none;
}

.fusion-card .home-card-link {
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--green);
}

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

/* ---------- HOW IT WORKS ---------- */

.home-how-section {
    margin: 30px 0;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #0f1720, #121922);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.home-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-how-card {
    background: linear-gradient(145deg, #1a2430, #121922);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    min-height: 235px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-step-number {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-how-card h3 {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 22px;
}

.home-how-card p {
    margin: 0 0 24px 0;
    color: #ffffff;
    line-height: 1.75;
    font-size: 15px;
}

.home-how-btn {
    margin-top: auto;
    align-self: center;
    width: min(100%, 240px);
    text-decoration: none;
    text-align: center;
}

/* Card 1 = blue */
.home-how-grid .home-how-card:nth-child(1) {
    border: 1px solid rgba(105, 199, 255, 0.18);
    box-shadow: 0 0 14px rgba(105, 199, 255, 0.05);
    border-left: 3px solid var(--blue);
}

.home-how-grid .home-how-card:nth-child(1) .home-step-number {
    color: var(--blue);
}

.home-how-grid .home-how-card:nth-child(1) h3 {
    color: #ffffff;
}

.home-how-grid .home-how-card:nth-child(1):hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(105, 199, 255, 0.18);
}

/* Card 2 = green */
.home-how-grid .home-how-card:nth-child(2) {
    border: 1px solid rgba(0, 255, 156, 0.18);
    box-shadow: 0 0 14px rgba(0, 255, 156, 0.05);
    border-left: 3px solid var(--green);
}

.home-how-grid .home-how-card:nth-child(2) .home-step-number {
    color: var(--green);
}

.home-how-grid .home-how-card:nth-child(2) h3 {
    color: #ffffff;
}

.home-how-grid .home-how-card:nth-child(2):hover {
    transform: translateY(-6px);
    border-color: var(--green);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(0, 255, 156, 0.18);
}

/* Card 3 = red */
.home-how-grid .home-how-card:nth-child(3) {
    border: 1px solid rgba(255, 77, 77, 0.18);
    box-shadow: 0 0 14px rgba(255, 77, 77, 0.05);
    border-left: 3px solid var(--red);
}

.home-how-grid .home-how-card:nth-child(3) .home-step-number {
    color: var(--red);
}

.home-how-grid .home-how-card:nth-child(3) h3 {
    color: #ffffff;
}

.home-how-grid .home-how-card:nth-child(3):hover {
    transform: translateY(-6px);
    border-color: var(--red);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 77, 77, 0.18);
}





/* ---------- Turning collective intelligence into market insight ---------- */

.home-intelligence-section {
    margin: 30px 0;
    padding: 30px 32px;
    border-radius: 22px;
    border: 1px solid rgba(105, 199, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(0, 255, 156, 0.05), transparent 24%),
        linear-gradient(145deg, #121922, #0f1720);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.32),
        0 0 20px rgba(105, 199, 255, 0.05);
}

.home-intelligence-inner {
    width: 100%;
}

.home-intelligence-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.home-intelligence-title {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.15;
    max-width: 820px;
    font-weight: 700;
}

.home-intelligence-text {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    max-width: 820px;
}

.home-intelligence-vote-demo {
    width: 100%;
    max-width: 980px;
    margin: 30px auto 26px auto;
}

.home-intelligence-vote-box {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.home-intelligence-vote-actions {
    margin-bottom: 14px;
}

.home-intelligence-vote-actions button {
    cursor: default;
}

/* ---------- home page comment section for market insight ---------- */

.home-comments-box {
    width: 100%;
    max-width: 980px;
    margin: 34px auto 0 auto;
}

.home-comments-intro {
    margin: 0 0 18px 0;
    padding-top: 0;
    border-top: none;
}

.home-comments-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-comments-title {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.home-comments-text {
    margin: 0;
    color: #ffffff;
    line-height: 1.85;
    font-size: 15px;
    max-width: 900px;
}

.home-comments-preview {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.home-comment-preview-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #17212d, #101821);
    border: 1px solid rgba(105, 199, 255, 0.08);
}

.home-comment-preview-card p {
    margin: 0;
    color: #ffffff;
    line-height: 1.75;
    font-size: 15px;
}

.home-comments-box + .home-intelligence-text {
    color: #ffffff;
    margin-top: 22px;
}

@media (max-width: 700px) {
    .home-intelligence-section {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .home-live-sentiment-section .section-sub,
    .home-how-section .section-sub,
    .home-intelligence-title {
        font-size: 29px !important;
    }

    .home-intelligence-text {
        font-size: 15px;
        line-height: 1.75;
    }
}











/* ---------- home page  quick discovery presentation ---------- */


.home-discovery-section {
    margin: 30px 0;
    padding: 30px 32px;
    border-radius: 22px;
    border: 1px solid rgba(255, 77, 77, 0.14);
    background:
        radial-gradient(circle at top right, rgba(255, 77, 77, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(105, 199, 255, 0.05), transparent 24%),
        linear-gradient(145deg, #121922, #0f1720);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.32),
        0 0 20px rgba(255, 77, 77, 0.05);
}

.home-discovery-inner {
    width: 100%;
}

.home-discovery-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}

.home-discovery-copy {
    min-width: 0;
    max-width: 820px;
}

.home-discovery-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-discovery-title {
    margin: 0 0 16px 0;
    color: #ffffff;
    max-width: 820px;
}

.home-discovery-text {
    margin: 0 0 18px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    max-width: 820px;
}

.home-discovery-text:last-of-type {
    margin-bottom: 0;
}

.home-discovery-actions {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.home-discovery-actions-bottom {
    justify-content: center;
    margin-top: 0;
}

.home-discovery-actions a {
    text-decoration: none;
}

.home-discovery-preview-shell {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 77, 77, 0.16);
    background:
        radial-gradient(circle at top right, rgba(255, 77, 77, 0.10), transparent 34%),
        radial-gradient(circle at bottom left, rgba(105, 199, 255, 0.08), transparent 28%),
        linear-gradient(145deg, #151a24, #0f1720);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 16px 34px rgba(0, 0, 0, 0.30);
    overflow: hidden;
}

.home-discovery-preview-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.55;
    pointer-events: none;
}

.home-discovery-preview-header,
.home-discovery-preview-stack,
.home-discovery-feature-grid {
    position: relative;
    z-index: 1;
}

.home-discovery-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.home-discovery-preview-badge,
.home-discovery-preview-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-discovery-preview-badge {
    color: #ffd2d2;
    background: rgba(255, 77, 77, 0.12);
    border: 1px solid rgba(255, 77, 77, 0.18);
}

.home-discovery-preview-status {
    color: #c5d6e9;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-discovery-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-discovery-preview-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(18, 28, 39, 0.96), rgba(13, 20, 29, 0.96));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.home-discovery-preview-card.is-active {
    padding: 22px;
}

.home-discovery-preview-card.is-next {
    padding: 16px 18px;
    margin: 0 14px;
    opacity: 0.9;
    transform: translateY(-2px);
}

.home-discovery-preview-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #ff8f8f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.home-discovery-preview-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.08;
}

.home-discovery-preview-ticker {
    margin: 8px 0 0 0;
    color: #ff6868;
    font-size: 14px;
    font-weight: 700;
}

.home-discovery-preview-text {
    margin: 14px 0 0 0;
    color: #dce7f3;
    font-size: 14px;
    line-height: 1.7;
    max-width: 460px;
}

.home-discovery-preview-chart {
    margin-top: 18px;
    padding: 14px 14px 10px;
    border-radius: 18px;
    border: 1px solid rgba(105, 199, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(31, 182, 255, 0.07), rgba(31, 182, 255, 0.018)),
        linear-gradient(145deg, #152232, #101821);
}

.home-discovery-preview-price {
    display: inline-block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.home-discovery-preview-chart svg {
    display: block;
    width: 100%;
    height: 128px;
    margin-top: 10px;
}

.home-discovery-preview-chart polyline {
    fill: none;
    stroke: #1fb6ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(31, 182, 255, 0.18));
}

.home-discovery-preview-bar {
    margin-top: 16px;
    margin-bottom: 12px;
    height: 14px;
}

.home-discovery-preview-stats {
    margin-bottom: 14px;
}

.home-discovery-preview-stats span {
    font-size: 13px;
    line-height: 1.45;
}

.home-discovery-preview-actions {
    gap: 10px;
}

.home-discovery-preview-actions button {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.home-discovery-preview-feedback {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.home-discovery-preview-mini-line {
    height: 10px;
    margin-top: 14px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 77, 77, 0.16) 0%,
            rgba(255, 77, 77, 0.28) 22%,
            rgba(105, 199, 255, 0.26) 62%,
            rgba(105, 199, 255, 0.10) 100%);
}

.home-discovery-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.home-discovery-feature-card {
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(145deg, #17212d, #101821);
    border: 1px solid rgba(255, 77, 77, 0.10);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-discovery-feature-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #ff8f8f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.home-discovery-feature-card h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.22;
}

.home-discovery-feature-card p {
    margin: 0;
    color: #d7e1eb;
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .home-discovery-section {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .home-discovery-title {
        font-size: 29px !important;
    }

    .home-discovery-text {
        font-size: 14px;
        line-height: 1.68;
    }

    .home-discovery-actions {
        flex-direction: column;
        align-items: center;
    }

    .home-discovery-actions a {
        width: min(100%, 220px);
        text-align: center;
    }

    .home-discovery-preview-shell {
        max-width: none;
        padding: 16px;
        border-radius: 20px;
    }

    .home-discovery-preview-card.is-active {
        padding: 18px;
    }

    .home-discovery-preview-card h3 {
        font-size: 24px;
    }

    .home-discovery-preview-price {
        font-size: 22px;
    }

    .home-discovery-preview-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .home-discovery-preview-chart svg {
        height: 110px;
    }

    .home-discovery-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- RESPONSIVE ---------- */


@media (max-width: 720px) {
    .home-how-grid {
        grid-template-columns: 1fr;
    }

    .home-site-footer-top,
    .vote-market-site-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 700px) {

    .home-hero,
    .home-live-sentiment-section,
    .home-how-section,
    .home-trending-section {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .home-hero h1 {
        font-size: 32px;
    }

    .home-hero-text {
        color: #ffffff;
    }


    .home-site-footer,
    .vote-market-site-footer {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .home-site-footer-top,
    .vote-market-site-footer-top {
        grid-template-columns: 1fr;
    }

    .home-site-footer-brand h2,
    .vote-market-site-footer-brand h2 {
        font-size: 24px;
    }

    .home-site-footer-bottom,
    .vote-market-site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-actions a {
        width: 100%;
        text-align: center;
    }
}

/* ---------- ambient glow theme pass ---------- */

:root {
    --ambient-panel-base: linear-gradient(145deg, rgba(18, 25, 34, 0.96), rgba(11, 18, 27, 0.99));
    --ambient-card-base: linear-gradient(145deg, rgba(18, 28, 39, 0.96), rgba(12, 18, 28, 0.98));
    --ambient-panel-shadow:
        0 20px 42px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --ambient-card-shadow:
        0 14px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.info-hero,
.info-section,
.profile-clerk-card,
.profile-account-card,
.profile-auth-form,
.profile-form,
.stock-detail-section,
.news-section,
.stock-hero-box,
.stock-price-chart-section,
.vote-template-box,
.stock-comments-box,
.home-intelligence-section {
    border-color: rgba(105, 199, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.12), transparent 34%),
        radial-gradient(circle at bottom left, rgba(0, 255, 156, 0.05), transparent 24%),
        var(--ambient-panel-base);
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.34),
        0 0 20px rgba(105, 199, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-live-sentiment-section {
    border-color: rgba(0, 255, 156, 0.16);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(105, 199, 255, 0.06), transparent 26%),
        var(--ambient-panel-base);
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.34),
        0 0 20px rgba(0, 255, 156, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-hero,
.home-how-section {
    border-color: rgba(105, 199, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.1), transparent 34%),
        radial-gradient(circle at bottom left, rgba(0, 255, 156, 0.05), transparent 22%),
        var(--ambient-panel-base);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(105, 199, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-discovery-section,
.home-discovery-preview-shell,
.tind-card,
.discovery-face {
    border-color: rgba(255, 107, 120, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 107, 120, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(105, 199, 255, 0.06), transparent 24%),
        linear-gradient(145deg, rgba(24, 20, 27, 0.96), rgba(12, 18, 28, 0.98));
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.36),
        0 0 20px rgba(255, 107, 120, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.detail-card,
.detail-face,
.advanced-chart-panel,
.vote-results-box {
    border-color: rgba(105, 199, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.12), transparent 34%),
        radial-gradient(circle at bottom left, rgba(0, 255, 156, 0.04), transparent 24%),
        linear-gradient(145deg, rgba(16, 24, 33, 0.98), rgba(11, 18, 27, 0.98));
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(105, 199, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.info-card,
.info-list-item,
.news-card,
.profile-stat-card,
.stock-comments-state-card,
.home-comment-preview-card,
.discovery-actions-panel {
    border-color: rgba(105, 199, 255, 0.12);
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.1), transparent 38%),
        var(--ambient-card-base);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stock-comments-state-card.is-error {
    border-color: rgba(255, 117, 117, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 117, 117, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(34, 19, 24, 0.96), rgba(16, 18, 26, 0.98));
}

.fusion-card {
    border-color: rgba(0, 255, 156, 0.16);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.14), transparent 38%),
        linear-gradient(145deg, rgba(15, 30, 30, 0.96), rgba(11, 18, 27, 0.98));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(0, 255, 156, 0.05);
}

.fusion-card::before {
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(0, 255, 156, 0.04), transparent 34%);
}

.fusion-home-featured {
    border-color: rgba(0, 255, 156, 0.14);
    background: linear-gradient(145deg, #17212d, #101821);
    box-shadow: 0 0 14px rgba(0, 255, 156, 0.05);
}

.fusion-home-featured::before {
    background: linear-gradient(180deg, rgba(0, 255, 156, 0.06), transparent 34%);
}

.fusion-home-featured:hover {
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(0, 255, 156, 0.10);
}

.home-how-grid .home-how-card:nth-child(1) {
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.14), transparent 38%),
        linear-gradient(145deg, rgba(16, 25, 37, 0.96), rgba(11, 18, 28, 0.98));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(105, 199, 255, 0.05);
}

.home-how-grid .home-how-card:nth-child(2) {
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.14), transparent 38%),
        linear-gradient(145deg, rgba(14, 30, 29, 0.96), rgba(11, 18, 28, 0.98));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(0, 255, 156, 0.05);
}

.home-how-grid .home-how-card:nth-child(3) {
    background:
        radial-gradient(circle at top right, rgba(255, 107, 120, 0.14), transparent 38%),
        linear-gradient(145deg, rgba(31, 20, 26, 0.96), rgba(11, 18, 28, 0.98));
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 107, 120, 0.05);
}

.home-discovery-preview-card,
.home-discovery-feature-card {
    border-color: rgba(255, 107, 120, 0.14);
    background:
        radial-gradient(circle at top right, rgba(255, 107, 120, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(27, 19, 28, 0.96), rgba(12, 18, 28, 0.98));
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 107, 120, 0.04);
}

.stock-comment-input,
.stock-comment-textarea,
.stock-comment-select,
.vote-search-input,
.vote-sector-select,
.vote-market-cap-select {
    background:
        radial-gradient(circle at top right, rgba(105, 199, 255, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(14, 22, 32, 0.92), rgba(10, 17, 26, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.stock-comment-compose-trigger-copy {
    border-bottom-color: rgba(105, 199, 255, 0.22);
    color: rgba(190, 210, 232, 0.82);
}

.home-intelligence-section {
    border-color: rgba(0, 255, 156, 0.16);
    background:
        radial-gradient(circle at top right, rgba(0, 255, 156, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(105, 199, 255, 0.05), transparent 24%),
        var(--ambient-panel-base);
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.34),
        0 0 20px rgba(0, 255, 156, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@media (max-width: 640px) {
    .search-filter-box {
        align-items: stretch;
    }

    .vote-search-input {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .vote-custom-select[data-select-id="vote-sector-select"],
    .vote-custom-select[data-select-id="vote-market-cap-select"] {
        flex: 1 1 calc(50% - 7px);
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 12px;
    }

    nav {
        padding: 10px;
        border-radius: 10px;
        overflow: visible;
    }

    .nav-drawer-panel {
        width: calc(100vw - 16px);
        top: 8px;
        left: 8px;
        bottom: 8px;
        padding: 18px;
        border-radius: 20px;
    }

    .home-site-footer-top,
    .vote-market-site-footer-top,
    .profile-hero-grid,
    .account-hub-grid,
    .account-guest-benefits,
    .account-guest-points,
    .home-how-grid,
    .vote-stock-grid,
    .stock-template-main,
    .stock-template-vote-section {
        grid-template-columns: 1fr !important;
    }

    .account-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .vote-market-pagination-controls,
    .chart-time-controls,
    .vote-history-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .vote-stock-card,
    .vote-search-section,
    .vote-panel,
    .profile-auth-form,
    .profile-account-card,
    .profile-clerk-card,
    .stock-price-chart-section,
    .vote-template-box,
    .stock-comments-box,
    .home-hero,
    .home-live-sentiment-section,
    .home-how-section,
    .home-trending-section {
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .range-summary-box {
        align-items: center;
        justify-items: center;
    }

    .range-summary-box span {
        width: auto;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        display: block;
        white-space: normal;
        text-align: center;
    }

    .stock-title-text h1,
    .home-hero h1,
    .account-dashboard-name,
    .section-sub {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .account-favorite-item,
    .account-comment-item {
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }

    .home-hero,
    .home-live-sentiment-section,
    .home-how-section,
    .home-trending-section,
    .vote-search-section,
    .vote-panel,
    .profile-auth-form,
    .profile-account-card,
    .profile-clerk-card,
    .stock-price-chart-section,
    .vote-template-box,
    .stock-comments-box {
        padding-left: 14px;
        padding-right: 14px;
        border-radius: 14px;
    }

    .home-hero h1 {
        font-size: 28px;
    }

    .nav-drawer-title {
        font-size: 24px;
    }

    .nav-drawer-link-title {
        font-size: 20px;
    }
}

@media (max-width: 720px) {
    nav {
        gap: clamp(8px, 2vw, 12px);
    }

    nav ul {
        gap: clamp(4px, 1.8vw, 8px);
        padding-left: clamp(8px, 1.8vw, 12px);
        padding-right: clamp(14px, 3vw, 20px);
    }

    nav a {
        font-size: clamp(15px, 3vw, 17px);
        padding: clamp(8px, 1.8vw, 10px) clamp(6px, 1.8vw, 10px);
    }

    .home-hero h1,
    .account-guest-copy h1,
    .account-dashboard-copy h1,
    .section-sub {
        font-size: clamp(34px, 7vw, 42px) !important;
    }

    .vote-market-page .vote-panel .section-sub {
        font-size: 32px !important;
    }

    .stock-template-page {
        --stock-detail-heading-size: clamp(24px, 4.2vw, 28px);
    }

    .stock-title-text h1 {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    .home-hero-text,
    .account-guest-copy p,
    .account-dashboard-copy p,
    .section-subtitle,
    .account-stat-card p,
    .account-guest-bottom-card,
    .stock-comment-body,
    .home-how-card p,
    .home-discovery-feature-card p,
    .vote-stock-card .vote-meta {
        font-size: clamp(15px, 3.4vw, 17px);
        line-height: 1.72;
    }

    .vote-market-page .vote-panel .section-subtitle {
        font-size: 1rem;
        line-height: normal;
    }
}

@media (max-width: 520px) {
    .home-hero h1,
    .account-guest-copy h1,
    .account-dashboard-copy h1,
    .section-sub {
        font-size: clamp(32px, 8.4vw, 38px) !important;
    }

    .vote-market-page .vote-panel .section-sub {
        font-size: 32px !important;
    }

    .home-hero-text,
    .account-guest-copy p,
    .account-dashboard-copy p,
    .section-subtitle,
    .account-stat-card p,
    .account-guest-bottom-card,
    .stock-comment-body,
    .home-how-card p,
    .home-discovery-feature-card p,
    .vote-stock-card .vote-meta {
        font-size: clamp(15px, 4.1vw, 16px);
    }

    .vote-market-page .vote-panel .section-subtitle {
        font-size: 1rem;
        line-height: normal;
    }
}



/* =========================
   RESPONSIVE POLISH LAYER
========================= */

body {
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

nav a,
.market-btn,
.vote-btn,
.discover-btn,
.skip-btn,
.vote-now-btn,
.btn-green,
.btn-red,
.vote-btn-up,
.vote-btn-flat,
.vote-btn-down,
.chart-time-btn,
.vote-history-btn,
.stock-favorite-btn,
.account-favorite-link,
.account-favorite-remove {
    min-height: 44px;
}

.market-btn,
.vote-btn,
.discover-btn,
.skip-btn,
.vote-now-btn,
.btn-green,
.btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 920px) {
    .home-site-footer-top,
    .vote-market-site-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero,
    .home-live-sentiment-section,
    .home-how-section,
    .home-intelligence-section,
    .home-discovery-section,
    .vote-panel,
    .stock-price-chart-section,
    .vote-template-box,
    .stock-comments-box,
    .account-guest-panel,
    .account-dashboard,
    .home-site-footer,
    .vote-market-site-footer {
        padding: clamp(20px, 3.5vw, 28px);
    }

    .search-filter-box {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas:
            "search search reset"
            "sector marketcap .";
        align-items: stretch;
        gap: 12px 14px;
    }

    .vote-search-input {
        grid-area: search;
        min-width: 0;
    }

    .vote-custom-select,
    .vote-sector-select,
    .vote-market-cap-select {
        min-width: 0;
    }

    .vote-custom-select[data-select-id="vote-sector-select"],
    #vote-sector-select {
        grid-area: sector;
        width: 100%;
    }

    .vote-custom-select[data-select-id="vote-market-cap-select"],
    #vote-market-cap-select {
        grid-area: marketcap;
        width: 100%;
    }

    .vote-filter-reset-btn {
        grid-area: reset;
        justify-self: stretch;
        align-self: center;
        margin: 0;
        min-height: 44px;
        padding: 12px 16px;
    }

    .home-discovery-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-discovery-copy {
        max-width: none;
    }

    .home-discovery-actions {
        justify-content: center;
    }

    .stock-title-text h1 {
        font-size: 28px;
    }

    .stock-main-price {
        font-size: clamp(30px, 4.4vw, 36px);
    }

    .advanced-chart-panel {
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 14px;
    }

    nav {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .home-hero {
        margin: 22px 0 18px;
        padding: 24px 18px;
    }

    .home-hero h1 {
        font-size: clamp(31px, 9vw, 38px) !important;
        line-height: 1.04;
    }

    .home-hero-text {
        max-width: 32ch;
        margin-top: 16px;
    }

    .home-hero-actions,
    .home-discovery-actions {
        gap: 10px;
    }

    .home-hero-actions a,
    .home-how-btn,
    .home-discovery-actions a {
        min-height: 48px;
        padding: 13px 18px;
    }

    .home-live-sentiment-section,
    .home-how-section,
    .home-intelligence-section,
    .home-discovery-section,
    .vote-panel,
    .stock-price-chart-section,
    .vote-template-box,
    .stock-comments-box,
    .account-guest-panel,
    .account-dashboard,
    .home-site-footer,
    .vote-market-site-footer {
        border-radius: 20px;
    }

    .home-site-footer-top,
    .vote-market-site-footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-site-footer-bottom,
    .vote-market-site-footer-bottom {
        justify-content: flex-start;
    }

    .search-filter-box {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas: none;
        gap: 10px;
    }

    .vote-search-input {
        grid-area: auto;
        grid-column: 1 / -1;
    }

    .vote-custom-select[data-select-id="vote-sector-select"] {
        grid-area: auto;
        grid-column: 1;
    }

    .vote-custom-select[data-select-id="vote-market-cap-select"] {
        grid-area: auto;
        grid-column: 2;
    }

    .vote-filter-reset-btn {
        grid-area: auto;
        grid-column: 3;
        grid-row: 2;
        width: auto;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        padding: 12px 16px;
        justify-self: end;
        align-self: center;
    }

    .vote-market-pagination {
        justify-content: center;
    }

    .vote-market-pagination-meta {
        width: 100%;
        text-align: center;
    }

    .vote-market-pagination-controls {
        justify-content: center;
    }

    .vote-stock-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .vote-stock-card {
        padding: 18px 16px;
        min-height: 0;
        gap: 12px;
    }

    .vote-stock-card h3 {
        font-size: 1.5rem;
    }

    .vote-stock-card-header {
        gap: 12px;
        min-height: 0;
    }

    .vote-stock-company-name {
        font-size: 14px;
    }

    .vote-stock-move-block {
        gap: 6px;
        min-height: 0;
    }

    .vote-market-move-badge {
        min-width: 84px;
        padding: 9px 12px;
        font-size: 14px;
    }

    .vote-market-favorite-indicator {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    .vote-card-filter-meta,
    .vote-card-domain-row {
        gap: 6px;
    }

    .vote-card-filter-chip,
    .vote-card-domain-chip {
        padding: 6px 10px;
        font-size: 11px;
    }

    .vote-card-bar {
        height: 12px;
        margin-bottom: 10px;
    }

    .vote-card-lines {
        gap: 4px;
        margin-bottom: 10px;
    }

    .vote-card-lines span {
        font-size: 12px;
    }

    .vote-card-actions {
        gap: 8px;
        margin-bottom: 10px;
    }

    .vote-card-actions button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .vote-stock-card .vote-meta {
        padding-top: 10px;
        font-size: 12.5px;
        gap: 5px;
    }

    .tind-feed {
        gap: 12px;
    }

    .feed-card {
        min-height: calc(100svh - 84px);
        padding: 8px 0 12px;
        scroll-margin-top: 86px;
    }

    .unified-feed-card {
        border-radius: 20px;
    }

    .stock-title-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .stock-title-text {
        min-width: 0;
        flex: 1;
    }

    .stock-title-actions {
        width: auto;
        margin-left: auto;
        align-items: flex-end;
    }

    .stock-favorite-btn {
        align-self: flex-start;
        white-space: nowrap;
    }

    .stock-template-page {
        --stock-detail-heading-size: clamp(20px, 5vw, 25px);
    }

    .stock-title-text h1 {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    .stock-short-description {
        font-size: 15px;
        line-height: 1.72;
    }

    .price-line-box {
        gap: 10px 12px;
    }

    .stock-main-price {
        font-size: clamp(28px, 8vw, 34px);
    }

    .stock-price-move,
    .stock-price-percent {
        font-size: 15px;
        padding: 7px 10px;
    }

    .advanced-chart-panel {
        grid-template-columns: minmax(0, 1fr) 54px;
        min-height: 280px;
    }

    .chart-y-axis {
        padding: 0 8px 0 6px;
    }

    .chart-reference-tag {
        padding: 4px 8px;
        font-size: 11px;
    }

    .chart-time-controls,
    .vote-history-controls {
        gap: 8px;
    }

    .chart-time-btn,
    .vote-history-btn {
        padding: 7px 11px;
    }

    .range-summary-box {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        padding: 14px 12px;
    }

    .range-summary-box span {
        text-align: center;
    }

    .vote-template-actions-3 {
        gap: 10px;
    }

    .vote-btn-up,
    .vote-btn-flat,
    .vote-btn-down {
        padding: 11px 12px;
    }

    .stock-comments-header-row {
        align-items: flex-start;
    }

    .stock-comments-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .stock-comment-field-inline {
        min-width: 0;
    }

    .account-page {
        margin-top: 26px;
    }

    .account-dashboard-identity {
        align-items: flex-start;
    }

    .account-dashboard-clerk-button,
    .account-user-button-avatar {
        width: 60px;
        min-width: 60px;
        height: 60px;
        min-height: 60px;
        flex: 0 0 60px;
    }

    .account-stats-grid {
        gap: 14px;
    }

    .account-stat-card {
        padding: 18px;
    }

    .account-stat-card strong {
        font-size: clamp(28px, 7vw, 34px);
    }

.account-favorite-item,
.account-comment-item {
    padding: 14px;
}

@media (max-width: 560px) {
    .vote-filter-summary-row {
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 0;
    }

    .vote-filter-summary-legal {
        width: 100%;
        justify-self: end;
    }

    .vote-filter-summary-legal-secondary {
        white-space: normal;
    }
}
}

.home-seo-section,
.vote-market-seo-section,
.stock-swipe-seo-hero,
.stock-swipe-seo-section,
.stock-detail-seo-section {
    margin: 28px 0 0;
}

.seo-collapsible {
    display: block;
}

.seo-collapsible-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid rgba(62, 86, 112, 0.55);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 28, 39, 0.98), rgba(14, 22, 32, 0.96));
    box-shadow: 0 12px 30px rgba(4, 10, 18, 0.16);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.seo-collapsible-summary::-webkit-details-marker {
    display: none;
}

.seo-collapsible-summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 22px;
    line-height: 1;
}

.seo-collapsible[open] .seo-collapsible-summary::after {
    content: "−";
}

.seo-collapsible-summary:hover {
    border-color: rgba(105, 199, 255, 0.42);
    transform: translateY(-1px);
}

.seo-collapsible-content {
    padding-top: 18px;
}

.home-seo-grid,
.vote-market-seo-grid,
.stock-swipe-seo-grid,
.stock-detail-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.home-seo-card,
.vote-market-seo-card,
.stock-swipe-seo-card,
.stock-detail-seo-card {
    background: linear-gradient(180deg, rgba(17, 28, 39, 0.98), rgba(14, 22, 32, 0.96));
    border: 1px solid rgba(62, 86, 112, 0.55);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 42px rgba(4, 10, 18, 0.18);
}

.home-seo-card h2,
.vote-market-seo-card h2,
.stock-swipe-seo-card h2,
.stock-detail-seo-card h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.18;
}

.home-seo-card p,
.vote-market-seo-card p,
.stock-swipe-seo-card p,
.stock-detail-seo-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.72;
    color: var(--text-soft, #c7d7eb);
}

.home-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.home-seo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(90, 117, 146, 0.55);
    background: rgba(19, 31, 44, 0.92);
    color: #d8e7f8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.home-seo-link:hover {
    border-color: rgba(37, 211, 102, 0.78);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .home-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .home-hero-actions a {
        width: 100%;
    }

    .home-how-btn,
    .home-discovery-actions a {
        width: 100%;
        max-width: 280px;
    }

    .stock-comments-toolbar {
        grid-template-columns: 1fr;
    }

    .account-dashboard-copy p {
        overflow-wrap: anywhere;
    }

    .vote-template-stats-3 span {
        font-size: 13px;
    }

    .vote-btn-up,
    .vote-btn-flat,
    .vote-btn-down {
        font-size: 13px;
    }

    .home-seo-card,
    .vote-market-seo-card,
    .stock-swipe-seo-card,
    .stock-detail-seo-card {
        padding: 18px;
    }

    .home-seo-card p,
    .vote-market-seo-card p,
    .stock-swipe-seo-card p,
    .stock-detail-seo-card p {
        font-size: 15px;
    }

    .seo-collapsible-summary {
        padding: 16px 18px;
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .home-hero-actions {
        grid-template-columns: 1fr;
    }

    .home-how-btn,
    .home-discovery-actions a {
        max-width: none;
    }

    .advanced-chart-panel {
        grid-template-columns: minmax(0, 1fr) 48px;
        min-height: 250px;
    }

    .range-summary-box {
        grid-template-columns: 1fr;
    }
}

/* Match the stock detail price row to the stock detail heading scale only. */
.stock-chart-box .price-line-box {
    --stock-detail-price-line-size: 28px;
    --stock-detail-price-badge-size: 22px;
}

.stock-chart-box .price-line-box .stock-main-price {
    font-size: var(--stock-detail-price-line-size);
}

.stock-chart-box .price-line-box .stock-price-move,
.stock-chart-box .price-line-box .stock-price-percent {
    font-size: var(--stock-detail-price-badge-size);
    line-height: 1.1;
}

.stock-chart-box .price-line-box .stock-price-move,
.stock-chart-box .price-line-box .stock-price-percent {
    padding: 6px 10px;
}

/* ---------- global density pass: desktop/tablet ---------- */
@media (min-width: 681px) {
    :root {
        --site-density-panel-padding: 24px;
        --site-density-card-padding: 24px;
        --site-density-tight-card-padding: 20px;
        --site-density-panel-radius: 22px;
        --site-density-card-radius: 16px;
        --site-density-structure-gap: 20px;
        --site-density-section-margin: 22px;
        --site-density-title-xl: 30px;
        --site-density-title-lg: 28px;
        --site-density-title-md: 20px;
        --site-density-copy-lg: 16px;
        --site-density-copy-base: 15px;
        --site-density-nav-size: 20px;
    }

    .container {
        max-width: 1240px;
        padding: 0 18px;
    }

    nav a {
        font-size: var(--site-density-nav-size);
        padding: 9px 14px;
    }

    .burger-btn,
    .nav-back-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        font-size: 20px;
    }

    .home-hero,
    .home-live-sentiment-section,
    .home-how-section,
    .home-intelligence-section,
    .home-discovery-section,
    .vote-search-section,
    .vote-panel,
    .vote-examples,
    .stock-price-chart-section,
    .vote-template-box,
    .stock-comments-box,
    .profile-clerk-card,
    .profile-account-card,
    .profile-auth-form,
    .profile-form,
    .account-guest-panel,
    .account-dashboard,
    .home-site-footer,
    .vote-market-site-footer,
    .home-seo-card,
    .vote-market-seo-card,
    .stock-swipe-seo-card,
    .stock-detail-seo-card {
        padding: var(--site-density-panel-padding);
        border-radius: var(--site-density-panel-radius);
    }

    .card-face,
    .tind-card,
    .detail-card,
    .discovery-face,
    .detail-face {
        padding: var(--site-density-card-padding);
        border-radius: var(--site-density-card-radius);
    }

    .fusion-card,
    .profile-stat-card,
    .vote-stock-card {
        padding: var(--site-density-tight-card-padding);
    }

    .stock-template-page,
    .stock-template-main,
    .home-seo-grid,
    .vote-market-seo-grid,
    .stock-swipe-seo-grid,
    .stock-detail-seo-grid,
    .tind-feed {
        gap: var(--site-density-structure-gap);
    }

    .home-seo-section,
    .vote-market-seo-section,
    .stock-swipe-seo-hero,
    .stock-swipe-seo-section,
    .stock-detail-seo-section {
        margin-top: var(--site-density-section-margin);
    }

    .vote-top-search {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .search-filter-box {
        margin-bottom: 16px;
    }

    .section-sub,
    .home-live-sentiment-section .section-sub,
    .home-how-section .section-sub,
    .home-intelligence-title,
    .home-discovery-title {
        font-size: var(--site-density-title-xl) !important;
        margin-bottom: 14px;
    }

    .detail-card h2,
    .home-seo-card h2,
    .vote-market-seo-card h2,
    .stock-swipe-seo-card h2,
    .stock-detail-seo-card h2 {
        font-size: var(--site-density-title-lg);
    }

    .vote-stock-card h3 {
        font-size: 1.55rem;
    }

    .fusion-card h3,
    .home-how-card h3 {
        font-size: var(--site-density-title-md);
    }

    .section-subtitle,
    .home-seo-card p,
    .vote-market-seo-card p,
    .stock-swipe-seo-card p,
    .stock-detail-seo-card p,
    .profile-stat-card p,
    .profile-disclaimer {
        font-size: var(--site-density-copy-base);
        line-height: 1.68;
    }

    .home-how-card p,
    .fusion-description,
    .stock-short-description {
        font-size: var(--site-density-copy-base);
        line-height: 1.68;
    }

    .vote-search-input,
    .vote-custom-select-trigger {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .vote-custom-select-trigger {
        gap: 10px;
    }

    .vote-filter-reset-btn,
    .home-how-btn,
    .home-seo-link,
    .vote-btn-up,
    .vote-btn-flat,
    .vote-btn-down {
        min-height: 42px;
    }

    .vote-filter-reset-btn,
    .home-seo-link {
        padding: 10px 16px;
    }

    .vote-btn-up,
    .vote-btn-flat,
    .vote-btn-down {
        padding: 11px 14px;
        font-size: 13px;
    }

    .vote-history-btn {
        padding: 7px 12px;
        min-width: 60px;
    }

    .vote-stock-company-name {
        font-size: 14px;
        line-height: 1.35;
    }

    .vote-market-favorite-indicator {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    .vote-market-move-badge {
        min-width: 84px;
    }

    .vote-market-move-badge.is-unavailable {
        min-width: 136px;
    }

    .vote-card-filter-chip,
    .vote-card-domain-chip {
        padding: 6px 10px;
        font-size: 11px;
    }

    .home-hero-actions {
        gap: 12px;
        margin-top: 22px;
    }

    .home-hero-actions .vote-btn,
    .home-hero-actions .discover-btn,
    .home-hero-actions .market-btn,
    .home-how-btn {
        padding: 11px 18px;
        font-size: 14px;
    }
}

@media (max-width: 680px) {
    .stock-chart-box .price-line-box {
        --stock-detail-price-line-size: clamp(20px, 5vw, 25px);
        --stock-detail-price-badge-size: clamp(16px, 4vw, 19px);
    }
}
