  /* Asosiy stil */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: "Poppins", sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* Modal oynalar */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .modal.active {
    opacity: 1;
    visibility: visible;
  }

  .modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
  }

  .modal.active .modal-content {
    transform: translateY(0);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .modal-close:hover {
    background: #f0f0f0;
    color: #333;
  }

  /* Kirish/Ro'yxatdan o'tish */
  .login-container {
    text-align: center;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .logo i {
    font-size: 32px;
    color: #3a86ff;
  }

  .logo span {
    font-size: 28px;
    font-weight: 700;
    color: #333;
  }

  .login-header h2 {
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
  }

  .google-login-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: white;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .google-login-btn:hover {
    border-color: #3a86ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.2);
  }

  .google-login-btn i {
    color: #db4437;
  }

  .divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
  }

  .divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
  }

  .divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
  }

  .login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .input-group {
    position: relative;
    text-align: left;
  }

  .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
  }

  .input-group input,
  .input-group textarea {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
    resize: vertical;
  }

  .input-group input:focus,
  .input-group textarea:focus {
    outline: none;
    border-color: #3a86ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
  }

  .input-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
  }

  .input-group:has(label) i {
    top: calc(50% + 12px);
  }

  .login-btn,
  .save-btn,
  .publish-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .login-btn:hover,
  .save-btn:hover,
  .publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.3);
  }

  .login-btn:disabled,
  .save-btn:disabled,
  .publish-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }

  .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .btn-loading .loading {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  .signup-link {
    margin-top: 20px;
    color: #666;
  }

  .signup-link a {
    color: #3a86ff;
    text-decoration: none;
    font-weight: 500;
  }

  .profile-upload {
    margin: 20px 0;
  }

  .upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
  }

  .upload-label:hover {
    border-color: #3a86ff;
    color: #3a86ff;
  }

  .upload-label input {
    display: none;
  }

  #imagePreview {
    margin-top: 10px;
    text-align: center;
  }

  #imagePreview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3a86ff;
  }

  /* Asosiy ilova */
  .main-app {
    display: none;
    min-height: 100vh;
  }

  .main-app.active {
    display: block;
  }

  /* Header */
  .header {
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .search-bar {
    position: relative;
    width: 350px;
  }

  .search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: #f8f9fa;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  .search-bar input:focus {
    outline: none;
    border-color: #3a86ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
  }

  .search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
  }

  .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
  }

  .search-results.active {
    display: block;
  }

  .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
  }

  .search-result-item:hover {
    background: #f8f9fa;
  }

  .search-result-item:last-child {
    border-bottom: none;
  }

  .search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .search-result-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }

  .search-result-info p {
    font-size: 12px;
    color: #666;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .header-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .header-btn:hover {
    background: #f0f0f0;
    color: #3a86ff;
  }

  .notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    display: none;
  }

  .notification-badge.active {
    display: block;
  }

  .user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
  }

  .user-avatar:hover {
    background: #f0f0f0;
  }

  .user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .user-avatar i {
    font-size: 12px;
    color: #666;
  }

  /* Dropdown menyular */
  .notifications-dropdown,
  .user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
  }

  .notifications-dropdown.active,
  .user-menu-dropdown.active {
    display: block;
  }

  .notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .notifications-header h3 {
    font-size: 16px;
    color: #333;
  }

  .notifications-header button {
    background: none;
    border: none;
    color: #3a86ff;
    font-size: 12px;
    cursor: pointer;
  }

  .notifications-list {
    max-height: 300px;
    overflow-y: auto;
  }

  .notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .notification-item:hover {
    background: #f8f9fa;
  }

  .notification-item.unread {
    background: rgba(58, 134, 255, 0.05);
    border-left: 3px solid #3a86ff;
  }

  .notification-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .notification-content h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
  }

  .notification-content p {
    font-size: 12px;
    color: #666;
  }

  .notification-time {
    font-size: 10px;
    color: #999;
    margin-left: auto;
  }

  .user-menu-dropdown {
    min-width: 200px;
  }

  .user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
  }

  .user-menu-item:hover {
    background: #f8f9fa;
    color: #3a86ff;
  }

  .user-menu-item i {
    width: 16px;
    font-size: 14px;
  }

  .user-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  /* Ilova konteyneri */
  .app-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    padding: 30px;
  }

  /* Sidebar */
  .sidebar {
    width: 280px;
    background: white;
    border-radius: 20px;
    padding: 30px 0;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
    margin-bottom: 30px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
  }

  .nav-item:hover,
  .nav-item.active {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    transform: translateX(5px);
  }

  .nav-item i {
    font-size: 18px;
    width: 20px;
  }

  .sidebar-users h3 {
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
  }

  .user-list {
    padding: 0 20px;
  }

  .user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .user-item:hover {
    transform: translateX(5px);
  }

  .user-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .user-item span {
    font-size: 14px;
    color: #666;
  }

  .user-status {
    width: 8px;
    height: 8px;
    background: #06d6a0;
    border-radius: 50%;
    margin-left: auto;
  }

  /* Asosiy kontent */
  .main-content {
    flex: 1;
    max-width: 700px;
  }

  .page {
    display: none;
    animation: fadeIn 0.5s ease;
  }

  .page.active {
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hikoyalar */
  .stories-container {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .stories-list {
    display: flex;
    gap: 15px;
  }

  .story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 70px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .story-item:hover {
    transform: translateY(-5px);
  }

  .story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .add-story .story-avatar {
    background: #f0f0f0;
    color: #666;
    border: 2px dashed #ccc;
  }

  .story-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
  }

  .story-item span {
    font-size: 12px;
    color: #666;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Postlar */
  .feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .post-create {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .post-create-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
  }

  .post-create-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .post-create-header input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: #f8f9fa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .post-create-header input:hover {
    background: #e0e0e0;
  }

  .post-create-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .post-create-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    background: #f8f9fa;
    border-radius: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
  }

  .post-create-actions button:hover {
    background: #e0e0f0;
    transform: translateY(-2px);
  }

  /* Postlar */
  .posts-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .post {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .post:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .post-user {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .post-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .post-user-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }

  .post-user-info span {
    font-size: 12px;
    color: #666;
  }

  .post-menu {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .post-menu:hover {
    background: #f0f0f0;
  }

  .post-content {
    margin-bottom: 15px;
  }

  .post-content p {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
  }

  .post-content img,
  .post-content video {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    max-height: 500px;
  }

  .post-hashtags {
    margin-top: 10px;
  }

  .hashtag {
    color: #3a86ff;
    text-decoration: none;
    margin-right: 8px;
    font-weight: 500;
  }

  .hashtag:hover {
    text-decoration: underline;
  }

  .post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
  }

  .post-actions-left {
    display: flex;
    gap: 20px;
  }

  .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
  }

  .action-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
  }

  .action-btn.liked {
    color: #ff6b35;
  }

  .action-btn.liked i {
    color: #ff6b35;
    animation: heartBeat 0.5s ease;
  }

  @keyframes heartBeat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.3);
    }
    100% {
      transform: scale(1);
    }
  }

  .save-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .save-btn:hover {
    background: #f0f0f0;
    color: #3a86ff;
  }

  .save-btn.saved {
    color: #3a86ff;
  }

  /* Izohlar */
  .post-comments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
  }

  .comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
  }

  .comment img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .comment-content {
    flex: 1;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #333;
  }

  .comment-text {
    font-size: 14px;
    color: #333;
    margin-top: 2px;
  }

  .comment-time {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
  }

  .comment-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }

  .comment-input img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .comment-input input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #f8f9fa;
    font-size: 14px;
  }

  .comment-input button {
    background: #3a86ff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
  }

  .comment-input button:hover {
    background: #2c6dd4;
  }

  /* AI tavsiyasi */
  .ai-suggestion {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.2);
    animation: slideIn 0.5s ease;
  }

  .ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
  }

  .ai-header i {
    font-size: 20px;
  }

  .ai-suggestion p {
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.6;
  }

  .ai-actions {
    display: flex;
    gap: 10px;
  }

  .ai-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .ai-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
  }

  .ai-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .ai-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Qidiruv sahifasi */
  .search-page-content {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .search-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
  }

  .filter-btn:hover,
  .filter-btn.active {
    background: #3a86ff;
    color: white;
    border-color: #3a86ff;
  }

  .trending-section {
    margin-bottom: 30px;
  }

  .trending-section h3 {
    margin-bottom: 15px;
    color: #333;
  }

  .trending-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .trending-hashtag {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    color: #3a86ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
  }

  .trending-hashtag:hover {
    background: #3a86ff;
    color: white;
    transform: translateY(-2px);
  }

  .search-results-page {
    display: grid;
    gap: 20px;
  }

  .search-result-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
  }

  .search-result-card:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  /* Profil sahifasi */
  .profile-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .profile-info {
    display: flex;
    gap: 30px;
    align-items: center;
  }

  .profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
  }

  .profile-name-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
  }

  .profile-details h2 {
    font-size: 28px;
    color: #333;
    margin: 0;
  }

  .edit-profile-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
  }

  .edit-profile-btn:hover {
    background: #e0e0e0;
    color: #3a86ff;
  }

  .profile-details p {
    color: #666;
    margin-bottom: 5px;
  }

  .profile-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
  }

  .stat {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .stat:hover {
    transform: translateY(-2px);
  }

  .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
  }

  .stat-label {
    font-size: 14px;
    color: #666;
  }

  .profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }

  .follow-btn,
  .message-btn,
  .unfollow-btn {
    padding: 12px 24px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
  }

  .follow-btn {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
  }

  .unfollow-btn {
    background: #ff4757;
    color: white;
  }

  .message-btn {
    background: #f0f0f0;
    color: #333;
  }

  .follow-btn:hover,
  .message-btn:hover,
  .unfollow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .profile-tabs {
    display: flex;
    background: white;
    border-radius: 20px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .tab-btn.active {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
  }

  .profile-content {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .grid-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .grid-item:hover {
    transform: scale(1.05);
  }

  .grid-item img,
  .grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
  }

  .grid-item:hover .grid-item-overlay {
    opacity: 1;
  }

  /* Xabarlar sahifasi */
  .messages-container {
    display: flex;
    background: white;
    border-radius: 20px;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .messages-sidebar {
    width: 350px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
  }

  .messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .messages-header h3 {
    font-size: 20px;
    color: #333;
  }

  .new-message-btn {
    background: #3a86ff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .new-message-btn:hover {
    transform: scale(1.1);
  }

  .message-list {
    flex: 1;
    overflow-y: auto;
  }

  .message-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
  }

  .message-item:hover,
  .message-item.active {
    background: #f8f9fa;
    border-left-color: #3a86ff;
  }

  .message-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  }

  .message-info {
    flex: 1;
  }

  .message-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
  }

  .message-info p {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .message-time {
    font-size: 12px;
    color: #999;
  }

  .message-unread {
    width: 8px;
    height: 8px;
    background: #3a86ff;
    border-radius: 50%;
    margin-left: 5px;
  }

  .chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
  }

  .chat-placeholder i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
  }

  .chat-placeholder h3 {
    margin-bottom: 10px;
    color: #333;
  }

  .chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .chat-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  }

  .chat-user-info h4 {
    font-size: 18px;
    color: #333;
  }

  .chat-user-info span {
    font-size: 12px;
    color: #06d6a0;
  }

  .chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
  }

  .message.sent {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
  }

  .message.received {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
  }

  .message .message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
  }

  .chat-input {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
  }

  .chat-input input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: #f8f9fa;
    font-size: 14px;
  }

  .chat-input input:focus {
    outline: none;
    border-color: #3a86ff;
    background: white;
  }

  .send-btn {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .send-btn:hover {
    transform: scale(1.1);
  }

  /* O'ng sidebar */
  .right-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .suggestions,
  .trending {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .suggestions h3,
  .trending h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
  }

  .suggestions-list,
  .trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 95%;
  }

  .suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }

  .suggestion-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  }

  .suggestion-info {
    flex: 1;
  }

  .suggestion-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    font-weight: 600;
  }

  .suggestion-info p {
    font-size: 12px;
    color: #666;
  }

  .follow-btn-small {
    background: #3a86ff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .follow-btn-small:hover {
    transform: translateY(-2px);
    background: #2c6dd4;
  }

  .trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .trend-item:hover {
    background: #f8f9fa;
    margin: 0 -10px;
    padding: 10px;
    border-radius: 10px;
  }

  .trend-item:last-child {
    border-bottom: none;
  }

  .trend-tag {
    font-weight: 600;
    color: #3a86ff;
  }

  .trend-count {
    font-size: 12px;
    color: #666;
  }

  /* Post yaratish modali */
  .create-post-modal {
    max-width: 600px;
    max-height: 80vh;
  }

  .post-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .post-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
  }

  .post-type-btn:hover,
  .post-type-btn.active {
    border-color: #3a86ff;
    background: rgba(58, 134, 255, 0.05);
    color: #3a86ff;
  }

  .post-type-btn i {
    font-size: 20px;
  }

  .post-type-btn span {
    font-size: 12px;
    font-weight: 500;
  }

  .post-input-section {
    margin-bottom: 20px;
  }

  #postText {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
  }

  #postText:focus {
    outline: none;
    border-color: #3a86ff;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
  }

  .media-upload {
    margin-top: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
  }

  .media-upload:hover {
    border-color: #3a86ff;
    background: rgba(58, 134, 255, 0.05);
  }

  .media-upload input {
    display: none;
  }

  .media-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #666;
  }

  .media-upload-label i {
    font-size: 32px;
    color: #3a86ff;
  }

  .media-preview {
    margin-top: 15px;
  }

  .media-preview img,
  .media-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
  }

  .post-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
  }

  .hashtag-suggestions {
    position: relative;
    flex: 1;
  }

  #hashtagInput {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  #hashtagInput:focus {
    outline: none;
    border-color: #3a86ff;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
  }
  
  .hashtag-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
  }
  
  .hashtag-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .hashtag-suggestion:hover {
    background: #f8f9fa;
    color: #3a86ff;
  }
  
  .hashtag-suggestion:last-child {
    border-bottom: none;
  }

  .ai-suggest-btn {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ai-suggest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
  }

  .post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
  }

  .cancel-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .cancel-btn:hover {
    background: #e0e0e0;
    color: #333;
  }

  /* Profilni tahrirlash modali */
  .edit-profile-modal {
    max-width: 500px;
  }

  .profile-image-section {
    text-align: center;
    margin-bottom: 30px;
  }

  #editProfileAvatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #3a86ff;
  }

  .change-avatar-btn {
    background: #3a86ff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
  }

  .change-avatar-btn:hover {
    background: #2c6dd4;
    transform: translateY(-2px);
  }

  .profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .ai-bio-btn {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    width: fit-content;
  }

  .ai-bio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
  }

  /* Sozlamalar modali */
  .settings-modal {
    max-width: 500px;
  }

  .settings-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .settings-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
  }

  .setting-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
  }

  .setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
  }

  .setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3a86ff;
  }

  .settings-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
  }

  .settings-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
  }

  .settings-btn.danger {
    background: #ff4757;
    color: white;
  }

  .settings-btn.danger:hover {
    background: #e84057;
  }

  /* Kuzatuvchilar modali */
  .followers-modal {
    max-width: 500px;
    max-height: 70vh;
  }

  .followers-content {
    display: flex;
    flex-direction: column;
    height: 50vh;
  }

  .followers-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
  }

  .followers-tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
  }

  .followers-tab-btn:hover,
  .followers-tab-btn.active {
    color: #3a86ff;
    border-bottom-color: #3a86ff;
  }

  .followers-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .follower-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
  }

  .follower-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  }

  .follower-info {
    flex: 1;
  }

  .follower-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
  }

  .follower-info p {
      font-size: 12px;
      color: #666;
  }
  
  .view-profile-btn {
      background: linear-gradient(135deg, #3a86ff, #06d6a0);
      color: white;
      border: none;
      padding: 8px 12px;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 5px;
  }
  
  .view-profile-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
  }

  /* Enhanced Reels/Lessons Section - Instagram-like */
  .reels-container {
      background: white;
      border-radius: 20px;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .reels-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 1px solid #f0f0f0;
  }
  
  .reels-header h2 {
      color: #333;
      font-size: 24px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
  }
  
  .reels-header h2::before {
      content: "🎓";
      font-size: 28px;
  }
  
  .create-reel-btn {
      background: linear-gradient(135deg, #3a86ff, #06d6a0);
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 25px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
  }
  
  .create-reel-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
  }
  
  /* Instagram-like video layout */
  .reels-list {
      display: flex;
      flex-direction: column;
      gap: 30px;
      align-items: center;
      margin-top: 20px;
  }
  
  .lesson-item {
      width: 100%;
      max-width: 600px;
      background: white;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      border: 1px solid #f0f0f0;
  }
  
  .lesson-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  .lesson-header {
      padding: 15px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid #f0f0f0;
  }
  
  .lesson-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #3a86ff, #06d6a0);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
      font-size: 16px;
  }
  
  .lesson-info h4 {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      margin-bottom: 3px;
  }
  
  .lesson-info span {
      font-size: 12px;
      color: #666;
  }
  
  .lesson-content {
      position: relative;
  }
  
  .lesson-title {
      padding: 15px 20px;
      font-size: 16px;
      font-weight: 500;
      color: #333;
      line-height: 1.4;
      background: #f8f9fa;
  }
  
  .myVideo {
      width: 100%;
      border-radius: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      max-height: 400px;
      object-fit: cover;
  }
  
  .myVideo:hover {
      transform: scale(1.02);
  }
  
  .lesson-actions {
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid #f0f0f0;
  }
  
  .lesson-stats {
      display: flex;
      gap: 20px;
  }
  
  .lesson-stat {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #666;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 8px 12px;
      border-radius: 20px;
  }
  
  .lesson-stat:hover {
      background: #f0f0f0;
      color: #3a86ff;
      transform: translateY(-2px);
  }
  
  .lesson-stat i {
      font-size: 16px;
  }
  
  .lesson-stat span {
      font-size: 14px;
      font-weight: 500;
  }
  
  .lesson-bookmark {
      background: none;
      border: none;
      color: #666;
      cursor: pointer;
      padding: 8px;
      border-radius: 50%;
      transition: all 0.3s ease;
  }
  
  .lesson-bookmark:hover {
      background: #f0f0f0;
      color: #3a86ff;
      transform: scale(1.1);
  }
  
  .lesson-bookmark.saved {
      color: #3a86ff;
  }
  
  /* Video play overlay */
  .video-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.7);
      border-radius: 50%;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 20px;
      opacity: 0;
      transition: all 0.3s ease;
      pointer-events: none;
  }
  
  .lesson-content:hover .video-overlay {
      opacity: 1;
  }
  
  /* Hashtags styling */
  .lesson-hashtags {
      padding: 10px 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
  }
  
  .lesson-hashtag {
      background: rgba(58, 134, 255, 0.1);
      color: #3a86ff;
      padding: 4px 12px;
      border-radius: 15px;
      font-size: 12px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.3s ease;
  }
  
  .lesson-hashtag:hover {
      background: #3a86ff;
      color: white;
      transform: translateY(-2px);
  }

  /* AI yordamchi */
  .ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
  }

  .ai-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
  }

  .ai-toggle:hover {
    transform: scale(1.1);
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 10px 25px rgba(58, 134, 255, 0.3);
    }
    50% {
      box-shadow: 0 10px 25px rgba(58, 134, 255, 0.5);
    }
    100% {
      box-shadow: 0 10px 25px rgba(58, 134, 255, 0.3);
    }
  }

  .ai-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
  }

  .ai-chat.active {
    display: flex;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
  }

  .ai-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
  }

  .ai-status {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
  }

  .ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .ai-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .ai-message {
    background: #f0f0f0;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    max-width: 85%;
    word-wrap: break-word;
  }

  .ai-message.user {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 18px;
  }

  .ai-message p {
    margin: 0;
    line-height: 1.4;
  }

  .ai-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
  }

  .ai-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: #f8f9fa;
  }

  .ai-input input:focus {
    outline: none;
    border-color: #3a86ff;
    background: white;
  }

  .ai-input button {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .ai-input button:hover {
    transform: scale(1.1);
  }

  /* Toast bildirishnomalar */
  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .toast {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .toast.success {
    border-left: 4px solid #06d6a0;
  }

  .toast.error {
    border-left: 4px solid #ff4757;
  }

  .toast.info {
    border-left: 4px solid #3a86ff;
  }

  .toast.warning {
    border-left: 4px solid #ffbe0b;
  }

  .toast i {
    font-size: 20px;
  }

  .toast.success i {
    color: #06d6a0;
  }

  .toast.error i {
    color: #ff4757;
  }

  .toast.info i {
    color: #3a86ff;
  }

  .toast.warning i {
    color: #ffbe0b;
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideOutRight {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(30px);
    }
  }

  /* Enhanced Responsive Design */
  @media (max-width: 1200px) {
    .right-sidebar {
      display: none;
    }

    .main-content {
      max-width: 100%;
    }
    
    .app-container {
      gap: 20px;
      padding: 20px;
    }
  }

  @media (max-width: 992px) {
    .app-container {
      flex-direction: column;
      padding: 15px;
    }

    .sidebar {
      width: 100%;
      position: static;
      margin-bottom: 20px;
      padding: 20px;
    }

    .header-left .search-bar {
      width: 300px;
    }
    
    .stories-container {
      padding: 15px;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    
    .stories-container::-webkit-scrollbar {
      display: none;
    }
  }

  @media (max-width: 768px) {
    body {
      padding-bottom: 80px;
    }
    
    .header {
      padding: 10px 15px;
      flex-wrap: wrap;
      gap: 10px;
    }

    .header-left {
      flex: 1;
      min-width: 200px;
    }
    
    .header-right {
      gap: 15px;
    }

    .header-left .search-bar {
      width: 100%;
      max-width: 300px;
    }
    
    .search-bar input {
      padding: 10px 15px 10px 40px;
      font-size: 14px;
    }

    .profile-info {
      flex-direction: column;
      text-align: center;
      gap: 20px;
    }
    
    .profile-avatar {
      width: 120px;
      height: 120px;
    }

    .profile-stats {
      justify-content: center;
      gap: 20px;
    }

    .profile-actions {
      justify-content: center;
      flex-wrap: wrap;
    }

    .messages-container {
      height: calc(100vh - 200px);
      min-height: 500px;
    }

    .messages-sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #f0f0f0;
      max-height: 200px;
      overflow-y: auto;
    }
    
    .chat-container {
      min-height: 300px;
    }
    
    /* Lessons/Reels mobile optimization */
    .lesson-item {
      margin: 0 -15px;
      border-radius: 15px;
    }
    
    .myVideo {
      max-height: 300px;
    }
    
    .lesson-header {
      padding: 12px 15px;
    }
    
    .lesson-title {
      padding: 12px 15px;
      font-size: 15px;
    }
    
    .lesson-actions {
      padding: 12px 15px;
    }
    
    .lesson-stats {
      gap: 15px;
    }
    
    .lesson-stat {
      padding: 6px 10px;
    }
    
    /* Stories mobile optimization */
    .stories-container {
      padding: 15px;
      margin-bottom: 15px;
    }
    
    .story-item {
      min-width: 60px;
    }
    
    .story-avatar {
      width: 50px;
      height: 50px;
    }
    
    .story-avatar img {
      width: 46px;
      height: 46px;
    }
    
    .story-item span {
      font-size: 11px;
      max-width: 60px;
    }
  }

  @media (max-width: 576px) {
    .app-container {
      padding: 10px;
    }
    
    .modal-content {
      padding: 20px;
      margin: 10px;
      max-width: calc(100vw - 20px);
    }

    .post-type-selector {
      flex-direction: column;
      gap: 8px;
    }

    .post-type-btn {
      width: 100%;
      padding: 12px;
    }

    .profile-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .ai-chat {
      width: calc(100vw - 40px);
      right: 20px;
    }
    
    .header {
      padding: 8px 12px;
    }
    
    .header-left .logo span {
      font-size: 20px;
    }
    
    .header-left .logo i {
      font-size: 24px;
    }
    
    .user-avatar span {
      display: none;
    }
    
    /* Mobile post optimization */
    .post {
      margin: 0 -10px;
      border-radius: 15px;
    }
    
    .post-create {
      margin: 0 -10px;
      border-radius: 15px;
    }
    
    /* Mobile messages optimization */
    .messages-container {
      border-radius: 15px;
      height: calc(100vh - 150px);
    }
    
    .message-item {
      padding: 12px 15px;
    }
    
    .message-item img {
      width: 45px;
      height: 45px;
    }
    
    /* Mobile lesson optimization */
    .lesson-item {
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .lesson-hashtags {
      padding: 8px 15px;
    }
    
    .lesson-hashtag {
      padding: 3px 10px;
      font-size: 11px;
    }
  }
  
  @media (max-width: 480px) {
    .header-right {
      gap: 10px;
    }
    
    .header-btn {
      padding: 8px;
      font-size: 18px;
    }
    
    .search-bar {
      width: 100%;
    }
    
    .stories-container {
      padding: 10px;
    }
    
    .story-item {
      min-width: 55px;
    }
    
    .story-avatar {
      width: 45px;
      height: 45px;
    }
    
    .story-avatar img {
      width: 41px;
      height: 41px;
    }
    
    .myVideo {
      max-height: 250px;
    }
  }

  .hidden {
    display: none;
  }

  .text-post-preview {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
.new-message-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90%;
  max-height: 80vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.new-message-modal .modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.new-message-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.new-message-modal .modal-header .close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.new-message-modal .search-section {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.new-message-modal .search-section input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.new-message-modal .users-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.new-message-modal .user-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.new-message-modal .user-item:hover {
  background: #f5f5f5;
}

.new-message-modal .user-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.new-message-modal .user-item .user-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.new-message-modal .user-item .user-info p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #666;
}
/* Edit Message Styles */
.edit-message-input {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.edit-message-input input {
  flex: 1;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 15px;
}

.edit-message-input button {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
}

/* Forward Modal Styles */
.forward-message-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90%;
  max-height: 80vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.forward-message-modal .message-preview {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.forward-message-modal .message-preview img {
  max-width: 100%;
  max-height: 150px;
  margin-top: 10px;
  border-radius: 5px;
}

/* Reply Indicator Styles */
.reply-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: #f5f5f5;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #ddd;
}

.reply-info {
  flex: 1;
}

.reply-info span {
  font-size: 12px;
  color: #666;
  display: block;
}

.reply-info p {
  margin: 3px 0 0;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reply-indicator button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  margin-left: 10px;
}  

/* Reels specific styles */
.reels-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* videolar orasida bo'shliq */
    align-items: center; /* markazga joylash */
    margin-top: 20px;
}

.reels-list video {
    border-radius: 7px;
    width: 600px;
    max-width: 100%;
    cursor: pointer;
}

.reels-list h4 {
    text-align: center;
    margin: 10px 0;
    color: #333;
    font-weight: 500;
}

/* Search functionality styles */
.search-section-header {
    font-weight: 600;
    color: #666;
    padding: 8px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.search-result-item.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Mobile Bottom Navigation - Instagram-like */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 60px;
}

.mobile-nav-item.active {
    color: #3a86ff;
}

.mobile-nav-item:hover {
    background: rgba(58, 134, 255, 0.1);
    color: #3a86ff;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* AI Help Button in Messages */
.ai-help-btn {
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ai-help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

/* Wider advice section for PC */
.wider-advice {
    width: 380px;
}

/* Responsive classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .main-app {
        padding-bottom: 80px;
    }
    
    .app-container {
        padding: 15px;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none;
    }
    
    /* Adjust chat input for mobile AI help */
    .chat-input {
        gap: 8px;
    }
    
    .chat-input input {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .mobile-nav-item {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
    
    .mobile-nav-item span {
        font-size: 9px;
    }
}

/* Search loading animation */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #3a86ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Lesson heart animation */
.lesson-heart-animation {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff6b6b;
    font-size: 20px;
    animation: lessonHeartFloat 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes lessonHeartFloat {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(1.5);
    }
}

/* Enhanced search results */
.search-results {
    max-height: 500px;
    border: 1px solid #e0e0e0;
}

.search-results.active {
    animation: searchSlideDown 0.3s ease;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced trending section */
.trending-section {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.08), rgba(6, 214, 160, 0.08));
    border: 1px solid rgba(58, 134, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.trending-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Improved filter buttons */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Mobile chat input improvements */
@media (max-width: 768px) {
    .chat-input {
        padding: 15px 20px;
        background: #f8f9fa;
        border-top: 1px solid #e0e0e0;
    }
    
    .chat-input input {
        padding: 12px 16px;
        border-radius: 25px;
        border: 1px solid #e0e0e0;
        background: white;
    }
    
    .ai-help-btn {
        display: flex;
        margin-right: 5px;
    }
    
    .send-btn {
        width: 40px;
        height: 40px;
    }
}

/* Wider advice section styling */
.wider-advice {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05), rgba(6, 214, 160, 0.05));
    border: 1px solid rgba(58, 134, 255, 0.1);
    padding: 25px;
}

.wider-advice h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wider-advice h3::before {
    content: "💡";
    font-size: 24px;
}

/* Enhanced suggestion items */
.suggestion-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(58, 134, 255, 0.05);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 12px;
    transform: translateX(5px);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Enhanced trend items */
.trend-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.trend-item:hover {
    background: rgba(58, 134, 255, 0.05);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 12px;
    transform: translateX(5px);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, #3a86ff, #06d6a0);
    transition: height 0.3s ease;
}

.trend-item:hover::before {
    height: 60%;
}

/* Story viewer mobile improvements */
@media (max-width: 576px) {
    .story-viewer-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .story-header {
        padding: 20px;
    }
    
    .story-progress-bar {
        top: 80px;
        left: 20px;
        right: 20px;
    }
    
    .story-actions {
        padding: 25px 20px;
    }
}

/* Pulse animation for active elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(58, 134, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 134, 255, 0);
    }
}

/* Story Viewer Modal */
.story-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.story-viewer-container {
    position: relative;
    width: 400px;
    height: 700px;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 2;
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.story-user-details h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.story-user-details span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.story-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.story-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.story-progress-bar {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 2;
}

.story-progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
}

@keyframes storyProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.story-content img,
.story-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 2;
}

.story-viewers {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.story-interaction {
    display: flex;
    gap: 15px;
}

.story-like-btn,
.story-reply-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.story-like-btn:hover,
.story-reply-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.story-like-btn.liked {
    color: #ff6b6b;
}

.floating-heart {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff6b6b;
    font-size: 30px;
    animation: floatHeart 2s ease-out forwards;
    pointer-events: none;
    z-index: 3;
}

@keyframes floatHeart {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px) scale(1.5);
    }
}

/* Mobile responsive for story viewer */
@media (max-width: 576px) {
    .story-viewer-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
/* Shorts sahifasi */


/* Responsive: Mobil uchun */

.story-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 0 10px;
}

.story-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 70vh;
  max-height: 600px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.story-content img,
.story-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}



.story-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.story-header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.story-header button {
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
