/* ==========================================
   NTR Bible Reader - Premium Design
   ========================================== */

/* ----- Hero Section ----- */
.ntr-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 40%, #2c3e50 100%);
    padding: 2.5rem 0 1.5rem;
    position: relative;
    text-align: center;
}
.ntr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background:
        radial-gradient(circle at 20% 80%, #5dade2 0, transparent 45%),
        radial-gradient(circle at 80% 20%, #a569bd 0, transparent 40%);
    pointer-events: none;
}
.ntr-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.3), transparent);
}

.ntr-header {
    margin-bottom: 1rem;
}

.ntr-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(93, 173, 226, 0.1);
    border: 1px solid rgba(93, 173, 226, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #85c1e9;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.ntr-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.ntr-title-accent {
    background: linear-gradient(135deg, #5dade2, #a569bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ntr-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.3rem 0 0;
    font-weight: 400;
}

/* ----- Toolbar ----- */
.ntr-toolbar {
    max-width: 580px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(93, 173, 226, 0.12);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}

.ntr-toolbar__row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ntr-select-group {
    position: relative;
    flex-shrink: 0;
}

.ntr-select-group--book {
    min-width: 100px;
}

.ntr-select-group--ch {
    min-width: 60px;
}

.ntr-toolbar__sep {
    display: block;
    width: 1px;
    height: 22px;
    background: rgba(93, 173, 226, 0.15);
    flex-shrink: 0;
}

.ntr-nav-compact {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.ntr-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(93, 173, 226, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition);
}
.ntr-nav-btn:hover:not(:disabled) {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.3);
    color: #85c1e9;
}
.ntr-nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.ntr-search-wrap {
    position: relative;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

.ntr-search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.ntr-search-input {
    width: 100%;
    padding: 0.4rem 0.5rem 0.4rem 1.6rem;
    font-family: var(--font-text);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(93, 173, 226, 0.1);
    border-radius: 6px;
    outline: none;
    transition: all var(--transition);
}
.ntr-search-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
.ntr-search-input:focus {
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.1);
}

.ntr-font-size {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(93, 173, 226, 0.08);
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
}

.ntr-font-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}
.ntr-font-btn[data-size="small"] {
    font-size: 0.65rem;
}
.ntr-font-btn[data-size="medium"] {
    font-size: 0.82rem;
}
.ntr-font-btn[data-size="large"] {
    font-size: 1rem;
}
.ntr-font-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}
.ntr-font-btn--active {
    color: #5dade2 !important;
    background: rgba(93, 173, 226, 0.15) !important;
}

/* ----- Audio Bible Card ----- */
.ntr-audio-card {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 580px;
    margin: 0.85rem auto 0;
    padding: 0.65rem 0.55rem 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(93, 173, 226, 0.12);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.ntr-audio-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(93, 173, 226, 0.25);
    transform: translateY(-1px);
}
.ntr-audio-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(45, 125, 70, 0.15);
    color: #4caf50;
    flex-shrink: 0;
}
.ntr-audio-card__text {
    flex: 1;
    text-align: left;
    min-width: 0;
}
.ntr-audio-card__text strong {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.25;
}
.ntr-audio-card__text span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
    margin-top: 0.05rem;
}
.ntr-audio-card__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(93, 173, 226, 0.15);
    color: #85c1e9;
    flex-shrink: 0;
    transition: all var(--transition);
}
.ntr-audio-card__action svg {
    width: 14px;
    height: 14px;
}
.ntr-audio-card:hover .ntr-audio-card__action {
    background: rgba(93, 173, 226, 0.25);
    transform: translateX(2px);
}

/* ----- Reading Section ----- */
.ntr-section {
    padding: 2rem 0 4rem;
    background: var(--color-white);
    min-height: 60vh;
}

/* ----- Content ----- */
.ntr-content {
    max-width: 740px;
    margin: 0 auto;
}

/* ----- Chapter Header ----- */
.ntr-chapter-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 42, 74, 0.06);
}

