/* Root Variables */
:root {
    --primary-color: #4A90A4;
    --primary-light: #6BB3C9;
    --primary-dark: #357A8C;
    --secondary-color: #7BC47F;
    --secondary-light: #A5D9A8;
    --accent-orange: #F5A962;
    --accent-purple: #9B8AC4;
    --background: #F8FAFB;
    --surface: #FFFFFF;
    --text-primary: #1A2B3C;
    --text-secondary: #5A6B7C;
    --text-muted: #8A9BAC;
    --border-color: #E8EEF2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #2A5A6C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo .fa-car {
    font-size: 64px;
    animation: carPulse 2s ease-in-out infinite;
}

.splash-gear {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 32px;
    animation: gearSpin 3s linear infinite;
}

@keyframes carPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.splash-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.splash-loader {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.loader-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* App Container */
#app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app-container.hidden {
    display: none;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.header-btn:hover {
    background: var(--background);
}

.header-btn i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.header-btn.hidden {
    visibility: hidden;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #E74C3C;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screens Container */
.screens-container {
    flex: 1;
    margin-top: 60px;
    margin-bottom: 70px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen {
    display: none;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Screen Header */
.screen-header {
    text-align: center;
    margin-bottom: 24px;
}

.screen-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.screen-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Home Hero */
.home-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
    color: white;
}

.hero-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-content p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.search-bar i {
    color: var(--text-muted);
    margin-left: 12px;
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Home Cards */
.home-cards {
    margin-bottom: 24px;
}

.card-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.home-card {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.home-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.home-card:active {
    transform: scale(0.98);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-icon.blue { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); }
.card-icon.green { background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light)); }
.card-icon.orange { background: linear-gradient(135deg, var(--accent-orange), #F7C794); }
.card-icon.purple { background: linear-gradient(135deg, var(--accent-purple), #B8ABD6); }

.home-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Section Title */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Brands Slider */
.brands-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.brands-slider::-webkit-scrollbar {
    display: none;
}

.brand-item {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.brand-item:hover {
    transform: scale(1.05);
}

.brand-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.brand-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Popular Parts */
.popular-parts {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.popular-parts::-webkit-scrollbar {
    display: none;
}

.part-card {
    flex-shrink: 0;
    width: 160px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.part-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.part-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.part-info {
    padding: 12px;
}

.part-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.part-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.part-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.part-rating i {
    color: #F5A962;
    font-size: 0.75rem;
}

.part-rating span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.brand-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.brand-card:active {
    transform: scale(0.98);
}

.brand-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.brand-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.model-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.model-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.model-card .model-info {
    padding: 12px;
    text-align: center;
}

.model-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.model-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Years List */
.years-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.year-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.year-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.year-item:active {
    transform: scale(0.95);
}

/* Part Type Cards */
.part-type-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.part-type-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
}

.part-type-card:hover {
    box-shadow: var(--shadow-md);
}

.part-type-card.new-parts:hover {
    border-color: var(--primary-color);
}

.part-type-card.used-parts:hover {
    border-color: var(--secondary-color);
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.new-parts .type-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.used-parts .type-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.type-icon i {
    font-size: 1.5rem;
    color: white;
}

.type-info {
    flex: 1;
}

.type-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.type-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.type-info ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-info li {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.type-info li i {
    color: var(--secondary-color);
    font-size: 0.6rem;
}

.card-arrow {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Parts Categories */
.parts-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.category-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-tab:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Suppliers List */
.suppliers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.supplier-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.supplier-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.supplier-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.supplier-info .supplier-type {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.supplier-type.original {
    background: #E8F5E9;
    color: #2E7D32;
}

.supplier-type.commercial {
    background: #E3F2FD;
    color: #1565C0;
}

.supplier-type.chinese {
    background: #FFF3E0;
    color: #E65100;
}

.supplier-price {
    text-align: left;
}

.supplier-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.supplier-price .currency {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.supplier-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Scrapyards List */
.scrapyards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scrapyard-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.scrapyard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.scrapyard-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.scrapyard-info .location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.scrapyard-info .location i {
    color: var(--accent-orange);
}

.scrapyard-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #FFF8E1;
    padding: 4px 8px;
    border-radius: 8px;
}

.scrapyard-rating i {
    color: #F5A962;
    font-size: 0.8rem;
}

.scrapyard-rating span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.scrapyard-cars {
    margin-bottom: 12px;
}

.scrapyard-cars h5 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.car-tag-small {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--background);
    border-radius: 12px;
    color: var(--text-secondary);
}

.scrapyard-actions {
    display: flex;
    gap: 8px;
}

.scrapyard-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.scrapyard-btn.call {
    background: var(--secondary-color);
    color: white;
}

.scrapyard-btn.map {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.scrapyard-btn:hover {
    transform: translateY(-1px);
}

/* Part Details */
.part-gallery {
    margin: -16px -16px 16px -16px;
}

.gallery-main {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
}

.gallery-thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbs img.active {
    border-color: var(--primary-color);
}

.part-details-content {
    padding-bottom: 80px;
}

.part-header {
    margin-bottom: 16px;
}

.part-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.part-rating-large {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #F5A962;
    font-size: 0.9rem;
}

.part-rating-large span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.part-price-section {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: #FFEBEE;
    color: #C62828;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.part-specs {
    margin-bottom: 20px;
}

.part-specs h3,
.compatible-cars h3,
.part-description h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.spec-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.spec-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.compatible-cars {
    margin-bottom: 20px;
}

.cars-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.car-tag {
    background: var(--background);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.part-description {
    margin-bottom: 24px;
}

.part-description p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.action-buttons {
    display: flex;
    gap: 10px;
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: var(--surface);
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    width: 50px;
    height: 50px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary i {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
}

.btn-secondary:hover i {
    color: var(--primary-color);
}

/* Search Screen */
.search-header {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.search-input-large {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.search-input-large i {
    color: var(--text-muted);
    margin-left: 12px;
}

.search-input-large input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.scan-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.scan-btn:hover {
    background: var(--primary-dark);
}

.search-suggestions h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.recent-searches {
    margin-bottom: 24px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.recent-item i {
    color: var(--text-muted);
}

.recent-item span {
    color: var(--text-primary);
}

.trending-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-tag {
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.trending-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* My Car Screen */
.my-cars-list {
    margin-bottom: 20px;
}

.my-car-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.my-car-card .car-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.my-car-card .car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-car-card .car-info {
    flex: 1;
}

.my-car-card .car-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.my-car-card .car-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.car-plate {
    font-size: 0.75rem;
    background: var(--background);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.car-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    cursor: pointer;
}

.add-car-btn {
    width: 100%;
    padding: 14px;
    background: var(--background);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-bottom: 24px;
}

.add-car-btn:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 164, 0.05);
}

.maintenance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maintenance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.maintenance-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-icon.warning {
    background: #FFF3E0;
    color: var(--accent-orange);
}

.maintenance-icon.success {
    background: #E8F5E9;
    color: var(--secondary-color);
}

.maintenance-icon i {
    font-size: 1.1rem;
}

.maintenance-info {
    flex: 1;
}

.maintenance-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.maintenance-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.maintenance-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
}

.maintenance-status.warning {
    background: #FFF3E0;
    color: #E65100;
}

.maintenance-status.success {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Account Screen */
.account-header {
    text-align: center;
    padding: 24px 0;
    margin-bottom: 24px;
}

.account-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.account-avatar i {
    font-size: 2rem;
    color: white;
}

.account-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.account-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.account-menu {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--background);
}

.menu-item i:first-child {
    width: 24px;
    color: var(--primary-color);
    margin-left: 12px;
}

.menu-item span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.menu-item i:last-child {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.menu-item.logout i:first-child {
    color: #E74C3C;
}

.menu-item.logout span {
    color: #E74C3C;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 500;
}

.nav-item.active i {
    color: var(--primary-color);
}

.nav-item.active span {
    color: var(--primary-color);
}

/* Responsive */
@media (min-width: 768px) {
    .screens-container {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    
    .app-header {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .action-buttons {
        max-width: 448px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
