/*!
 * KitchenBot SG - Theme Styles
 * Custom styles & animations beyond Tailwind
 */

/* ─── Navbar Scroll Effect ──────────────────────── */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .main-navigation a {
    color: #475569 !important;
}

.site-header.scrolled .main-navigation a:hover {
    color: var(--color-primary) !important;
    background-color: #f1f5f9 !important;
}

.site-header.scrolled .site-branding span {
    color: #1E293B !important;
}

.site-header.scrolled #mobile-menu-toggle {
    color: #475569 !important;
}

.site-header.scrolled #mobile-menu-toggle:hover {
    background-color: #f1f5f9 !important;
}

/* ─── Hero Animations ──────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* ─── Custom Scrollbar ─────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ─── Mobile Menu Animation ────────────────────── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
    max-height: 600px;
}

/* ─── Prose Overrides ──────────────────────────── */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    scroll-margin-top: 100px;
}

.prose blockquote {
    font-style: normal;
    border-left-color: var(--color-primary);
    background: #F8FAFC;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

.prose pre {
    border-radius: 0.75rem;
}

.prose code {
    color: var(--color-secondary);
}

.prose code::before,
.prose code::after {
    content: '';
}

/* ─── KBSG Pagination ──────────────────────────── */
.kbsg-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.kbsg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
    background: #F8FAFC;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
}

.kbsg-pagination .page-numbers:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.kbsg-pagination .page-numbers.current {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.kbsg-pagination .page-numbers.next,
.kbsg-pagination .page-numbers.prev {
    background: white;
    border: 1px solid #E2E8F0;
}

.kbsg-pagination .page-numbers.next:hover,
.kbsg-pagination .page-numbers.prev:hover {
    border-color: var(--color-primary);
    background: white;
    color: var(--color-primary);
}

.kbsg-pagination .page-numbers.dots {
    background: transparent;
    border: none;
}

/* ─── Search Form ──────────────────────────────── */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form label {
    flex: 1;
}

.search-form .search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1E293B;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.search-form .search-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.search-form .search-submit {
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-form .search-submit:hover {
    background: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    transform: translateY(-1px);
}

/* ─── Comments ─────────────────────────────────── */
.comments-area {
    margin-top: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1.5rem;
    border-left: 2px solid #E2E8F0;
    padding-top: 0;
}

.comment-author {
    font-weight: 600;
    color: #1E293B;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.comment-meta {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
}

.comment-content p {
    color: #475569;
    line-height: 1.7;
    margin: 0.5rem 0;
}

.comment-reply-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.comment-reply-link:hover {
    color: var(--color-secondary);
}

.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background: #F8FAFC;
    border-radius: 1rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.375rem;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1E293B;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    margin-bottom: 1rem;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.comment-form .submit {
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-form .submit:hover {
    background: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    transform: translateY(-1px);
}

/* ─── Footer Widgets ───────────────────────────── */
.site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .widget ul li {
    margin-bottom: 0.5rem;
}

.site-footer .widget ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.site-footer .widget ul li a:hover {
    color: white;
}

.site-footer .widget .widget-title,
.site-footer .widget h4 {
    color: white;
}

/* ─── Elementor Compatibility ──────────────────── */
.kbsg-elementor-canvas {
    margin: 0;
    padding: 0;
}

.elementor-template-full-width .site-main,
.elementor-template-canvas .site-main {
    max-width: 100% !important;
    padding: 0 !important;
}

body.elementor-page .site-header {
    z-index: 999;
}

/* ─── Responsive Tweaks ────────────────────────── */
@media (max-width: 1023px) {
    .prose {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }
}

/* ─── Utility ──────────────────────────────────── */
.no-scroll {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ─── Product Cards ─────────────────────────────── */
.kbsg-product-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ecf1;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.kbsg-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(4, 30, 66, 0.1);
}
.kbsg-product-card .spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}
.kbsg-product-card .spec-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ─── Numbered Step Cards ───────────────────────── */
.kbsg-step-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #e8ecf1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kbsg-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(4, 30, 66, 0.08);
}
.kbsg-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #FFF0E8;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* ─── User Journey Step Tabs ────────────────────── */
.kbsg-journey-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.kbsg-journey-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #64748b;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.kbsg-journey-step:hover {
    background: #FFF0E8;
    color: var(--color-primary);
}
.kbsg-journey-step.active {
    background: #FFF0E8;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.kbsg-journey-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.kbsg-journey-step.active .step-num,
.kbsg-journey-step:hover .step-num {
    background: var(--color-primary);
    color: #fff;
}

/* ─── App Store Badges ──────────────────────────── */
.kbsg-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #041E42;
    color: #fff;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.kbsg-app-badge:hover {
    background: #031830;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 30, 66, 0.3);
    color: #fff;
    text-decoration: none;
}

