:root {
    --bg: #080808;
    --card: #141414;
    --card-2: #1c1c1c;
    --line: #2b2b2b;
    --text: #ffffff;
    --muted: #a9a9a9;
    --danger: #ff4d6d;
    --accent: #ff2e63;
    --accent-2: #8f3ffc;
    --radius: 8px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 44px);
    background: rgba(8, 8, 8, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    font-weight: 800;
    letter-spacing: 0;
}

.top-nav,
.split-actions,
.action-row,
.badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 14px;
}

.top-nav a,
.nav-button {
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px 10px;
}

.top-nav a:hover,
.nav-button:hover,
.accent-link {
    color: var(--text);
}

.inline-form {
    display: inline;
    margin: 0;
}

.main-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 28px auto 96px;
}

.feed-shell {
    margin: 0;
}

.feed {
    height: calc(100vh - 64px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.reel-card {
    min-height: calc(100vh - 64px);
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    padding: 18px;
}

.ad-card {
    width: min(520px, 100%);
    min-height: min(760px, calc(100vh - 108px));
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: minmax(300px, 1fr) auto;
    animation: softIn 260ms ease both;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.grid-list .ad-card {
    min-height: 610px;
}

.premium-card {
    border-color: rgba(255, 46, 99, 0.85);
    box-shadow: 0 0 0 1px rgba(143, 63, 252, 0.35), var(--shadow);
}

.ad-media {
    position: relative;
    min-height: 300px;
    background: var(--card-2);
}

.ad-media img,
.gallery img,
.mini-card img,
.image-delete-form img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-media img {
    position: absolute;
    inset: 0;
}

.media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.badge-row {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    flex-wrap: wrap;
}

.badge-row.inline {
    position: static;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.badge.premium {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.badge.verified {
    background: rgba(255, 255, 255, 0.16);
}

.ad-body {
    padding: 18px;
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, #171717, #111111);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    margin-bottom: 16px;
}

h2 {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 10px;
}

.ad-card h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.muted {
    color: var(--muted);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-row span,
.facts span,
.contact-box,
.token-box {
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.wide {
    margin: 18px 0;
}

.icon-action,
.btn {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #202020;
    color: var(--text);
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.icon-action {
    min-width: 44px;
}

.icon-action:hover,
.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.32);
    background: #282828;
}

.icon-action.active {
    border-color: var(--accent);
    background: rgba(255, 46, 99, 0.18);
}

.icon-action.static {
    cursor: default;
    color: var(--muted);
}

.btn.primary {
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 800;
}

.btn.ghost {
    background: transparent;
}

.btn.danger {
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 77, 109, 0.46);
    color: #ffbac7;
}

.split-actions {
    flex-wrap: wrap;
}

.split-actions .btn {
    flex: 1 1 150px;
}

.bottom-nav {
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
}

.bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: var(--radius);
    background: #1f1f1f;
    font-size: 20px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.panel.narrow,
.auth-card {
    width: min(720px, 100%);
    margin-inline: auto;
}

.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.form-grid,
.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: grid;
    align-content: start;
    gap: 6px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 0;
}

.filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

label {
    color: var(--muted);
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 6px;
    background: #101010;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.checkbox-line input {
    width: auto;
    margin: 0;
}

.form-step {
    display: none;
    animation: softIn 180ms ease both;
}

.form-step.active {
    display: block;
}

.step-dots {
    display: flex;
    gap: 8px;
}

.step-dots span {
    width: 100%;
    height: 5px;
    background: var(--line);
    border-radius: 999px;
}

.step-dots span.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.step-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-grid,
.mini-grid,
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.preview-grid img,
.preview-grid figure,
.image-delete-form img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-2);
}

.preview-grid figure {
    margin: 0;
    position: relative;
}

.preview-grid figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.72);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.detail-layout,
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 22px;
    align-items: start;
}

.gallery {
    display: grid;
    gap: 12px;
}

