:root {
    --primary-color: #f97316;
    /* Orange */
    --primary-dark: #ea580c;
    --secondary-color: #3f3f46;
    --background-color: #09090b;
    /* Zinc 950 */
    --card-color: #18181b;
    /* Zinc 900 */
    --text-color: #f4f4f5;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

#app,
.main-content,
#view-container {
    width: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
    /* Increased space for Bottom Nav */
    -webkit-tap-highlight-color: transparent;
}

.dashboard-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

/* --- Sidebar Redesign --- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    /* Full viewport height */
    width: 280px;
    background-color: var(--background-color);
    z-index: 2000;
    /* Higher than overlays */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    /* Shadow added */
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-top {
    margin-bottom: 20px;
    padding-left: 10px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.app-logo-icon {
    color: var(--primary-color);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar-large {
    width: 50px;
    height: 50px;
    background-color: var(--card-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    background-image: url('https://i.pravatar.cc/150?u=a042581f4e29026024d');
    /* Mock Avatar */
    background-size: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.view-profile-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.sidebar-menu-card {
    background-color: var(--card-color);
    /* The dark rounded card */
    border-radius: 20px;
    padding: 10px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
    background-color: rgba(249, 115, 22, 0.05);
    border-left-color: var(--primary-color);
}

.nav-action-row {
    margin-top: auto;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    width: 100%;
}

/* --- Profile Revamp --- */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0px;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.1) 0%, rgba(9, 9, 11, 0) 100%);
    border-radius: 0;
    margin-bottom: 20px;
}

.profile-avatar-container {
    position: relative;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--card-color);
    border: 4px solid rgba(249, 115, 22, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    overflow: hidden;
    object-fit: cover;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.edit-avatar-btn:active {
    transform: scale(0.9);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.profile-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
    padding: 0;
}

.stat-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Settings List */
.settings-group {
    margin-bottom: 25px;
}

.settings-group h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-list {
    background: var(--card-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-color);
    text-decoration: none;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.settings-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--text-color);
}

.settings-text {
    flex: 1;
    font-weight: 500;
}

.settings-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.settings-item.danger-item {
    color: var(--danger-color);
}

.settings-item.danger-item .settings-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* --- Bottom Nav --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 70px;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;

    /* Grid Layout - Rock Solid */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 buttons, equal width */
    align-items: center;
    justify-items: center;

    z-index: 5000;
    /* Ensure high z-index */
    padding: 0 10px;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    font-size: 0;
    /* HIDE TEXT */
    gap: 0;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Flex Allocation */
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Each item takes equal space */
    min-width: 0;
    /* Prevent overflow */
    width: 100%;
    /* Fill grid cell */
    min-width: 0;
}

.bottom-nav .nav-item:hover {
    transform: scale(1.15);
    color: var(--primary-color);
}

.bottom-nav .nav-item i {
    margin: 0;
    font-size: 1.3rem;
}

.bottom-nav .nav-item.active {
    color: var(--primary-color);
    background: none;
    border: none;
    transform: scale(1.05);
}

/* --- Header Redesign --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-center svg {
    filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.5));
}

#page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* --- Floating Bottom Button --- */
.nav-center-container {
    position: relative;
    /* Restore to flow */
    grid-column: 3;
    /* Force into center slot */
    top: -10px;
    /* Centered visually, slight overlap */
    width: 100%;
    height: 0;
    /* Don't occupy height in the grid row */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5010;
    pointer-events: none;
}

.nav-center-btn {
    width: 80px;
    height: 80px;
    background: none;
    /* Let SVG handle color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Glow Effect on Edges */
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
    box-shadow: none;
    /* REMOVED Outer Shadow */
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
    pointer-events: auto;
}

.nav-center-btn svg {
    width: 100%;
    height: 100%;
}

.nav-center-btn:hover {
    transform: scale(1.15);
    /* Grow on hover */
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.9));
    /* Stronger glow */
}

.nav-center-btn:active {
    transform: scale(0.95);
}

/* --- General Components --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-color);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 16px;
}

.btn {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.card {
    background-color: var(--card-color);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    box-sizing: border-box;
    font-size: 16px;
}

h1,
h2,
h3 {
    margin: 0;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 15px;
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
}

.content-area {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
    /* More padding */
}

