    body {
      font-family: "Inter", "Segoe UI", sans-serif;
      background: #f7f7f8;
      height: 100vh;
      overflow: hidden;
    }

    .layout {
      display: flex;
      height: 100%;
      overflow: hidden;
      position: relative;
    }

    button.icon-btn {
      border: none !important;
      background: none !important;
      cursor: pointer;
    }

    .sidebar {
      width: 260px;
      background: #272765;
      display: flex;
      flex-direction: column;
      padding: 1rem;
      transition: transform 0.3s ease;
      z-index: 1100;
      overflow-y: auto;
    }

    .sidebar .logo {
      color: white;
      padding: 1rem;
      font-size: 1.3rem;
      font-weight: 600;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      margin-bottom: 1rem;
    }

    /* User Info Section */
    .user-info {
      background: #000347;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
      color: white;
    }

    .user-info .user-email {
      font-size: 0.85rem;
      color: #9ca3af;
      margin-bottom: 0.5rem;
    }

    .user-info .subscription-badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
    }

    .badge-free { background: #374151; color: #9ca3af; }
    .badge-pro { background: #3b82f6; color: white; }
    .badge-premier { background: #f59e0b; color: white; }

    .usage-stats {
      margin-top: 0.75rem;
      font-size: 0.8rem;
      color: #9ca3af;
    }

    .usage-bar {
      width: 100%;
      height: 4px;
      background: #374151;
      border-radius: 2px;
      margin-top: 4px;
      overflow: hidden;
    }

    .usage-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #272765, #6366f1);
      transition: width 0.3s ease;
    }

    .program-section {
      margin-bottom: 1.5rem;
    }

    .program-section h4 {
      color: #9ca3af;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 0.75rem;
      padding: 0 0.5rem;
      font-weight: 600;
    }

    .program-section button {
         display: block;
    width: 100%;
    text-align: left;
    color: #f2f2f2;
    background: transparent;
    border: none;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
    }

    .program-section button:hover {
      background: #1f2937;
      color: #fff;
    }

    .program-section button.active {
      background: #272765;
      color: #fff;
      font-weight: 500;
    }

    .program-section button:disabled {
      opacity: 0.8;
      cursor: not-allowed;
    }

    .program-section button .lock-icon {
       float: right;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #ffbf00;
    }

    .sidebar .menu {
      flex: 1;
      padding: 1rem 0.5rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      margin-top: 1rem;
    }

    .sidebar .menu a {
      display: block;
      color: #d1d5db;
      text-decoration: none;
      padding: 0.6rem 0.8rem;
      border-radius: 8px;
      margin-bottom: 0.4rem;
      transition: 0.2s;
      cursor: pointer;
    }

    .sidebar .menu a:hover,
    .sidebar .menu a.active {
      background: #12164e;
      color: #fff;
    }

    .upgrade-section {
      margin-top: auto;
      padding-top: 1rem;
      border-top: 1px solid #333;
    }

    .upgrade-btn, .logout-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: none;
      border-radius: 8px;
      padding: 10px;
      font-size: 0.9rem;
      transition: 0.2s;
      width: 100%;
      cursor: pointer;
      margin-bottom: 0.5rem;
    }

    .upgrade-btn {
          display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
       background: #008fac;
    color: #fff;
    border: 1px solid #1692b0;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
    width: 100%;
    }

    .upgrade-btn:hover {
      background: #1395b4;
    }

    .logout-btn {
      background: #11174d;
      color: #fff;
    }

    .logout-btn:hover {
        background: #06081c;
    }
    .form-check-input:checked {
      background-color: #262864;
    border-color: #262864;
    }

    .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 1000;
      transition: opacity 0.3s ease;
    }

    .overlay.active {
      display: block;
      opacity: 1;
    }

    @media (max-width: 992px) {
      .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
      }
      .sidebar.active {
        transform: translateX(0);
      }
      .overlay.active {
        display: block;
      }
    }

    .main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
    }

    .header-bar {
      background: #fff;
      border-bottom: 1px solid #e5e5e5;
      padding: 0.75rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 900;
    }

    .header-bar .menu-toggle {
      display: none;
      font-size: 1.6rem;
      color: #1f2937;
      background: none;
      border: none;
      cursor: pointer;
    }

    @media (max-width: 992px) {
      .header-bar .menu-toggle {
        display: block;
      }
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .chat-container {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      background: #f9fafb;
      display: flex;
      justify-content: center;
    }

    .assistant-container {
      background: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 16px;
      width: 100%;
      max-width: 1100px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      height: 100%;
    }

    .assistant-header {
      text-align: center;
      padding: 1.5rem;
      border-bottom: 1px solid #e5e5e5;
      background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }

    .assistant-header h3 {
      font-weight: 600;
      color: #1e293b;
      font-size: 1.75rem;
      margin-bottom: 0.5rem;
    }

    .assistant-header p {
      color: #64748b;
      font-size: 15px;
    }

    .style-tabs {
      display: flex;
      justify-content: center;
      width: 100%;
      border-bottom: 1px solid #e5e5e5;
      background: #fafafa;
    }

    .style-tabs button {
      flex: 1;
      max-width: 200px;
      padding: 12px;
      background: none;
      border: none;
      font-weight: 500;
      color: #555;
      border-bottom: 3px solid transparent;
      transition: 0.2s;
      cursor: pointer;
    }

    .style-tabs button:hover {
      background: #f5f5f5;
    }

    .style-tabs button.active {
      color: #272765;
      border-bottom: 3px solid #272765;
      background: #f5f5ff;
    }

    .chat-wrapper {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
      background: #fdfdfe;
      min-height: 300px;
    }

    .msg {
      margin-bottom: 20px;
      padding: 16px 18px;
      border-radius: 12px;
      max-width: 100%;
      word-wrap: break-word;
      line-height: 1.6;
    }

    .user {
      background: #e0e7ff;
      border-left: 4px solid #272765;
      margin-left: auto;
      text-align: right;
    }

    .gyani {
      background: #f1f5f9;
      border-left: 4px solid #64748b;
    }

    .input-area {
      padding: 16px 20px;
  
      background: #fff;
    }
    .footer {
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: #94a3b8;
    background: #f8f9fc;
    border-top: 1px solid #e2e8f0;
}

    .input-inner {
       display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 28px;
    border: 2px solid #e3e3e3;
    width: 100%;
 
    padding: 8px 12px;
    transition: border-color 0.2s;
    box-shadow: -2px 2px 8px 1px rgba(0, 0, 0, .05);
    }

    .input-inner:focus-within {
      border-color: #272765;
      background: #fff;
    }

    .input-inner input {
     flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    padding: 8px;
    min-height: 50px;
    }

    .main-send {
      background: #272765;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 18px;
      cursor: pointer;
      transition: 0.2s;
      font-weight: 500;
    }

    .main-send:hover:not(:disabled) {
      background: #008fac;
    }

    .main-send:disabled {
      background: #9ca3af;
      cursor: not-allowed;
    }

    .resources {
      margin-top: 16px;
      font-size: 14px;
      border-top: 1px solid #e5e5e5;
      padding-top: 12px;
    }

    .resources b {
      color: #1e293b;
      display: block;
      margin-bottom: 8px;
    }

    .resources ol {
      margin: 8px 0;
      padding-left: 22px;
    }

    .resources li {
      margin-bottom: 10px;
    }

    .resources a {
      color: #272765;
      text-decoration: none;
      font-weight: 500;
    }

    .resources a:hover {
      text-decoration: underline;
    }

    .resources small {
      color: #64748b;
      display: block;
      margin-top: 4px;
    }

    .error-msg {
      background: #fee2e2;
      border-left-color: #dc2626 !important;
    }

    .warning-msg {
      background: #fef3c7;
      border-left-color: #f59e0b !important;
    }

    .current-program {
      display: inline-block;
      background: #272765;
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 500;
      margin-left: 10px;
    }

    /* Auth Modal Styles */
    .auth-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgb(0 19 64 / 92%);
      z-index: 2000;
      align-items: center;
      justify-content: center;
    }

    .auth-modal.active {
      display: flex;
    }

    .auth-modal-content {
      background: white;
      border-radius: 16px;
      padding: 2rem;
      max-width: 450px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
    }

    .auth-modal h2 {
      margin-bottom: 1.5rem;
      color: #1e293b;
    }

    .form-group {
      margin-bottom: 1.25rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: #475569;
    }

    .form-group input,
    .form-group select {
      width: 100%;
      padding: 0.75rem;
      border: 2px solid #e5e5e5;
      border-radius: 8px;
      font-size: 1rem;
      transition: border-color 0.2s;
    }

    .form-group input:focus,
    .form-group select:focus {
      outline: none;
      border-color: #272765;
    }

    .btn-primary {
      width: 100%;
      background: #272765;
      color: white;
      border: none;
      padding: 0.875rem;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s;
    }

    .btn-primary:hover {
        background: #f6ba23 !important;
    color: #262864 !important;
    }

    .btn-secondary {
      width: 100%;
      background: transparent;
      color: #272765;
      border: 2px solid #272765;
      padding: 0.875rem;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s;
      margin-top: 0.75rem;
    }

    .btn-secondary:hover {
      background: #f0f0ff;
    }

    .auth-toggle {
      text-align: center;
      margin-top: 1.5rem;
      color: #64748b;
    }

    .auth-toggle a {
      color: #272765;
      text-decoration: none;
      font-weight: 600;
    }

    .auth-toggle a:hover {
      text-decoration: underline;
    }

    .subscription-info {
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 8px;
      margin-bottom: 1rem;
      font-size: 0.9rem;
    }

    .subscription-info h4 {
      font-size: 1rem;
      margin-bottom: 0.75rem;
      color: #1e293b;
    }

    .tier-option {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem;
      border: 2px solid #e5e5e5;
      border-radius: 8px;
      margin-bottom: 0.75rem;
      cursor: pointer;
      transition: 0.2s;
    }

    .tier-option:hover {
      border-color: #272765;
    }

    .tier-option input[type="radio"] {
      width: auto;
    }

    .tier-details {
      flex: 1;
    }

    .tier-name {
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 0.25rem;
    }

    .tier-limits {
      font-size: 0.85rem;
      color: #64748b;
    }

    .alert {
      padding: 0.75rem;
      border-radius: 8px;
      margin-bottom: 1rem;
    }

    .alert-success {
      background: #d1fae5;
      color: #065f46;
      border: 1px solid #6ee7b7;
    }

    .alert-error {
      background: #fee2e2;
      color: #991b1b;
      border: 1px solid #fca5a5;
    }

    .alert-info {
      background: #dbeafe;
      color: #1e40af;
      border: 1px solid #93c5fd;
    }

    .icon-btn.listening i {
  color: #ef4444 !important;
  animation: pulse 1s infinite;
  }

  @keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
