:root {
    --theme-primary: #10b981;
    --theme-primary-rgb: 16, 185, 129;
    --theme-soft: #6ee7b7;
    --theme-soft-rgb: 110, 231, 183;
    --theme-mid: #34d399;
    --theme-mid-rgb: 52, 211, 153;
    --theme-deep: #062c22;
    --theme-deep-rgb: 6, 44, 34;
    --theme-bg: #07100f;
    --theme-accent: #fbbf24;
    --theme-accent-rgb: 251, 191, 36;
    --theme-panel-border: rgba(var(--theme-soft-rgb), 0.22);
    --theme-panel-bg: rgba(var(--theme-primary-rgb), 0.12);
    --theme-accent-bg: rgba(var(--theme-accent-rgb), 0.16);
}

[class*="text-emerald-"] {
    color: var(--theme-soft) !important;
}

[class*="text-amber-"],
[class*="text-gold"] {
    color: var(--theme-accent) !important;
}

[class*="bg-emerald-"] {
    background-color: var(--theme-panel-bg) !important;
}

[class*="bg-amber-"] {
    background-color: var(--theme-accent-bg) !important;
}

[class*="border-emerald-"] {
    border-color: var(--theme-panel-border) !important;
}

[class*="border-amber-"],
[class*="border-gold"] {
    border-color: rgba(var(--theme-accent-rgb), 0.28) !important;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(var(--theme-primary-rgb), 0.16), transparent 28%),
        radial-gradient(circle at 85% 85%, rgba(var(--theme-accent-rgb), 0.1), transparent 30%),
        var(--theme-bg);
    color: #f3f4f6;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

.noise-overlay {
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.home-shell {
    background: linear-gradient(
        180deg,
        rgba(var(--theme-deep-rgb), 0.1),
        rgba(var(--theme-primary-rgb), 0.1),
        rgba(var(--theme-deep-rgb), 0.1),
        var(--tw-gradient-to)
    );
    overflow-x: hidden;
    max-width: 100%;
}

.home-shell > div {
    max-width: min(28rem, 100%);
    box-sizing: border-box;
}

.hero-block {
    position: relative;
    overflow: hidden;
}

.glass-panel,
.battle-header {
    background: linear-gradient(
        135deg,
        rgba(var(--theme-deep-rgb), 0.9),
        rgba(var(--theme-deep-rgb), 0.72)
    );
    border: 1px solid rgba(var(--theme-soft-rgb), 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.battle-header {
    border-top: 0;
    border-radius: 0 0 22px 22px;
}

.level-badge {
    gap: 2px;
}

.level-badge-label {
    position: relative;
    z-index: 1;
    margin-top: -14px;
    line-height: 1.1;
    padding-top: 1px;
    padding-bottom: 1px;
}

.level-badge > div {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-mid)) !important;
    border-color: var(--theme-accent) !important;
}

.brand-orb {
    color: var(--theme-deep);
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-mid));
    box-shadow: 0 8px 32px rgba(var(--theme-mid-rgb), 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.hero-glow {
    background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.2), transparent 67%);
    filter: blur(15px);
}

.hero-gradient-text {
    color: transparent;
    background: linear-gradient(90deg, var(--theme-soft), var(--theme-accent));
    background-clip: text;
    -webkit-background-clip: text;
}

.metric-card {
    display: flex;
    min-height: 66px;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-soft-rgb), 0.1);
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        rgba(var(--theme-deep-rgb), 0.82),
        rgba(var(--theme-deep-rgb), 0.58)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.metric-card strong {
    color: #ecfdf5;
    font-size: 1.1rem;
}

.metric-label {
    color: #6b807b;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.habit-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle at 5% 50%, rgba(var(--theme-accent-rgb), 0.16), transparent 34%),
        linear-gradient(135deg, rgba(var(--theme-deep-rgb), 0.88), rgba(var(--theme-deep-rgb), 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    box-sizing: border-box;
}

.habit-flame {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 14px;
    background: rgba(var(--theme-accent-rgb), 0.12);
    box-shadow: 0 0 22px rgba(var(--theme-accent-rgb), 0.12);
}

.habit-summary-card {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border: 1px solid rgba(var(--theme-soft-rgb), 0.1);
    border-radius: 13px;
    background: rgba(var(--theme-deep-rgb), 0.68);
}

.habit-summary-card span {
    color: #6b807b;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.habit-summary-card strong {
    margin-top: 2px;
    color: #d1fae5;
    font-size: 0.9rem;
}

.habit-summary-card strong span {
    color: inherit;
    font-size: inherit;
    letter-spacing: normal;
}

.habit-calendar {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
}

.habit-day {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    background: rgba(75, 85, 99, 0.18);
}

.habit-day-active {
    border-color: rgba(var(--theme-mid-rgb), 0.22);
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.75), rgba(var(--theme-accent-rgb), 0.5));
    box-shadow: 0 0 9px rgba(var(--theme-primary-rgb), 0.12);
}

