/* ==========================================================================
   SOCIAL STORE - Premium Web3 Feed Design
   Complete redesign with glassmorphism, proper spacing, modern aesthetics
   ========================================================================== */

/* CSS Variables - Premium Dark Theme (Default) */
:root {
    --feed-bg: #0a0a0f;
    --feed-surface: rgba(20, 20, 30, 0.9);
    --feed-card: rgba(25, 25, 40, 0.95);
    --feed-border: rgba(255, 255, 255, 0.08);
    --feed-border-hover: rgba(139, 92, 246, 0.3);
    --feed-text: #f1f1f3;
    --feed-text-muted: #8b8b9e;
    --feed-accent: #8b5cf6;
    --feed-accent-glow: rgba(139, 92, 246, 0.4);
    --feed-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --feed-ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --feed-success: #10b981;
    --feed-radius: 16px;
    --feed-radius-sm: 10px;
    --feed-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --feed-glass: blur(12px);
}

/* Light Theme Override */
[data-theme="light"] .social-store-wrapper,
.social-store-wrapper.light-theme {
    --feed-bg: #f5f7fa;
    --feed-surface: rgba(255, 255, 255, 0.95);
    --feed-card: rgba(255, 255, 255, 0.98);
    --feed-border: rgba(0, 0, 0, 0.08);
    --feed-border-hover: rgba(139, 92, 246, 0.4);
    --feed-text: #1a1a2e;
    --feed-text-muted: #6b7280;
    --feed-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: var(--feed-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 182, 212, 0.05), transparent);
}

/* Light Theme Specific Overrides */
[data-theme="light"] .social-profile-card,
[data-theme="light"] .social-nav-menu,
[data-theme="light"] .social-stories-container,
[data-theme="light"] .social-post-composer,
[data-theme="light"] .social-post-card,
[data-theme="light"] .social-widget,
.social-store-wrapper.light-theme .social-profile-card,
.social-store-wrapper.light-theme .social-nav-menu,
.social-store-wrapper.light-theme .social-stories-container,
.social-store-wrapper.light-theme .social-post-composer,
.social-store-wrapper.light-theme .social-post-card,
.social-store-wrapper.light-theme .social-widget {
    background: var(--feed-card);
    border-color: var(--feed-border);
    box-shadow: var(--feed-shadow);
}

[data-theme="light"] .profile-card-premium,
.social-store-wrapper.light-theme .profile-card-premium {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

[data-theme="light"] .social-avatar-wrapper,
.social-store-wrapper.light-theme .social-avatar-wrapper {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

[data-theme="light"] .profile-avatar-img,
.social-store-wrapper.light-theme .profile-avatar-img {
    border-color: #fff;
}

[data-theme="light"] .mobile-bottom-nav,
.social-store-wrapper.light-theme .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: var(--feed-border);
}

/* Light Theme Post Card Text Colors */
[data-theme="light"] .author-name,
[data-theme="light"] .post-text,
[data-theme="light"] .profile-name-verified,
[data-theme="light"] .profile-bio,
.social-store-wrapper.light-theme .author-name,
.social-store-wrapper.light-theme .post-text,
.social-store-wrapper.light-theme .profile-name-verified,
.social-store-wrapper.light-theme .profile-bio {
    color: #1a1a2e;
}

[data-theme="light"] .post-date,
[data-theme="light"] .profile-tagline,
.social-store-wrapper.light-theme .post-date,
.social-store-wrapper.light-theme .profile-tagline {
    color: #6b7280;
}

[data-theme="light"] .post-hashtags a,
.social-store-wrapper.light-theme .post-hashtags a {
    color: #7c3aed;
}

[data-theme="light"] .stat-btn,
[data-theme="light"] .post-options,
.social-store-wrapper.light-theme .stat-btn,
.social-store-wrapper.light-theme .post-options {
    color: #6b7280;
}

[data-theme="light"] .stat-btn:hover,
[data-theme="light"] .post-options:hover,
.social-store-wrapper.light-theme .stat-btn:hover,
.social-store-wrapper.light-theme .post-options:hover {
    color: #1a1a2e;
}

/* Reset & Base */
.social-store-wrapper {
    background: var(--feed-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 182, 212, 0.08), transparent);
    min-height: 100vh;
    padding: 30px 0 80px;
    color: var(--feed-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 3-Column Grid Layout */
.social-layout-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 340px;
    gap: 24px;
    padding: 0 20px;
}

/* ==========================================================================
   LEFT SIDEBAR - Profile & Navigation
   ========================================================================== */

.social-sidebar-left {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profile Card */
.social-profile-card {
    background: var(--feed-card);
    backdrop-filter: var(--feed-glass);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--feed-shadow);
    transition: border-color 0.3s ease;
}

.social-profile-card:hover {
    border-color: var(--feed-border-hover);
}

.social-avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 18px;
    padding: 3px;
    background: var(--feed-gradient);
    position: relative;
    box-shadow: 0 0 30px var(--feed-accent-glow);
}