.gallery img {
    border-radius: var(--radius);
    min-height: 360px;
    max-height: 78vh;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.facts.vertical {
    grid-template-columns: 1fr;
}

.contact-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-box a {
    color: #2b8fca;
    font-weight: 800;
}

.contact-box a:hover {
    text-decoration: underline;
}

.mini-card,
.package-card,
.table-list article,
.image-delete-form {
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}

.mini-card img {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.package-card {
    display: grid;
    gap: 10px;
}

.table-list {
    display: grid;
    gap: 10px;
}

.table-list article,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--line);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.modal.open {
    display: grid;
}

.modal-card {
    width: min(520px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card-2);
    color: var(--text);
}

.toast-stack {
    position: fixed;
    z-index: 120;
    top: 76px;
    right: 16px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100% - 32px));
}

.toast {
    padding: 12px 14px;
    background: #202020;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: slideIn 220ms ease both;
}

.toast.error {
    border-left-color: var(--danger);
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 180ms ease, visibility 180ms ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.page-loader span {
    width: 46px;
    height: 46px;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.skeleton-card {
    width: min(420px, 90vw);
    height: 360px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #141414, #242424, #141414);
    background-size: 220% 100%;
    animation: skeleton 1.3s ease infinite;
}

.empty-state {
    min-height: 62vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
}

.compact {
    min-height: 260px;
}

.token-box {
    overflow-x: auto;
    white-space: nowrap;
}

.load-more {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.market-shell {
    width: min(1240px, calc(100% - 32px));
}

.market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 20px;
    align-items: end;
    background: linear-gradient(135deg, #151515, #090909 64%, rgba(255, 46, 99, 0.22));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 44px);
    box-shadow: var(--shadow);
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.hero-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-stats span,
.category-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 18px 0 6px;
}

.category-chip {
    flex: 0 0 auto;
    color: var(--muted);
}

.category-chip.active,
.category-chip:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.listing-grid .ad-card {
    width: 100%;
    min-height: 590px;
}

.listing-grid .ad-media {
    min-height: 280px;
}

.load-more-inline {
    margin: 22px auto 0;
    width: min(260px, 100%);
}

.errorlist {
    color: #ffbac7;
    margin: 4px 0 0;
    padding-left: 18px;
}

@keyframes softIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes skeleton {
    to {
        background-position: -220% 0;
    }
}

@media (max-width: 820px) {
    .top-nav {
        display: none;
    }

    .bottom-nav {
        display: grid;
    }

    .site-header {
        justify-content: center;
    }

    .main-shell {
        width: min(100% - 24px, 760px);
        margin-top: 18px;
    }

    .feed {
        height: calc(100vh - 58px);
    }

    .reel-card {
        min-height: calc(100vh - 58px);
        padding: 10px;
    }

    .ad-card {
        min-height: calc(100vh - 92px);
    }

    .form-grid,
    .detail-layout,
    .profile-layout,
    .market-hero {
        grid-template-columns: 1fr;
    }

    .hero-search,
    .hero-stats,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .gallery img {
        min-height: 280px;
    }

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

    h1 {
        font-size: 34px;
    }
}

@media (max-width: 460px) {
    .action-row {
        flex-wrap: wrap;
    }

    .icon-action {
        flex: 1 1 86px;
    }

    .panel {
        padding: 16px;
    }

    .ad-body {
        padding: 14px;
    }

    .step-actions .btn {
        flex: 1 1 100%;
    }
}

/* Classic listing template inspired by compact classifieds layouts. */
.classic-market {
    background: #080808;
    color: #f5f5f5;
}

.classic-market .auth-toolbar {
    background: #1f1f1f;
    border-bottom: 1px solid #111111;
}

.auth-nav {
    width: min(980px, calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 0;
}

.auth-nav a,
.auth-nav .nav-button {
    min-height: 38px;
    padding: 9px 18px;
    border-radius: 4px;
    background: #353535;
    color: #f1f1f1;
    border: 1px solid #2a2a2a;
    font-weight: 700;
}

.classic-market .site-header {
    position: sticky;
    top: 0;
    background: #111111;
    border-bottom: 1px solid #2b2b2b;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    padding: 14px clamp(16px, 4vw, 30px);
}

.classic-market .top-nav {
    display: none;
}

.classic-brand {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    min-width: 94px;
    height: 36px;
    padding: 0 10px;
    border-radius: 18px 18px 8px 8px;
    background: #1b1b1b;
    color: #ffffff;
    border: 1px solid #333333;
    font-size: 13px;
    letter-spacing: 0;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #333333;
    border-radius: 5px;
    background: #1b1b1b;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.classic-market .main-shell {
    width: min(980px, calc(100% - 24px));
    margin-top: 0;
}

.classic-content {
    background: #080808;
    min-height: calc(100vh - 110px);
    padding: 0 0 30px;
}

.breadcrumb-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8b8b8;
    font-weight: 700;
    padding: 16px 0;
}

.pin-small {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a8a8a8;
    box-shadow: 0 7px 0 -2px #a8a8a8;
}

.telegram-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
    gap: 10px;
    margin-bottom: 12px;
}

.telegram-subscribe,
.telegram-admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-align: center;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
}

.telegram-subscribe {
    background: #18aed1;
}

.telegram-admin-link {
    background: #ff00d6;
}

.classic-heading {
    margin-bottom: 14px;
}

.classic-heading h1 {
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.16;
    margin-bottom: 8px;
    color: #ffffff;
}

.classic-heading p {
    color: #bdbdbd;
    margin-bottom: 0;
}

.classic-category-strip {
    padding: 8px 0 14px;
}

.classic-category-strip .category-chip {
    color: #dddddd;
    background: #151515;
    border-color: #333333;
}

.classic-category-strip .category-chip.active,
.classic-category-strip .category-chip:hover {
    border-color: #e600c9;
    color: #e600c9;
}

.classic-listing,
.grid-list,
.listing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.classic-ad-card {
    position: relative;
    overflow: hidden;
    background: #141414;
    border: 4px solid #303030;
    color: #ffffff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.classic-ad-card.is-premium {
    border-color: #ff00d6;
}

.classic-card-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 18px 6px;
    margin: 0;
    color: #e600e6;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.classic-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 1fr);
    align-items: stretch;
}

