:root {
    /* Calm Dark Theme Palette */
    --bg-dark: #09090b;
    /* Zinc 950 - Deeper, calmer black */
    --bg-card: #18181b;
    /* Zinc 900 */
    --bg-card-hover: #27272a;
    /* Zinc 800 */

    /* Neon Accents - Comfortable & Clean */
    --primary: #818cf8;
    /* Soft Indigo */
    --primary-glow: rgba(129, 140, 248, 0.4);
    --primary-neon: 0 0 15px rgba(129, 140, 248, 0.6);

    --secondary: #c084fc;
    /* Soft Purple */
    --secondary-glow: rgba(192, 132, 252, 0.4);

    --accent-cyan: #22d3ee;
    /* Cyan Neon */

    --text-main: #f4f4f5;
    /* Zinc 100 */
    --text-muted: #a1a1aa;
    /* Zinc 400 */

    --green: #34d399;
    /* Emerald 400 */
    --red: #f87171;
    /* Red 400 */

    --glass: rgba(24, 24, 27, 0.65);
    /* More subtle glass */
    --glass-border: rgba(255, 255, 255, 0.06);
    --border-neon: 1px solid rgba(129, 140, 248, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-dark);
    /* Subtle moving gradient mesh */
    background-image:
        radial-gradient(circle at 15% 15%, rgba(129, 140, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(192, 132, 252, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 60%);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.3);
}

.subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.header-control {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.header-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.score-badge {
    border: 1px solid var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Main Layout */
#main-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 5rem;
    /* מקום לניווט למטה */
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.hidden {
    display: none !important;
}

/* Hero Card */
/* Hero Card */
.hero-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 1), rgba(20, 20, 24, 1));
    border-radius: 24px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    /* Neon Glow Border */
    border: 1px solid rgba(129, 140, 248, 0.2);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 10px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(129, 140, 248, 0.05);
    /* Inner faint glow */
}

.bg-icon {
    position: absolute;
    top: -30px;
    left: -30px;
    font-size: 12rem;
    opacity: 0.05;
    transform: rotate(15deg);
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.btn-hero {
    background: var(--primary);
    border: none;
    color: #000;
    /* Contrast for light primary */
    padding: 0.9rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.4);
    /* Neon Button */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.6);
    background: #a5b4fc;
}

/* Prayer List */
.title-section {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.grid-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prayer-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prayer-item:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(129, 140, 248, 0.5);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px -10px rgba(129, 140, 248, 0.15);
}

.prayer-item:active {
    transform: scale(0.98);
}

.prayer-icon {
    background: rgba(129, 140, 248, 0.1);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 1rem;
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.1);
}

/* Reader Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 200;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reader-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.reader-content {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    font-size: 1.4rem;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Game Styles */
.game-container {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(9, 9, 11, 0.95));
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 32px;
    text-align: center;
    width: 100%;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind card */
.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.q-badge {
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    color: var(--text-muted);
}

