
.icon {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

:root {
    --bg-primary: #0D0D1C;
    --bg-secondary: #12121E;
    --bg-card: #16162A;
    --bg-elevated: #1C1C32;
    --ul-avatar-size: 36px;
    --ul-row-gap: 11px;
    --ul-checkbox-size: 12px;
    --ul-checkbox-margin: 2px;
    --orange: #FF6B35;
    --orange-lt: #FF9A5C;
    --pink: #FF4D6D;
    --amber: #F9A825;
    --gradient-primary: linear-gradient(135deg, #FF4D6D, #F9A825);
    --gold: #FFD93D;
    --amber-tint: rgba(249, 168, 37, 0.12);
    --amber-border: rgba(249, 168, 37, 0.35);
    --hosting-tint: rgba(37, 99, 235, 0.16);
    --cancelled-tint: rgba(220, 38, 38, 0.16);
    --going-tint: rgba(46, 125, 50, 0.20);
    --invited-tint: rgba(249, 168, 37, 0.16);
    --completed-tint: rgba(71, 85, 105, 0.16);
    --public-tint: rgba(8, 145, 178, 0.16);
    --decline-red: #FF6B6B;
    --blue: #4C8DFF;
    --status-pill-bg: #4A3A1E;
    --status-pill-border: #6B5024;
    --teal: #0CB47A;
    --teal-lt: #7FE0C2;
    --conv-mine-bg: #2A2A46;
    --white: #FFFFFF;
    --text-primary: #F0F0F8;
    --text-secondary: #C4C4E8;
    --text-muted: #C4C4E8;
    --border: rgba(255,215,61,0.18);
    --border-lt: rgba(255,255,255,0.07);
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-gold: 0 8px 32px rgba(255,215,61,0.12);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

html.map-html,
html.map-html body {
    height: 100%;
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
}

.logo-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 24px;
}

    .auth-wrapper::before {
        content: '';
        position: fixed;
        top: -120px;
        right: -80px;
        width: 520px;
        height: 520px;
        background: radial-gradient(circle, rgba(255,77,109,0.09) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .auth-wrapper::after {
        content: '';
        position: fixed;
        bottom: -80px;
        left: -60px;
        width: 440px;
        height: 440px;
        background: radial-gradient(circle, rgba(249,168,37,0.08) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
}

    .auth-card.wide {
        max-width: 660px;
    }

.brand-logo {
    display: block;
    margin-bottom: 32px;
    width: 100%;
}

.brand-name {
    display: none;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 34px;
    font-size: 14px;
    font-style: normal;
}

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

.form-group {
    margin-bottom: 18px;
}

    .form-group label,
    .form-group .fg-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 7px;
        letter-spacing: 0.09em;
        font-style: normal;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        background: var(--bg-elevated);
        border: 1px solid var(--border-lt);
        border-radius: var(--radius-sm);
        padding: 13px 16px;
        color: var(--text-primary);
        font-size: 15px;
        font-family: 'DM Sans', sans-serif;
        transition: all 0.2s;
        outline: none;
        -webkit-appearance: none;
    }

    .form-group select {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239090B0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 38px;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--gold);
            background: var(--bg-elevated);
            box-shadow: 0 0 0 3px rgba(255,215,61,0.1);
        }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--text-muted);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

    .btn-primary:hover {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(255,77,109,0.3);
    }

.btn-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.2s;
}

    .btn-secondary:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

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

    .auth-footer a {
        color: var(--gold);
        text-decoration: none;
        font-weight: 600;
        transition: opacity 0.15s;
    }

        .auth-footer a:hover {
            opacity: 0.75;
        }

.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .alert > span:first-child {
        flex-shrink: 0;
        padding-top: 1px;
    }

.alert-text {
    flex: 1;
    line-height: 1.5;
}

.alert-error {
    background: rgba(255,77,109,0.1);
    border: 1px solid rgba(255,77,109,0.3);
    color: #ff9999;
}

.alert-success {
    background: rgba(12,180,122,0.1);
    border: 1px solid rgba(12,180,122,0.3);
    color: var(--teal-lt);
}

.alert-info {
    background: rgba(255,215,61,0.08);
    border: 1px solid rgba(255,215,61,0.2);
    color: var(--gold);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(13,13,28,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-lt);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1000;
}

    .navbar .brand {
        display: flex;
        align-items: center;
        cursor: pointer;
        width: 220px;
        flex-shrink: 0;
        height: 70px;
        overflow: hidden;
        padding: 5px 0;
    }

    .navbar .brand-name {
        display: none;
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

    .notification-btn:hover {
        color: var(--gold);
    }

.badge {
    background: var(--pink);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.55);
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.6), inset 0 -2px 4px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

    .user-avatar.mentor-overflow,
    .user-avatar[style*="overflow: visible"] {
        overflow: visible !important;
    }

.btn-logout {
    background: none;
    border: 1px solid rgba(255,77,109,0.3);
    color: var(--pink);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

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

.map-page {
    padding-top: 70px;
    height: 100vh;
    position: relative;
    margin-right: 290px;
}

#map {
    position: absolute;
    inset: 70px 0 0 0;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

    .sidebar-card h3 {
        font-size: 10px;
        font-family: 'DM Sans', sans-serif;
        font-style: normal;
        margin-bottom: 12px;
        color: var(--text-muted);
        font-weight: 600;
        letter-spacing: 0.1em;
    }

.user-list-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 5px;
    column-gap: var(--ul-row-gap);
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

    .user-list-item:hover {
        background: var(--bg-elevated);
    }

    .user-list-item .mini-avatar {
        width: var(--ul-avatar-size);
        height: var(--ul-avatar-size);
        border-radius: 50%;
        background: var(--gradient-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 13px;
        color: white;
        flex-shrink: 0;
        font-family: 'DM Sans', sans-serif;
        box-shadow: 0 3px 8px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.6), inset 0 -2px 4px rgba(0,0,0,0.25);
        position: relative;
        overflow: hidden;
        text-shadow: 0 1px 3px rgba(0,0,0,0.45);
    }

        .user-list-item .mini-avatar[style*="overflow: visible"],
        .tip-avatar[style*="overflow: visible"] {
            overflow: visible !important;
        }

    .user-list-item .user-info .name {
        font-weight: 600;
        font-size: 14px;
        color: var(--text-primary);
    }

    .user-list-item .user-info .dist {
        color: var(--text-muted);
        font-size: 12px;
        margin-top: 2px;
    }

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

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



.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#dmModal {
    z-index: 2001;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 680px;
    position: relative;
    box-shadow: var(--shadow);
    animation: modalIn 0.22s ease;
}

#dmModal .modal-box,
#broadcastModal .modal-box,
#shareModal .modal-box,
#helpModal .modal-box,
#profileModal .modal-box,
#notifModal .modal-box {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

@keyframes modalIn {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 22px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
}

.share-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border-lt);
}