.social-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--feed-bg);
    object-fit: cover;
}

.social-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--feed-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verified-badge {
    color: #3b82f6;
    font-size: 0.9rem;
}

.social-profile-handle {
    color: var(--feed-text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.social-profile-bio {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--feed-text-muted);
    margin-bottom: 20px;
    max-height: 80px;
    overflow: hidden;
}

/* Profile Stats */
.social-profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 18px 0;
    border-top: 1px solid var(--feed-border);
    border-bottom: 1px solid var(--feed-border);
    margin-bottom: 20px;
}

.social-stat-item {
    text-align: center;
}

.social-stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--feed-text);
    margin-bottom: 4px;
}

.social-stat-label {
    font-size: 0.72rem;
    color: var(--feed-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Profile Action Buttons */
.social-profile-actions {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--feed-radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn-primary {
    background: var(--feed-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--feed-accent-glow);
}

.social-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--feed-accent-glow);
}

.social-btn-secondary {
    background: rgba(139, 92, 246, 0.15);
    color: var(--feed-accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.social-btn-secondary:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* Navigation Menu */
.social-nav-menu {
    background: var(--feed-card);
    backdrop-filter: var(--feed-glass);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius);
    overflow: hidden;
    box-shadow: var(--feed-shadow);
}

.social-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: var(--feed-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.social-nav-item:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--feed-text);
}

.social-nav-item.active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--feed-accent);
    border-left-color: var(--feed-accent);
}

.social-nav-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* ==========================================================================
   CENTER FEED - Stories, Composer, Posts
   ========================================================================== */

.social-feed-center {
    min-width: 0;
}

/* Stories Bar - Instagram-Style Card Design */
.social-stories-container {
    background: var(--feed-card);
    backdrop-filter: var(--feed-glass);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--feed-shadow);
}

.stories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

/* Story Card - Full Height with Background */
.story-card {
    position: relative;
    width: 110px;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Story Card Background */
.story-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.story-card-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 2;
}

.story-card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Story Avatar Overlay */
.story-card-avatar-wrapper {
    position: relative;
    z-index: 10;
    margin-top: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 3px;
    background: var(--feed-ig-gradient);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.story-card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--feed-bg);
    object-fit: cover;
}

/* Story Name Label */
.story-card-label {
    position: absolute;
    bottom: 12px;
    left: 8px;
    right: 8px;
    z-index: 10;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0.0.0, 0.5);
}

/* Active Story (has new content) */
.story-card.has-story .story-card-avatar-wrapper {
    background: var(--feed-ig-gradient);
}

/* Add Story Card */
.story-card-add .story-card-avatar-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.story-add-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--feed-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--feed-bg);
    color: white;
    font-size: 10px;
    z-index: 15;
}

/* Legacy Compatibility (Remove Old Classes) */
.story-item {
    display: none;
}

.story-avatar-ring {
    display: none;
}

.story-label {
    display: none;
}

/* Post Composer */
.social-post-composer {
    background: var(--feed-card);
    backdrop-filter: var(--feed-glass);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--feed-shadow);
}

.composer-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.composer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--feed-border);
}

.composer-input-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--feed-border);
    border-radius: 24px;
    padding: 14px 20px;
    transition: all 0.25s ease;
}

.composer-input-wrapper:focus-within {
    border-color: var(--feed-accent);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.composer-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--feed-text);
    font-size: 0.95rem;
    resize: none;
    min-height: 24px;
    line-height: 1.5;
    font-family: inherit;
}

.composer-input:focus {
    outline: none;
}

.composer-input::placeholder {
    color: var(--feed-text-muted);
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--feed-border);
}

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

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--feed-border);
    border-radius: 20px;
    color: var(--feed-text-muted);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--feed-accent);
    color: var(--feed-accent);
}

.action-btn i {
    font-size: 0.95rem;
}

.composer-submit {
    background: var(--feed-gradient);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px var(--feed-accent-glow);
}