.classic-card-photo {
    position: relative;
    min-height: 300px;
    background: #202020;
}

.classic-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(65, 65, 65, 0.76);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.classic-card-info {
    padding: 8px 14px 8px 18px;
    display: grid;
    align-content: start;
    gap: 3px;
    font-size: 18px;
}

.info-line {
    min-height: 26px;
    display: grid;
    grid-template-columns: 16px auto 1fr;
    align-items: center;
    gap: 7px;
}

.info-line strong {
    justify-self: start;
    font-weight: 900;
}

.phone-line {
    grid-template-columns: 18px 1fr;
    color: #ffffff;
    font-size: 19px;
}

.phone-line a,
.location-line a {
    color: #2b8fca;
    font-weight: 800;
}

.info-arrow {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid #ef3f35;
}

.phone-icon {
    width: 12px;
    height: 12px;
    border: 3px solid #ef3f35;
    border-top-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(-45deg);
}

.check-mark,
.cross-mark,
.pin-mark {
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.check-mark::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 7px;
    border-left: 4px solid #1ca038;
    border-bottom: 4px solid #1ca038;
    transform: rotate(-45deg);
    top: 2px;
}

.cross-mark::before,
.cross-mark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 1px;
    width: 4px;
    height: 14px;
    background: #ffffff;
}

.cross-mark::before {
    transform: rotate(45deg);
}

.cross-mark::after {
    transform: rotate(-45deg);
}

.pin-mark::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #ef3f35;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.pin-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 4px;
    background: #080808;
    border-radius: 50%;
}

.classic-card-footer {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 8px;
    align-items: center;
    background: #1f1f1f;
    border-top: 1px solid #2e2e2e;
    padding: 10px 14px;
}

.comment-pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #bdbdbd;
    font-weight: 800;
    cursor: pointer;
}

.comment-pill.active {
    color: #e600c9;
}