.share-title {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 600;
}

.share-link-box {
    display: flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}

    .share-link-box input {
        flex: 1;
        background: none;
        border: none;
        color: var(--text-secondary);
        padding: 10px 12px;
        font-size: 13px;
        outline: none;
        font-family: monospace;
    }

    .share-link-box button {
        background: var(--gold);
        border: none;
        color: var(--bg-primary);
        padding: 10px 16px;
        font-size: 13px;
        cursor: pointer;
        font-weight: 700;
        transition: background 0.2s;
        font-family: 'DM Sans', sans-serif;
    }

        .share-link-box button:hover {
            background: var(--amber);
        }

.social-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

    .social-btn:hover {
        transform: translateY(-2px);
    }

    .social-btn.twitter {
        background: rgba(29,161,242,0.1);
        border-color: rgba(29,161,242,0.3);
        color: #1da1f2;
    }

    .social-btn.facebook {
        background: rgba(24,119,242,0.1);
        border-color: rgba(24,119,242,0.3);
        color: #1877f2;
    }

    .social-btn.whatsapp {
        background: rgba(37,211,102,0.1);
        border-color: rgba(37,211,102,0.3);
        color: #25d366;
    }

    .social-btn.linkedin {
        background: rgba(0,119,181,0.1);
        border-color: rgba(0,119,181,0.3);
        color: #0077b5;
    }

    .social-btn.email-share {
        background: rgba(255,215,61,0.08);
        border-color: rgba(255,215,61,0.2);
        color: var(--gold);
    }

.page-container {
    padding: 90px 28px 28px;
    max-width: 760px;
    margin: 0 auto;
}

.page-title {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

    .notification-item.unread {
        border-color: var(--gold);
        background: rgba(255,215,61,0.04);
    }

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content .notif-text {
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.notification-content .notif-time {
    color: var(--text-muted);
    font-size: 12px;
}

.share-trigger {
    background: var(--gold);
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    color: var(--bg-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

    .share-trigger:hover {
        background: var(--amber);
        transform: translateY(-1px);
    }

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-elevated);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
    white-space: nowrap;
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }

.welcome-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 16px;
    z-index: 500;
    box-shadow: 0 6px 24px rgba(255,77,109,0.4);
    animation: welcomeSlide 0.5s ease forwards, fadeOut 0.5s ease 4.5s forwards;
}

@keyframes welcomeSlide {
    from {
        opacity: 0;
        top: 60px;
    }

    to {
        opacity: 1;
        top: 80px;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.connect-msg-area:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,215,61,0.1);
}

.meta-info span {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .meta-info span strong {
        color: var(--text-primary);
    }

.field-error {
    color: #ff9999;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold);
    }

@media (max-width: 768px) {
    .auth-wrapper {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 20px;
    }

        .auth-card.wide {
            max-width: 100%;
        }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-container {
        padding: 84px 14px 14px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        margin-bottom: 20px;
    }

    .navbar {
        padding: 0 14px;
        height: 58px;
    }

        .navbar .brand {
            width: 140px;
            height: 58px;
        }

    .nav-actions {
        gap: 8px;
    }

}

@media (max-width: 520px) {
    .auth-wrapper {
        padding: 10px;
    }

    .auth-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 20px;
    }

    .brand-logo {
        margin-bottom: 20px;
    }

    .btn-primary {
        font-size: 14px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input {
        font-size: 14px;
        padding: 11px 14px;
    }

    .navbar {
        padding: 0 10px;
        height: 54px;
    }

        .navbar .brand {
            width: 120px;
            height: 54px;
        }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .notification-btn {
        font-size: 18px;
        padding: 4px 6px;
    }
}

.unread-dot {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    flex-shrink: 0;
    display: inline-block;
}

html[data-theme="light"] .alert-success {
    color: #0E9465;
    background: rgba(14, 148, 101, 0.08);
    border-color: rgba(14, 148, 101, 0.28);
}

html[data-theme="light"] .alert-error {
    color: #C0183A;
    background: rgba(192, 24, 58, 0.08);
    border-color: rgba(192, 24, 58, 0.28);
}

html[data-theme="light"] .alert-info {
    color: #C07800;
    background: rgba(192, 120, 0, 0.08);
    border-color: rgba(192, 120, 0, 0.25);
}
