/* Purchase container: fixed desktop width independent of inner sections */
@media (min-width: 768px) {
    main.container .purchase-container {
        width: 664px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 767.98px) {
    main.container .purchase-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* Icon masks colored by current theme variables */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-color: var(--text-muted);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.icon-lock {
    -webkit-mask-image: url('../images/icons/lock.svg');
    mask-image: url('../images/icons/lock.svg');
}

.icon-trolley {
    -webkit-mask-image: url('../images/icons/trolley.svg');
    mask-image: url('../images/icons/trolley.svg');
}

.icon-steam {
    -webkit-mask-image: url('../images/icons/steam.svg');
    mask-image: url('../images/icons/steam.svg');
}

/* Box icon used in pack badge */
.icon-box {
    -webkit-mask-image: url('../images/icons/box.svg');
    mask-image: url('../images/icons/box.svg');
}

/* Make icons inside buttons inherit text color */
/* icon color for auth button now defined in components stylesheet */

:root {
    /* Flat, authoritative palette (user-facing) */
    --bg-surface: #F3F3F3;
    --text-ink: #141414;
    --border-subtle: #C9CCDB;
    --brand-primary: #577DFB;
    --text-muted: #7E839C;
    --bg-subtle: #E7EAF2;

    /* Neutrals */
    --neutral-50: #f8f9fa;
    --neutral-100: #e9ecef;
    --neutral-200: #dee2e6;
    --neutral-300: #ced4da;
    --neutral-400: #adb5bd;
    --neutral-500: #6c757d;
    --neutral-600: #495057;
    --neutral-800: #212529;

    /* Status */
    --status-success: #28a745;
    --status-success-strong: #1e7e34;
    --status-success-weak: #d4edda;
    --status-warning: #ffc107;
    --status-warning-text: #212529;
    --status-warning-weak: #fff3cd;
    --status-danger: #dc3545;
    --status-danger-strong: #c82333;
    --status-info: #17a2b8;
    --status-info-weak: #d1ecf1;

    /* Product accents */
    --accent-pack: #6f42c1;
    --accent-skin: var(--brand-primary);

    /* Purchase Button Colors */
    --purchase: #ff6b35;
    --purchase-hover: #e55a2b;
    --purchase-active: #d14d26;
    --purchase-shadow: rgba(255, 107, 53, 0.3);
    --purchase-light: rgba(255, 107, 53, 0.1);

    /* Spacing Scale */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem; /* 8px */
    --spacing-md: 1rem; /* 16px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    --spacing-2xl: 2.5rem; /* 40px */
    --spacing-3xl: 3rem; /* 48px */
    --spacing-4xl: 4rem; /* 64px */

    /* Typography Scale - Requirement 7.1 */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem; /* 36px */

    /* Header Layout Variables */
    --header-padding-mobile: 16px;
    --header-padding-tablet: 24px;
    --header-padding-desktop: 40px;
    --header-content-max-width: 1360px;
    --layout-shell-desktop: calc(var(--header-content-max-width) + (2 * var(--header-padding-desktop)));
    --header-min-height-mobile: 60px;
    --header-min-height-desktop: 73px;
    --font-size-5xl: 3rem; /* 48px */

    /* Font Weights - Consistent typography hierarchy */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Line Heights - Consistent vertical rhythm */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;

    /* Border Radius - Requirement 7.3: Unified border radius */
    --border-radius-none: 0;
    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius: 0.5rem; /* 8px - Primary radius */
    --border-radius-md: 0.75rem; /* 12px */
    --border-radius-lg: 1rem; /* 16px */
    --border-radius-xl: 1.5rem; /* 24px */
    --border-radius-2xl: 2rem; /* 32px */
    --border-radius-full: 9999px;

    /* Shadows - Requirement 7.3: Unified shadows */
    --shadow-none: none;
    --shadow-xs: 0 1px 2px rgba(126, 131, 156, 0.08);
    --shadow-sm: 0 2px 4px rgba(126, 131, 156, 0.12);
    --shadow-md: 0 4px 12px rgba(126, 131, 156, 0.16);
    --shadow-lg: 0 8px 24px rgba(126, 131, 156, 0.20);
    --shadow-xl: 0 16px 48px rgba(126, 131, 156, 0.24);
    --shadow-2xl: 0 24px 64px rgba(126, 131, 156, 0.28);

    /* Colored Shadows for Interactive Elements */
    --shadow-purchase: 0 4px 12px var(--purchase-shadow);
    --shadow-purchase-lg: 0 8px 24px var(--purchase-shadow);
    --shadow-primary: 0 4px 12px rgba(87, 125, 251, 0.3); /* from #577DFB */
    --shadow-success: 0 4px 12px rgba(40, 167, 69, 0.3);

    /* Transitions - Requirement 7.2: Max 300ms duration */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-all: all var(--transition-normal);

    /* Specific Transition Properties */
    --transition-colors: background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
    --transition-transform: transform var(--transition-normal);
    --transition-shadow: box-shadow var(--transition-normal);
    --transition-opacity: opacity var(--transition-normal);

    /* Hover Effect Transitions - Requirement 7.2 */
    --transition-hover: all var(--transition-normal);
    --transition-hover-fast: all var(--transition-fast);

    /* Animation Durations */
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;

    /* Animation Timing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Touch Targets */
    --touch-target-min: 44px;

    /* Breakpoints (for reference in media queries) */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;

    /* Grid System */
    --grid-gap: var(--spacing-lg);
    --grid-gap-sm: var(--spacing-md);
    --grid-gap-lg: var(--spacing-xl);

    /* Container Widths */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;
}

/* Base Responsive Grid System */
.grid {
    display: grid;
    gap: var(--grid-gap);
}

/* Store grid - Centered with proper spacing like Figma */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 310px));
    gap: 40px; /* Space between cards matches Figma */
    justify-content: center;
}

@media (max-width: 1079px) {
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 290px));
        gap: 32px;
    }
}