.classic-detail-btn {
    justify-self: end;
    min-width: 150px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 5px;
    background: #08a923;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}

.is-premium .classic-detail-btn {
    background: #ff00d6;
}

.corner-ribbon {
    position: absolute;
    z-index: 4;
    top: 17px;
    right: -45px;
    width: 170px;
    padding: 7px 0;
    background: #11a018;
    color: #071207;
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.is-premium .corner-ribbon {
    background: #ff00c8;
    color: #ffffff;
}

.classic-market .bottom-nav {
    display: none;
}

.menu-links {
    display: grid;
    gap: 8px;
}

.menu-links a {
    padding: 12px;
    border-radius: 5px;
    background: #1d1d1d;
    color: #ffffff;
    border: 1px solid #333333;
}

.classic-market .panel {
    background: #141414;
    color: #ffffff;
    border: 1px solid #2b2b2b;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
}

.classic-market .panel h1,
.classic-market .panel h2,
.classic-market .panel h3 {
    color: #ffffff;
}

.classic-market .panel h1 {
    font-size: clamp(30px, 5vw, 46px);
}

.classic-market .panel label {
    color: #e4e4e4;
    font-weight: 700;
}

.classic-market .panel input,
.classic-market .panel textarea,
.classic-market .panel select {
    background: #0f0f0f;
    color: #ffffff;
    border: 1px solid #333333;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.classic-market .panel input:focus,
.classic-market .panel textarea:focus,
.classic-market .panel select:focus {
    border-color: #ff00d6;
    box-shadow: 0 0 0 3px rgba(255, 0, 214, 0.14);
}

.classic-market .panel .muted {
    color: #bdbdbd;
}

.classic-market .step-dots span {
    background: #333333;
}

.classic-market .step-dots span.active {
    background: linear-gradient(90deg, #ff00d6, #8f3ffc);
}

.classic-market .btn.primary {
    background: #ff00d6;
    color: #ffffff;
}

.classic-market .btn.ghost {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #333333;
}

.classic-market .btn.danger {
    background: rgba(255, 77, 109, 0.12);
    color: #ffbac7;
    border-color: rgba(255, 77, 109, 0.46);
}

.classic-market .checkbox-line {
    color: #ffffff;
}

.classic-market .errorlist {
    color: #d31b3d;
}

.classic-market .facts span,
.classic-market .contact-box,
.classic-market .price-row span,
.classic-market .token-box {
    background: #1b1b1b;
    color: #ffffff;
    border-color: #333333;
}

.classic-market .profile-layout {
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
    align-items: start;
}

.classic-market .profile-card {
    justify-self: stretch;
}

.classic-market .profile-card h1 {
    word-break: break-word;
}

.classic-market .table-list article,
.classic-market .mini-card,
.classic-market .package-card,
.classic-market .image-delete-form {
    background: #1b1b1b;
    color: #ffffff;
    border-color: #333333;
}

.classic-market .table-list article strong {
    color: #ffffff;
}

.classic-market .profile-card .split-actions .btn {
    min-width: 0;
}

@media (max-width: 700px) {
    .auth-nav {
        justify-content: center;
    }

    .auth-nav a,
    .auth-nav .nav-button {
        padding-inline: 12px;
        font-size: 14px;
    }

    .classic-card-main {
        grid-template-columns: 49% 51%;
    }

    .classic-card-photo {
        min-height: 255px;
    }

    .classic-card-info {
        padding: 5px 8px 8px 10px;
        font-size: 15px;
        gap: 1px;
    }

    .classic-card-title {
        font-size: 18px;
        min-height: 42px;
        padding-left: 10px;
    }

    .phone-line {
        font-size: 15px;
    }

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

    .classic-card-footer .comment-pill:nth-child(3) {
        display: none;
    }

    .classic-detail-btn {
        min-width: 126px;
        min-height: 40px;
        font-size: 14px;
    }

    .corner-ribbon {
        top: 12px;
        right: -55px;
        width: 165px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .classic-market .site-header {
        padding-inline: 12px;
    }

    .classic-brand {
        font-size: 17px;
    }

    .brand-mark {
        min-width: 78px;
        height: 30px;
        font-size: 11px;
        padding: 0 8px;
    }

    .header-icon {
        width: 38px;
        height: 38px;
    }

    .classic-card-info {
        font-size: 13px;
    }

    .phone-line {
        font-size: 13px;
    }

    .classic-card-photo {
        min-height: 230px;
    }
}
