/*  * Irish Fishing Hub - Global Styles * Modern Dark UI for Irish Anglers */
:root {
    --bg-dark: #0a1120;
    --bg-card: #152238;
    --bg-card-hover: #1c2d4a;
    --accent-primary: #00d4ff;
    --accent-secondary: #0088ff;
    --accent-success: #00ff88;
    --accent-warning: #ffab00;
    --accent-danger: #ff4d4d;
    --text-main: #e6f1ff;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    --glass: rgba(21, 34, 56, 0.7);
    --border-glass: rgba(0, 212, 255, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 60px;
    /* Navbar height */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    z-index: 1000;
    padding: 0 var(--space-lg);
    transition: min-height 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    gap: var(--space-md);
    padding: 10px 0;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
    margin-left: auto;
}

/* Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
}

#user-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 6px;
    /* Compact padding */
    border-radius: 50%;
    /* Circle shape since mostly icon */
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid var(--border-glass);
}

/* Hide name and text badges globall for compact view */
#user-name-label {
    display: none !important;
}

#user-display .badge {
    display: none !important;
}

#user-display:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary);
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

.nav-title {
    line-height: 1.2;
}

.nav-links {
    display: none; /* Hidden globally to use hamburger menu instead */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 6px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-live {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.85rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-success);
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-success);
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Beginner Guide Styles */
.guide-container {
    max-width: 1200px;
    margin: 0 auto;
}

.guide-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 136, 255, 0.05));
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.guide-hero h1 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.guide-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.guide-card {
    display: flex;
    flex-direction: column;
}

.guide-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.guide-card-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-card-body strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

/* Page Containers */
.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}

/* Layout Grid (Dashboard) */
.app-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--space-lg);
    min-height: calc(100vh - 100px);
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding-right: var(--space-sm);
    min-width: 0; /* Critical: Prevents grid column blowout from big images */
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 10px;
}

/* Cards & Components */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Tide & Info Displays */
.tide-level {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.tide-unit {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.tide-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tide-status.rising {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-success);
}

.tide-status.falling {
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent-danger);
}

/* Regional Grouping */
.region-group {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.region-header {
    background: var(--bg-card);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.region-header:hover {
    background: var(--bg-card-hover);
}

.region-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.region-chevron {
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.region-content {
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.region-group.collapsed .region-content {
    display: none;
}

.region-group.collapsed .region-chevron {
    transform: rotate(-90deg);
}

/* Station Items */
.station-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-normal);
}

.station-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.station-item.active {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.station-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
}

.station-indicator.offline {
    background: var(--accent-danger);
    box-shadow: 0 0 8px var(--accent-danger);
}

.station-name {
    flex: 1;
    font-size: 0.95rem;
}

.station-level {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* Shop Items */
.shop-item {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: var(--space-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
    cursor: pointer;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.shop-name {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.shop-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.shop-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.shop-admin-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.shop-admin-actions .btn {
    font-size: 0.75rem;
    padding: 6px 12px;
}

.shop-admin-actions .btn-danger {
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

.shop-admin-actions .btn-danger:hover {
    background: var(--accent-danger);
    color: white;
}

/* Maintenance UI */
.maintenance-info {
    background: rgba(255, 171, 0, 0.05);
    border-left: 4px solid var(--accent-warning);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 12px 12px 0;
    display: flex;
    gap: var(--space-md);
}

.maintenance-icon {
    font-size: 1.5rem;
}

.maintenance-title {
    font-weight: 700;
    color: var(--accent-warning);
    display: flex;
    align-items: center;
    gap: 8px;
}

.maintenance-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-warning);
    border-radius: 50%;
}

.maintenance-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Map & Markers */
.map-container {
    height: 750px; /* Fill most of the screen on desktop */
    max-height: 750px; /* Ensure map is long */
    position: sticky;
    top: 95px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

#map,
#social-map {
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 20px;
}

/* Prevent Leaflet map tile gaps */
.leaflet-container img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-tile-pane img {
    image-rendering: auto;
    outline: 0 !important;
    box-shadow: none !important;
}

.leaflet-tile-container {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.tide-marker {
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.tide-marker:hover,
.tide-marker.active {
    transform: scale(1.3);
}

.tide-marker.offline {
    filter: grayscale(1) brightness(0.7);
    opacity: 0.6;
}

/* Button Component */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #00e5ff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* Community Styles */
#page-community {
    max-width: 1050px; /* Highly contained sleek feel */
}

#page-community .app-container {
    grid-template-columns: 360px 1fr; 
}

@media (max-width: 1024px) {
    #page-community .app-container {
        grid-template-columns: 1fr;
    }
}


.catch-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
}

.catch-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: var(--space-md);
    border-bottom: 2px solid var(--accent-secondary);
    min-width: 0;
}

.catch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pinned-post {
    border: 1px solid rgba(255, 171, 0, 0.3);
    background: linear-gradient(145deg, var(--bg-card), rgba(255, 171, 0, 0.05));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pinned-badge {
    background: rgba(255, 171, 0, 0.15);
    color: var(--accent-warning);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255, 171, 0, 0.2);
}

.pin-post-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-post-btn:hover {
    background: rgba(255, 171, 0, 0.1);
    color: var(--accent-warning);
    transform: scale(1.1);
}

.catch-species {
    font-weight: 700;
    color: var(--accent-primary);
}

.catch-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.catch-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.catch-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: var(--space-md);
    max-height: 300px;
    object-fit: cover;
    border: 1px solid var(--border-glass);
}

.catch-card-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-normal);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.social-btn.liked {
    color: var(--accent-danger);
}