.ntr-chapter-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    scroll-margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ----- Audio Button (plays inline, NTR palette) ----- */
.ntr-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(93, 173, 226, 0.3);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.12), rgba(167, 105, 189, 0.08));
    color: #5dade2;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
}
.ntr-audio-btn svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}
.ntr-audio-btn:hover {
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.2), rgba(167, 105, 189, 0.12));
    border-color: rgba(93, 173, 226, 0.5);
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(93, 173, 226, 0.2);
}
.ntr-audio-btn:active {
    transform: scale(0.95);
}
.ntr-audio-btn:focus-visible {
    outline: 2px solid #5dade2;
    outline-offset: 3px;
}
.ntr-audio-btn--playing {
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.22), rgba(167, 105, 189, 0.12));
    border-color: #5dade2;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.15);
}
.ntr-audio-btn--loading {
    animation: ntrAudioPulse 1s ease-in-out infinite;
}
.ntr-audio-btn--error {
    color: #c62828 !important;
    border-color: rgba(198, 40, 40, 0.4) !important;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.12), rgba(198, 40, 40, 0.04)) !important;
    animation: none;
}
@keyframes ntrAudioPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Font size header (visible only on mobile) */
.ntr-font-size--header {
    display: none;
}

/* ----- Chapter Headings ----- */
.ntr-headings {
    margin-bottom: 1.25rem;
}

/* Shared heading style */
.ntr-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.04), rgba(167, 105, 189, 0.04));
    border: 1px solid rgba(93, 173, 226, 0.08);
}
.ntr-heading span {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

/* Inline heading - appears between verses */
.ntr-heading--inline {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-left: 3px solid #5dade2;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.06), rgba(167, 105, 189, 0.03));
    border-top: 1px solid rgba(93, 173, 226, 0.06);
    border-right: 1px solid rgba(93, 173, 226, 0.06);
    border-bottom: 1px solid rgba(93, 173, 226, 0.06);
    gap: 0.4rem;
}
.ntr-heading--inline span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c6b9e;
}
.ntr-heading--inline .ntr-heading__icon {
    color: #5dade2;
}

/* Main heading (before first verse) */
.ntr-heading--main {
    text-align: center;
}
.ntr-heading--main span {
    font-size: 0.9rem;
}

/* ----- Verses ----- */
.ntr-verses {
    line-height: 2;
    transition: font-size 0.2s ease, opacity 0.15s ease;
}
.ntr-content[data-font-size="small"] .ntr-verses {
    font-size: 0.95rem;
}
.ntr-content[data-font-size="medium"] .ntr-verses {
    font-size: 1.1rem;
}
.ntr-content[data-font-size="large"] .ntr-verses {
    font-size: 1.3rem;
}

.ntr-verse {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    position: relative;
    padding-left: 2.5rem;
    text-indent: -2.5rem;
    scroll-margin-top: 3rem;
}

.ntr-verse__num {
    display: inline-block;
    min-width: 2rem;
    font-size: 0.7em;
    font-weight: 700;
    color: #5dade2;
    text-align: right;
    margin-right: 0.35rem;
    vertical-align: super;
    line-height: 1;
}

/* ----- Annotated Words (Premium) ----- */
.ntr-word--annotated {
    position: relative;
    cursor: pointer;
    color: #2c6b9e;
    font-weight: 500;
    border-bottom: 1.5px dashed rgba(93, 173, 226, 0.4);
    transition: all 0.2s ease;
    display: inline;
    padding: 0 1px;
    border-radius: 2px;
}

.ntr-word--annotated:hover {
    color: #1a4a7a;
    background: rgba(93, 173, 226, 0.08);
    border-bottom-color: #5dade2;
}

.ntr-word--annotated:focus-visible {
    outline: 2px solid #5dade2;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Active state when popup is open */
.ntr-word--active {
    background: rgba(93, 173, 226, 0.15) !important;
    border-bottom-color: #5dade2 !important;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.12);
    border-radius: 3px;
}

/* Annotation dot indicator */
.ntr-word__dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #5dade2;
    border-radius: 50%;
    position: relative;
    top: -0.3em;
    margin-left: 0.5px;
    vertical-align: super;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.ntr-word--annotated:hover .ntr-word__dot {
    opacity: 1;
    transform: scale(1.3);
    background: #2e86c1;
}

/* ----- Search Highlight ----- */
.ntr-highlight {
    background: rgba(93, 173, 226, 0.2);
    border-radius: 3px;
    padding: 0.05rem 0.15rem;
}

/* ----- No Results ----- */
.ntr-no-results {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeInUp 0.3s ease;
}
.ntr-no-results__icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}
.ntr-no-results h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.ntr-no-results p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ----- Chapter Footer ----- */
.ntr-chapter-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 42, 74, 0.06);
}
.ntr-chapter-footer__info {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ----- Bottom Navigation ----- */
.ntr-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.6rem 1rem;
    background: rgba(26, 42, 74, 0.03);
    border: 1px solid rgba(26, 42, 74, 0.06);
    border-radius: var(--radius-sm);
    transition: opacity 0.2s ease;
}

