 :root {
     --primary-blue: #2563eb;
     --primary-blue-dark: #1d4ed8;
     --gray-50: #f9fafb;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-400: #9ca3af;
     --gray-500: #6b7280;
     --gray-600: #4b5563;
     --gray-700: #374151;
     --gray-800: #1f2937;
     --gray-900: #111827;
     --green-500: #10b981;
     --red-500: #ef4444;
     --yellow-400: #fbbf24;
     --blue-50: #eff6ff;
     --blue-100: #dbeafe;
     --blue-200: #bfdbfe;
     --blue-600: #2563eb;
     --indigo-100: #e0e7ff;
     --indigo-200: #c7d2fe;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
     line-height: 1.6;
     color: var(--gray-900);
     overflow-x: hidden;
     width: 100%;
 }

 #mainlogo {
     display: flex;
     align-items: center;
     justify-content: center;
     height: 55px;
     width: 100px;
     background-color: #1d4ed8;
     border: solid #1d4ed8;
     overflow: hidden;
     border-radius: 20px 120px / 120px;
 }

 .container {
     max-width: 1280px;
     margin: 0 auto;
     padding: 0 1rem;
 }



 /* Navigation Styles */

 #nav-name {
     color: #1d4ed8;

 }

 .navbar {
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(8px);
     border-bottom: 1px solid var(--gray-200);
     position: sticky;
     top: 0;
     z-index: 50;
 }

 .nav-content {
     display: flex;
     justify-content: space-between;
     align-items: center;
     height: 4rem;
 }

 .nav-brand {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     text-decoration: none;
     color: var(--gray-900);
 }

 .nav-brand h1 {
     font-size: 1.25rem;
     font-weight: 700;
 }

 .nav-links {

     display: none;
     align-items: center;
     gap: 2rem;
 }

 .nav-links a {
     font-weight: 600;
     text-decoration: none;
     color: var(--gray-700);
     transition: color 0.3s;
 }

 .nav-links a:hover {
     color: var(--primary-blue);
 }

 .btn {
     padding: 0.5rem 1rem;
     border: none;
     border-radius: 0.375rem;
     font-weight: 500;
     cursor: pointer;
     transition: all 0.3s;
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;


 }

 .btn-primary {

     background: var(--primary-blue);
     color: white;
 }

 .btn-primary:hover {
     background: var(--primary-blue-dark);
 }

 .btn_primary {

     background: var(--primary-blue);
     color: white;
     display: flex;
     margin: 0 auto;
     width: fit-content;
     font-size: large;

 }

 .btn_primary:hover {
     background: var(--primary-blue-dark);
 }


 .btn-outline {
     background: transparent;
     color: var(--gray-700);
     border: 1px solid var(--gray-300);
 }

 .btn-outline:hover {
     background: var(--gray-50);
 }

 .btn-lg {
     padding: 0.75rem 2rem;
     font-size: 1.125rem;
 }

 .mobile-menu-btn {
     display: block;
     background: none;
     border: none;
     cursor: pointer;
 }

 .mobile-menu {
     display: none;
     padding: 1rem 0;
     border-top: 1px solid var(--gray-200);
     flex-direction: column;
     gap: 1rem;
 }

 .mobile-menu.active {
     display: flex;
 }

 /* Hero Section */
 .hero {
     background: linear-gradient(135deg, var(--blue-50) 0%, var(--indigo-100) 100%);
     padding: 3rem;
 }

 .hero-content {
     display: grid;
     grid-template-columns: 1fr;
     gap: 3rem;
     align-items: center;
 }

 .hero-text h1 {
     font-size: 2.5rem;
     font-weight: 700;
     line-height: 1.2;
     margin-bottom: 1rem;

 }

 .hero-text .highlight {
     color: var(--primary-blue);

 }

 .hero-text p {
     font-size: 1.25rem;
     color: var(--gray-600);
     margin-bottom: 2rem;
 }

 #n-r {
     display: flex;
     align-items: center;
     justify-content: center;
     width: max-content;
     padding: 0 15px;
     word-spacing: 20px;
     font-weight: 800;
     color: #f3f0f0;
     background-color: #841dd8;
     border-radius: 20px;
 }

 #n-r:hover {
     background-color: rgb(69, 17, 129);



 }

 .hero-buttons {
     display: flex;
     flex-direction: column;
     gap: 1rem;
     margin-bottom: 2rem;
 }

 .hero-stats {

     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 1.5rem;
     padding-top: 2rem;

 }

 .stat {

     display: grid;
     align-items: center;
     justify-content: center;
     height: 100px;
     width: 170px;
     background-color: #dadef0;
     border: 1px solid white;
     border-radius: 15px;
     margin: 2px;
 }

 #stats :hover {
     background-color: white;
 }

 #stats {

     display: grid;
     align-items: center;
     justify-content: center;
 }

 .stat-number {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--primary-blue);
 }

 .stat-label {
     font-size: 0.875rem;
     color: var(--gray-600);
 }

 .hero-image {

     position: relative;
 }

 .hero-image img {
     width: 100%;
     height: auto;
     object-fit: cover;
     border-radius: 1rem;
     box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
 }

 .logo-video {
     margin: 0% 5%;
     height: auto;
     width: 90%;
     border-radius: 20px;
     overflow: hidden;
 }

 /* Services Section */
 .services {
     padding: 5rem 0;
     background: white;
 }

 .section-header {
     text-align: center;
     margin-bottom: 4rem;
 }

 .section-header h2 {
     font-size: 2.25rem;
     font-weight: 700;
     margin-bottom: 1rem;
 }

 .section-header p {
     font-size: 1.25rem;

     color: var(--gray-600);
     max-width: 48rem;
     margin: 0 auto;
 }

 .services-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
 }

 .service-card {
     background: white;
     border: 2px solid var(--gray-200);
     border-radius: 0.5rem;

     padding: 2rem;
     text-align: center;
     transition: border-color 0.3s;

 }

 .service-card:hover {
     border-color: var(--blue-200);
 }

 .service-icon {
     width: 4rem;
     height: 4rem;
     background: var(--blue-100);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 1rem;
     transition: background-color 0.3s;
 }

 .service-card:hover .service-icon {


     background: var(--blue-200);
 }

 .service-card h3 {
     font-size: 1.25rem;
     font-weight: 600;
     margin-bottom: 1rem;
 }

 .service-card p {
     color: var(--gray-600);
 }

 /* Catalog Section */
 .catalog {
     padding: 5rem 0;
     background: var(--gray-50);
 }

 .books-grid {

     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
     margin-bottom: 3rem;
 }

 .book-card {
     background: white;
     border-radius: 0.5rem;
     overflow: hidden;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
     transition: box-shadow 0.3s;
 }

 .book-card:hover {
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
 }

 .book-image {
     position: relative;
 }

 .book-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;


 }

 .book-badge {
     position: absolute;
     top: 0.5rem;
     right: 0.5rem;
     padding: 0.25rem 0.5rem;
     border-radius: 0.25rem;
     font-size: 0.75rem;
     font-weight: 600;
 }

 .badge-available {
     background: var(--green-500);
     color: white;
 }

 .badge-unavailable {
     background: var(--red-500);
     color: white;
 }

 .book-content {
     padding: 1.5rem;
 }

 .book-title {
     font-size: 1.125rem;
     font-weight: 600;
     margin-bottom: 0.5rem;
 }

 .book-author {
     color: var(--gray-600);
     margin-bottom: 1rem;
 }

 .book-meta {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1rem;
 }

 .rating {
     display: flex;
     align-items: center;
     gap: 0.25rem;
 }

 .star {
     color: var(--yellow-400);
     fill: currentColor;

 }

 .category-badge {
     padding: 0.25rem 0.5rem;
     background: var(--gray-100);
     border: 1px solid var(--gray-300);
     border-radius: 0.25rem;
     font-size: 0.75rem;
 }

 .book-actions {
     display: flex;
     gap: 0.5rem;
 }

 .book-actions .btn {
     flex: 1;
 }

 .btn-sm {
     padding: 0.5rem 1rem;
     font-size: 0.875rem;
 }

 #view-all-books {
     text-align: center;
 }

 #view-all-books :hover {

     color: white;
     background-color: #1d4ed8;
     box-shadow: 10px 5px 8px rgb(8, 8, 8);
 }


 /* Contact Section */
 .contact {
     padding: 5rem 0;
     background: white;
 }

 .contact-content {
     display: grid;
     grid-template-columns: 1fr;
     gap: 3rem;
 }

 .contact-info {
     margin: 2rem;

 }

 .contact-item {
     display: flex;
     align-items: flex-start;
     gap: 1rem;
     margin-bottom: 1.5rem;
 }

 .contact-icon {
     width: 3rem;
     height: 3rem;
     background: var(--blue-100);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .contact-details h4 {
     font-weight: 600;
     margin-bottom: 0.5rem;
 }

 .contact-details p {
     color: var(--gray-600);
 }

 .map-placeholder {
     background: white;
     height: 16rem;
     border-radius: 0.5rem;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     color: var(--gray-500);
 }

 .contact-form {
     background: white;
     padding: 2rem;
     border: 1px solid var(--gray-200);
     border-radius: 0.5rem;
 }

 .form-group {
     margin-bottom: 1.5rem;
 }

 .form-row {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1rem;
 }

 .form-group label {
     display: block;
     font-weight: 500;
     margin-bottom: 0.5rem;
 }



 .form-group input,
 .form-group textarea {
     width: 100%;
     padding: 0.75rem;
     border: 1px solid var(--gray-300);
     border-radius: 0.375rem;
     font-size: 1rem;
 }


 .form-group textarea {
     resize: vertical;
     min-height: 6rem;
 }

 /* Footer */
 .footer {
     background: var(--gray-900);
     color: white;
     padding: 4rem 0;
 }

 .footer-content {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
 }

 .footer-section h3,
 .footer-section h4 {

     margin-bottom: 1rem;
 }

 .footer-section p {
     color: var(--gray-400);
     margin-bottom: 1rem;
 }

 .footer-section ul {
     list-style: none;
 }

 .footer-section ul li {
     margin-bottom: 0.5rem;
 }

 .footer-section ul li a {
     color: var(--gray-400);
     text-decoration: none;
     transition: color 0.3s;
 }

 .footer-section ul li a:hover {
     color: white;
 }

 .social-links {
     display: flex;
     gap: 1rem;
     margin-top: 1rem;
 }

 .social-links svg {
     color: var(--gray-400);
     cursor: pointer;
     transition: color 0.3s;
 }

 .social-links svg:hover {
     color: var(--primary-blue);
 }

 .footer-bottom {
     border-top: 1px solid var(--gray-800);
     margin-top: 3rem;
     padding-top: 2rem;
     text-align: center;
     color: var(--gray-400);
 }

 /* Modal Styles */
 .modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background:
         radial-gradient(circle at 20% 20%, rgba(87, 166, 255, 0.35), transparent 28%),
         radial-gradient(circle at 80% 80%, rgba(0, 91, 187, 0.25), transparent 30%),
         linear-gradient(135deg, #eaf5ff 0%, #ffffff 45%, #d8ecff 100%);
     z-index: 100;
     overflow: hidden;
 }

 .modal.active {
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .modal-content {
     background: rgba(255, 255, 255, 0.54);
     border: 1px solid rgba(255, 255, 255, 0.72);
     backdrop-filter: blur(22px);
     -webkit-backdrop-filter: blur(22px);
     border-radius: 28px;
     padding: 2.5rem 2rem;
     width: 90%;
     max-width: 460px;
     position: relative;
     z-index: 102;
     box-shadow: 0 24px 55px rgba(11, 73, 139, 0.22);
     transition: transform 0.35s ease, box-shadow 0.35s ease;
 }

 .modal-content:hover {
     transform: translateY(-8px) scale(1.01);
     box-shadow: 0 34px 75px rgba(7, 50, 101, 0.34);
 }

 /* Modal floating background circles and waves */
 .modal .bg-circle {
     position: absolute;
     border-radius: 50%;
     filter: blur(8px);
     background: rgba(255, 255, 255, 0.32);
     border: 1px solid rgba(255, 255, 255, 0.45);
     animation: floatMove 7s ease-in-out infinite;
     z-index: 101;
 }

 .modal .circle-one {
     width: 210px;
     height: 210px;
     top: 9%;
     left: 8%;
 }

 .modal .circle-two {
     width: 260px;
     height: 260px;
     right: 7%;
     bottom: 8%;
     animation-delay: 1.4s;
 }

 .modal .wave {
     position: absolute;
     width: 620px;
     height: 220px;
     border-radius: 50%;
     background: rgba(18, 117, 219, 0.14);
     filter: blur(18px);
     transform: rotate(-12deg);
     animation: waveFloat 8s ease-in-out infinite;
     z-index: 101;
 }

 .modal .wave-one {
     left: -150px;
     bottom: 8%;
 }

 .modal .wave-two {
     right: -170px;
     top: 12%;
     animation-delay: 1.8s;
 }

 @keyframes floatMove {

     0%,
     100% {
         transform: translateY(0) translateX(0);
     }

     50% {
         transform: translateY(-18px) translateX(12px);
     }
 }

 @keyframes waveFloat {

     0%,
     100% {
         transform: translateY(0) rotate(-12deg);
     }

     50% {
         transform: translateY(20px) rotate(-8deg);
     }
 }

 .modal-close {
     position: absolute;
     top: 1rem;
     right: 1rem;
     background: none;
     border: none;
     font-size: 1.5rem;
     cursor: pointer;
 }

 .tabs {
     margin-bottom: 1.5rem;
 }

 .tab-buttons {
     display: grid;
     grid-template-columns: 1fr 1fr;
     background: var(--gray-100);
     border-radius: 0.375rem;
     padding: 0.25rem;
 }

 .tab-button {
     padding: 0.5rem 1rem;
     background: none;
     border: none;
     border-radius: 0.25rem;
     cursor: pointer;
     transition: background-color 0.3s;
 }

 .tab-button.active {
     background: white;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
 }

 .tab-content {
     display: none;
 }

 .tab-content.active {
     display: block;
 }

 /* Responsive Design */
 @media (min-width: 640px) {
     .hero-buttons {
         flex-direction: row;
     }

     .hero-stats {
         grid-template-columns: repeat(4, 1fr);
     }

     .form-row {
         grid-template-columns: 1fr 1fr;
     }
 }

 @media (min-width: 922px) {
     .nav-links {

         display: flex;
     }

     .mobile-menu-btn {
         display: none;
     }

     .hero-content {
         grid-template-columns: 1fr 1fr;
     }

     .services-grid {
         grid-template-columns: repeat(2, 1fr);
     }

     .books-grid {
         grid-template-columns: repeat(2, 1fr);
     }

     .contact-content {
         grid-template-columns: 1fr 1fr;
     }

     .footer-content {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 @media (min-width: 1024px) {
     .container {
         padding: 0 2rem;
     }

     .hero-text h1 {
         font-size: 3.75rem;
     }

     .services-grid {
         grid-template-columns: repeat(3, 1fr);
     }

     .books-grid {
         grid-template-columns: repeat(3, 1fr);
     }

     .footer-content {

         grid-template-columns: repeat(4, 1fr);
     }
 }

 /* ===== MOBILE VIEW FIXES ===== */
 @media (max-width: 639px) {

     html,
     body {
         overflow-x: hidden !important;
         max-width: 100vw;
     }

     /* 1. Buttons ko fix karne ke liye */
     .hero-buttons {
         width: 100%;
         box-sizing: border-box;
     }

     .hero-buttons .btn {
         width: 100% !important;
         box-sizing: border-box;
         justify-content: center;
     }

     /* 2. "NEWEST LIBRARY" ko bahar nikalne se rokne ke liye */
     #n-r {
         width: 100%;
         word-spacing: 5px;
         /* Spacing kam ki taaki mobile me fit ho jaye */
         box-sizing: border-box;
         text-align: center;
     }

     /* 3. 170px wale dabbon ko flexible banane ke liye */
     .hero-stats {
         gap: 0.5rem;
         width: 100%;
         box-sizing: border-box;
         padding-right: 10px;
     }

     #stats {
         width: 100%;
     }

     .stat {
         width: 100% !important;
         /* Fix width hata di */
         max-width: 100%;
         margin: 5px 0;
         box-sizing: border-box;
     }
 }

 /* Auth Modal New Fields */

 .logo-box {
     width: 90px;
     height: 90px;
     margin: 0 auto 18px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 24px;
     background: rgba(255, 255, 255, 0.7);
     box-shadow: 0 12px 28px rgba(18, 117, 219, 0.18);
     overflow: hidden;
 }

 .logo {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .acont-haed {
     color: #1d4ed8;
     text-align: center;
 }



 .modal-content {
     max-height: 92vh;
     overflow-y: auto;
     box-shadow: 0 24px 70px rgba(37, 99, 235, 0.24);
 }

 .tab-content.active {
     animation: authFormFade 0.3s ease;
 }

 .account-type-box {
     background: var(--blue-50);
     border: 1px solid var(--blue-100);
     border-radius: 0.5rem;
     padding: 0.75rem;
     margin-bottom: 1rem;
 }

 .account-type-box p {
     font-weight: 700;
     color: var(--gray-700);
     margin-bottom: 0.5rem;
 }

 .account-type-options {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 0.5rem;
 }

 .account-type-options label {
     display: flex;
     align-items: center;
     gap: 0.4rem;
     background: white;
     border: 1px solid var(--gray-200);
     border-radius: 0.5rem;
     padding: 0.65rem;
     font-size: 0.9rem;
     cursor: pointer;
     transition: all 0.3s;
 }

 .account-type-options label:hover {
     border-color: var(--primary-blue);
     box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
 }

 .password-box

 /* .otp-box  */
     {
     display: flex;
     gap: 0.5rem;
 }

 .password-box input

 /* .otp-box input  */
     {
     flex: 1;
 }

 .password-box button

 /* .otp-box button  */
     {
     border: none;
     border-radius: 0.375rem;
     padding: 0 0.85rem;
     background: var(--blue-100);
     color: var(--primary-blue-dark);
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s;
 }

 .password-box button:hover,
 .otp-box button:hover {
     background: var(--primary-blue);
     color: white;
 }

 .forget-password {
     text-align: right;
     margin: -0.4rem 0 1rem;
 }

 .forget-password a {
     color: var(--primary-blue-dark);
     font-size: 0.9rem;
     font-weight: 700;
     text-decoration: none;
 }

 .forget-password a:hover {
     text-decoration: underline;
 }

 @keyframes authFormFade {
     from {
         opacity: 0;
         transform: translateY(8px);
     }

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

 @media (max-width: 520px) {

     .account-type-options,
     .password-box,
     .otp-box {
         grid-template-columns: 1fr;
         flex-direction: column;
     }

     .password-box button,
     .otp-box button {
         min-height: 42px;
     }
 }

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

 .avatar-btn {
     background: transparent;
     border: none;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.25rem 0.5rem;
     border-radius: 9999px;
     transition: background-color 0.3s;
 }

 .avatar-btn:hover {
     background-color: var(--gray-100);
 }

 .nav-avatar-pic {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     object-fit: cover;
     border: 2px solid var(--primary-blue);
 }

 .nav-avatar-initials {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     background-color: var(--primary-blue);
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 700;
     font-size: 0.875rem;
 }

 .nav-username {
     font-weight: 600;
     color: var(--gray-800);
     font-size: 0.95rem;
 }

 .chevron-down {
     color: var(--gray-500);
 }

 .avatar-dropdown-content {
     display: none;
     position: absolute;
     right: 0;
     top: 100%;
     margin-top: 0.5rem;
     background: white;
     min-width: 180px;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
     border: 1px solid var(--gray-200);
     border-radius: 0.5rem;
     overflow: hidden;
     z-index: 999;
 }

 .avatar-dropdown-content.active {
     display: block;
     animation: authFormFade 0.2s ease;
 }

 .avatar-dropdown-content a {
     display: block;
     padding: 0.75rem 1rem;
     text-decoration: none;
     color: var(--gray-700);
     font-size: 0.9rem;
     font-weight: 500;
     transition: background-color 0.3s;
 }

 .avatar-dropdown-content a:hover {
     background-color: var(--blue-50);
     color: var(--primary-blue);
 }

 /* Role Selection Overlay Styles */
 .role-modal-content {
     max-width: 580px;
     text-align: center;
 }

 .role-modal-title {
     color: var(--primary-blue-dark);
     font-size: 1.75rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
 }

 .role-modal-subtitle {
     color: var(--gray-500);
     margin-bottom: 2rem;
 }

 .role-cards-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1.5rem;
 }

 .role-card {
     background: rgba(255, 255, 255, 0.7);
     border: 2px solid var(--gray-200);
     border-radius: 1rem;
     padding: 2rem 1.5rem;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .role-card:hover {
     border-color: var(--primary-blue);
     transform: translateY(-5px);
     background: white;
     box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
 }

 .role-icon-wrapper {
     width: 70px;
     height: 70px;
     background: var(--blue-50);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--primary-blue);
     margin-bottom: 1.25rem;
     transition: background-color 0.3s;
 }

 .role-card:hover .role-icon-wrapper {
     background: var(--blue-100);
 }

 .role-card h3 {
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--gray-800);
     margin-bottom: 0.75rem;
 }

 .role-card p {
     font-size: 0.85rem;
     color: var(--gray-500);
     line-height: 1.5;
     margin-bottom: 1.5rem;
     flex-grow: 1;
 }

 .role-btn {
     padding: 0.5rem 1.25rem;
     background: var(--gray-100);
     color: var(--gray-700);
     border-radius: 0.375rem;
     font-size: 0.875rem;
     font-weight: 600;
     transition: all 0.3s;
 }

 .role-card:hover .role-btn {
     background: var(--primary-blue);
     color: white;
 }

 /* Dashboard Container Styles */
 .dashboard-container {
     display: grid;
     grid-template-columns: 280px 1fr;
     gap: 2rem;
     align-items: start;
 }

 /* Sidebar Styles */
 .dashboard-sidebar {
     background: white;
     border: 1px solid var(--gray-200);
     border-radius: 1rem;
     padding: 1.5rem;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
 }

 .dashboard-user-card {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding-bottom: 1.5rem;
     border-bottom: 1px solid var(--gray-200);
     margin-bottom: 1.5rem;
 }

 .avatar-upload-container {
     position: relative;
     width: 100px;
     height: 100px;
     border-radius: 50%;
     overflow: hidden;
     margin-bottom: 1rem;
     cursor: pointer;
     border: 3px solid var(--blue-100);
     transition: border-color 0.3s;
 }

 .avatar-upload-container:hover {
     border-color: var(--primary-blue);
 }

 .dash-avatar-pic {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .avatar-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     color: white;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     font-size: 0.75rem;
     font-weight: 600;
     opacity: 0;
     transition: opacity 0.3s;
     gap: 4px;
 }

 .avatar-upload-container:hover .avatar-overlay {
     opacity: 1;
 }

 #dashUsername {
     font-size: 1.15rem;
     font-weight: 700;
     color: var(--gray-800);
     margin-bottom: 0.25rem;
     text-align: center;
 }

 .dash-role-badge {
     font-size: 0.75rem;
     font-weight: 700;
     color: var(--primary-blue);
     background: var(--blue-50);
     padding: 0.25rem 0.75rem;
     border-radius: 9999px;
     margin-bottom: 1rem;
 }

 /* Progress Widget Styles */
 .progress-widget {
     width: 100%;
 }

 .progress-info {
     display: flex;
     justify-content: space-between;
     font-size: 0.75rem;
     font-weight: 600;
     color: var(--gray-500);
     margin-bottom: 0.35rem;
 }

 .progress-bar-container {
     width: 100%;
     height: 6px;
     background: var(--gray-100);
     border-radius: 9999px;
     overflow: hidden;
 }

 .progress-bar-fill {
     height: 100%;
     background: linear-gradient(90deg, var(--primary-blue) 0%, #3b82f6 100%);
     border-radius: 9999px;
     transition: width 0.4s ease;
 }

 /* Sidebar Nav Tabs */
 .dashboard-nav-tabs {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
 }

 .dash-tab-btn {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     padding: 0.75rem 1rem;
     background: transparent;
     border: none;
     border-radius: 0.5rem;
     color: var(--gray-600);
     font-weight: 600;
     font-size: 0.925rem;
     cursor: pointer;
     text-align: left;
     transition: all 0.3s;
 }

 .dash-tab-btn:hover {
     background: var(--gray-50);
     color: var(--gray-900);
 }

 .dash-tab-btn.active {
     background: var(--blue-50);
     color: var(--primary-blue);
 }

 .dash-tab-btn.logout-btn {
     margin-top: 1rem;
     border-top: 1px solid var(--gray-100);
     border-radius: 0;
     padding-top: 1.25rem;
     color: var(--red-500);
 }

 .dash-tab-btn.logout-btn:hover {
     background: rgba(239, 68, 68, 0.05);
 }

 /* Main Content Panels */
 .dashboard-main-content {
     background: white;
     border: 1px solid var(--gray-200);
     border-radius: 1rem;
     padding: 2rem;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
     min-height: 480px;
 }

 .panel-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 1px solid var(--gray-200);
     padding-bottom: 1.25rem;
     margin-bottom: 1.75rem;
 }

 .panel-header h2 {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--gray-800);
 }

 .dash-panel {
     display: none;
 }

 .dash-panel.active {
     display: block;
     animation: authFormFade 0.3s ease;
 }

 /* Profile Form Styles */
 .profile-form-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1.5rem;
 }

 .profile-form-grid .form-group {
     margin-bottom: 0;
 }

 .form-control {
     width: 100%;
     padding: 0.75rem 1rem;
     border: 1px solid var(--gray-300);
     border-radius: 0.5rem;
     font-size: 0.95rem;
     background: white;
     transition: all 0.3s;
     color: var(--gray-700);
 }

 .form-control[readonly] {
     background-color: var(--gray-50);
     color: var(--gray-500);
     border-color: var(--gray-200);
     cursor: not-allowed;
 }

 .form-control:focus:not([readonly]) {
     border-color: var(--primary-blue);
     outline: none;
     box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
 }

 select.form-control:disabled {
     background-color: var(--gray-50);
     color: var(--gray-500);
     border-color: var(--gray-200);
     cursor: not-allowed;
 }

 /* Daily Activity log details */
 .status-badge.status-in {
     background: rgba(16, 185, 129, 0.12);
     color: var(--green-500);
 }

 .status-badge.status-out {
     background: var(--gray-100);
     color: var(--gray-500);
 }

 .activity-table th,
 .activity-table td {
     padding: 0.85rem;
     font-size: 0.9rem;
     border-bottom: 1px solid var(--gray-150);
 }

 .activity-table tbody tr {
     transition: background-color 0.2s;
 }

 .activity-table tbody tr:hover {
     background-color: var(--gray-50);
 }

 /* Subscription plans dialog styling */
 .plans-modal-content {
     max-width: 960px;
     width: 95%;
 }

 .plans-title {
     color: var(--primary-blue-dark);
     font-size: 1.75rem;
     font-weight: 700;
     text-align: center;
     margin-bottom: 0.25rem;
 }

 .plans-subtitle {
     color: var(--gray-500);
     text-align: center;
     margin-bottom: 2rem;
     font-size: 0.95rem;
 }

 .plans-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1.5rem;
 }

 .plan-card {
     background: white;
     border: 1px solid var(--gray-200);
     border-radius: 1rem;
     padding: 2rem 1.5rem;
     display: flex;
     flex-direction: column;
     position: relative;
     transition: all 0.3s;
 }

 .plan-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
     border-color: var(--gray-300);
 }

 .plan-recommended {
     border-color: var(--primary-blue);
     box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
     background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.05), transparent 40%), white;
 }

 .plan-recommended:hover {
     border-color: var(--primary-blue-dark);
     box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
 }

 .recommended-badge {
     position: absolute;
     top: 0;
     left: 50%;
     transform: translate(-50%, -50%);
     background: var(--primary-blue);
     color: white;
     font-size: 0.75rem;
     font-weight: 700;
     padding: 0.25rem 1rem;
     border-radius: 9999px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .plan-header {
     margin-bottom: 1.5rem;
     text-align: center;
     border-bottom: 1px solid var(--gray-100);
     padding-bottom: 1.25rem;
 }

 .plan-header h3 {
     font-size: 1.25rem;
     font-weight: 700;
     color: var(--gray-800);
     margin-bottom: 0.5rem;
 }

 .plan-price {
     font-size: 2rem;
     font-weight: 800;
     color: var(--gray-900);
 }

 .plan-price span {
     font-size: 0.875rem;
     color: var(--gray-500);
     font-weight: 500;
 }

 .plan-features {
     list-style: none;
     margin-bottom: 2rem;
     flex-grow: 1;
 }

 .plan-features li {
     padding: 0.5rem 0;
     font-size: 0.875rem;
     color: var(--gray-600);
     font-weight: 500;
 }

 .plan-btn {
     width: 100%;
     justify-content: center;
     font-size: 0.95rem;
     padding: 0.75rem;
 }

 /* Subscription Active Indicator in nav */
 .btn-subscription-disabled {
     background-color: var(--gray-200) !important;
     color: var(--gray-400) !important;
     cursor: not-allowed !important;
     border-color: var(--gray-300) !important;
 }

 .btn-subscription-active {
     background-color: var(--green-500) !important;
     color: white !important;
     border-color: var(--green-500) !important;
     animation: pulse-green 2s infinite;
 }

 @keyframes pulse-green {
     0% {
         box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
     }

     70% {
         box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
     }

     100% {
         box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
     }
 }

 /* Mobile specific layouts */
 @media (max-width: 768px) {
     .dashboard-container {
         grid-template-columns: 1fr;
     }

     .profile-form-grid {
         grid-template-columns: 1fr;
     }

     .profile-form-grid .form-group {
         grid-column: span 1 !important;
     }

     #collegeFieldsWrapper,
     #libraryFieldsWrapper {
         grid-template-columns: 1fr !important;
     }
 }