/* ─── Session Highlight Cards ───────────────────── */
.kbsg-session-card {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #e8ecf1;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.kbsg-session-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(4, 30, 66, 0.1);
}
.kbsg-session-card .session-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: #FFF0E8;
    margin-bottom: 1.25rem;
    transition: all 0.35s ease;
}
.kbsg-session-card:hover .session-icon {
    background: var(--color-primary);
    color: #fff;
}
.kbsg-session-card:hover .session-icon svg {
    stroke: #fff;
}

/* ─── Partner Form Container ────────────────────── */
.kbsg-partner-form {
    max-width: 580px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(4, 30, 66, 0.06), 0 1px 3px rgba(4, 30, 66, 0.04);
    border: 1px solid #e8ecf1;
}
.kbsg-partner-form .kbsg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 480px) {
    .kbsg-partner-form .kbsg-form-row {
        grid-template-columns: 1fr;
    }
}
.kbsg-partner-form .kbsg-form-group {
    margin-bottom: 1.25rem;
}
.kbsg-partner-form label,
.kbsg-partner-form .wpcf7-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.kbsg-partner-form .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}
.kbsg-partner-form .wpcf7-form input[type="text"],
.kbsg-partner-form .wpcf7-form input[type="email"],
.kbsg-partner-form .wpcf7-form input[type="tel"],
.kbsg-partner-form .wpcf7-form input[type="date"],
.kbsg-partner-form .wpcf7-form select,
.kbsg-partner-form .wpcf7-form textarea,
.kbsg-partner-form .kbsg-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
}
.kbsg-partner-form .wpcf7-form input[type="text"]:focus,
.kbsg-partner-form .wpcf7-form input[type="email"]:focus,
.kbsg-partner-form .wpcf7-form input[type="tel"]:focus,
.kbsg-partner-form .wpcf7-form input[type="date"]:focus,
.kbsg-partner-form .wpcf7-form select:focus,
.kbsg-partner-form .wpcf7-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 103, 31, 0.12);
    background: #fff;
}
.kbsg-partner-form .wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.kbsg-partner-form .wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

.kbsg-partner-form .kbsg-form-placeholder {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-family: 'Courier New', monospace;
    color: #94a3b8;
    background: #f8fafc;
    user-select: all;
}

.kbsg-partner-form .wpcf7-submit {
    width: 100%;
    padding: 0.9375rem 2rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.kbsg-partner-form .wpcf7-submit:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 8px 24px rgba(255, 103, 31, 0.35);
    transform: translateY(-1px);
}

.kbsg-partner-form .kbsg-submit-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9375rem 2rem;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.875rem;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.kbsg-partner-form .wpcf7-response-output {
    margin: 1.25rem 0 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600;
    text-align: center;
}
.kbsg-partner-form .wpcf7-response-output.wpcf7-mail-sent-ok,
.kbsg-partner-form .wpcf7-response-output.wpcf7-mail-sent-ng {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0 !important;
}
.kbsg-partner-form .wpcf7-response-output.wpcf7-validation-errors {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA !important;
}
.kbsg-partner-form .wpcf7-spinner {
    display: none;
}