.habit-day-today {
    outline: 1px solid rgba(251, 191, 36, 0.7);
    outline-offset: 1px;
}

.achievement-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(var(--theme-soft-rgb), 0.1);
    border-radius: 14px;
    background: rgba(3, 15, 15, 0.58);
}

.achievement-item-unlocked {
    border-color: rgba(251, 191, 36, 0.2);
    background: linear-gradient(
        135deg,
        rgba(var(--theme-accent-rgb), 0.14),
        rgba(var(--theme-deep-rgb), 0.74)
    );
}

.achievement-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(var(--theme-soft-rgb), 0.12);
    border-radius: 12px;
    color: var(--theme-soft);
    background: rgba(var(--theme-primary-rgb), 0.08);
}

.achievement-item-unlocked .achievement-icon {
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.12);
}

.achievement-toast {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: min(340px, calc(100% - 24px));
    max-width: calc(100vw - 24px);
    padding: 11px 13px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 16px;
    opacity: 1;
    background: linear-gradient(
        135deg,
        rgba(var(--theme-accent-rgb), 0.16),
        rgba(var(--theme-deep-rgb), 0.96)
    );
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    transform: translate(-50%, 0);
    transition: opacity 220ms ease, transform 220ms ease;
}

.achievement-toast-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -18px);
}

.achievement-toast-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #1c1917;
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-mid));
}

.zikir-choice {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 19px;
    color: white;
    text-align: left;
    background: linear-gradient(
        135deg,
        rgba(var(--theme-deep-rgb), 0.9),
        rgba(var(--theme-deep-rgb), 0.76)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.zikir-choice::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--choice-glow, rgba(var(--theme-primary-rgb), 0.08)));
    content: "";
    opacity: 0.6;
    pointer-events: none;
}

.zikir-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--theme-soft-rgb), 0.28);
    background: linear-gradient(
        135deg,
        rgba(var(--theme-primary-rgb), 0.18),
        rgba(var(--theme-deep-rgb), 0.88)
    );
}

.zikir-choice:active {
    transform: scale(0.985);
}

.zikir-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 1.05rem;
    background: var(--choice-bg, rgba(var(--theme-primary-rgb), 0.14));
}

.zikir-choice-content,
.zikir-choice-arrow {
    position: relative;
    z-index: 1;
}

.zikir-progress-track {
    height: 3px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.zikir-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--theme-mid), var(--theme-accent));
}

.home-action,
.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--theme-soft-rgb), 0.12);
    color: var(--theme-soft);
    background: rgba(var(--theme-deep-rgb), 0.88);
    backdrop-filter: blur(18px);
    transition: background 160ms ease, transform 160ms ease;
}

.home-action {
    min-height: 48px;
    flex-direction: column;
    gap: 2px;
    border-radius: 15px;
    font-size: 0.55rem;
    font-weight: 700;
}

.home-action:hover,
.icon-button:hover {
    background: rgba(var(--theme-primary-rgb), 0.16);
}

.home-action:active,
.icon-button:active {
    transform: scale(0.96);
}

.icon-button {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 12px;
}

.battle-main::before {
    position: absolute;
    inset: 5% 12% 42%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(var(--theme-primary-rgb), 0.08);
    content: "";
    filter: blur(45px);
}

.battle-status-card,
.recitation-card {
    background: linear-gradient(
        145deg,
        rgba(var(--theme-deep-rgb), 0.9),
        rgba(var(--theme-deep-rgb), 0.76)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 50px rgba(0, 0, 0, 0.16);
}

#expBar,
#nextStageBtn,
#confirmStartBattleBtn,
#closeShopBtn2,
#closeStatsBtn2,
#understoodBtn {
    background-image: linear-gradient(90deg, var(--theme-primary), var(--theme-mid)) !important;
}

#shopModal > div,
#statsModal > div,
#infoModal > div {
    border-color: var(--theme-panel-border) !important;
}

#victoryModal > div,
#startBattleModal > div {
    border-color: rgba(var(--theme-accent-rgb), 0.28) !important;
}