/* Archive Toggle Button */
.archive-toggle-btn {
    width: 100%;
    margin-bottom: var(--space-md);
    text-align: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px dashed var(--accent-primary);
}

.archive-toggle-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* Admin Delete Post Button */
.delete-post-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: auto;
    transition: var(--transition-normal);
}

.delete-post-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    color: var(--accent-danger);
}

/* Comment Section */
.comments-section {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
}

.comments-section.active {
    display: block;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.comment-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.comment-text {
    color: var(--text-secondary);
}

.comment-input-area {
    display: flex;
    gap: 8px;
}

.comment-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

/* Comment Moderation Styles */
.comment-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.comment-content {
    flex: 1;
}

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

.comment-delete-btn,
.comment-report-btn {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.comment-delete-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px var(--accent-danger));
}

.comment-report-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px var(--accent-warning));
}

/* Report Modal */
.report-comment-text {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-md);
    border-radius: 8px;
    font-style: italic;
    margin-bottom: var(--space-md);
    border-left: 3px solid var(--accent-warning);
    color: var(--text-secondary);
}

/* Reported Comments Section */
.reported-comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.report-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: var(--space-md);
    border-left: 4px solid var(--accent-warning);
}

.report-card.status-removed {
    border-left-color: var(--accent-danger);
    opacity: 0.7;
}

.report-card.status-dismissed {
    border-left-color: var(--text-muted);
    opacity: 0.7;
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.report-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--accent-warning);
    color: var(--bg-dark);
}

.status-removed .report-status {
    background: var(--accent-danger);
}

.status-dismissed .report-status {
    background: var(--text-muted);
}

.report-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.report-content {
    margin: var(--space-md) 0;
}

.reported-comment {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-sm);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.report-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.report-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-danger:hover {
    background: #ff3333;
}

.report-filters {
    display: flex;
    gap: var(--space-sm);
}

