nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--bg-surface);
    z-index: 1000;
    gap: var(--spacing-sm);

    padding: var(--spacing-sm) var(--spacing-md);
}

@media (min-width: 768px) {
    nav .container {
        gap: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-2xl);
    }
}

nav a {
    text-decoration: none;
    color: var(--text-ink);

    padding: var(--spacing-md) var(--spacing-sm);
    transition: color var(--transition-slow);

    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
}

nav a:hover {
    color: var(--brand-primary);
    background-color: var(--bg-subtle);
}

@media (min-width: 768px) {
    nav a {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

.site-header {
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid #141414;
}

.header-bar {
    width: 100%;
}

.header-content {
    width: 100%;
    max-width: var(--layout-shell-desktop);
    margin: 0 auto;
    padding: var(--spacing-md) var(--header-padding-mobile);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: var(--header-min-height-mobile);
    gap: 16px;

    width: 100%;
    box-sizing: border-box;

    background-color: transparent;
}

@media (min-width: 768px) {
    .header-content {
        padding: var(--spacing-md) var(--header-padding-tablet);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .header-content {
        min-height: var(--header-min-height-desktop);
        padding: var(--spacing-md) var(--header-padding-desktop);
        gap: 24px;

    }
}

@media (min-width: 1440px) {
    .header-content {

        gap: 32px;
    }
}

@media (min-width: 1080px) and (max-width: 1439px) {
    .header-content {
        gap: 28px;
    }
}

@media (min-width: 720px) and (max-width: 1079px) {
    .header-content {
        gap: 20px;
    }
}

@media (max-width: 719px) {
    .header-content {

        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;

        align-content: flex-start;
    }

    .nav-links {

        order: 3;

        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 8px;
    }

    .logo-wrap {
        order: 1;
        flex-shrink: 0;
    }

    .nav-right {
        order: 2;
        flex-shrink: 0;
        flex-basis: auto;
    }

    .avatar-dropdown {
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: var(--spacing-md) 12px;
        gap: 8px;
    }

    .nav-links {
        gap: 8px;

        justify-content: center;
        margin-top: 12px;
    }

    .tab {
        padding: 8px 10px;
        font-size: 14px;

        min-height: 44px;
        min-width: 44px;

        white-space: nowrap;
    }

    .tab-icon {

        flex-direction: column;
        gap: 2px;
        padding: 6px 8px;
    }

    .tab-icon span {
        font-size: 12px;
        line-height: 1;
    }

    .lang-pill {
        padding: 8px 10px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
    }
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.logo-sub {
    font-family: 'Jura', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-ink);
}

@media (min-width: 768px) {
    .logo-wrap {
        gap: 2px;
    }

    .logo-image {
        width: 48px;
        height: 48px;
    }

    .logo-sub {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    .logo-wrap {
        gap: 2px;
    }

    .logo-image {
        width: 56px;
        height: 56px;
    }

    .logo-sub {
        font-size: 14px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    justify-content: flex-start;
}

@media (max-width: 767px) {
    .nav-links {

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;

        margin-top: 8px;
        padding: 8px 0;
    }

    .tab {

        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;

        justify-content: center;
        text-align: center;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tab-icon {

        flex-direction: column;
        gap: 4px;
        padding: 8px 10px;
        min-width: 60px;

    }

    .tab-icon span {
        font-size: 12px;
        line-height: 1.2;
    }

    .tab-icon img {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 768px) {
    .nav-links {
        gap: 24px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: auto;
        margin-top: 0;
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .nav-links {
        gap: 48px;
    }
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-ink);
    text-decoration: none;
    font-family: 'Jura', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: 44px;

    min-width: 44px;

    box-sizing: border-box;

    text-align: center;
}

@media (min-width: 768px) {
    .tab {
        gap: 8px;
        padding: 10px 16px;
        font-size: 18px;
        line-height: 1.3;
        min-height: auto;
    }
}

@media (min-width: 1200px) {
    .tab {
        padding: 10px 16px;
        font-size: 20px;
    }
}

.tab-active {
    background: var(--text-ink);
    color: var(--bg-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

.tab.tab-active:hover,
.tab.tab-active:active,
.tab.tab-active:focus,
.tab.tab-active:focus-visible {
    background: var(--text-ink);
    color: var(--bg-surface);
}

.tab:hover {
    background: var(--bg-subtle);
}

.tab:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    background: var(--bg-subtle);
}

.tab:focus:not(:focus-visible) {
    outline: none;
}

.tab:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    background: var(--bg-subtle);
}

.tab.tab-active:focus-visible {
    outline-color: var(--brand-primary);
}

.tab-icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.lang-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'Jura', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    line-height: 1;
    border: 1px solid transparent;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;

    min-width: 44px;
}

@media (min-width: 768px) {
    .lang-pill {
        padding: 0 8px;
        font-size: 18px;
        line-height: 1.3;
        height: 32px;
        min-height: auto;
        min-width: auto;
        border: none;
    }
}

@media (min-width: 1200px) {
    .lang-pill {
        padding: 0 8px;
        font-size: 20px;
    }
}

.lang-pill.active {
    background: var(--text-ink);
    color: var(--bg-surface);
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

.lang-pill.inactive {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
}

.lang-pill.active:hover {
    background: var(--text-ink);
    color: var(--bg-surface);
}

.lang-pill:hover {
    box-shadow: none;
    transform: none;
}

.lang-pill.inactive:hover {
    background: transparent;
    color: var(--text-ink);
}

.lang-pill:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.lang-pill:focus:not(:focus-visible) {
    outline: none;
}

.lang-pill:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.lang-pill.active:focus,
.lang-pill.active:focus-visible {
    outline-color: var(--bg-surface);
}

.lang-pill-zh {
    font-weight: 300;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .nav-right {
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    .nav-right {
        gap: 1rem;
    }
}

.steam-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .steam-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1200px) {
    .steam-avatar {
        width: 2rem;

        height: 2rem;

    }
}

.avatar-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.avatar-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    z-index: 1;
    pointer-events: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-normal);
    z-index: 1000;

    margin-top: 8px;
}

.avatar-dropdown:hover .dropdown-menu,
.avatar-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0ms;
}

.dropdown-menu {
    transition-delay: 300ms;
}

.avatar-dropdown:hover .dropdown-menu,
.avatar-dropdown:focus-within .dropdown-menu {
    transition-delay: 0ms;
}

.dropdown-menu a,
.dropdown-menu button {
    display: block;
    padding: 12px 16px;
    color: var(--text-ink);
    text-decoration: none;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    transition: background-color var(--transition-fast);

    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
}

.dropdown-menu .logout-form {
    margin: 0;
}

.dropdown-menu button {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: var(--bg-subtle);
    color: var(--text-ink);
}

.dropdown-menu a:focus,
.dropdown-menu button:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: -2px;
    background: var(--bg-subtle);
}

.dropdown-menu a:first-child,
.dropdown-menu button:first-child,
.dropdown-menu .logout-form:first-child button {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dropdown-menu a:last-child,
.dropdown-menu button:last-child,
.dropdown-menu .logout-form:last-child button {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.dropdown-menu a:only-child,
.dropdown-menu button:only-child,
.dropdown-menu .logout-form:only-child button {
    border-radius: var(--border-radius);
}

.dropdown {
    position: relative;
    width: 310px !important;
    margin-bottom: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

@media (min-width: 768px) {
    .dropdown {
        width: 300px !important;
        max-width: 300px;
        min-width: 300px;
    }
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-colors);
    position: relative;
    min-height: 48px;
    box-sizing: border-box;

    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    border: none;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.dropdown-toggle::after {
    content: '▼';
    color: var(--text-ink);
    font-size: 12px;
    margin-left: var(--spacing-sm);
    transition: transform var(--transition-normal);
    opacity: 0.6;
}

.dropdown-toggle:hover {
    box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.dropdown.open .dropdown-toggle {
    box-shadow: inset 0 0 0 1px var(--brand-primary), inset 0 -1px 0 0 var(--bg-surface);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-toggle>span {
    font-weight: var(--font-weight-medium);
    color: var(--text-ink);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;

}

.dropdown-toggle>div {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 100px;
    justify-content: flex-end;
    height: 20px;
}

.dropdown-content {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: none;
    box-shadow: inset 0 0 0 1px var(--brand-primary), var(--shadow-md);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;

    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.dropdown-content .option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-colors);
    border-bottom: 1px solid var(--border-subtle);
    min-height: 48px;
    box-sizing: border-box;
    width: 100%;
    background: var(--bg-surface);
}

.dropdown-content .option:hover {
    background: var(--bg-subtle);
}

.dropdown-content .option:last-child {
    border-bottom: none;
}

.dropdown-content .option>span:first-child {
    font-weight: var(--font-weight-medium);
    color: var(--text-ink);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: var(--spacing-md);
    min-width: 0;

}

.dropdown-content .option>.option-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
    white-space: nowrap;
    justify-content: flex-end;
    color: var(--text-ink);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
}

.dropdown-content .option>div {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
    white-space: nowrap;
    justify-content: flex-end;
    height: 20px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    min-width: 45px;
    text-align: right;
    display: inline-block;
    vertical-align: middle;
}

.current-price {
    color: var(--text-ink);
    font-weight: var(--font-weight-semibold);
    min-width: 45px;
    text-align: right;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-toggle .old-price,
.dropdown-content .option-price .old-price {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
    text-decoration-thickness: 0.08em;
    text-decoration-color: rgba(126, 131, 156, 0.85);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .dropdown-content {
        top: 58px;
    }
}

@media (max-width: 767px) {
    .dropdown {
        width: 100%;
        max-width: none;
        min-width: auto;
    }

    .dropdown-toggle,
    .dropdown-content .option {
        min-height: 48px;
        padding: var(--spacing-md);
        width: 100%;
    }

    .dropdown-toggle>span,
    .dropdown-content .option>span {
        font-size: var(--font-size-sm);
        flex: 1;
    }

    .dropdown-toggle>div,
    .dropdown-content .option>div {
        flex-shrink: 0;
    }

    .old-price {
        font-size: var(--font-size-sm);
    }

    .current-price {
        font-size: var(--font-size-sm);
    }

    .dropdown-toggle::after {
        font-size: 10px;
    }

    .dropdown-content {
        width: 100%;
        left: 0;
        right: 0;
    }
}

.form-input {
    width: 100%;
    max-width: 600px;
    padding: var(--spacing-md);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: var(--bg-surface);
    color: var(--text-ink);
    transition: var(--transition-colors);
    box-sizing: border-box;
    min-height: var(--touch-target-min);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(87, 125, 251, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--brand-primary);
    color: var(--bg-surface);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-colors);
    min-height: var(--touch-target-min);
    box-sizing: border-box;
    margin-top: var(--spacing-lg);
}

.form-button:hover {
    background: var(--brand-primary);
    filter: brightness(0.95);
    transform: none;
    box-shadow: none;
}

.form-button .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    flex: 0 0 16px;
    margin-right: 0;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .form-button .loading-spinner {
        animation: spin 1s steps(12, end) infinite !important;
        animation-duration: 1s !important;
        animation-iteration-count: infinite !important;
    }
}

.error-message {
    color: var(--status-danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
}

.checkbox-wrapper label {
    font-size: var(--font-size-base);
    color: var(--text-ink);
    cursor: pointer;
}

.payment-method-selector {
    margin: var(--spacing-xl) 0;
}

.payment-method-selector h3 {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-ink);
}

.payment-section {
    margin-top: var(--spacing-xl);
}

.payment-section h3 {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-ink);
    text-align: center;
}

.payment-section-header {
    cursor: pointer;
    user-select: none;
}

.payment-section-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
}

.payment-section-toggle {
    display: none;
}

.payment-section-content {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-section-content-inner {
    overflow: hidden;
    margin: 0;
    padding: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.payment-section.collapsed .payment-section-content {
    grid-template-rows: 0fr;
}

.payment-section.collapsed .payment-section-content-inner {
    opacity: 0;
}

.payment-section.collapsed .payment-section-header h3 {
    margin-bottom: 0;
}

.payment-section-header:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .payment-section-content {
        transition: none;
    }
}

img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

.payment-method-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition-colors);
    background: var(--bg-surface);
}

.payment-method-option:hover {
    border-color: var(--brand-primary);
    background: var(--bg-subtle);
}

.payment-method-option.selected {
    border-color: var(--brand-primary);
    background: var(--bg-subtle);
    box-shadow: 0 0 0 2px rgba(87, 125, 251, 0.2);
}

.method-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.method-icon {
    width: 24px;
    height: 24px;
    color: var(--text-ink);
    flex-shrink: 0;
}

.method-icon svg {
    transition: all 0.2s ease;
}

.method-icon .payment-icon {
    transition: filter 0.2s ease;
}

.payment-method-option.selected .method-icon .payment-icon {
    filter: none;
}

.payment-method-option:hover .method-icon .payment-icon {
    filter: none;
}

.payment-method-option.selected:hover .method-icon .payment-icon {
    filter: none;
}

.method-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.method-name {
    font-weight: var(--font-weight-medium);
    color: var(--text-ink);
}

.method-fee {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.method-total {
    flex-shrink: 0;
}

.total-amount {
    font-weight: var(--font-weight-semibold);
    color: var(--text-ink);
    font-size: var(--font-size-lg);
}

@media (max-width: 767px) {
    .payment-method-option {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
        min-height: var(--touch-target-min);
        padding: var(--spacing-sm) var(--spacing-md);
        box-sizing: border-box;
    }

    .method-info {
        gap: var(--spacing-sm);
        min-width: 0;
        flex: 1 1 auto;
        width: auto;
    }

    .method-text {
        min-width: 0;
    }

    .method-name {
        font-size: var(--font-size-sm);
    }

    .method-fee {
        font-size: var(--font-size-xs);
    }

    .method-name,
    .method-fee {
        overflow-wrap: anywhere;
    }

    .method-total {
        width: auto;
        margin-left: var(--spacing-sm);
        padding-top: 0;
        border-top: 0;
        text-align: right;
        align-items: flex-end;
        flex: 0 0 auto;
    }

    .total-amount {
        font-size: var(--font-size-base);
    }
}

.alert {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.alert h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.alert ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.alert li {
    margin-bottom: var(--spacing-xs);
}

.alert-success {
    background: var(--status-success-weak);
    border-color: var(--status-success);
    color: var(--status-success-strong);
}

.alert-error {
    background: var(--status-danger);
    border-color: var(--status-danger-strong);
    color: var(--bg-surface);
}

.alert-error h3 {
    color: var(--bg-surface);
}

.alert-error a {
    color: var(--bg-surface);
    text-decoration: underline;
}

.alert-error a:hover {
    color: var(--bg-surface);
    opacity: 0.8;
}

.site-footer {

    background: #141414;
    padding: 24px var(--header-padding-desktop);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: auto;
    margin-top: auto;

    position: relative;
    z-index: 1;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.copyright-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;
    color: #F3F3F3;

    text-align: center;
    margin: 0;
}

.version-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 130%;
    color: #7E839C;

    padding: 4px 8px;
    background: rgba(243, 243, 243, 0.1);
    border-radius: 4px;
}

@media (max-width: 767px) {
    .site-footer {
        padding: 16px var(--header-padding-mobile);
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
    }

    .copyright-text {
        font-size: 14px;
    }

    .version-tag {
        font-size: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .site-footer {
        padding: 24px var(--header-padding-tablet);
    }
}

.store-card {
    width: 310px;

    background: var(--bg-subtle);

    border: 1px solid var(--text-ink);

    border-radius: 8px;

    box-shadow: none;
    overflow: visible;

    position: relative;

    display: flex;
    flex-direction: column;
}

.owned-card {
    width: 310px;
    background: var(--bg-subtle);
    border: 1px solid var(--text-ink);
    border-radius: 8px;
    box-shadow: none;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
}

.owned-card--inactive {
    border-color: var(--text-muted);
}

.owned-card--inactive .owned-card__media {
    opacity: 0.88;
    filter: saturate(0.9) contrast(0.94) brightness(0.97);
}

.owned-card--inactive .owned-card__title-row,
.owned-card--inactive .owned-card__rule,
.owned-card--inactive .owned-card__meta {
    opacity: 0.72;
}

.owned-card__state-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--error-color, #dc3545);
    color: var(--bg-surface, #ffffff);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.owned-card__state-badge--inactive {
    background: var(--text-muted);
}

.owned-card__state-text {
    display: block;
    white-space: nowrap;
}

.owned-card__media {
    padding: 16px 16px 0 16px;
    background: var(--bg-subtle);
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.owned-card__img {
    display: block;
    width: 279px;
    height: 209px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
}

.owned-card__img.loaded {
    opacity: 1;
}

.owned-card__content {
    background: var(--bg-subtle);
    padding: 16px;
    position: relative;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.owned-card__title-row {
    position: relative;
    display: block;
    margin-bottom: 16px;
}

.owned-card__title {
    font-family: 'Jura', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    max-width: 215px;
    line-height: 130%;
    padding-right: 70px;
}

.owned-card__badge {
    position: absolute;
    top: 0;
    left: 232px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--text-ink);
    color: var(--bg-surface);
    padding: 4px;
    border-radius: 4px 0 0 4px;
    font-weight: 400;
    font-size: 13px;
    width: 62px;
    height: 24px;
    box-sizing: border-box;
    justify-content: center;
    z-index: 2;
}

.owned-card__badge .icon {
    background-color: var(--bg-surface);
}

.owned-card__rule {
    height: 1px;
    background: var(--border-subtle);
    margin: 0 0 16px 0;
}

.owned-card__meta {
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.owned-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.owned-card__meta-row dt {
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 130%;
}

.owned-card__meta-row dd {
    margin: 0;
    color: var(--text-ink);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 130%;
    text-align: right;
}

.owned-card__cta {
    display: flex;
    align-items: stretch;
    padding: 0;
    width: 100%;
    min-height: 27px;
    margin-top: auto;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.owned-card__details {
    background: var(--brand-primary);
    color: var(--bg-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 130%;
    padding: 8px;
    gap: 8px;
    flex: 1;
    width: 100%;
    min-height: 27px;
    border: 0;
    box-sizing: border-box;
    border-radius: 8px;
}

.owned-card__details:hover {
    background: var(--brand-primary);
    text-decoration: none;
    color: var(--bg-surface);
    box-shadow: none;
    filter: none;
}

.owned-card--inactive .owned-card__details {
    background: var(--brand-primary);
    color: var(--bg-surface);
}

.owned-card--inactive .owned-card__details:hover {
    background: var(--brand-primary);
    color: var(--bg-surface);
    box-shadow: none;
}

@media (max-width: 719px) {
    .owned-card {
        width: 100%;
        max-width: 310px;
        margin: 0 auto;
    }

    .owned-card__img {
        width: 100%;
        height: 209px;
    }
}

.store-card--inactive {
    opacity: 0.55;
    filter: grayscale(0.35);
}
.store-card--inactive .store-card__buy {
    background: var(--bg-muted);
    color: var(--text-muted);
    cursor: pointer;
}
.store-card--inactive .store-card__price {
    color: var(--text-muted);
}

.store-card__media {
    padding: 16px 16px 0 16px;

    background: var(--bg-subtle);

    border-radius: 8px 8px 0 0;

    flex-shrink: 0;
}

.store-card__img {
    display: block;
    width: 279px;

    height: auto;
    aspect-ratio: 4 / 3;

    object-fit: cover;
    border-radius: 4px;

    opacity: 0;
}

.store-card__img.loaded {
    opacity: 1;
}

.store-card__img[src*="favicon.png"] {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    opacity: 1;
}

.store-card__content {
    background: var(--bg-subtle);
    padding: 16px;

    position: relative;
    border-radius: 0 0 8px 8px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.store-card__title-row {
    position: relative;
    display: block;
    margin-bottom: 16px;

}

.store-card__title {
    font-family: 'Jura', sans-serif;
    font-size: 16px;

    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    max-width: 215px;

    line-height: 130%;

    padding-right: 70px;

    white-space: nowrap;
}

.store-card__badge {
    position: absolute;
    top: 0;

    left: 232px;

    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--text-ink);

    color: var(--bg-surface);
    padding: 4px;

    border-radius: 4px 0 0 4px;

    font-weight: 400;
    font-size: 13px;
    width: 62px;

    height: 24px;

    box-sizing: border-box;
    justify-content: center;
    z-index: 2;

}

.store-card__badge-icon {
    font-size: 16px;
}

.store-card__badge .icon {
    background-color: var(--bg-surface);
}

.store-card__badge-icon.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.store-card__rule {
    height: 1px;
    background: var(--border-subtle);

    margin: 0 0 16px 0;

}

.store-card__meta {
    margin: 0 0 16px 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

}

.store-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;

}

.store-card__meta-row:last-child {
    border-bottom: 0;
}

.store-card__meta-row dt {
    color: var(--text-muted);

    font-size: 12px;

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 130%;
}

.store-card__meta-row dd {
    margin: 0;
    color: var(--text-ink);

    font-size: 12px;

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 130%;
    text-align: right;
}

.store-card__cta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0;
    width: 100%;

    min-height: 27px;

    margin-top: auto;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.store-card__price {
    background: var(--bg-surface);

    border: 1px solid var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;

    font-weight: 400;

    font-family: 'Inter', sans-serif;
    line-height: 130%;
    padding: 8px;

    gap: 8px;
    flex: 1;

    width: 50%;

    min-height: 27px;

    box-sizing: border-box;
    border-radius: 8px 0 0 8px;

    white-space: nowrap;
}

.store-card__buy {

    background: var(--brand-primary);

    color: var(--bg-surface);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 15px;

    font-weight: 400;

    font-family: 'Inter', sans-serif;
    line-height: 130%;

    padding: 8px;

    gap: 8px;
    flex: 1;

    width: 50%;

    min-height: 27px;

    border: 0;
    box-sizing: border-box;
    box-shadow: none;
    text-shadow: none;
    filter: none;
    cursor: pointer;
    border-radius: 0 8px 8px 0;

    white-space: nowrap;
}

.store-card__buy:hover {
    background: var(--brand-primary);
    text-decoration: none;
    color: var(--bg-surface);
    box-shadow: none;
    filter: none;
}

.store-card__buy span,
.store-card__buy .btn-text {

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;

    color: var(--bg-surface);

    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (max-width: 719px) {
    .store-card {
        width: 100%;

        max-width: 310px;

        margin: 0 auto;

    }

    .store-card__img {
        width: 100%;
        height: auto;

    }

    .store-card__meta-row,
    .store-card__cta {
        width: 100%;

    }

    .store-card__price {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .store-card__img {
        height: auto;

    }

    .store-card__title {
        font-size: 14px;

    }

    .store-card__meta-row dt,
    .store-card__meta-row dd {
        font-size: 11px;

    }

    .store-card__price {
        font-size: 13px;

    }

    .store-card__buy {

        font-size: max(15px, 16px);

        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.server-monitoring-section {
    margin: 0 0 var(--spacing-2xl) 0;
    padding: 0 0 var(--spacing-xl) 0;
    text-align: center;
}

.server-monitoring-section h3 {
    text-align: center;
    margin: var(--spacing-2xl) 0 var(--spacing-lg) 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-ink);
}

.server-monitoring-section h3:first-of-type {
    margin-top: 0;
}

.server-widgets-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.server-widget {
    position: relative;
    width: 200px;
    height: 385px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-hover);
}

.server-widget:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.server-widget iframe {
    width: 200px !important;
    height: 385px !important;
    display: block;
    border: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

@media (max-width: 767px) {
    .server-monitoring-section {
        margin: var(--spacing-lg) 0 var(--spacing-xl) 0;
        padding: var(--spacing-lg) 0;
    }

    .server-widgets-grid {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .server-widget {
        width: 200px;
        height: 385px;
    }

    .server-widget iframe {
        width: 200px !important;
        height: 385px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .server-monitoring-section {
        padding: var(--spacing-xl) 0;
    }

    .server-widgets-grid {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-lg);
    }
}

.server-widget--loaded iframe {
    opacity: 1;
}

.server-widget--failed iframe {
    display: none;
}

.server-widget__skeleton {
    position: absolute;
    inset: 0;
    background: #222222;
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1;
    transition: opacity var(--transition-slow);
}

.server-widget__skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
    );
    animation: bm-shimmer 1.8s ease-in-out infinite;
}

@keyframes bm-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.server-widget__skeleton-header {
    height: 20px;
    width: 70%;
    margin: var(--spacing-md) auto var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.08);
}

.server-widget__skeleton-status {
    height: 14px;
    width: 40%;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.06);
}

.server-widget__skeleton-chart {
    height: 100px;
    margin: 0 var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.server-widget__skeleton-line {
    height: 12px;
    width: 80%;
    margin: var(--spacing-xs) auto;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.server-widget--loaded .server-widget__skeleton {
    opacity: 0;
    pointer-events: none;
}

.server-widget--failed .server-widget__skeleton {
    display: none;
}

.server-widget__fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background: #222222;
    color: #EEEEEE;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    gap: var(--spacing-sm);
}

.server-widget--failed .server-widget__fallback {
    display: flex;
}

.server-widget__fallback-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.server-widget__fallback-message {
    color: #999999;
    font-size: var(--font-size-sm);
}

.server-widget__fallback-link {
    color: #1185ec;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.server-widget__fallback-link:hover {
    color: #3da0f5;
    text-decoration: underline;
}

.hero-section {
    text-align: center;
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    background: var(--bg-surface);
    margin-bottom: var(--spacing-lg);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-content h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-ink);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-tight);
    text-align: center;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    text-align: center;
    max-width: 600px;
}

@media (max-width: 767px) {
    .hero-section {
        padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
        margin-bottom: var(--spacing-md);
    }

    .hero-content {
        padding: 0 var(--spacing-sm);
    }

    .hero-content h1 {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
        line-height: var(--line-height-snug);
    }

    .hero-description {
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hero-section {
        padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    }

    .hero-content {
        padding: 0 var(--spacing-lg);
    }
}

.features-section {
    margin: var(--spacing-2xl) 0 0 0;
    padding: var(--spacing-xl) 0 var(--spacing-4xl) 0;

    min-height: fit-content;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-hover);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:only-child {
    max-width: 331px;
    justify-self: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--text-ink);
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl) 0;
    flex: 1;
}

.feature-benefits li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-muted);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.feature-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--status-success);
    font-weight: var(--font-weight-bold);
}

@media (max-width: 767px) {
    .features-section {
        margin: var(--spacing-xl) 0 0 0;
        padding: var(--spacing-lg) 0 var(--spacing-3xl) 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .feature-card h3 {
        font-size: var(--font-size-xl);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .features-section {
        padding: var(--spacing-xl) 0 var(--spacing-4xl) 0;
    }

    .features-grid {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-lg);
    }
}

main.container {
    display: flex;
    flex-direction: column;
}

.hero-section+.server-monitoring-section {
    margin-top: 0;
}

.server-monitoring-section+.features-section {
    margin-top: var(--spacing-xl);
}

.features-section:last-child,
.server-monitoring-section:last-child,
.hero-section:last-child {
    margin-bottom: var(--spacing-4xl);
}

@media (max-width: 767px) {
    .features-section:last-child,
    .server-monitoring-section:last-child,
    .hero-section:last-child {
        margin-bottom: var(--spacing-3xl);
    }
}

.hero-section,
.server-monitoring-section,
.features-section {
    position: relative;
    z-index: 1;
}

.hero-section::after,
.server-monitoring-section::after,
.features-section::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
}

.store-card {
    width: 310px;

    background: var(--bg-subtle);

    border: 1px solid var(--text-ink);

    border-radius: 8px;

    box-shadow: none;
    overflow: visible;

    position: relative;

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.store-card__media {
    padding: 16px 16px 0 16px;

    background: var(--bg-subtle);

    border-radius: 8px 8px 0 0;

    flex-shrink: 0;
}

.store-card__img {
    display: block;
    width: 279px;

    height: auto;
    aspect-ratio: 4 / 3;

    object-fit: cover;
    border-radius: 4px;

    opacity: 0;
}

.store-card__img.loaded {
    opacity: 1;
}

.store-card__img[src*="favicon.png"] {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    opacity: 1;
}

.store-card__content {
    background: var(--bg-subtle);
    padding: 16px;

    position: relative;
    border-radius: 0 0 8px 8px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.store-card__title-row {
    position: relative;
    display: block;
    margin-bottom: 16px;

}

.store-card__title {
    font-family: 'Jura', sans-serif;
    font-size: 16px;

    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    max-width: 215px;

    line-height: 130%;

    padding-right: 70px;

}

.store-card__badge {
    position: absolute;
    top: 0;

    left: 232px;

    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--text-ink);

    color: var(--bg-surface);
    padding: 4px;

    border-radius: 4px 0 0 4px;

    font-weight: 400;
    font-size: 13px;
    width: 62px;

    height: 24px;

    box-sizing: border-box;
    justify-content: center;
    z-index: 2;

}

.store-card__badge-icon {
    font-size: 16px;
}

.store-card__badge .icon {
    background-color: var(--bg-surface);
}

.store-card__rule {
    height: 1px;
    background: var(--border-subtle);

    margin: 0 0 16px 0;

}

.store-card__meta {
    margin: 0 0 16px 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

}

.store-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;

}

.store-card__meta-row:last-child {
    border-bottom: 0;
}

.store-card__meta-row dt {
    color: var(--text-muted);

    font-size: 12px;

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 130%;
}

.store-card__meta-row dd {
    margin: 0;
    color: var(--text-ink);

    font-size: 12px;

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 130%;
    text-align: right;
}

.store-card__cta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0;
    width: 100%;

    min-height: 27px;

    margin-top: auto;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.store-card__price {
    background: var(--bg-surface);

    border: 1px solid var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;

    font-weight: 400;

    font-family: 'Inter', sans-serif;
    line-height: 130%;
    padding: 8px;

    gap: 8px;
    flex: 1;

    width: 50%;

    min-height: 27px;

    box-sizing: border-box;
    border-radius: 8px 0 0 8px;

    white-space: nowrap;
}

.store-card__buy {

    background: var(--brand-primary);

    color: var(--bg-surface);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 15px;

    font-weight: 400;

    font-family: 'Inter', sans-serif;
    line-height: 130%;

    padding: 8px;

    gap: 8px;
    flex: 1;

    width: 50%;

    min-height: 27px;

    border: 0;
    box-sizing: border-box;
    box-shadow: none;
    text-shadow: none;
    filter: none;
    cursor: pointer;
    border-radius: 0 8px 8px 0;

    white-space: nowrap;
}

.store-card__buy:hover {
    background: var(--brand-primary);
    text-decoration: none;
    color: var(--bg-surface);
    box-shadow: none;
    filter: none;
}

.store-card__buy span,
.store-card__buy .btn-text {

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;

    color: var(--bg-surface);

    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.store-card__buy span,
.store-card__buy .btn-text {

    white-space: nowrap;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    width: 100%;
}

@media (max-width: 719px) {
    .store-card {
        width: 100%;

        max-width: 310px;

        margin: 0 auto;

        box-sizing: border-box;
    }

    .store-card__img {
        width: 100%;

        max-width: 279px;

        height: auto;

        margin: 0 auto;

    }

    .store-card__media {
        padding: 16px;

        display: flex;
        justify-content: center;

    }

    .store-card__content {
        padding: 16px;

    }

    .store-card__meta-row,
    .store-card__cta {
        width: 100%;

    }

    .store-card__buy {

        min-height: 44px;
        height: auto;

        padding: 12px 8px;

        font-size: max(15px, 16px);

        display: flex;
        align-items: center;
        justify-content: center;

        transition: background-color 0.2s ease, transform 0.1s ease;

        line-height: 1.2;

        position: relative;

        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;

        -webkit-tap-highlight-color: rgba(87, 125, 251, 0.3);
    }

    .store-card__buy span,
    .store-card__buy .btn-text {

        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;

        font-size: max(15px, 16px);
        line-height: 1.2;

        margin: 0;
        padding: 0;

        white-space: nowrap;

        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .store-card__buy:hover {
        background: var(--brand-primary);

        transform: scale(1.02);
    }

    .store-card__buy:active {
        background: var(--brand-primary);
    }

    .store-card__price {
        min-height: 44px;
        height: auto;
        padding: 12px 8px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: max(15px, 16px);
        line-height: 1.2;
    }

    .store-card__cta {
        height: auto;
        min-height: 44px;

        align-items: stretch;

        gap: 0;

        overflow: hidden;
    }
}

@media (min-width: 720px) and (max-width: 1079px) {
    .store-card {
        margin: 0 auto;

    }
}

@media (min-width: 1080px) {
    .store-card {
        margin: 0 auto;

    }
}

.store-card[role="link"],
.owned-card[role="link"] {
    color: var(--text-ink);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.12s ease;
}

.store-card[role="link"]:hover,
.store-card[role="link"]:focus-visible,
.owned-card[role="link"]:hover,
.owned-card[role="link"]:focus-visible {
    color: var(--text-ink);
    text-decoration: none;
    border-color: var(--brand-primary);
}

.store-card[role="link"]:focus-visible,
.owned-card[role="link"]:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

.store-card.is-pressing,
.owned-card.is-pressing {
    transform: translateY(1px);
}

.store-card__badge,
.owned-card__badge {
    top: -2px;
    left: auto;
    right: -16px;
    width: auto;
    min-width: 62px;
    height: 24px;
    padding: 4px;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 130%;
    white-space: nowrap;
}

.store-card__badge-icon,
.owned-card__badge-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: block;
    filter: invert(1);
}

.store-card__title,
.owned-card__title {
    max-width: 215px;
    padding-right: 70px;
}

.hidden {
    display: none !important;
}

.steam-id-field.has-profile {
    border-bottom: 1px solid var(--border-subtle);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 4px;
}

.steam-id-feedback {
    display: flow-root;
}

.steam-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.steam-profile-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.steam-profile-card__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-ink);
}

@media (prefers-color-scheme: dark) {
    .steam-profile-card {
        background: var(--bg-primary-dark);
    }

    .steam-profile-card__name {
        color: var(--text-ink-dark);
    }
}

.steam-login-card {
    margin-bottom: var(--spacing-xl);
}

.steam-login-card .login-option-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.steam-login-card .login-option-card h3 {
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 130%;
    color: var(--text-ink);
    margin: 0 0 8px 0;
}

.steam-login-card .steam-login-form {
    display: inline;
    margin: 0;
}

.steam-login-card .steam-login-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #1b2838;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.login-page {
    max-width: 420px;
    margin: var(--spacing-2xl) auto;
}

