:root {
    --color-navy: #0a1128;
    --color-navy-light: #14213d;
    --color-primary: #d4af37;
    --color-primary-dark: #b8960c;
    --color-secondary: #c9a227;
    --color-secondary-dark: #a88b1e;
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-text: #0a1128;
    --color-muted: #5a6270;
    --color-light: #ffffff;
    --color-border: #e2e8f0;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-danger: #dc2626;
    --color-danger-light: #ffebee;
    --color-warning: #f59e0b;
    --color-warning-light: #fff3cd;
    --color-info: #0ea5e9;
    --color-info-light: #dbeafe;
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-width: 1200px;
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

button {
    font-family: inherit;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header {
    background-color: var(--color-surface);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    gap: 1.5rem;
}

.header__auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header .nav__link {
    color: var(--color-navy);
}

.header .nav__link:hover {
    color: var(--color-primary);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo__img {
    height: 48px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-muted);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.25s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-light);
}

.btn--primary:hover {
    filter: brightness(1.05);
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

.btn--secondary:hover {
    background-color: var(--color-secondary-dark);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

main {
    flex: 1;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.92) 0%, rgba(20, 33, 61, 0.88) 50%, rgba(212, 175, 55, 0.18) 100%),
                url('../images/rknom89jo3s3iklkn14dc4pt29za2eub.png') center/cover no-repeat;
    color: var(--color-light);
    padding: 8rem 0 7rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(212, 175, 55, 0.2), transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.75rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn--lg {
    padding: 0.9rem 2.25rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero__stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
}

.latest-auctions {
    padding: 5rem 0;
    background: var(--color-surface);
}

.latest-auctions__more {
    text-align: center;
    margin-top: 2.5rem;
}

.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.01em;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--color-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.feature h3 {
    color: var(--color-navy);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.feature p {
    color: var(--color-muted);
    line-height: 1.6;
}

.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--color-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 100%;
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.service h3 {
    color: var(--color-navy);
    font-size: 1.25rem;
    font-weight: 700;
}

.page {
    padding: 4rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.page h1 {
    margin-bottom: 1.5rem;
    color: var(--color-navy);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.user-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.user-header h1 {
    margin-bottom: 0.5rem;
}

.user-name {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
}

.user-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

.user-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--color-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.user-tab:hover {
    color: var(--color-navy);
}

.user-tab--active {
    color: var(--color-navy);
    border-bottom-color: var(--color-primary);
}

.user-tab--logout {
    margin-left: auto;
    color: var(--color-danger);
}

.user-tab--logout:hover {
    color: #991b1b;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.user-table thead {
    background: var(--color-navy);
    color: white;
}

.user-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-table td {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
}

.user-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.bid-lot-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bid-lot-number {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 500;
}

.bid-lot-title {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.bid-lot-title:hover {
    text-decoration: underline;
}

.bid-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.bid-status--new {
    background: var(--color-info-light);
    color: #1e40af;
}

.bid-status--active {
    background: var(--color-success-light);
    color: #166534;
}

.bid-status--completed {
    background: #fecaca;
    color: #991b1b;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    padding: 1rem;
    background: var(--color-surface);
    border-left: 4px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.notification-item--unread {
    border-left-color: var(--color-primary);
    background: rgba(212, 175, 55, 0.05);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification-message {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.notification-date {
    font-size: 0.85rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--color-muted);
    background: var(--color-surface);
    border-radius: var(--radius);
}

.catalog-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-form {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-navy);
}

.filter-form select {
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    color: var(--color-text);
    cursor: pointer;
}

.filter-form .btn {
    margin-top: 0.5rem;
}

.auction-card__details {
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.auction-card__info {
    margin: 0.35rem 0;
    color: var(--color-text);
    font-size: 0.85rem;
    line-height: 1.4;
}

.auction-card__info strong {
    color: var(--color-navy);
    font-weight: 600;
    margin-right: 0.25rem;
}

.auction-card__category {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.auction-card__lot-number {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.app-row--approved {
    background-color: var(--color-success-light);
    border-left: 4px solid var(--color-success);
}

.app-row--rejected {
    background-color: var(--color-danger-light);
    border-left: 4px solid var(--color-danger);
}

.auction-help-offer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.auction-help-offer p {
    margin: 0.5rem 0;
    color: #333;
}

.auction-help-offer strong {
    color: var(--color-navy);
    font-size: 1.1rem;
}

.page p {
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.page li {
    margin-bottom: 0.5rem;
}

.footer {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #f5d67b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.footer__subtitle {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-light);
    font-size: 1rem;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--color-light);
    transform: translateX(3px);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger--active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__burger--active span:nth-child(2) {
    opacity: 0;
}

.header__burger--active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .header__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 0;
        position: relative;
    }

    .header__burger {
        display: flex;
        margin-left: auto;
    }

    .nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .nav--open {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
        align-items: flex-start;
        padding-bottom: 0.5rem;
    }

    .nav__link {
        display: block;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    .header__auth {
        gap: 0.5rem;
        flex-wrap: wrap;
        order: 2;
    }

    .header__auth .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero__stats {
        gap: 1rem;
    }

    .hero__stat-num {
        font-size: 1.25rem;
    }

    .hero__stat-divider {
        display: none;
    }

    .features__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }

    .features,
    .services {
        padding: 3rem 0;
    }

    .latest-auctions {
        padding: 3rem 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .auctions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .auction-card {
        padding: 1.25rem;
    }

    .auction-card__image {
        height: 200px;
    }

    .page {
        padding: 2rem 1rem;
    }

    .page h1 {
        font-size: 1.75rem;
    }

    .application-form,
    .filter-form {
        padding: 1.25rem;
        max-width: 100%;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel__slide img {
        height: 260px;
    }

    .carousel__arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }

    .countdown {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .countdown__item {
        min-width: 38px;
    }

    .countdown__num {
        font-size: 1.2rem;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.6rem 0.5rem;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-sidebar {
        padding: 0.75rem;
    }

    .admin-sidebar__nav {
        gap: 0.25rem;
    }

    .admin-sidebar__item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .auth-form {
        padding: 2rem 1rem;
    }

    .auth-form h1 {
        font-size: 1.5rem;
    }

    .toast {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        max-width: none;
        font-size: 0.9rem;
    }

    .btn--lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .admin-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    .admin-image-item .admin-thumb {
        height: 60px;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox__close {
        top: 0.5rem;
        right: 1rem;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .auction-card {
        padding: 1rem;
    }

    .auction-card h2 {
        font-size: 1.1rem;
    }

    .auction-card__image {
        height: 180px;
    }

    .countdown--small {
        flex-wrap: wrap;
    }

    .countdown--small .countdown__item {
        min-width: 32px;
    }

    .countdown--small .countdown__num {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }

    .header__auth {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .header__auth .btn {
        flex: 1;
        max-width: 160px;
    }

    .page h1 {
        font-size: 1.5rem;
    }

    .page h2 {
        font-size: 1.25rem;
    }

    .admin-sidebar__nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar__item {
        white-space: nowrap;
    }
}

.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.auction-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.auction-card h2 {
    color: var(--color-navy);
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.auction-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.auction-card .btn {
    margin-top: auto;
}

.auction-card__price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    background: rgba(212, 175, 55, 0.12);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    width: 100%;
}

.auction-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.auction-status--active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.auction-status--closed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.countdown__num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-danger);
    line-height: 1;
}

.countdown__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
}

.countdown__sep {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-danger);
    margin: 0 0.15rem;
}

.countdown__expired {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-danger);
}

.countdown--small {
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.countdown--small .countdown__num {
    font-size: 1rem;
}

.countdown--small .countdown__label {
    font-size: 0.6rem;
}

.countdown--small .countdown__sep {
    font-size: 0.9rem;
}

.application-form,
.filter-form {
    display: grid;
    gap: 1.25rem;
    max-width: 640px;
    margin-top: 2rem;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    max-width: 100%;
}

.application-form label,
.filter-form label {
    display: grid;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-navy);
}

.application-form label.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

.application-form label.checkbox input[type="checkbox"] {
    width: auto;
    min-width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    accent-color: var(--color-primary);
}

.application-form label.checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.application-form input,
.application-form textarea,
.filter-form select {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-form input:focus,
.application-form textarea:focus,
.filter-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.95rem;
}

.admin-table th {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary-dark) 100%);
    color: var(--color-light);
    font-weight: 600;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--color-bg);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn--danger {
    background-color: var(--color-danger);
    color: var(--color-light);
}

.btn--danger:hover {
    background-color: #b91c1c;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 4.5rem);
}

.admin-sidebar {
    width: 260px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-sidebar__item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-sidebar__item:hover,
.admin-sidebar__item--active {
    background: var(--color-primary);
    color: var(--color-light);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
    }

    .admin-sidebar__nav {
        flex-direction: row;
        overflow-x: auto;
    }
}

.auth-page {
    display: flex;
    min-height: calc(100vh - 4.5rem);
}

.auth-form {
    flex: 1;
    padding: 3rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form h1 {
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.auth-form > p {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.auth-form > p a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.auth-promo {
    flex: 1;
    position: relative;
    display: none;
    overflow: hidden;
    background: var(--color-navy);
}

@media (min-width: 768px) {
    .auth-promo {
        display: flex;
    }
}

.auth-promo__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.auth-promo__content {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    padding: 2.5rem;
    color: var(--color-light);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.2));
    width: 100%;
}

.auth-promo__content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.auth-promo__content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 32rem;
}

.auth-promo__content ul {
    list-style: disc;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.inline-form {
    display: inline-block;
    margin-right: 0.5rem;
}

.admin-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.auction-card__image-link {
    display: block;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius);
}

.auction-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card__image-link:hover .auction-card__image {
    transform: scale(1.03);
}

.auction-image {
    display: block;
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    padding: 2rem;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--color-light);
    font-size: 2.5rem;
    text-decoration: none;
    line-height: 1;
}

.admin-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 720px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.carousel__track {
    display: flex;
    transition: transform 0.35s ease;
}

.carousel__slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel__slide a {
    display: block;
}

.carousel__slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__arrow--prev {
    left: 1rem;
}

.carousel__arrow--next {
    right: 1rem;
}

.carousel__dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.carousel__dot--active {
    background: var(--color-light);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.preview-carousel {
    position: relative;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    display: none;
}

.preview-carousel__track {
    display: flex;
    transition: transform 0.35s ease;
}

.preview-carousel__slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    text-align: center;
}

.preview-carousel__slide img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.preview-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-carousel__arrow--prev {
    left: 0.5rem;
}

.preview-carousel__arrow--next {
    right: 0.5rem;
}

.preview-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
}

.preview-carousel__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.3);
    border: none;
    cursor: pointer;
}

.preview-carousel__dot--active {
    background: var(--color-primary);
}

.badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    border-radius: 9999px;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    line-height: 1;
}

.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 320px;
}

.notifications-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item--unread {
    border-left: 4px solid var(--color-primary);
}

.notification-date {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.error {
    color: var(--color-danger);
    margin-bottom: 1rem;
}

.admin-images-edit {
    margin-bottom: 1.5rem;
}

.admin-images-edit h3 {
    margin-bottom: 0.75rem;
}

.admin-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.admin-image-item {
    text-align: center;
}

.admin-image-item .admin-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* Mobile-first deep enhancements */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }

    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }

    .application-form input,
    .application-form select,
    .application-form textarea,
    .filter-form input,
    .filter-form select,
    .filter-form textarea,
    .auth-form input,
    .auth-form select,
    .auth-form textarea {
        min-height: 48px;
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }

    .header__inner {
        position: relative;
        z-index: 101;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-navy-light);
        padding: 1.5rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: var(--shadow-lg);
        z-index: 100;
    }

    .nav--open {
        display: flex;
    }

    .nav__list {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .nav__item {
        width: 100%;
    }

    .nav__link,
    .header .nav__link {
        padding: 0.875rem 0;
        font-size: 1.125rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
        width: 100%;
        color: var(--color-primary);
    }

    .nav__link:hover,
    .header .nav__link:hover {
        color: var(--color-light);
    }

    .nav__link::after {
        display: none;
    }

    .header__auth {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        order: 2;
    }

    .header__auth .btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero__actions {
        gap: 0.75rem;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: none;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__stat-divider {
        display: none;
    }

    .section-title {
        font-size: 1.625rem;
        margin-bottom: 2rem;
    }

    .auctions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .auction-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto auto 1fr;
        gap: 0.5rem 1rem;
        align-items: start;
        text-align: left;
        padding: 1rem;
    }

    .auction-card__image-link {
        grid-row: 1 / 5;
        margin-bottom: 0;
    }

    .auction-card__image {
        height: 120px;
        border-radius: var(--radius-sm);
    }

    .auction-card h2 {
        grid-column: 2;
        grid-row: 1;
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .auction-card h2 + p {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.9rem;
    }

    .auction-card__price {
        grid-column: 2;
        grid-row: 3;
        font-size: 1rem;
        padding: 0.35rem 0.75rem;
        width: auto;
    }

    .auction-card p:has(.auction-status) {
        grid-column: 2;
        grid-row: 4;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .auction-card .countdown--small {
        grid-column: 1 / 3;
        grid-row: 5;
        margin: 0.25rem 0;
    }

    .auction-card .btn {
        grid-column: 1 / 3;
        grid-row: 6;
        width: 100%;
        margin-top: 0.5rem;
    }

    .latest-auctions__more {
        margin-top: 2rem;
    }

    .latest-auctions__more .btn {
        width: 100%;
    }

    .features,
    .services {
        padding: 3rem 0;
    }

    .features__grid,
    .services__grid {
        gap: 1rem;
    }

    .feature,
    .service {
        padding: 1.5rem;
        text-align: left;
    }

    .page {
        padding: 1.5rem 1rem;
    }

    .page h1 {
        font-size: 1.625rem;
        margin-bottom: 1rem;
    }

    .page h2 {
        font-size: 1.25rem;
    }

    .carousel {
        border-radius: var(--radius-sm);
    }

    .carousel__slide img {
        height: 240px;
    }

    .carousel__arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .application-form,
    .filter-form {
        padding: 1rem;
        gap: 1rem;
    }

    .application-form label,
    .filter-form label {
        font-size: 0.95rem;
    }

    .application-form textarea,
    .filter-form textarea {
        min-height: 120px;
    }

    .countdown {
        padding: 0.75rem;
        gap: 0.15rem;
        flex-wrap: wrap;
    }

    .countdown__item {
        min-width: 36px;
    }

    .countdown__num {
        font-size: 1.25rem;
    }

    .countdown__label {
        font-size: 0.65rem;
    }

    .countdown__sep {
        font-size: 1rem;
    }

    .admin-layout {
        min-height: auto;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-content h1 {
        font-size: 1.5rem;
    }

    .admin-content h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .admin-sidebar {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .admin-sidebar__nav {
        gap: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .admin-sidebar__item {
        padding: 0.625rem 1rem;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form label,
    .filter-form select,
    .filter-form button {
        width: 100%;
    }

    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .admin-table thead,
    .admin-table tbody {
        display: table;
        width: 100%;
        min-width: 720px;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .admin-table .inline-form {
        display: block;
        margin: 0 0 0.35rem 0;
    }

    .admin-table .inline-form:last-child {
        margin-bottom: 0;
    }

    .admin-table .inline-form .btn,
    .admin-table .btn {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .admin-images {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .admin-images img:nth-child(n+2) {
        display: none;
    }

    .admin-thumb {
        width: 48px;
        height: 48px;
    }

    .admin-images-edit {
        padding: 1rem;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        margin-bottom: 1.5rem;
    }

    .admin-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.75rem;
    }

    .admin-image-item .admin-thumb {
        height: 80px;
    }

    .admin-image-item .btn {
        width: 100%;
        margin-top: 0.35rem;
    }

    .preview-carousel {
        max-width: 100%;
    }

    .preview-carousel__slide img {
        max-height: 180px;
    }

    .auth-form {
        padding: 2rem 1rem;
    }

    .auth-form h1 {
        font-size: 1.5rem;
    }

    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer__inner {
        gap: 1.5rem;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .modal__box {
        width: 95%;
        max-width: calc(100vw - 2rem);
        padding: 1.5rem;
        max-height: 95vh;
    }

    .modal__close {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 1.25rem;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .lk-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .lk-header__actions {
        width: 100%;
    }

    .lk-header__actions .btn {
        flex: 1;
        min-width: 0;
    }

    .lk-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    .lk-tab {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .auction-status-closed {
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .auction-status-closed__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .auction-status-closed__text {
        font-size: 1.25rem;
    }

    .auction-status-closed__desc {
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-card h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-card .btn {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }

    .user-table {
        font-size: 0.8rem;
    }

    .user-table th,
    .user-table td {
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .auction-card {
        grid-template-columns: 100px 1fr;
        gap: 0.4rem 0.75rem;
        padding: 0.875rem;
    }

    .auction-card__image {
        height: 100px;
    }

    .auction-card h2 {
        font-size: 0.95rem;
    }

    .auction-card__price {
        font-size: 0.95rem;
        padding: 0.25rem 0.5rem;
    }

    .auction-card p:has(.auction-status) {
        font-size: 0.85rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero__title {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.95rem;
    }

    .header__auth .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .page {
        padding: 1.25rem 1rem;
    }

    .carousel__slide img {
        height: 200px;
    }

    .countdown__item {
        min-width: 30px;
    }

    .countdown__num {
        font-size: 1.1rem;
    }

    .countdown__label {
        font-size: 0.6rem;
    }

    .countdown__sep {
        font-size: 0.9rem;
    }

    .modal__box {
        width: 98%;
        padding: 1.25rem;
    }

    .modal__box h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .modal__box p {
        font-size: 0.9rem;
    }

    .lk-header {
        padding-bottom: 1rem;
    }

    .lk-username {
        font-size: 1rem;
    }

    .lk-contacts {
        font-size: 0.85rem;
    }

    .lk-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .auction-status-closed {
        padding: 1.25rem;
        gap: 0.5rem;
    }

    .auction-status-closed__icon {
        width: 2rem;
        height: 2rem;
    }

    .auction-status-closed__text {
        font-size: 1.1rem;
    }

    .auction-status-closed__desc {
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1rem;
        border-radius: var(--radius, 8px);
    }

    .service-card h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .service-card .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .admin-table {
        font-size: 0.75rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.35rem;
    }

    .user-table {
        font-size: 0.7rem;
    }

    .user-table th,
    .user-table td {
        padding: 0.3rem;
    }

    .application-form-wrap {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .auction-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .auction-actions .btn {
        width: 100%;
    }

    .lk-header__actions {
        gap: 0.5rem;
    }

    .lk-header__actions .btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .auction-card:hover {
        transform: none;
    }

    .auction-card__image-link:hover .auction-card__image {
        transform: none;
    }

    .feature:hover {
        transform: none;
    }

    .footer a:hover {
        transform: none;
    }
}

/* Safe area for modern phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .toast {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.modal__box {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    z-index: 1;
}

.modal__box--success {
    text-align: center;
}

.modal__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

.modal__close:hover {
    color: #111;
}

.modal__box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Winner buttons */
.btn--winner {
    background: var(--color-success);
    color: var(--color-light);
    border-color: var(--color-success);
}

.btn--winner:hover {
    background: #15803d;
    border-color: #15803d;
}

.btn--winner-silent {
    background: #9ca3af;
    color: #fff;
    border-color: #9ca3af;
}

.btn--winner-silent:hover {
    background: #6b7280;
    border-color: #6b7280;
}

.btn--winner-highlight {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.4);
}

/* App row winner */
.app-row--winner {
    background-color: var(--color-success-light);
    border-left: 4px solid var(--color-success);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge--new { background: var(--color-info-light); color: #1e40af; }
.status-badge--approved { background: var(--color-success-light); color: #1b5e20; }
.status-badge--winner { background: var(--color-success-light); color: #14532d; }
.status-badge--rejected { background: var(--color-danger-light); color: #b71c1c; }

/* Hidden badge */
.badge--hidden {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Auction actions */
.auction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 1.5rem 0;
}

.auction-closed-note {
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.application-form-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

/* Admin actions cell */
.actions-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.actions-cell .inline-form {
    margin: 0;
}

/* Personal account (LK) */
.lk-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    flex-wrap: wrap;
}

.lk-header__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lk-username {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy, #1a2e44);
    margin: 0.25rem 0 0;
}

.lk-contacts {
    color: #6b7280;
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.lk-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
    padding-bottom: 0;
}

.lk-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s, border-color 0.2s;
}

.lk-tab--active,
.lk-tab:hover {
    color: var(--color-navy, #1a2e44);
    border-bottom-color: var(--color-gold, #f59e0b);
}

.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-danger);
    color: var(--color-light);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: #ffffff;
    border: 2px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #d4af37), var(--color-secondary, #c9a227));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
    border-color: var(--color-primary, #d4af37);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-navy, #0a1128);
    line-height: 1.3;
}

.service-card p {
    color: #5a6270;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.service-card .btn {
    align-self: flex-start;
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* Auction detail */
.auction-description {
    background: #f8fafc;
    border-left: 3px solid var(--color-gold, #f59e0b);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
    margin: 1rem 0 1.5rem;
}

.auction-status-closed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid var(--color-danger);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.auction-status-closed__icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-danger);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auction-status-closed__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-danger);
    margin: 0;
}

.auction-status-closed__desc {
    font-size: 1rem;
    color: #7f1d1d;
    margin: 0;
}