/* Image Preview in Modal */
.image-preview {
    position: relative;
    margin-top: var(--space-sm);
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

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

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.file-input-wrapper input[type="file"] {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-input-wrapper input[type="file"]::file-selector-button {
    background: var(--bg-card-hover);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    transition: var(--transition-normal);
}

.file-input-wrapper input[type="file"]::file-selector-button:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

/* Directory Styles */
.directory-container {
    max-width: 1000px;
    margin: 0 auto;
}

.directory-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.county-group {
    margin-bottom: var(--space-sm);
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
}

.county-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid var(--border-glass);
}

.county-name {
    font-size: 1.25rem;
    font-weight: 700;
    flex: 1;
}

.county-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.county-shops {
    display: none;
    padding: var(--space-md);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.county-group.open .county-shops {
    display: grid;
}

.county-group.open .county-chevron {
    transform: rotate(180deg);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: var(--space-md);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-glass);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

/* Shop Details Modal Specifics */
.street-view-container {
    width: 100%;
    height: 350px;
    background: #050a14;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--accent-primary);
}

.street-view-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Premium Gating */
.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(10, 17, 32, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
}

.overlay-content {
    max-width: 500px;
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Gold border for premium hint */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffab00, #ffeb3b);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

.premium-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-success);
    margin: var(--space-lg) 0;
}

.premium-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-lg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-image-placeholder {
    color: var(--text-muted);
    text-align: center;
}

.shop-details-body {
    padding: var(--space-xl);
}

.shop-details-body h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: var(--space-md);
    background: linear-gradient(to right, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-meta-large {
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.shop-meta-large p {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Forms */
/* Profile Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

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

.profile-header-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-glass);
}

.avatar-upload-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

#profile-avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    background: var(--bg-card-hover);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
}

.profile-status {
    flex: 1;
}

.plan-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-card-hover);
    color: var(--text-muted);
    margin-bottom: 8px;
    border: 1px solid var(--border-glass);
}

.plan-badge.pro {
    background: linear-gradient(135deg, #ffab00, #ffea00);
    color: #000;
    border: none;
}

.btn-danger {
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}

.btn-danger:hover {
    background: rgba(255, 77, 77, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #0a1120;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-container {
        height: 400px;
        position: relative;
        top: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 var(--space-md);
    }

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 4px 6px;
    }

    .nav-live {
        display: none;
    }

    .street-view-container {
        height: 250px;
    }

    .shop-details-body {
        padding: var(--space-lg);
    }

    .shop-details-body h2 {
        font-size: 1.5rem;
    }

    .nav-title {
        font-size: 1.1rem;
        white-space: normal;
    }

    .nav-brand {
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .nav-title {
        font-size: 1rem;
    }

    .navbar {
        padding: 0 var(--space-sm);
    }
}

#current-time {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    font-weight: 500;
    min-width: 180px;
    text-align: right;
}

.shop-meta-large p a:hover {
    text-decoration: underline !important;
}

/* Member Modals & Forms */
.auth-form-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.auth-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: var(--space-md);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.auth-switch a {
    color: var(--accent-primary);
    text-decoration: none;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close-btn:hover {
    color: #fff;
}

/* Premium Modal Grid */
.premium-modal-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    text-align: left;
}

.premium-benefits {
    list-style: none;
    padding: 0;
    margin-top: var(--space-lg);
}

.premium-benefits li {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.premium-modal-cta {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--space-xl);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.price-bubble {
    margin-bottom: var(--space-md);
    text-align: center;
}

.price-bubble .currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-top: 10px;
    display: inline-block;
}

.price-bubble .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-success);
}

.price-bubble .freq {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Catch Cards Social */
.catch-card-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
}

.social-btn.liked {
    color: #ff4d4d;
}

@media (max-width: 768px) {
    .premium-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.welcome-text {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

.sub-welcome-text {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out 0.3s forwards;
}

.loading-logo-wrapper {
    font-size: 5rem;
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.8s forwards;
}

.water-wave {
    font-size: 5rem;
    background: linear-gradient(to top, var(--accent-primary) 50%, #ffffff 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    /* Start empty (White/Top) */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fillWater 5s ease-in-out 1s forwards;
    /* Increased to 5s */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fillWater {
    0% {
        background-position: 0% 0%;
    }

    /* Empty */
    100% {
        background-position: 0% 100%;
    }

    /* Full */
}

/* ============================================   Admin Dashboard Styles   ============================================ */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.admin-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.admin-header p {
    color: var(--text-muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-card-full {
    grid-column: 1 / -1;
}

/* Admin Location Manager */
.admin-location-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.mode-toggle-admin {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
}

.mode-toggle-admin .mode-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.mode-toggle-admin .mode-btn.active {
    background: var(--accent-primary);
    color: white;
}

.mode-toggle-admin .mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.admin-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
}

.admin-map-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    padding: var(--space-md);
}

.admin-map-container {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

#admin-map {
    width: 100%;
    height: 100%;
}

.admin-map-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 212, 255, 0.9);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.admin-location-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    overflow-y: auto;
    max-height: 450px;
}

.admin-location-list h4 {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.location-list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.location-list-item:hover {
    background: rgba(0, 212, 255, 0.15);
}

.location-list-item .location-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-list-item .location-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.location-list-item .location-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.location-list-item .location-actions {
    display: flex;
    gap: 6px;
}

.location-list-item .action-btn {
    padding: 4px 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.location-list-item .action-btn:hover {
    background: var(--accent-primary);
}

.location-list-item .action-btn.delete:hover {
    background: var(--accent-danger);
}

/* Location Editor Modal */
#location-editor-modal .modal-content {
    max-width: 450px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.admin-card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.admin-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.admin-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.admin-card-body-flush {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.admin-card-body-flush .insight-grid {
    padding: var(--space-lg) var(--space-lg) 0 var(--space-lg);
}

/* Insight Grid */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.insight-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.insight-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.insight-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.station-status-list {
    height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: 12px;
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Sync scrollbar style with User Accounts table */
.station-status-list::-webkit-scrollbar {
    width: 10px;
}

.station-status-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

.station-status-list::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.station-status-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    background-clip: padding-box;
}

.station-status-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    background-clip: padding-box;
}

.station-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
}

.station-status-item .status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.station-status-item .status.online {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-success);
}

.station-status-item .status.offline {
    background: rgba(255, 77, 77, 0.15);
    color: var(--accent-danger);
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-primary);
}

.badge.pro {
    background: rgba(255, 171, 0, 0.15);
    color: var(--accent-warning);
}

.badge.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-success);
}

.badge.inactive {
    background: rgba(255, 77, 77, 0.15);
    color: var(--accent-danger);
}

.badge.unread {
    background: rgba(255, 77, 77, 0.2);
    color: var(--accent-danger);
}

/* Messages List */
.messages-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.message-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
}