.steam-login-card .steam-login-btn:hover {
    background: #2a475e;
    transform: none;
    box-shadow: none;
    color: white;
    text-decoration: none;
}

.steam-login-card .steam-login-btn svg {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .steam-login-card .login-option-card {
        padding: var(--spacing-md);
    }

    .steam-login-card .steam-login-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-xs);
    }
}

.guest-purchase-section {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
}

.guest-purchase-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--text-ink);
    margin: 0 0 var(--spacing-xl) 0;
    text-align: center;
}

.guest-purchase-section > p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 130%;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    text-align: center;
}

.vip-page {
    --vip-purchase-inner-width: 502px;
    --vip-plan-dropdown-width: 300px;
}

.vip-page .guest-purchase-section > h2,
.vip-page .guest-purchase-section > p,
.vip-page .guest-purchase-section > .steam-login-card,
.vip-page .guest-purchase-section > label,
.vip-page .guest-purchase-section > .form-input,
.vip-page .guest-purchase-section > .steam-profile-card,
.vip-page .guest-purchase-section > .steam-id-feedback,
.vip-page .guest-purchase-section > form,
.vip-page .guest-purchase-section > form > label,
.vip-page .guest-purchase-section > form > .dropdown,
.vip-page .guest-purchase-section > form > .payment-section .payment-section-content-inner,
.vip-page .guest-purchase-section > form > .form-button,
.vip-page .subscription-section > form,
.vip-page .subscription-section > form > label,
.vip-page .subscription-section > form > .dropdown,
.vip-page .subscription-section > form > .payment-section .payment-section-content-inner,
.vip-page .subscription-section > form > .form-button {
    width: var(--vip-purchase-inner-width);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.vip-page .guest-purchase-section > form > .dropdown,
.vip-page .subscription-section > form > .dropdown {
    width: var(--vip-plan-dropdown-width) !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: 0;
    margin-right: auto;
}

.vip-page .guest-purchase-section > label,
.vip-page .guest-purchase-section > .form-input {
    display: block;
}

@media (max-width: 767px) {
    .vip-page {
        --vip-purchase-inner-width: 100%;
        --vip-plan-dropdown-width: 100%;
    }

    .guest-purchase-section {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
}

@media (prefers-color-scheme: dark) {
    .guest-purchase-section {
        background: var(--bg-surface-dark);
    }
}

.store-card__price--discount {
    flex-direction: row;
    gap: 6px;
}

.store-card__price-old {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 130%;
    text-decoration: line-through;
}

.store-card__price-current {
    color: var(--text-ink);
    line-height: 130%;
}