@media (max-width: 719px) {
    .store-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 360px;
        margin: 0 auto;
        gap: 24px;
    }
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive Grid Classes */
@media (min-width: 768px) {
    .grid-md-1 {
        grid-template-columns: 1fr;
    }

    .grid-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-md-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-md-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-md-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-md-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid-xl-1 {
        grid-template-columns: 1fr;
    }

    .grid-xl-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-xl-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-xl-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-xl-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-xl-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-stretch {
    align-items: stretch;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1;
}

.flex-auto {
    flex: auto;
}

/* Spacing Utilities */
.gap-xs {
    gap: var(--spacing-xs);
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.gap-xl {
    gap: var(--spacing-xl);
}

/* Margin Auto for Card Alignment */
.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

/* ⚜️═══ CONSISTENT TYPOGRAPHY HIERARCHY ═══⚜️ */
/* Requirement 7.1: Consistent color schemes and typography */

/* Base Reset and Typography */
html {
    font-size: 100%;
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    /* Mobile-first: Minimum 16px font size for readability - Requirement 3.2 */
    font-size: max(var(--font-size-base), 16px);
    line-height: var(--line-height-relaxed);
    color: var(--text-ink);
    background-color: var(--bg-surface);
    margin: 0;
    padding: 0;
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    /* Smooth font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Consistent Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-ink);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin: 0 0 var(--spacing-md) 0;
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

/* Consistent Text Elements */
p {
    margin: 0 0 var(--spacing-md) 0;
    line-height: var(--line-height-relaxed);
    color: var(--text-ink);
}

.text-large {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.text-small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

.text-nowrap {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .text-nowrap {
        white-space: normal;
    }
}

/* Text Color Utilities */
.text-primary {
    color: var(--text-ink);
}

.text-secondary {
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--status-success);
}

.text-warning {
    color: var(--status-warning-text);
}

.text-danger {
    color: var(--status-danger);
}

.text-info {
    color: var(--status-info);
}

/* Font Weight Utilities */
.font-light {
    font-weight: var(--font-weight-light);
}

.font-normal {
    font-weight: var(--font-weight-normal);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

/* Mobile Typography Adjustments */
@media (max-width: 767px) {
    h1 {
        font-size: max(var(--font-size-3xl), 30px);
    }

    h2 {
        font-size: max(var(--font-size-2xl), 24px);
    }

    h3 {
        font-size: max(var(--font-size-xl), 20px);
    }

    h4 {
        font-size: max(var(--font-size-lg), 18px);
    }

    h5, h6 {
        font-size: max(var(--font-size-base), 16px);
    }

    .text-large {
        font-size: max(var(--font-size-lg), 18px);
    }

    .text-small {
        font-size: max(var(--font-size-sm), 14px);
    }

    .text-xs {
        font-size: max(var(--font-size-xs), 12px);
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-md);
    background-color: var(--bg-surface);
    position: relative;
}

.layout-shell {
    width: 100%;
    max-width: var(--layout-shell-desktop);
    margin: 0 auto;
    padding: 0 var(--header-padding-mobile);
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .layout-shell {
        padding: 0 12px;
    }
}

@media (min-width: 768px) {
    .layout-shell {
        padding: 0 var(--header-padding-tablet);
    }
}

@media (min-width: 1200px) {
    .layout-shell {
        padding: 0 var(--header-padding-desktop);
    }
}

/* Enhanced container padding for larger screens */
@media (min-width: 768px) {
    .container {
        padding: var(--spacing-lg) var(--spacing-2xl);
    }
}

/* Specific styling for main content container only */
main.container {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-2xl) var(--spacing-md);
    /* Ensure minimum height to prevent footer overlap - Updated for simplified footer */
    min-height: calc(100vh - 280px);
}

@media (min-width: 768px) {
    main.container {
        padding: var(--spacing-lg) var(--spacing-2xl) var(--spacing-3xl) var(--spacing-2xl);
        min-height: calc(100vh - 320px);
    }
}

@media (min-width: 1200px) {
    main.container {
        padding: var(--spacing-lg) var(--spacing-2xl) var(--spacing-4xl) var(--spacing-2xl);
        min-height: calc(100vh - 360px);
    }
}


header div h1 {
    margin: 0;
    width: 100%;
    text-align: center;
}

/* New header + banner to match spec */


.site-title-banner {
    background: var(--bg-surface);
    padding: 24px 40px 16px;
}

.banner-title {
    background: var(--bg-subtle);
    border-radius: 10px;
    padding: 10px 16px;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Jura', sans-serif;
    font-size: 20px;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .banner-title {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    .banner-title {
        font-size: 24px;
    }
}


.lang-switch {
    margin-left: 1rem;
    position: static;
    transform: none;
}

.lang-switch a {
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    padding: 0.3125rem 0.625rem;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.lang-switch a:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

@media screen and (max-width: 480px) {
    .social-link {
        display: none;
    }
}

mark {
    background-color: #fff7ea;
    color: #4424a6;
}


.vip {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 1000% 1000%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowFlow 10s ease infinite;
}

.vip.small {
    font-size: 1rem;
}

/* Store Header Section */
.store-header {
    /* Ensure full-width container */
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 24px 0 16px;
    background: #F3F3F3; /* White_bgbg */
}

.store-header__inner {
    /* From Figma: Game_Title container */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.server-filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.server-filter__label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.server-filter__options {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

.server-filter__option {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.server-filter__option:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.server-filter__option--active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.skins-nav {
    /* From Figma: Title container */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    max-width: 100%;
    min-height: 47px;
    background: #E7EAF2; /* Light_Blue_Fill */
    border-radius: 8px;
    
    /* Typography from Figma */
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3; /* Improved from 130% for better readability */
    text-align: center;
    text-transform: uppercase;
    color: #141414; /* Black_text */
    
    /* Enhanced text handling for responsive design */
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* Allow text wrapping by default */
    hyphens: auto; /* Enable hyphenation for better text flow */
    margin: 0;
}

/* Detail pages */
.detail-hero {
    padding: 32px 0 24px;
}

.detail-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.detail-media {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-media__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #1f1f1f;
}

.detail-media__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 12px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-family: 'Jura', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-gallery--stacked {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
}

.detail-gallery--stacked::-webkit-scrollbar {
    height: 6px;
}

.detail-gallery--stacked::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 999px;
}

.detail-thumb {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.detail-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.detail-thumb:hover,
.detail-thumb:focus {
    border-color: var(--brand-primary);
    outline: none;
    transform: translateY(-2px);
}

.detail-thumb.is-active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(87, 125, 251, 0.25);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-back {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
}

.detail-back:hover {
    color: var(--text-ink);
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text-ink);
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.detail-title {
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin: 0;
    color: var(--text-ink);
}

.detail-meta {
    display: grid;
    gap: 12px;
}

.detail-meta__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.detail-meta__row dt {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.detail-meta__row dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-ink);
    font-family: 'Inter', sans-serif;
}

.detail-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-price__amount {
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: var(--text-ink);
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-buy-btn {
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
}

.detail-owned {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-subtle);
    color: var(--text-ink);
}

.detail-owned__cta {
    align-self: flex-start;
}

.detail-guest-hint {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-guest-login {
    align-self: flex-start;
}

.detail-payments {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-payments__list {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 8px 0 0;
    list-style: none;
    flex-wrap: wrap;
}

.detail-payments__list li {
    background: var(--bg-subtle);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--text-ink);
}

.detail-section {
    padding: 32px 0;
}

.detail-section__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-section__title {
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 0;
}

.detail-description {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    line-height: 1.6;
    color: var(--text-ink);
}

.detail-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.included-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.included-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.included-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: var(--bg-subtle);
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
}

.included-card__meta h3 {
    margin: 0;
    font-size: 18px;
    font-family: 'Jura', sans-serif;
    color: var(--text-ink);
}

.included-card__type,
.included-card__item {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-gallery__item img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

@media (max-width: 1199px) {
    .detail-hero__inner {
        grid-template-columns: 1fr;
    }

    .detail-media,
    .detail-info {
        width: 100%;
    }

    .detail-buy-btn,
    .detail-owned__cta,
    .detail-guest-login {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .detail-hero {
        padding: 24px 0 16px;
    }

    .detail-media {
        padding: 16px;
    }

    .detail-media__image {
        border-radius: 10px;
    }

    .detail-thumb img {
        width: 64px;
        height: 64px;
    }

    .detail-title {
        font-size: 26px;
    }

    .detail-section {
        padding: 24px 0;
    }

    .detail-description {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .detail-media {
        padding: 12px;
    }

    .detail-thumb img {
        width: 56px;
        height: 56px;
    }

    .detail-gallery {
        gap: 8px;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .store-header {
        padding: 16px 0;
    }

    .store-header__inner {
        gap: 12px;
    }

    .server-filter {
        gap: 8px;
    }

    .server-filter__options {
        gap: 6px;
    }

    .server-filter__option {
        padding: 4px 8px;
        font-size: 12px;
    }

    .skins-nav {
        /* Mobile typography - 18px as specified in task */
        font-size: 18px;
        padding: 6px 12px;
        min-height: auto;
        /* Allow text wrapping on mobile for better readability */
        white-space: normal;
        text-align: center;
        width: 100%;
        max-width: none;
        /* Improved line height for better readability on mobile */
        line-height: 1.3;
        /* Better word wrapping for long titles */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .store-header {
        padding: 18px 0 14px;
    }

    .store-header__inner {
        gap: 16px;
    }

    .server-filter__option {
        padding: 5px 10px;
        font-size: 12px;
    }

    .skins-nav {
        /* Tablet typography - 20px as specified in task */
        font-size: 20px;
        /* Ensure proper text wrapping on tablet as well */
        white-space: normal;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@keyframes skinFlow {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@keyframes rainbowFlow {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

h1, h2, h3 {
    color: #333;
}

h3 {
    font-size: 1.15rem;
}

ul {
    margin-left: 2em;
}

ul, ol {
    padding-left: 1.25rem;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ⚜️═══ MOBILE RESPONSIVENESS AND TOUCH INTERACTIONS ═══⚜️ */
/* Requirements: 3.1, 3.2, 3.3, 3.4 */

/* Mobile-first responsive design with proper breakpoints - Requirement 3.1 */
@media (max-width: 767px) {
    /* Enhanced mobile typography - Requirement 3.2 */
    body {
        /* Ensure minimum 16px font size for mobile readability */
        font-size: max(var(--font-size-base), 16px);
        line-height: var(--line-height-relaxed);
        /* Prevent horizontal scrolling */
        overflow-x: hidden;
    }
    
    /* Ensure main container doesn't cause overflow */
    main.container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    h1 {
        font-size: max(var(--font-size-2xl), 24px);
        line-height: var(--line-height-tight);
    }

    h2 {
        font-size: max(var(--font-size-xl), 20px);
        line-height: var(--line-height-tight);
    }

    h3 {
        font-size: max(var(--font-size-lg), 18px);
        line-height: var(--line-height-tight);
    }

    /* Mobile container with proper spacing - Requirement 3.1 */
    .container {
        padding: var(--spacing-md);
        margin: 0;
        max-width: 100%;
    }

    /* Mobile main content container specific spacing */
    main.container {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-2xl) var(--spacing-md);
        min-height: calc(100vh - 200px);
    }

    /* Enhanced mobile navigation */
    nav .container {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-xs);
        flex-wrap: wrap;
    }

    /* Mobile-optimized navigation links - Requirement 3.2 */
    nav a {
        padding: var(--spacing-md) var(--spacing-sm);
        min-width: var(--touch-target-min);
        font-size: max(var(--font-size-sm), 14px);
        text-align: center;
    }

    /* VIP header mobile optimization - Following consistent typography */
    .vip-header {
        font-size: max(var(--font-size-4xl), 36px);
        margin: var(--spacing-xl) 0;
        letter-spacing: var(--letter-spacing-normal);
    }

    /* Mobile dropdown improvements */
    .dropdown {
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
    }

    /* Mobile form improvements - Requirement 3.2 */
    .form-input {
        font-size: max(var(--font-size-base), 16px);
        padding: var(--spacing-md);
        min-height: var(--touch-target-min);
        border-radius: var(--border-radius);
    }

    /* Mobile button improvements - Requirement 3.2 */
    .form-button,
    .btn {
        font-size: max(var(--font-size-base), 16px);
        padding: var(--spacing-md) var(--spacing-lg);
        min-height: var(--touch-target-min);
        width: 100%;
        margin-bottom: var(--spacing-md);
    }

    /* Mobile avatar and language switch */
    .nav-right {
        gap: var(--spacing-sm);
        margin-left: auto;
    }

    .steam-avatar {
        width: var(--touch-target-min);
        height: var(--touch-target-min);
    }

    .lang-switch a {
        font-size: max(var(--font-size-sm), 14px);
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide social links on very small screens for better space utilization */
    .social-link {
        display: none;
    }
}

/* Tablet responsive improvements */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        padding: var(--spacing-lg) var(--spacing-xl);
    }

    main.container {
        padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-3xl) var(--spacing-xl);
        min-height: calc(100vh - 300px);
    }

    nav .container {
        padding: var(--spacing-sm) var(--spacing-xl);
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .container {
        padding: var(--spacing-lg) var(--spacing-2xl);
    }
}

/* ⚜️═══ VIP ═══⚜️ */
/* Main VIP Page Container */
.vip-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* VIP Header - Following consistent design pattern with enhanced prominence */
.vip-header {
    text-align: center;
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    margin: var(--spacing-2xl) 0;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: var(--letter-spacing-tight);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-tight);
}

/* VIP Content Sections - Following consistent typography */
.vip-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.vip-content section {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl);
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.vip-content section h2 {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xl);
    color: var(--text-ink);
    line-height: var(--line-height-tight);
}

.vip-content section h3 {
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-lg);
    color: var(--text-ink);
    line-height: var(--line-height-tight);
}

.vip-content section ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.vip-content .vip-benefits-section {
    text-align: center;
}

.vip-benefits-list {
    display: inline-block;
    text-align: left;
    margin: 0 !important;
    max-width: none !important;
}

.vip-content section p {
    text-align: center;
    max-width: 500px;
    margin: 0 auto var(--spacing-md) auto;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-ink);
}

/* VIP page section styling - Following consistent typography */
.vip-page .status-section,
.vip-page .subscription-section,
.vip-page .login-section,
.vip-page .guest-purchase-section,
.vip-content .status-section,
.vip-content .subscription-section,
.vip-content .login-section,
.vip-content .guest-purchase-section {
    margin: var(--spacing-2xl) auto;
    padding: var(--spacing-xl);
    max-width: 600px;
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Ensure dropdowns within VIP sections are properly sized */
.vip-page .dropdown,
.vip-content .dropdown {
    width: 100%;
    max-width: 100%;
    background: transparent; /* Ensure no background color inheritance */
}

.vip-page .status-section h2,
.vip-page .subscription-section h2,
.vip-page .guest-purchase-section h2,
.vip-content .status-section h2,
.vip-content .subscription-section h2,
.vip-content .guest-purchase-section h2 {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xl);
    color: var(--text-ink);
    line-height: var(--line-height-tight);
}

/* VIP page login section specific styling */
.vip-page .login-section,
.vip-content .login-section {
    text-align: center;
    background: var(--bg-subtle);
}

.vip-page .login-section h3,
.vip-content .login-section h3 {
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-lg);
    color: var(--text-ink);
    line-height: var(--line-height-tight);
}

/* Alternative payment methods section - Following consistent typography */
.vip-content section ol,
.vip-content section ul.price-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.vip-content section ol li,
.vip-content section ul.price-list li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-ink);
}

/* Mobile VIP page adjustments - Following consistent typography */
@media (max-width: 767px) {
    .vip-page {
        padding: 0 var(--spacing-sm);
        max-width: none; /* Remove fixed width on mobile */
        width: 100%;
    }
    
    .vip-content {
        max-width: none; /* Remove fixed width on mobile */
        width: 100%;
    }
    
    .vip-content section ul,
    .vip-content section p,
    .vip-content section ol,
    .vip-content section ul.price-list {
        max-width: none; /* Remove fixed width on mobile */
        width: 100%;
    }
    
    /* Mobile VIP sections adjustments */
    .vip-page .status-section,
    .vip-page .subscription-section,
    .vip-page .login-section,
    .vip-page .guest-purchase-section,
    .vip-content .status-section,
    .vip-content .subscription-section,
    .vip-content .login-section,
    .vip-content .guest-purchase-section {
        max-width: none;
        width: 100%;
        margin: var(--spacing-xl) 0;
        padding: var(--spacing-lg);
    }
    
    /* Ensure dropdowns are full width on mobile */
    .vip-page .dropdown,
    .vip-content .dropdown {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .vip-header {
        font-size: max(var(--font-size-4xl), 36px);
        margin: var(--spacing-xl) 0;
        letter-spacing: var(--letter-spacing-normal);
    }
    
    .vip-content section {
        padding: var(--spacing-lg);
        margin: var(--spacing-xl) 0;
    }
    
    .vip-content section h2 {
        font-size: max(var(--font-size-xl), 20px);
    }
    
    .vip-content section h3 {
        font-size: max(var(--font-size-lg), 18px);
    }
    
    .vip-page .status-section,
    .vip-page .subscription-section,
    .vip-page .login-section,
    .vip-page .guest-purchase-section,
    .vip-content .status-section,
    .vip-content .subscription-section,
    .vip-content .login-section,
    .vip-content .guest-purchase-section {
        padding: var(--spacing-lg);
        margin: var(--spacing-xl) auto;
    }
    
    .vip-page .status-section h2,
    .vip-page .subscription-section h2,
    .vip-page .guest-purchase-section h2,
    .vip-content .status-section h2,
    .vip-content .subscription-section h2,
    .vip-content .guest-purchase-section h2 {
        font-size: max(var(--font-size-xl), 20px);
    }
    
    .vip-page .login-section h3,
    .vip-content .login-section h3 {
        font-size: max(var(--font-size-lg), 18px);
    }
    
    /* Mobile-only VIP responsive improvements - preserve desktop widths */
    .dropdown {
        max-width: none; /* Only on mobile, remove width restriction */
    }
    
    .form-input {
        max-width: none; /* Only on mobile, remove width restriction */
        font-size: max(var(--font-size-base), 16px); /* Prevent zoom on mobile */
        min-height: var(--touch-target-min); /* Touch-friendly height */
    }
    
    .form-button {
        width: 100%;
        font-size: max(var(--font-size-base), 16px);
        min-height: var(--touch-target-min);
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    /* Mobile payment method improvements */
    .payment-method-option {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
        min-height: auto;
    }
    
    .method-info {
        justify-content: flex-start;
    }
    
    .method-total {
        margin-left: 0;
        text-align: center;
        padding-top: var(--spacing-sm);
        border-top: 1px solid var(--border-subtle);
    }
    
    .total-amount {
        font-size: max(var(--font-size-xl), 20px);
    }
    
    /* Mobile dropdown improvements */
    .dropdown-toggle {
        min-height: var(--touch-target-min);
        font-size: max(var(--font-size-base), 16px);
        padding: var(--spacing-lg);
    }
    
    .option {
        min-height: var(--touch-target-min);
        font-size: max(var(--font-size-base), 16px);
        padding: var(--spacing-lg);
    }
    
    .dropdown-content {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        box-shadow: var(--shadow-lg);
        max-height: 250px;
        overflow-y: auto;
    }
    
    /* Mobile checkbox improvements */
    .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    .checkbox-wrapper label {
        font-size: max(var(--font-size-sm), 14px);
    }
    
    /* Mobile Steam login image */
    .login-section img {
        max-width: 100%;
        height: auto;
    }
    
    /* Critical mobile fixes - ensure no horizontal overflow */
    .vip-page,
    .vip-page * {
        box-sizing: border-box;
    }
    
    /* Override ALL fixed widths that might cause overflow */
    .vip-page .dropdown,
    .vip-page .form-input,
    .vip-page .payment-method-selector,
    .vip-page .payment-method-option,
    .vip-page .alert {
        max-width: none !important;
        width: 100% !important;
    }
    
    /* Ensure dropdown content doesn't overflow */
    .vip-page .dropdown-content {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    /* Ensure proper text wrapping and prevent overflow */
    .vip-page p,
    .vip-page li,
    .vip-page span,
    .vip-page div,
    .vip-page label {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    /* Prevent horizontal scrolling */
    .vip-page {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Ensure form elements are properly sized */
    .vip-page input,
    .vip-page select,
    .vip-page textarea,
    .vip-page button {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix any table-like layouts */
    .vip-page table,
    .vip-page .table {
        width: 100%;
        table-layout: fixed;
    }
    
    /* Emergency mobile fixes - force everything to fit */
    .vip-page section,
    .vip-page .status-section,
    .vip-page .subscription-section,
    .vip-page .login-section,
    .vip-page .guest-purchase-section {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
    }
    
    /* Force dropdown and form elements to be mobile-friendly */
    .vip-page .dropdown-toggle,
    .vip-page .dropdown-content,
    .vip-page .option {
        width: 100% !important;
        max-width: none !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Ensure text doesn't overflow */
    .vip-page h1,
    .vip-page h2,
    .vip-page h3,
    .vip-page h4,
    .vip-page h5,
    .vip-page h6 {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Tablet VIP page adjustments - Following consistent typography */
@media (min-width: 768px) and (max-width: 1199px) {
    .vip-page {
        padding: 0 var(--spacing-lg);
    }
    
    .vip-header {
        font-size: var(--font-size-5xl);
    }
    
    .vip-content section h2 {
        font-size: var(--font-size-2xl);
    }
    
    .vip-content section h3 {
        font-size: var(--font-size-xl);
    }
    
    /* Tablet-specific VIP improvements */
    .dropdown-toggle {
        padding: var(--spacing-lg);
    }
    
    .option {
        padding: var(--spacing-lg);
    }
    
    .form-input {
        padding: var(--spacing-lg);
    }
    
    .payment-method-option {
        padding: var(--spacing-lg);
    }
}

/* Alert styling for VIP page */
.alert {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: left;
}

.alert-error {
    background-color: var(--status-danger-weak, #f8d7da);
    border: 1px solid var(--status-danger, #dc3545);
    color: var(--status-danger-strong, #721c24);
}

.alert-success {
    background-color: var(--status-success-weak);
    border: 1px solid var(--status-success);
    color: var(--status-success-strong);
}

.alert h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-tight);
}

.alert ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-xl);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.alert p {
    margin: var(--spacing-sm) 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
    background: #222;
    color: white;
    padding: 0;
    width: 100%;
    max-width: 17rem;
    border: 1px solid #ced4da;
    margin-bottom: 1.0rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #222;
    width: 100%;
    left: 0;
    margin-top: 0;
    z-index: 1000;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    padding: 0;
}

.dropdown-toggle,
.option {
    padding: var(--spacing-md) var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
    font-size: var(--font-size-base);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-normal);
}

.dropdown-toggle span,
.dropdown-toggle div,
.option span,
.option div {
    pointer-events: none;
}

.dropdown-toggle span,
.dropdown-toggle div,
.option span,
.option div {
    pointer-events: none;
}

.dropdown-toggle div,
.option div {
    min-width: 120px;
    text-align: right;
}

.dropdown-toggle::after {
    content: "▼";
    padding: var(--spacing-xs);
    font-size: var(--font-size-xs);
    transition: transform var(--transition-fast);
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

#dropdown-checkbox {
    display: none;
}

#dropdown-checkbox:checked+.dropdown-content {
    display: block;
}

.option {
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    background-color: inherit;
    color: white;
    font-size: var(--font-size-base);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-normal);
}

.option:hover {
    background: #4285f4;
}

.old-price {
    text-decoration: line-through;
    color: #666;
    margin-right: 15px;
}

.current-price {
    color: white;
}

/*  END Dropdown menu */

/* VIP Page Payment Method Selector - Base Styles */
.payment-method-selector {
    margin: var(--spacing-lg) 0;
    max-width: 600px;
    width: 100%;
}

.payment-method-selector h3 {
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--text-ink);
}

.usd-payment-section {
    margin-top: var(--spacing-xl);
}

.usd-payment-section h3 {
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--text-ink);
}

.payment-method-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--transition-all);
}

.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 1px var(--brand-primary);
}

.method-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.method-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 0;
}

.method-name {
    font-size: var(--font-size-base);
    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;
    margin-left: var(--spacing-md);
}

.total-amount {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-ink);
}

/* Input help text and error messages */
.input-help-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.error-message {
    color: var(--status-danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.captcha-field {
    margin: var(--spacing-xl) 0 0 0;
    display: flex;
    justify-content: flex-start;
}

/* VIP Page Mobile-Only Responsive Improvements */
@media (max-width: 767px) {
    /* Payment method selector mobile layout */
    .payment-method-selector {
        margin: var(--spacing-lg) 0;
        max-width: none; /* Remove fixed width on mobile */
        width: 100%;
    }
    
    .payment-method-selector h3 {
        text-align: center;
        margin-bottom: var(--spacing-lg);
        font-size: max(var(--font-size-lg), 18px);
    }
    
    /* Method info layout for mobile */
    .method-info {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .method-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .method-text {
        flex: 1;
    }
    
    .method-name {
        font-size: max(var(--font-size-base), 16px);
        font-weight: var(--font-weight-medium);
    }
    
    .method-fee {
        font-size: max(var(--font-size-sm), 14px);
        color: var(--text-muted);
    }
    
    .method-total {
        text-align: right;
    }
    
    .total-amount {
        font-size: max(var(--font-size-lg), 18px);
        font-weight: var(--font-weight-semibold);
    }
    
    /* Input help text mobile */
    .input-help-text {
        font-size: max(var(--font-size-sm), 14px);
        line-height: var(--line-height-relaxed);
        margin-top: var(--spacing-xs);
        margin-bottom: var(--spacing-md);
    }
    
    /* Error message mobile */
    .error-message {
        font-size: max(var(--font-size-sm), 14px);
        color: var(--status-danger);
        margin-top: var(--spacing-xs);
        margin-bottom: var(--spacing-md);
    }
    
    /* Captcha field mobile */
    .captcha-field {
        margin: var(--spacing-xl) 0 0 0;
        display: flex;
        justify-content: flex-start;
    }
    
    /* Alert mobile improvements */
    .alert {
        margin: var(--spacing-lg) var(--spacing-sm);
        padding: var(--spacing-lg);
        max-width: none !important;
        width: calc(100% - 2 * var(--spacing-sm));
    }
    
    .alert h3 {
        font-size: max(var(--font-size-lg), 18px);
    }
    
    .alert ul,
    .alert p {
        font-size: max(var(--font-size-sm), 14px);
    }
}


.email-preferences {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.email-preferences .form-input {
    margin-bottom: 0;
}

.form-input {
    width: 100%;
    max-width: 17rem;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--neutral-300);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: var(--font-size-base);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-normal);
    color: var(--text-ink);
    background-color: #ffffff;
}

.form-input + .input-help-text {
    margin-top: calc(-1 * var(--spacing-lg) + 4px);
}

.form-input.steam-id-field {
    margin-bottom: 4px;
}

.steam-id-feedback {
    margin-bottom: var(--spacing-lg);
}

.steam-id-feedback .validation-message {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
    padding-left: 2.9px;
}

.steam-id-feedback .validation-message.valid {
    color: var(--status-success, #22c55e);
}

.steam-id-feedback .validation-message.invalid {
    color: var(--status-danger);
}

.checkbox-wrapper {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    line-height: var(--line-height-normal);
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    transform: translateY(-2.7px);
    width: 14px;
    height: 14px;
}

.checkbox-wrapper label {
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-ink);
    line-height: var(--line-height-normal);
}

/* ⚜️═══ CONSISTENT PRICE FORMATTING AND CURRENCY DISPLAY ═══⚜️ */
/* Requirement 7.5: Consistent price formatting and currency display */

/* Base Price Styling */
.price-display {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.price-current,
.current-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--status-success);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.price-old,
.old-price {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: var(--line-height-tight);
}

/* Currency Symbol Styling */
.currency-symbol {
    font-weight: var(--font-weight-medium);
    margin-left: 0.125rem;
}

/* Price Variants */
.price-large {
    font-size: var(--font-size-2xl);
}

.price-small {
    font-size: var(--font-size-sm);
}

.price-extra-large {
    font-size: var(--font-size-3xl);
}

/* Discount Badge */
.discount-badge {
    background-color: var(--status-success);
    color: var(--neutral-50);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

/* Duration Display */
.duration-display,
.duration-info {
    background-color: var(--neutral-100);
    color: var(--text-muted);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    border: 1px solid var(--neutral-200);
}

/* Price Comparison Layout */
.price-comparison {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-start;
}

.price-comparison .price-old {
    order: 1;
}

.price-comparison .price-current {
    order: 2;
}

.price-comparison .discount-badge {
    order: 3;
    margin-top: var(--spacing-xs);
}

/* Mobile Price Formatting */
@media (max-width: 767px) {
    .price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .price-current,
    .current-price {
        font-size: max(var(--font-size-lg), 18px);
    }

    .price-old,
    .old-price {
        font-size: max(var(--font-size-sm), 14px);
    }

    .price-large {
        font-size: max(var(--font-size-2xl), 24px);
    }

    .price-extra-large {
        font-size: max(var(--font-size-3xl), 30px);
    }
}

/* ⚜️═══ CONSISTENT CARD STYLING ═══⚜️ */
/* Requirement 7.3: Unified border radius and shadows */

/* Base Card Component */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--neutral-200);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-hover);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Card Variants */
.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-elevated:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-flat {
    box-shadow: var(--shadow-none);
    border: 1px solid var(--neutral-300);
}

.card-flat:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--brand-primary);
}

/* Card Content Areas */
.card-header {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
	padding: var(--spacing-md) var(--spacing-lg);
	border-bottom: 1px solid var(--neutral-200);
	background: var(--neutral-50);
}

.card-header > h3 {
	margin: 0;
	line-height: 1.2;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

/* Product Card Specific Styling */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: var(--transition-hover);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    background: var(--neutral-100);
}

.product-card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-actions {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

/* Pack vs Skin Card Differentiation */
.product-card.pack-card {
    border-top: 3px solid var(--accent-pack);
}

.product-card.pack-card:hover {
    border-top-color: var(--accent-pack);
    box-shadow: 0 8px 24px rgba(111, 66, 193, 0.2);
}

.product-card.skin-card {
    border-top: 3px solid var(--accent-skin);
}

.product-card.skin-card:hover {
    border-top-color: var(--accent-skin);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
}


/* ⚜️═══ ENHANCED PURCHASE BUTTON COMPONENT ═══⚜️ */
/* Requirements: 2.1, 2.2, 2.3, 2.4 */

/* Base Purchase Button Styles */
.btn-purchase {
    /* Core styling - Requirement 2.1: Orange color (#ff6b35) */
    background-color: var(--purchase);
    color: var(--neutral-50);

    /* Layout and spacing */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);

    /* Typography */
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    text-align: center;
    line-height: 1;

    /* Visual design */
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);

    /* Requirement 2.4: Minimum 44px touch target for mobile accessibility */
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);

    /* Requirement 2.3: Smooth transitions for all button states */
    transition: all var(--transition-normal);
    cursor: pointer;

    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Requirement 2.2: Hover effects with darker orange shade */
.btn-purchase:hover {
    background-color: var(--purchase-hover);
    color: var(--neutral-50);
    text-decoration: none;

    /* Enhanced visual feedback */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--purchase-shadow);
}

/* Active state for better touch feedback */
.btn-purchase:active {
    box-shadow: var(--shadow-sm);
    transition-duration: 0.1s;
}

/* Focus state for keyboard accessibility */
.btn-purchase:focus {
    outline: none;
}

/* Disabled state */
.btn-purchase:disabled,
.btn-purchase.disabled {
    background-color: var(--neutral-400);
    color: var(--neutral-600);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-purchase:disabled:hover,
.btn-purchase.disabled:hover {
    background-color: var(--neutral-400);
    color: var(--neutral-600);
    transform: none;
    box-shadow: none;
}

/* Size variants while maintaining accessibility */
.btn-purchase.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    min-height: var(--touch-target-min); /* Still maintain touch target */
}

.btn-purchase.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
    min-height: calc(var(--touch-target-min) + 8px);
}

/* Full width variant for mobile */
.btn-purchase.btn-block {
    display: flex;
    width: 100%;
}

/* Loading state */
.btn-purchase.loading {
    position: relative;
    color: transparent;
}

.btn-purchase.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid var(--neutral-50);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile-specific optimizations - Requirement 2.4 */
@media (max-width: 767px) {
    .btn-purchase {
        /* Increase padding for better touch experience */
        padding: var(--spacing-md) var(--spacing-lg);

        /* Ensure minimum font size for readability */
        font-size: max(var(--font-size-base), 16px);

        /* Full width on mobile for better usability */
        width: 100%;
        justify-content: center;
    }

    /* Reduce hover effects on touch devices */
    .btn-purchase:hover {
        transform: none;
    }

    /* Enhanced active state for touch feedback */
    .btn-purchase:active {
        background-color: var(--purchase-hover);
    }
}

/* ⚜️═══ PROGRESSIVE IMAGE LOADING ═══⚜️ */
/* Requirement 3.4: Progressive image loading for mobile performance optimization */

/* Base image styles with loading optimization */
img {
    /* Prevent layout shift during loading */
    max-width: 100%;
    height: auto;
    /* Smooth loading transition */
    transition: opacity var(--transition-normal);
}

/* Progressive image loading states */
.progressive-image {
    /* Start with low opacity while loading */
    opacity: 0;
    /* Smooth transition when loaded */
    transition: opacity var(--transition-slow);
    /* Prevent layout shift */
    background-color: var(--neutral-100);
    /* Ensure proper aspect ratio during loading */
    min-height: 200px;
    object-fit: cover;
}

.progressive-image.loaded {
    opacity: 1;
}

.progressive-image.loading {
    background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.progressive-image.error {
    opacity: 0.5;
    background-color: var(--neutral-200);
    position: relative;
}

.progressive-image.error::after {
    content: "⚠️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.7;
}

/* Loading placeholder for images */
.image-placeholder {
    background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Lazy loading optimization */
img[loading="lazy"] {
    /* Improve loading performance */
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

/* Mobile image optimizations - Requirement 3.4 */
@media (max-width: 767px) {
    /* Optimize image loading for mobile bandwidth */
    .item-preview-image,
    .pack-preview-image,
    .skin-preview img {
        /* Faster loading transition on mobile */
        transition: opacity var(--transition-fast);
        /* Ensure proper sizing on mobile */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Reduce image placeholder height on mobile */
    .progressive-image {
        min-height: 180px;
    }

    /* Mobile-specific image container optimizations */
    .item-preview,
    .pack-preview,
    .skin-preview {
        /* Prevent overflow on mobile */
        overflow: hidden;
        /* Ensure proper aspect ratio */
        position: relative;
    }
}

/* ⚜️═══ CONSISTENT HOVER EFFECTS AND SMOOTH TRANSITIONS ═══⚜️ */
/* Requirement 7.2: Smooth transitions and hover effects (max 300ms duration) */

/* Base Interactive Elements */
a, button, .clickable, .interactive {
    transition: var(--transition-hover);
    cursor: pointer;
}

/* Link Hover Effects */
a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

a:focus {
    outline: none;
}

/* Button Base Hover Effects */
button, .btn {
    transition: var(--transition-hover);
    cursor: pointer;
    border: none;
    outline: none;
}

button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active, .btn:active {
    transition-duration: var(--duration-fast);
}

button:focus, .btn:focus {
    outline: none;
}

/* Card Hover Effects */
.card, .product-card, .skin-item-card {
    transition: var(--transition-hover);
}

.card:hover, .product-card:hover, .skin-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Image Hover Effects */
.item-preview-image, .product-image, .media-image {
    transition: var(--transition-transform);
}

.card:hover .item-preview-image,
.product-card:hover .product-image,
.media-container:hover .media-image {
    transform: scale(1.05);
}

/* Badge and Tag Hover Effects */
.badge, .tag, .item-type-tag {
    transition: var(--transition-colors);
}

.badge:hover, .tag:hover, .item-type-tag:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Form Element Hover Effects */
.form-input, .dropdown, input, select, textarea {
    transition: var(--transition-colors);
    border: 1px solid var(--neutral-300);
}

.form-input:hover, .dropdown:hover, input:hover, select:hover, textarea:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus, .dropdown:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Navigation Hover Effects */
nav a {
    transition: var(--transition-colors);
    border-radius: var(--border-radius-sm);
}

nav a:hover {
    background-color: var(--bg-subtle);
    color: var(--brand-primary);
    text-decoration: none;
}

/* Dropdown Hover Effects */
.dropdown-menu {
    transition: var(--transition-opacity);
}

.dropdown-menu a {
    transition: var(--transition-colors);
}

.dropdown-menu a:hover {
    background-color: var(--neutral-100);
    color: var(--text-ink);
}

/* Price Element Hover Effects */
.price-current, .current-price {
    transition: var(--transition-colors);
}

.card:hover .price-current,
.product-card:hover .current-price {
    color: var(--status-success-strong);
}

/* Smooth Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card:hover, .product-card:hover, .skin-item-card:hover {
        transform: none;
    }

    button:hover, .btn:hover {
        transform: none;
    }

    .item-preview-image:hover, .product-image:hover, .media-image:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card, .product-card, .skin-item-card {
        border: 2px solid var(--neutral-600);
    }

    .btn-purchase {
        border: 2px solid var(--purchase);
    }

    .btn-purchase:hover {
        border-color: var(--purchase-hover);
    }
}

/* ⚜️═══ TOUCH INTERACTION ENHANCEMENTS ═══⚜️ */
/* Requirements: 3.1, 3.2 */

/* Enhanced touch targets for mobile */
@media (max-width: 767px) {
    /* All interactive elements meet minimum touch target size */
    a, button, input, select, textarea, .clickable {
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
    }

    /* Card touch interactions */
    .skin-item-card,
    .skin-pack-card,
    .skin-card {
        /* Add touch feedback */
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .skin-item-card:active,
    .skin-pack-card:active,
    .skin-card:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }

    /* Enhanced link touch areas */
    .skin-item-link {
        /* Ensure full card is touchable */
        display: block;
        width: 100%;
        height: 100%;
        /* Add subtle touch feedback */
        transition: opacity var(--transition-fast);
    }

    .skin-item-link:active {
        opacity: 0.9;
    }

    /* Improve form element touch experience */
    .form-input,
    .dropdown,
    .dropdown-toggle {
        /* Larger touch targets */
        min-height: calc(var(--touch-target-min) + 4px);
        /* Better spacing for touch */
        margin-bottom: var(--spacing-lg);
    }

    /* Enhanced checkbox and radio button touch areas */
    .checkbox-wrapper {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .checkbox-wrapper input[type="checkbox"],
    .checkbox-wrapper input[type="radio"] {
        /* Larger touch targets for form controls */
        width: 20px;
        height: 20px;
        margin-right: var(--spacing-sm);
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: max(16px, var(--font-size-base));
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-purchase {
        border: 2px solid var(--purchase);
    }

    .btn-purchase:hover {
        border-color: var(--purchase-hover);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-purchase {
        transition: background-color var(--transition-fast);
    }

    .btn-purchase:hover {
        transform: none;
    }

    .btn-purchase.loading::after {
        animation: none;
    }
}

/* Button Styling (Legacy - keeping for backward compatibility) */
.form-button {
    display: block;
    background-color: var(--brand-primary);
    color: var(--neutral-50);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-all);
    margin-bottom: var(--spacing-lg);
    min-height: var(--touch-target-min);
}

.form-button:hover {
    background-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Modal Styling */
#copy-modal {
    position: fixed;
    top: 10px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

/* Padding for Form Inputs */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* END ⚜️═══ VIP ═══⚜️ */

.price-list {
    padding-left: 20px;
    line-height: 1;
}

.price-list li {
    padding: 5px 0;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
    font-size: 0.9em;
}

/* Pa
Payment Method Styles - Following consistent typography */
.payment-method-selector {
    margin: var(--spacing-xl) 0;
}

.payment-method-selector h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-ink);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-tight);
}

.payment-method-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 2px solid var(--neutral-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--neutral-50);
}

.payment-method-option:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.payment-method-option.selected {
    border-color: var(--brand-primary);
    background-color: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.method-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--neutral-50);
    color: var(--neutral-500);
    transition: all 0.3s ease;
}

.method-icon .payment-icon {
    transition: filter 0.3s ease;
}

.payment-method-option.selected .method-icon {
    background-color: transparent;
    color: currentColor;
}

.payment-method-option.selected .method-icon .payment-icon {
    filter: none;
}

.payment-method-option:hover .method-icon {
    background-color: var(--neutral-100);
    color: var(--neutral-600);
}

.payment-method-option:hover .method-icon .payment-icon {
    filter: none;
}

.payment-method-option.selected:hover .method-icon {
    background-color: transparent;
    color: currentColor;
}

.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-semibold);
    color: var(--text-ink);
    font-size: var(--font-size-base);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-normal);
}

.method-fee {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-normal);
}

