:root {
    --bg-dark: #111;
    --bg-panel: #1a1a1a;
    --text-white: #f0f0f0;
    --accent-red: #8b0000;
    --header-border: #333;
    --price-bar-bg: #1c1c1c;
    --browser-gray: #dcdcdc;
}

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

body {
    background-color: #000;
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

.game-screen {
    width: 100%;
    max-width: 1200px;
    background-color: var(--bg-dark);
    margin: 20px;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}


.browser-bar {
    background: linear-gradient(to bottom, #f0f0f0, #d4d4d4);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #555;
    color: #333;
}

.browser-controls {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.nav-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #999;
    background: linear-gradient(to bottom, #fff, #ccc);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.address-bar {
    flex-grow: 1;
    background: #fff;
    border: 1px solid #999;
    padding: 5px 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.site-header {
    position: relative;
    height: 250px;
    background-color: #2a2a2a;
    background-image: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        repeating-linear-gradient(45deg, #2a2a2a 0, #2a2a2a 10px, #333 10px, #333 20px); 
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid #000;
    overflow: hidden;
}

.site-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/M1_Abrams_tank_grafenwoehr.jpg/1200px-M1_Abrams_tank_grafenwoehr.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: grayscale(100%) contrast(120%);
    z-index: 1;
}

.logo-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.site-logo {
    font-family: 'Black Ops One', cursive;
    font-size: 80px;
    color: #e0e0e0;
    text-transform: uppercase;
    line-height: 0.9;
    text-shadow: 3px 3px 0px #000, -1px -1px 0 #555;
    letter-spacing: 2px;
}

.site-logo span {
    display: block;
    font-size: 0.6em;
}


.control-bar {
    background-color: #000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.latest-stock {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sort-btn {
    background: linear-gradient(to bottom, #8a8578, #6d675b);
    color: #fff;
    border: 1px solid #4a453b;
    padding: 8px 15px;
    font-family: sans-serif;
    font-size: 14px;
    cursor: pointer;
    width: 200px;
    text-align: left;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.sort-btn::after {
    content: '≡';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    background-color: #121212;
}

.featured-section {
    padding: 0 30px; 
    margin-top: 20px;
    margin-bottom: -10px; 
}

.featured-card {
    width: 100%;
    border: 1px solid #000;
}

.featured-img-container {
    
    height: 600px; 
    
    position: relative;
    background-color: #333; 
}

.featured-img-container img {
    object-fit: cover; 
    
    object-position: center; 
    width: 100%;
    height: 100%;
}

.featured-info {
    
    height: 80px; 
    background-color: #1a1a1a;
    padding: 0 30px;
}

.featured-info .vehicle-name {
    font-size: 32px; 
}

.featured-info .vehicle-price {
    font-size: 20px;
    color: #ccc;
    font-weight: normal;
}


.card {
    background-color: #222;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
    border: 1px solid #000;
}

.card:hover {
    border: 1px solid #555;
    transform: scale(1.02);
    z-index: 10;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #333;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #000;
}

.card-info {
    background-color: #1a1a1a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 50px;
    border-top: 1px solid #000;
}

.vehicle-name {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #dcdcdc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.vehicle-price {
    font-size: 14px;
    text-align: right;
    color: #f0f0f0;
    font-weight: bold;
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .site-logo { font-size: 50px; }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
}

.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); 
}

.modal-content {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 600px;
    border: 2px solid #444;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
    position: relative;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 20px;
    z-index: 2;
}
.close-btn:hover { color: #fff; }


.modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background-color: #000;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 32px;
    text-transform: uppercase;
    font-family: 'Black Ops One', cursive;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.modal-price {
    font-size: 24px;
    color: #dcdcdc;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: block;
}

.modal-desc {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}


.buy-btn {
    background-color: #8b0000; 
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-family: 'Black Ops One', cursive;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.buy-btn:hover {
    background-color: #a00000;
    box-shadow: 0 0 10px #8b0000;
}


.processing-text {
    color: #ffcc00; 
    font-size: 24px;
    font-weight: bold;
    animation: blink 1s infinite;
    padding: 30px 0;
}

@keyframes blink {
    50% { opacity: 0.5; }
}


.success-message {
    padding: 20px 0;
}

.sold-stamp {
    font-family: 'Black Ops One', cursive;
    font-size: 60px;
    color: #d32f2f; 
    border: 5px solid #d32f2f;
    display: inline-block;
    padding: 10px 20px;
    transform: rotate(-10deg); 
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
}

.thank-you {
    font-size: 18px;
    color: #ccc;
    text-transform: uppercase;
}

.global-footer {
    background-color: #0d0d0d;
    border-top: 4px solid var(--accent-red);
    padding: 40px 30px;
    margin-top: 30px;
    font-family: 'Roboto Condensed', sans-serif;
}

.global-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.footer-column h4 {
    color: var(--accent-red);
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.footer-column a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 5px;
    color: var(--accent-red);
}


.footer-brand {
    align-items: flex-end;
    text-align: right;
    flex-grow: 1;
}

.footer-logo {
    font-family: 'Black Ops One', cursive;
    font-size: 32px;
    color: #e0e0e0;
    line-height: 1;
}

.footer-slogan {
    font-family: 'Black Ops One', cursive;
    font-size: 14px;
    color: var(--accent-red);
    margin-bottom: 15px;
}

.footer-copyright {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .global-footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
        margin-top: 20px;
    }
}