/* =========================================================================
   USORDER.VN - CUSTOM STUDIO DARK THEME FOR HTML5 UP STORY TEMPLATE
   ========================================================================= */

html, body {
    background-color: #0b1120 !important;
    color: #cbd5e1;
}

body, input, select, textarea {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#wrapper {
    background-color: #0b1120;
}

#wrapper > .invert {
    background-color: #0b1120;
    color: #cbd5e1;
}

#wrapper > .spotlight.invert:nth-of-type(even) {
    background-color: #0e1629;
}

#wrapper.divided > * {
    box-shadow: inset 0 1px 0 0 rgba(148, 163, 184, 0.14) !important;
}

#wrapper > .invert h1,
#wrapper > .invert h2,
#wrapper > .invert h3,
#wrapper > .invert h4,
#wrapper > .invert h5,
#wrapper > .invert h6 {
    color: #f8fafc;
}

#wrapper > .invert strong,
#wrapper > .invert b {
    color: #f8fafc;
    font-weight: 600;
}

#wrapper > .invert p {
    color: #cbd5e1;
}

#wrapper > .invert input[type="text"],
#wrapper > .invert input[type="email"],
#wrapper > .invert input[type="tel"],
#wrapper > .invert select,
#wrapper > .invert textarea {
    background-color: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}

#wrapper > .invert ::-webkit-input-placeholder {
    color: #64748b !important;
}
#wrapper > .invert :-moz-placeholder {
    color: #64748b !important;
}
#wrapper > .invert ::-moz-placeholder {
    color: #64748b !important;
}
#wrapper > .invert :-ms-input-placeholder {
    color: #64748b !important;
}
#wrapper > .invert ::placeholder {
    color: #64748b !important;
}

#wrapper > .invert input[type="submit"],
#wrapper > .invert input[type="button"],
#wrapper > .invert button,
#wrapper > .invert .button {
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.35);
    color: #f8fafc !important;
}

#wrapper > .invert input[type="submit"]:hover,
#wrapper > .invert input[type="button"]:hover,
#wrapper > .invert button:hover,
#wrapper > .invert .button:hover {
    box-shadow: inset 0 0 0 1px #38bdf8;
    color: #38bdf8 !important;
}

#wrapper > .invert input[type="submit"].primary,
#wrapper > .invert button.primary,
#wrapper > .invert .button.primary {
    background-color: #0ea5e9;
    box-shadow: none;
    color: #0b1120 !important;
    font-weight: 700;
}

#wrapper > .invert input[type="submit"].primary:hover,
#wrapper > .invert button.primary:hover,
#wrapper > .invert .button.primary:hover {
    background-color: #38bdf8;
    color: #0b1120 !important;
}

#wrapper > .invert .icon.style2:before {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
    color: #38bdf8;
}

#wrapper > .invert .items.style1 > * {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

#wrapper > .invert .items.style1 > *:before {
    background-color: rgba(148, 163, 184, 0.16) !important;
}

#wrapper > .invert table tbody tr {
    border-color: rgba(148, 163, 184, 0.14);
    background-color: #0f172a;
}

#wrapper > .invert table tbody tr:nth-child(2n + 1) {
    background-color: #132038;
}

#wrapper > .invert table tbody tr:hover {
    background-color: rgba(56, 189, 248, 0.1);
}

#wrapper > .invert table.alt tbody tr td {
    border-color: rgba(148, 163, 184, 0.14);
}

/* Ép ảnh luôn hiển thị sắc nét, không bị opacity: 0 do is-preload hoặc scrollex */
.banner .image img,
.spotlight .image img,
.gallery article .image img,
.gallery article .image {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

body.is-preload .banner .image img,
body.is-preload .spotlight .image img,
body.is-preload .gallery article .image img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================================================================
   RANDOM PRODUCT IMAGE INFINITE SLIDER
   ========================================================================= */
.product-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.product-slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scrollProductSlider 30s linear infinite;
}

.product-slider-wrapper:hover .product-slider-track {
    animation-play-state: paused;
}

.product-slider-item {
    width: 200px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-slider-item:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #38bdf8;
}

.product-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-slider-item:hover img {
    transform: scale(1.08);
}

/* Product table thumbnail */
.prod-table-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prod-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: block;
}

.prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.prod-thumb:hover img {
    transform: scale(1.15);
}

@keyframes scrollProductSlider {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 8px)); }
}

/* Brand badge in banner */
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.brand-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    animation: pulse-dot 2s infinite;
}