.method-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-primary);
}

.payment-method-option.selected .total-amount {
    color: var(--brand-primary);
}

/* Responsive design for payment methods */
@media (max-width: 768px) {
    .payment-method-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .method-info {
        width: 100%;
    }

    .method-total {
        align-items: flex-start;
        width: 100%;
    }
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-error,
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: var(--status-warning-text);
    background-color: var(--status-warning-weak);
    border-color: var(--neutral-200);
}

.alert-info {
    color: var(--text-ink);
    background-color: var(--neutral-100);
    border-color: var(--neutral-300);
}

.alert h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.alert ul {
    margin-bottom: 10px;
}

.error-message {
    color: var(--status-danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-normal);
}

/* ⚜️═══ SKINS STORE ═══⚜️ */

/* Skins Store Section */
.skins-store-section {
    margin: 2rem 0;
    padding: 1.25rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skins-store-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Skin Packs Grid */
.skin-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skin-pack-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skin-pack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-primary);
}

.pack-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.pack-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.skin-pack-card:hover .pack-preview-image {
    transform: scale(1.05);
}

.pack-info {
    padding: 1.25rem;
}

.pack-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.pack-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.pack-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}

.pack-skin-count {
    color: #666;
    font-size: 0.9rem;
}

.pack-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.pack-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Primary button (non-purchase) */
.btn-primary {
    background-color: var(--brand-primary);
    color: var(--neutral-50);
}