.kbsg-partner-form .kbsg-form-note {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8125rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.kbsg-partner-form .wpcf7 {
    margin: 0;
    padding: 0;
}
.kbsg-partner-form .wpcf7-form > p {
    margin: 0 0 1.25rem;
}
.kbsg-partner-form .wpcf7-form > p:last-of-type {
    margin-bottom: 0;
}
.kbsg-partner-form .wpcf7-form br {
    display: none;
}
.kbsg-partner-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.25rem;
}
.kbsg-partner-form .wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #DC2626;
    margin-top: 0.375rem;
    font-weight: 500;
}
.kbsg-partner-form .wpcf7-form-control-wrap input.wpcf7-not-valid,
.kbsg-partner-form .wpcf7-form-control-wrap select.wpcf7-not-valid {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ─── Technology Process Steps ──────────────────── */
.kbsg-tech-process {
    counter-reset: tech-step;
}
.kbsg-tech-step {
    counter-increment: tech-step;
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2.5rem;
}
.kbsg-tech-step::before {
    content: '0' counter(tech-step);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.kbsg-tech-step:last-child {
    margin-bottom: 0;
}

/* ─── Demo Simulation UI ────────────────────────── */
.kbsg-kiosk {
    max-width: 560px;
    margin: 0 auto;
    background: #041E42;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(4, 30, 66, 0.3), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.kbsg-kiosk-header {
    background: #020D1F;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.kbsg-kiosk-header .kiosk-title {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.kbsg-kiosk-header .kiosk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.kbsg-kiosk-body {
    padding: 2rem 1.5rem;
}

.kbsg-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.kbsg-menu-item {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 1rem 0.875rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
}
.kbsg-menu-item:hover {
    background: rgba(255,103,31,0.1);
    border-color: rgba(255,103,31,0.3);
    transform: translateY(-2px);
}
.kbsg-menu-item.selected {
    background: rgba(255,103,31,0.15);
    border-color: #FF671F;
    box-shadow: 0 0 0 2px rgba(255,103,31,0.2);
}
.kbsg-menu-item .menu-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.kbsg-menu-item .menu-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.kbsg-menu-item .menu-price {
    color: #FF671F;
    font-weight: 600;
    font-size: 0.8125rem;
}
.kbsg-menu-item .menu-desc {
    color: rgba(255,255,255,0.4);
    font-size: 0.6875rem;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.kbsg-code-display {
    display: inline-flex;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}
.kbsg-code-digit {
    width: 3.25rem;
    height: 4.5rem;
    background: #020D1F;
    border: 1px solid rgba(255,255,255,0.1);
    color: #FF671F;
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.kbsg-code-digit.rolling {
    animation: digitRoll 0.3s ease;
}
@keyframes digitRoll {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

.kbsg-pin-inputs {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.kbsg-pin-box {
    width: 3.5rem;
    height: 4.25rem;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 0.75rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #fff;
    background: rgba(255,255,255,0.04);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.kbsg-pin-box:focus {
    border-color: #FF671F;
    box-shadow: 0 0 0 3px rgba(255, 103, 31, 0.25);
}
.kbsg-pin-box.success {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.kbsg-pin-box.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pinShake 0.4s ease;
}
@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.kbsg-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 260px;
    margin: 0 auto;
}
.kbsg-numpad-btn {
    padding: 0.875rem 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.kbsg-numpad-btn:hover {
    background: rgba(255,103,31,0.2);
    border-color: rgba(255,103,31,0.4);
}
.kbsg-numpad-btn:active {
    transform: scale(0.95);
    background: #FF671F;
}
.kbsg-numpad-btn.clear {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
    font-size: 0.8125rem;
}
.kbsg-numpad-btn.clear:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #EF4444;
}
.kbsg-numpad-btn.ok {
    background: #10B981;
    border-color: #059669;
    color: #fff;
}
.kbsg-numpad-btn.ok:hover {
    background: #059669;
}

.kbsg-flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: flashPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-top: 0.75rem;
}
@keyframes flashPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.kbsg-dispenser-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.kbsg-dispenser-light {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 3px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.kbsg-dispenser-light.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    animation: lightPulse 0.8s ease-in-out infinite;
}
@keyframes lightPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

.kbsg-dispenser-slot {
    width: 220px;
    height: 130px;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}
.kbsg-dispenser-slot:hover {
    border-color: rgba(255,103,31,0.5);
    background: rgba(255,103,31,0.05);
}
.kbsg-dispenser-slot .meal-box {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #FF671F, #FF8C4A);
    border-radius: 0.5rem 0.5rem 0 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}
.kbsg-dispenser-slot.dispensing .meal-box {
    transform: translateY(0);
}

.kbsg-kiosk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #FF671F;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(255, 103, 31, 0.35);
}
.kbsg-kiosk-btn:hover {
    background: #E55A1A;
    box-shadow: 0 12px 32px rgba(255, 103, 31, 0.45);
    transform: translateY(-1px);
}
.kbsg-kiosk-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.kbsg-kiosk-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.5;
}
.kbsg-kiosk-text.heading {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* ─── CTA Section Fallback ──────────────────────── */
#kbsg-cta {
    background-color: #041E42 !important;
    color: #ffffff !important;
}

#kbsg-cta h2 {
    color: #ffffff !important;
}

#kbsg-cta .text-blue-200\/80 {
    color: #bfdbfe !important;
}

#kbsg-cta .text-secondary {
    color: #041E42 !important;
}

#kbsg-cta .text-white {
    color: #ffffff !important;
}

#kbsg-cta .border-white\/30 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}
