/* EliteAds Complete Demo Styles v2026 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary: #e91e63;
    --primary-light: #ff5c8d;
    --primary-dark: #b0003a;
    --secondary: #9c27b0;
    --gold: #ffd700;
    --gold-dark: #c9a227;
    --bg-dark: #0a0a0f;
    --bg-card: #141419;
    --bg-card-hover: #1a1a22;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(233, 30, 99, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(233, 30, 99, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --independent-color: #4caf50;
    --agency-color: #2196f3;
    --parlour-color: #9c27b0;
    --broker-color: #ff9800;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', 'Noto Sans SC', sans-serif; background: var(--bg-dark); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.3; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff4081; }
img { max-width: 100%; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.nav-main { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 16px; color: var(--text-secondary); font-weight: 500; border-radius: var(--radius-md); transition: all 0.2s; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--primary-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--primary); }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #1a1a22; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: transparent; color: var(--primary-light); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text-secondary); font-size: 0.9rem; }
.form-label.required::after { content: '*'; color: var(--primary); margin-left: 4px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; transition: all 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { margin-top: 4px; font-size: 0.8rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s; }
.card:hover { border-color: var(--border-glow); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); background: rgba(0,0,0,0.2); }

/* Ad Cards */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ad-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s; }
.ad-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.ad-card-image { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.ad-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ad-card:hover .ad-card-image img { transform: scale(1.05); }
.ad-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.ad-badge { padding: 4px 8px; font-size: 0.65rem; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.ad-badge-vip { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #1a1a22; }
.ad-badge-new { background: var(--primary); color: white; }
.ad-badge-verified { background: var(--success); color: white; }
.ad-badge-premium { background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%); color: white; }
.ad-badge-online { background: var(--success); color: white; animation: pulse 2s infinite; }
.ad-badge-independent { background: var(--independent-color); color: white; }
.ad-badge-agency { background: var(--agency-color); color: white; }
.ad-badge-parlour { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); color: white; }
.ad-badge-broker { background: var(--broker-color); color: white; }
.ad-card-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.ad-action-btn { width: 32px; height: 32px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border: none; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.85rem; }
.ad-action-btn:hover { background: var(--primary); transform: scale(1.1); }
.ad-action-btn.favorited { background: var(--primary); }
.ad-card-body { padding: 14px; }
.ad-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card-title a:hover { color: var(--primary-light); }
.ad-card-tagline { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 0.8rem; color: var(--text-secondary); }
.ad-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ad-card-price { font-size: 1rem; font-weight: 700; color: var(--primary-light); }
.ad-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ad-tag { padding: 2px 6px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; font-size: 0.7rem; color: var(--text-muted); }

/* Dashboard Layout */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; padding-top: 70px; }
.dashboard-sidebar { background: var(--bg-card); border-right: 1px solid var(--border-color); padding: 20px 12px; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.dashboard-user { text-align: center; padding: 16px 0 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 16px; }
.dashboard-user-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 3px solid var(--primary); }
.dashboard-user-name { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.dashboard-user-type { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.dashboard-user-type.independent { background: rgba(76, 175, 80, 0.2); color: var(--independent-color); }
.dashboard-user-type.agency { background: rgba(33, 150, 243, 0.2); color: var(--agency-color); }
.dashboard-user-type.broker { background: rgba(255, 152, 0, 0.2); color: var(--broker-color); }
.dashboard-user-type.vip { background: rgba(255, 215, 0, 0.2); color: var(--gold); }
.dashboard-nav { list-style: none; }
.dashboard-nav-item { margin-bottom: 2px; }
.dashboard-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text-secondary); border-radius: var(--radius-md); transition: all 0.2s; font-size: 0.9rem; }
.dashboard-nav-link:hover, .dashboard-nav-link.active { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.dashboard-nav-link.active { background: rgba(233, 30, 99, 0.15); color: var(--primary-light); }
.dashboard-nav-icon { width: 18px; text-align: center; font-size: 0.9rem; }
.dashboard-nav-badge { margin-left: auto; background: var(--primary); color: white; padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; }
.dashboard-content { padding: 24px; min-height: calc(100vh - 70px); }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.dashboard-title { font-size: 1.4rem; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 18px; }
.stat-card-label { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }
.stat-card-value { font-size: 1.75rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.stat-card-change { font-size: 0.8rem; margin-top: 4px; }
.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--danger); }