span:after {
   font-family: Arial, sans-serif;
   text-align: left;
   white-space: normal;
}

span:focus {
   outline: none;
}

.wrap {
   background: #ECF0F1;
   color: #607D8B;
   height: 100%;
   overflow: auto;
   padding: 1em 2.5em;
   text-align: center;
   width: 100%;
}

h1 {
   color: #e91e63;
   font-family: "Audiowide", cursive;
   font-size: 2em;
   font-size: 7vw;
   font-weight: bold;
   line-height: 1.2;
   margin: 0.5em 0 2.5em;
   text-shadow: 1px 1px 1px #fefefe;
}

@media (min-width: 1075px) {
   h1 {
      font-size: 4.7em;
   }
}

pre {
   background: #fff;
   display: inline-block;
   font-size: .55em;
   margin-top: 2em;
   padding: 1em;
}

@media (min-width: 360px) {
   pre {
      font-size: .7em;
   }
}

@media (min-width: 500px) {
   pre {
      font-size: 1em;
   }
}


/*== start of code for tooltips ==*/
.tool, .tool2, .tool3  {
    cursor: help;
    position: relative;
}

/*== common styles for both parts of tooltip ==*/
.tool::before,
.tool::after {
    left: 50%;
    opacity: 0;
    position: absolute;
    z-index: -1; /* hidden state */
}