.message-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.message-item.unread {
    border-left-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-sender {
    font-weight: 600;
    color: var(--text-main);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Support Thread */
.support-thread {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.thread-message {
    max-width: 80%;
    padding: var(--space-sm) var(--space-md);
    border-radius: 12px;
    font-size: 0.9rem;
}

.thread-message.user {
    background: var(--accent-secondary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.thread-message.admin {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.thread-message .time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
}

.support-compose {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
}

.support-compose textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
}

.support-compose textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Admin Nav Link */
.nav-link.admin-only {
    color: var(--accent-warning);
}

.nav-link.admin-only:hover {
    background: rgba(255, 171, 0, 0.15);
}

/* Button Variants */
.btn-danger {
    background: var(--accent-danger);
    color: #fff;
}

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

.btn-success {
    background: var(--accent-success);
    color: var(--bg-dark);
}

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

.btn-xs {
    padding: 2px 8px;
    font-size: 0.7rem;
}

/* ============================================   Notification Badge   ============================================ */
.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(255, 77, 77, 0.4);
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ============================================   Mobile Hamburger Menu   ============================================ */
.hamburger-btn {
    display: flex; /* Shown globally */
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition-normal);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 3px;
    background: #ffffff;
    background: var(--text-main, #ffffff);
    border-radius: 2px;
    transition: var(--transition-normal);
    pointer-events: none;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.mobile-menu-link.admin-only {
    color: var(--accent-warning);
}

/* ============================================   Mobile Responsive Styles   ============================================ */
    @media (max-width: 768px) {
        .nav-right span:not(.user-avatar):not(.badge) {
            display: none;
        }

        .nav-links {
            display: none;
        }

        .nav-center {
            display: none;
        }
    }

    /* Extra compact profile for very small screens */
    @media (max-width: 400px) {
        #user-name-label {
            display: none !important;
        }

        #user-display .badge {
            display: none !important;
        }

        #user-display {
            gap: 5px;
        }
    }

    @media (max-width: 768px) {
        .nav-brand {
            position: static;
            transform: none;
            flex: 1;
            display: flex;
            justify-content: center;
            padding: 10px 0;
        }

        .navbar {
            height: auto;
            min-height: 60px;
        }

    .nav-live {
        display: none;
    }

    .nav-container {
        justify-content: space-between;
        padding: 8px 0;
    }

    .nav-right {
        gap: var(--space-md);
    }

    /* Sidebar and map layout on mobile */
    .app-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .sidebar {
        order: 2;
        max-height: none;
        overflow-y: visible;
    }

    .map-container {
        order: 1;
        height: 60vh; /* Scaled back for mobile view */
        position: relative;
        top: auto;
    }

    /* Admin grid on mobile */
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-container {
        padding: var(--space-md);
    }
}
/* ============================================   Shop Directory Styles   ============================================ */
.directory-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
    min-height: 100vh;
}

.directory-hero {
    text-align: center;
    padding: var(--space-xl) 0;
}

.directory-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.directory-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.directory-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: var(--space-lg) var(--space-xl);
    min-width: 140px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.county-card {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.county-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.county-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid var(--border-glass);
}

.county-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.shop-count {
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.shop-list {
    padding: var(--space-sm);
}

.shop-item {
    padding: var(--space-md);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-bottom: var(--space-xs);
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.shop-item:last-child {
    margin-bottom: 0;
}

.shop-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.shop-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.shop-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.shop-rating {
    font-size: 0.85rem;
    color: var(--accent-warning);
}

.shop-phone {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-decoration: none;
}

.shop-phone:hover {
    text-decoration: underline;
}

.shop-website {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    text-decoration: none;
}

.shop-website:hover {
    text-decoration: underline;
}

/* Shop marker on map */
.shop-marker {
    font-size: 1.3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.shop-popup {
    text-align: center;
    padding: var(--space-xs);
}

@media (max-width: 600px) {
    .directory-container {
        padding: var(--space-md);
    }

    .directory-hero h1 {
        font-size: 1.8rem;
    }

    .directory-stats {
        gap: var(--space-md);
    }

    .stat-item {
        padding: var(--space-md);
        min-width: 100px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================   Live Data Badge   ============================================ */
.live-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: livePulse 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.data-source {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.data-source.live {
    color: var(--accent-success);
}

.data-source.estimated {
    color: var(--accent-warning);
}

/* ============================================   Sidebar Footer   ============================================ */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ============================================   Terms Modal Styles   ============================================ */
.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.terms-content h3 {
    margin: 20px 0 10px;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.terms-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-main);
    font-size: 0.95rem;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.terms-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* ============================================   Stripe Checkout Styles   ============================================ */
.stripe-checkout-container {
    max-width: 480px !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff !important;
    color: #30313d !important;
}

.stripe-header {
    padding: 24px 32px;
    background: #f6f9fc;
    border-bottom: 1px solid #e6ebf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stripe-logo {
    color: #635bff;
    height: 24px;
}

.stripe-logo svg {
    height: 24px;
}

.stripe-body {
    padding: 32px;
}

.checkout-summary {
    margin-bottom: 32px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #697386;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 4px;
}

.product-price {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a1f36;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: #697386;
}

.stripe-field {
    margin-bottom: 24px;
}

.stripe-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #30313d;
    margin-bottom: 8px;
}

.card-input-container {
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    padding: 12px;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease;
}

.card-input-container:focus-within {
    box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.3);
}

.card-input-container input {
    border: none !important;
    padding: 0 !important;
    width: 100%;
    font-size: 1rem;
    color: #30313d;
    outline: none !important;
    background: transparent !important;
}

.card-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e6ebf1;
}

.stripe-field input,
.stripe-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    font-size: 1rem;
    color: #30313d;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.stripe-pay-btn {
    width: 100%;
    padding: 12px;
    background: #635bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}

.stripe-pay-btn:hover {
    background: #5851eb;
    transform: translateY(-1px);
}

.stripe-pay-btn:active {
    transform: translateY(0);
}

.stripe-pay-btn:disabled {
    background: #a3acb9;
    cursor: not-allowed;
    transform: none;
}

.stripe-disclaimer {
    font-size: 0.75rem;
    color: #697386;
    margin-top: 16px;
    line-height: 1.4;
    text-align: center;
}

.stripe-footer {
    padding: 24px;
    background: #f6f9fc;
    border-top: 1px solid #e6ebf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.powered-by {
    color: #697386;
}

.footer-links {
    display: flex;
    gap: 16px;
    color: #697386;
}

/* Spinner */
.stripe-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: stripe-spin 0.6s linear infinite;
}

@keyframes stripe-spin {
    to {
        transform: rotate(360deg);
    }
}

.stripe-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stripe-svg {
    height: 18px;
    color: #635bff;
}

.stripe-secure-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================   Collapsible Filter Sidebar   ============================================ */
/* Fishing Mode Toggle */
.fishing-mode-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    position: sticky;
    top: 60px;
    z-index: 999;
    background: transparent;
}

.fishing-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.75rem;
}

.mode-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mode-label.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-primary);
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider {
    background: var(--accent-success);
}

