      html {
        scroll-behavior: smooth;
      }
      .sidebar::-webkit-scrollbar {
          width: 8px; 
      }

      .sidebar::-webkit-scrollbar-track {
          background: #1a2432; 
      }

      .sidebar::-webkit-scrollbar-thumb {
          background-color: #3b4d61;
          border-radius: 20px;
          border: 2px solid #1a2432; 
      }
      body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: #1b1f27;
        color: #fff;
        overflow-x: hidden;
      }

      .sidebar {
        width: 240px;
        background: #11151c;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        overflow-y: auto;
        transform: translateX(-260px);
        opacity: 0;
        z-index: 200 !important;
        animation: sidebarIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
      }

      .sidebar a i,
      .sidebar .dropdown-btn i {
        margin-right: 10px;
        width: 18px;
        text-align: center;
      }

      @keyframes sidebarIn {
        from {
          transform: translateX(-260px);
          opacity: 0;
        }

        to {
          transform: translateX(0);
          opacity: 1;
        }
      }

      .sidebar a,
      .sidebar .dropdown-btn {
        color: #cfcfcf;
        text-decoration: none;
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #232831;
        cursor: pointer;
        transition: 0.2s;
      }

      .sidebar a:hover,
      .sidebar .dropdown-btn:hover {
        background: #1d232c;
      }

      .dropdown-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .dropdown-arrow {
        transition: transform 0.25s ease;
      }

      .dropdown-btn.active .dropdown-arrow {
        transform: rotate(180deg);
      }

      .sidebar-logo {
        width: 100%;
        padding: 15px 0 15px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #232831;
      }

      .sidebar-logo img {
        height: 65px;
        object-fit: contain;
      }

      .logo-text {
        font-size: 28px;
        font-weight: 700;
        color: #7aa2f7;
        user-select: none;
      }

      .dropdown-container {
        max-height: 0;
        overflow: hidden;
        background: #0d1117;
        padding-left: 20px;
        transition: max-height 0.35s ease;
      }

      .dropdown-container.open {
        max-height: 500px;
      }

      .dropdown-avatar {
        position: absolute;
        right: 0;
        top: 52px;
        background: #11151c;
        border: 1px solid #232831;
        width: 170px;
        border-radius: 10px;
        overflow: hidden;
        padding: 5px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        display: flex;
        flex-direction: column;
      }

      .dropdown-avatar.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .dropdown-avatar a {
        display: block !important;
        width: 100%;
        padding: 12px 18px;
        color: #cfcfcf;
        font-size: 14px;
        text-decoration: none;
        border-bottom: 1px solid #232831;
        transition: background 0.2s, padding-left 0.2s;
      }

      .dropdown-avatar a i {
        margin-right: 10px;
        width: 16px;
        text-align: center;
        opacity: 0.85;
        transition: 0.2s ease;
      }

      .dropdown-avatar a:hover i {
        opacity: 1;
        transform: translateX(2px);
      }

      .dropdown-avatar a:last-child {
        border-bottom: none;
      }

      .dropdown-avatar a:hover {
        background: #1d232c;
        padding-left: 22px;
      }

      .topbar {
        position: fixed;
        top: 0;
        left: 240px;
        right: 0;
        height: 60px;
        background: #161b22;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 2px solid #0f1319;
        opacity: 0;
        transform: translateY(-50px);
        z-index: 9999 !important;
        animation: topbarIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.1s;
      }

      @keyframes topbarIn {
        from {
          transform: translateY(-50px);
          opacity: 0;
        }

        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      .username-topbar {
        margin-left: 10px;
        font-size: 15px;
        font-weight: 600;
        color: #cfcfcf;

        display: flex;
        align-items: center;

        height: 42px;
        /* egalează cu avatarul */
        line-height: 42px;

        position: relative;
        top: 0px;
        /* fii sigur că e aliniat perfect */

        opacity: 0;
        transform: translateX(60px);
        animation: usernameIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.23s;
        /* sincronizare cu avatarul */
      }

      @keyframes usernameIn {
        from {
          opacity: 0;
          transform: translateX(60px);
        }

        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      .right {
        position: absolute;
        right: 20px;
        display: flex;
        align-items: center;
        gap: 20px;
      }

      .left-phone {
        position: absolute;
        left: 20px;
        display: none;
        align-items: center;
      }

      .menu-btn {
        font-size: 26px;
        cursor: pointer;
        color: white;
        display: none;
      }

      .desktop-btn {
        opacity: 0;
        transform: translateX(80px);
        animation: desktopHamburgerIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.22s;
      }

      @keyframes desktopHamburgerIn {
        from {
          transform: translateX(80px);
          opacity: 0;
        }

        to {
          transform: translateX(0);
          opacity: 1;
        }
      }

      .left-phone .menu-btn {
        animation: phoneHamburgerIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.22s;
      }

      @keyframes phoneHamburgerIn {
        from {
          transform: translateX(-60px);
          opacity: 0;
        }

        to {
          transform: translateX(0);
          opacity: 1;
        }
      }

      .user-menu {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
      }

      .user-menu img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid #2d3542;
        opacity: 0;
        transform: translateX(80px);
        animation: avatarIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.18s;
      }

      @keyframes avatarIn {
        from {
          transform: translateX(80px);
          opacity: 0;
        }

        to {
          transform: translateX(0);
          opacity: 1;
        }
      }

      .content {
        margin-left: 240px;
        padding: 70px 50px 40px;
        /* sau 70px dacă vrei și mai sus */
        opacity: 0;
        animation: contentFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.26s;
      }

      @keyframes contentFadeIn {
        from {
          opacity: 0;
          transform: translateY(10px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .content.blur {
        filter: blur(4px);
      }

      .footer-login {
        left: 0 !important;
        width: 100% !important;
      }

      .footer {
        position: fixed;
        bottom: 0;
        left: 240px;
        width: calc(100% - 240px);
        background: linear-gradient(90deg, #0e1117, #11151c, #0e1117);
        color: #9da5b4;
        text-align: center;
        padding: 12px 0;
        font-size: 13px;
        letter-spacing: 0.3px;
        border-top: 1px solid #232831;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        opacity: 0;
        z-index: 999999999999999999;
        transform: translateY(20px);
        animation: footerIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.3s;
      }

      .footer i {
        color: #7aa2f7;
        transition: 0.25s ease;
      }

      .footer i:hover {
        color: #a7c4ff;
        transform: scale(1.2);
      }

      .footer a.footer-link {
        color: #7aa2f7;
        text-decoration: none;
        transition: 0.25s ease;
      }

      .footer a.footer-link:hover {
        color: #a7c4ff;
        text-shadow: 0 0 6px rgba(122, 162, 247, 0.6);
      }

      @keyframes footerIn {
        from {
          transform: translateY(20px);
          opacity: 0;
        }

        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      .page-title {
        font-size: 32px;
        margin-bottom: 25px;
        font-weight: 700;
        color: #99b8ff;
      }

      .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        width: 100%;
      }

      .cards-row-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 20px;
        width: 100%;
      }

      /* Card standard */
      .card {
        background: #161b22;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 18px 20px;
        border-radius: 10px;
        min-height: 140px;
        border: 1px solid #232831;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        animation: fadeUp 0.5s ease forwards;
        opacity: 0;
      }

      .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
      }

      .card h2 {
        font-size: 17px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
      }

      .card h2 i {
        color: #7aa2f7;
        font-size: 18px;
        opacity: 0.9;
        transition: transform 0.25s ease, opacity 0.25s ease;
      }

      .card:hover h2 i {
        transform: scale(1.15);
        opacity: 1;
      }

      /* Număr mare compact */
      .big-number {
        position: relative;
        font-size: 32px;
        /* mai mic */
        margin: 5px 0 8px;
      }

      .big-number::after {
        content: "";
        display: block;
        margin-top: 8px;
        height: 3px;
        width: 40%;
        background: linear-gradient(90deg, #7aa2f7, transparent);
        border-radius: 3px;
        opacity: 0.7;
      }

      /* Mic text de sub număr */
      .card p {
        font-size: 13px;
        opacity: 0.75;
      }

      .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 18px rgba(122, 162, 247, 0.35);
        /* glow albastru */
        border-color: #7aa2f7;
      }

      .content-inner {
        /* width: 100%; */
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        /* prevenim lipirea de margini */
      }

      /* Activitate */
      .activity-list {
        list-style: none;
        padding: 0;
        margin: 10px 0 0;
      }

      .activity-list li {
        font-size: 14px;
        padding: 6px 0;
        color: #cfcfcf;
        border-bottom: 1px solid #232831;
      }

      .activity-list li:last-child {
        border-bottom: none;
      }

      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(10px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* ============================
        PROFIL - HEADER
      ============================= */

      .profile-header {
        /* width: 100%; */
        background: linear-gradient(90deg, #11151c, #161b22);
        border: 1px solid #232831;
        display: flex;
        align-items: center;
        padding: 35px 40px;
        border-radius: 12px;
        margin-bottom: 30px;
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
        animation: fadeUp 0.5s ease;
      }

      .profile-avatar {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        border: 3px solid #2d3542;
        margin-right: 25px;
        object-fit: cover;
        box-shadow: 0 0 14px rgba(122, 162, 247, 0.4);
      }

      .profile-info h1 {
        margin: 0;
        font-size: 32px;
        color: #99b8ff;
        font-weight: 700;
      }

      .profile-info p {
        margin: 5px 0;
        font-size: 15px;
        color: #cfcfcf;
        opacity: 0.8;
      }

      .badges {
        margin-top: 10px;
        display: flex;
        gap: 10px;
      }

      .badge {
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        color: white;
      }

      .badge.manager {
        background: linear-gradient(135deg, #ff4e4e, #ff8a8a);
        color: #ffffff;
        padding: 5px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.3px;
        box-shadow: 0 0 12px rgba(255, 95, 95, 0.55);
        border: 1px solid rgba(255, 140, 140, 0.5);
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .badge.manager:hover {
        transform: scale(1.05);
        box-shadow: 0 0 16px rgba(255, 95, 95, 0.75);
      }

      .badge.user {
        background: linear-gradient(135deg, #2b2f3a, #3a4254);
        color: #d7d9df;
        padding: 5px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.3px;
        border: 1px solid rgba(120, 130, 150, 0.35);
        box-shadow: 0 0 10px rgba(70, 80, 100, 0.30);
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .badge.user:hover {
        transform: scale(1.05);
        box-shadow: 0 0 14px rgba(90, 100, 120, 0.45);
      }

      .badge.tehnic {
        background: linear-gradient(135deg, #4b6cff, #6ea0ff);
        color: #ffffff;
        padding: 5px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.3px;
        box-shadow: 0 0 12px rgba(90, 130, 255, 0.55);
        border: 1px solid rgba(110, 150, 255, 0.5);
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .badge.tehnic:hover {
        transform: scale(1.05);
        box-shadow: 0 0 16px rgba(110, 150, 255, 0.75);
      }

      .badge i {
        font-size: 14px;
      }

      .suggestion-card {
        background: #161b22;
        border: 1px solid #232831;
        border-left: 4px solid #4caf50;
        border-radius: 12px;
        padding: 18px 22px;
        margin-bottom: 20px;
        cursor: pointer;
        transition: 0.25s ease;
      }

      .suggestion-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 18px rgba(76, 175, 80, 0.25);
      }

      .suggestion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .suggestion-header h3 {
        margin: 0;
        color: #7aa2f7;
        font-size: 20px;
      }

      .author-mini {
        display: flex;
        align-items: center;
        gap: 8px;
        opacity: 0.85;
      }

      .author-mini img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 2px solid #2d3542;
      }

      .suggestion-content {
        display: none;
        margin-top: 15px;
        animation: fadeIn 0.3s ease;
      }

      .author-full {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 12px 0;
      }

      .author-full img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 2px solid #232831;
      }

      .s-description {
        color: #d7dae0;
        white-space: pre-line;
        margin-bottom: 10px;
      }

      .s-date {
        opacity: 0.55;
        font-size: 12px;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(-6px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .sidebar a.active {
        background: linear-gradient(90deg, #0e141b, #1a202a);
        border-left: 4px solid #7aa2f7;
        padding-left: 16px;
        color: #ffffff !important;
        font-weight: 600;
      }

      .pagination {
        display: flex;
        justify-content: center;
        gap: 7px;
        margin-top: 20x;
        margin-bottom: 15px;
      }

      .pg-btn {
        padding: 8px 14px;
        background: #11151c;
        color: #cfcfcf;
        border: 1px solid #232831;
        border-radius: 6px;
        text-decoration: none;
        transition: 0.25s;
      }

      .pg-btn:hover {
        background: #1d232c;
        color: #7aa2f7;
        border-color: #7aa2f7;
      }

      .pg-btn.active {
        background: #7aa2f7;
        color: white;
      }

      .discord-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background-color: #5865F2;
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        text-decoration: none;
        transition: background 0.2s;
      }

      .discord-btn:hover {
        background-color: #4752C4;
      }

      .orange-border {
        border-left: 3px solid #ff8c42;
        transition: 0.25s ease;
      }

      .orange-border:hover {
        border-left: 3px solid #ffa864;
        /* nuanță mai deschisă la hover */
        box-shadow: 0 0 12px rgba(255, 140, 66, 0.4);
      }

      .section-title {
        font-size: 26px;
        margin-top: 40px;
        margin-bottom: 15px;
        color: #99b8ff;
        font-weight: 700;
      }



      .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 20px;
      }

      .stat-card {
        background: #161b22;
        border: 1px solid #232831;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
        animation: fadeUp 0.5s ease;
        transition: 0.25s ease;
      }

      .stat-card:hover {
        transform: translateY(-4px);
        border-color: #7aa2f7;
        box-shadow: 0 0 20px rgba(122, 162, 247, 0.35);
      }

      .stat-card h3 {
        margin: 0;
        font-size: 17px;
        color: #7aa2f7;
      }

      .stat-card .big {
        font-size: 36px;
        margin-top: 10px;
        font-weight: 700;
        color: #a7c4ff;
      }

      /* ============================
   PROGRESS BAR (TIER)
============================= */

      .progress-bar {
        width: 100%;
        height: 8px;
        background: #0f1319;
        border-radius: 8px;
        margin-top: 12px;
        overflow: hidden;
      }

      .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #7aa2f7, #99b8ff);
        border-radius: 8px;
        transition: width 0.6s ease;
      }

      /* ============================
   TIMELINE ACTIVITATE
============================= */

      .timeline {
        background: #161b22;
        border: 1px solid #232831;
        border-radius: 12px;
        padding: 20px 25px;
        margin-top: 10px;
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
      }

      .timeline-item {
        position: relative;
        padding-left: 20px;
        margin-bottom: 18px;
      }

      .timeline-item:last-child {
        margin-bottom: 0;
      }

      .timeline-item::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 6px;
        width: 8px;
        height: 8px;
        background: #7aa2f7;
        border-radius: 50%;
      }

      .timestamp {
        font-size: 12px;
        color: #79808f;
      }

      .timeline-item p {
        margin: 0;
        margin-top: 2px;
        color: #d1d5df;
        font-size: 14px;
      }

      /* ============================
   DETAILED STATS GRID
============================= */

      .stats-specific-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 20px;
        margin-top: 20px;
      }

      .stat-specific {
        background: #161b22;
        border: 1px solid #232831;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
        transition: 0.25s ease;
      }

      .stat-specific h3 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #7aa2f7;
      }

      .stat-specific p {
        font-size: 14px;
        margin: 6px 0;
        color: #cfcfcf;
      }

      /* ============================
   ANIMAȚIA folosită global
============================= */

      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(8px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* ============================
   RESPONSIVE TWEAKS
============================= */


      @media (max-width: 780px) {

        /* HEADER PROFIL */
        .profile-header {
          flex-direction: column;
          align-items: center;
          text-align: center;
          padding: 25px 20px;
        }

        .profile-avatar {
          width: 95px;
          height: 95px;
          margin-right: 0;
          margin-bottom: 15px;
        }

        .profile-info h1 {
          font-size: 24px;
        }

        .profile-info p {
          font-size: 14px;
        }

        .badges {
          justify-content: center;
        }

        /* GRID STATISTICI */
        .stats-grid {
          grid-template-columns: 1fr;
        }

        .stat-card {
          padding: 15px 18px;
          text-align: center;
        }

        .stat-card .big {
          font-size: 30px;
        }

        /* TIMELINE */
        .timeline {
          padding: 15px 18px;
        }

        .timeline-item {
          padding-left: 15px;
        }

        .timeline-item p {
          font-size: 13px;
        }

        /* STATISTICI DETALIATE */
        .stats-specific-grid {
          grid-template-columns: 1fr;
        }

        .stat-specific {
          padding: 16px;
        }

        /* TITLURI */
        .section-title {
          text-align: center;
          margin-top: 25px;
          font-size: 22px;
        }
      }

      @media (max-width: 900px) {
        .cards-row-2 {
          grid-template-columns: 1fr;
        }

      }


      @media (max-width: 768px) {
        body.profile-view .content {
          padding: 80px 10px 40px !important;
          display: block !important;
          /* NU FLEX, NU CENTER */
        }

        body.profile-view .profile-header {
          margin: 0px 28px !important;
          width: 100%;
          max-width: 350px;

        }


        .search-box {
          display: none !important;
        }

        .sidebar {
          animation: none !important;
          transform: translateX(-260px);
          opacity: 0;
          pointer-events: none;
          z-index: 9999 !important;
          transition: transform 0.35s ease, opacity 0.35s ease;
        }

        .sidebar.active {
          transform: translateX(0);
          opacity: 1;
          pointer-events: auto;
        }

        .menu-btn {
          display: block !important;
        }

        .topbar {
          left: 0 !important;
          z-index: 500 !important;
        }

        .content {
          margin-left: 0 !important;
          margin-right: 0 !important;
          /* FIX – elimină împingerea spre stânga */
          padding: 80px 15px 40px !important;

          /* centrează conținutul */
        }

        .left-phone {
          display: flex !important;
          align-items: center;
          position: fixed !important;
          top: 12px !important;
          left: 15px !important;
          z-index: 10000 !important;
        }

        .desktop-btn {
          display: none !important;
        }

        .footer {
          left: 0;
          width: 100%;
        }

        .cards-grid {
          grid-template-columns: 1fr;
        }

        .page-title {
          margin-top: 50px;
        }

      }

      /* LOGIN SCREEN */
      .login-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(17, 21, 28, 0.88);
        backdrop-filter: blur(4px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999999;
        animation: fadeInLogin 0.5s ease;
      }

      @keyframes fadeInLogin {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      .login-card {
        background: #161b22;
        padding: 35px;
        width: 350px;
        text-align: center;
        border-radius: 12px;
        border: 1px solid #232831;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
        animation: loginPop 0.45s ease;
      }

      @keyframes loginPop {
        from {
          transform: scale(0.92);
          opacity: 0;
        }

        to {
          transform: scale(1);
          opacity: 1;
        }
      }

      .login-logo {
        width: 80px;
        margin-bottom: 15px;
      }

      .login-card h1 {
        font-size: 26px;
        color: #7aa2f7;
        margin-bottom: 10px;
      }

      .login-card p {
        color: #cfcfcf;
        margin-bottom: 25px;
      }

      .login-btn {
        background: #5865f2;
        border: none;
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        border-radius: 8px;
        cursor: pointer;
        color: white;
        font-weight: 600;
        transition: background 0.2s ease, transform 0.2s ease;
      }

      .login-btn:hover {
        background: #4752c4;
        transform: translateY(-2px);
      }

      .login-btn:active {
        transform: scale(0.98);
      }

      /* SEARCH BAR */
      .search-box {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        background: #0f1319;
        border: 1px solid #232831;
        padding: 6px 12px;
        border-radius: 8px;
        width: 260px;
        transition: 0.25s ease;
        opacity: 0;
        transform: translate(-50%, -10px);
        animation: searchIn 0.7s ease forwards;
        animation-delay: 0.25s;
      }

      @keyframes searchIn {
        from {
          opacity: 0;
          transform: translate(-50%, -10px);
        }

        to {
          opacity: 1;
          transform: translate(-50%, 0);
        }
      }

      .search-icon {
        color: #7aa2f7;
        margin-right: 8px;
        font-size: 15px;
        opacity: 0.7;
      }

      .search-box input {
        background: transparent;
        border: none;
        outline: none;
        color: white;
        font-size: 14px;
        width: 100%;
      }

      .search-box input::placeholder {
        color: #79808f;
      }

      /* CLEAR ICON (X) */
      .clear-icon {
        font-size: 16px;
        color: #8c8c8c;
        cursor: pointer;
        margin-left: 6px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease;
      }

      .clear-icon.show {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
      }

      .clear-icon:hover {
        color: #ffffff;
      }

      /* Focus glow */
      .search-box:focus-within {
        box-shadow: 0 0 10px rgba(122, 162, 247, 0.35);
        border-color: #7aa2f7;
      }

      .members-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 22px;
        margin-top: 20px;
      }

      .member-card {
        background: #161b22;
        border: 1px solid #232831;
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
      }

      .member-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 20px rgba(122, 162, 247, 0.35);
      }

      .member-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px solid #2d3542;
        margin-bottom: 12px;
      }

      .member-card h3 {
        color: #7aa2f7;
        margin-bottom: 6px;
      }

      .member-card .uid {
        font-size: 12px;
        color: #8b97a5;
        margin-bottom: 12px;
      }

      .member-info {
        font-size: 14px;
        color: #cfcfcf;
        margin-bottom: 18px;
      }

      .profile-btn {
        display: inline-block;
        background: #7aa2f7;
        color: white;
        padding: 10px 16px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: background 0.25s ease;
      }

      .profile-btn:hover {
        background: #517ad4;
      }
      /* B-Pass Verify.php */
         .verify-card {
      background: rgba(255, 255, 255, 0.05);
      border-left: 4px solid red;
      padding: 20px;
      border-radius: 10px;
      margin-bottom: 20px;
      cursor: pointer;
      transition: 0.2s;
    }

    .verify-card:hover {
      background: rgba(255, 255, 255, 0.09);
    }

    .verify-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .verify-title {
      font-size: 20px;
      margin: 0;
    }

    .verify-card i {
      transition: transform 0.3s ease;
    }

    .verify-card.open i {
      transform: rotate(180deg);
    }

    .verify-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease;
      margin-top: 10px;
      opacity: 0;
    }

    .verify-card.open .verify-content {
      max-height: 500px;
      opacity: 1;
    }

    .verify-users {
      margin: 0;
      opacity: 0.85;
    }

    .no-results {
      padding: 12px;
      background: rgba(255, 0, 0, 0.2);
      border-left: 4px solid red;
      margin-bottom: 30px;
    }
      @media (max-width: 480px) {
        body.profile-view .profile-header {
          margin: 0px -7px !important;
          width: 100%;
          max-width: 350px;

        }

        .profile-header {
          padding: 18px 15px;
        }

        .profile-avatar {
          width: 80px;
          height: 80px;
        }

        .profile-info h1 {
          font-size: 20px;
        }

        .profile-info p {
          font-size: 13px;
        }

        .stat-card h3 {
          font-size: 15px;
        }

        .stat-card .big {
          font-size: 26px;
        }

        .timeline-item p {
          font-size: 12px;
        }

        .stat-specific h3 {
          font-size: 16px;
        }

        .stat-specific p {
          font-size: 12px;
        }
      }


    /* Clear Task Pagina */
    .add-form,
    .data-table {
      background: #1c2530;
      padding: 20px;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .add-form h3,
    .system-status {
      color: #c8d4e0;
      margin-top: 0;
    }

    .form-group {
      margin-bottom: 15px;
    }

    .form-group label {
      display: block;
      color: #aeb5bf;
      margin-bottom: 5px;
    }

    .form-group input,
    .form-group select {
      width: 95%;
      padding: 10px;
      border: 1px solid #2b3543;
      background: #111a24;
      color: #d7d7d7;
      border-radius: 4px;
    }

    .submit-btn {
      background: #3a8cff;
      color: white;
      padding: 10px 15px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 600;
    }

    .submit-btn:hover {
      background: #5ba4ff;
    }

    .data-table {
      width: 100%;
      border-collapse: collapse;
    }

    .data-table th,
    .data-table td {
      padding: 12px;
      border-bottom: 1px solid #2b3543;
      text-align: left;
    }

    .data-table th {
      background: #1a222c;
      color: #d7d7d7;
    }

    .delete-btn {
      background: #dc3545;
      color: white;
      padding: 5px 10px;
      border: none;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      gap: 5px;
      cursor: pointer;
    }

    .delete-btn:hover {
      background: #c82333;
    }

    .edit-btn {
      background: #007bff;
      color: white;
      padding: 5px 10px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-right: 5px;
      text-decoration: none;
      display: inline-block;
    }

    .edit-btn:hover {
      background: #0056b3;
    }

    /* Stiluri personalizate pentru formularul inline și acordeon */
    .add-form-details {
      margin-bottom: 20px;
      padding: 10px 15px;
      background: #2a2a38;
      border-radius: 8px;
    }

    .add-form-details summary {
      font-size: 1.2em;
      font-weight: bold;
      cursor: pointer;
      color: #fff;
      padding: 5px 0;
    }

    .add-form-details .add-form>form {
      padding-top: 15px;
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    .add-form-details .form-group {
      flex-grow: 1;
      min-width: 200px;
    }

    /* Stiluri pentru tabelul de sarcini (Acordeon) */
    .task-row:hover {
      background-color: #3b3b4d;
      cursor: pointer;
    }

    .edit-form-row {
      display: none;
      background-color: #2a2a38;
    }

    .edit-form-row td {
      padding: 0;
      border-top: 2px solid #555;
    }

    .edit-form-row .inline-form-content {
      padding: 10px 15px;
    }

    .inline-form-content form {
      display: flex;
      gap: 15px;
      align-items: flex-end;
      width: 100%;
      flex-grow: 1;
    }


    .inline-form-content .form-group {
      margin-bottom: 0;
      flex-grow: 1;
      min-width: 150px;
    }


    .inline-form-content form .form-group {
      margin-right: 0;
    }

    .inline-form-content .delete-btn {
      margin-right: 0;
    }


    .inline-form-content label {
      font-size: 0.75em;
      color: #aaa;
      margin-bottom: 3px;
      text-transform: uppercase;
    }

    .inline-form-content input[type="text"],
    .inline-form-content select {
      padding: 6px;
      border: 1px solid #444;
      background: #111a24;
      color: #fff;
      border-radius: 4px;
      width: 100%;
      box-sizing: border-box;
      height: 34px;
    }

    .inline-form-content .action-buttons {
      display: flex;
      gap: 10px;
      align-self: flex-end;
      flex-shrink: 0;

    }

    .inline-form-content button {
      padding: 6px 10px;
      margin: 0;
      white-space: nowrap;
      height: 34px;
      line-height: 1.5;
      display: flex;
      align-items: center;
      flex-shrink: 0;
      font-size: 0.9em;
    }

    .inline-form-content button i {
      margin-right: 5px;
    }

    .arrow {
      transition: transform 0.3s;
    }

    .rotate {
      transform: rotate(180deg);
    }


        .config-form {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      padding: 20px;
      background-color: #1a2432;
      border-radius: 8px;
      margin-top: 20px;
    }

    .config-form .form-group {
      display: flex;
      flex-direction: column;
    }

    .config-form label {
      margin-bottom: 5px;
      font-weight: bold;
      color: #ccc;
    }

    .config-form input[type="text"],
    .config-form input[type="datetime-local"],
    .config-form textarea,
    .config-form select {
      background: #192533;
      border: 1px solid #444;
      padding: 10px;
      font-size: 14px;
      color: white;
      border-radius: 4px;
      box-sizing: border-box;
      width: 100%;
      height: 40px;
    }

    .config-form select {
      height: auto;
      min-height: 40px;
    }

    .config-form textarea {
      height: auto;
      min-height: 100px;
    }

    .config-form .full-width {
      grid-column: 1 / -1;
    }

    .submit-btn-container {
      grid-column: 1 / -1;
      margin-top: 15px;
      text-align: right;
    }

        .search-form {
      margin-bottom: 25px;
      padding: 15px;
      border-radius: 8px;
      display: flex;
      gap: 15px;
      align-items: center;
    }

    .search-form input[type="text"] {
      padding: 10px;
      background: #111a24;
      color: #fff;
      border: 1px solid #555;
      border-radius: 5px;
      width: 350px;
      transition: border-color 0.3s;
    }

    .search-form input[type="text"]:focus {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 5px rgba(var(--primary-color), 0.5);
    }

    .search-form button {
      padding: 10px 20px;
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      background: #111a24;
      border: 1px solid #333d47;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transition: background-color 0.3s, transform 0.1s;
    }

    .search-form button:hover {
      background-color: var(--secondary-color);
    }


    .cancel-search {
      text-decoration: none;
      color: #ff6b6b;
      font-size: 14px;
      padding: 5px;
      display: flex;
      align-items: center;
      background: #111a24;
      border: 1px solid #333d47;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .cancel-search:hover {
      color: #dc3545;
    }



    .pagination {
      display: flex;
      justify-content: center;
      padding: 25px 0;
      gap: 4px;
    }

    .pagination a,
    .pagination span {
      padding: 8px 14px;
      text-decoration: none;
      color: #fff;
      border: 1px solid #333d47;
      border-radius: 4px;
      background: #111a24;
      transition: background-color 0.3s, border-color 0.3s;
      min-width: 40px;
      text-align: center;
    }

    .pagination a {
      color: #fff;
    }

    .pagination a:hover {
      background-color: #212c38;
      border-color: var(--primary-color);
    }

    .pagination span.current-page {
      background-color: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
      font-weight: bold;
      box-shadow: 0 0 8px rgba(var(--primary-color), 0.5);
    }

    .pagination span:not(.current-page) {
      color: #666;
      border: none;
      background-color: transparent;
    }


    @media (max-width: 768px) {

      .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
      }

      .search-form input[type="text"],
      .search-form button {
        width: 100%;
        box-sizing: border-box;
      }


      .cancel-search {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 10px;

        background: #111a24;
        border: 1px solid #333d47;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        color: #ff6b6b;

      }
    }
    .edit-form-row {
      display: none;
      background-color: #1a2432;
    }

    .inline-form-content {
      padding: 15px;
      border: 1px solid #333d47;
      border-radius: 5px;
      margin: 10px 0;
      background: #111a24;
    }

    .add-form-details .add-form form {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      align-items: flex-start;
    }

    .add-form-details .add-form .lang-group {
      flex: 1 1 45%;
      min-width: 300px;
      display: flex;
      flex-direction: column;
      gap: 15px;
   }

    .add-form-details .add-form .form-group {
      margin-bottom: 0;
    }

    .add-form-details .add-form button {
      flex: 1 1 100%;
      width: fit-content;
      margin-top: 10px;
    }


    .inline-form-content form {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    @media (max-width: 768px) {
      .inline-form-content form {
        grid-template-columns: 1fr;
      }
    }

    .inline-form-content .form-group {
      margin-bottom: 0;
    }

    .inline-form-content .form-group label {
      font-size: 12px;
      color: #ccc;
    }

    textarea {
      width: 99%;
      box-sizing: border-box;
      background: #192533;
      color: #fff;
    }

    .inline-form-content .form-group input,
    .inline-form-content .form-group textarea {
      background: #192533;
      border: 1px solid #444;
      padding: 8px;
      font-size: 14px;
      width: 100%;
      box-sizing: border-box;
    }

    .action-buttons {
      grid-column: 1 / -1;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 10px;
    }

    .action-buttons .submit-btn,
    .action-buttons .delete-btn {
      padding: 8px 15px;
      text-align: center;
      border-radius: 4px;
    }

    .delete-btn {
      background-color: #dc3545;
      color: white;
    }

    .delete-btn:hover {
      background-color: #c82333;
    }

    .data-table .task-row:hover {
      cursor: pointer;
      background-color: #212c38;
    }

    .data-table .task-row td:last-child {
      text-align: center;
    }

    
        .activity-filters {
      margin-top: 15px;
      margin-bottom: 25px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .filter-button {
      background-color: #333;
      color: white;
      border: 2px solid #333;
      padding: 8px 15px;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.2s, border-color 0.2s;
      font-weight: 600;
      font-size: 0.9em;
    }

    .filter-button:hover:not(.active) {
      background-color: #555;
      border-color: #555;
    }

    .filter-button.active {
      background-color: #007bff;
      border-color: #007bff;
      color: white;
    }

    .timeline-item.hidden {
      display: none;
    }