/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Primary Colors */
    --primary-dark: #0A2B1A;
    --primary-green: #1e6b45;
    --primary-light: #2E8B57;
    --accent-gold: #DDC275;
    --accent-gold-light: #E8C989;
    
    /* Neutral Colors */
    --neutral-dark: #1A1A1A;
    --neutral-medium: #666666;
    --neutral-light: #F5F5F5;
    --neutral-white: #FFFFFF;
    --neutral-border: #E8E8E8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0A2B1A 0%, #1e6b45 100%);
    --gradient-gold: linear-gradient(135deg, #DDC275 0%, #E8C989 100%);
    --gradient-hero: linear-gradient(rgba(30, 107, 69, 0.85), rgba(10, 43, 26, 0.95));
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--neutral-light);
    color: var(--neutral-dark);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Screen Management ===== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Splash Screen ===== */
#splash-screen {
    background: linear-gradient(135deg, #0A2B1A 0%, #1e6b45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.splash-content {
    text-align: center;
    animation: slideUp 0.6s ease;
}

.logo-container {
    margin-bottom: var(--space-xl);
}

/* Your Logo Styling */
.app-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm);
}

.app-title {
    color: var(--neutral-white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.5px;
}

.app-subtitle {
    color: var(--accent-gold-light);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.loading-indicator {
    margin-top: var(--space-xl);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

.loading-text {
    color: var(--neutral-white);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* ===== Auth Screen ===== */
#auth-screen {
    background: linear-gradient(135deg, #0A2B1A 0%, #1e6b45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23ffffff" opacity="0.03" d="M0,0 L100,0 L100,100 Z"/></svg>');
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.6s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Your Logo in Auth */
.auth-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-xs);
}

.auth-title {
    color: var(--neutral-white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    color: var(--accent-gold-light);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form.active {
    display: flex;
}

.form-group {
    position: relative;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 18px;
}

.input-with-icon input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 16px;
    color: var(--neutral-dark);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--neutral-white);
    box-shadow: 0 0 0 4px rgba(221, 194, 117, 0.15);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--neutral-medium);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--primary-green);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    margin-top: var(--space-sm);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    color: var(--neutral-white);
    font-size: 14px;
    margin-top: var(--space-lg);
}

.auth-switch a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.auth-switch a:hover {
    opacity: 0.9;
}

/* ===== App Screen ===== */
#app-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--neutral-light);
}