.composer-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--feed-accent-glow);
}

/* Feed Content & Posts */
.social-feed-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-post-card {
    background: var(--feed-card);
    backdrop-filter: var(--feed-glass);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius);
    padding: 20px;
    box-shadow: var(--feed-shadow);
    transition: border-color 0.3s ease;
}

.social-post-card:hover {
    border-color: var(--feed-border-hover);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.post-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-author img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--feed-border);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--feed-text);
}

.post-date {
    font-size: 0.8rem;
    color: var(--feed-text-muted);
}

.post-options {
    background: transparent;
    border: none;
    color: var(--feed-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.post-options:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--feed-text);
}

.post-content {
    margin-bottom: 16px;
}

.post-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--feed-text);
}

.post-hashtags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-hashtags a {
    color: var(--feed-accent);
    font-size: 0.88rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-hashtags a:hover {
    opacity: 0.8;
}

.post-media {
    border-radius: var(--feed-radius-sm);
    overflow: hidden;
    margin-top: 12px;
}

.post-media img,
.post-media video {
    width: 100%;
    display: block;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--feed-border);
}

.post-stats {
    display: flex;
    gap: 20px;
}

.stat-btn {
    background: transparent;
    border: none;
    color: var(--feed-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.stat-btn:hover {
    color: var(--feed-accent);
}

.stat-btn i {
    font-size: 1.1rem;
}

.bookmark-btn {
    background: transparent;
    border: none;
    color: var(--feed-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px;
}

.bookmark-btn:hover {
    color: var(--feed-accent);
}

/* ==========================================================================
   RIGHT SIDEBAR - Widgets
   ========================================================================== */

.social-sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-widget {
    background: var(--feed-card);
    backdrop-filter: var(--feed-glass);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius);
    padding: 20px;
    box-shadow: var(--feed-shadow);
}

.social-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--feed-text);
}

.social-widget-title a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--feed-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-widget-title a:hover {
    opacity: 0.8;
}

/* Follower/Suggestion Items */
.follow-suggestion,
.social-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--feed-border);
}

.follow-suggestion:last-child,
.social-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.follow-suggestion:first-child,
.social-activity-item:first-child {
    padding-top: 0;
}

.mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--feed-border);
}

.suggestion-info,
.activity-content {
    flex: 1;
    min-width: 0;
}

.suggestion-info strong,
.activity-content strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--feed-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-info span,
.activity-time {
    font-size: 0.78rem;
    color: var(--feed-text-muted);
}

.follow-btn-sm {
    background: var(--feed-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.follow-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--feed-accent-glow);
}

/* Featured Product Card */
.featured-product-card {
    background: var(--feed-surface);
    border-radius: var(--feed-radius-sm);
    overflow: hidden;
    border: 1px solid var(--feed-border);
    transition: all 0.3s ease;
}

.featured-product-card:hover {
    border-color: var(--feed-border-hover);
    transform: translateY(-3px);
}

.product-img-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.badge-new {
    background: var(--feed-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-product-info {
    padding: 14px;
}

.featured-product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--feed-text);
}

.featured-product-info .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--feed-accent);
}

/* Content Layers for Tab Navigation */
.store-content-layer {
    display: none;
}

.store-content-layer.active {
    display: block;
    animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Products Grid in Products Tab */
#layer-products .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

#layer-products .product-card {
    background: var(--feed-surface);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius-sm);
    transition: all 0.3s ease;
}

#layer-products .product-card:hover {
    border-color: var(--feed-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Reviews Section */
#layer-reviews .social-activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0;
}

#layer-reviews .text-warning {
    color: #fbbf24;
}

/* ==========================================================================
   MOBILE RESPONSIVE (ENHANCED)
   ========================================================================== */

@media (max-width: 1200px) {
    .social-layout-container {
        grid-template-columns: 260px 1fr 300px;
        gap: 20px;
    }

    .story-card {
        width: 100px;
        height: 150px;
    }
}