input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Freshwater Spot Popup */
.freshwater-popup {
    min-width: 200px;
}

.freshwater-popup h3 {
    margin: 0 0 8px 0;
    color: var(--accent-primary);
}

.freshwater-popup p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.license-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--accent-warning);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.license-btn:hover {
    background: #ffcc00;
    transform: scale(1.02);
}

.no-license {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent-success);
    font-weight: 500;
}

.directions-btn {
    display: inline-block;
    margin-top: 8px;
    margin-left: 8px;
    padding: 6px 12px;
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.directions-btn:hover {
    background: #0099cc;
    transform: scale(1.02);
}

.accessible-badge {
    color: var(--accent-success);
    font-weight: 600;
    margin: 4px 0;
}

/* Toggle Button */
.filter-toggle-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.filter-toggle-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-primary);
}

.filter-toggle-icon {
    font-size: 1.1rem;
}

/* Filter Sidebar */
.filter-sidebar {
    position: absolute;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    z-index: 1002;
    background: var(--bg-card);
    border-right: 1px solid var(--border-glass);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: left 0.3s ease;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.4);
}

.filter-sidebar.open {
    left: 0;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.filter-sidebar-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.filter-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.filter-close-btn:hover {
    color: var(--accent-danger);
}

/* Filter Options */
.filter-options {
    /* Fixed height calculation issue on mobile */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 5px;
    /* Use flex-grow instead of rigid max-height to ensure button visibility */
    min-height: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-main);
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filter-option input[type="checkbox"] {
    display: none;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-option input:checked+.filter-checkbox {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.filter-option input:checked+.filter-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.filter-emoji {
    font-size: 1.3rem;
}

/* Apply Button */
.filter-apply-btn {
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: auto;
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* Overlay */
.filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 600px) {
    .filter-toggle-text {
        display: inline-block;
        font-size: 0.8rem;
    }

    .filter-toggle-btn {
        padding: 12px 16px;
        background: var(--accent-primary);
        color: #000;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
        animation: buttonPulse 2s infinite;
    }

    @keyframes buttonPulse {
        0% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
        }

        50% {
            transform: scale(1.05);
            box-shadow: 0 4px 25px rgba(0, 212, 255, 0.6);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
        }
    }

    .filter-sidebar {
        width: 90%;
        max-width: 320px;
        height: auto;
        max-height: 85vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        border-radius: 20px;
        border: 1px solid var(--border-glass);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    }

    .filter-sidebar.open {
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .filter-options {
        max-height: 50vh;
    }
}

/* Pier & Boat Ramp Markers */
.pier-marker-wrapper,
.ramp-marker-wrapper,
.harbour-marker-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pier-marker,
.ramp-marker,
.harbour-marker,
.freshwater-marker,
.freshwater-park-marker,
.freshwater-ramp-marker,
.freshwater-pier-marker {
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pier-marker:hover,
.ramp-marker:hover,
.harbour-marker:hover {
    transform: scale(1.15);
}

.harbour-marker:hover {
    transform: scale(1.15);
}

/* Popup Content Styles */
.popup-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
    min-width: 150px;
}

.popup-content strong {
    font-size: 1rem;
    color: #1a1a1a;
}

.popup-type {
    font-size: 0.8rem;
    color: #666;
}

.popup-directions-btn {
    margin-top: 6px;
    padding: 8px 12px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.popup-directions-btn:hover {
    background: #3367d6;
}

/* Shop List Item Styles */
.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-glass);
}

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

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.shop-info strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.shop-address {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.shop-phone {
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.shop-distance {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.shop-list .btn-sm {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================   Inline Filter Button (next to toggle)   ============================================ */
.filter-toggle-btn-inline {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
    margin-left: 16px;
}

.filter-toggle-btn-inline:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
}

.filter-toggle-btn-inline.confirm-mode {
    background: var(--accent-success) !important;
    color: #000 !important;
    border-color: #fff !important;
    font-weight: 800;
    z-index: 1005;
    /* Above sidebar (1002) and overlay (1001) */
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    animation: confirmPulse 1.5s infinite;
}

@keyframes confirmPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.filter-toggle-icon {
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .filter-toggle-btn-inline {
        padding: 8px 14px;
        margin-left: 6px;
        background: var(--accent-primary);
        color: #000;
        font-weight: 700;
        font-size: 0.85rem;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    }

}

/* ============================================   Collapsible Station List   ============================================ */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: var(--transition-normal);
}

.collapsible-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.collapse-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.station-list.collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.station-list:not(.collapsed) {
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* Rotate icon when expanded */
.collapsible-header:has(+ .station-list:not(.collapsed)) .collapse-icon {
    transform: rotate(180deg);
}

/* ============================================   Collapsible Region Areas   ============================================ */
.region-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 4px;
    transition: var(--transition-normal);
    user-select: none;
}

.region-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.region-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.region-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.region-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.region-group:not(.collapsed) .region-content {
    max-height: 500px;
    opacity: 1;
}

/* Rotate chevron when expanded */
.region-header.expanded .region-chevron {
    transform: rotate(180deg);
}

/* Admin User Management Styles */
.admin-table-scroll-wrapper {
    height: 420px;
    overflow-y: auto;
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar for Admin Tables */
.admin-table-scroll-wrapper::-webkit-scrollbar {
    width: 10px;
}

.admin-table-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

.admin-table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.admin-table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    background-clip: padding-box;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.admin-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    transition: background 0.2s;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table code {
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-search-input:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
    transform: translateY(-1px);
    outline: none;
}

.badge.pro {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-weight: 700;
}

.badge.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.badge.inactive {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* Admin Button Refinements */
.admin-table .btn-xs {
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.admin-table .btn-danger:hover {
    background: #ff4d4d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.admin-table .btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

/* ============================================   Mandatory Legal Consent Overlay   ============================================ */
.legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.legal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.legal-consent-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.legal-header .legal-logo {
    font-size: 3rem;
    margin-bottom: 20px;
}

.legal-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.legal-checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.legal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-item:has(input[type="checkbox"]:not(:checked)) {
    border-color: rgba(0, 212, 255, 0.3);
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0% {
        border-color: rgba(0, 212, 255, 0.2);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.1);
    }

    50% {
        border-color: rgba(0, 212, 255, 0.5);
        box-shadow: 0 0 10px 0 rgba(0, 212, 255, 0.2);
    }

    100% {
        border-color: rgba(0, 212, 255, 0.2);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.1);
    }
}

.legal-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
}

.legal-item input[type="checkbox"] {
    display: none;
}

.custom-check {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.legal-item input[type="checkbox"]:checked+.custom-check {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.legal-item input[type="checkbox"]:checked+.custom-check::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.legal-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.legal-text a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.legal-text a:hover {
    text-decoration: underline;
}

.legal-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.4;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

#legal-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Fix map tile lines (all devices) - Shadow + Overlap Fix */
.leaflet-tile {
    border: none !important;
    outline: none !important;
    /* Shift tiles by 0.5px and fill gaps with shadow to completely hide lines */
    margin: -0.5px !important;
    box-shadow: 0 0 1.5px #060606 !important;
    /* Hardware acceleration & rendering optimization */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.leaflet-container {
    border: none !important;
    outline: none !important;
    /* Black background to hide gaps if shadows fail */
    background: #000 !important;
}

.leaflet-container img {
    border: none !important;
    /* Prevent rounding errors on high-DPI screens */
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Specific fix for community map positioning on mobile */
@media (max-width: 768px) {
    #social-map {
        margin-top: 45px !important;
    }
}

/* Support Choice Modal Styles */
.support-choice-card {
    max-width: 450px !important;
}

.support-options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.support-option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    color: white;
}

.support-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4facfe;
    transform: translateY(-2px);
}

.support-option-icon {
    font-size: 2rem;
    background: rgba(79, 172, 254, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.support-option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-option-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.support-option-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Ensure sidebar footers align nicely */
.sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 15px !important;
    font-size: 0.8rem;
}

.sidebar-footer a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: #4facfe !important;
}

/* ============================================   Admin Utilities & Communication Center   ============================================ */
/* Admin Dropdown Styles */
.admin-actions-cell {
    position: relative;
    display: flex;
    justify-content: center;
}

.util-dropdown {
    position: relative;
    display: inline-block;
}

.util-dropbtn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.util-dropbtn:hover {
    background: var(--primary-color);
    color: white;
}

.util-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--card-bg);
    min-width: 170px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.util-dropdown.active .util-dropdown-content {
    display: block;
}

.util-dropdown-content button {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.util-dropdown-content button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.util-dropdown-content button.danger-action:hover {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff4d6d;
}

/* Communication Center Layout */
.email-center-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    margin-top: 15px;
}

@media (max-width: 850px) {
    .email-center-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .email-editor-panel {
        padding: 15px;
    }

    .broadcast-stats {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
}

.template-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-btn {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.template-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.template-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.template-btn .temp-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.template-btn .temp-desc {
    font-size: 0.75rem;
    opacity: 0.7;
}

.email-editor-panel {
    background: rgba(0, 0, 0, 0.25);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.email-subject-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.email-subject-input:focus {
    border-color: var(--primary-color);
}

.email-body-editor {
    width: 100%;
    min-height: 350px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    line-height: 1.6;
    outline: none;
}

.email-body-editor:focus {
    border-color: var(--primary-color);
}

.email-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.broadcast-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px 25px;
    background: rgba(255, 171, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 171, 0, 0.2);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-box .val {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffab00;
}

/* Admin Table Mobile Refinement */
@media (max-width: 1024px) {
    .admin-table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 5px 0;
    }

    #page-admin .admin-card {
        padding: 15px 12px;
    }

    .admin-actions-cell {
        min-width: 130px;
    }
}

/* Collapsible Admin Search */
.admin-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-width: 38px;
    height: 34px;
}

.admin-search-wrapper.active {
    max-width: 250px;
    background: rgba(0, 0, 0, 0.4);
    padding: 0 12px;
    border-color: var(--primary-color);
}

.admin-search-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.admin-search-toggle:hover {
    opacity: 1;
}

.admin-search-input-collapsible {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.85rem;
    padding: 4px 8px;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    outline: none;
    visibility: hidden;
}

.admin-search-wrapper.active .admin-search-input-collapsible {
    width: 180px;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 600px) {
    .admin-card-header h3 {
        font-size: 1rem;
    }

    .admin-search-wrapper.active {
        max-width: 150px;
    }

    .admin-search-wrapper.active .admin-search-input-collapsible {
        width: 100px;
    }
}

/* ========================================   Sponsors Section   ======================================== */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
}

.sponsor-card {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    min-height: 200px;
}

.sponsor-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.sponsor-logo {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: var(--space-md);
    border-radius: 8px;
}

.sponsor-name {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Admin Sponsor Management */
.sponsor-table {
    width: 100%;
    border-collapse: collapse;
}

.sponsor-table th,
.sponsor-table td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.sponsor-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.sponsor-table-logo {
    max-width: 60px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-md);
    }

    .sponsor-card {
        min-height: 150px;
        padding: var(--space-md);
    }

    .sponsor-logo {
        max-height: 80px;
    }
}

/* ========================================   Sponsor Banner (Dashboard)   ======================================== */
.sponsor-banner-wrapper {
    width: calc(100% - 10px);
    margin: var(--space-md) auto var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 150, 255, 0.1) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: var(--space-md) 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sponsor-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.sponsor-banner-track {
    display: flex;
    gap: var(--space-xl);
    animation: scroll-sponsors 30s linear infinite;
    will-change: transform;
}

.sponsor-banner-track:hover {
    animation-play-state: paused;
}

.sponsor-banner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: var(--transition-normal);
    cursor: pointer;
    min-width: 150px;
    height: 60px;
}

.sponsor-banner-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.sponsor-banner-logo {
    max-width: 120px;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes scroll-sponsors {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .sponsor-banner-wrapper {
        padding: var(--space-sm) 0;
    }

    .sponsor-banner-item {
        min-width: 120px;
        height: 50px;
        padding: var(--space-xs) var(--space-md);
    }

    .sponsor-banner-logo {
        max-width: 100px;
        max-height: 35px;
    }
}

/* ========================================   Sponsor Info Modal & Logo Upload   ======================================== */
.sponsor-info-content {
    text-align: center;
    padding: var(--space-lg) 0;
}

.sponsor-info-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.sponsor-info-logo {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.sponsor-info-name {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: var(--space-md) 0;
}

.sponsor-info-description {
    color: var(--text-secondary);
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    line-height: 1.6;
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
}

.sponsor-info-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    align-items: center;
}

.sponsor-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    min-width: 250px;
    justify-content: flex-start;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.logo-upload-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
    .sponsor-info-logo {
        max-width: 150px;
        max-height: 100px;
    }

    .sponsor-info-name {
        font-size: 1.2rem;
    }

    .sponsor-contact-item {
        min-width: 200px;
    }
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(255, 171, 0, 0.2), rgba(255, 171, 0, 0.1));
    color: var(--accent-warning);
    border: 1px solid rgba(255, 171, 0, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ============================================
   Species Guide Styles
   ============================================ */
.species-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.species-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) 0;
}

.species-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--accent-primary), #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.species-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* AI Fish Identifier */
.species-identifier-section {
    margin-bottom: var(--space-xl);
}

