:root {
    --bg: #070b12;
    --bg-soft: #0c111b;
    --card: rgba(12, 17, 27, 0.96);
    --card-2: rgba(18, 24, 37, 0.92);
    --line: rgba(213, 227, 240, 0.1);
    --text: #f5f7fb;
    --muted: #9aa6bb;
    --muted-2: #6f7a8f;
    --orange: #ff6a18;
    --orange-2: #ff8a1d;
    --orange-3: #ff4f0d;
    --green: #29dd73;
    --blue: #61a5ff;
    --purple: #8a5cff;
    --radius-xl: 20px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 103, 24, 0.12), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(138, 92, 255, 0.08), transparent 34%),
        linear-gradient(180deg, #05080f 0%, #080b12 60%, #06080d 100%);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 44px 44px;
}

button,
a,
input {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

img {
    display: block;
}

.home-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 20px 18px 150px;
    animation: page-fade 0.45s ease both;
}

.app-header {
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.title-icon {
    color: var(--orange);
    font-size: 34px;
    filter: drop-shadow(0 0 12px rgba(255, 106, 24, 0.45));
    animation: icon-float 2.5s ease-in-out infinite;
}

.ghost-btn,
.outline-action,
.primary-action {
    min-height: 54px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ghost-btn,
.outline-action {
    padding: 0 20px;
    border: 1px solid rgba(255, 106, 24, 0.55);
    color: var(--orange);
    background: linear-gradient(180deg, rgba(255, 106, 24, 0.08), rgba(255, 106, 24, 0.02)), rgba(10, 14, 23, 0.68);
}

.ghost-btn:hover,
.outline-action:hover,
.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 106, 24, 0.14);
}

.help-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
}

.content-card,
.home-hero,
.quick-card,
.profile-card,
.balance-card,
.bottom-pagination {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)), var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.content-card,
.home-hero,
.quick-card,
.profile-card,
.balance-card {
    position: relative;
    overflow: hidden;
}

.content-card::before,
.home-hero::before,
.quick-card::before,
.profile-card::before,
.balance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 103, 24, 0.1), transparent 34%),
        linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.025), transparent 58%);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    padding: 26px;
    margin-bottom: 16px;
}

.home-hero__content,
.profile-card > *,
.content-card > *,
.quick-card > *,
.balance-card > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px rgba(41, 221, 115, 0.7);
    animation: live-ping 1.5s ease-in-out infinite;
}

.home-hero h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(30px, 4.5vw, 56px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auction-header {
    display: grid;
    grid-template-columns:  1fr 140px;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.home-hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: #d8dce8;
    font-size: 16px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-action {
    min-width: 210px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(180deg, var(--orange-2) 0%, var(--orange-3) 100%);
    box-shadow: 0 16px 34px rgba(255, 87, 18, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.profile-card {
    align-self: stretch;
    padding: 18px;
}

.profile-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 106, 24, 0.55);
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: rgba(255, 106, 24, 0.08);
    font-size: 24px;
    font-weight: 900;
}

.profile-card span,
.quick-card span,
.auction-stats span,
.task-item span,
.balance-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-card strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    line-height: 1;
}

.profile-stats {
    display: grid;
    gap: 8px;
}

.profile-stats div,
.task-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 22, 0.58);
}

.profile-stats strong,
.task-item strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    line-height: 1.1;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.quick-card {
    min-height: 170px;
    padding: 18px;
}

.quick-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border: 1px solid rgba(97, 165, 255, 0.4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: rgba(97, 165, 255, 0.08);
    font-size: 24px;
}

.quick-icon.orange {
    border-color: rgba(255, 106, 24, 0.5);
    color: var(--orange);
    background: rgba(255, 106, 24, 0.08);
}

.quick-icon.purple {
    border-color: rgba(138, 92, 255, 0.45);
    color: var(--purple);
    background: rgba(138, 92, 255, 0.08);
}

.quick-card strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.quick-card p {
    margin: 12px 0 0;
    color: #d8dce8;
    line-height: 1.35;
}

.content-card {
    padding: 18px;
    margin-bottom: 14px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.realtime-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.realtime-label button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    display: grid;
    place-items: center;
    transition: color 0.2s ease, transform 0.3s ease;
}

.realtime-label button:hover {
    color: var(--orange);
    transform: rotate(180deg);
}