.tool2::before,
.tool2::after,
.tool3::before,
.tool3::after {
    left: 50%;
    opacity: 0;
    position: absolute;
    z-index: -1; /* hidden state */
}

.tool:hover::before,
.tool:focus::before,
.tool:hover::after,
.tool:focus::after {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2147483647; /* MAXIMUM SAFE Z-INDEX */
}

.tool2:hover::before,
.tool2:focus::before,
.tool2:hover::after,
.tool2:focus::after {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2147483647; /* MAXIMUM SAFE Z-INDEX */
}

.tool3:hover::before,
.tool3:focus::before,
.tool3:hover::after,
.tool3:focus::after {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2147483647; /* MAXIMUM SAFE Z-INDEX */
}
/*== pointer tip ==*/
.tool::before {
    border-style: solid;
    border-width: 1em 0.75em 0 0.75em;
    border-color: #3E474F transparent transparent transparent;
    bottom: 100%;
    content: "";
    margin-left: -0.5em;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26), 
                opacity .65s .5s;
    transform: scale(.6) translateY(-90%);
}

.tool2::before, .tool3::before  {
    border-style: solid;
    border-width: 1em 0.75em 0 0.75em;
    border-color: #3E474F transparent transparent transparent;
    bottom: 100%;
    content: "";
    margin-left: -0.5em;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26), 
                opacity .65s .5s;
    transform: scale(.6) translateY(-90%);
}