@media (max-width: 1024px) {
    .social-layout-container {
        grid-template-columns: 1fr 280px;
    }

    .social-sidebar-left {
        display: none;
    }

    /* Show profile card as collapsible header on tablet */
    .social-feed-center::before {
        content: '';
    }

    .story-card {
        width: 95px;
        height: 140px;
    }

    .story-card-label {
        font-size: 0.68rem;
    }

    #layer-products .row {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .social-store-wrapper {
        padding: 10px 0 75px;
    }

    .social-layout-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 12px;
    }

    .social-sidebar-left {
        display: none;
    }

    .social-sidebar-right {
        display: none;
    }

    .social-stories-container {
        margin: 0 -10px 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 12px 10px;
    }

    .stories-scroll {
        gap: 8px;
    }

    .story-card {
        width: 85px;
        height: 125px;
        border-radius: 12px;
    }

    .story-card-avatar-wrapper {
        width: 40px;
        height: 40px;
        margin-top: 10px;
    }

    .story-card-label {
        font-size: 0.65rem;
        bottom: 8px;
    }

    .social-post-composer {
        padding: 14px;
        border-radius: 12px;
    }

    .composer-avatar {
        width: 40px;
        height: 40px;
    }

    .composer-input-wrapper {
        padding: 10px 14px;
    }

    .composer-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .action-btn span {
        display: none;
    }

    .action-btn {
        padding: 8px 10px;
    }

    .composer-submit {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .social-post-card {
        padding: 14px;
        border-radius: 12px;
    }

    .post-author img {
        width: 40px;
        height: 40px;
    }

    .author-name {
        font-size: 0.9rem;
    }

    .post-text {
        font-size: 0.9rem;
    }

    .post-stats {
        gap: 16px;
    }

    .stat-btn {
        font-size: 0.82rem;
    }

    #layer-products .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #layer-products .product-card {
        border-radius: 10px;
    }

    /* Light Theme Mobile Fix */
    [data-theme="light"] .social-stories-container {
        border-color: rgba(0, 0, 0, 0.06);
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--feed-card);
        backdrop-filter: var(--feed-glass);
        border-top: 1px solid var(--feed-border);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-nav-item {
        font-size: 1.3rem;
        color: var(--feed-text-muted);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 20%;
        height: 100%;
        transition: color 0.2s ease;
    }

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

    .mobile-nav-item:hover {
        color: var(--feed-text);
    }
}

/* Hide desktop nav on mobile when bottom nav is shown */
@media (max-width: 768px) {
    .social-nav-menu {
        display: none;
    }
}

/* Empty State Styling */
.social-feed-content .text-center {
    padding: 60px 30px;
    text-align: center;
}

.social-feed-content .text-center i {
    color: var(--feed-text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.social-feed-content .text-center p {
    color: var(--feed-text-muted);
    font-size: 0.95rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* --- STORY MODALS (CREATOR & VIEWER) --- */

/* Creator Modal Overlay */
.story-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.creator-card {
    background: #1a1a2e;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header-x {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header-x h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.close-btn-x {
    background: none;
    border: none;
    color: #71767b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn-x:hover {
    color: #fff;
}

.modal-body-x {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-area {
    width: 100%;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-placeholder {
    text-align: center;
    color: #71767b;
}

.upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.preview-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-select-file {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-select-file:hover {
    background: #8b5cf6;
    color: #fff;
}

.story-input-caption {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    min-height: 80px;
    resize: none;
}

.modal-footer-x {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-post {
    width: 100%;
    background: #8b5cf6;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

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

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

/* Story Viewer Modal */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.story-viewer-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 90vh;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-progress-container {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 11;
}

.progress-bar-bg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.05s linear;
}

.story-viewer-header {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.story-mini-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.time-small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.story-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.story-media-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.story-main-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    z-index: 10;
}

.story-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.story-nav-prev {
    left: -60px;
}

.story-nav-next {
    right: -60px;
}

@media (max-width: 600px) {
    .story-nav-prev {
        left: 10px;
    }

    .story-nav-next {
        right: 10px;
    }
}
/* Notifications List Styles */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-full-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: var(--feed-card);
    border-radius: var(--feed-radius-sm);
    border: 1px solid var(--feed-border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-full-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--feed-border-hover);
    transform: translateY(-1px);
}

.notification-full-item.unread {
    border-left: 4px solid var(--feed-accent);
}

.notification-full-item .notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: var(--feed-shadow);
}

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

.notification-full-item .notification-body {
    flex: 1;
}

.notification-full-item .notification-text {
    font-size: 0.95rem;
    color: var(--feed-text);
    margin-bottom: 6px;
    line-height: 1.5;
}

.notification-full-item .notification-text strong {
    color: #fff;
    margin-right: 4px;
}

[data-theme="light"] .notification-full-item .notification-text strong {
    color: var(--feed-text);
}

.notification-full-item .notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--feed-text-muted);
}

.notification-full-item .notification-meta i {
    font-size: 0.75rem;
}