.ntr-bottom-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(26, 42, 74, 0.1);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-text-light);
    font-family: var(--font-text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}
.ntr-bottom-nav__btn:hover:not(:disabled) {
    border-color: #5dade2;
    color: var(--color-primary);
    background: rgba(93, 173, 226, 0.04);
}
.ntr-bottom-nav__btn:disabled {
    opacity: 0.25;
    cursor: default;
}
.ntr-bottom-nav__label {
    display: none;
}
.ntr-bottom-nav__info {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-light);
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ==========================================
   Annotation Popup - Premium Design
   ========================================== */
.ntr-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(2px);
}
.ntr-popup-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

.ntr-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(92vw, 480px);
    max-height: min(80vh, 600px);
    background: var(--color-white, #fff);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(93, 173, 226, 0.08);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ntr-popup--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.ntr-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(26, 42, 74, 0.08);
    flex-shrink: 0;
}
.ntr-popup__header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.ntr-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.1), rgba(167, 105, 189, 0.06));
    border: 1px solid rgba(93, 173, 226, 0.12);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #2c6b9e;
    white-space: nowrap;
}
.ntr-popup__ref {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ntr-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.ntr-popup__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

.ntr-popup__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    scroll-behavior: smooth;
}
.ntr-popup__body::-webkit-scrollbar {
    width: 6px;
}
.ntr-popup__body::-webkit-scrollbar-track {
    background: transparent;
}
.ntr-popup__body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}
.ntr-popup__body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Popup Resource Card */
.ntr-popup-resource {
    animation: ntrFadeIn 0.3s ease;
}

.ntr-popup-resource__word-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(93, 173, 226, 0.1);
}

.ntr-popup-resource__word {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c6b9e;
    line-height: 1.2;
}

.ntr-popup-resource__transliteration {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
    font-style: italic;
    position: relative;
}
.ntr-popup-resource__transliteration::before {
    content: '(';
    margin-right: 0.15rem;
}
.ntr-popup-resource__transliteration::after {
    content: ')';
    margin-left: 0.15rem;
}

.ntr-popup-resource__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}
.ntr-popup-resource__text p {
    margin-bottom: 0.75rem;
}
.ntr-popup-resource__text p:last-child {
    margin-bottom: 0;
}

.ntr-popup-resource__alternate {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(93, 173, 226, 0.04);
    border: 1px solid rgba(93, 173, 226, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}
.ntr-popup-resource__alternate-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5dade2;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ntr-popup-resource__alternate-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-light);
    font-style: italic;
}

.ntr-popup-resource__ref {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(26, 42, 74, 0.03);
    border-radius: 6px;
    margin-top: 0.5rem;
}
.ntr-popup-resource__ref-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ntr-popup-resource__ref-value {
    font-size: 0.82rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Bible reference links in popup */
.ntr-bible-ref {
    color: #5dade2;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(93, 173, 226, 0.3);
    cursor: pointer;
    transition: color 0.15s ease;
}
.ntr-bible-ref:hover {
    color: #2c6b9e;
    text-decoration-color: #5dade2;
}

/* Footer navigation */
.ntr-popup__footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(26, 42, 74, 0.08);
    flex-shrink: 0;
}
.ntr-popup__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.ntr-popup__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(26, 42, 74, 0.1);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-text-light);
    font-family: var(--font-text);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ntr-popup__nav-btn:hover:not(:disabled) {
    border-color: #5dade2;
    color: var(--color-primary);
    background: rgba(93, 173, 226, 0.04);
}
.ntr-popup__nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}
.ntr-popup__nav-btn svg {
    flex-shrink: 0;
}
.ntr-popup__counter {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* ==========================================
   Custom Select - Premium Dropdown
   ========================================== */

.ntr-custom-select {
    position: relative;
}

.ntr-custom-select__trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-family: var(--font-text);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(93, 173, 226, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
    line-height: 1.3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-align: left;
    user-select: none;
}
.ntr-custom-select__trigger:hover {
    border-color: rgba(93, 173, 226, 0.3);
}
.ntr-custom-select__trigger:focus-visible {
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.15), 0 0 12px rgba(93, 173, 226, 0.08);
}
.ntr-custom-select__trigger:active {
    transform: scale(0.97);
}
.ntr-custom-select__trigger--open {
    border-color: #5dade2;
    background: rgba(93, 173, 226, 0.08);
}

