
        :root {
            --primary-red: #006bd6;
            --primary-red-hover: #ad081b;
            --primary-blue: #006bd6;
            --primary-blue-hover: #0056b3;
            --background: #ffffff;
            --surface: #ffffff;
            --text-primary: #111111;
            --text-secondary: #767676;
            --text-disabled: #bdbdbd;
            --border: #e0e0e0;
            --divider: #efefef;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
            --header-height: 56px;
            --bottom-nav-height: 56px;
            --safe-area-bottom: env(safe-area-inset-bottom);
        }

        .dark-mode {
            --background: #000000;
            --surface: #1a1a1a;
            --text-primary: #ffffff;
            --text-secondary: #a8a8a8;
            --text-disabled: #5a5a5a;
            --border: #333333;
            --divider: #2a2a2a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background: var(--background);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
        }

    
        .main-content {
            min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
        }

        
        .content-section {
            display: none;
            padding: 16px;
            padding-bottom: calc(var(--bottom-nav-height) + 20px);
        }

        .content-section.active {
            display: block;
        }

        
        .search-loader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 20, 25, 0); /* Transparent background */
            backdrop-filter: blur(5px); /* Slight blur */
            -webkit-backdrop-filter: blur(5px);
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .search-loader.active {
            display: flex;
        }

        .search-loader .glass-loader {
            width: 80px;
            height: 80px;
        }

        .search-loader .loading-text {
            font-size: 12px;
            bottom: -30px;
            color: var(--text-primary);
        }

        /* Glass Loader */
        .glass-loader {
            width: 80px;
            height: 80px;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .glass-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, 
                rgba(0, 107, 214, 0.3) 0%, 
                rgba(0, 107, 214, 0.1) 50%, 
                rgba(0, 107, 214, 0.3) 100%);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            animation: rotate 2s linear infinite;
        }

        .glass-circle::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, 
                transparent, 
                rgba(255, 255, 255, 0.3), 
                transparent);
            animation: shimmer 1.5s ease-in-out infinite;
        }

        .glass-shine {
            position: absolute;
            width: 20px;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.4), 
                transparent);
            transform: rotate(25deg);
            animation: shine 1.5s ease-in-out infinite;
        }

        .loading-text {
            position: absolute;
            bottom: -30px;
            color: var(--text-primary);
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 1px;
            text-transform: uppercase;
            opacity: 0.8;
            animation: pulse 1.5s ease-in-out infinite;
        }

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

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        @keyframes shine {
            0% { left: -100%; }
            100% { left: 200%; }
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        .glass-loader::after {
            content: '';
            position: absolute;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, 
                rgba(0, 107, 214, 0.2) 0%, 
                transparent 50%);
            animation: pulseGlow 2s ease-in-out infinite;
        }

        @keyframes pulseGlow {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(1.05); }
        }

        /* Samsung-style Home Loader */
        .samsung-loader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--background);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .samsung-loader.hidden {
            display: none;
        }

        .loader-bg {
            width: 60px;
            height: 60px;
            background: var(--surface);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .samsung-loader-inner {
            width: 30px;
            height: 30px;
            position: relative;
            animation: loader-rotate 1.1s linear infinite;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -4px;
            animation: dot-move 1.6s cubic-bezier(.4, 0, .2, 1) infinite;
        }

        .blue  { background: #3e82f7; }
        .green { background: #26d163; }

        .dot:nth-child(1) { --angle:   0deg; animation-delay: 0s; }
        .dot:nth-child(2) { --angle:  90deg; animation-delay: 0.1s; }
        .dot:nth-child(3) { --angle: 180deg; animation-delay: 0.2s; }
        .dot:nth-child(4) { --angle: 270deg; animation-delay: 0.3s; }

        .dot {
            transform: rotate(var(--angle)) translateY(-12px);
        }

        @keyframes loader-rotate {
            to { transform: rotate(360deg); }
        }

        @keyframes dot-move {
            0%, 100% {
                transform: rotate(var(--angle)) translateY(-12px) scale(1);
                opacity: 0.6;
            }

            50% {
                transform: rotate(var(--angle)) translateY(-4px) scale(1.2);
                opacity: 1;
            }
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            z-index: 1000;
            display: flex;
            align-items: center;
            padding: 0 16px;
            gap: 12px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .logo-icon {
            width: 24px;
            height: 24px;
            background: var(--primary-red);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-icon i {
            color: white;
            font-size: 12px;
        }

        .logo-text {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .logo-text span {
            color: var(--primary-red);
        }

        .search-container {
            flex: 1;
        }

        .search-wrapper {
            position: relative;
            background: var(--divider);
            border-radius: 24px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .search-wrapper:hover {
            border-color: var(--primary-blue);
        }

        .search-icon {
            color: var(--text-secondary);
            font-size: 16px;
        }

        .search-placeholder {
            color: var(--text-secondary);
            font-size: 16px;
            flex: 1;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .header-action {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 20px;
            cursor: pointer;
            padding: 4px;
            position: relative;
        width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--surface);
            z-index: 2000;
            display: none;
            flex-direction: column;
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .search-modal.active {
            display: flex;
        }

        .search-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 12px;
            padding-top: max(16px, env(safe-area-inset-top));
        }

        .search-input-container {
            flex: 1;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 12px 40px 12px 40px;
            border-radius: 24px;
            border: 2px solid transparent;
            background: var(--divider);
            color: var(--text-primary);
            font-size: 16px;
            outline: none;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(0, 107, 214, 0.3);
        }

        .search-input-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-blue);
            font-size: 16px;
        }

        .close-search {
            background: var(--primary-blue);
            color: white;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .close-search:hover {
            background: var(--primary-blue-hover);
            transform: rotate(90deg);
        }

        .search-suggestions {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            padding-bottom: max(16px, env(safe-area-inset-bottom));
        }

        .search-history {
            margin-bottom: 24px;
        }

        .search-title {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .history-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .history-item:hover {
            background-color: rgba(0, 107, 214, 0.1);
            transform: translateX(8px);
        }

        .history-icon {
            color: var(--primary-blue);
            font-size: 16px;
        }

        .history-query {
            font-size: 16px;
            color: var(--text-primary);
            font-weight: 500;
        }

        .trending-searches {
            display: grid;
            gap: 12px;
        }

        .trending-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--divider);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .trending-item:hover {
            background-color: rgba(0, 107, 214, 0.1);
            border-color: var(--primary-blue);
            transform: translateX(8px);
        }

        .trending-number {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-blue);
            min-width: 24px;
            text-align: center;
        }

        .trending-text {
            flex: 1;
            font-size: 16px;
            color: var(--text-primary);
            font-weight: 500;
        }

        .trending-icon {
            color: var(--primary-blue);
            font-size: 14px;
        }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--bottom-nav-height);
            background: var(--surface);
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding-bottom: var(--safe-area-bottom);
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
            position: relative;
            padding: 8px 4px;
            min-width: 60px;
        }

        .nav-item.active {
            color: var(--primary-red);
        }

        .nav-icon {
            font-size: 20px;
            margin-bottom: 2px;
        }

        .nav-text {
            font-size: 10px;
            font-weight: 500;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .main-content {
            padding-top: var(--header-height);
        }

        .pins-container {
            columns: 2;
            column-gap: 12px;
            padding: 0 8px;
        }

        @media (min-width: 768px) {
            .pins-container {
                columns: 3;
                column-gap: 16px;
            }
        }

        @media (min-width: 1024px) {
            .pins-container {
                columns: 4;
                column-gap: 20px;
            }
        }

        @media (max-width: 480px) {
            .pins-container {
                columns: 2;
                column-gap: 8px;
                padding: 0 4px;
            }
            
            .nav-text {
                font-size: 9px;
            }
            
            .nav-icon {
                font-size: 18px;
            }
        }

        @media (max-width: 320px) {
            .pins-container {
                columns: 1;
            }
        }

        .pin-card {
            break-inside: avoid;
            margin-bottom: 16px;
            background: var(--surface);
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: transform 0.2s;
            display: flex;
            flex-direction: column;
        }

        .pin-card:hover {
            transform: translateY(-4px);
        }

        /* Shimmer Skeleton Loading Effect for Image - Visible in Light Mode */
        .pin-image-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            min-height: 200px;
            transition: all 0.3s ease;
            border-radius: 16px 16px 0 0;
            flex-shrink: 0;
        }

        .pin-image-container.skeleton-loading {
            background: linear-gradient(90deg, 
                rgba(0, 0, 0, 0.06) 25%, 
                rgba(0, 0, 0, 0.1) 50%, 
                rgba(0, 0, 0, 0.06) 75%);
            background-size: 200% 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
        }

        .skeleton-shimmer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.4) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: 16px;
            z-index: 1;
        }

        @keyframes skeletonShimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .pin-image {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 16px 16px 0 0;
            opacity: 0;
            transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateZ(0);
            will-change: opacity;
            position: relative;
            z-index: 2;
        }

        .pin-image.loaded {
            opacity: 1;
        }

        .pin-image-container.aspect-set {
            background: transparent;
            border: none;
            min-height: 0;
        }

        .pin-image-container.aspect-set .skeleton-shimmer {
            display: none;
        }

        .pin-card:hover .pin-image {
            transform: scale(1.02);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Pin Info Section - Removed author and views */
        .pin-info {
            padding: 12px 12px 16px;
            text-align: center;
            background: var(--surface);
            border-radius: 0 0 16px 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            flex-grow: 1;
            min-height: 60px;
            justify-content: center;
        }

        
        .pin-info.skeleton-text {
            padding: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .text-skeleton {
            width: 80%;
            height: 20px;
            background: linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.06) 25%,
                rgba(0, 0, 0, 0.1) 50%,
                rgba(0, 0, 0, 0.06) 75%
            );
            background-size: 200% 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
            border-radius: 4px;
            margin-bottom: 0;
        }

        .text-skeleton.short {
            width: 60%;
            height: 16px;
        }

        .pin-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: center;
            line-height: 1.4;
            max-width: 100%;
            padding: 0 8px;
            margin: 0;
        }

        
        .dark-mode .pin-image-container.skeleton-loading {
            background: linear-gradient(90deg, 
                rgba(255, 255, 255, 0.05) 25%, 
                rgba(255, 255, 255, 0.1) 50%, 
                rgba(255, 255, 255, 0.05) 75%);
        }

        .dark-mode .skeleton-shimmer {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.2) 50%,
                rgba(255, 255, 255, 0) 100%
            );
        }

        .dark-mode .pin-info {
            background: var(--surface);
        }

        .dark-mode .text-skeleton {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.05) 25%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 75%
            );
        }

        .pin-overlay {
            position: absolute;
            top: 8px;
            right: 8px;
            left: 8px;
            display: flex;
            justify-content: space-between;
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 3;
        }

        .pin-card:hover .pin-overlay {
            opacity: 1;
        }

        .pin-save-btn {
            background: var(--primary-red);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 24px;
            font-weight: 600;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            white-space: nowrap;
        }

        .pin-save-btn.saved {
            background: #111;
        }

        .pin-actions {
            display: flex;
            gap: 8px;
        }

        .pin-action-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #333;
            font-size: 16px;
            transition: transform 0.2s;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .pin-action-btn:hover {
            transform: scale(1.1);
        }

        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.98);
            z-index: 3000;
            display: none;
            flex-direction: column;
            animation: lightboxFadeIn 0.3s ease;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .lightbox.active {
            display: flex;
        }

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

        .lightbox-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            padding: 0;
            margin: 0;
            overflow: hidden;
        }

        .lightbox-close {
            position: absolute;
            top: max(16px, env(safe-area-inset-top));
            right: max(16px, env(safe-area-inset-right));
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: white;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            z-index: 3002;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

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

        .lightbox-image-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 90px 20px 120px;
            overflow: hidden;
            position: relative;
        }

        @media (max-width: 768px) {
            .lightbox-image-container {
                padding: 100px 16px 140px;
            }
        }

        @media (max-width: 480px) {
            .lightbox-image-container {
                padding: 100px 12px 150px;
            }
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            animation: imageZoomIn 0.4s ease;
        }

        @keyframes imageZoomIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .lightbox-info {
            position: absolute;
            top: max(20px, env(safe-area-inset-top));
            left: max(20px, env(safe-area-inset-left));
            right: 80px;
            background: rgba(0, 0, 0, 0.7);
            padding: 12px 16px;
            border-radius: 12px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            max-width: 400px;
            z-index: 3001;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        .lightbox-title {
            color: white;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .lightbox-actions {
            position: absolute;
            bottom: max(20px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            z-index: 3001;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 500px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .lightbox-action-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: var(--primary-red);
            color: white;
            border: none;
            border-radius: 24px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            min-height: 48px;
            flex: 1;
            min-width: 100px;
            justify-content: center;
        }

        @media (max-width: 480px) {
            .lightbox-action-btn {
                padding: 10px 16px;
                font-size: 13px;
                min-width: 80px;
                min-height: 40px;
            }
            
            .lightbox-actions {
                padding: 12px;
                border-radius: 18px;
                gap: 8px;
            }
            
            .lightbox-info {
                padding: 10px 12px;
                border-radius: 10px;
                right: 70px;
                max-width: calc(100% - 90px);
            }
            
            .lightbox-title {
                font-size: 14px;
            }
        }

        .lightbox-action-btn:hover {
            background: var(--primary-red-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(230, 0, 35, 0.3);
        }

        .lightbox-action-btn:active {
            transform: translateY(0);
        }

        .lightbox-action-btn.saved {
            background: #111;
        }

        .lightbox-action-btn.saved:hover {
            background: #222;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .lightbox-action-btn.secondary {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .lightbox-action-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.3);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
        }

        .profile-header {
            padding: 24px 16px;
            text-align: center;
            border-bottom: 1px solid var(--border);
        }

        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--primary-red);
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: white;
            font-weight: bold;
        }

        .profile-name {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .profile-bio {
            color: var(--text-secondary);
            margin-bottom: 16px;
            font-size: 14px;
        }

        .profile-stats {
            display: flex;
            justify-content: center;
            gap: 24px;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 18px;
            font-weight: 700;
        }

        .stat-label {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .profile-tabs {
            display: flex;
            border-bottom: 1px solid var(--border);
            margin-bottom: 16px;
        }

        .profile-tab {
            flex: 1;
            text-align: center;
            padding: 16px;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            border-bottom: 3px solid transparent;
            font-size: 14px;
        }

        .profile-tab.active {
            color: var(--primary-red);
            border-bottom-color: var(--primary-red);
        }

        .favorites-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .favorites-title {
            font-size: 24px;
            font-weight: 700;
        }

        .clear-favorites-btn {
            background: none;
            border: none;
            color: var(--primary-red);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            padding: 8px 16px;
            border-radius: 20px;
            transition: background-color 0.2s;
            white-space: nowrap;
        }

        .clear-favorites-btn:hover {
            background-color: var(--divider);
        }

        .messages-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .messages-title {
            font-size: 24px;
            font-weight: 700;
        }

        .new-message-btn {
            background: var(--primary-red);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .conversations-list {
            padding: 16px;
        }

        .conversation-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
        }

        .conversation-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--divider);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .conversation-info {
            flex: 1;
        }

        .conversation-name {
            font-weight: 600;
            margin-bottom: 4px;
            font-size: 16px;
        }

        .conversation-preview {
            font-size: 14px;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .conversation-time {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .notifications-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
        }

        .notifications-title {
            font-size: 24px;
            font-weight: 700;
        }

        .notifications-list {
            padding: 16px;
        }

        .notification-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-bottom: 1px solid var(--border);
        }

        .notification-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--divider);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-red);
        }

        .notification-content {
            flex: 1;
        }

        .notification-text {
            font-size: 14px;
            margin-bottom: 4px;
        }

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

        .loading {
            text-align: center;
            padding: 40px;
            color: var(--text-secondary);
            display: none;
        }

        .loading.active {
            display: block;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        .empty-icon {
            font-size: 48px;
            margin-bottom: 16px;
            color: var(--border);
        }

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

        .fade-in {
            animation: fadeIn 0.3s ease;
        }

        .hidden {
            display: none !important;
        }

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

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

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

        @supports (padding-top: env(safe-area-inset-top)) {
            body {
                padding-top: env(safe-area-inset-top);
            }
            
            .header {
                padding-top: env(safe-area-inset-top);
                height: calc(var(--header-height) + env(safe-area-inset-top));
            }
            
            .main-content {
                padding-top: calc(var(--header-height) + env(safe-area-inset-top));
            }
        }
