body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, #4f46e5 0, #1d4ed8 30%, #020617 80%);
    color: #e5e7eb;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.35;
    z-index: -1;
}

body::before {
    background: conic-gradient(from 160deg, #38bdf8, #6366f1, #a855f7, #38bdf8);
    top: -120px;
    left: -120px;
}

body::after {
    background: conic-gradient(from 200deg, #22c55e, #06b6d4, #4f46e5, #22c55e);
    bottom: -160px;
    right: -160px;
}

.navbar-brand {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.98), rgba(15, 23, 42, 0.98)) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.8), rgba(129, 140, 248, 0.8), rgba(236, 72, 153, 0.8), rgba(236, 72, 153, 0));
    opacity: 0.8;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #e5e7eb !important;
    text-shadow: 0 0 12px rgba(191, 219, 254, 0.55);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0));
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.navbar-brand::before {
    content: "★";
    font-size: 0.6rem;
    margin-right: 0.5rem;
    color: rgba(248, 250, 252, 0.8);
}

.navbar-brand:hover {
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.7);
    border-color: rgba(191, 219, 254, 0.8);
}

.navbar .btn-icon-circle {
    background-color: rgba(15, 23, 42, 0.4);
    border-color: rgba(248, 250, 252, 0.4) !important;
}

.card {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    color: #e5e7eb;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card-header {
    border-top-left-radius: 0.9rem !important;
    border-top-right-radius: 0.9rem !important;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), rgba(129, 140, 248, 0.9));
    color: #e5e7eb;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.95);
    border-color: rgba(129, 140, 248, 0.8);
}

.card-body {
    font-size: 0.9rem;
}

.word-list {
    max-height: 320px;
    overflow-y: auto;
}

.word-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0;
}

.word-item:last-child {
    border-bottom: none;
}

.word-item-title {
    font-weight: 600;
}

.word-item-sub {
    font-size: 0.85rem;
}

.word-item + .word-item {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.badge.bg-success-subtle {
    background-color: #e6f4ea !important;
}

.badge.bg-info-subtle {
    background-color: #e5f3ff !important;
}

.badge.bg-warning-subtle {
    background-color: #fff3cd !important;
}

.bg-success-subtle {
    background-color: #e6f4ea !important;
}

.bg-info-subtle {
    background-color: #e5f3ff !important;
}

.bg-warning-subtle {
    background-color: #fff3cd !important;
}

.quiz-question-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.quiz-word-main {
    font-size: 1.3rem;
    font-weight: 700;
}

.quiz-result {
    font-size: 0.9rem;
}

.weak-word-item {
    font-size: 0.85rem;
    border-radius: 0.6rem;
    padding: 0.35rem 0.6rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.weak-word-item strong {
    color: #fee2e2;
}

.weak-word-low {
    border-color: rgba(251, 191, 36, 0.6);
    background: radial-gradient(circle at top left, rgba(31, 41, 55, 0.95), rgba(180, 83, 9, 0.55));
}

.weak-word-medium {
    border-color: rgba(248, 113, 113, 0.7);
    background: radial-gradient(circle at top left, rgba(31, 41, 55, 0.96), rgba(220, 38, 38, 0.55));
}

.weak-word-high {
    border-color: rgba(248, 113, 113, 0.95);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(185, 28, 28, 0.85));
}

.streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.4);
    font-size: 0.8rem;
}

.streak-pill strong {
    color: #bbf7d0;
}

.streak-badge-small {
    font-size: 0.7rem;
    opacity: 0.85;
}

.btn-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.8rem;
}

#notesNavBtn {
    background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.9));
    border: 1px solid rgba(248, 250, 252, 0.6);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2), 0 10px 25px rgba(15, 23, 42, 0.9);
    font-size: 0.95rem;
}

#notesNavBtn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 1);
    filter: brightness(1.05);
}

.daily-word-card {
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.22), rgba(15, 23, 42, 0.96));
    border-color: rgba(129, 140, 248, 0.55);
}

.daily-word-header {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.95), rgba(129, 140, 248, 0.95));
}

.daily-word-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.6);
    font-size: 0.9rem;
}

.btn,
.form-control,
.form-select {
    border-radius: 999px;
    transition: box-shadow 0.15s ease-out, transform 0.12s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}

#personalNotesTextarea {
    border-radius: 0.4rem;
}

.footer-signature {
    opacity: 0.85;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.footer-signature-name {
    color: #e5e7eb;
}

.footer-signature-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.9), rgba(148, 163, 184, 0));
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.6);
}

.btn-outline-primary:hover {
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.45);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.9);
    border-color: rgba(129, 140, 248, 0.9);
}

.word-level-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.word-level-new {
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.word-level-learning {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
}

.word-level-strong {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.word-level-master {
    background: rgba(168, 85, 247, 0.18);
    color: #e9d5ff;
}

.badge-locked {
    background: rgba(15, 23, 42, 0.7);
    color: #64748b;
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.badge-earned {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #111827;
    border: none;
}

.quest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
}

.quest-label {
    opacity: 0.85;
}

.quest-done .quest-label {
    text-decoration: line-through;
    opacity: 0.6;
}

.quest-progress {
    font-size: 0.75rem;
    color: #9ca3af;
}

.quest-done .quest-progress {
    color: #22c55e;
}

.sr-chart {
    display: flex;
    gap: 0.3rem;
    align-items: flex-end;
    height: 80px;
}

.sr-chart-bar {
    flex: 1;
    min-width: 0;
    background: rgba(59, 130, 246, 0.35);
    border-radius: 0.3rem 0.3rem 0 0;
    position: relative;
}

.sr-chart-bar-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0.3rem 0.3rem 0 0;
    background: linear-gradient(180deg, #38bdf8, #1d4ed8);
}

.sr-chart-bar-label {
    position: absolute;
    bottom: -1.1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #9ca3af;
}

@media (max-width: 767.98px) {
    .word-list {
        max-height: 260px;
    }
}
