* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            /* Mobile touch optimization - v2.8 */
            -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
            -webkit-touch-callout: none;
        }

        html, body {
            width: 100%;
            min-height: 100vh;
            max-width: 100vw;
            overflow-x: hidden;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
            /* Better text rendering on mobile */
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 1rem;
            /* Safe area for notched devices */
            padding-top: max(0.5rem, env(safe-area-inset-top));
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            min-height: 50px;
            z-index: 100;
        }

        .test-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            padding: 0.4rem 0.7rem;
            color: #fff;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
        }

        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem 1rem;
            gap: 2rem;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        .brand-logo {
            width: 100px;
            height: auto;
            border-radius: 15px;
            display: block;
            margin: 0 auto 1rem auto;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .features {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            width: 100%;
            max-width: 600px;
        }

        .feature-btn {
            background: rgba(255, 255, 255, 0.95);
            border: none;
            border-radius: 30px;
            padding: 1rem 1.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .feature-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        }

        .feature-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .feature-title {
            font-size: 1.2rem;
            color: #2d3748;
            text-align: left;
        }

        .feature-desc {
            font-size: 0.85rem;
            color: #718096;
            text-align: left;
            font-weight: 400;
        }

        /* AUTH STYLES - v2.4 */
        .header-right {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        /* HAMBURGER MENU STYLES - v2.8 NEW */
        .hamburger-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            padding: 0.6rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hamburger-btn:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .hamburger-icon {
            width: 24px;
            height: 18px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .hamburger-icon span {
            display: block;
            height: 3px;
            width: 100%;
            background: #fff;
            border-radius: 2px;
            transition: all 0.3s;
        }

        .hamburger-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 280px;
            height: 100vh;
            background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
            z-index: 10000;
            transition: right 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .hamburger-menu.open {
            right: 0;
        }

        .hamburger-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 10;
        }

        .hamburger-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .hamburger-content {
            padding: 5rem 2rem 2rem 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 3rem;
        }

        .hamburger-menu-btn {
            padding: 1.2rem;
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            color: #fff;
            white-space: nowrap;
            min-height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .hamburger-menu-btn:active {
            transform: scale(0.98);
        }

        .hamburger-menu-btn.login-btn {
            background: #4ade80;
        }

        .hamburger-menu-btn.login-btn:hover {
            background: #22c55e;
        }

        .hamburger-menu-btn.signup-btn {
            background: #f97316;
        }

        .hamburger-menu-btn.signup-btn:hover {
            background: #ea580c;
        }

        .hamburger-menu-btn.about-btn {
            background: #a855f7;
        }

        .hamburger-menu-btn.about-btn:hover {
            background: #9333ea;
        }

        .hamburger-menu-btn.contact-btn {
            background: #14b8a6;
        }

        .hamburger-menu-btn.contact-btn:hover {
            background: #0d9488;
        }
        
        /* v4.2.9 - Hamburger User Section */
        .hamburger-user-section {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 0.5rem;
            text-align: center;
        }
        
        .hamburger-user-id {
            color: #fff;
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }
        
        .hamburger-user-location {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: #fff;
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
        }
        
        .hamburger-flag .fi {
            font-size: 1.2rem;
        }
        
        .hamburger-geolocation-note {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.75rem;
            font-style: italic;
            margin-bottom: 0.75rem;
        }
        
        .hamburger-user-section .logout-btn {
            width: 100%;
            margin-top: 0.5rem;
        }
        
        .hamburger-divider {
            border: none;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            margin: 0.5rem 0;
        }

        .auth-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            padding: 0.5rem 1rem;
            color: #fff;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .auth-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        .auth-btn-primary {
            background: rgba(255, 255, 255, 0.95);
            color: #667eea;
            border: 2px solid rgba(255, 255, 255, 0.95);
        }

        .auth-btn-primary:hover {
            background: #fff;
        }

        /* USER PROFILE IN HEADER - v2.6 UPDATED */
        .user-profile {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: rgba(255, 255, 255, 0.15);
            padding: 0.5rem 1rem;
            border-radius: 25px;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #fff;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .user-username {
            color: #fff;
        }

        .user-country {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.8rem;
        }

        .logout-btn {
            background: rgba(244, 67, 54, 0.9);
            border: none;
            border-radius: 15px;
            padding: 0.4rem 0.8rem;
            color: #fff;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .logout-btn:hover {
            background: #d32f2f;
            transform: translateY(-1px);
        }

        /* AUTH MODAL STYLES - v4.3.4 Unified */
        .auth-modal-content {
            /* Inherits from unified modal system */
            padding-top: 1rem;
        }

        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .auth-input {
            padding: 0.75rem;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.2s;
            width: 100%;
            box-sizing: border-box;
        }

        .auth-input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        /* PASSWORD VISIBILITY TOGGLE - v2.8 NEW */
        .password-input-group {
            position: relative;
            width: 100%;
        }
        
        .password-toggle-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.3rem;
            color: #718096;
            padding: 0;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            /* Proper touch target for mobile */
            min-width: 44px;
            min-height: 44px;
        }
        
        .password-toggle-btn:hover {
            color: #667eea;
        }
        
        .password-input-group .auth-input {
            padding-right: 45px;
        }
        
        /* v3.3: Username Display in Input Field (Smart Login) */
        .username-input-display {
            width: 100%;
            padding: 0.9rem;
            border: 2px solid #667eea;
            border-radius: 10px;
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            min-height: 50px;
            display: flex;
            align-items: center;
            margin-bottom: 0;
        }
        
        .username-display-value {
            color: #2d3748; /* Changed from #667eea for better contrast */
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            white-space: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            width: 100%;
            padding: 0.2rem 0;
        }
        
        /* Hide scrollbar but keep functionality */
        .username-display-value::-webkit-scrollbar {
            height: 3px;
        }
        
        .username-display-value::-webkit-scrollbar-thumb {
            background: #667eea;
            border-radius: 3px;
        }
        
        .smart-login-wrapper {
            width: 100%;
        }

        .auth-submit-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            padding: 1rem;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

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

        .auth-submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .auth-error {
            background: #fee;
            color: #c33;
            padding: 0.75rem;
            border-radius: 8px;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .auth-switch {
            text-align: center;
            margin-top: 1rem;
            color: #718096;
            font-size: 0.9rem;
        }

        .auth-switch-link {
            color: #667eea;
            font-weight: 600;
            cursor: pointer;
            text-decoration: underline;
        }

        .auth-switch-link:hover {
            color: #764ba2;
        }

        /* USERNAME SYSTEM STYLES - v2.6 NEW */
        .username-section {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1rem;
            overflow: hidden;
            max-width: 100%;
        }

        .username-title {
            font-size: 1rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            word-break: break-word;
            overflow-wrap: break-word;
            max-width: 100%;
        }

        .username-title span {
            flex-shrink: 0;
        }

        .username-title span[data-i18n] {
            flex: 1;
            min-width: 0;
        }

        .username-subtitle {
            font-size: 0.85rem;
            color: #718096;
            margin-bottom: 1rem;
        }

        .country-display {
            background: #fff;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            border: 2px solid #e2e8f0;
        }

        .country-label {
            font-size: 0.8rem;
            color: #718096;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .country-value {
            font-size: 0.9rem;
            color: #2d3748;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        /* Flag Icons Styling - Build 011: Enhanced for flag-icons CSS library */
        .fi {
            width: 24px;
            height: 18px;
            display: inline-block;
            border-radius: 3px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            vertical-align: middle;
        }

        .country-value .fi {
            width: 28px;
            height: 21px;
        }

        .posted-by-country .fi {
            width: 24px;
            height: 18px;
        }

        .username-display {
            background: #fff;
            padding: 1rem;
            border-radius: 10px;
            border: 2px solid #667eea;
            margin-bottom: 1rem;
            overflow: visible;
            max-width: 100%;
        }

        .username-label {
            font-size: 0.8rem;
            color: #718096;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .username-value {
            font-size: 1.3rem;
            color: #2d3748; /* Changed from #667eea for better contrast */
            font-weight: 700;
            font-family: 'Courier New', monospace;
            margin-bottom: 0.5rem;
            white-space: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            line-height: 1.5;
            -webkit-overflow-scrolling: touch;
        }

        .username-country-full {
            font-size: 0.85rem;
            color: #4a5568;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .username-actions {
            display: flex;
            gap: 0.5rem;
        }

        .username-btn {
            flex: 1;
            padding: 0.7rem;
            border: 2px solid #667eea;
            background: #fff;
            color: #667eea;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .username-btn:hover {
            background: #667eea;
            color: #fff;
            transform: translateY(-1px);
        }

        .username-btn-primary {
            background: #667eea;
            color: #fff;
        }

        .username-btn-primary:hover {
            background: #5568d3;
        }

        .username-loading {
            text-align: center;
            color: #667eea;
            font-size: 0.9rem;
            padding: 1rem;
        }

        /* CUSTOMIZE USERNAME SECTION - v2.6 NEW - FIXED v2.8 */
        .customize-section {
            background: #fff;
            padding: 1rem;
            border-radius: 10px;
            border: 2px solid #e2e8f0;
            margin-top: 1rem;
            position: relative;
        }

        .customize-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.75rem;
        }

        .customize-input-group {
            display: flex;
            gap: 0.25rem;
            margin-bottom: 0.75rem;
            width: 100%;
            box-sizing: border-box;
        }

        .word-input {
            flex: 1;
            padding: 0.7rem;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.9rem;
            font-family: 'Courier New', monospace;
            transition: border-color 0.2s;
            min-width: 0;
            box-sizing: border-box;
        }

        .word-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .word-input.invalid {
            border-color: #f44336;
        }

        .word-input.valid {
            border-color: #4caf50;
        }

        .dot-separator {
            display: flex;
            align-items: center;
            color: #667eea;
            font-weight: 700;
            font-size: 1.2rem;
        }

        .validation-message {
            font-size: 0.8rem;
            padding: 0.5rem;
            border-radius: 6px;
            margin-bottom: 0.5rem;
        }

        .validation-error {
            background: #fee;
            color: #c33;
        }

        .validation-success {
            background: #efe;
            color: #2a7;
        }

        .validation-checking {
            background: #fef3cd;
            color: #856404;
        }

        .word-suggestions {
            max-height: 150px;
            overflow-y: auto;
            background: #f7fafc;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            margin-top: 0.5rem;
        }

        .word-suggestion {
            padding: 0.5rem;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 0.85rem;
            color: #4a5568;
        }

        .word-suggestion:hover {
            background: #edf2f7;
        }

        .customize-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.75rem;
        }

        /* POSTED ADS SECTION */
        .posted-ads-section {
            width: 100%;
            max-width: 900px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 2rem;
            display: none;
            position: relative;
        }

        .posted-ads-section.show {
            display: block;
        }
        
        /* Close button for results container - v2.8 */
        .results-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: #f44336;
            color: #fff;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 10;
        }
        
        .results-close:hover {
            background: #d32f2f;
            transform: scale(1.1);
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #fff;
            text-align: center;
        }

        /* SEARCH RESULTS HEADER - v2.3 */
        .search-results-header {
            width: 100%;
            max-width: 900px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 1rem 1.5rem;
            display: none;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .search-results-header.show {
            display: flex;
        }

        .search-results-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

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

        .search-results-subtitle {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.9);
        }

        .change-search-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.4);
            color: #fff;
            padding: 0.6rem 1.2rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .change-search-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .ads-container {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .ad-card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 12px;
            padding: 1.25rem;
            border: 2px solid #cbd5e0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            color: #333;
            position: relative;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .ad-card:hover {
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        }

        /* Build 007: Ad ID Badge - permanent reference number */
        .ad-id-badge {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 0.25rem 0.6rem;
            border-radius: 4px;
            letter-spacing: 0.5px;
            z-index: 1;
        }

        .ad-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
            gap: 1rem;
        }

        .ad-keywords {
            font-size: 1.3rem;
            font-weight: 700;
            color: #2d3748;
            flex: 1;
        }

        .ad-delete-btn {
            background: #f44336;
            color: #fff;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            line-height: 1;
            padding: 0;
        }

        .ad-delete-btn:hover {
            background: #d32f2f;
            transform: scale(1.1);
        }

        .ad-delete-btn:active {
            transform: scale(0.95);
        }
        
        /* v4.2.6 - Header actions container */
        .ad-header-actions {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-shrink: 0;
        }
        
        /* v4.2.6 - Star button */
        .ad-star-btn {
            background: transparent;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.25rem;
            transition: all 0.3s;
            color: #cbd5e0;
        }
        
        .ad-star-btn:hover {
            transform: scale(1.2);
            color: #f6ad55;
        }
        
        .ad-star-btn.star-saved {
            color: #f6ad55;
        }
        
        /* v4.2.6 - Action buttons */
        .btn-action {
            flex: 1;
            padding: 0.6rem 0.8rem;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
        }
        
        .btn-message {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .btn-message:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        .btn-share {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
        }
        
        .btn-share:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
        }

        /* POSTED BY SECTION - v2.6 NEW */
        .ad-posted-by {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            border-left: 4px solid #667eea;
        }

        .posted-by-label {
            font-size: 0.75rem;
            color: #718096;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.5rem;
        }

        .posted-by-username {
            font-size: 1.1rem;
            color: #667eea;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            margin-bottom: 0.35rem;
        }

        .posted-by-country {
            font-size: 0.9rem;
            color: #4a5568;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            margin-bottom: 0.35rem;
        }

        .posted-by-date {
            font-size: 0.85rem;
            color: #718096;
            font-weight: 500;
        }

        .ad-description {
            color: #4a5568;
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 1rem;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .ad-locations {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1rem;
        }

        .ad-location-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: #2d3748;
        }

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

        .ad-location-label {
            font-weight: 600;
        }

        .ad-location-value {
            color: #667eea;
            font-weight: 600;
        }

        .ad-contact {
            background: rgba(102, 126, 234, 0.1);
            padding: 0.8rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .ad-contact-label {
            font-weight: 600;
            color: #4a5568;
            font-size: 0.9rem;
        }

        .ad-contact-value {
            color: #667eea;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .no-ads-message {
            background: rgba(255, 255, 255, 0.15);
            padding: 3rem 2rem;
            border-radius: 16px;
            text-align: center;
            color: #fff;
        }

        .no-ads-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .no-ads-text {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .no-ads-subtext {
            font-size: 0.95rem;
            opacity: 0.9;
        }

        /* ========================================================
           UNIFIED MODAL SYSTEM v4.3.4 - Mobile-First Design
           ======================================================== */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 1000;
            padding: 0;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }

        .modal.show {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 1rem;
        }
        
        /* Map modals need no padding when shown */
        #mapSearchModal.show,
        #mapPickerModal.show {
            padding: 0 !important;
            align-items: stretch;
        }
        
        /* Base modal content - all modals inherit this */
        .modal-content,
        .auth-modal-content,
        .find-modal-content,
        .radius-selector-content,
        .map-modal-content,
        .send-message-content,
        .edit-ad-content,
        .edit-note-content,
        .success-modal-content {
            background: #fff;
            border-radius: 16px;
            padding: 1.25rem;
            width: 100%;
            max-width: 400px;
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            color: #333;
            margin: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }
        
        /* Success modal stays compact */
        .success-modal-content {
            max-width: 280px;
            padding: 1.5rem;
            text-align: center;
        }
        
        /* Map modals need special handling - no overflow scroll */
        .map-modal-content {
            max-width: 95vw;
            max-height: 90vh;
            padding: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .modal-close {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: #ef4444;
            color: #fff;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 1.25rem;
            font-weight: 600;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        
        .modal-close:hover {
            background: #dc2626;
            transform: scale(1.05);
        }

        .modal-title {
            margin: 0 0 0.75rem 0;
            padding-right: 40px;
            color: #1a1a2e;
            font-size: 1.25rem;
            font-weight: 700;
            text-align: center;
        }
        
        .modal-subtitle {
            color: #64748b;
            font-size: 0.875rem;
            text-align: center;
            margin-bottom: 1rem;
        }

        /* SUCCESS MODAL STYLES - v4.3.4 compact */
        .success-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.75rem;
            font-size: 1.8rem;
        }

        .success-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #22c55e;
            margin-bottom: 0.5rem;
        }

        .success-message {
            color: #4a5568;
            font-size: 0.875rem;
            margin-bottom: 1rem;
            line-height: 1.4;
        }

        .success-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            padding: 0.6rem 1.5rem;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

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

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: #4a5568;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .form-input {
            width: 100%;
            padding: 0.9rem;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 1rem;
            color: #1a202c;
            transition: border-color 0.2s;
        }

        .form-input::placeholder {
            color: #64748b;
            opacity: 1;
        }

        .form-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .form-textarea {
            width: 100%;
            min-height: 120px;
            padding: 0.9rem;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 1rem;
            font-family: inherit;
            color: #1a202c;
            resize: vertical;
            transition: border-color 0.2s;
        }

        .form-textarea::placeholder {
            color: #64748b;
            opacity: 1;
        }

        .form-textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        /* v4.3.6 - Posting Guide Tip Box */
        .posting-tip {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            border: 1px solid #7dd3fc;
            border-radius: 10px;
            padding: 0.85rem 1rem;
            margin-bottom: 1rem;
            font-size: 0.85rem;
        }

        .posting-tip-title {
            font-weight: 700;
            color: #0369a1;
            margin-bottom: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .posting-tip-examples {
            color: #0c4a6e;
            line-height: 1.5;
        }

        .posting-tip-example {
            font-family: 'Courier New', monospace;
            background: rgba(255,255,255,0.6);
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            font-size: 0.8rem;
            display: inline-block;
            margin: 0.15rem 0;
        }

        /* v4.3.0 - Photo Upload Styles */
        .photo-upload-section {
            background: rgba(255, 255, 255, 0.05);
            padding: 1.25rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .photo-upload-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.1rem;
            font-weight: 700;
            color: #92400e;
            margin-bottom: 0.75rem;
        }

        .photo-tier-badge {
            background: #6b7280;
            color: white;
            padding: 0.2rem 0.5rem;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            margin-left: auto;
        }

        .photo-tier-badge.basic {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .photo-tier-badge.pro {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        .photo-upload-status {
            font-size: 0.9rem;
            color: #78716c;
            margin-bottom: 0.75rem;
        }

        .photo-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .photo-preview-item {
            position: relative;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            background: #f3f4f6;
        }

        .photo-preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-preview-remove {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .photo-preview-uploading {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.8rem;
        }

        .photo-upload-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .photo-add-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.6rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .photo-add-btn:hover {
            transform: scale(1.02);
        }

        .photo-add-btn.disabled {
            background: #9ca3af;
            cursor: not-allowed;
        }

        .photo-remaining {
            font-size: 0.85rem;
            color: #78716c;
        }

        .photo-remaining span {
            font-weight: 700;
            color: #667eea;
        }

        .photo-upgrade-prompt {
            text-align: center;
            padding: 0.5rem;
        }

        .photo-upgrade-prompt p {
            margin-bottom: 0.75rem;
            color: #92400e;
            font-weight: 500;
        }

        .btn-upgrade-small {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
        }

        /* BUILD 012 - Tier Comparison Design */
        .photo-tier-comparison {
            background: #f8fafc;
            border-radius: 12px;
            padding: 1rem;
            border: 1px solid #e2e8f0;
        }

        .tier-row {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border-radius: 8px;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .tier-row:hover {
            transform: translateX(4px);
        }

        .tier-row.tier-free {
            background: #f1f5f9;
            cursor: default;
        }

        .tier-row.tier-free:hover {
            transform: none;
        }

        .tier-row.tier-basic {
            background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
            border: 1px solid #93c5fd;
        }

        .tier-row.tier-pro {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid #fbbf24;
        }

        .tier-icon {
            font-size: 1.2rem;
            margin-right: 0.75rem;
            min-width: 28px;
        }

        .tier-name {
            font-weight: 700;
            font-size: 0.9rem;
            color: #1e293b;
            min-width: 120px;
        }

        .tier-desc {
            color: #64748b;
            font-size: 0.85rem;
            flex: 1;
        }

        .tier-status {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            background: #10b981;
            color: white;
        }

        .btn-upgrade-tier {
            width: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 0.875rem 1.5rem;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            margin-top: 0.75rem;
            transition: all 0.2s;
        }

        .btn-upgrade-tier:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .photo-upload-active {
            background: #f0fdf4;
            border: 2px dashed #86efac;
            border-radius: 12px;
            padding: 1rem;
        }

        /* My Ads Subscription Banner */
        .my-ads-subscription-banner {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid #c7d2fe;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .subscription-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .subscription-badge {
            padding: 0.3rem 0.75rem;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.85rem;
        }

        .subscription-badge.free {
            background: #f1f5f9;
            color: #64748b;
        }

        .subscription-badge.basic {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .subscription-badge.pro {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }

        .my-ads-actions {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .my-ads-action-btn {
            flex: 1;
            padding: 0.75rem 1rem;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s;
            border: none;
        }

        .my-ads-action-btn.post-new {
            background: #10b981;
            color: white;
        }

        .my-ads-action-btn.bulk-upload {
            background: #3b82f6;
            color: white;
        }

        .my-ads-action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        /* BUILD 013 - Bulk Upload Modal */
        .bulk-upload-content {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            max-width: 700px;
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .bulk-upload-header {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .bulk-upload-header h2 {
            margin: 0 0 0.5rem 0;
            font-size: 1.4rem;
        }

        .bulk-upload-header p {
            color: #718096;
            margin: 0;
            font-size: 0.9rem;
        }

        .bulk-upload-steps {
            background: linear-gradient(135deg, #667eea20, #764ba220);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }

        .bulk-upload-step {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }

        .bulk-upload-step:last-child {
            margin-bottom: 0;
        }

        .step-number {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
            flex-shrink: 0;
        }

        .step-content {
            flex: 1;
        }

        .step-content strong {
            display: block;
            margin-bottom: 0.25rem;
        }

        .step-content small {
            color: #718096;
            font-size: 0.8rem;
        }

        .bulk-upload-actions {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .btn-download-template {
            flex: 1;
            min-width: 140px;
            padding: 0.75rem 1rem;
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-download-template:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .csv-upload-zone {
            flex: 1;
            min-width: 200px;
            border: 2px dashed #cbd5e0;
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8fafc;
        }

        .csv-upload-zone:hover {
            border-color: #667eea;
            background: #667eea10;
        }

        .csv-upload-zone.drag-over {
            border-color: #667eea;
            background: #667eea20;
        }

        .csv-upload-zone input[type="file"] {
            display: none;
        }

        .csv-upload-icon {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .csv-upload-text {
            font-size: 0.9rem;
            color: #4a5568;
        }

        .csv-upload-hint {
            font-size: 0.75rem;
            color: #a0aec0;
            margin-top: 0.25rem;
        }

        /* Preview Table */
        .bulk-preview-container {
            display: none;
            margin-bottom: 1.5rem;
        }

        .bulk-preview-container.show {
            display: block;
        }

        .bulk-preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .bulk-preview-header h3 {
            margin: 0;
            font-size: 1rem;
        }

        .bulk-preview-count {
            background: #667eea;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.8rem;
        }

        .bulk-preview-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
            margin-bottom: 0.75rem;
        }

        .bulk-preview-table th {
            background: #f7fafc;
            padding: 0.5rem;
            text-align: left;
            border-bottom: 2px solid #e2e8f0;
            font-weight: 600;
            white-space: nowrap;
        }

        .bulk-preview-table td {
            padding: 0.5rem;
            border-bottom: 1px solid #e2e8f0;
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bulk-preview-table tr:hover {
            background: #f7fafc;
        }

        .bulk-preview-table .row-status {
            width: 30px;
            text-align: center;
        }

        .bulk-preview-table .row-valid {
            color: #10b981;
        }

        .bulk-preview-table .row-invalid {
            color: #ef4444;
        }

        .bulk-preview-scroll {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
        }

        .bulk-preview-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 8px;
            padding: 0.75rem;
            margin-top: 0.5rem;
            font-size: 0.85rem;
            color: #dc2626;
        }

        .bulk-submit-section {
            display: none;
            text-align: center;
        }

        .bulk-submit-section.show {
            display: block;
        }

        .btn-bulk-submit {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-bulk-submit:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-bulk-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .bulk-progress {
            margin-top: 1rem;
            display: none;
        }

        .bulk-progress.show {
            display: block;
        }

        .bulk-progress-bar {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
        }

        .bulk-progress-fill {
            height: 100%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            width: 0%;
            transition: width 0.3s ease;
        }

        .bulk-progress-text {
            text-align: center;
            margin-top: 0.5rem;
            font-size: 0.85rem;
            color: #4a5568;
        }

        /* Results */
        .bulk-results {
            display: none;
            margin-top: 1rem;
        }

        .bulk-results.show {
            display: block;
        }

        .bulk-result-summary {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .bulk-result-item {
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
        }

        .bulk-result-success {
            background: #d1fae5;
            color: #059669;
        }

        .bulk-result-failed {
            background: #fef2f2;
            color: #dc2626;
        }

        /* Photo carousel in ad cards */
        .ad-photo-carousel {
            position: relative;
            width: 100%;
            margin-bottom: 1rem;
            border-radius: 8px;
            overflow: hidden;
        }

        .ad-photo-main {
            width: 100%;
            height: 200px;
            object-fit: cover;
            cursor: pointer;
            -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
            touch-action: manipulation;
        }

        .ad-photo-thumbnails {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }

        .ad-photo-thumb {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            border: 2px solid transparent;
            flex-shrink: 0;
            -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
            touch-action: manipulation;
        }

        .ad-photo-thumb.active {
            border-color: #667eea;
        }

        .ad-photo-count {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
        }

        .location-section {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
        }

        .location-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .location-subtitle {
            font-size: 0.85rem;
            color: #718096;
            margin-bottom: 1rem;
        }

        .location-options {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .location-option-btn {
            background: #fff;
            border: 2px solid #e2e8f0;
            padding: 1rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.95rem;
            color: #2d3748;
            font-weight: 500;
        }

        .location-option-btn:hover {
            border-color: #667eea;
            background: #f7fafc;
        }

        .location-option-btn .icon {
            font-size: 1.5rem;
        }

        .location-result {
            background: #fff;
            padding: 1rem;
            border-radius: 10px;
            margin-top: 1rem;
            border: 2px solid #4ade80;
        }

        .location-result-label {
            font-size: 0.8rem;
            color: #718096;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .location-result-value {
            font-size: 1rem;
            color: #2d3748;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        /* v4.3.4 - Coordinates display with copy button */
        .location-coords-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
            padding-top: 0.5rem;
            border-top: 1px solid #e2e8f0;
        }
        
        .location-coords-value {
            font-size: 0.85rem;
            color: #718096;
            font-family: monospace;
            flex: 1;
        }
        
        .location-copy-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .location-copy-btn:hover {
            background: #5a6fd6;
        }

        /* FIND MODAL STYLES - v4.3.4 Unified */
        .find-modal-content {
            /* Inherits from unified modal system */
        }

        .find-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 0.5rem;
            text-align: center;
            padding-right: 40px;
        }

        .find-subtitle {
            font-size: 0.875rem;
            color: #64748b;
            margin-bottom: 1rem;
            text-align: center;
        }

        .device-note {
            background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
            padding: 0.6rem;
            border-radius: 8px;
            font-size: 0.8rem;
            color: #0c4a6e;
            text-align: center;
            margin-bottom: 0.75rem;
            border-left: 3px solid #0ea5e9;
        }

        .find-options {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .find-option-btn {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border: 2px solid #e2e8f0;
            padding: 0.875rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-weight: 600;
            color: #2d3748;
            font-size: 0.9rem;
        }

        .find-option-btn:hover {
            border-color: #667eea;
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(102, 126, 234, 0.15);
        }
        
        /* v4.2.4 - Selected state */
        .find-option-btn.selected,
        .location-option-btn.selected {
            border-color: #48bb78 !important;
            background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%) !important;
            box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
        }

        .find-option-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .find-option-btn.disabled:hover {
            transform: none;
            box-shadow: none;
        }

        .find-option-btn .icon {
            font-size: 1.5rem;
        }

        /* ADDRESS SEARCH STYLES - v2.3 */
        .address-search-section {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 1.5rem;
            border-radius: 12px;
        }

        .address-search-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .address-help-text {
            font-size: 0.85rem;
            color: #718096;
            margin-bottom: 1rem;
        }

        .address-input-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }

        .address-input {
            width: 100%;
            padding: 0.9rem;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.95rem;
            box-sizing: border-box;
        }

        .address-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .address-search-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            padding: 0.9rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
            font-size: 1rem;
        }

        .address-search-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .address-loading,
        .address-error {
            display: none;
            padding: 0.75rem;
            border-radius: 8px;
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }

        .address-loading {
            background: #fef3cd;
            color: #856404;
        }

        .address-error {
            background: #fee;
            color: #c33;
        }

        .address-suggestions {
            display: none;
            background: #fff;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            max-height: 200px;
            overflow-y: auto;
            margin-bottom: 0.75rem;
        }

        .address-suggestion-item {
            padding: 0.9rem;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
        }

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

        .address-suggestion-item:hover {
            background: #f7fafc;
        }

        .address-suggestion-name {
            font-weight: 600;
            color: #2d3748;
            font-size: 0.95rem;
        }

        .address-suggestion-detail {
            font-size: 0.8rem;
            color: #718096;
            margin-top: 0.25rem;
        }

        .address-selected-display {
            display: none;
            background: #fff;
            padding: 1rem;
            border-radius: 10px;
            border: 2px solid #4ade80;
        }

        .address-selected-text {
            font-weight: 700;
            color: #22c55e;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .address-selected-detail {
            color: #2d3748;
            font-size: 0.95rem;
        }

        /* ADDRESS SEARCH MODAL STYLES - v2.8 NEW DEDICATED MODAL */
        .address-search-modal-content {
            background: #fff;
            border-radius: 20px;
            padding: 1.5rem;
            max-width: 500px;
            width: calc(100% - 2rem);
            max-height: 85vh;
            overflow-y: auto;
            color: #333;
            position: relative;
            margin: 0 1rem;
        }

        .address-search-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .address-search-subtitle {
            font-size: 0.9rem;
            color: #718096;
            margin-bottom: 1rem;
            text-align: center;
        }

        .address-search-help {
            background: rgba(255, 255, 255, 0.05);
            padding: 0.75rem;
            border-radius: 10px;
            font-size: 0.85rem;
            color: #78350f;
            margin-bottom: 1rem;
            border-left: 4px solid #f59e0b;
        }

        .address-search-examples {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 0.75rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            font-size: 0.8rem;
            color: #2d3748;
        }

        .address-search-examples strong {
            display: block;
            margin-bottom: 0.5rem;
            color: #667eea;
        }

        .address-search-examples ul {
            margin: 0;
            padding-left: 1.25rem;
        }

        .address-search-examples li {
            margin: 0.2rem 0;
            color: #4a5568;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .address-search-examples li .fi {
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .address-input-wrapper {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .address-search-input {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }

        .address-search-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .address-search-button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            padding: 1rem 2rem;
            border-radius: 10px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
        }

        .address-search-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

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

        .address-search-loading {
            display: none;
            text-align: center;
            padding: 1.5rem;
            color: #667eea;
            font-weight: 600;
        }

        .address-search-error {
            display: none;
            background: #fee;
            color: #c33;
            padding: 1rem;
            border-radius: 10px;
            border-left: 4px solid #dc2626;
            margin-bottom: 1rem;
        }

        .address-search-results {
            display: none;
            max-height: 300px;
            overflow-y: auto;
            border-radius: 10px;
            border: 2px solid #e2e8f0;
        }

        .address-result-item {
            padding: 1rem;
            border-bottom: 1px solid #f1f5f9;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        .address-result-item:hover {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
        }

        .address-result-main {
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 0.25rem;
            font-size: 1rem;
        }

        .address-result-detail {
            color: #718096;
            font-size: 0.85rem;
        }

        /* RADIUS SELECTOR STYLES - v4.3.4 Unified */
        .radius-selector-content {
            /* Inherits from unified modal system */
        }

        .radius-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 1rem;
            text-align: center;
            padding-right: 40px;
        }

        .radius-location-info {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 0.75rem;
            border-radius: 10px;
            margin-bottom: 1rem;
        }

        .radius-location-text {
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 600;
            margin-bottom: 0.3rem;
        }

        .radius-location-value {
            font-size: 0.9rem;
            color: #1a1a2e;
            font-weight: 600;
        }

        .radius-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.6rem;
            margin-bottom: 1rem;
        }

        .radius-option {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border: 2px solid #e2e8f0;
            padding: 0.75rem;
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .radius-option:hover {
            border-color: #667eea;
            transform: translateY(-1px);
        }

        .radius-option.selected {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border-color: #667eea;
        }

        .radius-value {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .radius-label {
            font-size: 0.85rem;
            opacity: 0.9;
        }

        .radius-confirm-btn {
            width: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            padding: 1rem;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        .radius-confirm-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* MAP MODAL STYLES */
        .map-modal-content {
            background: #fff;
            border-radius: 15px;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }

        .map-header {
            padding: 1.5rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .map-title {
            font-size: 1.3rem;
            font-weight: 700;
        }

        .map-close {
            background: #f44336;
            color: #fff;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 10;
        }

        .map-close:hover {
            background: #d32f2f;
            transform: scale(1.1);
        }

        #map, #mapSearch {
            flex: 1;
            min-height: 250px;
        }

        .map-footer {
            padding: 1rem 1.5rem;
            background: #f7fafc;
            border-top: 2px solid #e2e8f0;
            flex-shrink: 0;
        }

        .map-selected-address {
            background: #fff;
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            border: 2px solid #e2e8f0;
            color: #2d3748;
            font-size: 0.95rem;
        }

        .map-confirm-btn {
            width: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            padding: 1rem;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        .map-confirm-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .btn-secondary {
            flex: 1;
            padding: 1rem;
            background: #e2e8f0;
            color: #4a5568;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        .btn-primary {
            flex: 1;
            padding: 1rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* AD ACTION BUTTONS - v2.4 */
        .ad-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 2px solid #e2e8f0;
        }

        .ad-action-btn {
            flex: 1;
            padding: 0.8rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .ad-action-btn:hover {
            transform: scale(1.05);
        }

        @media (max-width: 768px) {
            .user-profile {
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .user-info {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.25rem;
            }
        }

        /* === LANGUAGE SWITCHER - v2.6 === */
        .language-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            padding: 0.5rem 1rem;
            color: #fff;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            margin-right: 0.5rem;
        }

        .language-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        .language-dropdown {
            position: absolute;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            padding: 0.5rem;
            z-index: 2000;
            min-width: 180px;
        }

        .language-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            cursor: pointer;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .language-option:hover {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
        }

        .lang-flag {
            font-size: 1.3rem;
        }

        .lang-name {
            color: #2d3748;
            font-weight: 600;
            font-size: 0.95rem;
        }

        /* === TANGLE-ME LOGO BUTTON (TOP LEFT) === */
        .tangle-logo {
            position: fixed;
            top: 1rem;
            left: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 0.6rem 1.2rem;
            border-radius: 25px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            transition: all 0.3s ease;
            z-index: 1000;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .tangle-logo:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .tangle-logo:active {
            transform: translateY(0);
        }

        .tangle-logo-icon {
            font-size: 1.5rem;
            animation: spin 3s linear infinite;
        }

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

        .tangle-logo-text {
            font-size: 1.1rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.5px;
        }

        @media (max-width: 768px) {
            .tangle-logo {
                padding: 0.5rem 1rem;
                top: 0.5rem;
                left: 0.5rem;
            }
            .tangle-logo-text {
                font-size: 0.95rem;
            }
            .tangle-logo-icon {
                font-size: 1.3rem;
            }
        }

        /* === BRAND DESCRIPTION UNDER LOGO === */
        .brand-description {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .rotating-globe {
            font-size: 2.5rem;
            display: inline-block;
            position: relative;
            width: 60px;
            height: 60px;
        }
        
        /* Build 011: Simple globe emoji with pin - static, tilted */
        .globe-container {
            position: relative;
            width: 70px;
            height: 70px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transform: rotate(-23.5deg); /* Earth's axial tilt */
        }
        
        .globe-emoji {
            font-size: 3.2rem;
            display: inline-block;
        }
        
        /* Single Pin at top of globe */
        .globe-pin {
            position: absolute;
            top: 2px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1rem;
            z-index: 10;
            filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
        }

        .brand-tagline {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: 1px;
        }

        .brand-subtitle {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .globe-container {
                width: 60px;
                height: 60px;
            }
            .globe-emoji {
                font-size: 2.8rem;
            }
            .globe-pin {
                font-size: 0.85rem;
                top: 3px;
            }
            .brand-tagline {
                font-size: 1.2rem;
            }
            .brand-subtitle {
                font-size: 0.9rem;
            }
        }

        /* === EQUAL HEADER BUTTONS === */
        .header-btn-equal {
            width: 140px;
            height: 44px;
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            padding: 0;
            color: #fff;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
        }

        .header-btn-equal:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .header-btn-equal:active {
            transform: translateY(0);
        }

        .header-btn-equal.primary {
            background: rgba(255, 255, 255, 0.95);
            color: #667eea;
            border: 2px solid rgba(255, 255, 255, 0.95);
        }

        .header-btn-equal.primary:hover {
            background: #fff;
        }

        .header-left {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: wrap;
        }
        
        /* v4.3.4 - User ID Status Indicator (non-clickable, prominent) */
        .header-user-btn {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
            color: #1a1a2e !important;
            border: 2px solid #fbbf24 !important;
            cursor: default !important;
            width: auto !important;
            min-width: 140px;
            max-width: 220px;
            padding: 0 0.75rem !important;
            font-weight: 700 !important;
            font-size: 0.8rem !important;
            text-shadow: none;
            box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
        }
        
        .header-user-btn:hover {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
            transform: none !important;
        }
        
        .header-user-btn .fi {
            font-size: 1.1rem;
            margin-right: 0.25rem;
        }
        
        /* v4.2.9 - User Dropdown Popup */
        .user-dropdown {
            display: none;
            position: fixed;
            top: 60px;
            left: 10px;
            background: #fff;
            border-radius: 12px;
            padding: 1rem;
            min-width: 200px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            z-index: 2000;
            animation: dropdownSlide 0.2s ease;
        }
        
        .user-dropdown.show {
            display: block;
        }
        
        @keyframes dropdownSlide {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .user-dropdown-id {
            font-weight: 700;
            color: #667eea;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        
        .user-dropdown-location {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.9rem;
            color: #333;
            margin-bottom: 0.3rem;
        }
        
        .user-dropdown-location .fi {
            font-size: 1.2rem;
        }
        
        .user-dropdown-geo {
            font-size: 0.75rem;
            color: #718096;
            font-style: italic;
            margin-bottom: 0.75rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .user-dropdown-logout {
            width: 100%;
            background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
            color: white;
            border: none;
            padding: 0.6rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .user-dropdown-logout:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(245, 101, 101, 0.4);
        }
        
        /* Hide old header-center */
        .header-center {
            display: none;
        }
        
        .user-country-flag {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            background: rgba(255,255,255,0.2);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .user-country-flag .fi {
            font-size: 1rem;
        }
        
        .header-username {
            font-weight: 600;
            background: rgba(255,255,255,0.2);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        /* v4.2.8 - Message count badge */
        .message-count-badge {
            background: #f56565;
            color: white;
            font-size: 0.65rem;
            padding: 0.1rem 0.35rem;
            border-radius: 10px;
            margin-left: 0.2rem;
            font-weight: 700;
        }
        
        /* v4.2.8 - Demo button styling in hamburger */
        .hamburger-menu-btn.demo-btn {
            background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
            color: white;
        }
        
        /* v4.2.8 - Hide header-center on very small screens */
        @media (max-width: 600px) {
            .header-center {
                display: none !important;
            }
        }

        @media (max-width: 768px) {
            .header-btn-equal {
                width: 70px;
                height: 38px;
                font-size: 0.75rem;
            }
        }
        
        @media (max-width: 480px) {
            .header-btn-equal {
                width: 60px;
                height: 36px;
                font-size: 0.7rem;
                padding: 0.3rem 0.5rem;
            }
            
            /* Mobile Modal Fixes */
            .auth-modal-content {
                padding: 1rem;
            }
            
            /* Mobile Username Section Fixes */
            .username-section {
                padding: 1rem;
            }
            
            .username-title {
                font-size: 0.9rem;
            }
            
            .username-subtitle {
                font-size: 0.75rem;
            }
            
            .username-label {
                font-size: 0.7rem;
            }
            
            .username-value {
                font-size: 1.1rem;
            }
        }

        /* === PHASE 1 NEW STYLES - v2.6 === */
        
        /* Messages Badge */
        .messages-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            padding: 0.5rem 1rem;
            color: #fff;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .messages-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        .messages-btn .badge {
            background: #f44336;
            color: #fff;
            border-radius: 10px;
            padding: 0.15rem 0.5rem;
            font-size: 0.75rem;
            font-weight: 700;
            display: none;
        }

        .messages-btn .badge.show {
            display: inline-block;
        }

        /* Ad Number Badge */
        .ad-header-top {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 0.75rem;
            gap: 0.5rem;
        }

        .ad-num-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            padding: 0.4rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: default;
            white-space: nowrap;
        }

        /* Star Button */
        .star-btn {
            background: transparent;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            transition: transform 0.2s;
            padding: 0.25rem;
            line-height: 1;
        }

        .star-btn:hover {
            transform: scale(1.2);
        }

        .star-btn.saved {
            filter: drop-shadow(0 0 8px gold);
        }

        /* v4.3.2 - Search Results Modal */
        .search-results-modal-content {
            background: #fff;
            border-radius: 20px;
            padding: 2rem;
            max-width: 800px;
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            color: #333;
            position: relative;
        }
        
        .search-results-title {
            font-size: 1.6rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1rem;
            text-align: center;
        }
        
        .search-results-summary {
            text-align: center;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border-radius: 12px;
        }
        
        .summary-count {
            font-size: 1.3rem;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 0.5rem;
        }
        
        .summary-criteria {
            font-size: 0.9rem;
            color: #4a5568;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .criteria-separator {
            color: #a0aec0;
        }
        
        .criteria-keyword {
            font-weight: 600;
            color: #2d3748;
        }
        
        .search-results-container {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1.5rem;
            max-height: 50vh;
            overflow-y: auto;
            padding-right: 0.5rem;
        }
        
        .search-result-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 1rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: all 0.2s ease;
        }
        
        .search-result-card:hover {
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .result-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .result-ad-number {
            font-size: 0.85rem;
            color: #667eea;
            font-weight: 600;
            font-family: 'Courier New', monospace;
        }
        
        .result-star-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #cbd5e0;
            transition: all 0.2s ease;
            padding: 0.25rem;
        }
        
        .result-star-btn:hover {
            transform: scale(1.2);
            color: #f6ad55;
        }
        
        .result-star-btn.saved {
            color: #f6ad55;
        }
        
        .result-keywords {
            font-size: 1.1rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.5rem;
        }
        
        .premium-badge-small {
            font-size: 0.75rem;
            font-weight: 500;
            color: #f6ad55;
            margin-left: 0.5rem;
        }
        
        .result-description {
            font-size: 0.9rem;
            color: #4a5568;
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        
        .result-location {
            font-size: 0.85rem;
            color: #718096;
            margin-bottom: 0.75rem;
        }
        
        .result-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .btn-result-view,
        .btn-result-contact {
            flex: 1;
            padding: 0.6rem 1rem;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .btn-result-view {
            background: #f7fafc;
            color: #4a5568;
            border: 1px solid #e2e8f0;
        }
        
        .btn-result-view:hover {
            background: #edf2f7;
        }
        
        .btn-result-contact {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
        }
        
        .btn-result-contact:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        .no-results-found {
            text-align: center;
            padding: 3rem 2rem;
        }
        
        .no-results-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        
        .no-results-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.5rem;
        }
        
        .no-results-text {
            font-size: 0.95rem;
            color: #718096;
        }
        
        .search-results-footer {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }
        
        .search-results-footer .btn-secondary,
        .search-results-footer .btn-primary {
            min-width: 120px;
        }
        
        @media (max-width: 600px) {
            .search-results-modal-content {
                padding: 1.5rem;
                margin: 1rem;
            }
            
            .search-results-title {
                font-size: 1.3rem;
            }
            
            .summary-criteria {
                flex-direction: column;
                gap: 0.25rem;
            }
            
            .criteria-separator {
                display: none;
            }
            
            .result-actions {
                flex-direction: column;
            }
        }

        /* My Tangles Modal */
        .tangles-modal-content {
            background: #fff;
            border-radius: 20px;
            padding: 2rem;
            max-width: 700px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            color: #333;
            position: relative;
        }

        .tangles-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        /* v4.3.6 - My Tangles Contact Card Design */
        .tangle-card {
            background: #fff;
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .tangle-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }

        .tangle-flag {
            font-size: 1.5rem;
            line-height: 1;
        }

        .tangle-id-info {
            flex: 1;
        }

        .tangle-username {
            font-size: 1.1rem;
            font-weight: 700;
            color: #667eea;
            font-family: 'Courier New', monospace;
            margin-bottom: 0.15rem;
        }

        .tangle-since {
            font-size: 0.8rem;
            color: #718096;
        }

        .tangle-note-section {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 8px;
            padding: 0.75rem;
            margin: 0.75rem 0;
            min-height: 50px;
        }

        .tangle-note-label {
            font-size: 0.7rem;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.35rem;
        }

        .tangle-note-text {
            font-size: 0.9rem;
            color: #334155;
            line-height: 1.4;
        }

        .tangle-note-empty {
            font-size: 0.85rem;
            color: #94a3b8;
            font-style: italic;
        }

        .tangle-actions {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .tangle-btn {
            flex: 1;
            min-width: 80px;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
        }

        .tangle-btn:hover {
            transform: translateY(-1px);
        }

        .tangle-btn-view {
            background: #667eea;
            color: #fff;
        }

        .tangle-btn-edit {
            background: #fff;
            color: #667eea;
            border: 2px solid #667eea;
        }

        .tangle-btn-remove {
            background: #fff;
            color: #e53e3e;
            border: 2px solid #fed7d7;
        }

        .tangle-btn-remove:hover {
            background: #fff5f5;
            border-color: #e53e3e;
        }

        .no-tangles {
            text-align: center;
            padding: 3rem 2rem;
            color: #718096;
        }

        .no-tangles-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        /* Messages Modal */
        .messages-modal-content {
            background: #fff;
            border-radius: 20px;
            padding: 2rem;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            color: #333;
            position: relative;
        }

        .messages-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .messages-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid #e2e8f0;
        }

        .message-tab {
            padding: 0.75rem 1.5rem;
            background: transparent;
            border: none;
            color: #718096;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
            font-size: 1rem;
        }

        .message-tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        .message-tab:hover {
            color: #667eea;
        }

        .messages-container {
            min-height: 200px;
        }

        .message-card {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 4px solid #e2e8f0;
        }

        .message-card.unread {
            border-left-color: #667eea;
            background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
        }

        .message-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .message-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 0.75rem;
            gap: 1rem;
        }

        .message-from {
            font-weight: 700;
            color: #667eea;
            font-family: 'Courier New', monospace;
            font-size: 1.05rem;
        }

        .message-time {
            font-size: 0.8rem;
            color: #718096;
            white-space: nowrap;
        }

        .message-ad-ref {
            font-size: 0.85rem;
            color: #4a5568;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .message-text {
            color: #2d3748;
            font-size: 0.95rem;
            line-height: 1.5;
            white-space: pre-wrap;
        }

        /* Build 008: Message action buttons */
        .message-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(0,0,0,0.1);
        }

        .message-action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-width: 80px;
            gap: 0.35rem;
            padding: 0.6rem 1rem;
            border: none;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .message-action-btn.reply-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .message-action-btn.reply-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        }

        .message-action-btn.star-btn {
            background: #f7fafc;
            color: #4a5568;
            border: 2px solid #e2e8f0;
        }

        .message-action-btn.star-btn:hover {
            background: #fff9db;
            border-color: #f6ad55;
        }

        .message-action-btn.star-btn.saved {
            background: #fff9db;
            border-color: #f6ad55;
            color: #c05621;
        }

        .message-status {
            font-size: 0.85rem;
            color: #48bb78;
            font-weight: 500;
        }

        /* Build 017: Message Selection & Delete */
        .messages-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .messages-toolbar-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-edit-messages {
            padding: 0.4rem 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 20px;
            background: #f7fafc;
            color: #4a5568;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-edit-messages:hover {
            border-color: #667eea;
            color: #667eea;
        }

        .btn-edit-messages.active {
            background: #667eea;
            border-color: #667eea;
            color: white;
        }

        .messages-select-bar {
            display: none;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 1rem;
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .messages-select-bar.show {
            display: flex;
        }

        .messages-select-bar label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            font-weight: 600;
            color: #4a5568;
            cursor: pointer;
        }

        .messages-select-bar input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #667eea;
            cursor: pointer;
        }

        .btn-delete-selected {
            padding: 0.5rem 1.25rem;
            border: none;
            border-radius: 20px;
            background: #e53e3e;
            color: white;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            opacity: 0.5;
            pointer-events: none;
        }

        .btn-delete-selected.enabled {
            opacity: 1;
            pointer-events: auto;
        }

        .btn-delete-selected.enabled:hover {
            background: #c53030;
            transform: scale(1.05);
        }

        .selected-count {
            font-size: 0.8rem;
            color: #718096;
            margin-left: 0.5rem;
        }

        /* Message card checkbox (visible in edit mode) */
        .message-checkbox {
            display: none;
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 22px;
            height: 22px;
            accent-color: #667eea;
            cursor: pointer;
            z-index: 2;
        }

        .messages-edit-mode .message-checkbox {
            display: block;
        }

        .messages-edit-mode .message-card {
            position: relative;
            padding-right: 3.5rem;
        }

        .messages-edit-mode .message-card.selected {
            border-left-color: #e53e3e;
            background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
        }

        /* Individual delete button (swipe alternative for desktop) */
        .message-delete-single {
            display: none;
            padding: 0.4rem 0.8rem;
            border: none;
            border-radius: 20px;
            background: #fed7d7;
            color: #e53e3e;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .messages-edit-mode .message-delete-single {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        .message-delete-single:hover {
            background: #e53e3e;
            color: white;
        }

        .no-messages {
            text-align: center;
            padding: 3rem 2rem;
            color: #718096;
        }

        .no-messages-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        /* Send Message Modal - v4.3.4 Unified */
        .send-message-content {
            /* Inherits from unified modal system */
        }

        .send-message-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 0.5rem;
            text-align: center;
            padding-right: 40px;
        }

        .send-message-subtitle {
            font-size: 0.85rem;
            color: #64748b;
            margin-bottom: 1rem;
            text-align: center;
        }

        .message-textarea {
            width: 100%;
            min-height: 120px;
            padding: 0.75rem;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.9rem;
            font-family: inherit;
            resize: vertical;
            margin-bottom: 0.5rem;
            box-sizing: border-box;
        }

        .message-textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .message-hint {
            background: #fef3cd;
            padding: 0.6rem;
            border-radius: 8px;
            font-size: 0.8rem;
            color: #856404;
            margin-bottom: 0.75rem;
            border-left: 3px solid #ffc107;
        }

        .message-char-count {
            text-align: right;
            font-size: 0.75rem;
            color: #64748b;
            margin-bottom: 0.75rem;
        }

        /* Edit Ad Modal - v4.3.4 Unified */
        .edit-ad-content {
            /* Inherits from unified modal system */
        }

        .edit-ad-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 1rem;
            text-align: center;
            padding-right: 40px;
        }

        /* Edit Tangle Note Modal - v4.3.4 Unified */
        .edit-note-content {
            /* Inherits from unified modal system */
        }

        .edit-note-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 0.75rem;
            text-align: center;
            padding-right: 40px;
        }

        .note-textarea {
            width: 100%;
            min-height: 80px;
            padding: 0.75rem;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.9rem;
            font-family: inherit;
            resize: vertical;
            margin-bottom: 1rem;
        }

        .note-textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        /* === PREMIUM SECTION STYLES - v3.0 === */
        .premium-section {
            background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
            border: 2px solid #e8edff;
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .premium-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.1rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1rem;
        }

        .premium-info {
            color: #4a5568;
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }

        .premium-plans {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

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

        /* ========================================
           MOBILE MODAL RESPONSIVE STYLES v4.3.4
           Optimized for mobile - not full screen
           ======================================== */
        @media (max-width: 480px) {
            .modal.show {
                padding: 0.5rem;
                align-items: flex-start;
            }

            .modal-content,
            .auth-modal-content,
            .find-modal-content,
            .radius-selector-content,
            .send-message-content,
            .edit-ad-content,
            .edit-note-content {
                max-width: 100%;
                max-height: calc(100vh - 1rem);
                border-radius: 12px;
                padding: 1rem;
                margin-top: 0.5rem;
            }
            
            /* Map modals FULLSCREEN on mobile - Build 008 Fix */
            #mapSearchModal,
            #mapPickerModal {
                padding: 0 !important;
            }
            
            #mapSearchModal .map-modal-content,
            #mapPickerModal .map-modal-content {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100vw !important;
                height: 100vh !important;
                height: 100dvh !important; /* Dynamic viewport height - accounts for browser chrome */
                max-width: 100vw !important;
                max-height: 100vh !important;
                max-height: 100dvh !important;
                border-radius: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                display: flex !important;
                flex-direction: column !important;
            }
            
            #mapSearchModal .map-header,
            #mapPickerModal .map-header {
                flex-shrink: 0 !important;
                padding: 1rem !important;
            }
            
            #mapSearchModal #mapSearch,
            #mapPickerModal #map {
                flex: 1 !important;
                min-height: 0 !important;
                height: auto !important;
            }
            
            #mapSearchModal .map-footer,
            #mapPickerModal .map-footer {
                flex-shrink: 0 !important;
                padding: 0.75rem 1rem !important;
                /* Safe area for browser navigation bar */
                padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 20px)) !important;
                background: #f7fafc !important;
                border-top: 2px solid #e2e8f0 !important;
            }
            
            .map-selected-address {
                padding: 0.75rem;
                margin-bottom: 0.75rem;
                font-size: 0.9rem;
            }
            
            .map-confirm-btn {
                padding: 0.875rem;
                font-size: 1rem;
            }

            /* Close button - larger touch target on mobile */
            .modal-close {
                width: 40px;
                height: 40px;
                font-size: 1.5rem;
                top: 0.5rem;
                right: 0.5rem;
            }
            
            .modal-title,
            .find-title,
            .radius-title,
            .send-message-title,
            .edit-ad-title,
            .edit-note-title {
                font-size: 1.1rem;
                padding-right: 45px;
            }

            /* Username box - better mobile presentation */
            .username-box {
                padding: 1rem;
                margin-bottom: 1rem;
            }

            .username-display {
                font-size: 1.2rem !important;
                word-break: break-word;
                line-height: 1.4;
                padding: 1rem;
                margin-bottom: 0.75rem;
            }

            .username-value {
                font-size: 1.1rem !important;
                word-break: break-all;
                overflow-wrap: break-word;
                line-height: 1.4;
                white-space: normal;
                max-width: 100%;
            }

            .username-section {
                margin-bottom: 1rem;
            }

            .username-label {
                font-size: 0.8rem;
                margin-bottom: 0.5rem;
            }

            /* Customize section - full width and better spacing */
            .customize-section {
                padding: 1rem;
                margin-top: 1rem;
            }

            .customize-title {
                font-size: 0.9rem;
                margin-bottom: 0.75rem;
            }

            /* Word inputs - better sizing */
            .customize-input-group {
                gap: 0.4rem;
                flex-wrap: nowrap;
            }

            .word-input {
                padding: 0.75rem 0.5rem;
                font-size: 0.9rem;
                min-height: 48px; /* Touch target size */
                text-align: center;
                font-weight: 600;
            }

            .dot-separator {
                font-size: 1.25rem;
                font-weight: bold;
                padding: 0 0.25rem;
            }

            /* Customize buttons - larger touch targets */
            .customize-actions {
                margin-top: 1rem;
                gap: 0.75rem;
            }

            .customize-actions button {
                padding: 0.9rem 1.5rem;
                font-size: 1rem;
                min-height: 48px;
            }

            /* Username action buttons - larger */
            .username-actions {
                gap: 0.75rem;
                margin-top: 1rem;
            }

            .username-actions button {
                padding: 0.9rem 1.25rem;
                font-size: 1rem;
                min-height: 48px;
                flex: 1;
            }

            /* Form inputs - larger touch targets */
            .auth-input,
            .form-input {
                padding: 1rem;
                font-size: 1rem;
                min-height: 48px;
            }

            /* Buttons - larger touch targets */
            .auth-btn,
            .btn-primary,
            .btn-secondary {
                padding: 1rem 1.5rem;
                font-size: 1rem;
                min-height: 48px;
            }

            /* Form groups - better spacing */
            .form-group {
                margin-bottom: 1.25rem;
            }

            /* Country flag display */
            .country-display {
                padding: 1rem;
                font-size: 1rem;
                margin-bottom: 1.25rem;
            }

            .country-display img {
                width: 32px;
                height: 24px;
            }

            .country-value {
                font-size: 1rem;
            }

            /* Form sections - better spacing */
            .auth-form {
                margin-top: 1.5rem;
            }

            .auth-form .auth-input:first-child {
                margin-top: 0;
            }
        }

        /* Extra small phones */
        @media (max-width: 375px) {
            .word-input {
                font-size: 0.9rem;
                padding: 0.85rem 0.5rem;
            }

            .customize-input-group {
                gap: 0.35rem;
            }

            .dot-separator {
                font-size: 1.1rem;
                padding: 0 0.15rem;
            }

            .username-display {
                font-size: 1.2rem !important;
            }
        }

        .premium-plan {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 1.25rem;
            text-align: center;
            transition: all 0.3s;
            position: relative;
        }

        .premium-plan:hover {
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        }

        .premium-plan-featured {
            border-color: #667eea;
            border-width: 3px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .plan-badge {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .plan-name {
            font-size: 1rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.5rem;
        }

        .plan-price {
            font-size: 1.5rem;
            font-weight: 800;
            color: #667eea;
            margin-bottom: 1rem;
        }

        .plan-price span {
            font-size: 0.9rem;
            font-weight: 500;
            color: #718096;
        }

        .plan-features {
            text-align: left;
        }

        .plan-feature {
            font-size: 0.9rem;
            color: #4a5568;
            margin-bottom: 0.5rem;
            padding-left: 0.25rem;
        }

        .plan-popular {
            position: absolute;
            top: -10px;
            right: -10px;
            background: #667eea;
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 0.3rem 0.6rem;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        }

        .premium-upgrade-btn {
            width: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 0.95rem;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
        }

        .premium-upgrade-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .premium-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1rem;
        }

        .status-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .status-badge-pro {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        .status-info {
            color: #4a5568;
            font-weight: 600;
        }

        .photo-upload-area {
            background: white;
            border: 2px dashed #cbd5e0;
            border-radius: 10px;
            padding: 1.5rem;
            text-align: center;
            margin-bottom: 1rem;
        }

        .photo-upload-btn {
            background: #667eea;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 1rem;
        }

        .photo-upload-btn:hover {
            background: #5568d3;
            transform: translateY(-2px);
        }

        .photo-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .photo-preview-item {
            position: relative;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
        }

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

        .photo-remove-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .upgrade-to-pro-btn {
            width: 100%;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.75rem;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .upgrade-to-pro-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        /* === UPGRADE MODAL STYLES - v3.0 === */
        .upgrade-plans {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .upgrade-plan-card {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .upgrade-plan-card:hover {
            border-color: #667eea;
            transform: translateX(4px);
        }

        .upgrade-plan-card input[type="radio"] {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .upgrade-plan-card-featured {
            border-color: #667eea;
            border-width: 3px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .upgrade-popular-tag {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: #667eea;
            color: white;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            white-space: nowrap;
        }

        .upgrade-plan-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .upgrade-plan-badge {
            font-size: 2.5rem;
        }

        .upgrade-plan-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: #2d3748;
        }

        .upgrade-plan-price {
            font-size: 1.8rem;
            font-weight: 800;
            color: #667eea;
        }

        .upgrade-plan-price span {
            font-size: 1rem;
            font-weight: 500;
            color: #718096;
        }

        .upgrade-plan-features {
            padding-left: 3.5rem;
        }

        .upgrade-feature {
            font-size: 0.95rem;
            color: #4a5568;
            margin-bottom: 0.5rem;
        }

        .payment-section {
            background: #f7fafc;
            border-radius: 10px;
            padding: 1.5rem;
            margin-top: 1.5rem;
        }

        .payment-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.75rem;
        }

        .payment-info {
            color: #4a5568;
            margin-bottom: 1rem;
            padding: 0.75rem;
            background: white;
            border-radius: 8px;
            text-align: center;
        }

        .payment-terms {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: #4a5568;
        }

        .payment-terms input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .upgrade-complete-btn {
            width: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 1rem;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 1rem;
        }

        .upgrade-complete-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .upgrade-complete-btn:disabled {
            background: #cbd5e0;
            cursor: not-allowed;
            transform: none;
        }

        .payment-note {
            text-align: center;
            color: #718096;
            font-size: 0.85rem;
        }

        /* === SUBSCRIPTION MANAGEMENT STYLES - v3.0 === */
        .subscription-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .subscription-tier {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .subscription-price {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .subscription-details {
            background: white;
            color: #2d3748;
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .subscription-detail-row {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid #e2e8f0;
        }

        .subscription-detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            font-weight: 600;
            color: #4a5568;
        }

        .detail-value {
            color: #2d3748;
        }

        .status-active {
            color: #10b981;
            font-weight: 700;
        }

        .cancel-subscription-btn {
            width: 100%;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 10px;
            padding: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .cancel-subscription-btn:hover {
            background: #dc2626;
        }

        .cancellation-note {
            text-align: center;
            color: #718096;
            font-size: 0.9rem;
            margin-top: 1rem;
        }

        /* ===== v3.1 NEW STYLES ===== */
        
        /* Smart Login Auto-Fill Display */
        .login-username-display {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 1rem 1.5rem;
            border-radius: 12px;
            margin-bottom: 1rem;
            text-align: center;
            border: 2px solid #667eea;
        }

        .login-username-text {
            font-size: 1.25rem;
            font-weight: 700;
            color: #2d3748; /* Changed from #667eea for better contrast */
            word-break: break-all;
            overflow-wrap: break-word;
            line-height: 1.4;
        }

        .switch-account-link {
            display: block;
            margin-top: 0.5rem;
            color: #718096;
            font-size: 0.85rem;
            cursor: pointer;
            text-decoration: underline;
        }

        .switch-account-link:hover {
            color: #667eea;
        }

        /* Settings/Account Menu Button */
        .hamburger-menu-btn.settings-btn {
            background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
            color: white;
            border: none;
        }

        .hamburger-menu-btn.settings-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(113, 128, 150, 0.3);
        }

        .hamburger-menu-btn.logout-btn {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            border: none;
        }

        .hamburger-menu-btn.logout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
        }

        /* Delete Account Modal Styles */
        .danger-zone {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            border: 2px solid #ef4444;
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 2rem;
        }

        .danger-zone-title {
            color: #dc2626;
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .danger-zone-text {
            color: #991b1b;
            font-size: 0.9rem;
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .btn-danger {
            width: 100%;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 10px;
            padding: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
        }

        .btn-danger:hover {
            background: #dc2626;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
        }

        .delete-warning-list {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            margin: 1rem 0;
        }

        .delete-warning-list ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .delete-warning-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid #e5e7eb;
            color: #374151;
        }

        .delete-warning-list li:last-child {
            border-bottom: none;
        }

        .delete-warning-list li::before {
            content: "✗ ";
            color: #ef4444;
            font-weight: bold;
            margin-right: 0.5rem;
        }

        .delete-confirmation-input {
            width: 100%;
            padding: 0.9rem;
            border: 2px solid #d1d5db;
            border-radius: 10px;
            font-size: 1rem;
            margin: 1rem 0;
            text-align: center;
            font-weight: 700;
        }

        .delete-confirmation-input:focus {
            outline: none;
            border-color: #ef4444;
        }

        .delete-modal-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 1rem;
        }

        /* Device History Warning */
        .device-history-warning {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid #f59e0b;
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .device-history-warning-title {
            color: #92400e;
            font-weight: 700;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .device-history-warning-text {
            color: #78350f;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .device-history-username {
            font-weight: 700;
            color: #667eea;
            font-size: 1.1rem;
            margin: 0.5rem 0;
        }
        
        /* v3.3: Email Exists Notice (Cross-Device Detection) */
        .email-exists-notice {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            border: 2px solid #3b82f6;
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .email-exists-title {
            color: #1e40af;
            font-weight: 700;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
        }

        .email-exists-text {
            color: #1e3a8a;
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 1rem;
        }

        .existing-username {
            font-weight: 700;
            color: #667eea;
            font-size: 1.1rem;
            margin: 0.5rem 0;
            letter-spacing: 0.5px;
        }
        
        .email-exists-actions {
            margin-top: 0.75rem;
        }
        
        .btn-login-existing {
            width: 100%;
            padding: 0.9rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-login-existing:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        /* Settings Modal Styles */
        .settings-section {
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            padding: 1.25rem;
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .settings-label {
            font-weight: 600;
            color: #4a5568;
            font-size: 0.85rem;
            margin-bottom: 0.25rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .settings-value {
            font-size: 1rem;
            color: #2d3748;
            font-weight: 500;
            word-break: break-all;
            overflow-wrap: break-word;
        }

        /* Mobile Optimizations for v3.1 */
        @media (max-width: 768px) {
            .login-username-display {
                padding: 0.75rem 1rem;
            }

            .login-username-text {
                font-size: 1.1rem;
            }

            .delete-modal-actions {
                grid-template-columns: 1fr;
            }

            .danger-zone {
                padding: 1rem;
            }
        }

        /* ===== PWA INSTALL BANNER - v3.2 NEW ===== */
        
        .pwa-install-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
            z-index: 9999;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }
            to {
                transform: translateY(0);
            }
        }

        .pwa-install-content {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .pwa-install-icon {
            font-size: 2.5rem;
            flex-shrink: 0;
        }

        .pwa-install-text {
            flex: 1;
            color: white;
        }

        .pwa-install-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .pwa-install-subtitle {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .pwa-install-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        .pwa-install-btn {
            background: white;
            color: #667eea;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .pwa-install-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

        .pwa-install-btn:active {
            transform: translateY(0);
        }

        .pwa-dismiss-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .pwa-dismiss-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .pwa-install-content {
                padding: 1rem;
            }

            .pwa-install-icon {
                font-size: 2rem;
            }

            .pwa-install-title {
                font-size: 1rem;
            }

            .pwa-install-subtitle {
                font-size: 0.85rem;
            }

            .pwa-install-btn {
                padding: 0.65rem 1.25rem;
                font-size: 0.9rem;
            }
        }

        /* Build 015 - Toast Notification */
        .toast-notification {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            padding: 0.9rem 1.2rem;
            border-radius: 14px;
            box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
            z-index: 10000;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            max-width: 420px;
            width: calc(100% - 2rem);
            transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            -webkit-tap-highlight-color: transparent;
        }
        .toast-notification.show {
            top: 1rem;
        }
        .toast-notification.hiding {
            top: -100px;
            transition: top 0.3s ease-in;
        }
        .toast-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
        }
        .toast-body {
            flex: 1;
            min-width: 0;
        }
        .toast-title {
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 2px;
        }
        .toast-subtitle {
            font-size: 0.82rem;
            opacity: 0.9;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .toast-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }
        .toast-close:hover {
            background: rgba(255,255,255,0.35);
        }

        @media (max-width: 480px) {
            .toast-notification {
                border-radius: 0 0 14px 14px;
                top: -100px;
                left: 0;
                right: 0;
                transform: none;
                width: 100%;
                max-width: 100%;
            }
            .toast-notification.show {
                top: 0;
            }
        }

        /* ===== BUILD 016: EMAIL VERIFICATION MODAL ===== */
        .verify-email-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .verify-email-card {
            background: #fff;
            border-radius: 16px;
            padding: 32px 24px;
            max-width: 380px;
            width: 100%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }
        .verify-email-card h3 { margin: 0 0 8px; font-size: 20px; color: #1F2937; }
        .verify-email-card .subtitle { color: #6B7280; font-size: 14px; margin: 0 0 24px; }
        .verify-code-inputs {
            display: flex; gap: 8px; justify-content: center; margin-bottom: 20px;
        }
        .verify-code-inputs input {
            width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700;
            border: 2px solid #D1D5DB; border-radius: 10px; outline: none;
            transition: border-color 0.2s; color: #7C3AED;
        }
        .verify-code-inputs input:focus {
            border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
        }
        .verify-email-card .timer { color: #9CA3AF; font-size: 13px; margin-bottom: 16px; }
        .verify-email-card .resend-btn {
            background: none; border: none; color: #7C3AED; font-weight: 600;
            cursor: pointer; font-size: 14px; padding: 4px 8px;
        }
        .verify-email-card .resend-btn:disabled { color: #D1D5DB; cursor: not-allowed; }
        .verify-email-card .skip-btn {
            background: none; border: none; color: #9CA3AF; font-size: 13px;
            cursor: pointer; margin-top: 12px; text-decoration: underline;
        }

        /* ===== BUILD 016: REPORT AD MODAL ===== */
        .report-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .report-modal-card {
            background: #fff; border-radius: 16px; padding: 28px 24px;
            max-width: 380px; width: 100%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }
        .report-modal-card h3 { margin: 0 0 16px; font-size: 18px; color: #1F2937; }
        .report-reason-btn {
            display: block; width: 100%; padding: 12px 16px; margin-bottom: 8px;
            background: #F9FAFB; border: 2px solid #E5E7EB; border-radius: 10px;
            text-align: left; font-size: 14px; color: #374151; cursor: pointer;
            transition: all 0.2s;
        }
        .report-reason-btn:hover { border-color: #7C3AED; background: #F5F3FF; }
        .report-reason-btn.selected { border-color: #7C3AED; background: #F5F3FF; color: #7C3AED; font-weight: 600; }
        .report-details-input {
            width: 100%; padding: 10px 12px; border: 2px solid #E5E7EB; border-radius: 10px;
            font-size: 14px; resize: vertical; min-height: 60px; max-height: 120px;
            margin-top: 12px; font-family: inherit; box-sizing: border-box;
        }
        .report-details-input:focus { border-color: #7C3AED; outline: none; }
        .report-submit-btn {
            display: block; width: 100%; padding: 12px; margin-top: 16px;
            background: #EF4444; color: #fff; border: none; border-radius: 10px;
            font-size: 15px; font-weight: 600; cursor: pointer;
        }
        .report-submit-btn:disabled { background: #D1D5DB; cursor: not-allowed; }
        .report-cancel-btn {
            display: block; width: 100%; padding: 10px; margin-top: 8px;
            background: none; border: none; color: #9CA3AF; font-size: 14px; cursor: pointer;
        }

        /* ===== BUILD 016: LOAD MORE BUTTON ===== */
        .load-more-btn {
            display: block; margin: 20px auto; padding: 12px 32px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff; border: none; border-radius: 12px;
            font-size: 15px; font-weight: 600; cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .load-more-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
        .load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

        /* ===== BUILD 016: EXPIRY BADGE ===== */
        .ad-expiry-badge {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 0.8rem; padding: 4px 10px; border-radius: 6px;
            margin-bottom: 0.5rem;
        }
        .ad-expiry-badge.expired { background: #FEE2E2; color: #DC2626; }
        .ad-expiry-badge.expiring-soon { background: #FEF3C7; color: #D97706; }
        .ad-expiry-badge.active { background: #D1FAE5; color: #059669; }
        .btn-renew {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff; border: none; border-radius: 8px; padding: 6px 14px;
            font-size: 13px; font-weight: 600; cursor: pointer; margin-left: 8px;
        }

        /* ===== BUILD 016: REPORT FLAG ON AD CARDS ===== */
        .ad-report-flag {
            background: none; border: none; color: #D1D5DB; cursor: pointer;
            font-size: 15px; padding: 4px 8px; transition: color 0.2s;
            position: absolute; bottom: 0.75rem; right: 0.75rem;
        }
        .ad-report-flag:hover { color: #EF4444; }
/* --- New Photo Tier UI (v18) --- */
.photo-locked-container {
    background: #FFFBEB;
    border: 2px dashed #F59E0B;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.photo-locked-header {
    color: #D97706;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.photo-plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.plan-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plan-card.basic {
    border-top: 4px solid #3B82F6;
}

.plan-card.pro {
    border-top: 4px solid #8B5CF6;
}

.plan-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.plan-card .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.plan-card .features {
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.plan-card .btn-select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.plan-card.basic .btn-select {
    background: #EFF6FF;
    color: #3B82F6;
}

.plan-card.pro .btn-select {
    background: #F5F3FF;
    color: #8B5CF6;
}

/* Photo Upload Subtitle */
.photo-upload-subtitle {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin: -0.25rem 0 0.75rem 0;
}

/* Photo Tier Card Sections */
.photo-tier-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
    .photo-tier-sections {
        grid-template-columns: 1fr;
    }
}

.photo-tier-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
}

.photo-tier-card.basic-bg {
    background: #F0F7FF;
    border: 2px solid #BFDBFE;
}

.photo-tier-card.pro-bg {
    background: #F5F0FF;
    border: 2px solid #DDD6FE;
}

.photo-tier-card.locked {
    opacity: 0.5;
}

.photo-tier-card.locked .photo-tier-card-body {
    filter: blur(1px);
}

.photo-tier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.photo-tier-card-header.basic {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.photo-tier-card-header.pro {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
}

.photo-tier-card-name {
    font-weight: 800;
}

.photo-tier-card-price {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.photo-tier-card-body {
    padding: 0.75rem;
}

.photo-tier-card-limit {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.photo-tier-card-locked {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4B5563;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(2px);
    transition: background 0.2s;
}

.photo-tier-card-locked:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #1F2937;
}

/* Compact elements inside tier cards */
.photo-tier-card .photo-dropzone {
    padding: 1rem 0.5rem;
    margin-bottom: 0.5rem;
}

.photo-tier-card .dropzone-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.photo-tier-card .dropzone-text {
    font-size: 0.85rem;
}

.photo-tier-card .dropzone-subtext {
    font-size: 0.75rem;
}

.photo-tier-card .btn-bulk-photo {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

.photo-tier-card .bulk-upload-divider {
    margin: 0.5rem 0;
    font-size: 0.75rem;
}

.photo-tier-card .bulk-upload-hint {
    font-size: 0.7rem;
    margin-top: 0.35rem;
}

.photo-tier-card .photo-status-bar {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Photo preview note linking to ad */
.photo-preview-note {
    text-align: center;
    font-size: 0.8rem;
    color: #6B7280;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

/* Photo Status Bar */
.photo-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.photo-count {
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* Photo Dropzone */
.photo-dropzone {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.dropzone-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dropzone-text {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.dropzone-subtext {
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* Bulk Upload Button in Photo Area */
.btn-bulk-photo {
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-bulk-photo:hover {
    background: #7C3AED;
}

.bulk-upload-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    color: #9CA3AF;
    font-size: 0.85rem;
}

.bulk-upload-divider::before,
.bulk-upload-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.bulk-upload-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-top: 0.5rem;
}