.species-identifier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
}

.species-identifier-body {
    padding: var(--space-lg);
}

.species-upload-zone {
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.02);
    position: relative;
}

.species-upload-zone:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.species-upload-zone.dragover {
    border-color: var(--accent-success);
    background: rgba(0, 255, 136, 0.05);
    transform: scale(1.01);
}

.species-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.species-upload-icon {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.species-upload-content h3 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.species-upload-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
}

.species-upload-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.species-upload-btn,
.species-camera-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.species-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.species-camera-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 212, 255, 0.1);
}

/* Image Preview */
.species-preview {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.species-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.species-preview-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.species-preview-remove:hover {
    background: var(--accent-danger);
    transform: scale(1.1);
}

/* AI Loading */
.species-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.species-ai-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: stripe-spin 0.8s linear infinite;
}

/* AI Result Card */
.species-ai-result {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    animation: fadeIn 0.5s ease-out;
}

.species-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.species-result-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.species-result-body h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: var(--space-xs);
}

.species-result-scientific {
    font-style: italic;
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.species-result-confidence {
    margin-bottom: var(--space-md);
}

.confidence-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: var(--space-xs);
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-success));
    border-radius: 4px;
    transition: width 1s ease-out;
}

.species-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.species-detail-item {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.species-detail-item .detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.species-detail-item .detail-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

/* AI Error */
.species-ai-error {
    text-align: center;
    padding: var(--space-lg);
    color: var(--accent-warning);
    background: rgba(255, 171, 0, 0.05);
    border: 1px solid rgba(255, 171, 0, 0.2);
    border-radius: 12px;
    margin-top: var(--space-lg);
}

/* Species Gallery */
.species-gallery-section {
    margin-top: var(--space-xl);
}

.species-gallery-header {
    margin-bottom: var(--space-lg);
}

.species-gallery-header h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    color: var(--text-main);
}