.btn-primary:hover {
    background-color: var(--brand-primary);
    color: var(--neutral-50);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Secondary button */
.btn-secondary {
    background-color: var(--neutral-500);
    color: var(--neutral-50);
}

.btn-secondary:hover {
    background-color: var(--neutral-600);
    color: var(--neutral-50);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Success button */
.btn-success {
    background-color: var(--status-success);
    color: var(--neutral-50);
}

.btn-success:hover {
    background-color: var(--status-success-strong);
    color: var(--neutral-50);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.owned-badge {
    background-color: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}


/* Skins Grid */
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* (Removed) Individual/skin list styles */

/* Purchase Section */
.purchase-section {
    margin: 2rem 0;
    padding: 1.25rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.purchase-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.owned-pack-notice {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border-radius: 12px;
    margin: 1rem 0;
}

.owned-pack-notice h2 {
    color: white;
    margin-bottom: 1rem;
}

.auth-purchase-option,
.guest-purchase-option {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.auth-purchase-option h3,
.guest-purchase-option h3 {
    margin-top: 0;
    color: #333;
}

.guest-purchase-info {
    margin: 2rem 0;
    padding: 1.25rem 2rem;
}

.info-section {
    margin: 2rem 0;
    padding: 1.25rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-help-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-normal);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.captcha-field {
    margin: var(--spacing-xl) 0 0 0;
}

/* Responsive Design for Skins Store */
@media (max-width: 768px) {
    .skin-packs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skins-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pack-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .pack-detail-header h1 {
        font-size: 1.5rem;
    }

    .pack-price-info .current-price {
        font-size: 1.25rem;
    }

    .pack-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .skins-store-section,
    .pack-description-section,
    .pack-skins-section,
    .purchase-section,
    .guest-purchase-info,
    .info-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .pack-detail-header {
        padding: 1rem;
        margin: 1rem 0;
    }

    .pack-info {
        padding: 1rem;
    }

    .skin-info {
        padding: 0.75rem;
    }

    .skin-preview {
        height: 150px;
    }

    .pack-preview {
        height: 150px;
    }
}

/* Utilities */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.inline-form {
    display: inline;
}

.input-error {
    border-color: var(--status-danger) !important;
}

.link-primary {
    color: var(--brand-primary);
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

.messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Grid (merged from skins-store-grid.css) */
.items-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0;
}

.items-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .items-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .items-grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Shared purchase components */
.purchase-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.purchase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.skin-preview, .pack-preview, .item-preview-section {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.already-owned {
    background: var(--status-success-weak);
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: #155724;
}

.login-prompt {
    background: var(--status-warning-weak);
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.steamid-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.steamid-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--border-radius-sm);
    font-family: monospace;
}

.remove-steamid, .add-steamid {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    color: var(--neutral-50);
    cursor: pointer;
}

.remove-steamid {
    background: var(--status-danger);
}

.add-steamid {
    background: var(--status-success);
    margin-top: 0.5rem;
}

.method-name {
    font-weight: 700;
}

.method-fee {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.method-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--status-success);
}

.summary-row {
    display: flex;
    justify-content: space-between;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-all);
    text-align: center;
    min-height: var(--touch-target-min);
    user-select: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--neutral-50);
}

.btn-primary:hover {
    background: var(--brand-primary);
    color: var(--neutral-50);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--neutral-500);
    color: var(--neutral-50);
}

.btn-secondary:hover {
    background: var(--neutral-600);
    color: var(--neutral-50);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--status-success);
    color: var(--neutral-50);
}

