:root {
    --premium-bg: #fdfdfd;
    --premium-accent: #6366f1; 
    --premium-card-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.04), 0 8px 15px -6px rgba(0, 0, 0, 0.02);
    --premium-radius: 20px;
    --minimal-border: 1px solid rgba(0, 0, 0, 0.03);
}

body {
    background: #f8fafc;
    background-attachment: fixed;
    color: #334155;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

/* Header Search Polishes */
.search-bar:focus-within {
    border-color: #0d6efd !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

#search-results-dropdown {
    min-width: 320px;
    z-index: 2000;
}

#search-results-dropdown .list-group-item:hover {
    background-color: #f0f2f5;
}

@media (max-width: 1199.98px) {
    .search-input-container:not(.mobile-active) {
        display: none;
    }
}

.search-input-container.mobile-active {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 3000;
    padding: 10px 15px;
}

.search-input-container.mobile-active .search-bar {
    width: 100%;
}
#global-search-input:focus {
    /* override any browser defaults */
    outline: none;
}

.social-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.social-container {
    width: 100%;
}

.feed-column {
    max-width: 740px; 
    margin: 0 auto;
}

/* Premium Header Glassmorphism */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Sticky sidebars (only on desktop) */
@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 80px;
        height: calc(100vh - 80px);
        overflow-y: auto;
        background: transparent !important;
    }
}


/* Custom scrollbar for sidebars */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
}