.species-search-wrapper {
    margin-bottom: var(--space-md);
}

.species-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.species-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.species-search-input::placeholder {
    color: var(--text-muted);
}

/* Filter Tabs */
.species-filter-tabs {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.species-tab {
    padding: 8px 18px;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.species-tab:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-main);
}

.species-tab.active {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
    font-weight: 600;
}

/* Gallery Grid */
.species-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.species-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.species-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.15);
}

.species-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border-glass);
}

.species-card-body {
    padding: var(--space-md);
}

.species-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.species-card-scientific {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

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

.species-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.species-tag.sea {
    background: rgba(0, 136, 255, 0.15);
    color: #4facfe;
}

.species-tag.freshwater {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-success);
}

.species-tag.shellfish {
    background: rgba(255, 171, 0, 0.15);
    color: var(--accent-warning);
}

/* Species Detail Modal */
.species-detail-modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    padding: 0;
    overflow-y: auto;
    border-radius: 20px;
    margin: auto;
}

.species-detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-primary);
}

.species-detail-body {
    padding: var(--space-xl);
}

.species-detail-body h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.species-detail-body .scientific-name {
    font-style: italic;
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.species-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.species-info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.species-info-item .info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.species-info-item .info-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.species-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Responsive Species Guide */
@media (max-width: 768px) {
    .species-hero h1 {
        font-size: 1.8rem;
    }

    .species-upload-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .species-upload-btn,
    .species-camera-btn {
        justify-content: center;
    }

    .species-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-md);
    }

    .species-card-image {
        height: 130px;
    }

    .species-info-grid {
        grid-template-columns: 1fr;
    }

    .species-detail-image {
        height: 180px;
    }

    .species-result-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .species-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .species-card-body {
        padding: var(--space-sm);
    }

    .species-card-name {
        font-size: 0.9rem;
    }
}