.ntr-custom-select__value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ntr-custom-select__arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.ntr-custom-select__trigger--open .ntr-custom-select__arrow {
    opacity: 1;
    transform: rotate(180deg);
}

/* Panel */
.ntr-custom-select__panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 500;
    min-width: 220px;
    max-width: 320px;
    max-height: 380px;
    background: #1b2838;
    border: 1px solid rgba(93, 173, 226, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ntr-custom-select__panel--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Panel header */
.ntr-custom-select__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem 0.4rem;
    flex-shrink: 0;
}
.ntr-custom-select__panel-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
}
.ntr-custom-select__panel-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}
.ntr-custom-select__panel-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

/* Search */
.ntr-custom-select__search {
    position: relative;
    padding: 0 0.75rem 0.5rem;
    flex-shrink: 0;
}
.ntr-custom-select__search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}
.ntr-custom-select__search-input {
    width: 100%;
    padding: 0.45rem 0.5rem 0.45rem 1.6rem;
    font-family: var(--font-text);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(93, 173, 226, 0.1);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.ntr-custom-select__search-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
.ntr-custom-select__search-input:focus {
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.1);
}

/* Options list */
.ntr-custom-select__options {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.5rem 0.5rem;
}
.ntr-custom-select__options::-webkit-scrollbar {
    width: 4px;
}
.ntr-custom-select__options::-webkit-scrollbar-track {
    background: transparent;
}
.ntr-custom-select__options::-webkit-scrollbar-thumb {
    background: rgba(93, 173, 226, 0.2);
    border-radius: 2px;
}

/* Group label */
.ntr-custom-select__group-label {
    padding: 0.4rem 0.65rem 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Single option */
.ntr-custom-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    line-height: 1.3;
}
.ntr-custom-select__option:hover {
    background: rgba(93, 173, 226, 0.08);
    color: rgba(255, 255, 255, 0.95);
}
.ntr-custom-select__option:focus-visible {
    outline: 2px solid rgba(93, 173, 226, 0.3);
    outline-offset: -2px;
}
.ntr-custom-select__option--selected {
    background: rgba(93, 173, 226, 0.12);
    color: #85c1e9;
    font-weight: 600;
}
.ntr-custom-select__option--selected:hover {
    background: rgba(93, 173, 226, 0.15);
}

.ntr-custom-select__option-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
    flex-shrink: 0;
    line-height: 1.3;
}

/* Chapter options - grid */
.ntr-custom-select__options--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 3px;
    padding: 0.25rem 0.5rem 0.5rem;
}
.ntr-custom-select__option--ch {
    justify-content: center;
    padding: 0.35rem 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}

/* ==========================================
   Hover Tooltip
   ========================================== */
.ntr-tooltip {
    position: fixed;
    z-index: 9997;
    padding: 0.75rem 0.85rem;
    background: #0f1f2f;
    border: 1px solid rgba(93, 173, 226, 0.18);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(93, 173, 226, 0.08);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: 320px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ntr-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Arrow (thin accent) */
.ntr-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0f1f2f;
}

.ntr-tooltip--below::after {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid #0f1f2f;
}

.ntr-tooltip__word {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #93d0ff;
    line-height: 1.35;
    margin-bottom: 0.1rem;
}

.ntr-tooltip__transliteration {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.ntr-tooltip__text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.35rem;
}

