@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    height: 100vh;
    overflow: hidden;
}

#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#app {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px;
    padding-left: 20px;
    pointer-events: none;
}

#centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

h1 {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1.4rem;
    margin: 0;
    text-align: center;
}

/* Logo letters - dark text for light theme */
.logo-t, .logo-x, .logo-t2, .logo-p, .logo-i, .logo-n {
    color: #2c2c2c;
}

#search-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

#search-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    max-width: 400px;
}

#search-input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

#search-button {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

#search-button:active {
    transform: translateY(0);
}

#search-cancel-button {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#search-cancel-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

#search-cancel-button:active {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(1px);
}

#search-toggle-button {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#search-toggle-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

#search-toggle-button:active {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(1px);
}

/* Authentication UI Styles */
#auth-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 15;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#auth-container #location-button {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#auth-container #location-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

#auth-container #location-button:active {
    transform: translateY(0);
}

#auth-container #location-button:disabled {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#auth-container #add-pin-button {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#auth-container #add-pin-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

#auth-container #add-pin-button:active {
    transform: translateY(0);
}

#auth-container #add-pin-button:disabled {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#auth-container #refresh-button {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#auth-container #refresh-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

#auth-container #refresh-button:active {
    transform: translateY(0);
}

#auth-container #refresh-button:disabled {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#user-info {
    position: relative;
    display: none;
}

#user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#user-avatar:hover {
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Profile Dropdown Styles */
#profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 8px;
    min-width: 160px;
    z-index: 20;
    margin-top: 8px;
}

#profile-dropdown button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #2c2c2c;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    text-align: left;
    display: block;
}

#profile-dropdown button:hover {
    background: rgba(255, 255, 255, 0.1);
}

#profile-dropdown button:active {
    background: rgba(255, 255, 255, 0.2);
}

#profile-dropdown #delete-account-button {
    color: #ea4335;
}

#profile-dropdown #delete-account-button:hover {
    background: rgba(234, 67, 53, 0.2);
}

#auth-button {
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#auth-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Menu Button Styles */
#menu-button {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 13px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#menu-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

#menu-button:active {
    transform: translateY(0);
}

/* Dropdown Menu Styles */
#dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 8px;
    min-width: 160px;
    z-index: 20;
    margin-top: 8px;
}

#dropdown-menu button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #2c2c2c;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    text-align: left;
    display: block;
}

#dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

#dropdown-menu button:active {
    background: rgba(255, 255, 255, 0.2);
}

#dropdown-menu #delete-account-button {
    color: #ea4335;
}

#dropdown-menu #delete-account-button:hover {
    background: rgba(234, 67, 53, 0.2);
}

/* Text Pin Modal Styles */
#pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(8px);
    z-index: 20;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

#pin-modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    color: #2c2c2c;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Location Permission Dialog Styles */
#location-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(8px);
    z-index: 25;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

#location-dialog-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    text-align: center;
    color: #2c2c2c;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

#location-dialog-content h3 {
    margin: 0 0 16px 0;
    color: #2c2c2c;
    font-size: 1.4rem;
    font-weight: 600;
}

#location-dialog-content p {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

#location-dialog-content ul {
    text-align: left;
    margin: 0 0 20px 0;
    padding-left: 20px;
}

#location-dialog-content li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

#pin-text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: #2c2c2c;
    transition: all 0.2s;
}

#pin-text-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

#pin-text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#character-count {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.modal-button {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

#pin-save-btn, #location-allow-btn, #username-save-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #2c2c2c;
}

#pin-cancel-btn, #location-deny-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.modal-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

.modal-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Pin Type Selector Styles */
#pin-type-selector {
    margin-bottom: 18px;
}

#pin-type-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c2c2c;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.type-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.type-option {
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.type-option:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.type-option.selected {
    border-color: #2c2c2c;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in;
}

.loading-content {
    text-align: center;
    color: #2c2c2c;
    animation: slideInUp 0.6s ease-out;
}

.loading-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: logoFloat 2s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.loading-logo img {
    height: 80px;
    width: auto;
}

.loading-logo .logo-t { color: #2c2c2c; }
.loading-logo .logo-x { color: #2c2c2c; }
.loading-logo .logo-t2 { color: #2c2c2c; }
.loading-logo .logo-p { color: #2c2c2c; }
.loading-logo .logo-i { color: #2c2c2c; }
.loading-logo .logo-n { color: #2c2c2c; }

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0.9;
}

.loading-progress {
    width: 160px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a, rgba(26, 26, 26, 0.8));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 400;
    color: #666666;
}

/* Mini Loader for actions */
#mini-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    color: #2c2c2c;
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

.mini-loader-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Loading states for buttons */
.loading-state {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive loading screen */
@media (max-width: 600px) {
    .loading-logo {
        font-size: 2.5rem;
    }
    
    .loading-text {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    #mini-loader {
        padding: 15px 20px;
    }
}

/* Username Setup Modal Styles */
#username-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(8px);
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

#username-modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    text-align: center;
    color: #2c2c2c;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

#username-modal-content h3 {
    margin: 0 0 12px 0;
    color: #2c2c2c;
    font-size: 1.5rem;
    font-weight: 600;
}

#username-modal-content p {
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    text-align: left;
}

.username-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease;
}

.username-input-container:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.username-prefix {
    padding: 12px 8px 12px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 0 0 12px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

#username-input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: transparent;
    color: #2c2c2c;
}

#username-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#username-feedback {
    text-align: left;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 8px;
}

#username-feedback.success {
    color: #34a853;
}

#username-feedback.error {
    color: #ea4335;
}

#username-feedback.checking {
    color: #fbbc04;
}

.username-requirements {
    text-align: left;
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.username-requirements p {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
}

.username-requirements ul {
    margin: 0;
    padding-left: 16px;
}

.username-requirements li {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.3;
}

#username-save-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #2c2c2c;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#username-save-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

#username-save-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Username display improvements */
.username-display {
    font-weight: 500;
    color: #1976d2;
}

@media (max-width: 600px) {
    #username-modal-content {
        padding: 20px 16px;
        margin: 10px;
    }
    
    .username-requirements {
        padding: 10px;
    }
}

/* Material Icons Styling */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon-only buttons (no text) */
#location-button .material-symbols-outlined,
#add-pin-button .material-symbols-outlined,
#refresh-button .material-symbols-outlined,
#menu-button .material-symbols-outlined,
#search-button .material-symbols-outlined,
#search-cancel-button .material-symbols-outlined,
#search-toggle-button .material-symbols-outlined {
    margin-right: 0;
    font-size: 20px;
}

/* Dropdown menu button icons */
#dropdown-menu button .material-symbols-outlined,
#profile-dropdown button .material-symbols-outlined {
    margin-right: 8px;
    font-size: 18px;
}

/* Modal button icons */
.modal-button .material-symbols-outlined {
    margin-right: 6px;
    font-size: 18px;
}

@media (max-width: 600px) {
    #search-container {
        top: 15px;
        left: 15px;
        right: 15px;
        gap: 8px;
    }
    
    #search-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    #search-button,
    #search-cancel-button {
        padding: 10px 12px;
        min-width: 44px;
    }
    
    #auth-container {
        gap: 8px;
    }
    
    #auth-container button {
        min-width: 44px;
        padding: 10px;
    }
}
