.hero-banner {
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(160deg, #0d0d0d 0%, #0a1428 40%, #0d0d0d 100%);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 243, 255, 0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(57, 255, 20, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: heroGlowPulse 6s ease-in-out infinite alternate;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: particleFloat 8s infinite;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 1;
}

.logo-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-text h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 300;
}

.logo-version {
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.9;
    margin-top: 2px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--accent);
    background: rgba(57, 255, 20, 0.1);
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.hero-stats {
    display: flex;
    gap: 1.2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    min-width: 60px;
}

.hero-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    padding: 0 1.5rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}

.header-logo-mini {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0;
    transition: opacity 0.3s;
}

.header-logo-mini i {
    color: var(--primary);
    font-size: 1.1rem;
}

.header-logo-mini .highlight {
    color: var(--primary);
}

.header-logo-mini.visible {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.btn-header-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    position: relative;
}

.btn-header-action:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.25);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.15);
}

.btn-header-action:active {
    transform: scale(0.92);
}

.btn-header-action.config-trigger {
    color: var(--text-muted);
    opacity: 0.7;
}

.btn-header-action.config-trigger:hover {
    color: var(--text-main);
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.btn-header-action::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-header-action:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

@media (max-width: 450px) {
    .btn-header-action::after {
        display: none;
    }
}

.btn-install-premium {
    background: linear-gradient(90deg, #D4AF37, #b8952d);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: #000;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    animation: pulseInstall 2s infinite;
    white-space: nowrap;
}

.search-container {
    padding: 0.75rem 1.5rem 0.5rem;
}

.search-box {
    background: rgba(25, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.55rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.12);
    background: rgba(25, 25, 25, 0.95);
}

.search-box i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-main);
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.filters-container {
    padding: 0.5rem 1.5rem;
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
}

.filter-btn {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.container {
    padding: 1rem 1.5rem 6rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.card {
    background: rgba(20, 20, 20, 0.6);
    border: var(--glass-border);
    border-left: 3px solid var(--card-accent, var(--primary));
    border-radius: 16px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    overflow: visible;
    animation: fadeInUp 0.4s ease-out backwards;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 243, 255, 0.2);
    border-color: rgba(0, 243, 255, 0.4);
}

.card:active {
    transform: scale(0.98);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-actions-top {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-delete {
    background: none;
    border: none;
    color: #ff3b3b;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-notes {
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--primary);
    padding: 0.5rem 0.7rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    color: #ccc;
    font-style: italic;
    margin: 0;
}

.card-actions-row {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.btn-card {
    border: none;
    border-radius: 50px;
    padding: 0.8rem;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: filter 0.2s;
}

.btn-waze {
    background: var(--gradient-main);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-card:hover {
    filter: brightness(1.1);
}

.btn-share-pro {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    grid-column: span 2;
}

.btn-share-pro:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.distance-badge {
    position: static;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cost-badge {
    position: static;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fuel-price-badge {
    position: static;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid orange;
    color: orange;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.card-tags span {
    font-size: 0.7rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.card-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-mode {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
}

.gallery-card {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
    gap: 0;
}

.gallery-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-photo {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 1rem 0.8rem 0.8rem;
    color: #fff;
}

.gallery-overlay h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-overlay span {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: capitalize;
}

.gallery-card .card-actions-row {
    padding: 0.6rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.3rem;
}

.gallery-card .card-actions-row .btn-card {
    font-size: 0.75rem;
    padding: 0.5rem;
}

.track-icon {
    background: rgba(0, 243, 255, 0.1);
}

.track-stats {
    display: flex;
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.track-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-view-track {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.modal-leaving {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.modal-entering .modal-content.glass {
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-content.glass {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(22, 22, 22, 0.9);
    border-radius: 24px 24px 0 0;
    padding: 2rem;
    border-top: 1px solid var(--primary);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

@media(min-width: 600px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-content.glass {
        border-radius: 24px;
        border: 1px solid var(--primary);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.location-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gps-row {
    display: flex;
    gap: 0.5rem;
}

.gps-row .btn-gps {
    flex: 1;
}

.btn-gps {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-gps:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.btn-geocode {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-geocode:hover {
    background: var(--primary);
    color: #000;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.address-search-wrap {
    position: relative;
}

.address-input-row {
    display: flex;
    gap: 0.5rem;
}

.address-input-row input {
    flex: 1;
}

.btn-search-address {
    width: 48px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-search-address:hover {
    background: var(--primary);
    color: #000;
}

.geocode-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1e1e1e;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.geocode-result-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.geocode-result-item:last-child {
    border-bottom: none;
}

.geocode-result-item:hover {
    background: rgba(0, 243, 255, 0.08);
}

.geocode-result-item i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.geocode-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.geocode-coords {
    font-size: 0.65rem;
    color: var(--primary);
    margin-top: 2px;
    font-weight: 500;
}

.photo-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-upload input[type="file"] {
    display: none;
}

.btn-photo {
    background: rgba(0, 243, 255, 0.1);
    border: 1px dashed var(--primary);
    color: var(--primary);
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-photo:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--primary);
}

.photo-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 180px;
}

.photo-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.btn-remove-photo {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.btn-remove-photo:hover {
    background: #ff3b3b;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid var(--primary);
    border-left: 5px solid var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
    pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.toast.success {
    border-color: var(--accent);
    border-left-color: var(--accent);
}

.toast.error {
    border-color: #ff3b3b;
    border-left-color: #ff3b3b;
}

.toast i {
    font-size: 1.2rem;
}

.toast.fade-out {
    animation: fadeOutDown 0.3s ease-in forwards;
}

.snapshot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    gap: 0.5rem;
}

.snapshot-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

.snapshot-info i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.snapshot-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.snapshot-size {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.snapshot-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-around;
    }

    .hero-stat {
        flex: 1;
    }

    .badge-ring {
        width: 46px;
        height: 46px;
        padding: 5px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .locations-grid {
        grid-template-columns: 1fr !important;
    }

    .card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .card-actions-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }
}