/* Intro.js Custom Dark Theme for Irish Fishing Hub */
.introjs-tooltip {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 212, 255, 0.1);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

.introjs-tooltiptext {
    font-size: 1rem;
    line-height: 1.5;
    padding: 20px;
}

.introjs-tooltipbuttons {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

.introjs-button {
    text-shadow: none;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.introjs-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

.introjs-nextbutton,
.introjs-donebutton {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: #000;
    font-weight: 700;
}

.introjs-nextbutton:hover,
.introjs-donebutton:hover {
    background: linear-gradient(135deg, #2deeef, #2aa0ff);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.introjs-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.introjs-bullets ul li a {
    background: rgba(255, 255, 255, 0.3);
}

.introjs-bullets ul li a.active {
    background: var(--accent-primary);
}

.introjs-helperLayer {
    background: rgba(0, 212, 255, 0.1);
    border: 1px dashed var(--accent-primary);
    border-radius: 4px;
}

.introjs-arrow.top {
    border-bottom-color: var(--bg-card);
}

.introjs-arrow.bottom {
    border-top-color: var(--bg-card);
}

.introjs-arrow.left {
    border-right-color: var(--bg-card);
}

.introjs-arrow.right {
    border-left-color: var(--bg-card);
}


/* Fix Intro.js Tooltip Text Color & Z-Index issues */
.introjs-tooltip {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
}

.introjs-tooltiptext {
    color: var(--text-main) !important;
}

.introjs-tooltipbuttons .introjs-button {
    color: var(--text-main) !important;
    text-shadow: none !important;
}

.introjs-nextbutton,
.introjs-donebutton {
    color: #000 !important;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    text-shadow: none !important;
}

/* Ensure Leaflet map controls don't overlap the walkthrough */
.introjs-showElement,
.introjs-showElement * {
    z-index: 9999999 !important;
}

/* Force tooltip to escape hidden container overflow on mobile */
.introjs-tooltipReferenceLayer {
    z-index: 10000000 !important;
}

.introjs-tooltip {
    z-index: 10000001 !important;
}

.introjs-overlay {
    z-index: 9999998 !important;
}

/* Fix map getting stuck (Leaflet panning constraint during IntroJS) */
.introjs-helperLayer {
    background-color: rgba(21, 34, 56, 0.4) !important;
    z-index: 9999999 !important;
}

/* Community Multi-Image Gallery */
.multi-image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.catch-image-gallery {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: var(--space-md);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.catch-image-gallery::-webkit-scrollbar {
    height: 6px;
}

.catch-image-gallery::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.catch-gallery-item {
    flex: 0 0 85%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    scroll-snap-align: center;
    cursor: pointer;
}

/* Landscape orientation top bar layout fix */
@media screen and (orientation: landscape) and (max-width: 950px) {
    .nav-brand {
        position: static;
        transform: none;
        margin-right: auto;
    }
    
    .nav-container {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .support-text {
        display: none;
    }
}

@media (min-width: 768px) {
    .catch-image, .catch-gallery-item {
        max-height: 500px;
    }
}