:root {
    --primary: #f39c12;
    --secondary: #e67e22;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #f1c40f;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9)), url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 900px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.admin-link {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.brand-166 {
    color: var(--primary);
    font-size: 3rem;
    font-weight: 800;
}

.brand-156 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
}

.brand-separator {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.calculator-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 5px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-height: 500px;
    align-items: stretch;
}

@media (max-width: 850px) {
    .calculator-card {
        grid-template-columns: 1fr;
    }

    .result-section {
        border-left: none !important;
        border-top: 1px solid var(--border-color);
        padding-left: 0 !important;
        padding-top: 40px;
    }
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
input[type="number"] {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

.select-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.result-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.result-item:hover {
    background: var(--primary);
    color: #000;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.vehicle-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.vehicle-card.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.vehicle-card .weight {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}

.counter {
    display: flex;
    align-items: center;
}

.counter button {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 50px;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.counter button:first-child {
    border-radius: 12px 0 0 12px;
}

.counter button:last-child {
    border-radius: 0 12px 12px 0;
}

.counter input {
    width: 100%;
    border-radius: 0 !important;
    text-align: center;
}

.checkbox-group {
    justify-content: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
}

.result-section {
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.price-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-display {
    margin-bottom: 20px;
}

.currency {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 300;
    vertical-align: top;
    margin-right: 5px;
}

#total-price {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.price-details {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-calculate {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 18px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
    width: 100%;
    margin-top: auto;
}

.btn-calculate:hover {
    background: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.3);
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}