@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --primary-text: #1F2937;
    --secondary-text: #6B7280;
    --accent-color: #0ea5e9;
    --bg-soft: #F9FAFB;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --success: #10B981;
}

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

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%);
    color: var(--primary-text);
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 100px;
    font-size: 15px;
    line-height: 1.6;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.poster-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 19px;
}

p {
    font-size: 15px;
    color: var(--secondary-text);
    font-weight: 500;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    transition: transform 0.2s ease;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 6px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-text h2 {
    margin-bottom: 2px;
    font-size: 20px;
}

.user-text p {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-text);
    transition: all 0.2s;
}

.icon-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hero Card */
.hero-card {
    position: relative;
    height: 260px;
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    color: white;
    z-index: 2;
}

.hero-content h3 {
    font-size: 26px;
    margin-bottom: 6px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 15px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Nav Grid */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 16px;
}

.nav-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 26px;
    color: var(--accent-color);
}

.nav-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.nav-desc {
    font-size: 13px;
    color: var(--secondary-text);
    font-weight: 500;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-icon {
    width: 48px;
    height: 48px;
    background: #E0F2FE;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0284C7;
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--primary-text);
}

.list-sub {
    font-size: 14px;
    color: var(--secondary-text);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.status-confirmed {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    height: 72px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-width: 510px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-item-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 11px;
    gap: 4px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-item-bottom.active {
    color: var(--accent-color);
}

.nav-icon-bottom {
    font-size: 24px;
}

/* Alert */
.alert {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 18px;
}

.alert h3 {
    font-size: 15px;
    color: #b45309;
    margin-bottom: 6px;
}

.alert p {
    font-size: 13px;
    color: #d97706;
}

.update-email-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.update-email-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 14px;
}

.update-email-form button {
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* Auth Pages */
body.auth-body {
    padding-bottom: 0;
    background: radial-gradient(circle at top right, #e0f2fe, #f0f9ff 50%, #e0f2fe);
}

.auth-container {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: authFadeIn 0.6s ease-out;
}

.auth-card.split-layout {
    max-width: 960px;
    padding: 0;
    display: flex;
    overflow: hidden;
    max-height: calc(100svh - 48px);
}

.auth-visual {
    flex: 0 0 42%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.08));
}

.auth-content {
    flex: 1 1 auto;
    padding: 48px 44px;
    overflow: auto;
}

.visual-text {
    text-align: center;
}

.visual-text h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.visual-text p {
    font-size: 14px;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--primary-text);
    letter-spacing: -0.03em;
}

.auth-header p {
    font-size: 15px;
    color: var(--secondary-text);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 13px;
    color: var(--primary-text);
    font-weight: 800;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: var(--secondary-text);
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 800;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.mascot-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.mascot-inline {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.mascot-large {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.auth-visual .mascot-large {
    width: clamp(180px, 18vw, 240px);
    margin-bottom: 18px;
}

.mascot-large:hover {
    transform: scale(1.02) rotate(1deg);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: #0284c7;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-soft {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-soft:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}


.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.main-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.error-message {
    display: none;
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile adjustments for split layout */
@media (max-width: 899px) {
    .auth-container {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 18px;
        padding-top: calc(18px + env(safe-area-inset-top));
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .auth-visual {
        display: flex;
        background: transparent;
        padding: 0;
        margin-bottom: 14px;
        justify-content: center;
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .mascot-large {
        width: clamp(96px, 24vw, 140px);
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
        transform: none;
        margin-bottom: 0;
    }

    .visual-text {
        display: none;
    }

    .auth-card.split-layout {
        padding: 26px;
        flex-direction: column;
        max-height: none;
    }

    .auth-header {
        margin-bottom: 22px;
    }

    .auth-footer {
        margin-top: 22px;
    }

    .auth-content {
        padding: 0;
        width: 100%;
        overflow: visible;
    }

    .auth-card {
        border-radius: 26px;
    }
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

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

.modal-icon {
    width: 64px;
    height: 64px;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-text);
    margin-bottom: 12px;
}

.modal-text {
    font-size: 15px;
    color: var(--secondary-text);
    margin-bottom: 28px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.modal-btn-confirm {
    background: #DC2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.modal-btn:active {
    transform: scale(0.96);
}

/* Points Page Map & Cards */
.map-filters-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.map-filters-container::-webkit-scrollbar {
    display: none;
}

.map-filter-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.map-container-outer {
    width: 100%;
    height: 250px;
    margin-bottom: 24px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

#pointsMap {
    width: 100%;
    height: 100%;
}

.point-card-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    margin-bottom: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.point-card-premium:active {
    transform: scale(0.97);
}

.point-hero {
    position: relative;
    height: 180px;
}

.point-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.point-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-labels {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.status-open {
    background: rgba(16, 185, 129, 0.85);
}

.status-closed {
    background: rgba(239, 68, 68, 0.85);
}

.badge-pin {
    background: rgba(14, 165, 233, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.point-info-premium {
    padding: 24px;
}

.point-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.point-title-premium {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

.point-meta-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 600;
}

.meta-item-premium i {
    color: var(--accent-color);
    font-size: 20px;
}

.point-stats-row {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-pill {
    background: rgba(14, 165, 233, 0.05);
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
}