        /* CSS Variables */
        :root {
            --font-size: 16.8px;
            --background: #ffffff;
            --foreground: #1a1a1a;
            --card: #ffffff;
            --card-foreground: #1a1a1a;
            --primary: #030213;
            --primary-foreground: #ffffff;
            --secondary: #f1f5f9;
            --secondary-foreground: #030213;
            --muted: #ececf0;
            --muted-foreground: #717182;
            --accent: #84FFFE;
            --accent-foreground: #030213;
            --destructive: #d4183d;
            --destructive-foreground: #ffffff;
            --border: rgba(0, 0, 0, 0.1);
            --input-background: #f3f3f5;
            --font-weight-medium: 500;
            --font-weight-normal: 400;
            --radius: 0.625rem;
        }

        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            font-size: var(--font-size);
        }

        body {
            background-color: #f9fafb;
            color: var(--foreground);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            line-height: 1.5;
        }

        /* Typography */
        h1 {
            font-size: 1.5rem;
            font-weight: var(--font-weight-medium);
            line-height: 1.5;
        }

        h2 {
            font-size: 1.25rem;
            font-weight: var(--font-weight-medium);
            line-height: 1.5;
        }

        h3 {
            font-size: 1.125rem;
            font-weight: var(--font-weight-medium);
            line-height: 1.5;
        }

        p {
            font-size: 1rem;
            font-weight: var(--font-weight-normal);
            line-height: 1.5;
        }

        button {
            font-size: 1rem;
            font-weight: var(--font-weight-medium);
            line-height: 1.5;
        }

        /* Button Styles */
        .btn {
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius);
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            height: 2rem;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-weight: var(--font-weight-medium);
        }

        .btn-primary {
            background-color: var(--accent);
            color: var(--accent-foreground);
        }

        .btn-primary:hover {
            opacity: 0.9;
        }

        .btn-outline {
            border: 1px solid var(--primary);
            color: var(--primary);
            background: white;
        }

        .btn-outline:hover {
            background-color: #f9fafb;
        }

        .btn-ghost {
            background: transparent;
            border: none;
            padding: 0.5rem;
        }

        .btn-ghost:hover {
            background-color: #f9fafb;
        }

        /* Input Styles */
        .input {
            padding: 0.5625rem 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: var(--radius);
            background-color: var(--input-background);
            font-size: 1rem;
            width: 100%;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
            height: 2.25rem;
        }

        .input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(132, 255, 254, 0.2);
        }

        /* Layout Utilities */
        .container {
            max-width: 80rem;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .flex {
            display: flex;
        }

        .flex-col {
            flex-direction: column;
        }

        .flex-1 {
            flex: 1;
        }

        .items-center {
            align-items: center;
        }

        .justify-between {
            justify-content: space-between;
        }

        .justify-center {
            justify-content: center;
        }

        .gap-2 { gap: 0.5rem; }
        .gap-3 { gap: 0.75rem; }
        .gap-4 { gap: 1rem; }
        .gap-6 { gap: 1.5rem; }
        .gap-8 { gap: 2rem; }

        .p-4 { padding: 1rem; }
        .p-6 { padding: 1.5rem; }
        .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
        .px-4 { padding-left: 1rem; padding-right: 1rem; }
        .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
        .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
        .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

        .mb-2 { margin-bottom: 0.5rem; }
        .mb-3 { margin-bottom: 0.75rem; }
        .mb-4 { margin-bottom: 1rem; }
        .mb-6 { margin-bottom: 1.5rem; }
        .mt-2 { margin-top: 0.5rem; }
        .mx-auto { margin-left: auto; margin-right: auto; }

        .w-full { width: 100%; }
        .h-full { height: 100%; }
        .min-h-screen { min-height: 100vh; }
        .h-16 { height: 4rem; }
        .h-48 { height: 12rem; }
        .w-4 { width: 1rem; }
        .h-4 { height: 1rem; }
        .w-5 { width: 1.25rem; }
        .h-5 { height: 1.25rem; }
        .w-8 { width: 2rem; }
        .h-8 { height: 2rem; }
        .w-24 { width: 6rem; }
        .h-1 { height: 0.25rem; }
        .w-2 { width: 0.5rem; }
        .h-2 { height: 0.5rem; }

        .max-w-md { max-width: 28rem; }
        .max-w-7xl { max-width: 80rem; }

        .text-center { text-align: center; }
        .text-sm { font-size: 0.875rem; }
        .text-lg { font-size: 1.125rem; }
        .text-xl { font-size: 1.25rem; }

        .text-black { color: #000; }
        .text-white { color: #fff; }
        .text-gray-400 { color: #9ca3af; }
        .text-gray-500 { color: #6b7280; }
        .text-gray-600 { color: #4b5563; }
        .text-gray-700 { color: #374151; }
        .text-red-600 { color: #dc2626; }

        .bg-white { background-color: #fff; }
        .bg-gray-50 { background-color: #f9fafb; }

        .border { border-width: 1px; }
        .border-b { border-bottom-width: 1px; }
        .border-t { border-top-width: 1px; }
        .border-gray-200 { border-color: #e5e7eb; }

        .rounded-lg { border-radius: 0.5rem; }
        .rounded-md { border-radius: 0.375rem; }
        .rounded-full { border-radius: 9999px; }

        .overflow-hidden { overflow: hidden; }
        .object-cover { object-fit: cover; }
        .cursor-pointer { cursor: pointer; }

        .absolute { position: absolute; }
        .relative { position: relative; }
        .fixed { position: fixed; }
        .sticky { position: sticky; }

        .inset-0 { inset: 0; }
        .left-3 { left: 0.75rem; }
        .top-1-2 { top: 50%; }
        .top-6 { top: 1.5rem; }
        .transform-translate-y { transform: translateY(-50%); }
        .-top-1 { top: -0.25rem; }
        .-right-1 { right: -0.25rem; }

        .z-10 { z-index: 10; }
        .z-20 { z-index: 20; }

        .space-y-2 > * + * { margin-top: 0.5rem; }
        .space-y-6 > * + * { margin-top: 1.5rem; }

        .hidden { display: none; }
        .block { display: block; }

        .transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
        .transition-opacity { transition: opacity 0.15s ease-in-out; }

        .line-clamp-2 {
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            
        }

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

        .whitespace-nowrap { white-space: nowrap; }

        /* Header Styles */
        .header {
            height: 4rem;
            background-color: white;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1rem;
            position: relative;
        }

        .header-logo {
            font-size: 1.125rem;
            color: black;
            font-weight: var(--font-weight-medium);
        }

       .header {
    display: flex;
    align-items: center;
    justify-content: center; /* центрируем по горизонтали */
    height: 4rem;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1rem;
}

.header-search {
    display: flex;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    position: relative;
     text-align: left;   

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

        .notification-btn {
            position: relative;
        }

        .notification-dot {
            position: absolute;
            top: -0.25rem;
            right: -0.25rem;
            width: 0.5rem;
            height: 0.5rem;
            background-color: var(--accent);
            border-radius: 50%;
        }

        .profile-avatar {
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            background-color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Dropdown Styles */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 0.5rem;
            width: 12rem;
            background-color: white;
            border: 1px solid #d1d5db;
            border-radius: var(--radius);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            z-index: 20;
            overflow: hidden;
            display: none;
        }

        .dropdown-content.show {
            display: block;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            color: #374151;
            text-decoration: none;
            transition: background-color 0.2s;
            cursor: pointer;
        }

        .dropdown-item:hover {
            background-color: #f9fafb;
        }

        .dropdown-separator {
            height: 1px;
            background-color: #e5e7eb;
            margin: 0.25rem 0;
        }

        /* Control Panel Styles */
       .control-panel {
            background: white;
            border-radius: var(--radius);
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 17px;
            position: sticky;
            top: 1.5rem;
        }

        .control-panel-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: var(--radius);
            color: #4b5563;
            text-decoration: none;
            transition: color 0.15s, background-color 0.15s;
            cursor: pointer;
        }

        .control-panel-item:hover {
            color: #111827;
            background-color: #fbf9f9;
        }

        .control-panel-item:hover svg {
            color: var(--accent);
        }

         .control-panel-exit {
            color: #4b5563;
            background: transparent;
            border: none;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: var(--radius);
            text-decoration: none;
            transition: color 0.15s, background-color 0.15s;
            cursor: pointer;
            font-size: 1rem;
            font-weight: var(--font-weight-medium);
        }

        .control-panel-exit:hover {
            color: #dc2626;
            background-color: #fef2f2;
        }

        .control-panel-exit:hover svg {
            color: #dc2626;
        
        }

        /* Content Card Styles */
        .content-card {
            background: white;
            border-radius: var(--radius);
            border: 1px solid #e5e7eb;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .content-card:hover {
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-color: var(--accent);
        }

        .content-card-image {
            width: 100%;
            height: 12rem;
            object-fit: cover;
        }

        .content-card-content {
            padding: 1rem;
            flex: 1;
        }

        .content-card-title {
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: color 0.15s;
        }

        .content-card-title:hover {
            color: var(--accent);
        }

        .content-card-description {
            color: #4b5563;
            margin-bottom: 0.75rem;
            font-size: 0.875rem;
        }

        .content-card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.875rem;
        }

        .content-card-author {
            color: #6b7280;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .content-card-date {
            white-space: nowrap;
            color: var(--accent);
            font-weight: var(--font-weight-medium);
        }

        /* Main Layout */
        .main-content {
            flex: 1;
        }

        .content-feed {
            max-width: 80rem;
            margin: 0 auto;
            padding: 1rem;
        }

        .content-feed-header {
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .content-feed-title {
            color: black;
        }

        .content-feed-underline {
            width: 6rem;
            height: 0.25rem;
            margin: 0.5rem auto 0;
            background-color: var(--accent);
            border-radius: 9999px;
        }

        .content-layout {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .control-panel-container {
            width: 100%;
        }

        .content-grid {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Content Card Styles */
        .content-card {
            background: white;
            border-radius: var(--radius);
            border: 1px solid #e5e7eb;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .content-card:hover {
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-color: var(--accent);
        }

        .content-card-image {
            width: 100%;
            height: 12rem;
            object-fit: cover;
        }

        .content-card-content {
            padding: 1rem;
            flex: 1;
        }

        .content-card-title {
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: color 0.15s;
        }

        .content-card-title:hover {
            color: var(--accent);
        }

        .content-card-description {
            color: #4b5563;
            margin-bottom: 0.75rem;
            font-size: 0.875rem;
        }

        .content-card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.875rem;
        }

        .content-card-author {
            color: #6b7280;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .content-card-date {
            white-space: nowrap;
            color: var(--accent);
            font-weight: var(--font-weight-medium);
        }

        /* Main Layout */
        .main-content {
            flex: 1;
        }

        .content-feed {
            max-width: 80rem;
            margin: 0 auto;
            padding: 1rem;
        }

        .content-feed-header {
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .content-feed-title {
            color: black;
        }

        .content-feed-underline {
            width: 6rem;
            height: 0.25rem;
            margin: 0.5rem auto 0;
            background-color: var(--accent);
            border-radius: 9999px;
        }

        .content-layout {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .control-panel-container {
            width: 100%;
        }

        .content-grid {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Mobile Auth Buttons */
        .mobile-auth {
            display: none;
        }

        .mobile-auth button {
            white-space: nowrap;
        }

        /* Responsive Design */
        @media (min-width: 640px) {
            .header {
                padding: 0 1.5rem;
            }

            .mobile-auth {
                display: flex;
            }

            .mobile-auth-dropdown {
                display: none;
            }

            .sm-block {
                display: block;
            }

            .sm-hidden {
                display: none;
            }

            .content-card {
                display: flex;
            }

            .content-card-image {
                width: 12rem;
                height: 8rem;
            }

            .content-card-description {
                font-size: 1rem;
            }

          }

            .content-feed {
                padding: 1.5rem;
            }
        

        @media (min-width: 1024px) {
            .content-layout {
                flex-direction: row;
            }

            .control-panel-container {
                width: 14rem;
                margin-left: -1rem;
            }

            .header {
                padding: 0 1.5rem;
            }
        }

        /* Icon Styles */
        .icon {
            width: 1.25rem;
            height: 1.25rem;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .icon-sm {
            width: 1rem;
            height: 1rem;
        }

        .icon-xs {
            width: 0.75rem;
            height: 0.75rem;
        }

        /* Overlay for mobile dropdown */
        .overlay {
            position: fixed;
            inset: 0;
            z-index: 10;
            display: none;
        }

        .overlay.show {
            display: block;
        }
    