/* Glass Effect */
.glass {
    background: rgba(24, 24, 27, 0.7);
    /* Zinc 900 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 24px;
}

.auth-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.auth-card .form-group label {
    display: block;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 4px;
}

.role-select {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.role-select.active {
    border-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
}

/* Role Switcher (Top Tabs) */
.role-switch-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.role-switch-btn.active {
    background: var(--card-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.auth-footer {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Helpers */
.vehicle-tag {
    background: rgba(249, 115, 22, 0.2);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #fbbf24;
}

.mechanic-list {
    display: grid;
    gap: 16px;
}

.mechanic-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.mechanic-img {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
}

.mechanic-info {
    flex: 1;
}

.mechanic-meta {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar Close Button */
.close-sidebar-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.close-sidebar-btn:hover {
    color: var(--text-color);
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Language Modal & Polish */
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.05);
    /* Fixed typo in previous attempt if any */
}

.language-option.selected {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary-color);
}

.language-option img {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.language-option .check-icon {
    margin-left: auto;
    color: var(--primary-color);
}

/* Enhanced Settings Icons */
.settings-item i {
    font-size: 1rem;
}

/* --- Dashboard Action Cards --- */
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-card {
    background: var(--card-color);
    /* Fallback or match card */
    background: linear-gradient(145deg, #1e1e21, #18181b);
    /* Subtle gradient */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.05);
    /* Orange tint */
    box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.3);
}

.action-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.action-card:hover .action-card-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.action-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fff;
}

.action-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* --- Shop Settings Form Polish --- */
.settings-form-group {
    margin-bottom: 20px;
}

.settings-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.settings-input,
.settings-select,
.settings-textarea {
    width: 100%;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.settings-input:focus,
.settings-select:focus,
.settings-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
}

.brand-checkbox {
    display: none;
}

.brand-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-align: center;
    user-select: none;
}

.brand-checkbox:checked+.brand-chip {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.brand-chip:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* --- Dashboard Tabs (Segmented Control) --- */
.dashboard-tabs {
    display: flex;
    background-color: var(--surface-color, #18181b);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #27272a);
    margin-bottom: 20px;
    gap: 4px;
}

.dashboard-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-tab-btn:hover {
    color: var(--text-color, #fff);
    background-color: rgba(255, 255, 255, 0.05);
}

.dashboard-tab-btn.active {
    background-color: var(--primary-color, #f97316);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Layout --- */

/* Ensure empty state is centered */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

/* Premium Segmented Control Tabs */
.dashboard-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    background-color: #18181b;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid #27272a;
    margin-bottom: 25px;
    gap: 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

.dashboard-tab-btn {
    flex: 0 0 auto;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: #a1a1aa;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-tab-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.03);
}

.dashboard-tab-btn.active {
    background-color: #f97316;
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
}

/* Floating Bottom Nav */
.bottom-nav {
    max-width: 600px;
    width: 90%;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(9, 9, 11, 0.95);
    position: fixed;
    z-index: 5000;
}

#auth-view {
    width: 100%;
    max-width: 450px;
    margin: auto;
    box-sizing: border-box;
}

/* Dashboard Action Cards */
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-card {
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.4), rgba(24, 24, 27, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.6), rgba(24, 24, 27, 0.9));
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.action-card:hover::before {
    transform: translateX(100%);
}

.action-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4));
}

.action-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.action-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tab Visibility */
.hidden-force {
    display: none !important;
}

/* --- Time Slot Picker --- */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.time-slot-btn {
    padding: 12px 8px;
    text-align: center;
    background: var(--card-color, #18181b);
    border: 1px solid var(--border-color, #27272a);
    border-radius: 12px;
    color: var(--text-color, #fff);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.time-slot-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.1);
}

.time-slot-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}

.time-slot-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* --- Job Progress Bar --- */
.job-progress {
    margin: 15px 0 10px;
    padding: 12px 0;
}

.job-progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.job-progress-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.job-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.job-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.job-step-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 70px;
    line-height: 1.2;
}

.job-progress-step.active .job-step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
    animation: pulse-glow 2s infinite;
}

.job-progress-step.active .job-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.job-progress-step.completed .job-step-icon {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.job-progress-step.completed .job-step-label {
    color: #10b981;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.7);
    }
}

.job-status-btn {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.job-status-btn.next-step {
    background: var(--primary-color);
    color: #fff;
}

.job-status-btn.next-step:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Star Review Modal --- */
.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.star-rating i {
    font-size: 2.2rem;
    color: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating i.active,
.star-rating i:hover {
    color: #fbbf24;
    transform: scale(1.15);
}

.star-rating i:hover~i {
    color: var(--border-color);
    transform: scale(1);
}

.review-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.pickup-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pickup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.completed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    color: #10b981;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* --- Notification Badges --- */
.nav-badge {
    position: absolute;
    top: 5px;
    right: 25%;
    /* Position relative to the icon/center */
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    border: 2px solid var(--card-color);
    /* Cutout effect on dark bg */
}

/* Specific adjustment for bottom nav grid items if needed */
.bottom-nav .nav-item .nav-badge {
    top: 10px;
    right: calc(50% - 18px);
    /* Center + offset */
}

.nav-badge-sidebar {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    border: 2px solid var(--card-color);
}

.pulse-badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}