.home-page {
    min-width: 0;
    max-width: 1680px;
    margin: 0 auto;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.8fr);
    gap: 2rem;
    align-items: center;
    margin: 0.5rem 0 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    overflow: hidden;
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 14px;
    background:
        radial-gradient(circle at 85% 20%, rgba(137, 87, 229, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 0.96));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.home-hero-copy {
    max-width: 760px;
}

.home-eyebrow,
.home-section-kicker {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0.55rem 0 0.8rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.home-hero-copy > p {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: white;
    font-size: 0.88rem;
    font-weight: 650;
    transition: background-color 0.2s, transform 0.2s;
}

.home-hero-button.primary {
    background: var(--accent);
    color: #0d1117;
}

.home-hero-button:hover {
    background: rgba(88, 166, 255, 0.16);
    transform: translateY(-1px);
}

.home-hero-button.primary:hover {
    background: var(--accent-hover);
}

.home-script-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: min(100%, 390px);
}

.home-hero-button.home-script-button {
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    border-color: var(--border-color);
    border-radius: 8px;
    background: rgba(13, 17, 23, 0.55);
    font-size: 0.78rem;
}

.home-hero-button.home-script-button:hover {
    border-color: rgba(88, 166, 255, 0.55);
    background: rgba(88, 166, 255, 0.12);
}

.home-script-platform-label {
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.home-hero-guide {
    display: grid;
    gap: 0.85rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.55);
}

.home-hero-guide div {
    display: grid;
    gap: 0.2rem;
}

.home-hero-guide strong {
    color: var(--text-primary);
    font-size: 0.86rem;
}

.home-hero-guide span {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
}

.home-section {
    margin: 1.5rem 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(22, 27, 34, 0.96), rgba(17, 22, 29, 0.94));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.home-section-heading h2 {
    margin: 0.3rem 0 0.25rem;
    color: white;
    font-size: 1.35rem;
}

.home-section-heading p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.home-section-link {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 650;
}

.home-section-link:hover {
    color: var(--accent-hover);
}

