* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: auto;
    overflow-x: hidden;
    background: #f5f5f5;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.3s;
    animation: pulse-install 2s infinite;
}

.install-hidden {
    display: none !important;
}

.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.btn-install:active {
    transform: translateY(0);
}

@keyframes pulse-install {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.6);
    }
}

.login-footer {
    margin-top: 24px;
    color: #999;
}

.btn-link {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    text-decoration: underline;
}

.btn-link:hover {
    color: #1565c0;
}

.install-hidden {
    display: none !important;
}

.app-hidden {
    display: none !important;
}

.admin-hidden {
    display: none !important;
}

/* Admin Screen */
.admin-container {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-container h2 {
    text-align: center;
    color: #1976d2;
    margin-bottom: 8px;
}

.admin-container > p {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
}

.admin-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-section:last-of-type {
    border-bottom: none;
}

.admin-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    margin-top: 0;
}

.admin-section .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.form-group input:focus {
    outline: none;
    border-color: #1976d2;
}

.admin-message {
    margin-top: 12px;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    min-height: 20px;
}

.admin-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.admin-message.error {
    background: #ffebee;
    color: #c62828;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.user-item .user-info {
    flex: 1;
}

.user-item .user-name {
    font-weight: 600;
    color: #333;
}

.user-item .user-pin {
    font-size: 12px;
    color: #666;
    font-family: monospace;
    margin-top: 4px;
}