/* Data Table */
.data-table { width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; }
.data-table th { background: rgba(255, 255, 255, 0.03); font-weight: 600; color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tr { border-bottom: 1px solid var(--border-color); }
.data-table tr:last-child { border-bottom: none; }
.data-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.status-active { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.status-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.status-expired { background: rgba(244, 67, 54, 0.15); color: var(--danger); }
.status-paused { background: rgba(158, 158, 158, 0.15); color: #9e9e9e; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.tab { padding: 12px 20px; color: var(--text-secondary); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); }
.modal.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 1.25rem; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); display: flex; gap: 12px; justify-content: flex-end; }

/* Contact Info Box */
.contact-box { background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%); border: 1px solid rgba(233, 30, 99, 0.3); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.contact-box-locked { filter: blur(5px); user-select: none; }
.contact-info { font-size: 1.25rem; font-weight: 600; color: var(--primary-light); margin: 12px 0; }
.contact-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Upload Zone */
.upload-zone { border: 2px dashed var(--border-color); border-radius: var(--radius-lg); padding: 40px; text-align: center; cursor: pointer; transition: all 0.3s; }
.upload-zone:hover { border-color: var(--primary); background: rgba(233, 30, 99, 0.05); }
.upload-zone-icon { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }

/* Pricing Cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 28px; position: relative; transition: all 0.3s; }
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card.featured { border-color: var(--gold); box-shadow: 0 0 40px rgba(255, 215, 0, 0.15); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 14px; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); border-radius: 20px; font-size: 0.7rem; font-weight: 600; color: #1a1a22; }
.pricing-tier { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-light); margin-bottom: 6px; }
.pricing-name { font-size: 1.4rem; margin-bottom: 10px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-amount { font-size: 2.25rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.pricing-period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-desc { color: var(--text-secondary); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }
.pricing-feature::before { content: '✓'; color: var(--primary-light); font-weight: bold; }
.pricing-feature.disabled { color: var(--text-muted); text-decoration: line-through; }
.pricing-feature.disabled::before { content: '✕'; color: var(--text-muted); }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border-color); margin-top: 60px; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.footer-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-size: 0.9rem; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.2s; }
.footer-social a:hover { background: var(--primary); color: white; }
.footer-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; color: var(--text-primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.8rem; }

/* Age Modal */
.age-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px); }
.age-modal-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px; text-align: center; max-width: 440px; }
.age-modal-icon { font-size: 3rem; margin-bottom: 16px; }
.age-modal-title { font-size: 1.5rem; margin-bottom: 12px; }
.age-modal-text { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.95rem; }
.age-modal-buttons { display: flex; gap: 12px; justify-content: center; }

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-light); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gold { color: var(--gold); }
.fw-bold { font-weight: 600; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-0 { padding: 0; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.hidden { display: none !important; }

/* Animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn 0.3s ease; }

/* Responsive - Mobile First */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 12px; }
    
    /* Header Mobile */
    .header { padding: 8px 0; }
    .header-inner { padding: 0 12px; }
    .logo { font-size: 1.2rem; }
    .logo-icon { width: 30px; height: 30px; font-size: 0.9rem; }
    .nav-main { display: none; }
    .header-actions { gap: 6px; }
    .btn-sm { padding: 6px 10px; font-size: 0.75rem; }
    .btn-sm i + span, .btn-sm span { display: none; }
    .btn-sm i { margin: 0; }
    
    /* Cards Mobile */
    .card { border-radius: 12px; }
    .card-header { padding: 12px; }
    .card-body { padding: 12px; }
    .card-footer { padding: 12px; }
    
    /* Forms Mobile */
    .form-group { margin-bottom: 12px; }
    .form-label { font-size: 0.8rem; margin-bottom: 4px; }
    .form-input, .form-select, .form-textarea { 
        padding: 10px 12px; 
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    .form-row { grid-template-columns: 1fr; gap: 12px; }
    
    /* Buttons Mobile */
    .btn { 
        padding: 10px 16px; 
        font-size: 0.85rem;
        min-height: 44px;
        border-radius: 8px;
    }
    .btn-block { width: 100%; }
    
    /* Dashboard Mobile */
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { display: none; }
    .dashboard-content { padding: 12px; }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 1.5rem; }
    
    /* Gallery Mobile */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-item { border-radius: 8px; }
    
    /* Tables Mobile */
    .table { font-size: 0.8rem; }
    .table th, .table td { padding: 8px 10px; }
    
    /* Pricing Mobile */
    .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
    .pricing-card { padding: 20px; }
    
    /* Footer Mobile */
    .footer { padding: 24px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding-top: 16px; }
    .footer-links { justify-content: center; }
    
    /* Modals Mobile */
    .modal-content { 
        margin: 12px; 
        border-radius: 12px;
        max-height: calc(100vh - 24px);
    }
    .modal-header, .modal-body, .modal-footer { padding: 14px; }
    
    /* Alerts Mobile */
    .alert { padding: 12px; font-size: 0.85rem; border-radius: 8px; }
    
    /* Badges Mobile */
    .badge, .ad-badge { padding: 3px 6px; font-size: 0.65rem; }
    
    /* Tabs Mobile */
    .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tab { padding: 10px 14px; font-size: 0.8rem; white-space: nowrap; }
}