.home-expert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-expert-card {
    display: grid;
    grid-template-columns: 38px minmax(120px, 1fr) minmax(220px, 1.25fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid rgba(48, 54, 61, 0.9);
    border-radius: 8px;
    background: rgba(13, 17, 23, 0.52);
    transition: border-color 0.2s, background-color 0.2s;
}

.home-expert-card:hover {
    border-color: rgba(88, 166, 255, 0.5);
    background: rgba(33, 38, 45, 0.76);
}

.home-expert-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.home-expert-main {
    min-width: 0;
}

.home-expert-name {
    display: block;
    overflow: hidden;
    color: white;
    font-size: 0.9rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-expert-name:hover {
    color: var(--accent-hover);
}

.home-expert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.home-expert-meta span:first-child {
    color: var(--accent);
}

.home-expert-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.home-expert-metrics div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.home-expert-metrics span {
    color: var(--text-secondary);
    font-size: 0.66rem;
    line-height: 1.25;
}

.home-expert-metrics strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-expert-metrics strong.positive {
    color: var(--green-bright);
}

.home-expert-metrics strong.negative {
    color: var(--red);
}

.home-section-empty {
    padding: 1.5rem 0;
    color: var(--text-secondary);
    text-align: center;
}

.home-page .scripts-horizontal-section {
    margin: 0;
}

.home-page .scripts-horizontal-section h2,
.home-page .reports-section h2 {
    margin-bottom: 1rem;
    padding-left: 0;
    font-size: 1.35rem;
}

.home-page .scripts-horizontal-section h2::before {
    display: none;
}

.home-page .scripts-horizontal-list {
    gap: 0.75rem;
}

.home-page .script-horizontal-content {
    padding: 1rem;
}

.home-page .report-item {
    background: rgba(13, 17, 23, 0.52);
}

.home-page .reports-list {
    gap: 0.8rem;
    counter-reset: home-report-rank;
}

.home-page .home-report-item {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 10px;
    counter-increment: home-report-rank;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.home-page .home-report-item::before {
    content: counter(home-report-rank, decimal-leading-zero);
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(88, 166, 255, 0.24);
    border-radius: 50%;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.home-page .home-report-item:hover {
    border-color: rgba(88, 166, 255, 0.45);
    background: rgba(22, 27, 34, 0.85);
}

.home-page .home-report-item .report-header {
    grid-column: 1 / -1;
    align-items: flex-start;
    min-width: 0;
    margin: 0 0 0.15rem;
    padding: 0.15rem 0 0.85rem 2.65rem;
    border-bottom: 1px solid rgba(48, 54, 61, 0.8);
}

.home-page .home-report-item .report-title {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.home-page .home-report-item .script-link {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
}

.home-page .home-report-item .script-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .home-report-item .report-symbol,
.home-page .home-report-item .report-period {
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(33, 38, 45, 0.7);
    font-size: 0.72rem;
    line-height: 1.3;
}

.home-page .home-report-item .report-profit {
    flex-shrink: 0;
    padding: 0.45rem 0.7rem;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.home-page .home-report-item .report-profit::before {
    content: "PF ";
    font-size: 0.65rem;
    opacity: 0.8;
}

.home-page .home-report-item .report-details {
    display: contents;
}

.home-page .home-report-item .report-metric {
    min-width: 0;
    gap: 0.35rem;
    padding: 0.7rem;
    border: 1px solid rgba(48, 54, 61, 0.85);
    border-radius: 7px;
    background: rgba(13, 17, 23, 0.58);
}

.home-page .home-report-item .metric-label {
    font-size: 0.68rem;
    line-height: 1.25;
}

.home-page .home-report-item .metric-value {
    overflow: hidden;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .home-report-item .secondary-home-metric,
.home-page .home-report-item .profit-scale {
    display: none;
}

.home-page .home-report-item .report-performance-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.15rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
}

.home-page .home-report-item .report-performance-status {
    padding: 0.2rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-page .home-report-item .report-performance-status.positive {
    color: var(--green-bright);
    background: rgba(46, 160, 67, 0.1);
}

.home-page .home-report-item .report-performance-status.negative {
    color: var(--red);
    background: rgba(248, 81, 73, 0.1);
}

.home-page .home-report-item .report-performance-status.neutral {
    color: var(--text-secondary);
    background: rgba(139, 148, 158, 0.1);
}

.home-page .home-report-item .profit-bar-container {
    grid-column: 1 / -1;
    height: 12px;
    margin: 0.1rem 0 0.35rem;
    border: 1px solid rgba(139, 148, 158, 0.24);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(248, 81, 73, 0.12), rgba(33, 38, 45, 0.82) 48%, rgba(33, 38, 45, 0.82) 52%, rgba(46, 160, 67, 0.12));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.home-page .home-report-item .profit-bar-container::after {
    width: 2px;
    background: rgba(201, 209, 217, 0.72);
    box-shadow: 0 0 5px rgba(201, 209, 217, 0.45);
}

.home-page .home-report-item .profit-bar {
    border-radius: 999px;
    transition: width 0.35s ease;
}

.home-page .home-report-item .profit-bar.positive {
    background: linear-gradient(90deg, #238636, #3fb950);
    box-shadow: 0 0 10px rgba(63, 185, 80, 0.42);
}

.home-page .home-report-item .profit-bar.negative {
    background: linear-gradient(270deg, #da3633, #ff7b72);
    box-shadow: 0 0 10px rgba(248, 81, 73, 0.42);
}

.home-page .home-report-item .report-actions {
    grid-column: 1 / -1;
    margin-top: 0.05rem;
    padding-top: 0.75rem;
}

.home-page .home-report-item .view-report-link {
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(88, 166, 255, 0.24);
    border-radius: 6px;
    font-size: 0.8rem;
}

.home-page .scripts-horizontal-section h2 {
    display: flex;
    justify-content: space-between;
}

.home-page .scripts-horizontal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-page .script-horizontal-item {
    position: relative;
    counter-increment: home-download-rank;
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.58);
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.home-page .scripts-horizontal-list {
    counter-reset: home-download-rank;
}

.home-page .script-horizontal-item::after {
    content: counter(home-download-rank, decimal-leading-zero);
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.home-page .script-horizontal-item:hover {
    border-color: rgba(88, 166, 255, 0.45);
    background: rgba(22, 27, 34, 0.85);
}

.home-page .script-horizontal-content {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 0.8rem;
    min-height: 100%;
    padding: 1rem;
}

.home-page .script-image-container,
.home-page .script-icon-container {
    width: 56px;
    height: 56px;
}

.home-page .script-icon-container svg {
    width: 26px;
    height: 26px;
}

.home-page .script-type-badge {
    top: -5px;
    right: -5px;
    padding: 2px 6px;
    font-size: 0.62rem;
}

.home-page .script-info-area {
    min-width: 0;
    padding-right: 2.2rem;
}

.home-page .script-header-info {
    margin-bottom: 0.35rem;
}

.home-page .script-name {
    margin: 0;
    font-size: 0.9rem;
}

.home-page .script-horizontal-item .script-description {
    margin-bottom: 0;
    font-size: 0.76rem;
    line-height: 1.4;
}

.home-page .script-stats-area {
    grid-column: 2;
    align-items: stretch;
    width: 100%;
}

.home-page .script-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}

.home-page .script-stat {
    min-width: 0;
    padding: 0.45rem 0.25rem;
    border-color: rgba(48, 54, 61, 0.85);
    background: rgba(22, 27, 34, 0.72);
}

.home-page .script-stat .stat-value {
    overflow: hidden;
    margin-bottom: 0.15rem;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .script-stat .stat-label {
    font-size: 0.62rem;
}

.home-page .script-stat:last-child {
    border-color: rgba(88, 166, 255, 0.24);
    background: rgba(88, 166, 255, 0.08);
}

@media (max-width: 1200px) {
    .home-expert-grid {
        grid-template-columns: 1fr;
    }

    .home-page .scripts-horizontal-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-guide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero-guide {
        grid-template-columns: 1fr;
    }

    .home-expert-card {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .home-expert-metrics {
        grid-column: 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-page .report-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .home-report-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .script-horizontal-content {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .home-page .script-image-container,
    .home-page .script-icon-container {
        width: 44px;
        height: 44px;
    }

    .home-page .script-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
