:root {
    --gold: #FFD700;
    --bg: #111111;
    --card-bg: #1c1c1c;
    --text: #ffffff;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg); color: var(--text); margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
}

header { padding: 15px; border-bottom: 1px solid #222; }

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.brand-center {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main { width: 130px; height: auto; margin-bottom: 5px; }
h1 { margin: 0; color: var(--gold); font-size: 1.6rem; letter-spacing: 1px; text-transform: uppercase; }

.lang-wrapper { grid-column: 3; display: flex; justify-content: flex-end; }

.lang-dropdown { position: relative; display: inline-block; z-index: 9999; }
.dropbtn { 
    background: #222; color: var(--gold); border: 1px solid var(--gold); 
    padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: bold;
}
.dropdown-content {
    display: none; position: absolute; right: 0; background: #222;
    min-width: 140px; border: 1px solid var(--gold); border-radius: 8px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.8); z-index: 10000;
}
.lang-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { color: white; padding: 12px; text-decoration: none; display: block; border-bottom: 1px solid #333; font-size: 14px; }

.total-box { 
    text-align: center; margin: 25px 15px; padding: 20px; 
    background: var(--card-bg); border: 2px solid var(--gold); border-radius: 15px; 
}
.price-tag { font-size: 3rem; color: var(--gold); font-weight: bold; line-height: 1.1; }

.history-header { text-align: center; color: var(--gold); text-transform: uppercase; margin-top: 30px; border-bottom: 1px solid #333; padding-bottom: 10px; }

.primary-btn { background: var(--gold); color: black; padding: 16px; width: calc(100% - 30px); border: none; margin: 10px 15px; font-weight: bold; border-radius: 12px; cursor: pointer; }
.secondary-btn { background: #333; color: white; padding: 12px; width: calc(100% - 30px); border: none; margin: 5px 15px; border-radius: 10px; cursor: pointer; }
.danger-btn { background: #800000; color: white; padding: 16px; width: calc(100% - 30px); border: none; margin: 20px 15px; border-radius: 12px; cursor: pointer; }

.vehicle-card { background: var(--card-bg); border: 1px solid var(--gold); padding: 20px; margin: 15px; border-radius: 15px; text-align: center; }
.history-item { 
    background: var(--card-bg); border: 1px solid #333; padding: 15px; margin: 10px 15px; 
    border-radius: 10px; display: flex; justify-content: space-between; align-items: center; 
}
.del-x { background: #a00; color: white; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-weight: bold; }

.hidden { display: none !important; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal-content { background: #1a1a1a; padding: 25px; width: 90%; max-width: 400px; border-radius: 15px; border: 1px solid var(--gold); }
input { width: 100%; background: #222; border: 1px solid #444; color: white; padding: 14px; margin: 8px 0; border-radius: 8px; font-size: 16px; }
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; background: #333; color: var(--gold); }
.stats-bar { text-align: center; padding: 10px; color: #888; }