.btn-success:hover {
    background: var(--status-success-strong);
    color: var(--neutral-50);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-purchase {
    background: var(--purchase);
    color: var(--neutral-50);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    transition: all var(--transition-normal);
}

.btn-purchase:hover {
    background: var(--purchase-hover);
    color: var(--neutral-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--purchase-shadow);
}

.btn-back {
    background: var(--neutral-500);
    color: var(--neutral-50);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    display: inline-block;
}

.btn-back:hover {
    background: var(--neutral-600);
    color: var(--neutral-50);
    text-decoration: none;
}

/* Back to store */
.back-to-store {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* Media Carousel */
.media-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 10/9;
    max-height: 400px;
    background: var(--neutral-50);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.media-carousel-container:focus {
    box-shadow: 0 0 0 3px rgba(87, 125, 251, 0.25);
}

.media-main-display {
    position: relative;
    width: 100%;
    height: calc(100% - 70px);
    overflow: hidden;
    background: var(--neutral-50);
}

.media-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.media-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.media-loading-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.media-loading-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    text-align: center;
}

.skeleton-progress {
    width: 120px;
    height: 4px;
    background: var(--neutral-100);
    border-radius: 2px;
    overflow: hidden;
}

.skeleton-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    animation: progress-slide 1.5s infinite;
}

