:root {
    --k-green: #7CFF00;
    --k-black: #0a0a0a;
    --k-dark-gray: #1a1a1a;
    --k-light-gray: #888888;
    --k-white: #ffffff;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 60px;
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--k-black);
    color: var(--k-white);
    font-family: var(--font-main);
    padding-top: var(--header-height);
    padding-bottom: calc(var(--nav-height) + 20px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: manipulation;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

h1 { font-size: 24px; }
h2 { font-size: 18px; margin-bottom: 15px; }
p { font-size: 14px; color: var(--k-light-gray); line-height: 1.4; }

/* Utilities */
.container {
    padding: 20px;
}

/* Evitar auto-zoom em inputs (iOS) */
input, select, textarea {
    font-size: 16px;
}

/* Evitar double-tap zoom em elementos clicáveis */
a, button, .icon-btn, .menu-item, .btn-primary, .nav-item {
    touch-action: manipulation;
}

.text-green { color: var(--k-green); text-shadow: 0 0 8px rgba(124, 255, 0, 0.4); }
.glow-border { border: 1px solid rgba(124, 255, 0, 0.3); box-shadow: 0 0 15px rgba(124, 255, 0, 0.1); }
.tech-accent::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--k-green);
    margin-bottom: 5px;
    box-shadow: 0 0 5px var(--k-green);
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.w-100 { width: 100%; }

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo-img {
    height: 20px;
    object-fit: contain;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--k-white);
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero-card {
    position: relative;
    width: 100%;
    height: 350px;
    background-color: var(--k-dark-gray);
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px 8px 20px;
    background: linear-gradient(to top, var(--k-black), transparent);
}

.model-name {
    font-size: 32px;
    font-style: italic;
    color: var(--k-white);
    margin-bottom: 5px;
}

.model-tag {
    color: var(--k-green);
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.user-greeting {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 10;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--k-white);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border-left: 3px solid var(--k-green);
}

.btn-primary {
    background: linear-gradient(135deg, var(--k-green), #5cb800);
    color: var(--k-black);
    padding: 12px 24px;
    border: none;
    border-radius: 4px; /* More angular/tech feel */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(124, 255, 0, 0.4);
    position: relative;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s ease;
    opacity: 0.75;
}

.btn-primary:hover {
    opacity: 1;
    background: var(--k-green);
    box-shadow: 0 0 25px rgba(124, 255, 0, 0.6);
    transform: translateY(-2px);
}

.btn-primary:active {
    opacity: 1;
    background: var(--k-green);
    transform: scale(0.98);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #111;
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--k-green);
    font-size: 16px;
    letter-spacing: 1px;
}

.close-modal {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 10px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.futuristic-input, .futuristic-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    font-size: 16px;
}

.futuristic-input:focus, .futuristic-select:focus {
    border-color: var(--k-green);
    box-shadow: 0 0 10px rgba(124, 255, 0, 0.1);
}

.input-hint {
    font-size: 9px;
    color: #555;
    margin-top: 5px;
}

/* Quick Menu */
.quick-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-item {
    background: linear-gradient(145deg, var(--k-dark-gray), #111);
    border-radius: 4px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--k-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.menu-item:before {
    content: '';
    position: absolute;
    left:0; top:0; width:4px; height:100%;
    background: transparent;
    transition: background 0.2s;
}

.menu-item:active, .menu-item:hover {
    transform: translateY(-2px);
    border-color: var(--k-green);
    box-shadow: 0 0 15px rgba(124, 255, 0, 0.1);
}
.menu-item:active:before, .menu-item:hover:before {
    background: var(--k-green);
}

.menu-icon {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--k-green);
}

.menu-label {
    font-size: 12px;
    font-weight: 500;
}

/* Event Card */
.event-card {
    background: linear-gradient(180deg, var(--k-dark-gray) 0%, #0f0f0f 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(124, 255, 0, 0.2);
    position: relative;
}
.event-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--k-green) transparent transparent;
    opacity: 0.5;
}

.event-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.event-details {
    padding: 15px;
}

.event-date {
    background: rgba(124, 255, 0, 0.1);
    color: var(--k-green);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

/* News Scroll */
.news-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.news-scroll::-webkit-scrollbar { display: none; }

.news-card {
    min-width: 250px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: border-color 0.3s;
}
.news-card:hover {
    border-color: var(--k-green);
    box-shadow: 0 0 10px rgba(124,255,0,0.1);
}

.news-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-info {
    padding: 12px;
}

.news-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 0 15px 15px 15px;
    z-index: 1000;
    border-top: 1px solid #222;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--k-black);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    height: 50px;
    background: #222;
    color: #888;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--k-green), #5cb800);
    color: var(--k-black);
    box-shadow: 0 0 15px rgba(124, 255, 0, 0.3);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item-logout {
    background: #331111;
    color: #ff4444;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--k-green);
    color: var(--k-white);
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: var(--k-green);
    font-size: 24px;
    margin-top: 2px;
}

.toast-content h4 {
    color: var(--k-green);
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-content p {
    color: var(--k-white);
    font-size: 12px;
    margin: 0;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin: -10px -10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
}

.toast-close-btn:hover {
    color: var(--k-white);
}

/* Specific Page Styles */
.page-title-section {
    padding: 30px 20px;
    background: linear-gradient(to bottom, var(--k-dark-gray), var(--k-black));
}

.garage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

/* Loja: cards um pouco mais “expandidos” */
#products-grid {
    padding: 0;
}

@media (min-width: 420px) {
    #products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (min-width: 900px) {
    #products-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 18px;
    }
}

.bike-card {
    background: var(--k-dark-gray);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    border: 1px solid #333;
    display: flex;
    align-items: center;
}

.bike-card img {
    width: 120px;
    margin-right: 15px;
}

.asset-tall-card {
    padding: 20px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 12px;
    border: 1px solid #222;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-box {
    background: var(--k-dark-gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--k-green);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--k-light-gray);
}

/* Header Menu */
.header-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.2s;
    backdrop-filter: blur(2px);
}
.header-menu-overlay.active {
    display: block;
    opacity: 1;
}
.header-menu {
    position: absolute;
    top: 60px;
    right: 15px;
    width: 200px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transform: translateY(-10px);
    transition: transform 0.2s;
    overflow: hidden;
}
.header-menu-overlay.active .header-menu {
    transform: translateY(0);
}
.header-menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #222;
    background: linear-gradient(90deg, #1a1a1a, #151515);
}
.header-menu-item:last-child {
    border-bottom: none;
}
.header-menu-item:active {
    background: #222;
}
.header-menu-item i {
    margin-right: 12px;
    color: var(--k-green);
    font-size: 18px;
}