.ntr-tooltip__alt {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    font-style: italic;
    margin-bottom: 0.3rem;
    padding: 0.35rem 0.5rem;
    background: rgba(93, 173, 226, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(93, 173, 226, 0.08);
}

.ntr-tooltip__alt-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #5dade2;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.ntr-tooltip__more {
    font-size: 0.7rem;
    font-weight: 500;
    color: #5dade2;
    letter-spacing: 0.02em;
    border-top: 1px solid rgba(93, 173, 226, 0.12);
    padding-top: 0.35rem;
    margin-top: 0.15rem;
}

/* ==========================================
   Bible Version Select (compact dropdown)
   ========================================== */
.ntr-version-select {
    position: relative;
    flex-shrink: 0;
    margin-left: 0.2rem;
}

.ntr-version-select__trigger {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.4rem;
    font-family: var(--font-text);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(93, 173, 226, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.ntr-version-select__trigger:hover {
    border-color: rgba(93, 173, 226, 0.3);
}
.ntr-version-select__trigger:focus-visible {
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.15);
}
.ntr-version-select__trigger--open {
    border-color: #5dade2;
    background: rgba(93, 173, 226, 0.08);
}

.ntr-version-select__icon {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
}

.ntr-version-select__arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease;
    opacity: 0.6;
}
.ntr-version-select__trigger--open .ntr-version-select__arrow {
    opacity: 1;
    transform: rotate(180deg);
}

.ntr-version-select__panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 130px;
    z-index: 500;
    background: #1b2838;
    border: 1px solid rgba(93, 173, 226, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ntr-version-select__panel--open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ntr-version-select__option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    font-family: var(--font-text);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}