/* Hero Gift Banner for AutoKey AI */
.hero-gift-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fef3c7 !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    margin: 0 0 1.5rem 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-gift-banner:hover {
    transform: translateY(-2px);
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.18);
    color: #ffffff !important;
}

.hero-gift-banner strong {
    color: #fbbf24 !important;
    font-weight: 700;
}

.hero-gift-banner .gift-arrow {
    color: #38bdf8;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================================
   AUTOKEY AI GIFT PROMO SECTION
   ========================================================================= */
.autokey-promo-card {
    background: linear-gradient(145deg, rgba(17, 28, 51, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.autokey-promo-card::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    height: 220px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
    pointer-events: none;
}

.autokey-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.autokey-promo-card h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
}

.autokey-promo-card h2 span {
    color: #38bdf8;
}

.autokey-promo-desc {
    max-width: 780px;
    margin: 0 auto 2rem auto;
    font-size: 1rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.autokey-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin: 0 0 2rem 0;
    text-align: left;
}

.autokey-feat-item {
    background: rgba(11, 17, 32, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 1.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.autokey-feat-item:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

.autokey-feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.autokey-feat-item.is-gift .autokey-feat-icon {
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

.autokey-feat-item h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.autokey-feat-item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #94a3b8;
}

.autokey-promo-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Compact Gift Box on Product Detail Page (picture.php) */
.autokey-gift-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    margin: 0 0 1.5rem 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.38);
    text-align: left;
}

.autokey-gift-box-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 1.2rem;
}

.autokey-gift-box-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.autokey-gift-box-title {
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.autokey-gift-box-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #38bdf8 !important;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none !important;
}

.autokey-gift-box-link:hover {
    text-decoration: underline !important;
    color: #7dd3fc !important;
}

@media screen and (max-width: 640px) {
    .autokey-promo-card {
        padding: 1.75rem 1.25rem;
    }
    .autokey-promo-card h2 {
        font-size: 1.5rem;
    }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Meta stats badge bar */
.meta-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.25rem 0 1.75rem 0;
}

.meta-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.85rem;
    color: #cbd5e1;
}

.meta-stat-item strong {
    color: #38bdf8 !important;
    font-weight: 700;
}

.meta-stat-item.online-stat strong {
    color: #4ade80 !important;
}

/* Category Filter Nav */
.category-nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 2rem 0 3rem 0;
}

.cat-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #111c33;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0 !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-nav-btn:hover {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0b1120 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

.cat-nav-btn .cat-count {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cat-nav-btn:hover .cat-count {
    background: rgba(11, 17, 32, 0.22);
    color: #0b1120;
}

/* Category Section Blocks */
.category-block {
    background: #111c33;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: left;
    transition: border-color 0.2s ease;
}

.category-block:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.category-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding-bottom: 1rem;
}

.category-header-wrap h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-tag-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.category-prod-count {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Table Enhancements */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.table-wrapper table {
    margin: 0;
    width: 100%;
}

.table-wrapper table th {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e2e8f0;
    white-space: nowrap;
    background: #172540;
    padding: 0.85rem 0.75rem;
}

.table-wrapper table td {
    vertical-align: middle;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.prod-name-link {
    font-weight: 600;
    color: #f8fafc !important;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prod-name-link:hover {
    color: #38bdf8 !important;
    text-decoration: underline;
}

.price-cell {
    font-weight: 700;
    font-size: 1.08rem;
    color: #fbbf24;
    white-space: nowrap;
    text-align: right;
    letter-spacing: 0.01em;
}

/* Condition Badges */
.cond-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cond-badge.cond-new {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.cond-badge.cond-used {
    background: rgba(250, 204, 21, 0.15);
    color: #fde047;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.cond-badge.cond-other {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #7dd3fc !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.photo-btn:hover {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0b1120 !important;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.contact-card {
    background: #111c33;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-card.zalo .contact-card-icon {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.contact-card.hotline .contact-card-icon {
    background: rgba(249, 115, 22, 0.16);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.35);
}

.contact-card.facebook .contact-card-icon {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.contact-card h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
}

.contact-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.contact-card .btn-connect {
    margin-top: 1rem;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.contact-card:hover .btn-connect {
    background: #38bdf8;
    color: #0b1120;
}

/* =========================================================================
   FLOATING AI CHAT WIDGET (USORDER AI)
   ========================================================================= */

#ai-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 370px;
    max-width: calc(100vw - 32px);
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    color: #f1f5f9;
}

#ai-chat-widget .ai-chat-header {
    position: relative;
    padding: 14px 46px 14px 16px;
    background: linear-gradient(135deg, #172540, #0f172a);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    flex-shrink: 0;
}

#ai-chat-widget .ai-chat-header strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #38bdf8;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

#ai-chat-widget .ai-chat-header > span:not(#ai-chat-close) {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    line-height: 1.35;
}

#ai-chat-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    cursor: pointer;
    font-weight: 600;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.06);
    line-height: 1 !important;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

#ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #f8fafc !important;
}

#ai-chat-body.ai-chat-body {
    height: 320px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 14px;
    background: #0b1120;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#ai-chat-body::-webkit-scrollbar {
    width: 6px;
}

#ai-chat-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
}

#ai-chat-widget .ai-msg {
    padding: 10px 14px;
    border-radius: 14px;
    margin: 0;
    line-height: 1.5;
    font-size: 13.5px;
    word-break: break-word;
    max-width: 88%;
}

#ai-chat-widget .ai-msg strong {
    color: #f8fafc;
    font-weight: 600;
}

#ai-chat-widget .ai-msg-bot {
    align-self: flex-start;
    background: #172540;
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
}

#ai-chat-widget .ai-msg-user {
    align-self: flex-end;
    background: #0284c7;
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #ffffff;
    text-align: left;
    border-bottom-right-radius: 4px;
}

#ai-chat-form.ai-chat-form {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 12px !important;
    background: #111c33;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    flex-shrink: 0;
}

#ai-chat-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 40px !important;
    line-height: 40px !important;
    background: #0b1120 !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 999px !important;
    color: #f8fafc !important;
    padding: 0 15px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    outline: none !important;
    box-shadow: none !important;
}

#ai-chat-input::placeholder {
    color: #64748b !important;
    opacity: 1;
}

#ai-chat-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

#ai-chat-form button[type="submit"] {
    flex: 0 0 auto !important;
    background: #38bdf8 !important;
    color: #0b1120 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    height: 40px !important;
    line-height: 40px !important;
    min-width: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background 0.15s ease;
}

#ai-chat-form button[type="submit"]:hover {
    background: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Floating Toggle Button */
#ai-chat-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px !important;
    height: 58px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0284c7, #22c55e) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55) !important;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ai-chat-toggle:hover {
    transform: scale(1.08);
    color: #ffffff !important;
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.45) !important;
}

@media screen and (max-width: 480px) {
    #ai-chat-widget {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
    #ai-chat-toggle {
        right: 14px;
        bottom: 14px;
    }
}

/* Footer Admin & Online counter */
.footer-meta {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-meta a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-meta a:hover {
    color: #38bdf8 !important;
    text-decoration: underline;
}

.footer-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 999px;
}

/* =========================================================================
   IMAGE LIGHTBOX POPUP (GALLERY & SLIDER)
   ========================================================================= */
body.ulb-no-scroll {
    overflow: hidden;
}

.usorder-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    outline: none;
    padding: 24px 64px;
}

.usorder-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.usorder-lightbox .ulb-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.usorder-lightbox .ulb-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    background: #0f172a;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.usorder-lightbox .ulb-img.is-ready {
    opacity: 1;
    transform: scale(1);
}

.usorder-lightbox .ulb-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    text-align: center;
    max-width: 85vw;
}

.usorder-lightbox .ulb-counter {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.usorder-lightbox .ulb-close,
.usorder-lightbox .ulb-nav {
    position: fixed;
    border: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1 !important;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 100001;
}

.usorder-lightbox .ulb-close {
    top: 18px;
    right: 22px;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    border-radius: 50% !important;
    font-size: 28px !important;
}

.usorder-lightbox .ulb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px !important;
    height: 48px !important;
    min-width: 0 !important;
    border-radius: 50% !important;
    font-size: 32px !important;
}

.usorder-lightbox .ulb-prev {
    left: 18px;
}

.usorder-lightbox .ulb-next {
    right: 18px;
}

.usorder-lightbox .ulb-close:hover,
.usorder-lightbox .ulb-nav:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

@media screen and (max-width: 640px) {
    .usorder-lightbox {
        padding: 16px 12px;
    }
    .usorder-lightbox .ulb-img {
        max-width: 94vw;
        max-height: 76vh;
    }
    .usorder-lightbox .ulb-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 26px !important;
    }
    .usorder-lightbox .ulb-prev {
        left: 8px;
    }
    .usorder-lightbox .ulb-next {
        right: 8px;
    }
}