@keyframes progress-slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.model-iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.model-iframe.loaded {
    opacity: 1;
}

.model-attribution {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--neutral-50);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 15;
    backdrop-filter: blur(4px);
}

.model-attribution a {
    color: var(--neutral-50);
    text-decoration: none;
}

.model-attribution a:hover {
    text-decoration: underline;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.no-media-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.media-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) transparent;
    backdrop-filter: blur(8px);
}

.media-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.media-thumbnails::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 2px;
}

.thumbnail {
    flex-shrink: 0;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--neutral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thumbnail:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 125, 251, 0.2);
}

.thumbnail:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(87, 125, 251, 0.25);
}

.thumbnail.active {
    border-color: var(--brand-primary);
    background: rgba(87, 125, 251, 0.1);
    transform: translateY(-1px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.nav-arrow {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 12px;
    opacity: 0;
    transform: scale(0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-carousel-container:hover .nav-arrow, .media-carousel-container:focus-within .nav-arrow {
    opacity: 1;
    transform: scale(1);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 125, 251, 0.25);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow i {
    font-size: 14px;
    color: var(--neutral-600);
}

@media (max-width: 768px) {
    .media-carousel-container {
        max-height: 320px;
    }

    .media-main-display {
        height: calc(100% - 80px);
    }

    .media-thumbnails {
        height: 80px;
        padding: 10px;
        gap: 8px;
    }

    .thumbnail {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .media-carousel-container {
        max-height: 280px;
    }

    .media-main-display {
        height: calc(100% - 70px);
    }

    .media-thumbnails {
        height: 70px;
        padding: 8px;
        gap: 6px;
    }

    .thumbnail {
        width: 44px;
        height: 44px;
    }

    .model-attribution {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Skin Preview */
.skin-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 10/9;
    max-height: 280px;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-mode-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    min-width: 70px;
    justify-content: center;
}

.toggle-btn:hover {
    background: var(--neutral-100);
    color: var(--neutral-600);
    transform: translateY(-1px);
}

.toggle-btn.active {
    background: var(--brand-primary);
    color: var(--neutral-50);
    box-shadow: 0 2px 4px rgba(87, 125, 251, 0.3);
}

.image-preview-container, .model-preview-container, .no-preview-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skin-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.skin-image-preview:hover {
    transform: scale(1.02);
}

.no-image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.model-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 10;
}

.model-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--neutral-50);
}

.fallback-notice {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .skin-preview-wrapper {
        max-height: 220px;
    }

    .preview-mode-toggle {
        top: 8px;
        right: 8px;
        padding: 3px;
    }

    .toggle-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }

    .toggle-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .skin-preview-wrapper {
        max-height: 200px;
    }

    .model-attribution {
        font-size: 10px;
        padding: 3px 6px;
    }

    .fallback-notice {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Legacy Sketchfab embed support (aliases to Skin Preview styles) */
.skin-preview-container {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: var(--neutral-50);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.preview-toggle-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.preview-toggle-btn:hover {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.preview-toggle-btn.active {
    background: var(--brand-primary);
    color: var(--neutral-50);
    box-shadow: 0 2px 4px rgba(87, 125, 251, 0.3);
}

.image-preview-wrapper, .sketchfab-embed-wrapper, .no-preview-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.sketchfab-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sketchfab-iframe.loaded {
    opacity: 1;
}

.sketchfab-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--neutral-50);
}

.fallback-message {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.9);
    color: var(--status-warning-text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-align: center;
}

.no-preview {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.sketchfab-attribution {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--neutral-50);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    z-index: 5;
}

.sketchfab-attribution a {
    color: var(--neutral-50);
    text-decoration: none;
}

.sketchfab-attribution a:hover {
    text-decoration: underline;
}

/* Management (SteamID) */
.management-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.management-header {
    text-align: center;
    margin-bottom: 2rem;
}

.management-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.purchase-info-section, .edit-history-section, .steamid-management-section {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.purchase-details {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.purchase-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.purchase-info h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.purchase-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    padding: 0.75rem;
    background-color: var(--neutral-50);
    border-radius: var(--border-radius-sm);
}

.meta-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1rem;
}

.edit-limits-section {
    background: var(--status-warning-weak);
    border: 1px solid var(--neutral-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
}

.edit-limits-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--status-warning-text);
}

.edit-limits-info {
    color: var(--status-warning-text);
    font-size: 0.875rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.add-steamid-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-add-steamid, .btn-edit, .btn-delete, .btn-restore {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    color: var(--neutral-50);
    cursor: pointer;
}

.btn-add-steamid, .btn-restore {
    background: var(--status-success);
}

.btn-edit {
    background: var(--brand-primary);
}

.btn-delete {
    background: var(--status-danger);
}

.btn-disabled {
    background: var(--neutral-500);
    cursor: not-allowed;
}

.steamid-list {
    display: grid;
    gap: 1rem;
}

.steamid-item {
    border: 1px solid var(--neutral-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.2s ease;
}

.steamid-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.steamid-item.inactive {
    opacity: 0.6;
    background-color: var(--neutral-50);
}

.steamid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.steamid-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.steamid-status {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background-color: var(--status-success-weak);
    color: #155724;
}

.status-inactive {
    background-color: var(--status-danger-weak, #f8d7da);
    color: #721c24;
}

.steamid-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.steamid-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.history-list {
    display: grid;
    gap: 0.5rem;
}

.history-item {
    padding: 0.75rem;
    background-color: var(--neutral-50);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
}

.history-timestamp {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.back-actions {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .purchase-details {
        grid-template-columns: 1fr;
    }

    .management-container {
        padding: 1rem;
    }

    .purchase-meta {
        grid-template-columns: 1fr;
    }

    .add-steamid-form {
        flex-direction: column;
    }
}
/*
 ⚜️═══ HOME PAGE SECTIONS ═══⚜️ */
/* Requirements: 1.1, 1.2, 5.1, 5.2, 5.3 - Home page basic service information */

/* Hero/Welcome Section */
.hero-section {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-2xl);
}

.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);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

/* Service Information Section */
.service-info-section {
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-xl) 0;
}

.service-info-section h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-ink);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.service-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-description p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-ink);
    margin-bottom: var(--spacing-lg);
}

.service-description p:last-child {
    margin-bottom: 0;
}

/* Features Section */
.features-section {
    margin-bottom: var(--spacing-3xl);
}

.features-section h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-ink);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    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 {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-ink);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl) 0;
    flex: 1;
}

