 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
     font-family: "Inter", sans-serif;
 }

 :root {
     --x: 0;
     --y: 0;
 }


 body {
     background: white;
     height: 100dvh;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     align-items: center;
 }

 /* ----------------------------------------------------
           JOIN SCREEN STYLES
           ---------------------------------------------------- */
 .join-container {
     max-width: 480px;
     margin: 0 auto;
     width: 100%;
     display: flex;
     flex-direction: column;
     height: 100dvh;
     position: relative;
 }

 .scrollable-content {
     flex: 1;
     overflow-y: auto;
     padding: 24px;
     padding-bottom: 100px;


     display: flex;
     flex-direction: column;
 }

 .fixed-footer {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     padding: 24px;
     z-index: 10;
 }

 .back-btn {
     background: #9E9E9E;
     border: none;
     width: 50px;
     height: 50px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     margin-bottom: 24px;
     color: white;
     text-decoration: none;
     flex-shrink: 0;
 }

 .back-btn svg {
     width: 24px;
     height: 24px;
     fill: white;
 }

 .input-group input {
     width: 100%;
     padding: 16px;
     background: #EAEAEA;
     border: none;
     border-radius: 8px;
     font-size: 16px;
     color: #333;
 }

 h1 {
     font-size: 32px;
     font-weight: 700;
     color: #000;
 }

 .description {
     font-size: 16px;
     color: #4A4A4A;
     margin-bottom: 32px;
     line-height: 1.5;
 }

 .form-group {
     margin-bottom: 24px;
 }

 .form-group input {
     width: 100%;
     padding: 16px;
     background: #EAEAEA;
     border: none;
     border-radius: 8px;
     font-size: 16px;
     color: #333;
 }

 label {
     display: block;
     font-size: 16px;
     font-weight: 700;
     margin-bottom: 8px;
     color: #000;
 }

 input[type="text"],
 select {
     width: 100%;
     padding: 16px;
     border: none;
     background: #E0E0E0;
     border-radius: 8px;
     font-size: 16px;
     color: #000;
     appearance: none;
     -webkit-appearance: none;
 }

 .select-wrapper {
     position: relative;
 }

 .select-wrapper::after {
     content: "";
     position: absolute;
     right: 16px;
     top: 50%;
     transform: translateY(-50%);
     border-left: 6px solid transparent;
     border-right: 6px solid transparent;
     border-top: 6px solid #000;
     pointer-events: none;
 }

 .enter-btn {
     background: #2787F5;
     color: white;
     border: none;
     padding: 16px;
     border-radius: 12px;
     font-size: 18px;
     font-weight: 700;
     cursor: pointer;
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }

 .enter-btn:hover {
     opacity: 0.9;
 }

 .error-message {
     background-color: #ffebee;
     color: #c62828;
     padding: 12px;
     border-radius: 8px;
     margin-bottom: 24px;
     font-size: 14px;
     display: none;
     border: 1px solid #ef9a9a;
     text-align: center;
 }

 /* ----------------------------------------------------
           APP CONTENT STYLES (Transcription View)
           ---------------------------------------------------- */
 .app-container {
     max-width: 480px;
     margin: 0 auto;
     background: #f5f5f5;
     padding: 20px;
     height: 100dvh;
     display: flex;
     flex-direction: column;
     width: 100%;
     width: 100%;
     position: relative;
     padding-bottom: 35px;
 }

 .app-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-shrink: 0;
 }

 .lock-btn {
     background: #9E9E9E;
     border: none;
     width: 50px;
     height: 50px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     color: white;
     flex-shrink: 0;
     margin: 0;
 }

 .lock-btn svg {
     width: 20px;
     height: 20px;
     stroke: white;
 }

 .lock-btn:hover {
     opacity: 0.9;
     background: #9E9E9E;
 }

 .controls-bar {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 16px;
     flex-shrink: 0;
 }

 .lang-indicator {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 24px;
     font-weight: 700;
     flex-shrink: 0;
 }

 .lang-flag {
     font-size: 40px;
 }

 .lang-name {
     font-size: 18px;
     font-weight: 700;
     color: #000;
 }

 .audio-btn {
     background: #2787F5;
     border: none;
     width: 50px;
     height: 50px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     color: white;
     flex-shrink: 0;
     margin: 0;
 }

 .audio-btn.active {
     background: #2787F5;
 }

 .audio-btn.inactive {
     background: #9E9E9E;
 }

 .transcript-card {
     background: white;
     border-radius: 12px;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
     display: flex;
     flex-direction: column;
     transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     width: 100%;
 }

 .transcript-card.live-mode {
     background: transparent;
     box-shadow: none;
     margin-top: 12px;
     flex-grow: 0;
     max-height: 200px;
 }

 .transcript-card.history-mode {
     background: white;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     padding: 24px;
     margin-bottom: 20px;
     margin-top: 24px;
     flex-grow: 1;
     max-height: 50%;
 }

 .transcript-title {
     font-size: 18px;
     font-weight: 600;
     color: #1a1a1a;
     display: flex;
     justify-content: flex-end;
     align-items: flex-end;
     width: 100%;
 }

 .transcript-card.live-mode .transcript-title span {
     display: none;
 }

 .transcript-card.live-mode .transcript-title {
     justify-content: flex-end;
 }

 .transcript-text {
     margin-bottom: 16px;
 }


 .immersive-btn {
     background: #2787F5;
     color: white;
     border: none;
     padding: 16px;
     border-radius: 12px;
     font-size: 18px;
     font-weight: 700;
     cursor: pointer;
     width: 100%;
     text-align: center;
 }

 .app-footer {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     padding: 10px;
     z-index: 100;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 #status {
     text-align: center;
     font-size: 12px;
     color: #666;
     margin-top: 8px;
 }

 /* ----------------------------------------------------
           IMMERSIVE MODE STYLES
           ---------------------------------------------------- */
 .immersive-tiles-container {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     grid-template-rows: repeat(3, 1fr);
     gap: 16px;
     width: 100%;
     height: 60%;
     margin: 0 0 16px 0;
     flex-shrink: 0;
     max-width: 600px;
 }

 .immersive-tile {
     position: relative;
     background-color: #333;
     background-size: cover;
     background-position: center;
     border-radius: 20px;
     height: 100%;
     width: 100%;
     cursor: pointer;
     overflow: hidden;
     border: none;
     transition: border-color 0.2s ease, transform 0.2s ease;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
 }

 .immersive-tile.selected {
     border: 4px solid #2787F5;
 }

 .immersive-tile:active {
     transform: scale(0.96);
 }

 .immersive-tile::after {
     content: "";
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
     z-index: 1;
 }

 .immersive-tile span {
     position: absolute;
     bottom: 12px;
     left: 0;
     width: 100%;
     text-align: center;
     color: white;
     font-weight: 700;
     font-size: 16px;
     z-index: 2;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
     padding: 0 8px;
 }

 .immersive-tile:nth-child(1) {
     background-image: url('../../images/Herodeion/HERODEION.png');
 }

 .immersive-tile:nth-child(2) {
     background-image: url('../../images/Propylaea/Propylaea.png');
 }

 .immersive-tile:nth-child(3) {
     background-image: url('../../images/STATUE_OF_ATHENA/STATUE_OF_ATHENA_TILE.png');
 }

 .immersive-tile:nth-child(4) {
     background-image: url('../../images/PARTHENON/PARTHENON_TILE.png');
 }

 .immersive-tile:nth-child(5) {
     background-image: url('../../images/ERECHTHEION/ERECHTHEION_TILE.png');
 }

 .immersive-tile:nth-child(6) {
     background-image: url('../../images/WEB_AR_TILE_IMG.svg');
 }

 #immersive-screen {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: #000;
     z-index: 1000;
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
 }

 .immersive-overlay {
     padding: 24px;
     width: 100%;
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
     position: relative;
     align-items: center;
 }

 #immersive-transcript {
     display: none !important;
 }

 .immersive-exit-btn {
     color: black;
     border: none;
     padding: 16px;
     border-radius: 12px;
     font-size: 18px;
     font-weight: 700;
     cursor: pointer;
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }

 .nav-arrow {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: rgba(0, 0, 0, 0.3);
     color: white;
     border: none;
     font-size: 24px;
     cursor: pointer;
     z-index: 20;
     border-radius: 50%;
     width: 50px;
     height: 50px;
     display: none;
     align-items: center;
     justify-content: center;
     backdrop-filter: blur(4px);
     transition: background 0.3s;
 }

 .nav-arrow:hover {
     background: rgba(0, 0, 0, 0.6);
 }

 .left-arrow {
     left: 24px;
 }

 .right-arrow {
     right: 24px;
 }

 /* Loader */
 .loader {
     border: 4px solid rgba(255, 255, 255, 0.3);
     border-top: 4px solid #2787F5;
     border-radius: 50%;
     width: 50px;
     height: 50px;
     animation: spin 1s linear infinite;
     display: none;
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     z-index: 50;
 }

 @keyframes spin {
     0% {
         transform: translate(-50%, -50%) rotate(0deg);
     }

     100% {
         transform: translate(-50%, -50%) rotate(360deg);
     }
 }

 .text-center {
     text-align: center;
 }

 /* ----------------------------------------------------
           LOCK SCREEN STYLES
           ---------------------------------------------------- */
 #lock-screen-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.6);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
     z-index: 9999;
     display: none;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     color: white;
     padding: 40px;
 }

 .lock-icon-large {
     margin-bottom: 24px;
     animation: pulse 2s infinite;
 }

 .lock-message {
     font-size: 24px;
     font-weight: 700;
     margin-bottom: 60px;
     text-align: center;
 }

 .slider-container {
     width: 100%;
     max-width: 320px;
     height: 60px;
     background: rgba(255, 255, 255, 0.2);
     border-radius: 30px;
     position: relative;
     backdrop-filter: blur(4px);
     border: 1px solid rgba(255, 255, 255, 0.3);
     overflow: hidden;
 }

 .slider-text {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     color: rgba(255, 255, 255, 0.8);
     font-size: 16px;
     font-weight: 600;
     pointer-events: none;
     width: 100%;
     text-align: center;
     letter-spacing: 1px;
     animation: shine 3s infinite;
 }

 .slider-thumb {
     width: 52px;
     height: 52px;
     background: white;
     border-radius: 50%;
     position: absolute;
     top: 50%;
     left: 4px;
     transform: translateY(-50%);
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: grab;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     transition: transform 0.1s;
     z-index: 2;
 }

 .slider-thumb svg {
     color: #2787F5;
     transition: transform 0.3s;
 }

 .slider-thumb:active {
     cursor: grabbing;
     transform: translateY(-50%) scale(0.95);
 }

 @keyframes pulse {
     0% {
         transform: scale(1);
         opacity: 0.8;
     }

     50% {
         transform: scale(1.1);
         opacity: 1;
     }

     100% {
         transform: scale(1);
         opacity: 0.8;
     }
 }

 @keyframes shine {
     0% {
         opacity: 0.5;
     }

     50% {
         opacity: 1;
     }

     100% {
         opacity: 0.5;
     }

     100% {
         opacity: 0.5;
     }
 }

 /* ----------------------------------------------------
           WEBAR POPUP STYLES AND CARDS
           ---------------------------------------------------- */
 .webar-experiences-container {
     width: 100%;
 }

 .webar-list {
     display: flex;
     gap: 16px;
     overflow-x: auto;
     scrollbar-width: none;
 }

 .webar-list::-webkit-scrollbar {
     display: none;
 }

 .webar-card {
     position: relative;
     width: 220px;
     height: 140px;
     border-radius: 12px;
     overflow: hidden;
     flex-shrink: 0;
     cursor: pointer;
 }

 .webar-card-bg {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .webar-card-badge {
     position: absolute;
     top: 10px;
     right: 10px;
     background: #f4f6f8;
     color: #6a7482;
     font-weight: 800;
     font-size: 16px;
     padding: 4px 8px;
     border-radius: 6px;
     z-index: 2;
 }

 .webar-card-title {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 90%;
     text-align: center;
     color: #ffffff;
     font-weight: 600;
     font-size: 16px;
     text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8), 0px 1px 3px rgba(0, 0, 0, 0.6);
     z-index: 2;
 }

 .webar-card::after {
     content: "";
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.2);
     z-index: 1;
     pointer-events: none;
 }

 #webar-popup-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.6);
     backdrop-filter: blur(8px);
     z-index: 2000;
     display: none;
     flex-direction: column;
     justify-content: center;
     align-items: center;
 }

 .webar-option-btn {
     background: rgba(255, 255, 255, 0.15);
     border: 1px solid rgba(255, 255, 255, 0.3);
     color: white;
     padding: 16px;
     border-radius: 12px;
     font-size: 18px;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.2s;
 }

 .webar-option-btn:hover {
     background: rgba(255, 255, 255, 0.25);
 }


 #enableBtn {
     position: fixed;
     top: 16px;
     left: 50%;
     transform: translateX(-50%);
     padding: 12px 20px;
     border-radius: 12px;
     border: none;
     background: #fff;
     font-weight: 700;
     z-index: 9999;
 }

 /* SCENE */
 #wrap {
     position: fixed;
     inset: 0;
     perspective: 1400px;
 }

 #card {
     position: absolute;
     inset: 0;
     transform-style: preserve-3d;
     will-change: transform;
 }

 #bg {
     position: absolute;
     inset: -20%;
     width: 140%;
     height: 140%;
     object-fit: cover;
     transform: translate3d(calc(var(--x) * 16px),
             calc(var(--y) * 16px),
             -60px);
     will-change: transform;
 }



 #fg {
     position: fixed;
     inset: 0;
     display: grid;
     place-items: center;
     pointer-events: none;
     z-index: 100;
     will-change: transform;
 }

 #fg img {
     position: absolute;
     bottom: 0;
     left: 50%;
     transform-origin: bottom center;
     width: 100%;
     height: auto;
     max-height: 100%;
     object-fit: contain;
     object-position: bottom;
     pointer-events: none;
     z-index: 10;
     will-change: transform;
     filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.6));
     transform:
         translateX(-50%) translate3d(calc(var(--x) * -36px), 0px, 0px) rotateY(calc(var(--x) * 6deg));
 }

 .label {
     position: absolute;
     inset: 0;
     display: grid;
     place-items: center;
     color: white;
     font-size: 26px;
     letter-spacing: 0.15em;
     font-weight: 600;
     pointer-events: none;
     transform: translate3d(calc(var(--x) * 14px),
             calc(var(--y) * 14px),
             40px);
     will-change: transform;
 }

 .parallax-wrap {
     position: absolute;
     inset: 0;
     perspective: 1400px;
     pointer-events: none;
 }

 .parallax-card {
     position: absolute;
     inset: 0;
     transform-style: preserve-3d;
     will-change: transform;
 }

 .parallax-bg {
     position: absolute;
     inset: -20%;
     width: 140%;
     height: 140%;
     object-fit: cover;
     transform: translate3d(calc(var(--x) * 16px),
             calc(var(--y) * 16px),
             -60px);
     will-change: transform;
 }

 .parallax-fg {
     position: fixed;
     inset: 0;
     display: grid;
     place-items: center;
     pointer-events: none;
     z-index: 100;
     will-change: transform;
 }

 .parallax-fg img {
     position: absolute;
     bottom: 0;
     left: 50%;
     transform-origin: bottom center;
     width: 100%;
     height: auto;
     max-height: 100%;
     object-fit: contain;
     object-position: bottom;
     pointer-events: none;
     z-index: 10;
     will-change: transform;
     filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.6));
     transform:
         translateX(-50%) translate3d(calc(var(--x) * -36px), 0px, 0px) rotateY(calc(var(--x) * 6deg));
 }

 .code-inputs {
     display: flex;
     gap: 8px;
 }

 .code-inputs input {

     padding: 10px !important;
     text-align: center;
     font-size: 20px;
     font-weight: 600;
     border: 1px solid #ccc;
     border-radius: 8px;
 }

 .input-group {
     margin-bottom: 24px;
     flex-shrink: 0;
     padding: 1px;
 }

 .extra-btns {
     display: flex;
     justify-content: space-between;
     gap: 12px;
 }

 .main-tiles-wrapper {
     width: 100%;
     position: relative;
     flex: 1;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     border-radius: 12px;
 }

 .main-carousel-track {
     position: relative;
     width: 100%;
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .main-carousel-slide {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     border-radius: 12px;
     overflow: hidden;
     background-size: cover;
     background-position: center;
     opacity: 0;
     transform: scale(0.9);
     transition: opacity 0.3s ease, transform 0.3s ease;
     pointer-events: none;
 }

 .main-carousel-slide.active {
     opacity: 1;
     transform: scale(1);
     pointer-events: auto;
     z-index: 1;
 }

 .main-carousel-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     align-items: center;
     padding: 20px;
     padding-bottom: 4.3rem;
 }

 .main-carousel-overlay pre {
     color: white;
     font-size: 18px;
     font-weight: 700;
     margin: 0;
     margin-bottom: 12px;
     text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
     white-space: pre-wrap;
     white-space: -moz-pre-wrap;
     white-space: -pre-wrap;
     white-space: -o-pre-wrap;
     word-wrap: break-word;
 }

 .tap-explore-btn {
     border-radius: 79px;
     border: 1px solid #FFF;
     background: rgba(0, 0, 0, 0.24);
     backdrop-filter: blur(10px);
     color: white;
     padding: 10px 20px;
     font-size: 15px;
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 6px;
     transition: all 0.2s;
 }

 .tap-explore-btn:hover {
     background: rgba(255, 255, 255, 0.35);
     transform: translateX(4px);
 }

 .main-nav-arrow {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: rgba(0, 0, 0, 0.4);
     color: white;
     border: none;
     font-size: 24px;
     cursor: pointer;
     z-index: 10;
     border-radius: 50%;
     width: 50px;
     height: 50px;
     display: flex;
     align-items: center;
     justify-content: center;
     backdrop-filter: blur(8px);
     transition: all 0.2s;
 }

 .main-nav-arrow:hover {
     background: rgba(0, 0, 0, 0.6);
     transform: translateY(-50%) scale(1.1);
 }

 .main-left-arrow {
     left: 16px;
 }

 .main-right-arrow {
     right: 16px;
 }

 .main-carousel-dots {
     display: flex;
     justify-content: center;
     gap: 8px;
     margin-top: -30px;
     z-index: 999;
 }

 .main-dot {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background: #D0D0D0;
     cursor: pointer;
     transition: all 0.2s;
 }

 .main-dot.active {
     background: #2787F5;
     transform: scale(1.3);
 }


 .reaction-container {
     position: relative;
     display: inline-block;
 }

 .reaction-btn {
     background: #9E9E9E;
     border: none;
     width: 50px;
     height: 50px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     color: white;
     flex-shrink: 0;
     margin: 0;
     transition: transform 0.2s;
 }

 .reaction-btn:active {
     transform: scale(0.9);
 }

 .reaction-menu {
     display: none;
     position: absolute;
     top: -60px;
     right: 0;
     background: rgba(40, 40, 40, 0.9);
     backdrop-filter: blur(15px);
     border-radius: 30px;
     padding: 8px 15px;
     white-space: nowrap;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
     z-index: 1000;
 }

 .reaction-menu span {
     font-size: 24px;
     margin: 0 8px;
     cursor: pointer;
     display: inline-block;
     transition: transform 0.2s;
     -webkit-tap-highlight-color: transparent;
 }

 .reaction-menu span:hover {
     transform: scale(1.3);
 }

 #toast-notification {
     position: fixed;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     background-color: white;
     color: #333;
     padding: 16px 24px;
     border-radius: 50px;
     z-index: 2000;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     display: flex;
     align-items: center;
     gap: 12px;
     font-family: 'Inter', sans-serif;
     font-weight: 500;
     font-size: 15px;
     opacity: 0;
     transition: opacity 0.3s, transform 0.3s;
     pointer-events: none;
     z-index: 999999999999999999999;
     width: 70%;
 }

 #toast-notification.show {
     opacity: 1;
     transform: translate(-50%, -10px);
 }

 #toast-notification svg {
     animation: spin 2s linear infinite;
     color: #2787F5;
     flex-shrink: 0;
 }

 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }


 .immersive-questions-container {
     position: absolute;
     bottom: 46px;
     left: 0;
     width: 100%;
     overflow-x: auto;
     padding: 10px 20px;
     z-index: 100;
     scrollbar-width: none;
     display: none;
 }

 .questions-wrapper {
     display: flex;
     gap: 12px;
     width: max-content;
 }

 .questions-wrapper button {
     background: rgba(255, 255, 255, 0.2);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.3);
     color: white;
     border-radius: 25px;
     padding: 10px 18px;
     font-size: 14px;
     white-space: nowrap;
     transition: all 0.2s ease;
 }

 .questions-wrapper button:active {
     background: rgba(255, 255, 255, 0.4);
     transform: scale(0.95);
 }



 #voiceWave {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 0;
     pointer-events: none;
     opacity: 0.9;
     filter: blur(4px);
 }


 .hero-avatar {
     position: absolute;
     right: 0;
     z-index: -99999;
     top: 15rem;
 }

 .mesh-test {
     position: absolute;

     background-color: hsla(0, 0%, 100%, 0);
     background-image:
         radial-gradient(at 0% 60%, hsla(212, 91%, 55%, 1) 0px, transparent 50%),
         radial-gradient(at 0% 100%, hsla(255, 61%, 51%, 1) 0px, transparent 50%);
     width: 50%;
     height: 300px;
     border-radius: 50%;
     filter: blur(80px);
     animation: gradient 10s ease infinite;
     background-size: 200% 200%;
     pointer-events: none;
     z-index: -1;
 }

 @keyframes gradient {
     0% {
         background-position: 0% 50%;
         transform: scale(1) rotate(0deg);
     }

     50% {
         background-position: 100% 50%;
         transform: scale(1.1) rotate(5deg);
     }

     100% {
         background-position: 0% 50%;
         transform: scale(1) rotate(0deg);
     }
 }




 .immersive-dots-container {
     position: absolute;
     bottom: 12px;
     display: flex;
     justify-content: center;
     gap: 10px;
     padding: 15px 0;
     z-index: 100;
 }

 .immersive-dot {
     width: 10px;
     height: 10px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.5);
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .immersive-dot.active {
     background: rgba(255, 255, 255, 1);
     transform: scale(1.3);
 }

 .immersive-dot:hover {
     background: rgba(255, 255, 255, 0.8);
 }

 .immersive-slide-title,
 .immersive-slide-subtitle {
     color: white;
     font-size: 24px;
     font-weight: 700;
     z-index: 2000;
     text-shadow: 0 4px 4px #000;
     text-align: center;
     pointer-events: none;
 }






 .modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1000;
 }

 .modal-content {
     background: white;
     padding: 32px;
     border-radius: 24px;
     width: 90%;
     max-width: 400px;
     text-align: center;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
 }

 .modal-title {
     font-size: 20px;
     font-weight: 600;
     margin-bottom: 32px;
     line-height: 1.4;
     color: #000;
 }

 .modal-actions {
     display: flex;
     flex-direction: column;
     gap: 16px;
 }

 .modal-btn {
     width: 100%;
     padding: 16px;
     border-radius: 16px;
     font-size: 18px;
     font-weight: 700;
     cursor: pointer;
     transition: opacity 0.2s;
 }

 #translations-panel {
     border-radius: 12px;
     overflow: hidden;
 }

 #waiting-state {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 12px;
     padding: 32px 20px;
     color: #999;
 }

 #waiting-state svg {
     opacity: 0.5;
     animation: pulse-wait 2s ease-in-out infinite;
 }

 @keyframes pulse-wait {

     0%,
     100% {
         opacity: 0.4;
         transform: scale(1);
     }

     50% {
         opacity: 0.8;
         transform: scale(1.05);
     }
 }

 #translation-state {
     display: flex;
     flex-direction: column;
 }

 #last-translation-view {
     padding: 12px;
     font-size: 24px;
     min-height: 120px;
 }

 #history-toggle-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 6px;
     width: 100%;
     background: none;
     border: none;
     border-top: 1px solid rgba(0, 0, 0, 0.06);
     padding: 8px;
     cursor: pointer;
     font-size: 0.8em;
     color: #999;
     transition: color 0.2s ease, background 0.2s ease;
 }

 #history-toggle-btn:hover {
     color: #555;
     background: rgba(0, 0, 0, 0.02);
 }

 #history-toggle-btn svg {
     transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
     flex-shrink: 0;
 }

 #translations-panel.history-open #history-toggle-btn svg {
     transform: rotate(180deg);
 }

 #history-panel {
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     border-top: 1px solid rgba(0, 0, 0, 0.06);
 }

 #translations-panel.history-open #history-panel {
     max-height: 400px;
 }

 #transcript {
     display: flex;
     flex-direction: column;
     gap: 4px;
     padding: 12px 16px;
     max-height: 380px;
     overflow-y: auto;
 }

 .transcript-text {
     padding: 6px 0;
     font-size: 24px;
     line-height: 1.5;
     border-bottom: 1px solid rgba(0, 0, 0, 0.04);
 }

 .transcript-text:last-child {
     border-bottom: none;
 }


 /* ----------------------------------------------------
  QUESTIONS TAB STYLES
  ---------------------------------------------------- */
 .questions-list {
     display: flex;
     flex-direction: column;
     gap: 16px;
     padding: 4px;
 }

 .question-item {
     display: flex;
     align-items: flex-end;
     gap: 12px;
     background: #FFFFFF;
     padding: 16px;
     border-radius: 16px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     border: 1px solid #F0F0F0;
     transition: transform 0.2s, box-shadow 0.2s;
     flex-wrap: wrap;
     flex-direction: row;
 }

 .question-item:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 }

 .question-icon {
     font-size: 24px;
     background: #F0F7FF;
     width: 48px;
     height: 48px;
     border-radius: 12px;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-shrink: 0;
 }

 .question-content {
     flex: 1;
     display: flex;
     flex-direction: column;
     gap: 8px;
     min-width: 150px;
 }

 .question-label {
     font-weight: 600;
     font-size: 22px;
     color: #333;
 }

 .question-input {
     padding: 10px 12px;
     border: 1px solid #E0E0E0;
     border-radius: 8px;
     font-size: 14px;
     width: 100%;
     background: #FAFAFA;
     transition: border-color 0.2s;
 }

 .question-input:focus {
     border-color: #2787F5;
     outline: none;
     background: #FFFFFF;
 }

 .question-send-btn {
     background: #2787F5;
     color: white;
     border: none;
     padding: 10px 20px;
     border-radius: 10px;
     font-weight: 600;
     font-size: 14px;
     cursor: pointer;
     transition: background 0.2s, transform 0.1s;
     height: fit-content;
     white-space: nowrap;
 }

 .question-send-btn:hover {
     background: #1A73E8;
 }

 .question-send-btn:active {
     transform: scale(0.96);
 }

 @media (max-width: 480px) {
     .question-send-btn {
         padding: 12px;
     }

     .question-item {
         padding: 12px;
         gap: 16px;
     }
 }

 .empty-state {
     text-align: center;
     color: #1F2937;
     font-weight: 700;
     font-size: 20px;
     padding: 20px;
 }