.featured-auction {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(10, 14, 22, 0.58);
}

.featured-auction__image {
    display: grid;
    place-items: center;
    min-height: 240px;
    border: 1px solid rgba(255, 106, 24, 0.34);
    border-radius: 16px;
    background: radial-gradient(circle at 45% 25%, rgba(255, 106, 24, 0.22), transparent 32%), linear-gradient(145deg, rgba(255, 106, 24, 0.12), rgba(8, 12, 20, 0.94) 58%);
    overflow: hidden;
}

.featured-auction__image img {
    width: min(170px, 90%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.32));
}

.featured-auction h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-auction p {
    margin: 10px 0 16px;
    color: #d8dce8;
    line-height: 1.45;
}

.auction-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(10, 14, 22, 0.58);
    margin-bottom: 16px;
}

.auction-stats div {
    padding: 12px;
    border-right: 1px solid var(--line);
}

.auction-stats div:last-child {
    border-right: 0;
}

.auction-stats strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
}

.side-panel {
    min-width: 0;
}

.section-head.compact {
    margin-bottom: 10px;
}

.task-list {
    display: grid;
    gap: 8px;
}

.text-link {
    color: var(--orange);
    font-weight: 900;
    text-transform: uppercase;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.collection-card {
    min-height: 150px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(17, 23, 35, 0.86);
    display: flex;
    align-items: center;
    gap: 14px;
}

.collection-card img {
    width: 72px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 106, 24, 0.08);
}

.collection-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.1;
    text-transform: uppercase;
}

.collection-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.placeholder-art {
    width: 72px;
    height: 100px;
    border: 1px dashed rgba(255, 106, 24, 0.5);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: rgba(255, 106, 24, 0.06);
    font-size: 34px;
    font-weight: 900;
}

.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 92px;
    padding: 16px 20px;
}

.balance-card span {
    margin-bottom: 4px;
    color: #d4d9e6;
    font-size: 20px;
}

.balance-card strong {
    display: block;
    font-size: 36px;
    line-height: 1;
}

.balance-card small {
    color: var(--muted);
    font-size: 17px;
    font-weight: 500;
}

.bottom-pagination {
    position: fixed;
    left: 50%;
    bottom: calc(30px + env(safe-area-inset-bottom));
    z-index: 9999;
    width: min(100% - 36px, 1180px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px 12px 14px;
    background: linear-gradient(180deg, rgba(18, 24, 37, 0.96), rgba(9, 13, 22, 0.96)), var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 106, 24, 0.08);
    transform: translateX(-50%);
}

.pagination-link {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--muted);
    display: grid;
    place-items: center;
    text-align: center;
    gap: 4px;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pagination-link:hover {
    transform: translateY(-2px);
    color: #fff;
}

.pagination-link.active {
    color: var(--orange);
}

.nav-icon {
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 1080px) {
    .home-hero,
    .main-layout {
        grid-template-columns: 1fr;
    }

    .profile-card {
        align-self: auto;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .auction-header {
        grid-template-columns: 1fr 56px;
    }

    .home-page {
        padding: 14px 10px 130px;
    }

    .app-header {
        grid-template-columns: 1fr 56px;
    }

    .ghost-btn span:first-child,
    .realtime-label span {
        display: none;
    }

    .page-title {
        gap: 8px;
    }

    .page-title h1 {
        font-size: 26px;
    }

    .home-hero {
        padding: 18px;
    }

    .quick-grid,
    .cards-grid,
    .featured-auction,
    .auction-stats,
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .featured-auction__image {
        min-height: 200px;
    }

    .hero-actions,
    .balance-card {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-action,
    .outline-action,
    .balance-card .outline-action {
        width: 100%;
    }

    .bottom-pagination {
        bottom: calc(20px + env(safe-area-inset-bottom));
        width: calc(100% - 20px);
        gap: 6px;
        padding: 10px 8px 12px;
    }

    .pagination-link {
        min-height: 40px;
        font-size: 12px;
    }

    .nav-icon {
        font-size: 24px;
    }
}

@keyframes page-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-4px) rotate(4deg); }
}

@keyframes live-ping {
    0%, 100% { box-shadow: 0 0 0 0 rgba(41, 221, 115, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(41, 221, 115, 0); }
}