.feature-benefits li {
    font-size: var(--font-size-sm);
    color: var(--text-ink);
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-lg);
}

.feature-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--status-success);
    font-weight: var(--font-weight-bold);
}

/* VIP Preview Card Styling */
.vip-preview {
    border-top: 3px solid #FFD700;
}

.vip-preview:hover {
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

.vip-preview h3 {
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFA500);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3s ease infinite;
}

@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Skins Preview Card Styling */
.skins-preview {
    border-top: 3px solid var(--brand-primary);
}

.skins-preview:hover {
    box-shadow: 0 8px 24px rgba(87, 125, 251, 0.2);
}

.skins-preview h3 {
    background: linear-gradient(45deg, #577DFB, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: skinShimmer 4s ease infinite;
}

@keyframes skinShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Mobile Responsive Design */
@media (max-width: 767px) {
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .hero-content h1 {
        font-size: max(var(--font-size-3xl), 30px);
        margin-bottom: var(--spacing-md);
    }

    .hero-description {
        font-size: max(var(--font-size-base), 16px);
    }

    .service-info-section {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-2xl);
    }

    .service-info-section h2 {
        font-size: max(var(--font-size-2xl), 24px);
        margin-bottom: var(--spacing-md);
    }

    .service-description p {
        font-size: max(var(--font-size-base), 16px);
        text-align: left;
        margin-bottom: var(--spacing-md);
    }

    .features-section h2 {
        font-size: max(var(--font-size-2xl), 24px);
        margin-bottom: var(--spacing-xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .feature-card {
        padding: var(--spacing-xl);
    }

    .feature-card h3 {
        font-size: max(var(--font-size-xl), 20px);
    }

    .feature-card p {
        font-size: max(var(--font-size-base), 16px);
        text-align: left;
    }

    .feature-benefits li {
        font-size: max(var(--font-size-sm), 14px);
    }
}

/* Tablet Responsive Design */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-section {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }

    .service-info-section {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .features-grid {
        gap: var(--spacing-xl);
    }

    .feature-card {
        padding: var(--spacing-xl);
    }
}

/* ⚜️═══ MOBILE VIP PAGE FIX ═══⚜️ */
/* Fix VIP page mobile overflow - MOBILE ONLY, desktop unchanged */

@media (max-width: 767px) {
    /* Remove horizontal padding from main container ONLY for VIP page on mobile */
    main.container:has(.vip-page) {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Add proper padding back to VIP page content on mobile */
    .vip-page {
        padding: 0 var(--spacing-md);
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
}


/* ⚜️═══ CRYPTO PAYMENT SECTION ═══⚜️ */

/* Payment separator between RUB and crypto sections */
.payment-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-lg) 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.payment-separator::before,
.payment-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--neutral-200);
}

.payment-separator span {
    padding: 0 var(--spacing-md);
    text-transform: lowercase;
}

/* Crypto payment section */
.crypto-payment-section {
    margin-top: var(--spacing-lg);
}

.crypto-payment-section h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-ink);
}

/* Crypto payment option card */
.crypto-payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--neutral-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-all);
    background: var(--bg-surface);
}

.crypto-payment-option:hover {
    border-color: var(--brand-primary);
    background: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.crypto-payment-option.selected {
    border-color: var(--brand-primary);
    background: var(--bg-subtle);
}

/* Crypto icon styling */
.crypto-icon {
    background-color: var(--neutral-100);
    color: var(--neutral-600);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
}

.crypto-payment-option:hover .crypto-icon,
.crypto-payment-option.selected .crypto-icon {
    background-color: var(--brand-primary);
    color: white;
}

/* USD total styling */
.usd-total {
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    color: var(--status-success);
}

.crypto-payment-option.selected .usd-total {
    color: var(--brand-primary);
}

/* Responsive adjustments for crypto section */
@media (max-width: 768px) {
    .crypto-payment-option {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .crypto-payment-option .method-total {
        width: 100%;
        text-align: left;
    }

    .payment-separator {
        margin: var(--spacing-md) 0;
    }
}
