@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
    --bg: #f3f8fc;
    --bg-subtle: #e8f2fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-hover: #f0f7ff;
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-darker: #0c4a6e;
    --primary-light: #e0f2fe;
    --primary-glow: rgba(2, 132, 199, 0.16);
    --accent: #38bdf8;
    --accent-subtle: #bae6fd;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-hover: #93c5fd;
    --border-focus: #0284c7;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-blue: 0 8px 24px -4px rgba(2, 132, 199, 0.22);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

button, input, textarea {
    font: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== SITE HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 74px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: all .2s ease;
}

.header-inner {
    width: min(1200px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform .2s ease;
}

.brand:hover {
    transform: scale(1.02);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

.nav-link {
    padding: 8px 18px;
    border-radius: 9999px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.nav-link.active {
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 26px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.page-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 80px;
}

/* ===== ANNOUNCEMENT / NOTICE ===== */
.notice {
    margin: 0 auto 34px;
    width: min(960px, 100%);
    overflow: hidden;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0369a1 0%, #0284c7 50%, #0369a1 100%);
    background-size: 200% auto;
    color: #ffffff;
    box-shadow: var(--shadow-blue);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: gradientShift 8s ease infinite;
    position: relative;
    user-select: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.notice-track {
    width: 100%;
    overflow: hidden;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.notice-item {
    display: inline-block;
    white-space: nowrap;
}

/* Duplicate item is hidden when text fits the screen */
.notice:not(.is-running) .notice-dup {
    display: none !important;
}

/* Running Bar (when text exceeds screen size) */
.notice.is-running .notice-track {
    justify-content: flex-start;
    padding: 12px 0;
    mask-image: linear-gradient(90deg, transparent 0%, black 28px, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 28px, black calc(100% - 28px), transparent 100%);
}

.notice.is-running .notice-content {
    justify-content: flex-start;
    gap: 60px;
    padding-right: 60px;
    animation: slowRunningBar var(--marquee-duration, 28s) linear infinite;
    will-change: transform;
}

.notice.is-running:hover .notice-content {
    animation-play-state: paused;
}

.notice.is-running .notice-dup {
    display: inline-block;
}

@keyframes slowRunningBar {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 290px;
    display: grid;
    place-items: center;
    padding: 55px 36px;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 20%, #ffffff 0%, #f0f7fd 70%, #e2effa 100%);
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 220px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.cross {
    color: #0284c7;
    font-size: 28px;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.28));
}

.verse {
    max-width: 840px;
    margin: 0 auto;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(23px, 2.8vw, 32px);
    line-height: 1.6;
    font-style: italic;
    color: #0f172a;
    font-weight: 500;
}

.verse-ref {
    margin-top: 18px;
    color: #0369a1;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ===== REFLECTION / SCRIPTURE SHOWCASE CARDS (PARA 2 & 3) ===== */
.reflection-card {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 52px 40px;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 18%, #ffffff 0%, #f6faff 65%, #eaf4fc 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 30px -4px rgba(2, 132, 199, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
    text-align: center;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reflection-card:hover {
    box-shadow: 0 16px 40px -4px rgba(2, 132, 199, 0.14), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.reflection-card::before {
    content: "“";
    position: absolute;
    top: 6px;
    left: 36px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 130px;
    line-height: 1;
    color: rgba(2, 132, 199, 0.07);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.reflection-card::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: 50%;
    transform: translateX(50%);
    width: 280px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.verse-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.verse-divider-line {
    width: 55px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.45));
    border-radius: 9999px;
}

.verse-divider-line.right {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.45), transparent);
}

.verse-divider-icon {
    color: #0284c7;
    font-size: 22px;
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));
    line-height: 1;
}

.reflection-text {
    max-width: 840px;
    margin: 0 auto;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(21px, 2.4vw, 29px);
    line-height: 1.65;
    font-style: italic;
    color: #0f172a;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.reflection-ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 7px 22px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.22);
    border-radius: 9999px;
    color: #0369a1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

@media (max-width: 600px) {
    .reflection-card {
        padding: 38px 22px;
        border-radius: 20px;
    }
    .reflection-card::before {
        font-size: 90px;
        left: 18px;
        top: 2px;
    }
    .verse-divider-line {
        width: 35px;
    }
    .reflection-text {
        font-size: 18.5px;
        line-height: 1.6;
    }
}

/* ===== CONTENT SECTIONS ===== */
.section {
    margin-top: 50px;
}

.section-title {
    margin: 0 0 24px;
    text-align: center;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.section-title::after {
    content: "";
    display: block;
    width: 44px;
    height: 3.5px;
    background: linear-gradient(90deg, #38bdf8, #0284c7);
    margin: 8px auto 0;
    border-radius: 99px;
}

/* ===== VIDEO CARD ===== */
.video-card {
    width: min(840px, 100%);
    margin: 0 auto;
    background: #ffffff;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.video-frame iframe,
.video-frame img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* ===== VIDEO COVER & PLAY HERE OVERLAY ===== */
.video-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.video-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    transition: background 0.3s ease;
}

.video-cover:hover .video-cover-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.video-play-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.video-play-icon {
    font-size: 18px;
    display: inline-block;
}

.video-cover:hover .video-play-badge {
    transform: scale(1.06);
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.65);
}

.video-cover-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    max-width: 90%;
}

.video-action-bar {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.direct-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.video-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 25px;
}

.play-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0284c7;
    color: white;
    font-size: 24px;
}

.video-title {
    margin: 18px 0 14px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-sizing: border-box;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-outline {
    border-color: #0284c7;
    color: #0284c7;
    background: transparent;
}

.btn-outline:hover:not(:disabled) {
    background: #f0f7ff;
    color: #0369a1;
    border-color: #0369a1;
    transform: translateY(-1px);
}

.btn-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.center {
    text-align: center;
}

/* ===== CARDS & GRID ===== */
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 750;
    margin-top: 0;
    margin-bottom: 12px;
}

.content-card p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* ===== SERMON LIST ===== */
.sermon-list {
    display: grid;
    gap: 20px;
}

.sermon-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
}

.sermon-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #93c5fd;
}