/* Large Mobile (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .container { padding: 0 16px; }
    .nav-main { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .nav-main { display: none; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet Landscape (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop (993px+) */
@media (min-width: 993px) {
    .dashboard-layout { grid-template-columns: 260px 1fr; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch */
    .btn:hover { transform: none; }
    .card:hover { transform: none; box-shadow: none; }
    .nav-link:hover { color: inherit; }
    
    /* Ensure touch targets are at least 44px */
    .btn, button, a.nav-link, .tab, input[type="checkbox"], input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better tap feedback */
    .btn:active { transform: scale(0.98); opacity: 0.9; }
}

/* Landscape Phone */
@media (max-height: 500px) and (orientation: landscape) {
    .header { position: relative; }
    .modal-content { max-height: 90vh; }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img { image-rendering: -webkit-optimize-contrast; }
}

/* Safe Area for Notched Phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .modal-content { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-nav-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-sidebar.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Only show mobile nav button on mobile */
@media (max-width: 768px) {
    .mobile-nav-btn {
        display: flex;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .dashboard-layout {
        display: block;
    }
    
    .dashboard-content {
        padding: 16px;
    }
}

/* ============================================
   LOCATION SELECTOR MODAL
   ============================================ */
.location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.location-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.location-btn i {
    color: var(--accent);
}

.location-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.location-modal.active {
    opacity: 1;
    visibility: visible;
}

.location-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.location-modal.active .location-modal-content {
    transform: translateY(0) scale(1);
}

.location-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.location-modal-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.location-modal-header h3 i {
    color: var(--accent);
}

.location-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.location-search {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.location-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.location-search-input:focus {
    border-color: var(--accent);
}

.location-search-input::placeholder {
    color: var(--text-secondary);
}

.location-search-wrapper {
    position: relative;
}

.location-search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.location-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 32px;
}

.location-column h4 {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,162,39,0.3);
}

.location-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-column li {
    margin-bottom: 8px;
}

.location-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
    display: block;
    padding: 4px 0;
}

.location-column a:hover {
    color: #fff;
    padding-left: 8px;
}

@media (max-width: 768px) {
    .location-btn span {
        display: none;
    }
    
    .location-btn {
        padding: 8px 12px;
    }
    
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .location-modal-content {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }
}