.ntr-version-select__option:hover {
    background: rgba(93, 173, 226, 0.08);
    color: rgba(255, 255, 255, 0.95);
}
.ntr-version-select__option--active {
    color: #85c1e9;
    font-weight: 600;
    background: rgba(93, 173, 226, 0.12);
    pointer-events: none;
}
.ntr-version-select__option--active::before {
    content: '✓';
    font-size: 0.65rem;
    color: #5dade2;
    flex-shrink: 0;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes ntrFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .ntr-hero {
        padding: 2rem 0 1rem;
    }
    .ntr-title {
        font-size: 1.5rem;
    }
    .ntr-subtitle {
        font-size: 0.78rem;
    }
    .ntr-toolbar {
        padding: 0.4rem 0.5rem;
    }
    .ntr-toolbar__row {
        gap: 0.3rem;
    }
    .ntr-select-group--book {
        min-width: 80px;
    }
    .ntr-select-group--ch {
        min-width: 50px;
    }
    .ntr-search-wrap {
        min-width: 80px;
        max-width: 120px;
    }
    .ntr-nav-btn {
        width: 24px;
        height: 24px;
    }
    .ntr-chapter-header {
        position: relative;
        display: block;
        padding-right: 92px;
    }
    .ntr-chapter-title {
        font-size: 1.3rem;
        text-align: center;
    }
    .ntr-audio-btn {
        width: 28px;
        height: 28px;
    }
    .ntr-audio-btn svg {
        width: 12px;
        height: 12px;
    }
    .ntr-font-size--header {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .ntr-toolbar .ntr-font-size {
        display: none !important;
    }
    .ntr-content[data-font-size="small"] .ntr-verses {
        font-size: 0.9rem;
    }
    .ntr-content[data-font-size="medium"] .ntr-verses {
        font-size: 1rem;
    }
    .ntr-content[data-font-size="large"] .ntr-verses {
        font-size: 1.15rem;
    }
    .ntr-toolbar__sep {
        display: none;
    }
    .ntr-bottom-nav {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    .ntr-bottom-nav__btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    .ntr-bottom-nav__label {
        display: inline;
    }
    .ntr-bottom-nav__info {
        font-size: 0.75rem;
        min-width: 60px;
    }
    .ntr-popup {
        width: 96vw;
        max-height: 90vh;
        border-radius: 12px;
    }
    .ntr-popup__header {
        padding: 0.75rem 1rem;
    }
    .ntr-popup__body {
        padding: 1rem;
    }
    .ntr-popup__footer {
        padding: 0.6rem 1rem;
    }

    /* Mobile: centered overlay for custom select */
    .ntr-custom-select__panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.92);
        width: min(88vw, 360px);
        max-width: none;
        max-height: min(60vh, 440px);
        min-width: 0;
        border-radius: 16px;
        border: 1px solid rgba(93, 173, 226, 0.12);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(93, 173, 226, 0.06);
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        overscroll-behavior: contain;
        opacity: 0;
        pointer-events: none;
    }
    .ntr-custom-select__panel--open {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
    }
    .ntr-custom-select__panel-header {
        padding: 0.75rem 0.75rem 0.3rem;
    }
    .ntr-custom-select__panel-close {
        display: flex;
    }

    /* Backdrop */
    .ntr-custom-select__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 499;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    .ntr-custom-select__backdrop--visible {
        opacity: 1;
        pointer-events: auto;
    }
    .ntr-custom-select__panel--ch {
        max-height: min(60vh, 440px);
    }
    .ntr-custom-select__options--grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 3px;
    }
    .ntr-custom-select__option--ch {
        padding: 0.35rem 0.15rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .ntr-hero {
        padding: 1.5rem 0 0.75rem;
    }
    .ntr-title {
        font-size: 1.25rem;
    }
    .ntr-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.75rem;
    }
    .ntr-toolbar {
        padding: 0.3rem 0.4rem;
    }
    .ntr-toolbar__row {
        gap: 0.2rem;
    }
    .ntr-custom-select__trigger {
        padding: 0.3rem 0.4rem;
        font-size: 0.72rem;
        border-radius: 6px;
    }
    .ntr-custom-select--ch .ntr-custom-select__trigger {
        padding: 0.3rem 0.35rem;
    }
    .ntr-select-group--book {
        min-width: 70px;
    }
    .ntr-select-group--ch {
        min-width: 44px;
    }
    .ntr-search-wrap {
        min-width: 60px;
        max-width: 100px;
    }
    .ntr-search-input {
        font-size: 0.72rem;
        padding: 0.3rem 0.4rem 0.3rem 1.3rem;
    }
    .ntr-font-btn {
        width: 22px;
        height: 22px;
    }
    .ntr-font-btn[data-size="small"] {
        font-size: 0.6rem;
    }
    .ntr-font-btn[data-size="medium"] {
        font-size: 0.75rem;
    }
    .ntr-font-btn[data-size="large"] {
        font-size: 0.9rem;
    }
    .ntr-version-select__trigger {
        padding: 0.2rem 0.35rem;
        font-size: 0.65rem;
    }
    .ntr-nav-compact {
        gap: 0.2rem;
    }
    .ntr-nav-btn {
        width: 22px;
        height: 22px;
    }
    .ntr-chapter-title {
        font-size: 1.1rem;
    }
    .ntr-audio-btn {
        width: 26px;
        height: 26px;
    }
    .ntr-audio-btn svg {
        width: 11px;
        height: 11px;
    }
    .ntr-verse {
        padding-left: 2rem;
        text-indent: -2rem;
    }
    .ntr-verse__num {
        min-width: 1.5rem;
        font-size: 0.65em;
    }
    .ntr-bottom-nav {
        gap: 0.3rem;
        padding: 0.4rem 0.5rem;
        flex-wrap: nowrap;
    }
    .ntr-bottom-nav__btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.4rem;
        gap: 0.2rem;
    }
    .ntr-bottom-nav__label {
        display: none;
    }
    .ntr-bottom-nav__info {
        font-size: 0.72rem;
        min-width: 50px;
    }
    .ntr-popup {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(100%) scale(1);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .ntr-popup--open {
        transform: translateY(0) scale(1);
    }
    .ntr-popup__badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    .ntr-popup__ref {
        font-size: 0.75rem;
    }
    .ntr-popup__nav-btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
    }
    .ntr-popup__nav-btn span:first-child,
    .ntr-popup__nav-btn span:last-child {
        display: none;
    }
    .ntr-custom-select__panel {
        width: min(92vw, 320px);
        max-height: min(65vh, 420px);
    }
    .ntr-custom-select__panel--ch {
        max-height: min(65vh, 420px);
    }
    .ntr-custom-select__options--grid {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
        gap: 2px;
    }
    .ntr-custom-select__option--ch {
        font-size: 0.75rem;
        padding: 0.3rem 0.1rem;
    }
}