/* Premium Card Style */
.card {
    border: var(--minimal-border);
    border-radius: var(--premium-radius);
    background: white;
    box-shadow: var(--premium-card-shadow);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* Header & Sidebar Utilities */
.hover-bg-light:hover { 
    background-color: #f1f5f9 !important; 
    color: var(--premium-accent) !important;
    transition: all 0.2s; 
}

.hover-underline:hover { 
    text-decoration: none !important; 
    color: var(--premium-accent) !important;
}

/* Stories Scrollbar Hidden */
.feed-stories::-webkit-scrollbar {
    display: none;
}
.feed-stories {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.cursor-pointer { 
    cursor: pointer; 
}

/* Post Reaction System */
.reaction-box {
    transform: translateY(10px) scale(0.9);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.like-btn:hover ~ .reaction-box,
.reaction-box:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hover-scale:hover {
    transform: scale(1.2) translateY(-5px);
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.transition-colors {
    transition: color 0.15s ease-in-out;
}

.hover-text-primary:hover {
    color: var(--bs-primary) !important;
}

/* Post Header Metadata Colors */
.header-feeling {
    color: #f59e0b; 
}

.header-tag {
    color: var(--premium-accent); 
}

.header-location {
    color: #10b981; 
}

/* Video Player Polish */
.video-container-wrapper {
    max-height: auto;
    background: #000;
}

.plyr--video {
    border-radius: 12px;
}

/* --- Automatically Extracted Inline Styles --- */

/* Extracted from create.blade.php */
.btn-check:checked + .btn-outline-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            border-color: transparent !important;
            color: white !important;
        }
        .btn-check:checked + .btn-outline-primary .text-muted {
            color: rgba(255,255,255,0.8) !important;
        }
        #dropZone.drag-over {
            border-color: #667eea !important;
            background-color: #f0f4ff !important;
        }

/* Extracted from dashboard.blade.php */
.size-14 {
            width: 14px;
            height: 14px;
        }

        .animate__animated {
            --animate-duration: 0.6s;
        }

/* Extracted from _styles.blade.php */
.settings-sidebar .nav-link {
        color: #64748b;
        border-radius: 12px;
        padding: 10px 16px;
        font-weight: 500;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .settings-sidebar .nav-link:hover {
        background: #f1f5f9;
        color: #334155;
    }

    .settings-sidebar .nav-link.active {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .settings-sidebar .nav-link.active i {
        color: #fff !important;
    }

    .settings-sidebar .nav-link.text-danger:hover {
        background: #fef2f2;
    }

    .settings-sidebar .nav-link.text-danger.active {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    .settings-card {
        border-radius: 16px !important;
        border: none !important;
    }

    .settings-form .form-control,
    .settings-form .form-select {
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        padding: 10px 14px;
        transition: all 0.2s;
    }

    .settings-form .form-control:focus,
    .settings-form .form-select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .settings-toggle {
        width: 48px;
        height: 26px;
    }

    .settings-toggle:checked {
        background-color: #6366f1;
        border-color: #6366f1;
    }

    .session-card {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px;
        transition: all 0.2s;
    }

    .session-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .session-card.current {
        border-color: #6366f1;
        background: #f0f0ff;
    }

    .blocked-user-card {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px 16px;
        transition: all 0.3s;
    }

    .blocked-user-card:hover {
        border-color: #cbd5e1;
    }

    .search-results-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 100;
        max-height: 300px;
        overflow-y: auto;
    }

    .search-result-item {
        padding: 10px 16px;
        cursor: pointer;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .search-result-item:hover {
        background: #f8fafc;
    }

    .delete-zone {
        border: 2px dashed #fca5a5;
        border-radius: 16px;
        background: #fef2f2;
        padding: 30px;
    }

    /* KYC Specific Styles */
    .kyc-upload-box {
        border: 2px dashed #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        background: #f8fafc;
        transition: all 0.2s;
        cursor: pointer;
    }

    .kyc-upload-box:hover {
        border-color: #6366f1;
        background: #f0f0ff;
    }

    .kyc-status-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

/* Extracted from otp-verify.blade.php */
body {
            font-family: 'Inter', sans-serif;
            background-color: #ffffff;
            overflow-x: hidden;
        }

        .login-container {
            min-height: 100vh;
            display: flex;
        }

        .login-left {
            background-color: #1764ff;
            /* Approximate blue from mockup */
            color: white;
            padding: 4rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .login-left .logo {
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            z-index: 2;
        }

        .login-left h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-top: 4rem;
            line-height: 1.2;
            z-index: 2;
        }

        .login-illustration {
            width: 100%;
            max-width: 500px;
            margin: auto;
            position: relative;
            z-index: 2;
        }

        .login-right {
            padding: 4rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background-color: #ffffff;
        }

        .login-form-wrapper {
            max-width: 450px;
            width: 100%;
            margin: 0 auto;
        }

        .login-right h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #111827;
        }

        .form-control {
            padding: 0.85rem 1rem;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            font-size: 0.95rem;
            background-color: #ffffff;
        }

        .form-control::placeholder {
            color: #9ca3af;
        }

        .form-control:focus {
            border-color: #1764ff;
            box-shadow: 0 0 0 0.25rem rgba(23, 100, 255, 0.15);
        }

        .form-control.tracking-widest {
            letter-spacing: 0.5em;
        }

        .form-label {
            font-weight: 500;
            color: #6b7280;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }


        .forgot-link {
            font-size: 0.9rem;
            color: #1764ff;
            text-decoration: none;
            font-weight: 500;
        }

        .forgot-link:hover {
            text-decoration: underline;
        }

        /* Decorative circles for the blue panel */
        .circle-decoration {
            position: absolute;
            border-radius: 50%;
            border: 4px solid rgba(255, 255, 255, 0.1);
            z-index: 1;
        }

        .circle-1 {
            width: 600px;
            height: 600px;
            top: -200px;
            right: -200px;
        }

        .circle-2 {
            width: 400px;
            height: 400px;
            bottom: -150px;
            left: -150px;
        }

        .bg-danger-soft {
            background-color: rgba(220, 53, 69, 0.1) !important;
        }

        @media (max-width: 991.98px) {
            .login-right {
                padding: 2rem;
            }
        }

/* Extracted from show.blade.php */
.product-badge {
            background: #f1f5f9;
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: 1px solid #e2e8f0;
        }

        .gallery-thumb {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 12px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0.8;
            background: #fff;
            padding: 2px;
        }

        .gallery-thumb:hover,
        .gallery-thumb.active {
            opacity: 1;
            border-color: var(--premium-accent);
            transform: scale(1.1) translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
        }

        .premium-seller-card {
            background: #f8fafc;
            border-radius: 20px;
            padding: 20px;
            border: 1px solid #f1f5f9;
            transition: all 0.2s;
        }

        .premium-seller-card:hover {
            background: #f1f5f9;
            border-color: #e2e8f0;
        }

        .action-floating-premium {
            position: sticky;
            bottom: 20px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(15px);
            padding: 20px;
            border-radius: 24px;
            margin: 0;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            margin-top: 30px;
        }

        .back-btn-premium {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(0, 0, 0, 0.05);
            transition: all 0.2s;
        }

        .back-btn-premium:hover {
            transform: scale(1.1);
            background: #fff;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

/* Extracted from index.blade.php */
.group-card-hover {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .group-card-hover:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }

/* Extracted from my_groups.blade.php */
.group-card {
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .group-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
        }

/* Extracted from sidebar.blade.php */
.card-hover-click:hover {
            background-color: #f8f9fa;
            cursor: pointer;
        }

/* Extracted from gallery_tab.blade.php */
.gallery-item:hover .gallery-overlay {
    background: rgba(0,0,0,0.3) !important;
}
.gallery-item:hover .gallery-overlay i {
    opacity: 1 !important;
}

/* Extracted from creators.blade.php */
.user-card {
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .user-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
        }

/* Extracted from common.blade.php */
.user-card {
            transition: transform 0.2s;
        }

        .user-card:hover {
            transform: translateY(-5px);
        }

/* Extracted from search.blade.php */
.noscrollbar::-webkit-scrollbar {
            display: none;
        }

        .noscrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

/* Extracted from index.blade.php */
.border-faint {
            border-color: #f1f3f5 !important;
        }

        .bg-soft-danger-act {
            background-color: #fff5f5;
        }

        .bg-soft-success-act {
            background-color: #f0fff4;
        }

        .gateway-card {
            transition: all 0.2s ease;
        }

        .gateway-card:hover {
            border-color: #6366f1 !important;
            background: #fff !important;
        }

        .custom-logs-list .log-item {
            transition: all 0.2s ease;
            border-radius: 12px;
        }

        .custom-logs-list .log-item:hover {
            background-color: #f8faff !important;
        }

/* Extracted from transactions.blade.php */
.custom-compact-table tr {
            transition: all 0.2s ease;
        }

        .custom-compact-table tr:hover {
            background-color: #f8f9ff !important;
        }

        .custom-compact-table th {
            font-size: 0.7rem !important;
            font-weight: 700 !important;
        }

        .custom-compact-table td {
            padding-top: 12px;
            padding-bottom: 12px;
            border-color: #f1f3f5;
        }

        .truncate-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .badge-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 6px;
        }

        .badge-status i {
            width: 12px;
            height: 12px;
        }

        .badge-status.success {
            background: #ecfdf5;
            color: #059669;
        }

        .badge-status.warning {
            background: #fffbeb;
            color: #d97706;
        }

        .badge-status.danger {
            background: #fef2f2;
            color: #dc2626;
        }

/* Extracted from mobile_bottom_nav.blade.php */
@media (max-width: 767.98px) {
        body {
            padding-bottom: 60px !important;
        }

        .social-layout {
            padding-bottom: 0 !important;
        }
    }

/* Extracted from create_story_modal.blade.php */
.extra-small {
        font-size: 10px !important;
    }

    .story-type-btn {
        border: 1px solid transparent;
        background: transparent;
        color: #555;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .story-type-btn:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .story-type-btn.active {
        background: #fff !important;
        border-color: #dee2e6 !important;
        color: var(--bs-primary) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .story-type-btn.active .icon-wrap {
        background: var(--bs-primary) !important;
        color: #fff !important;
    }

    .story-upload-zone {
        cursor: pointer;
        border-style: dashed !important;
    }

    .story-upload-zone:hover {
        border-color: var(--bs-primary) !important;
        background-color: #f8fbff !important;
    }

    .color-swatch {
        width: 28px;
        height: 28px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: transform 0.2s;
    }

    .color-swatch.active {
        border-color: #fff;
        outline: 2px solid var(--bs-primary);
    }

    .font-style-option {
        cursor: pointer;
        transition: all 0.2s;
        background: #fff;
        padding-inline: 1.25rem !important;
    }

    .font-style-option.active {
        background: var(--bs-primary);
        color: #fff;
        border-color: var(--bs-primary) !important;
    }

    .font-classic {
        font-family: 'serif' !important;
    }

    .font-bold {
        font-weight: 900 !important;
    }

    .word-break {
        word-break: break-word;
    }

    .bg-gradient-to-t {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    }

/* Extracted from stories.blade.php */
.feed-story-card {
        will-change: transform, box-shadow;
    }

    .feed-story-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 20px -8px rgba(99, 102, 241, 0.4) !important;
    }

    .feed-story-card.viewed img {
        opacity: 0.7;
    }

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

/* Extracted from story_modal.blade.php */
.bg-gradient-dark-top {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    }

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

    .story-progress-inner {
        height: 100%;
        background: #fff;
        width: 0%;
        transition: width 0.1s linear;
    }

    .story-reactions-bar {
        overflow: visible !important;
        pointer-events: none;
    }

    .story-reaction-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: auto;
    }

    .story-reaction-btn .emoji {
        margin: 0;
    }

    .story-reaction-btn:hover {
        transform: scale(1.4) translateY(-12px);
        z-index: 10;
    }

    .custom-scrollbar::-webkit-scrollbar {
        height: 3px;
    }

    .custom-scrollbar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    /* Bottom Sheet Animation */
    .story-viewers-sheet {
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        visibility: hidden;
        z-index: 1060 !important;
        /* Higher than reactions, nav, and modal z-indices */
    }

    .story-viewers-sheet.show {
        transform: translateY(0) !important;
        visibility: visible;
    }

    .translate-y-full {
        transform: translateY(100%);
    }

    .viewer-item {
        transition: background 0.2s;
        border-radius: 12px;
    }

    .viewer-item:hover {
        background: #f8f9fa;
    }

    /* Fly-over Animation */
    .reaction-fly-over {
        position: absolute;
        pointer-events: none;
        z-index: 1000;
        animation: flyUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    }

    @keyframes flyUp {
        0% {
            transform: translate(-50%, 0) scale(0.5);
            opacity: 1;
        }

        30% {
            transform: translate(-50%, -100px) scale(1.2) rotate(10deg);
            opacity: 1;
        }

        100% {
            transform: translate(-50%, -400px) scale(1.8) rotate(-10deg);
            opacity: 0;
        }
    }

    .story-content-area img,
    .story-content-area video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .story-nav {
        transition: all 0.2s;
        opacity: 0.5;
    }

    .story-nav:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .hover-bg-white-10:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .text-story-viewer {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        text-align: center;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .font-modern {
        font-family: 'Inter', sans-serif;
    }

    .font-classic {
        font-family: 'Georgia', serif;
        font-style: italic;
    }

    .font-bold {
        font-family: 'Impact', sans-serif;
        font-weight: 900;
        text-transform: uppercase;
    }

    @media (max-width: 768px) {
        .story-main-container {
            max-width: 100% !important;
            border-radius: 0 !important;
        }
    }
    
    /* Workspace Social header logo */
.site-logo-link img {
    width: 200px !important;
    height: auto !important;
    max-height: 62px !important;
    object-fit: contain;
}

header.navbar {
    height: 70px !important;
    min-height: 70px !important;
}

@media (max-width: 767.98px) {
    .site-logo-link img {
        width: 120px !important;
        max-height: 42px !important;
    }
}

/* Workspace Social mobile header */
.workspace-mobile-menu-header {
    min-height: 76px;
    padding: 12px 16px;
    background: rgba(4, 14, 34, 0.98) !important;
    border-color: rgba(76, 195, 255, 0.25) !important;
}

.workspace-mobile-menu-brand {
    display: flex;
    align-items: center;
    max-width: calc(100% - 55px);
}

.workspace-mobile-menu-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 50px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    header.navbar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .search-container-wrapper {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .header-right-actions {
        width: auto !important;
        flex: 1 1 auto !important;
        gap: 6px !important;
    }

    .header-right-actions .dropdown {
        margin-left: 0 !important;
    }

    .mobile-search-trigger {
        margin-right: 0 !important;
    }

    .mobile-nav-toggle {
        margin-right: 0 !important;
        flex: 0 0 40px;
    }
}

.site-logo-link.mobile-search-hidden {
    display: none !important;
}

/* Center every header dropdown on mobile */
@media (max-width: 767.98px) {
    .header-right-actions .dropdown-menu {
        position: fixed !important;
        top: 68px !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;

        width: calc(100vw - 24px) !important;
        max-width: 396px !important;

        margin: 0 !important;
        transform: translateX(-50%) !important;

        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        overscroll-behavior: contain;

        z-index: 1060 !important;
    }
}