.tool:hover::before,
.tool:focus::before {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
}

.tool2:hover::before,
.tool2:focus::before {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
}
.too3:hover::before,
.too3:focus::before {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
}
/*== speech bubble ==*/
.tool::after {
    background: #3E474F;
    border-radius: .25em;
    bottom: 180%;
    color: #EDEFF0;
    content: attr(data-tip);
    margin-left: -8.75em;
    padding: 1em;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
    transform: scale(.6) translateY(50%);
    width: 17.5em;
}

.tool2::after {
    background: #3E474F;
    border-radius: .25em;
    bottom: 180%;
    color: #EDEFF0;
    content: attr(data-tip);
    margin-left: -1.75em;
    padding: 1em;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
    transform: scale(.6) translateY(50%);
    width: 17.5em;
}

.tool3::after {
    background: #3E474F;
    border-radius: .25em;
    bottom: 180%;
    color: #EDEFF0;
    content: attr(data-tip);
    margin-left: -12.75em;
    padding: 1em;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
    transform: scale(.6) translateY(50%);
    width: 17.5em;
}

.tool:hover::after,
.tool:focus::after {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26);
}

.tool2:hover::after,
.tool2:focus::after {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26);
}

.tool3:hover::after,
.tool3:focus::after {
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26);
}


@media (max-width: 760px) {
  .tool::after { 
        font-size: .75em;
        margin-left: -5em;
        width: 10em; 
  }
   .tool2::after { 
        font-size: .75em;
        margin-left: -1em;
        width: 10em; 
  }
   .tool3::after { 
        font-size: .75em;
        margin-left: -5em;
        width: 10em; 
  }
}






/* Mobile Responsive */
@media(max-width: 600px) {
  .input-inner {
    padding: 8px;
  }

  .icon-btn i,
  .main-send i {
    font-size: 1.1rem;
  }
}



    @media (max-width: 768px) {
  /* tablet & big phone styles */
  .assistant-header h3 {
    font-size: 17px;
  }
  .input-inner {
       
    }
    .style-tabs button {
          padding: 2px;
    }
    .assistant-header {
    display:none;
    }
    .input-inner {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;

  padding: 8px;
  background: #fff;
  gap: 10px;
}

.input-inner input {
  flex: 1;
  outline: none;
  font-size: 16px;
}
.icon-btn, .main-send {
  
  border: none;
  cursor: pointer;
}

.icon-btn:active i {
  color: #1d4ed8 !important;
}

.listening {
  animation: pulse 0.8s infinite;
  color: #ef4444 !important;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}
}


/* Landscape mode on mobile */
@media only screen and (orientation: landscape) and (max-height: 500px) {
    .chat-wrapper {
        min-height: 0;        /* important: prevents content cut-off */
        max-height: 100vh;     /* ensures scrollable */
        overflow-y: scroll;    /* forces scroll */
        padding: 16px;         /* fit better in landscape */
    }
}


