.header-section {
            display: flex; align-items: center; justify-content: center;
            gap: 158px; margin-bottom: 14px; margin-left: 158px;
            width: 100%; flex-wrap: wrap;
        }
        .logo-box { animation: spin 6s linear infinite; transition: transform 0.3s ease; margin-left: -149px; }
        .logo-box:hover { animation-duration: 1.2s; transform: scale(1.05); }
        @keyframes spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
        .logo-box img { width: 96px; height: 149px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
        .app-title { display: flex; flex-direction: column; line-height: 1; text-align: center; margin-left: -131px; }
        .zeriab-text {
            font-family: 'Times New Roman', Times, serif; font-weight: normal; font-size: 3.15rem;
            color: #FFD966; letter-spacing: 3px; text-shadow: 0 2px 6px rgba(0,0,0,0.6);
            margin-left: 131px; margin-top: 18px; margin-bottom: -18px;
        }
        .flamenco-script { font-family: 'Great Vibes', cursive; font-size: 6.65rem; color: #FF3131; margin-top: -18px; margin-left: -26px; }
        .beat-box {
            background: #000; border: 4px solid #FFD966; border-radius: 21px;
            padding: 9px 9px; margin-bottom: 35px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,215,0,0.4);
            display: inline-block; justify-content: center; align-items: center;
            width: auto; min-width: 50px; max-width: 100%;
            transition: all 0.2s ease; will-change: contents; transform: translateZ(0);
        }
        .beat-visualization { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; transition: all 0.2s ease; will-change: contents; transform: translateZ(0); }
        .beat-light {
            width: 58px; height: 84px; border-radius: 14px;
            background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
            transition: all 0.06s ease; will-change: transform; transform: translateZ(0);
        }
        [data-i18n], .rhythm-name, .bpm-number, .tempo-marking-inside,
        .setting-value, .shift-title-clickable span, .timer-display-new,
        .zeriab-text, .flamenco-script { transition: none; }
        .rhythm-name { min-width: 230px; max-width: 265px; overflow: hidden; text-overflow: ellipsis; }
        .tempo-marking-inside { min-width: 158px; }
        #beatModeDisplayValue { min-width: 150px; }
        #toneDisplayValue { min-width: 123px; }
        .lang-dropdown { transition: opacity 0.15s ease, transform 0.15s ease; }
        .beat-light.accent { background: radial-gradient(circle at 30% 30%, #FF7676, #B32D2D); }
        .beat-light.active {
            transform: scale(1.1) translateZ(0);
            box-shadow: 0 0 25px rgba(255,217,102,0.9);
            background: #FFD966;
        }
        .icon-btn {
            background: radial-gradient(circle at 5%, #153c5c 10%, #138ffa 80%);
            border: 0.4px solid #FFD966; border-radius: 70px;
            width: 91px; height: 91px;
            display: flex; align-items: center; justify-content: center;
            font-size: 2.8rem; color: #FFF; cursor: pointer;
            transition: all 0.2s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            margin-top: 18px; margin-bottom: -9px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }
        .icon-btn:hover { transform: scale(1.04); background: #4d3a6e; box-shadow: 0 0 12px rgba(255,217,102,0.6); color: #FFF0A0; }
        .bpm-screen {
            background: #000; border: 4px solid #FFD966; border-radius: 25px;
            width: 100%; height: 228px; text-align: center;
            box-shadow: inset 0 0 8px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
            padding: 21px 14px; margin-top: -14px;
        }
        #saveSessionFloppyBtn, #favoritesBtn, #shareProgressBtn, #favoritePresetsStarBtn {
            width: 61px !important; height: 61px !important; font-size: 2.1rem !important;
        }
        #bpmUpIcon, #bpmDownIcon {
            width: 53px !important; height: 53px !important; font-size: 3.5rem !important;
            display: flex !important; align-items: center !important; justify-content: center !important;
            background: radial-gradient(circle at 5%, #153c5c 10%, #138ffa 80%) !important;
            border: 0.4px solid #FFD966 !important; border-radius: 70px !important;
            cursor: pointer !important; transition: all 0.2s ease !important;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important; margin-top: 35px;
            touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
        }
        .bpmpIcon-playPauseTriangleBtn-bpmDownIcon-row {
            display: flex; flex-direction: row; align-items: center; justify-content: center;
            gap: 28px; margin-left: 275px;
        }
        #bpmUpIcon:hover, #bpmDownIcon:hover {
            transform: scale(1.04) !important; background: #4d3a6e !important;
            box-shadow: 0 0 12px rgba(255,217,102,0.6) !important; color: #FFF0A0 !important;
        }
        #playPauseTriangleBtn {
            width: 88px !important; height: 88px !important; margin-bottom: 14px; margin-top: 35px;
            font-size: 3.5rem !important; position: relative;
            background: radial-gradient(circle at 35% 35%, #00ffa1, #0f0047);
            border: none; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: #5937bc; cursor: pointer; transition: all 0.2s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.4); z-index: 1;
            touch-action: manipulation; -webkit-tap-highlight-color: transparent;
        }
        #playPauseTriangleBtn::before {
            content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
            border-radius: 50%; background: transparent; border: 5px solid #FFD966;
            box-shadow: 0 0 8px rgba(255,217,102,0.5); transition: all 0.2s ease; z-index: -1;
        }
        #playPauseTriangleBtn::after {
            content: ''; position: absolute; top: -21px; left: -21px; right: -21px; bottom: -21px;
            border-radius: 50%; background: transparent; border: 18px solid #978551;
            box-shadow: 0 0 5px rgba(255,165,0,0.3); transition: all 0.2s ease; z-index: -2;
        }
        #playPauseTriangleBtn:hover::before { border-color: #FFA500; box-shadow: 0 0 15px rgba(255,165,0,0.8); transform: scale(1.02); }
        #playPauseTriangleBtn:hover::after { border-color: #FFD966; box-shadow: 0 0 12px rgba(255,217,102,0.6); }
        #playPauseTriangleBtn:active { transform: scale(0.97); }
        .tv-frames-row { display: flex; flex-direction: row; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 9px; margin-top: -9px; }
        #rhythmTv { background: #2c2c2c; border-radius: 28px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3); width: 262px; display: flex; flex-direction: column; margin-bottom: 18px; }
        #rhythmTv .tv-frame-inner { height: 158px; background: #0a0a0a; border: 1px solid #555; border-radius: 14px; padding: 9px; align-items: center; flex-direction: column; justify-content: center; }
        #bpmTv { background: #2c2c2c; border-radius: 28px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3); width: 245px; display: flex; flex-direction: column; margin-bottom: 18px; }
        #bpmTv .tv-frame-inner { height: 158px; background: #0a0a0a; border: 1px solid #555; border-radius: 14px; padding: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        #timerTv { background: #2c2c2c; border-radius: 28px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3); width: 262px; display: flex; flex-direction: column; margin-bottom: 18px; }
        #timerTv .tv-frame-inner { height: 158px; max-width: 262px; background: #0a0a0a; border: 1px solid #555; border-radius: 14px; padding: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .rhythm-label-top, .bpm-label-top, .timer-label-top { font-size: 1.2rem; letter-spacing: 3px; color: #FFD966; text-transform: uppercase; margin-bottom: 5px; font-weight: normal; text-align: center; }
        .bpm-number { font-size: 6.8rem; font-weight: 600; color: #B0FFB0; text-align: center; outline: none; font-family: 'Montserrat', sans-serif; caret-color: #FFD966; line-height: 1.1; }
        .tempo-marking-inside { font-size: 1.4rem; font-style: italic; color: #B0FFB0; border-radius: 35px; padding: 5px 14px; font-weight: 500; background: rgba(0,0,0,0.4); margin-top: -18px; }
        .rhythm-name { font-size: 2.8rem; font-weight: normal; color: #B0FFB0; font-family: 'Montserrat', sans-serif; cursor: pointer; transition: all 0.15s ease; padding: 7px 14px; border-radius: 10px; }
        .rhythm-name:hover { background: rgba(255,217,102,0.15); color: #ffd966; transform: scale(1.02); }
        .rhythm-name[data-tooltip]:before { white-space: normal; width: 245px; text-align: center; }
        .setting-value[data-tooltip]:before { white-space: normal; width: 245px; text-align: center; }
        #bpmUpIcon, #bpmDownIcon, #playPauseTriangleBtn, .menu-dots-btn, .icon-btn { position: relative; }
        #bpmUpIcon[title], #bpmDownIcon[title], #playPauseTriangleBtn[title], .menu-dots-btn[title], .icon-btn[title] { pointer-events: auto; }
        .setting-row { display: flex; align-items: center; margin-top: 9px; text-align: justify; cursor: pointer; border-radius: 10px; transition: all 0.15s ease; }
        .setting-row:hover { background: rgba(255,217,102,0.15); }
        .setting-icon { font-size: 1.2rem; color: #ffd966; width: 35px; }
        .setting-label { font-size: 1.05rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; min-width: 78px; }
        .setting-value { font-size: 1.4rem; color: #B0FFB0; font-weight: 500; cursor: pointer; border-radius: 7px; transition: all 0.15s ease; }
        .setting-value:hover { background: rgba(255,217,102,0.15); color: #FFD966; }
        .timer-display-new { font-size: 3.5rem; font-weight: normal; font-family: 'Montserrat', sans-serif; letter-spacing: 3px; color: #B0FFB0; }
        .timer-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
        .timer-wrapper .icon-btn#resetTimerIconBtn { width: 44px; height: 44px; font-size: 1.75rem; margin-top: 14px; background: radial-gradient(circle at 30%, #2c1a4e, #1f0e3a); cursor: pointer; }
        .timer-wrapper .icon-btn#resetTimerIconBtn:hover { transform: scale(1.08); box-shadow: 0 0 10px rgba(255,217,102,0.7); }
       

        .confirm-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgb(0 0 0 / 68%); display: none; justify-content: center; align-items: center; z-index: 10000; overflow: hidden; }
        .confirm-modal-overlay.show { display: flex; }
        .confirm-modal { background: linear-gradient(145deg, #2f1a55, #1f0e3a); border: 4px solid #FFD966; border-radius: 28px; padding: 35px; width: 420px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
        .confirm-modal-title { font-size: 1.6rem; color: #FFD966; margin-bottom: 21px; }
        .confirm-modal-message { font-size: 1.2rem; color: #FFF3E0; margin-bottom: 35px; line-height: 1.4; }
        .confirm-modal-buttons { display: flex; gap: 21px; justify-content: center; }
        .confirm-modal-btn { padding: 8px 20px; border-radius: 42px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.2s ease; border: none; touch-action: manipulation; }
        .confirm-modal-btn-yes { background: radial-gradient(circle at 30%, #4CAF50, #2E7D32); color: white; }
        .confirm-modal-btn-yes:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(76,175,80,0.6); }
        .confirm-modal-btn-no { background: radial-gradient(circle at 30%, #8B2a2a, #5a0000); color: white; }
        .confirm-modal-btn-no:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255,68,68,0.4); }
        .shift-controls-row { display: flex; justify-content: center; margin-left: 35px; }
        .shift-title-clickable {
            cursor: pointer; min-height: 49px;
            background: radial-gradient(circle at 5%, #ef0a0a 50%, #B32D2D 100%);
            border: 0.4px solid #FFD966; border-radius: 9px;
            transition: all 0.2s ease; padding: 5px 14px;
            font-size: 1.3rem; font-weight: normal; color: #FFF;
            display: inline-flex; align-items: center; justify-content: center; gap: 10px;
            margin: 14px auto 0 auto; width: fit-content; max-width: 95%;
            white-space: normal; word-break: keep-all; flex-wrap: nowrap; text-align: center;
            touch-action: manipulation;
        }
        .shift-title-clickable i { flex-shrink: 0; }
        .shift-title-clickable span:first-of-type { white-space: normal; word-break: normal; display: inline-block; }
        .shift-status-badge { font-size: 1.23rem; padding: 4px 10px; border-radius: 14px; background: #000; color: #fff; font-weight: bold; transition: all 0.2s ease; flex-shrink: 0; margin-left: auto; }
        .shift-title-clickable.active .shift-status-badge { color: #6eff6e; text-shadow: 0 0 3px #4CAF50; }
        .shift-title-clickable:hover { background: rgba(255,217,102,0.2); transform: scale(1.02); }
        .shift-title-clickable.active { background: radial-gradient(circle at 5%, #4CAF50, #2E7D32 50%, #4CAF50 100%); border: 0.4px solid #B0FFB0; box-shadow: 0 0 15px rgba(76,175,80,0.6), inset 0 0 5px rgba(255,255,255,0.2); color: #FFF; text-shadow: 0 0 3px rgba(0,0,0,0.5); transform: scale(1.02); }
        .shift-title-clickable.active i { color: #B0FFB0; text-shadow: 0 0 5px #4CAF50; }
        .shift-power-switch { cursor: pointer; flex-shrink: 0; }
        .toggle-switch { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
        .switch { position: relative; display: inline-block; width: 40px; height: 20px; margin-right: -30px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #813f3f; transition: 0.3s; border-radius: 24px; border: 1.5px solid #ed061e; }
        .slider:before { position: absolute; content: ""; height: 15px; width: 15px; left: 2px; bottom: 2px; background-color: #f50b4a; transition: 0.3s; border-radius: 50%; }
        input:checked+.slider { background-color: #308732; border-color: #4CAF50; }
        input:checked+.slider:before { background-color: #0aef59; transform: translateX(26px); margin-left: -3px; }
        .toggle-label { font-size: 0.7rem; color: #FFD966; text-transform: uppercase; letter-spacing: 1px; }
        .switch:hover .slider { opacity: 0.85; }
        .switch:hover input:checked+.slider { background-color: #45a049; }
        .modal-shift-tv-frame { background: linear-gradient(145deg, #1a1a2e, #0f0f1a); border-radius: 28px; margin-bottom: 35px; border: 3px solid #FFD966; box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3); }
        .modal-tv-set { background: #0a0a0a; border-radius: 21px; padding: 14px; }
        .modal-tv-screen { background: #000; border-radius: 14px; padding: 4px; box-shadow: inset 0 0 20px rgba(0,255,0,0.1), 0 0 10px rgb(219 209 18 / 99%); width: 100%; min-width: 420px; max-width: 100%; }
        .modal-shift-label { text-align: center; font-size: 1.14rem; letter-spacing: 3px; color: #FFD966; text-transform: uppercase; margin-bottom: 18px; font-weight: bold; }
        .modal-shift-tv-values { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
        .modal-direction-toggle { background: #1f1335; border: 3px solid #FFD966; border-radius: 50%; width: 49px; height: 49px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s ease; font-size: 2.1rem; font-weight: bold; color: #B0FFB0; touch-action: manipulation; }
        .modal-direction-toggle:hover { background: #FFD966; transform: scale(1.05); }
        .modal-direction-toggle:hover #modalMiniToggleSign { color: #2E0C4A; }
        #modalMiniToggleSign.positive { color: #B0FFB0; }
        #modalMiniToggleSign.negative { color: #FF7676; }
        .modal-shift-item-single { align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: rgba(0,0,0,0.5); padding: 14px 26px; border-radius: 35px; border: 1px solid rgba(255,217,102,0.3); }
        .modal-shift-value-num { font-size: 2.1rem; font-weight: bold; color: #B0FFB0; font-family: 'Montserrat', monospace; }
        .modal-shift-value-unit { font-size: 0.97rem; color: #FFD966; text-transform: uppercase; }
        .modal-value-divider { color: #FFD966; font-size: 1.58rem; font-weight: bold; }
        .modal-shift-status { text-align: center; font-size: 1.23rem; padding-top: 14px; border-top: 1px solid rgba(255,217,102,0.2); color: #f50b4a; font-weight: bold; letter-spacing: 1px; }
        .modal-shift-status.active { color: #B0FFB0; animation: pulse-green 1s infinite; }
        @keyframes pulse-green { 0%,100% { text-shadow: 0 0 2px #B0FFB0; } 50% { text-shadow: 0 0 8px #B0FFB0; } }
        .rhythm-row { display: flex; align-items: center; justify-content: center; gap: 17px; flex-wrap: wrap; margin: 0 auto; width: 100%; }
        .control-panel { width: 100%; background: linear-gradient(125deg, #1f3a7a, #102252); border: 1.5px solid #FFD966; border-radius: 25px; padding: 21px 9px; text-align: center; }
        .dropdown-menu, .sound-dropdown, .beat-dropdown, .fav-presets-dropdown {
            min-width: 365px; max-width: 450px;
            background: linear-gradient(145deg, #2c1a4e, #1f0e3a);
            border: 3px solid #FFD966; border-radius: 21px; z-index: 10000;
            display: none; box-shadow: 0 12px 28px rgba(0,0,0,0.9);
            overflow-y: auto; max-height: 450px; position: absolute;
        }
        html::-webkit-scrollbar { width: 12px; }
        html::-webkit-scrollbar-track { background: #1a0a2e; border-radius: 20px; overflow: hidden; }
        html::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FFD966, #FFA500); border-radius: 20px; border: 1px solid #1f1335; box-shadow: inset 0 0 6px rgba(255,217,102,0.5); min-height: 40px; }
        html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #FFE499, #FFB830); box-shadow: inset 0 0 10px rgba(255,217,102,0.9); }
        html { scrollbar-width: auto; scrollbar-color: #FFD966 #1a0a2e; }
        .fav-presets-dropdown::-webkit-scrollbar, .favorites-dropdown::-webkit-scrollbar, .share-dropdown::-webkit-scrollbar, .autoshift-modal::-webkit-scrollbar, .shift-presets-list::-webkit-scrollbar { width: 12px; }
        .fav-presets-dropdown::-webkit-scrollbar-track, .favorites-dropdown::-webkit-scrollbar-track, .share-dropdown::-webkit-scrollbar-track, .autoshift-modal::-webkit-scrollbar-track, .shift-presets-list::-webkit-scrollbar-track { background: #1a0a2e; border-radius: 20px; overflow: hidden; }
        .fav-presets-dropdown::-webkit-scrollbar-thumb, .favorites-dropdown::-webkit-scrollbar-thumb, .share-dropdown::-webkit-scrollbar-thumb, .autoshift-modal::-webkit-scrollbar-thumb, .shift-presets-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FFD966, #FFA500); border-radius: 20px; border: 1px solid #1f1335; box-shadow: inset 0 0 6px rgba(255,217,102,0.5); min-height: 40px; }
        .fav-presets-dropdown::-webkit-scrollbar-thumb:hover, .favorites-dropdown::-webkit-scrollbar-thumb:hover, .share-dropdown::-webkit-scrollbar-thumb:hover, .autoshift-modal::-webkit-scrollbar-thumb:hover, .shift-presets-list::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #FFE499, #FFB830); box-shadow: inset 0 0 10px rgba(255,217,102,0.9); }
        .dropdown-menu.show, .sound-dropdown.show, .beat-dropdown.show, .fav-presets-dropdown.show { display: block; }
        .dropdown-section { padding: 11px 21px; font-size: 1.23rem; font-weight: bold; color: #FFDB7E; background: rgba(0,0,0,0.7); border-bottom: 1px solid rgba(255,217,102,0.3); }
        .dropdown-item, .sound-item, .beat-item { padding: 14px 21px; color: #FFF3E0; cursor: pointer; font-size: 1.58rem; transition: 0.1s; border-bottom: 1px solid rgba(255,207,74,0.2); display: flex; align-items: center; justify-content: space-between; }
        .dropdown-item:hover, .sound-item:hover, .beat-item:hover { background: #FFCF6E; color: #2E0C4A; font-weight: bold; }
        .active-mode { background: #FFD966; color: #2E0C4A; font-weight: bold; border-left: 7px solid #FFA500; }
        .preset-fav-item { padding: 18px 21px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,207,74,0.2); cursor: pointer; }
        .preset-fav-item:hover { background: rgba(255,217,102,0.2); }
        .preset-fav-name small { font-size: 1.23rem; color: #88CCFF; display: block; }
        .preset-fav-delete, .preset-fav-edit { background: #3d2a5e; border-radius: 52px; width: 49px; height: 49px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
        .preset-fav-delete { border: 1px solid #FFB347; color: #FFB347; }
        .preset-fav-edit { border: 1px solid #88CCFF; color: #88CCFF; }
        .preset-fav-delete:hover { background: #FF4444; color: white; }
        .preset-fav-edit:hover { background: #88CCFF; color: #2E0C4A; }
        .autoshift-modal { background: #2f1a55; border: 4px solid #FFD966; border-radius: 25px; padding: 26px; position: relative; }
        .autoshift-header { display: flex; flex-direction: row; align-items: center; justify-content: center; position: relative; width: 100%; margin-bottom: 21px; gap: 26px; flex-wrap: wrap; }
        .autoshift-title { font-size: 2.1rem; font-weight: bold; color: #FFD966; margin: 0; white-space: nowrap; text-align: center; flex: 1; }
        .toggle-switch { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; right: 0; }
        .switch { position: relative; display: inline-block; width: 40px; height: 20px; flex-shrink: 0; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: -12px; right: 16px; bottom: 0; background-color: #813f3f; transition: 0.3s; border-radius: 10px; border: 1.5px solid #ed061e; }
        .slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: #f50b4a; transition: 0.3s; border-radius: 50%; }
        input:checked+.slider { background-color: #308732; border-color: #4CAF50; }
        input:checked+.slider:before { background-color: #0aef59; transform: translateX(20px); }
        .toggle-label { font-size: 0.7rem; color: #FFD966; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
        .autoshift-title { font-size: 2.1rem; font-weight: bold; color: #FFD966; margin: 0; }
        .autoshift-field { text-align: center; width: 100%; margin: 21px 0; }
        .close-autoshift { background: #3d2a5e; border: 3px solid #FFD966; border-radius: 56px; padding: 11px 21px; color: #FFD966; cursor: pointer; font-size: 1.23rem; }
        .autoshift-label { font-size: 1.23rem; color: #FFD966; margin-bottom: 7px; text-align: left !important; display: block; width: 100%; padding-left: 9px; }
        .autoshift-input { width: 100%; max-width: none; padding: 18px 56px 18px 21px; background: #1f0e3a; border: 3px solid #FFBC4A; border-radius: 14px; color: #B0FFB0; text-align: left; font-size: 1.58rem; box-sizing: border-box; -moz-appearance: textfield; }
        .autoshift-input::-webkit-inner-spin-button, .autoshift-input::-webkit-outer-spin-button { opacity: 0; -webkit-appearance: none; margin: 0; }
        .autoshift-field { position: relative; }
        .spinner-wrapper { position: relative; display: block; width: 100%; }
        .spinner-buttons { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
        .spinner-btn { width: 42px; height: 32px; background: linear-gradient(135deg, #2d6b4a, #1a4a30); border: 1px solid #FFD966; border-radius: 7px; color: #FFD966; font-size: 1.23rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; touch-action: manipulation; }
        .spinner-btn:hover { background: #FFD966; color: #1a3a2a; transform: scale(1.05); }
        .spinner-btn:active { transform: scale(0.95); }
        .autoshift-fields-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; }
        .header-lang-switcher {
            display: flex; align-items: center; justify-content: center;
            background: radial-gradient(circle at 30% 35%, #f0e6c8, #c4a64a);
            border: 1.5px solid #FFD966; border-radius: 50%;
            width: 77px; height: 77px; cursor: pointer;
            transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            box-shadow: 0 6px 15px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.5);
            margin-right: -105px; position: relative; z-index: 100; overflow: hidden;
            touch-action: manipulation;
        }
        .flag-wrapper { width: 77px; height: 77px; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 35%, #f0e6c8, #c4a64a); }
        .header-lang-switcher .lang-flag-img { width: 92px; height: 62px; object-fit: cover; object-position: center; flex-shrink: 0; }
        .header-lang-switcher::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transition: left 0.5s ease; border-radius: 50%; pointer-events: none; z-index: 5; }
        .header-lang-switcher:hover::before { left: 100%; }
        .header-lang-switcher:hover { transform: scale(1.08); border-color: #FFA500; box-shadow: 0 8px 20px rgba(255,217,102,0.5), inset 0 2px 4px rgba(255,255,255,0.6); }
        .header-lang-switcher .lang-flag-img { width: 77px; height: 77px; object-fit: cover; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.3); transition: all 0.2s ease; margin-right: 2px; }
        .header-lang-switcher:hover .lang-flag-img { transform: scale(1.02); box-shadow: 0 3px 8px rgba(0,0,0,0.4); }
        .lang-flag-img { width: 56px; height: 42px; object-fit: cover; border-radius: 7px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); margin-right: 18px; }
        .lang-item { display: flex; align-items: center; gap: 21px; padding: 18px 28px; cursor: pointer; color: #FFF3E0; font-size: 1.58rem; transition: all 0.15s ease; border-bottom: 1px solid rgba(255,217,102,0.1); touch-action: manipulation; }
        .lang-item:last-child { border-bottom: none; }
        .lang-item:hover { background: rgba(255,217,102,0.2); padding-left: 35px; color: #FFD966; }
        .lang-item .lang-name { flex: 1; font-weight: 500; }
        .lang-item.active-lang { background: rgba(255,217,102,0.3); border-left: 5px solid #FFD966; color: #FFD966; }
        .lang-dropdown {
            position: fixed;
            background: linear-gradient(145deg, #2c1a4e, #1f0e3a);
            border: 3px solid #FFD966; border-radius: 28px;
            padding: 14px 0; z-index: 10001;
            min-width: 300px; max-width: 340px;
            max-height: 480px; overflow-y: auto;
            box-shadow: 0 12px 28px rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
        }
        .lang-dropdown::-webkit-scrollbar { width: 8px; }
        .lang-dropdown::-webkit-scrollbar-track { background: #1a0a2e; border-radius: 10px; }
        .lang-dropdown::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FFD966, #FFA500); border-radius: 10px; border: 1px solid #1f1335; }
        .lang-dropdown::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #FFE499, #FFB830); }
        .lang-dropdown { scrollbar-width: thin; scrollbar-color: #FFD966 #1a0a2e; }
        .ok-autoshift-btn { background: #FFD966; color: #2E0C4A; border: none; border-radius: 56px; padding: 14px; font-weight: bold; cursor: pointer; margin-top: 35px; margin-bottom: 18px; width: 100%; touch-action: manipulation; font-size: 1.4rem; }
        .shift-preset-item { background: #2c1a4e; border: 1px solid #FFD966; border-radius: 14px; padding: 14px 18px; margin-bottom: 11px; cursor: pointer; position: relative; }
        .shift-preset-delete {
            position: absolute; top: 8px; right: 8px;
            width: 28px; height: 28px;
            background: #8B2a2a; border: 1px solid #FFB347;
            border-radius: 50%; color: #FFB347;
            cursor: pointer; display: flex;
            align-items: center; justify-content: center;
            font-size: 0.8rem; padding: 0;
            transition: all 0.15s ease;
            touch-action: manipulation;
        }
        .shift-preset-delete:hover { background: #c0392b; color: #fff; transform: scale(1.08); }
        .shift-preset-name { color: #FFD966; font-weight: bold; margin-bottom: 4px; padding-right: 34px; }
        .favorite-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-bottom: 1px solid rgba(255,217,102,0.3); color: #FFF3E0; }
        .delete-favorite-btn { background: #8B2a2a; border: 1px solid #FFB347; border-radius: 52px; width: 30px; height: 30px; cursor: pointer; color: #FFB347; display: flex; align-items: center; justify-content: center; }
        .favorites-header { display: flex; align-items: center; margin-bottom: 26px; gap: 26px; border-bottom: 3px solid #FFD966; }
        .favorites-title { font-size: 1.8rem; font-weight: bold; color: #FFD966; }
        .export-csv-btn { background: #329350; border: 1px solid #ffb347; border-radius: 9px; padding: 9px 11px; cursor: pointer; color: #FFF; margin-right: 9px; margin-bottom: 9px; transition: all 0.2s ease; font-size: 0.8rem; }
        .export-csv-btn:hover { background: #3a7e4a; transform: scale(1.02); box-shadow: 0 0 8px rgba(76,175,80,0.4); }
        .clear-all-btn { background: #8B2a2a; border: 1px solid #ffb347; border-radius: 9px; padding: 9px 11px; cursor: pointer; color: #FFF; margin-right: 9px; margin-bottom: 9px; transition: all 0.2s ease; font-size:0.8rem; }
        .clear-all-btn:hover { background: #aa3a3a; transform: scale(1.02); box-shadow: 0 0 8px rgba(255,68,68,0.4); }
        .favorites-modal-overlay, .share-modal-overlay, .autoshift-modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgb(0 0 0 / 68%); display: none;
            justify-content: center; align-items: center; z-index: 3000;
        }
        .favorites-modal-overlay.show, .share-modal-overlay.show, .autoshift-modal-overlay.show { display: flex; }
        .delete-popup { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: #15346f; border: 3px solid #f80000; border-radius: 28px; padding: 0; z-index: 10001; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
        .delete-popup.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
        .delete-popup-content { display: flex; align-items: center; gap: 21px; padding: 25px 35px; color: #FFF3E0; font-size: 1.58rem; white-space: nowrap; }
        .delete-popup-buttons { display: flex; gap: 14px; margin-left: 14px; }
        .delete-popup-btn { padding: 11px 25px; border-radius: 35px; border: none; cursor: pointer; font-size: 1.4rem; font-weight: bold; transition: all 0.2s ease; touch-action: manipulation; }
        .delete-popup-yes { background: #c0392b; color: white; }
        .delete-popup-yes:hover { background: #e74c3c; box-shadow: 0 0 10px rgba(255,68,68,0.5); }
        .delete-popup-no { background: #3d2a5e; color: #FFD966; border: 1px solid #FFD966; }
        .delete-popup-no:hover { background: #5a3a7e; }
        .favorites-dropdown, .share-dropdown { background: #2f1a55; border: 4px solid #FFD966; border-radius: 28px; width: 90%; max-width: 500px; padding: 28px; max-height: 80vh; overflow-y: auto; position: relative; }
        .close-modal-btn { position: absolute; top: 18px; right: 18px; background: #c7153d; border: 2px solid #FFD966; border-radius: 56px; width: 35px; height: 35px; cursor: pointer; color: #FFD966; display: flex; align-items: center; justify-content: center; touch-action: manipulation; font-size: 1.3rem; }
        .toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: linear-gradient(135deg, #C065FF, #7A3AD2); color: white; padding: 8px 8px; border-radius: 60px; transition: 0.25s; z-index: 10001; max-width: 90vw; text-align: center; font-size: 1.1rem; }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
        .simple-copyright { text-align: center; padding: 9px; color: #FFDA88; font-size: 1.1rem; width: 100%; max-width: 985px; margin-top: 28px; margin-bottom: -10px; }
        .footer-links { text-align: center; margin-top: 26px; padding-top: 4px; }
        .footer-links a { color: #FFD966; text-decoration: none; margin: 0 16px; font-size: 1.2rem; transition: all 0.2s ease; cursor: pointer; }
        .footer-links a:hover { color: #FFA500; text-decoration: underline; }
        .collapsible-menu { position: relative; display: inline-block; margin-bottom: -10px; }
        .menu-dots-btn { background: radial-gradient(circle at 5%, #153c5c 10%, #138ffa 80%); border: 0.4px solid #FFD966; border-radius: 70px; width: 61px; height: 61px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; color: #FFF; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.3); margin-top: 18px; margin-left: 185px; touch-action: manipulation; }
        .menu-dots-btn:hover { transform: scale(1.04); background: #4d3a6e; box-shadow: 0 0 12px rgba(255,217,102,0.6); }
        .action-stack { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgb(72 50 113 / 95%); backdrop-filter: blur(8px); border: 3px solid #FFD966; border-radius: 35px; padding: 18px; display: flex; flex-direction: column; gap: 18px; z-index: 2000; box-shadow: 0 10px 25px rgba(0,0,0,0.5); min-width: 105px; align-items: center; transition: opacity 0.2s, transform 0.2s; }
        .action-stack.hidden { display: none; }
        .action-stack .icon-btn { margin: 0 !important; width: 79px !important; height: 79px !important; font-size: 2.1rem !important; }
        body[lang="fa"] .main-screen, body[lang="fa"] .control-panel { direction: rtl; }
        .lang-item img { width: 49px !important; height: 37px !important; border-radius: 5px; margin-right: 18px; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
        #currentFlagIcon { width: 77px !important; height: 77px !important; object-fit: cover; border-radius: 50%; }

      