#homeScreen .glass-panel,
#battleScreen .glass-panel,
#shopModal section > h4,
#statsTitle,
#shopTitle,
#victoryTitle,
#infoTitle,
#startBattleTitle {
    color: var(--theme-accent) !important;
}

#karaokeStatusBadge,
#tumaninahWarning,
#homeCurrentStreak,
#homeLongestStreak,
#rewardPoints,
#rewardExp,
#menuNurPoints,
#hpText {
    color: var(--theme-accent) !important;
}

.monster-stage {
    overflow: hidden;
}

.monster-stage::before {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(var(--theme-soft-rgb), 0.09);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 22px rgba(var(--theme-primary-rgb), 0.025),
        0 0 0 44px rgba(var(--theme-primary-rgb), 0.018);
}

.recitation-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(transparent, var(--theme-mid), var(--theme-accent), transparent);
    content: "";
}

.tasbih-modern {
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        0 0 0 7px rgba(var(--theme-primary-rgb), 0.055),
        0 18px 45px rgba(0, 0, 0, 0.32),
        inset 0 2px 3px rgba(255, 255, 255, 0.18);
}

.tasbih-modern::after {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.35), transparent 20%),
        radial-gradient(circle at 70% 76%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 42%, rgba(0, 0, 0, 0.18));
    content: "";
    opacity: 0.95;
    pointer-events: none;
}

.tasbih-modern::before {
    position: absolute;
    inset: -10px;
    z-index: -1;
    border: 1px dashed rgba(251, 191, 36, 0.22);
    border-radius: 50%;
    content: "";
    animation: slow-spin 18s linear infinite;
}

.tasbih-inner-ring {
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.22),
        inset 0 -8px 16px rgba(0, 0, 0, 0.2);
}

.tasbih-modern[data-skin="kokka"]::after {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(120, 53, 15, 0.2) 0 6px,
            rgba(217, 119, 6, 0.08) 6px 12px
        ),
        radial-gradient(circle at 30% 24%, rgba(255, 248, 220, 0.24), transparent 20%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 44%, rgba(60, 24, 6, 0.18));
}

.tasbih-modern[data-skin="kristal"]::after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 18%, transparent 18% 34%, rgba(255, 255, 255, 0.1) 34% 45%, transparent 45%),
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.4), transparent 18%),
        linear-gradient(145deg, rgba(224, 242, 254, 0.2), transparent 48%, rgba(30, 64, 175, 0.2));
}

.tasbih-modern[data-skin="emas"]::after {
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 251, 235, 0.42), transparent 18%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.24), transparent 36%, rgba(146, 64, 14, 0.18) 76%),
        repeating-linear-gradient(
            120deg,
            rgba(251, 191, 36, 0.08) 0 8px,
            rgba(255, 255, 255, 0.14) 8px 16px
        );
}

.tasbih-modern[data-skin="obsidian"]::after {
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.18), transparent 18%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 36%, rgba(15, 23, 42, 0.34));
}

.tasbih-modern[data-skin="mutiara"]::after {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.46), transparent 18%),
        radial-gradient(circle at 68% 72%, rgba(244, 114, 182, 0.12), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%, rgba(217, 70, 239, 0.08));
}

.tasbih-modern[data-skin="aurora"]::after {
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.18), transparent 30%, rgba(167, 139, 250, 0.16) 55%, transparent 75%),
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.36), transparent 18%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%, rgba(17, 24, 39, 0.2));
}

.tasbih-modern[data-skin="emerald"]::after {
    animation: skin-glow 4.5s ease-in-out infinite;
}

.tasbih-modern[data-skin="kokka"]::after {
    animation: skin-breathe 5s ease-in-out infinite;
}

.tasbih-modern[data-skin="kristal"]::after {
    animation: skin-shimmer 3.2s ease-in-out infinite;
}

.tasbih-modern[data-skin="emas"]::after {
    animation: skin-shimmer-gold 2.8s ease-in-out infinite;
}

.tasbih-modern[data-skin="obsidian"]::after {
    animation: skin-pulse-dark 4s ease-in-out infinite;
}

.tasbih-modern[data-skin="mutiara"]::after {
    animation: skin-pearl 4.8s ease-in-out infinite;
}

.tasbih-modern[data-skin="aurora"]::after {
    animation: skin-aurora-drift 6s ease-in-out infinite;
}

.tasbih-modern[data-skin="aurora"]::before {
    animation: slow-spin 24s linear infinite, skin-aurora-orbit 8s ease-in-out infinite;
}

.tasbih-modern[data-skin="kristal"]::before {
    border-style: solid;
    border-color: rgba(125, 211, 252, 0.25);
    animation: slow-spin 14s linear infinite reverse;
}

