/**
 * QBO Hacks - Dynamic Multi-Batch Early Bird Offer & Real-Time Countdown Styles
 * Matches dark/blue glassmorphism theme and responsive design
 */

/* ========================================================
   1. Sticky Top Announcement Bar
   ======================================================== */
.qbo-earlybird-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 105;
    background: linear-gradient(90deg, #090e17 0%, #0f1c3f 40%, #1e1b4b 75%, #090e17 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.qbo-topbar-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .qbo-topbar-inner {
        flex-wrap: nowrap;
        padding: 0.5rem 1.5rem;
    }
}

.qbo-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.qbo-topbar-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #67e8f9;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.qbo-topbar-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: qboPulse 1.8s infinite;
}

.qbo-topbar-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qbo-topbar-center {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qbo-countdown-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    display: none;
}

@media (min-width: 640px) {
    .qbo-countdown-label {
        display: inline;
    }
}

.qbo-countdown-units {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Plus Jakarta Sans', monospace;
}

.qbo-c-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 0.4rem;
    padding: 0.15rem 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.qbo-c-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
}

.qbo-c-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    font-family: 'Hind Siliguri', sans-serif;
}

.qbo-c-sep {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    opacity: 0.6;
}

.qbo-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.qbo-topbar-cta {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.qbo-topbar-cta:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

.qbo-topbar-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qbo-topbar-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================================
   2. Hero Section Dynamic Pill Badge
   ======================================================== */
.qbo-hero-eb-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    font-size: 0.825rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.qbo-hero-eb-pill:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
    color: #bae6fd;
}

.qbo-hero-eb-pill.expired {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    cursor: default;
}

.qbo-hero-timer-span {
    font-family: 'Plus Jakarta Sans', monospace;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.1rem 0.45rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ========================================================
   3. Batch Selector Dynamic Badge Card (Form Integration)
   ======================================================== */
.qbo-eb-form-card {
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    margin-top: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
}

.qbo-eb-form-card.active {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

.qbo-eb-form-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
    background-size: 200% 100%;
    animation: qboShimmer 3s infinite linear;
}

.qbo-eb-form-card.expired {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

.qbo-eb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.qbo-eb-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.725rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.qbo-eb-card-badge.active {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.qbo-eb-card-badge.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.qbo-eb-card-batch-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.qbo-eb-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.qbo-eb-form-card.active .qbo-eb-card-title {
    color: #f8fafc;
}

.qbo-eb-form-card.expired .qbo-eb-card-title {
    color: #334155;
}

.qbo-eb-card-sub {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.qbo-eb-form-card.active .qbo-eb-card-sub {
    color: #cbd5e1;
}

.qbo-eb-form-card.expired .qbo-eb-card-sub {
    color: #64748b;
}

.qbo-eb-timer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.qbo-eb-form-card.expired .qbo-eb-timer-bar {
    border-top: 1px solid #e2e8f0;
}

.qbo-timer-grid {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.qbo-t-pill {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 0.5rem;
    padding: 0.25rem 0.55rem;
    text-align: center;
    min-width: 3.2rem;
}

.qbo-t-num {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', monospace;
}

.qbo-t-lbl {
    display: block;
    font-size: 0.625rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.15rem;
    font-family: 'Hind Siliguri', sans-serif;
}

.qbo-eb-perk-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.qbo-eb-perk-tag.active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.qbo-eb-perk-tag.expired {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

/* ========================================================
   4. Smart Corner Toast Popup (Bottom Left)
   ======================================================== */
.qbo-earlybird-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 95;
    max-width: 23rem;
    width: calc(100vw - 3rem);
    background: linear-gradient(145deg, #090e17 0%, #0f1c3f 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 1.25rem;
    padding: 1.15rem;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.15);
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
    animation: qboToastSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.qbo-toast-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qbo-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.qbo-toast-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.qbo-toast-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
}

.qbo-toast-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
}

.qbo-toast-batch {
    font-size: 0.725rem;
    font-weight: 600;
    color: #38bdf8;
    margin: 0;
}

.qbo-toast-body {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.qbo-toast-timer {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 0.5rem;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.75rem;
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qbo-toast-footer {
    display: flex;
    align-items: center;
}

.qbo-toast-btn {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    text-align: center;
}

.qbo-toast-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

/* ========================================================
   5. Discreet Floating Admin Gear Button
   ======================================================== */
.qbo-admin-gear-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 80;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.qbo-admin-gear-btn:hover {
    background: rgba(15, 23, 42, 0.98);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

/* ========================================================
   6. In-App Admin Settings Drawer / Modal
   ======================================================== */
.qbo-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    animation: qboFadeIn 0.25s ease forwards;
}

.qbo-admin-drawer {
    width: 100%;
    max-width: 36rem;
    height: 100%;
    background: #0b1120;
    border-left: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    color: #f8fafc;
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
    animation: qboDrawerSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.qbo-drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.qbo-drawer-title-group h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.qbo-drawer-title-group p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.qbo-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qbo-drawer-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.qbo-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.qbo-batch-admin-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease;
}

.qbo-batch-admin-card:focus-within {
    border-color: rgba(56, 189, 248, 0.4);
}

.qbo-batch-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.qbo-batch-card-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: #f1f5f9;
}

/* Switch styling */
.qbo-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.qbo-toggle-input {
    appearance: none;
    width: 38px;
    height: 22px;
    background: #334155;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.25s ease;
}

.qbo-toggle-input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.qbo-toggle-input:checked {
    background: #0284c7;
}

.qbo-toggle-input:checked::after {
    transform: translateX(16px);
}

.qbo-toggle-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.qbo-form-group {
    margin-bottom: 0.75rem;
}

.qbo-form-group:last-child {
    margin-bottom: 0;
}

.qbo-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.qbo-form-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    background: #090e17;
    border: 1px solid #1e293b;
    border-radius: 0.65rem;
    color: #f8fafc;
    font-size: 0.825rem;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.qbo-form-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.qbo-drawer-footer {
    padding: 1.15rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.qbo-btn-save {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.qbo-btn-save:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.qbo-btn-reset {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qbo-btn-reset:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Animations */
@keyframes qboPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.15); }
}

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

@keyframes qboFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qboDrawerSlide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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