.sermon-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.sermon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.sermon-thumb:hover img {
    transform: scale(1.04);
    filter: brightness(0.9);
}

.sermon-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    font-size: 36px;
    color: #94a3b8;
}

.sermon-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
    transition: background 0.25s ease;
}

.sermon-thumb:hover .sermon-play-overlay {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.sermon-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-size: 20px;
    padding-left: 3px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
    transition: transform 0.25s ease, background 0.25s ease;
}

.sermon-thumb:hover .sermon-play-btn {
    transform: scale(1.15);
    background: #dc2626;
}

.sermon-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FORM CONTROLS ===== */
.form-grid {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: #1e293b;
    font-weight: 600;
    font-size: 13.5px;
}

.field input, .field textarea {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    color: #0f172a;
    outline: none;
    font-size: 14.5px;
    transition: all .2s ease;
}

.field input:focus, .field textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    background: #f8fafc;
    text-align: center;
    padding: 38px 20px 45px;
    color: var(--muted);
    font-size: 14px;
}

.footer-verse {
    margin-top: 10px;
    color: #0284c7;
    font-style: italic;
    font-weight: 500;
}

.loading, .empty-state {
    padding: 55px 20px;
    text-align: center;
    color: var(--muted);
}

.app-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
}

.cross-loader {
    font-size: 32px;
    color: var(--primary);
}

/* ===== INTRO ZOOM LOADING SCREEN ===== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f0f7fc;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#loader-text {
    font-family: 'Plus Jakarta Sans', 'Quicksand', sans-serif;
    font-weight: 800;
    color: #0369a1;
    font-size: 2rem;
    animation: growText 2.5s ease-out forwards;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent !important;
}

#loader-text:focus,
#loader-text:focus-visible,
#loader-text:active,
#loader-text:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

@keyframes growText {
    0% {
        font-size: 2rem;
        opacity: 1;
    }
    60% {
        font-size: min(5rem, 13vw);
        opacity: 1;
    }
    100% {
        font-size: min(5rem, 13vw);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    @keyframes growText {
        0% {
            font-size: 1.5rem;
            opacity: 1;
        }
        60% {
            font-size: 2.8rem;
            opacity: 1;
        }
        100% {
            font-size: 2.8rem;
            opacity: 0;
        }
    }
}

.app-loaded {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
    .site-header { height: auto; min-height: 68px; }
    .header-inner { min-height: 68px; flex-wrap: wrap; }
    .menu-button { display: block; }
    .nav {
        display: none;
        width: 100%;
        padding: 8px;
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        margin-bottom: 12px;
    }
    .nav.open { display: flex; }
    .nav-link { text-align: center; }
    .hero { padding: 40px 20px; }
    .page-shell { width: min(100% - 24px, 1200px); padding-top: 18px; }
    .grid, .form-row { grid-template-columns: 1fr; }
    .sermon-item { grid-template-columns: 1fr; }
    .section-title { font-size: 26px; }
}

.nav-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
}

/* ===== AUTHENTICATION ===== */
.auth-shell {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 60px 20px 80px;
}

.auth-card {
    width: min(470px, 100%);
    padding: 42px;
    background: var(--surface);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.auth-cross {
    text-align: center;
    color: #0284c7;
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.25));
}

.auth-card h1 {
    text-align: center;
    margin: 12px 0 7px;
    color: #0f172a;
    font-weight: 800;
}