.user-item .user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-item button {
    padding: 6px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.user-item button.btn-info {
    background: #1976d2;
}

.user-item button.btn-danger {
    background: #f44336;
}

.user-item button:hover {
    opacity: 0.9;
}

.user-item button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Admin online lista */
.admin-online-list, .admin-locations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.admin-online-item, .admin-location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.online-indicator {
    font-size: 20px;
}

.admin-online-item .user-info, .admin-location-item .user-info {
    flex: 1;
}

.admin-online-item strong, .admin-location-item strong {
    display: block;
    color: #333;
}

.user-meta {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.btn-sm {
    padding: 4px 8px !important;
    font-size: 11px !important;
}

.admin-map-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.admin-map-modal-card {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.admin-map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.admin-map-modal-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.admin-map-canvas {
    width: 100%;
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
}

/* Jogosultság szerkesztő dialógus */
.permission-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.permission-dialog {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.permission-dialog h3 {
    margin-bottom: 16px;
    color: #1976d2;
}

.permission-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.permission-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.permission-form input[type="checkbox"] {
    width: auto;
}

.permission-form input[type="number"] {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.permission-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.admin-footer {
    margin-top: 24px;
    text-align: center;
}

.empty-state {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 24px;
}

#app {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fejléc */
header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    position: sticky;
    top: 0;
    animation: topbar-reveal 0.42s ease-out;
}

@keyframes topbar-reveal {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.topbar-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.topbar-left {
    flex: 1;
}

.topbar-right {
    flex: 0 0 auto;
}

.topbar-feed-btn {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    background: linear-gradient(135deg, #35b04a 0%, #2f9c41 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.topbar-feed-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2fa342 0%, #288a37 100%) !important;
}

.topbar-right .btn-icon,
.topbar-left .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.app-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#topbar-fishbook-title {
    cursor: pointer;
}

#topbar-fishbook-title:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
    border-radius: 8px;
}

.topbar-logo {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.app-title-icon {
    line-height: 1;
}

.status {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.topbar-status {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.topbar-status::-webkit-scrollbar {
    display: none;
}

.status-icon-btn {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3b30;
    border: 1px solid #fff;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.22);
}

.user-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(2px);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: background 0.2s, transform 0.15s ease;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.btn-icon:active {
    transform: translateY(0);
}

.address-suggestions {
    max-height: 260px;
    overflow: auto;
    border: 1px solid #d6dfec;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.address-suggestion-item {
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #edf2f9;
    background: #fff;
    padding: 9px 10px;
    font-size: 13px;
    color: #1f2a3d;
    cursor: pointer;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item.active {
    background: #e9f3ff;
}

.address-suggestion-empty {
    padding: 12px;
    font-size: 12px;
    color: #63758f;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, 0.42);
    backdrop-filter: blur(2px);
    z-index: 1200;
}

.side-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 82vh;
    background: #f0f2f5;
    z-index: 1201;
    box-shadow: 0 -6px 32px rgba(15, 23, 42, 0.18);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: sideMenuSlideUp 0.22s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@keyframes sideMenuSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #dbe2ea;
    background: linear-gradient(135deg, #1877f2 0%, #0b5fd3 100%);
    color: #fff;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: 20px 20px 0 0;
}

.premium-status-card {
    background: linear-gradient(145deg, #fffaf0 0%, #ffe8a3 100%);
    border: 1px solid rgba(229, 178, 21, 0.28);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(180, 132, 6, 0.16);
}

.premium-status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.premium-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #17384a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.premium-status-badge.pro {
    background: linear-gradient(135deg, #e5a600 0%, #f57f17 100%);
    color: #fff;
}

.premium-status-link {
    font-size: 12px;
    font-weight: 700;
    color: #17384a;
    text-decoration: none;
}

.premium-status-title {
    color: #17384a;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.premium-status-copy {
    color: #4a6170;
    font-size: 12px;
    line-height: 1.45;
}

.side-menu-headline {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-menu-profile-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f3f8f;
    background: #e9f2ff;
    border: 1px solid rgba(255,255,255,0.55);
    flex: 0 0 auto;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    max-width: 30px;
    max-height: 30px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.inline-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f2ff;
    color: #0f3f8f;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #d7e4f6;
    flex: 0 0 auto;
    overflow: hidden;
}

.inline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.inline-avatar.sm {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.inline-avatar.lg {
    width: 52px;
    height: 52px;
    font-size: 18px;
}

.inline-avatar.xs {
    width: 22px;
    height: 22px;
    font-size: 9px;
}

.inline-avatar.xxs {
    width: 18px;
    height: 18px;
    font-size: 8px;
}

.menu-user-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.side-menu-user {
    display: inline-flex;
    width: fit-content;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
}

.side-menu-header strong {
    font-size: 15px;
    font-weight: 700;
}

.side-menu-section {
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.side-menu-group + .side-menu-group {
    margin-top: 14px;
}

.side-menu[data-view="profile"] .side-menu-group:not([data-side-menu-view="profile"]),
.side-menu[data-view="friends"] .side-menu-group:not([data-side-menu-view="friends"]),
.side-menu[data-view="requests"] .side-menu-group:not([data-side-menu-view="requests"]),
.side-menu[data-view="chat"] .side-menu-group:not([data-side-menu-view="chat"]),
.side-menu[data-view="extras"] .side-menu-group:not([data-side-menu-view="extras"]) {
    display: none;
}

.side-menu-section h4 {
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.profile-avatar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.profile-avatar-actions .btn {
    flex: 1 1 140px;
    min-width: 130px;
}

.profile-image-preview-wrap {
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #d9e4f3;
    border-radius: 12px;
    padding: 10px;
}

.profile-image-preview-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.profile-image-preview-text {
    text-align: center;
    font-size: 12px;
    color: #3f536b;
    margin-bottom: 8px;
}

.profile-image-preview-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

#friends-refresh-btn {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 8px;
}

#open-feed-btn {
    width: 100%;
    border-radius: 12px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.menu-item {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    padding: 10px;
    font-size: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.menu-item:hover {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.menu-item-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
}

.menu-item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.menu-item-actions button {
    border: none;
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    padding: 6px 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.menu-item-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    filter: brightness(1.04);
}

.menu-item-actions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.menu-btn-accept,
.menu-btn-reject,
.menu-btn-add,
.menu-btn-chat {
    border: none;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    padding: 6px 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.menu-btn-accept { background: #43a047; }
.menu-btn-reject { background: #6d4c41; }
.menu-btn-add { background: #1976d2; }
.menu-btn-chat {
    background: #1976d2;
    min-width: 88px;
}

.menu-btn-accept:hover,
.menu-btn-reject:hover,
.menu-btn-add:hover,
.menu-btn-chat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    filter: brightness(1.04);
}

.menu-btn-accept:active,
.menu-btn-reject:active,
.menu-btn-add:active,
.menu-btn-chat:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chat-thread-row .menu-btn-chat {
    min-width: 98px;
}

.chat-thread-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-thread-row .menu-item-title {
    margin-bottom: 0;
}

.chat-unread-badge {
    background: #e41e3f;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    padding: 3px 7px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(228, 30, 63, 0.35);
}

.chat-badge {
    background: #e41e3f;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 7px;
    font-weight: 700;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    box-shadow: 0 2px 6px rgba(228, 30, 63, 0.4);
}

.chat-msg {
    max-width: 82%;
    border-radius: 14px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.35;
}

.chat-msg.mine {
    margin-left: auto;
    background: linear-gradient(135deg, #1f86ff 0%, #1877f2 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.chat-msg.theirs {
    margin-right: auto;
    background: #e9edf2;
    color: #111827;
    border-bottom-left-radius: 6px;
}

.chat-modal-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chat-msg-time {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
}

.chat-msg.theirs .chat-msg-time {
    color: #5f6b7a;
}

.pwa-modal {
    background: rgba(13, 22, 38, 0.5) !important;
    backdrop-filter: blur(3px);
}

.pwa-modal-card {
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.28);
    padding: 0;
    overflow: hidden;
}

.pwa-modal-card h3 {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e6eaf1;
    background: linear-gradient(135deg, #1877f2 0%, #1565c0 100%);
    color: #fff;
    font-size: 16px;
}

.pwa-modal-card > p {
    margin: 0;
    padding: 12px 16px 8px;
    color: #4b5563;
    font-size: 13px;
    background: #fff;
}

#share-dialog .form-group,
#shared-requests-list,
#chat-messages,
#load-spot-list {
    padding-left: 16px;
    padding-right: 16px;
}

#chat-messages {
    border: 1px solid #e4e9f0 !important;
    border-radius: 12px !important;
    background: #f7f9fc !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

#chat-input {
    border: 1px solid #d4dbe6;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}

#chat-input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.16);
}

#chat-send-btn {
    border-radius: 12px;
    min-width: 92px;
}

.feed-composer {
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    padding: 10px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-composer textarea {
    width: 100%;
    min-height: 88px;
    max-height: 180px;
    resize: vertical;
    border: 1px solid #d0daea;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
}

.feed-composer input[type="url"],
.feed-composer input[type="file"],
.feed-comment-input {
    width: 100%;
    border: 1px solid #d0daea;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    background: #fff;
}

.feed-composer-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.07);
}

.feed-item-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #526173;
}

.feed-author-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.feed-item-author {
    font-weight: 700;
    color: #1b3556;
}

.feed-profile-trigger {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
}

.feed-item-text {
    font-size: 14px;
    color: #18212f;
    white-space: pre-wrap;
    margin-bottom: 8px;
}

.feed-item-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d8e0ec;
    margin-bottom: 8px;
}

.feed-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.feed-action-btn {
    border: 1px solid #cfd9e8;
    background: #f2f6fc;
    color: #214872;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.feed-action-btn.active {
    background: #d9e9ff;
    border-color: #a9c9f7;
}

.feed-comments {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-comment-item {
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 12px;
    position: relative;
}

.feed-comment-author-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.feed-comment-author {
    font-weight: 700;
    color: #2b4f79;
}

.profile-modal-card-simple {
    position: relative;
}

.profile-modal-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
}

.profile-simple-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 8px 8px;
}

.profile-email {
    font-size: 13px;
    color: #4d617c;
    word-break: break-word;
}

.profile-loading {
    padding: 20px 8px;
    text-align: center;
    color: #4d617c;
    font-size: 13px;
}

.image-lightbox-card {
    position: relative;
    width: min(92vw, 680px);
    max-height: 88vh;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 18px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#image-lightbox-img {
    width: auto;
    max-width: 100%;
    max-height: 72vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.image-lightbox-title {
    color: #e7eefb;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.feed-comment-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.feed-comment-delete {
    margin-left: 8px;
    border: 1px solid #d7dfea;
    background: #eef3fb;
    color: #4f627e;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    cursor: pointer;
}

#shared-requests-list > div {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    padding: 10px;
}

#load-spot-list {
    padding-bottom: 4px;
}

#share-dialog .admin-footer,
#shared-requests-modal .admin-footer,
#chat-modal .admin-footer,
#load-spot-modal .admin-footer {
    margin: 0;
    padding: 12px 16px 14px;
    border-top: 1px solid #edf1f6;
    background: #fff;
}

.spot-load-item {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.spot-load-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #2f3a4a;
}

.spot-load-meta {
    color: #667085;
    font-size: 12px;
    margin-bottom: 8px;
}

.spot-load-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-indicator {
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.friend-requests-indicator,
.shared-requests-indicator {
    border: none;
    cursor: pointer;
}

.live-location-indicator {
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 2px 8px rgba(0, 96, 86, 0.36);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.live-location-indicator:hover {
    filter: brightness(1.03);
}

.friend-requests-indicator {
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 2px 8px rgba(0, 96, 86, 0.36);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.friend-requests-indicator:hover {
    filter: brightness(1.03);
}

.status-indicator.online {
    background: #4caf50;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #f44336;
}

.shared-requests-indicator {
    background: linear-gradient(135deg, #a13ac4 0%, #8a2be2 100%);
    color: #fff;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 2px 8px rgba(64, 22, 96, 0.36);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.shared-requests-indicator:hover {
    background: linear-gradient(135deg, #9434b5 0%, #7a25ca 100%);
    filter: brightness(1.02);
}

.shared-requests-indicator:active {
    transform: translateY(1px);
}

.badge-pop {
    animation: badge-pop 0.48s ease;
}

.bell-shake {
    animation: bell-shake 0.55s ease;
    transform-origin: top center;
}

@keyframes badge-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

@keyframes bell-shake {
    0% { transform: rotate(0deg); }
    18% { transform: rotate(-13deg); }
    36% { transform: rotate(11deg); }
    54% { transform: rotate(-8deg); }
    72% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#distance-info {
    font-weight: 600;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 5px 11px;
    border-radius: 999px;
    line-height: 1;
}

/* Térkép */
#map {
    flex: 1;
    position: relative;
}

/* ── Bottom Navigation Bar ── */
.bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #dbe2ea;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 2px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.bnav-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active {
    color: #2db358;
}

.bottom-nav-btn.active .bnav-icon {
    filter: drop-shadow(0 0 3px rgba(45,179,88,0.35));
}

.app-update-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    z-index: 1400;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(10, 31, 16, 0.96);
    color: #f3fff6;
    border: 1px solid rgba(93, 217, 138, 0.22);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.app-update-banner.show {
    display: flex;
}

.app-update-banner span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.app-update-banner .btn {
    padding: 8px 12px;
    min-height: auto;
}

/* Az app tartalma ne csússzon a nav alá */
#app {
    padding-bottom: 60px;
}

/* ── Slide-up navigációs menü panel (nav-menu-panel) ── */
.nav-menu-panel {
    display: none;
}
.nav-menu-panel.open {
    display: block;
}
.nav-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    background: rgba(0,0,0,0.45);
    z-index: 1300;
}
.nav-menu-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 1301;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 -6px 32px rgba(0,0,0,0.18);
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    max-height: calc(82vh - 68px);
    overflow-y: auto;
    animation: navMenuSlideUp 0.22s ease;
}
@keyframes navMenuSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #e9edf0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.nav-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2db358, #5dd98a);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.nav-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.nav-menu-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}
.nav-menu-sub {
    font-size: 12px;
    color: #9ca3af;
}
.nav-menu-close {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-menu-links {
    display: flex;
    flex-direction: column;
    padding: 6px 0 80px;
}
.nav-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s, color 0.12s;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
}
.nav-menu-link:last-child { border-bottom: none; }
.nav-menu-link:hover, .nav-menu-link:active {
    background: #f0fdf4;
    color: #2db358;
}
.nm-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #6b7280;
    display: flex;
    align-items: center;
}
.nm-icon svg { width: 26px; height: 26px; }
.nav-menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 20px 4px;
}
.nav-menu-divider { height: 1px; background: #e9edf0; margin: 4px 0; }

/* Vezérlők */
.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #4caf50;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #45a049;
}

.btn-secondary {
    background: #ff9800;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #e68900;
}

.btn-secondary.active {
    background: #f44336;
}

.btn-info {
    background: #2196f3;
    color: white;
}

.btn-info:hover {
    background: #1976d2;
}

.btn-warning {
    background: #f4b400;
    color: #17384a;
}

.btn-warning:hover:not(:disabled) {
    background: #de9f00;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-success {
    background: #9c27b0;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #7b1fa2;
}

.btn-success.active {
    background: #4caf50;
}

/* Pontok panel */
.points-panel {
    max-height: 220px;
    overflow-y: auto;
    background: #f0f2f5;
    border-top: 1px solid #dbe2ea;
    padding: 12px;
}

.feature-page {
    position: fixed;
    inset: 0;
    z-index: 1302;
    max-height: none;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #f7fbff 0%, #eef3f9 100%);
    border-top: none;
    padding: 12px;
    padding-bottom: 24px;
}

.feature-page .panel-header-row {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 6px;
    margin: -12px -12px 12px;
    background: rgba(247, 251, 255, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #dbe4f0;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.panel-subtitle {
    font-size: 12px;
    color: #627284;
    margin-top: 2px;
}

.panel-toolbar {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.panel-toolbar-btn {
    flex: 1 1 180px;
}

.catch-log-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.catch-log-pill {
    background: linear-gradient(145deg, #ffffff 0%, #edf5ff 100%);
    border: 1px solid #d7e7ff;
    border-radius: 16px;
    padding: 12px;
}

.catch-log-pill strong {
    display: block;
    color: #17384a;
    font-size: 19px;
    font-weight: 800;
}

.catch-log-pill span {
    color: #627284;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.catch-log-list,
.stats-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catch-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #dce8f7;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(18, 52, 78, 0.08);
}

.catch-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.catch-card-species {
    color: #17384a;
    font-weight: 800;
    font-size: 16px;
}

.catch-card-meta,
.catch-card-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.catch-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4fb;
    color: #37556b;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.catch-card-notes {
    margin-top: 10px;
    color: #4e6578;
    font-size: 12px;
    line-height: 1.5;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e6eef8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stats-card {
    background: linear-gradient(145deg, #fff 0%, #edf6ff 100%);
    border-radius: 18px;
    border: 1px solid #d7e7ff;
    padding: 14px;
}

.stats-card strong {
    display: block;
    color: #17384a;
    font-size: 22px;
    font-weight: 800;
}

.stats-card span {
    color: #627284;
    font-size: 12px;
    font-weight: 700;
}

.stats-section-title {
    margin-top: 6px;
    color: #17384a;
    font-size: 14px;
    font-weight: 800;
}

/* Statisztika rekord kártya */
.stats-record-card {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    border-radius: 16px;
    padding: 16px;
    margin: 10px 0;
    color: #fff;
    text-align: center;
}
.stats-record-title { font-size: 13px; font-weight: 700; opacity: 0.85; }
.stats-record-weight { font-size: 32px; font-weight: 900; margin: 4px 0; }
.stats-record-info { font-size: 12px; opacity: 0.75; }

/* Havi aktivitás diagram */
.stat-month-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 90px;
    padding: 8px 0 4px;
    overflow-x: auto;
}
.stat-month-col {
    flex: 1;
    min-width: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
    justify-content: flex-end;
}
.stat-month-bar-wrap {
    display: flex;
    align-items: flex-end;
    height: 50px;
    width: 100%;
}
.stat-month-bar {
    width: 100%;
    background: #1976D2;
    border-radius: 4px 4px 0 0;
    min-height: 3px;
    transition: height 0.3s;
}
.stat-month-count {
    font-size: 9px;
    font-weight: 700;
    color: #1565C0;
    min-height: 12px;
}
.stat-month-label {
    font-size: 9px;
    color: #90A4AE;
    font-weight: 700;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #e3ecf7;
    border-radius: 14px;
    padding: 10px 12px;
}

.bait-season-tip {
    background: linear-gradient(180deg, #1d3c5d 0%, #284f78 100%);
    color: #fff;
    border-radius: 14px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0;
}

.bait-species-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.bait-species-chip {
    border: 1px solid #d7e7ff;
    background: #fff;
    color: #37556b;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.bait-species-chip.active {
    background: #1d3c5d;
    border-color: #1d3c5d;
    color: #fff;
}

.bait-empty {
    color: #627284;
    font-size: 13px;
    padding: 10px;
}

/* ═══════════════════════════════════════════════════════
   HOLD NAPTÁR
═══════════════════════════════════════════════════════ */
.moon-date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.moon-nav-btn {
    font-size: 22px;
    width: 36px;
    height: 36px;
    border: 1px solid #dce6ee;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.moon-date-btn {
    background: #1D3C5D;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 6px 18px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.moon-card {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B3A5C 100%);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 14px;
}
.moon-emoji { font-size: 64px; line-height: 1; margin-bottom: 8px; }
.moon-phase-name { font-size: 20px; font-weight: 800; }
.moon-illumination { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 4px; }
.moon-illum-bar {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}
.moon-illum-fill {
    height: 100%;
    background: #FFD54F;
    border-radius: 4px;
    transition: width 0.4s;
}
.moon-fishing-row {
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
}
.solunar-peaks-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
    flex-wrap: wrap;
}
.solunar-peak {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.solunar-time {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1D3C5D;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.solunar-peak.main .solunar-time { background: #4CAF50; }
.solunar-label { font-size: 10px; color: #627284; }
.moon-7day-strip {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-top: 6px;
    padding: 4px 0;
}
.moon-strip-day {
    flex: 1;
    min-width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.moon-strip-day.active { background: rgba(29,60,93,0.12); }
.moon-strip-weekday { font-size: 9px; color: #90A4AE; font-weight: 700; }
.moon-strip-num { font-size: 11px; font-weight: 700; color: #263238; }
.moon-strip-emoji { font-size: 18px; }
.moon-strip-dots { color: #4CAF50; font-size: 8px; height: 10px; }

/* ═══════════════════════════════════════════════════════
   SZEZON NAPTÁR
═══════════════════════════════════════════════════════ */
.season-header-card {
    background: #1565C0;
    color: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
}
.season-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.season-species { font-size: 14px; font-weight: 800; color: #263238; }
.season-period { font-size: 11px; color: #607D8B; margin-top: 2px; }
.season-min-len { font-size: 11px; color: #607D8B; }
.season-status {
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}
.season-status-ok { background: #E8F5E9; color: #2E7D32; }
.season-status-banned { background: #FFEBEE; color: #B71C1C; }
.season-warning {
    margin-top: 12px;
    background: #FFF8E1;
    border: 1px solid #FFD54F;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 11px;
    color: #5D4037;
}

/* ═══════════════════════════════════════════════════════
   VERSENYEK
═══════════════════════════════════════════════════════ */
.tournament-card { position: relative; }
.catch-card-header-row { display: flex; align-items: flex-start; gap: 8px; }
.tournament-active-badge {
    background: #4CAF50;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}
.tournament-joined-badge {
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 99px;
}
.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid #E0E0E0;
}
.leaderboard-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

.catch-entry-modal-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
}

.catch-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.catch-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catch-field-full {
    grid-column: 1 / -1;
}

.catch-field span {
    color: #37556b;
    font-size: 12px;
    font-weight: 800;
}

.catch-field input,
.catch-field select,
.catch-field textarea {
    width: 100%;
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 14px;
    background: #fff;
}

.catch-field textarea {
    resize: vertical;
}

.catch-photo-preview-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #d8e4f1;
    border-radius: 16px;
    padding: 12px;
}

.catch-photo-preview-img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #d8e4f1;
    background: #eef4fb;
}

.catch-photo-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.catch-photo-preview-text {
    color: #4e6578;
    font-size: 12px;
    line-height: 1.5;
}

.empty-rich-state {
    background: linear-gradient(145deg, #fff 0%, #f3f8ff 100%);
    border: 1px dashed #cbddef;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    color: #607387;
}

.premium-lock-card {
    background: linear-gradient(145deg, #fff7dd 0%, #ffe8a7 100%);
    border: 1px solid #f2cf63;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 22px rgba(194, 148, 17, 0.14);
}

.premium-lock-card h4 {
    color: #17384a;
    margin-bottom: 6px;
}

.premium-lock-card p {
    font-size: 13px;
    color: #5a5b54;
    margin-bottom: 12px;
}

@media (max-width: 720px) {
    .catch-entry-grid,
    .stats-grid,
        overflow-x: hidden;
        grid-template-columns: 1fr;
    }
}

#catch-log-panel,
#stats-panel {
    max-height: 220px;
    overflow-y: auto;
    background: #f0f2f5;
    border-top: 1px solid #dbe2ea;
    padding: 12px;
}

/* Asztali nézet: nagyobb térkép, kompaktabb alsó panelek */
@media (min-width: 1024px) {
    #map {
        min-height: 500px;
        max-height: 60vh;
    }

/* ── Fishbook zöld téma harmonizáció az indexhez ── */
:root {
    --fb-green-1: #0a1f10;
    --fb-green-2: #123320;
    --fb-brand: #2db358;
    --fb-brand-2: #5dd98a;
    --fb-brand-deep: #148f4a;
    --fb-soft: #e2f5e9;
    --fb-line: rgba(13, 36, 22, 0.14);
}

body {
    font-family: "Saira Semi Condensed", "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(45, 179, 88, 0.16), transparent 34%),
        radial-gradient(circle at 90% 18%, rgba(93, 217, 138, 0.12), transparent 36%),
        linear-gradient(160deg, #eef8f0, #f7fbf8 56%, #edf6ef);
}

.login-screen,
header,
.side-menu-header {
    background: linear-gradient(135deg, var(--fb-green-1) 0%, var(--fb-green-2) 100%);
}

.login-container,
.admin-container,
.side-menu,
.nav-menu-sheet {
    border: 1px solid var(--fb-line);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.pin-input input:focus,
.form-group input:focus,
#chat-input:focus {
    border-color: var(--fb-brand);
    box-shadow: 0 0 0 3px rgba(45, 179, 88, 0.14);
}

.btn-link,
.admin-container h2,
.admin-map-empty,
.location-count,
.help-link {
    color: var(--fb-brand);
}

.btn-link:hover {
    color: var(--fb-brand-deep);
}

.btn-info,
.user-item button.btn-info,
.menu-btn-add,
.menu-btn-chat,
#share-location-btn,
#share-location-toggle.active {
    background: linear-gradient(145deg, var(--fb-brand), var(--fb-brand-2));
    color: #fff;
}

.btn-info:hover,
.user-item button.btn-info:hover,
.menu-btn-add:hover,
.menu-btn-chat:hover {
    background: linear-gradient(145deg, #26a14e, #49c977);
}

.chat-msg.mine,
.pwa-modal-card h3,
.admin-map-modal-header {
    background: linear-gradient(145deg, var(--fb-brand), var(--fb-brand-deep));
}

.user-avatar,
.inline-avatar {
    color: var(--fb-green-2);
    background: #e7f7ed;
    border-color: rgba(45, 179, 88, 0.22);
}

.address-suggestion-item:hover,
.address-suggestion-item.active,
.nav-menu-link:hover,
.nav-menu-link:active {
    background: #f0fdf4;
    color: var(--fb-brand);
}

.status-indicator.online,
.live-location-indicator {
    background: rgba(45, 179, 88, 0.18);
    border-color: rgba(45, 179, 88, 0.26);
    color: #eefcf3;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active,
.nm-icon,
.nav-menu-link:hover .nm-icon,
.nav-menu-link:active .nm-icon {
    color: var(--fb-brand);
}

    .controls {
        gap: 6px;
        padding: 8px 10px;
    }

    .btn {
        padding: 9px 12px;
        font-size: 13px;
    }

    .points-panel {
        max-height: 170px;
        padding: 10px;
    }

    #catch-log-panel,
    #stats-panel {
        max-height: 170px;
        padding: 10px;
    }
}

.points-panel h3 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #1f2937;
    font-weight: 700;
    letter-spacing: 0.2px;
}

#catch-log-panel h3,
#stats-panel h3 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #1f2937;
    font-weight: 700;
    letter-spacing: 0.2px;
}

#points-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.points-empty {
    color: #7b8797;
    font-size: 12px;
    background: #fff;
    border: 1px dashed #d5dce7;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

#shared-points-inbox {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.shared-inbox-item {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
}

.shared-inbox-title {
    color: #7a5a00;
    font-weight: 600;
    margin-bottom: 6px;
}

.shared-inbox-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.shared-inbox-actions button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    color: #fff;
}

.shared-accept-btn {
    background: #43a047;
}

.shared-pending-btn {
    background: #fb8c00;
}

.shared-reject-btn {
    background: #6d4c41;
}

.point-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    cursor: pointer;
}

.point-item .info {
    flex: 1;
    min-width: 0;
}

.point-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.point-item-head strong {
    color: #1f2937;
}

.point-item-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.point-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
}

.point-badge-shared {
    color: #fff;
    background: linear-gradient(135deg, #7a25ca 0%, #a13ac4 100%);
}

.point-badge-distance {
    color: #0f5fcf;
    background: #e8f1ff;
    border: 1px solid #cfe0ff;
}

.point-item .coords {
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
    word-break: break-word;
}

.point-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    cursor: default;
}

.point-btn {
    padding: 6px 11px;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.point-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    filter: brightness(1.04);
}

.point-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.point-btn-share {
    background: #1976d2;
}

.point-btn-hide {
    background: #757575;
}

.point-btn-delete {
    background: #d32f2f;
}

/* Irányjelző */
#direction-indicator {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

#direction-indicator.direction-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-20px);
}

.arrow {
    font-size: 48px;
    line-height: 1;
    transition: transform 0.3s;
}

#direction-indicator .info {
    margin-top: 8px;
    font-size: 14px;
}

#bearing-info {
    font-weight: 600;
    font-size: 16px;
}

#distance-to-point {
    color: #4caf50;
    font-weight: 600;
    margin-top: 4px;
}

/* Leaflet marker customization */
.current-position-marker {
    width: 20px;
    height: 20px;
    background: #2196f3;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.navigation-arrow-marker {
    width: 40px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.navigation-distance {
    font-size: 12px;
    font-weight: bold;
    color: #1976d2;
    background: white;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2px;
    white-space: nowrap;
    pointer-events: none; /* Ne blokkolja a pontokat alatta */
}

.navigation-arrow {
    font-size: 32px;
    color: #4285F4;
    text-shadow: 0 0 4px white, 0 0 8px rgba(66, 133, 244, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transform-origin: center;
    transition: transform 0.3s ease;
}

.leaflet-marker-draggable {
    cursor: move;
}

.inside-polygon {
    background: #4caf50 !important;
    animation: pulse-inside 1.5s infinite;
}

.outside-polygon {
    background: #ff9800 !important;
}

@keyframes pulse-inside {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.accuracy-circle {
    fill: #2196f3;
    fill-opacity: 0.1;
    stroke: #2196f3;
    stroke-opacity: 0.3;
}

.boundary-distance-tooltip {
    background: rgba(14, 27, 49, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.boundary-distance-tooltip:before {
    display: none;
}

/* Target zone */
.target-zone {
    fill: #4caf50;
    fill-opacity: 0.1;
    stroke: #4caf50;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
}

/* Reszponzív */
@media (max-width: 600px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    #app {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    #map {
        min-height: 45vh;
        flex: 0 0 45vh;
    }

    header {
        gap: 6px;
        padding: 10px 8px;
    }

    header h1 {
        font-size: 14px;
        letter-spacing: 0.1px;
    }

    .topbar-right {
        gap: 6px;
    }

    .topbar-feed-btn {
        padding: 7px 10px;
        font-size: 11px;
    }

    .topbar-right .btn-icon,
    .topbar-left .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .status-icon-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .side-menu-user {
        max-width: 52vw;
    }
    
    .controls {
        grid-template-columns: 1fr 1fr;
        overflow: visible;
    }
    
    .btn {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .status {
        gap: 4px;
        font-size: 11px;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .status::-webkit-scrollbar {
        display: none;
    }

    .status-indicator,
    .user-badge,
    #distance-info {
        font-size: 11px;
        padding: 4px 9px;
    }

    .btn-icon {
        font-size: 18px;
        padding: 4px 7px;
    }

    .point-item {
        flex-direction: column;
    }

    .point-item-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .point-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .points-panel {
        max-height: none;
    }

    .side-menu {
        width: 100%;
        max-height: 85vh;
    }

    .feed-composer-row,
    .feed-comment-row {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-action-btn,
    #feed-post-btn {
        width: 100%;
    }

    .pwa-modal-card {
        border-radius: 14px;
    }

    .pwa-modal-card h3 {
        font-size: 15px;
        padding: 12px 14px;
    }

    #share-dialog .form-group,
    #shared-requests-list,
    #chat-messages,
    #load-spot-list,
    #share-dialog .admin-footer,
    #shared-requests-modal .admin-footer,
    #chat-modal .admin-footer,
    #load-spot-modal .admin-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ── Fishbook zöld téma harmonizáció az indexhez ── */
:root {
    --fb-green-1: #0a1f10;
    --fb-green-2: #123320;
    --fb-brand: #2db358;
    --fb-brand-2: #5dd98a;
    --fb-brand-deep: #148f4a;
    --fb-line: rgba(13, 36, 22, 0.14);
}

body {
    font-family: "Saira Semi Condensed", "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(45, 179, 88, 0.16), transparent 34%),
        radial-gradient(circle at 90% 18%, rgba(93, 217, 138, 0.12), transparent 36%),
        linear-gradient(160deg, #eef8f0, #f7fbf8 56%, #edf6ef);
}

.login-screen,
header,
.side-menu-header {
    background: linear-gradient(135deg, var(--fb-green-1) 0%, var(--fb-green-2) 100%);
}

.login-container,
.admin-container,
.side-menu,
.nav-menu-sheet {
    border: 1px solid var(--fb-line);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.pin-input input:focus,
.form-group input:focus,
#chat-input:focus {
    border-color: var(--fb-brand);
    box-shadow: 0 0 0 3px rgba(45, 179, 88, 0.14);
}

.btn-link,
.admin-container h2,
.admin-map-empty,
.location-count,
.help-link {
    color: var(--fb-brand);
}

.btn-link:hover {
    color: var(--fb-brand-deep);
}

.btn-info,
.user-item button.btn-info,
.menu-btn-add,
.menu-btn-chat,
#share-location-btn,
#share-location-toggle.active {
    background: linear-gradient(145deg, var(--fb-brand), var(--fb-brand-2));
    color: #fff;
}

.btn-info:hover,
.user-item button.btn-info:hover,
.menu-btn-add:hover,
.menu-btn-chat:hover {
    background: linear-gradient(145deg, #26a14e, #49c977);
}

.chat-msg.mine,
.pwa-modal-card h3,
.admin-map-modal-header {
    background: linear-gradient(145deg, var(--fb-brand), var(--fb-brand-deep));
}

.user-avatar,
.inline-avatar {
    color: var(--fb-green-2);
    background: #e7f7ed;
    border-color: rgba(45, 179, 88, 0.22);
}

.address-suggestion-item:hover,
.address-suggestion-item.active,
.nav-menu-link:hover,
.nav-menu-link:active {
    background: #f0fdf4;
    color: var(--fb-brand);
}

.status-indicator.online,
.live-location-indicator {
    background: rgba(45, 179, 88, 0.18);
    border-color: rgba(45, 179, 88, 0.26);
    color: #eefcf3;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active,
.nm-icon,
.nav-menu-link:hover .nm-icon,
.nav-menu-link:active .nm-icon {
    color: var(--fb-brand);
}

@media (max-width: 420px) {
    .app-title-word {
        display: inline;
    }

    .app-title {
        gap: 4px;
        min-width: 0;
    }

    .topbar-feed-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    header h1 {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .app-title-word {
        display: inline;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-title {
        gap: 3px;
    }

    .topbar-logo {
        width: 20px;
        height: 20px;
    }
}

/* ===== ÚJ LOGIN DESIGN ===== */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
    padding: 32px 24px 24px;
    box-sizing: border-box;
    gap: 0;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d8ffea;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    user-select: none;
}

.login-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.login-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 0;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s;
}

.login-tab.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

#login-panel-email,
#login-panel-pin {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.login-field {
    width: 100%;
}

.login-field input,
.pin-input input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.login-field input::placeholder,
.pin-input input::placeholder {
    color: rgba(255,255,255,0.4);
}

.login-field input:focus,
.pin-input input:focus {
    border-color: #2db358 !important;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(45,179,88,0.18) !important;
}

.pin-input {
    width: 100%;
}

.pin-input input {
    text-align: center;
    font-size: 28px;
    letter-spacing: 10px;
    font-weight: 700;
}

#login-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 10px;
}

.login-error {
    min-height: 20px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
}

.login-bottom-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
    width: 100%;
}

.login-cache-btn {
    background: rgba(229,57,53,0.7) !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
}

.btn-install {
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