.tasbih-modern[data-skin="emas"]::before {
    border-color: rgba(251, 191, 36, 0.35);
    animation: slow-spin 12s linear infinite;
}

.skin-preview {
    position: relative;
    overflow: hidden;
}

.skin-preview::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.skin-preview[data-skin="kristal"]::after,
.skin-preview[data-skin="emas"]::after {
    animation: skin-shimmer 3s ease-in-out infinite;
}

.skin-preview[data-skin="aurora"]::after {
    animation: skin-aurora-drift 5s ease-in-out infinite;
}

.weekly-boss-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 19px;
    color: white;
    text-align: left;
    background:
        radial-gradient(circle at 90% 20%, rgba(167, 139, 250, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(var(--theme-deep-rgb), 0.92), rgba(var(--theme-deep-rgb), 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 30px rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, border-color 180ms ease;
}

.weekly-boss-card:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.36);
}

.weekly-boss-card-done {
    opacity: 0.82;
    cursor: default;
}

.weekly-boss-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 2px 7px;
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 999px;
    color: #ddd6fe;
    font-size: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.weekly-boss-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 14px;
    color: #c4b5fd;
    font-size: 1.1rem;
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.12);
    animation: skin-aurora-orbit 5s ease-in-out infinite;
}

.weekly-boss-progress-track {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.weekly-boss-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #fbbf24);
    transition: width 0.25s ease;
}

.weekly-boss-stats {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.voice-transcript {
    min-height: 1rem;
    transition: color 180ms ease, opacity 180ms ease;
}

.voice-transcript-listening {
    color: rgba(var(--theme-soft-rgb), 0.72);
}

.voice-transcript-match {
    color: var(--theme-accent);
}

@keyframes skin-glow {
    0%, 100% { opacity: 0.88; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes skin-breathe {
    0%, 100% { opacity: 0.82; filter: brightness(0.96); }
    50% { opacity: 1; filter: brightness(1.08); }
}

@keyframes skin-shimmer {
    0%, 100% { transform: translateX(-8%) rotate(0deg); opacity: 0.85; }
    50% { transform: translateX(8%) rotate(2deg); opacity: 1; }
}

@keyframes skin-shimmer-gold {
    0%, 100% { transform: translateX(-10%) scale(1); opacity: 0.9; }
    50% { transform: translateX(10%) scale(1.03); opacity: 1; }
}

@keyframes skin-pulse-dark {
    0%, 100% { opacity: 0.75; box-shadow: inset 0 0 0 rgba(148, 163, 184, 0); }
    50% { opacity: 0.95; box-shadow: inset 0 0 18px rgba(148, 163, 184, 0.08); }
}

@keyframes skin-pearl {
    0%, 100% { opacity: 0.9; filter: hue-rotate(0deg); }
    50% { opacity: 1; filter: hue-rotate(8deg); }
}

@keyframes skin-aurora-drift {
    0%, 100% { transform: translate3d(-4%, -2%, 0) rotate(0deg); opacity: 0.88; }
    50% { transform: translate3d(4%, 2%, 0) rotate(3deg); opacity: 1; }
}

@keyframes skin-aurora-orbit {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.04); }
}

@keyframes slow-spin {
    to { transform: rotate(360deg); }
}

.font-arabic {
    font-family: "Amiri", serif;
}

.karaoke-arabic {
    background: linear-gradient(to left, #fbbf24 var(--progress, 0%), #4b5563 var(--progress, 0%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    direction: rtl;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: --progress 0.05s linear;
}

.glow-gold {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4);
}

.glow-emerald {
    box-shadow: 0 0 25px rgba(var(--theme-primary-rgb), 0.4);
}

.text-glow {
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.monster-shake {
    animation: shake 0.25s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0) scale(0.98); }
    20%, 80% { transform: translate3d(4px, 0, 0) scale(1.02); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0) scale(0.96); }
    40%, 60% { transform: translate3d(6px, 0, 0) scale(1.02); }
}

.pulse-ready {
    animation: pulse-glow 1s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    from {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(var(--theme-primary-rgb), 0.5);
    }
    to {
        transform: scale(1.04);
        box-shadow: 0 0 30px rgba(var(--theme-accent-rgb), 0.8);
    }
}

.weekly-bar {
    min-height: 4px;
    transition: height 0.3s ease;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #0b1319;
}

::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 4px;
}

.theme-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--swatch-from), var(--swatch-to));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


#arabicText{
    font-size: 1.5rem;
}