.auth-subtitle {
    text-align: center;
    color: var(--muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.auth-input {
    min-height: 48px;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 10px;
}

.auth-links a {
    color: #0284c7;
    font-weight: 600;
}

.auth-links a:hover {
    color: #0369a1;
    text-decoration: underline;
}

.form-error, .form-success {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.form-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.field-help {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-shell {
    padding-top: 40px;
}

.admin-heading {
    margin-bottom: 22px;
}

.admin-title {
    margin-bottom: 4px;
}

.admin-subtitle, .admin-help {
    color: var(--muted);
}

.admin-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 24px;
    background: #e2e8f0;
    padding: 5px;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

.admin-tab {
    border: 0;
    background: transparent;
    padding: 10px 24px;
    border-radius: 9999px;
    color: #475569;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-tab:hover {
    color: var(--primary-dark);
}

.admin-tab.selected {
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.admin-card {
    padding: 34px;
    border-radius: 20px;
}

.admin-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.admin-alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.editor-box {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
}

.editor-box h3 {
    color: var(--primary-dark);
    margin-top: 0;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #ffffff;
}

.admin-table th, .admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.admin-table th {
    color: var(--primary-dark);
    background: #f0f7ff;
    font-weight: 700;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.url-cell {
    max-width: 300px;
    word-break: break-all;
    color: var(--muted);
}

.actions {
    white-space: nowrap;
}

.btn-small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12.5px;
    margin-right: 6px;
    border-radius: 8px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== ADMIN FILTER & SEARCH BAR ===== */
.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) minmax(200px, 1.2fr) auto;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.04);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.filter-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

svg.input-icon, .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
    transition: color .2s ease;
}

.input-icon-wrap:focus-within .input-icon {
    color: var(--primary);
}

.filter-input {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    width: 100%;
    padding: 0 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: all .2s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: normal;
}

.filter-input.with-icon {
    padding-left: 40px;
    padding-right: 36px;
}

.filter-input.date-input {
    padding-right: 10px;
}

.filter-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.65;
    transition: opacity .15s ease;
    padding: 4px;
    border-radius: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background: #e0f2fe;
}

.input-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all .15s ease;
    z-index: 2;
}

.input-clear-btn.date-clear-btn {
    right: 36px;
}

.input-clear-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 42px;
}

.btn-filter {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 20px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-filter.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22);
}

.btn-filter.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.32);
}

.btn-filter.btn-outline {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
}

.btn-filter.btn-outline:hover:not(:disabled) {
    background: #f0f7ff;
    color: #0284c7;
    border-color: #0284c7;
}

svg.btn-icon, .btn-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.btn-filter:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

/* Active Filter Summary Badge */
.active-filter-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f0f7ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #0f172a;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.05);
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-label {
    font-weight: 600;
    color: #0369a1;
}

.badge-pill {
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-pill strong {
    color: #0c4a6e;
}

.badge-count {
    color: var(--muted);
    font-size: 12.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #0284c7;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.badge-reset-btn {
    border: 0;
    background: #bae6fd;
    color: #0369a1;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all .15s ease;
    white-space: nowrap;
}

.badge-reset-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

@media (max-width: 900px) {
    .admin-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    .filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
}

@media (max-width: 580px) {
    .admin-filter-bar {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .filter-actions {
        grid-column: span 1;
        width: 100%;
    }
    .btn-filter {
        flex: 1;
    }
    .badge-reset-btn {
        margin-left: 0;
    }
}

/* ===== PAGINATION BAR ===== */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 6px;
}

.pagination-bar.center {
    justify-content: center;
    flex-direction: column;
}

.pagination-info {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: #f0f7ff;
    color: #0284c7;
    border-color: #38bdf8;
}

.page-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== ABOUT PAGE ===== */
.about-card {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
    position: relative;
}

.about-card .cross {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text {
    font-size: 17px;
    line-height: 2.1;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto;
    font-weight: 450;
    letter-spacing: 0.15px;
}

/* ===== CONTACT PAGE ===== */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .2s ease;
}

.contact-info-item:hover {
    background: #f0f7ff;
    border-color: #bae6fd;
}

.contact-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0369a1;
    margin-bottom: 2px;
}

.contact-info-value {
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

#blazor-error-ui {
    display: none !important;
}

/* ===== OTP BOXES & FORGOT PASSWORD ===== */
.otp-container {
    margin: 16px 0 8px;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.otp-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #0369a1;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: all .2s ease;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.otp-box::-webkit-inner-spin-button,
.otp-box::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-box:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
    background: #f0f7ff;
}

.auth-input-readonly {
    background: #f8fafc !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    cursor: default;
    font-weight: 600;
}

.otp-resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13.5px;
}

.btn-link {
    background: transparent;
    border: none;
    padding: 0;
    color: #0284c7;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13.5px;
}

.btn-link:hover:not(:disabled) {
    color: #0369a1;
}

.btn-link:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
    margin-bottom: 16px;
}

.auth-badge.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
    transition: all .2s ease;
}

.step-dot.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.step-dot.done {
    background: #10b981;
    color: #ffffff;
}

.step-line {
    width: 32px;
    height: 2px;
    background: #e2e8f0;
}

.step-line.active {
    background: #0284c7;
}

@media (max-width: 480px) {
    .otp-boxes {
        gap: 6px;
    }
    .otp-box {
        width: 42px;
        height: 50px;
        font-size: 22px;
    }
}