/* Header with Your Logo */
.app-header {
    background: var(--gradient-primary);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Your Logo in Header */
.app-logo-small {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.header-greeting h1 {
    color: var(--neutral-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

#user-name {
    color: var(--accent-gold-light);
    font-size: 12px;
    opacity: 0.9;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: var(--neutral-white);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: background var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF4757;
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Main Content ===== */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.page {
    display: none;
    height: 100%;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Home Page ===== */
.hero-section {
    padding: var(--space-lg);
    padding-top: var(--space-md);
}

.hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 280px;
    background: linear-gradient(135deg, #1e6b45 0%, #0A2B1A 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(30, 107, 69, 0.8), rgba(10, 43, 26, 0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl);
    color: var(--neutral-white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-item i {
    color: var(--accent-gold);
    font-size: 16px;
}

.stat-item span {
    font-size: 14px;
    font-weight: 500;
}

.quick-actions {
    padding: var(--space-lg);
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.action-card {
    background: var(--neutral-white);
    border: 2px solid var(--neutral-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: block;
    width: 100%;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e6b45, #0A2B1A);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--neutral-white);
    font-size: 24px;
}

.action-card h3 {
    color: var(--neutral-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.action-card p {
    color: var(--neutral-medium);
    font-size: 14px;
    line-height: 1.4;
}

/* ===== Explore Page ===== */
.map-header {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--neutral-border);
    box-shadow: var(--shadow-sm);
}

.search-container {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    position: relative;
}

.search-input {
    flex: 1;
    position: relative;
}

.search-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    z-index: 2;
}

.search-input input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--neutral-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 16px;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.search-input input:focus {
    outline: none;
    background: var(--neutral-white);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(30, 107, 69, 0.1);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.search-result-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--neutral-border);
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.search-result-item:hover {
    background: var(--neutral-light);
}

.search-result-item i {
    color: var(--primary-green);
    font-size: 18px;
}

.search-result-item h4 {
    color: var(--neutral-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-item p {
    color: var(--neutral-medium);
    font-size: 12px;
}

.filter-btn {
    background: var(--primary-green);
    color: var(--neutral-white);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 20px;
    transition: background var(--transition-fast);
}

.filter-btn:hover {
    background: var(--primary-dark);
}

/* Filters Panel (RESTORED) */
.filters-panel {
    margin-top: var(--space-lg);
    display: none;
    animation: slideDown 0.3s ease;
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-border);
}

.filters-panel.active {
    display: block;
}

.filter-section h4 {
    color: var(--neutral-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.filter-option {
    background: var(--neutral-light);
    border: 2px solid var(--neutral-border);
    color: var(--neutral-medium);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-option:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-option.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--neutral-white);
}

.filter-option.active i {
    color: var(--neutral-white);
}

/* Filter Actions (RESTORED) */
.filter-actions {
    display: flex;
    gap: var(--space-md);
}

.btn-filter {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
}

.apply-filter {
    background: var(--primary-green);
    color: var(--neutral-white);
}

.apply-filter:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.clear-filter {
    background: var(--neutral-light);
    color: var(--neutral-medium);
    border: 2px solid var(--neutral-border);
}

.clear-filter:hover {
    background: var(--neutral-border);
    transform: translateY(-2px);
}

.map-container {
    flex: 1;
    position: relative;
    height: calc(100vh - 240px);
    background: #f8f9fa;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.map-overlay {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.location-info {
    background: rgba(10, 43, 26, 0.95);
    color: var(--neutral-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.location-info i {
    color: var(--accent-gold);
}

.map-controls {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 10;
}

.map-control {
    background: var(--neutral-white);
    border: 2px solid var(--neutral-border);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    color: var(--primary-dark);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.map-control:hover {
    background: var(--primary-green);
    color: var(--neutral-white);
    border-color: var(--primary-green);
    transform: scale(1.05);
}

/* ===== Place Details Modal (RESTORED) ===== */
.place-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-end;
    z-index: 2000;
}

.place-modal.active {
    display: flex;
}

.place-modal-content {
    background: var(--neutral-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    -webkit-overflow-scrolling: touch;
}

.place-header {
    position: sticky;
    top: 0;
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--neutral-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.place-header h3 {
    color: var(--neutral-dark);
    font-size: 20px;
    font-weight: 700;
}

.close-place {
    background: none;
    border: none;
    color: var(--neutral-medium);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.close-place:hover {
    background: var(--neutral-light);
}

.place-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: 60px;
}

.place-details {
    padding: var(--space-lg);
}

.place-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.place-title h2 {
    color: var(--neutral-dark);
    font-size: 24px;
    font-weight: 700;
    flex: 1;
}

.place-rating {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.place-category {
    display: inline-block;
    background: var(--neutral-light);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.place-description {
    color: var(--neutral-medium);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.place-info-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.place-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--neutral-light);
    border-radius: var(--radius-lg);
}

.place-info-item i {
    color: var(--primary-green);
    font-size: 18px;
    width: 24px;
}

.place-info-item span {
    font-size: 14px;
    color: var(--neutral-dark);
    font-weight: 500;
    flex: 1;
}

.distance-badge {
    background: var(--primary-green);
    color: var(--neutral-white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.place-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-lg) var(--space-xl);
}

.place-action-btn {
    background: var(--primary-green);
    color: var(--neutral-white);
    border: none;
    padding: 16px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
}

.place-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.place-action-btn.save {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== Card Page ===== */
.card-container {
    padding: var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-card {
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--neutral-border);
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--neutral-white);
    font-size: 32px;
}

.coming-soon-card h2 {
    color: var(--neutral-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.coming-soon-text {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.coming-soon-desc {
    color: var(--neutral-medium);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.progress-container {
    margin-bottom: var(--space-xl);
}

.progress-bar {
    background: var(--neutral-border);
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.progress-text {
    color: var(--neutral-medium);
    font-size: 14px;
    font-weight: 500;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    width: 100%;
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--neutral-white);
    transform: translateY(-2px);
}

/* ===== Profile Page ===== */
.profile-header {
    background: var(--gradient-primary);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: var(--neutral-white);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--accent-gold);
    border: 3px solid rgba(221, 194, 117, 0.3);
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.profile-info p {
    opacity: 0.9;
    margin-bottom: var(--space-sm);
    font-size: 14px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(221, 194, 117, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.profile-badge i {
    color: var(--accent-gold);
}

.profile-stats {
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-card {
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-border);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e6b45, #0A2B1A);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: 20px;
}

.stat-content h3 {
    color: var(--neutral-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-content p {
    color: var(--neutral-medium);
    font-size: 14px;
}

.profile-menu {
    padding: var(--space-lg);
    padding-top: 0;
}

.profile-menu h3 {
    color: var(--neutral-dark);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-border);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--neutral-dark);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.menu-item:hover {
    background: var(--neutral-light);
    transform: translateX(4px);
}

.menu-item i:first-child {
    color: var(--primary-green);
    font-size: 18px;
    width: 24px;
}

.menu-item span {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.menu-item i:last-child {
    color: var(--neutral-medium);
    font-size: 14px;
}

.logout-btn {
    margin-top: var(--space-md);
    background: #FF4757;
    color: var(--neutral-white) !important;
    border-color: #FF4757 !important;
}

.logout-btn i:first-child {
    color: var(--neutral-white) !important;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neutral-white);
    border-top: 1px solid var(--neutral-border);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.nav-item {
    background: none;
    border: none;
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--neutral-medium);
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 80px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-item.active {
    color: var(--primary-green);
}

.nav-item.active .nav-icon {
    color: var(--accent-gold);
}

.nav-item:hover:not(.active) {
    color: var(--primary-dark);
}

/* ===== Modals ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 43, 26, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.4s ease;
    box-shadow: var(--shadow-xl);
}

.modal-content.compact {
    max-width: 320px;
    text-align: center;
    padding: var(--space-xl);
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--neutral-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--neutral-dark);
    font-size: 20px;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: var(--neutral-medium);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.close-modal:hover {
    background: var(--neutral-light);
}

.modal-body {
    padding: var(--space-lg);
    max-height: 60vh;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--neutral-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--neutral-border);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: 18px;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    color: var(--neutral-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-content p {
    color: var(--neutral-medium);
    font-size: 14px;
    margin-bottom: var(--space-xs);
}

.notification-time {
    color: var(--neutral-medium);
    font-size: 12px;
    font-weight: 500;
}

.modal-icon {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: var(--space-lg);
}

.modal-content.compact h3 {
    color: var(--neutral-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.modal-content.compact p {
    color: var(--neutral-medium);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.modal-close {
    width: 100%;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Responsive Design ===== */
@media (max-width: 480px) {
    .app-header {
        padding: var(--space-md);
    }
    
    .hero-content {
        padding: var(--space-lg);
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .place-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .modal-content {
        max-width: 500px;
    }
    
    .place-modal-content {
        max-width: 500px;
        margin: 0 auto;
        border-radius: var(--radius-xl);
    }
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

/* ===== PWA Enhancements ===== */
@media (display-mode: standalone) {
    .app-header {
        padding-top: env(safe-area-inset-top);
    }
    
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}