.question-card h2 {
    margin: 1.5rem 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.answers-grid {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-answer {
    flex: 1;
    padding: 1.5rem 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-answer i {
    font-size: 1.5rem;
}

.btn-answer.correct {
    color: var(--green);
    border-color: rgba(16, 185, 129, 0.2);
}

.btn-answer.wrong {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-answer:active {
    transform: scale(0.95);
}

/* Feedback Area */
.feedback {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    animation: fadeIn 0.3s;
}

.feedback.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    width: 100%;
    margin-top: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
    z-index: 90;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.6rem 1.2rem;
    border-radius: 16px;
    position: relative;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: 0.3s;
}

.nav-item.active {
    color: #fff;
    background: transparent;
}

/* Float neon glow behind active item */
.nav-item.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(129, 140, 248, 0.2) 0%, transparent 70%);
    border-radius: 16px;
    z-index: -1;
    animation: fadeIn 0.5s ease-out;
}

.nav-item.active i {
    transform: translateY(-4px);
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* Empty State */
/* Settings Styles */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.setting-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

.font-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
}

.btn-control {
    background: var(--bg-card-hover);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-control:active {
    transform: scale(0.9);
}

/* Switch Toggle */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.card-info {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
}

.card-info h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* ==================== NEW COMPONENTS ==================== */

/* Welcome Banner */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.welcome-banner #greeting-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-banner #hebrew-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
}

/* Prayer Times Panel */
.times-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.times-panel h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.times-panel h3 i {
    color: var(--primary);
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.time-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.time-item.highlight {
    border-color: rgba(129, 140, 248, 0.2);
    background: rgba(129, 140, 248, 0.05);
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.time-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.time-item.highlight .time-value {
    color: var(--primary);
}

.time-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.6rem;
    background: var(--primary);
    color: #000;
    padding: 0.15rem 0.4rem;
    border-radius: 99px;
    font-weight: 600;
}

/* Current Prayer Label */
.current-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: block;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.quick-btn {
    flex: 1;
    min-width: 100px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-btn i {
    font-size: 1.4rem;
    color: var(--primary);
}

.quick-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px -10px rgba(129, 140, 248, 0.3);
}

.quick-btn:active {
    transform: scale(0.96);
}

/* Prayers List Container */
.prayers-list-container {
    margin-bottom: 1.5rem;
}

.prayers-list-container h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Inspiration Card */
.inspiration-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(129, 140, 248, 0.05));
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.inspiration-card .quote-icon {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.inspiration-card #daily-quote {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.inspiration-card .quote-source {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Custom Prayer Modal Content */
.custom-prayer-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0.5rem;
}

.input-field {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.3s;
    width: 100%;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.textarea-field {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    min-height: 200px;
    resize: vertical;
    transition: all 0.3s;
    width: 100%;
    line-height: 1.7;
}

.textarea-field::placeholder {
    color: var(--text-muted);
}

.textarea-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Button Icon improvements */
.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-icon i {
    font-size: 1.2rem;
}

/* Reader Title styling */
.reader-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Make reader text more readable */
.reader-content p {
    white-space: pre-wrap;
    text-align: right;
    line-height: 2.2;
}

/* ==================== ANIMATIONS ==================== */

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==================== LEARN TAB STYLES ==================== */

.learn-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.learn-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.learn-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.cat-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    white-space: nowrap;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Quiz Progress */
.quiz-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-card);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
    transition: width 0.4s ease;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Question Card Enhanced */
.question-card-wrapper {
    margin-bottom: 1.5rem;
}

.question-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(9, 9, 11, 0.95));
    border: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.q-category-badge {
    display: inline-block;
    background: rgba(129, 140, 248, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-card h2 {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Feedback Enhanced */
.feedback {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    animation: fadeIn 0.3s;
}

.feedback.error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
}

.feedback-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feedback-icon-wrapper i {
    font-size: 2rem;
    color: var(--green);
}

.feedback.error .feedback-icon-wrapper {
    background: rgba(248, 113, 113, 0.2);
}

.feedback.error .feedback-icon-wrapper i {
    color: var(--red);
}

#feedback-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#feedback-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Answer Buttons Enhanced */
.answers-grid {
    display: flex;
    gap: 1rem;
}

.btn-answer {
    flex: 1;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-answer i {
    font-size: 2rem;
}

.btn-answer span {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-answer.correct {
    border-color: rgba(52, 211, 153, 0.3);
}

.btn-answer.correct i {
    color: var(--green);
}

.btn-answer.wrong {
    border-color: rgba(248, 113, 113, 0.3);
}

.btn-answer.wrong i {
    color: var(--red);
}

.btn-answer:hover {
    transform: translateY(-3px);
}

.btn-answer.correct:hover {
    background: rgba(52, 211, 153, 0.1);
    border-color: var(--green);
    box-shadow: 0 8px 25px -10px rgba(52, 211, 153, 0.3);
}

.btn-answer.wrong:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: var(--red);
    box-shadow: 0 8px 25px -10px rgba(248, 113, 113, 0.3);
}

.btn-answer:active {
    transform: scale(0.96);
}

/* Score Panel */
.score-panel {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.score-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.score-item strong {
    color: var(--text-main);
}

/* ==================== HALACHA TAB ==================== */

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header h2 i {
    color: var(--primary);
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 1.5rem 0 1rem;
}

/* Halacha Card */
.halacha-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
}

.halacha-card.featured {
    background: linear-gradient(145deg, var(--bg-card), rgba(129, 140, 248, 0.08));
    border-color: rgba(129, 140, 248, 0.2);
}

.halacha-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #000;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
}

.halacha-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.halacha-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.halacha-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.halacha-source i {
    color: var(--primary);
}

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.topic-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.topic-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.topic-card span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.topic-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px -10px var(--primary-glow);
}

/* Conversion Section */
.conversion-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.conversion-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.conversion-section h3 i {
    color: var(--primary);
}

.conversion-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.step-item.completed {
    opacity: 0.6;
}

.step-item.active {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item.completed .step-number {
    background: var(--green);
    color: #000;
}

.step-item.active .step-number {
    background: var(--primary);
    color: #000;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== CALENDAR TAB ==================== */

.hebrew-date-display {
    background: linear-gradient(145deg, var(--bg-card), rgba(129, 140, 248, 0.05));
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hebrew-date-display .day-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.hebrew-date-display .hebrew-full-date {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.25rem;
}

.hebrew-date-display .gregorian-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s;
}

.event-item.holiday {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(145deg, var(--bg-card), rgba(251, 191, 36, 0.05));
}

.event-item.shabbat {
    border-color: rgba(129, 140, 248, 0.3);
    background: linear-gradient(145deg, var(--bg-card), rgba(129, 140, 248, 0.05));
}

.event-date {
    text-align: center;
    min-width: 50px;
}

.event-date .event-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.event-date .event-month {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.event-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.event-item.holiday .event-icon {
    color: #fbbf24;
}

.event-item.shabbat .event-icon {
    color: var(--primary);
}

/* Shabbat Times Card */
.shabbat-times-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.shabbat-times-card h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shabbat-times-card h3 i {
    color: var(--primary);
}

.shabbat-times {
    display: flex;
    justify-content: space-between;
}

.shabbat-time-item {
    text-align: center;
}

.shabbat-time-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.shabbat-time-item strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
}

.social-links a i {
    font-size: 1.2rem;
}

/* ==================== TOOLS TAB ==================== */

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px -5px rgba(129, 140, 248, 0.1);
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-card h3 i {
    color: var(--primary);
}

.tool-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

.card-bg-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 5rem;
    opacity: 0.03;
    color: var(--text-main);
    transform: rotate(-10deg);
}

/* Compass Tool */
.compass-card {
    text-align: center;
    background: linear-gradient(145deg, var(--bg-card), rgba(34, 211, 238, 0.05));
    border-color: rgba(34, 211, 238, 0.2);
}

.compass-container {
    width: 120px;
    height: 120px;
    margin: 1rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.compass-arrow {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    transform: rotate(45deg);
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
    animation: float 3s ease-in-out infinite;
}

.compass-label {
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Brachot Tool */
.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    background: var(--bg-card-hover);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    padding-left: 2.5rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.brachot-result {
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.3s;
}

.food-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.food-info {
    display: flex;
    flex-direction: column;
}

.food-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.food-bracha {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Tehillim Tool */
.tehillim-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(192, 132, 252, 0.05));
    border-color: rgba(192, 132, 252, 0.2);
}

.tehillim-card h3 i {
    color: var(--secondary);
}

.tehillim-preview {
    background: var(--bg-card-hover);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
}

.tehillim-preview h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.tehillim-preview p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

.btn-tool {
    width: 100%;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.btn-tool:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-tool-outline {
    width: 100%;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem;
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tool-outline:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

/* Names Tool */
.names-card {
    cursor: pointer;
}

.names-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.name-tag {
    background: var(--bg-card-hover);
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Names Modal */
.names-content {
    padding: 1rem;
}

.names-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 70vh;
    overflow-y: auto;
}

.name-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
}

.name-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.name-hebrew {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.name-meaning {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Tzedakah Tool */
.tzedakah-card h3 i {
    color: var(--green);
}

.counter-display {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.counter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.4);
}

.btn-circle:active {
    transform: scale(0.9);
}

.btn-circle.secondary {
    background: var(--bg-card-hover);
    color: var(--text-muted);
    box-shadow: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.control-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
}

.social-links a i {
    font-size: 1.2rem;
}