* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.22);
    border: 2px solid rgba(236, 72, 153, 0.65);
    padding: 12px 22px;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Clock (header) */
.header-clock {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.98);
    padding: 0;
    margin-right: 10px;
    user-select: none;
    line-height: 1.1;
}
.header-clock .clock-date{
    display:block;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

/* News Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.65);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.news-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(236, 72, 153, 0.18);
    border: 1px solid rgba(236, 72, 153, 0.28);
    padding: 6px 10px;
    border-radius: 10px;
    color: #ec4899;
    flex: 0 0 auto;
}

.news-track {
    overflow: hidden;
    flex: 1 1 auto;
    white-space: nowrap;
}

.news-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-marquee 22s linear infinite;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

@keyframes ticker-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sound-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.settings-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Statistics Cards */
.stats-container {
    display: grid;
    /* Responsive grid (supports adding more cards like CANCELLED) */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 40px 12px;
    flex: 0 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.stat-icon {
    font-size: 64px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #00ff88;
}

/* Prevent line breaks in the Total Weight card value */
#totalWeight {
    white-space: nowrap;
}

/* Filters */
.filters-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 22px;
    margin: 0 40px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex: 0 0 auto;
}

.filters-title {
    color: #ec4899;
    margin-bottom: 20px;
    font-size: 18px;
}

.filters-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.quick-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: #ec4899;
}

.filter-btn.active {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-color: #ec4899;
}

.clear-btn {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 25px;
    color: #ef4444;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Table */
.table-container {
    margin: 0 40px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex: 1;
    min-height: 0;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead tr {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.orders-table th {
    padding: 18px 15px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #ec4899;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #ec4899;
}

.orders-table td {
    padding: 18px 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.orders-table tbody tr {
    transition: all 0.3s;
}

.orders-table tbody tr:hover {
    background: rgba(236, 72, 153, 0.1);
}

.loading-cell {
    text-align: center;
    padding: 60px !important;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(236, 72, 153, 0.3);
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Badge */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-on-hold {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 20px;
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.3);
    transform: scale(1.05);
}

/* Product Link */
.product-link {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px dashed rgba(236, 72, 153, 0.3);
}

/* Products column (today report) */
.products-section {
    display: block;
}

.products-header {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.product-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.product-qty {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
    font-size: 12px;
}

/* Product list inside a cell */
.product-item {
    display: block;
    line-height: 1.35;
    margin: 2px 0;
    word-break: break-word;
}

.product-link:hover {
    color: #d946ef;
    border-bottom-color: #d946ef;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 40px;
    border-radius: 20px;
    width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-content h2 {
    color: #ec4899;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
}

.form-group input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Notification */

/* Center Notification Overlay */
.notification-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9998;
}
.notification-overlay.active{
    opacity: 1;
    pointer-events: auto;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #ec4899;
    border-radius: 20px;
    padding: 34px;
    display: flex;
    gap: 20px;
    align-items: center;
    min-width: 560px;
    max-width: 90vw;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.4);
    z-index: 9999;
    transition: all 0.3s;
}

.notification.active {
    transform: translate(-50%, -50%) scale(1);
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.notification-icon {
    font-size: 64px;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 26px;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 10px;
}

.notification-details {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.86);
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-close:hover {
    color: #ec4899;
}

/* Phone Button */
.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 20px;
    color: #FFD700;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.2px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
    transition: all 0.3s;
}

.phone-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

/* Shipping Badge *
.phone-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-edit-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.phone-edit-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}
/
.shipping-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Product Popup */
.product-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.product-popup.active {
    display: flex;
    animation: fadeIn 0.3s;
}

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

.product-popup-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 40px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
    border: 2px solid #ec4899;
    position: relative;
    animation: slideUp 0.3s;
}

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

.product-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-popup-close:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

.product-popup-title {
    color: #ec4899;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(236, 72, 153, 0.3);
}

.product-popup-body {
    color: #fff;
}

/* Product Info */
.product-info {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-info-row:last-child {
    border-bottom: none;
}

.product-info-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.product-info-value {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

/* Product Selections */
.product-selections {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.product-selections h3 {
    color: #ec4899;
    font-size: 18px;
    margin-bottom: 15px;
}

.product-selection-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-selection-item:last-child {
    border-bottom: none;
}

.selection-key {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.selection-value {
    font-size: 15px;
    color: #00ff88;
    font-weight: 700;
}

/* Popup Actions */
.product-popup-actions {
    text-align: center;
}

.btn-view-product {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view-product:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.5);
}

/* Product Image */
.product-image-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
}

.product-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    border: 2px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}


/* Sticky table header */
.orders-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}


/* App layout: prevent page scrolling; only table scrolls */
.app-root {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-root.locked {
    pointer-events: none;
    filter: blur(1px);
}

.modal-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 18px 0;
}

.modal-subtitle {
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.checkbox-row {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* PIN Lock Screen */
.pin-lock {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, rgba(236,72,153,0.18), transparent 40%),
                radial-gradient(circle at 80% 10%, rgba(139,92,246,0.18), transparent 35%),
                linear-gradient(135deg, #0b1220 0%, #0f172a 45%, #0b1220 100%);
    z-index: 20000;
}

.pin-lock.active {
    display: flex;
}

.pin-lock-card {
    width: 420px;
    max-width: calc(100% - 40px);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    padding: 32px 28px 26px;
    text-align: center;
    box-shadow: 0 18px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
}

.pin-lock-icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.pin-lock-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.pin-lock-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 18px;
}

.pin-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0 18px;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
}

.pin-dot.filled {
    background: #00ff88;
    border-color: rgba(0,255,136,0.6);
    box-shadow: 0 0 10px rgba(0,255,136,0.25);
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 86px);
    gap: 12px;
    justify-content: center;
    margin: 0 auto;
}

.pin-keypad-mini {
    grid-template-columns: repeat(3, 76px);
}

.pin-key {
    height: 62px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(30, 41, 59, 0.65);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
}

.pin-key:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(236,72,153,0.5);
}

.pin-key:active {
    transform: scale(0.98);
}

.pin-key-ghost {
    background: rgba(15, 23, 42, 0.35);
}

.pin-key-confirm {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-color: rgba(236,72,153,0.7);
}

.pin-lock-hint {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

.pin-shake {
    animation: pinShake 0.35s;
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* Status change UI */
.status-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.status-change-btn:hover {
    border-color: rgba(236,72,153,0.55);
    background: rgba(236, 72, 153, 0.12);
}

.status-change-icon {
    opacity: 0.8;
}

.status-modal-content {
    width: 520px;
}

.status-modal-meta {
    margin: 8px 0 18px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
}

.pin-mini {
    margin-top: 10px;
}

.main-content{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.pin-error{display:none;color:#ef4444;font-size:12px;margin-top:8px;}
.status-modal-actions{margin-top:14px;display:flex;justify-content:flex-end;}


/* Order date column */
.orders-table th:nth-child(2),
.orders-table td:nth-child(2){
    width: 120px;
    white-space: nowrap;
}
.order-date-cell{
    font-size: 12px;
    line-height: 1.15;
    color: rgba(255,255,255,0.9);
}
.order-date-cell .od-date{
    font-weight: 700;
}
.order-date-cell .od-time{
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}


/* Delivery schedule columns */
.delivery-day-cell, .time-slot-cell {
    font-weight: 700;
    color: #e9eefb;
    white-space: nowrap;
}



/* Payment method badge */
.payment-method-cell {
    white-space: nowrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, #0f172a 0%, #020617 60%, #0f172a 100%);
    border: 1px solid rgba(148,163,184,0.8);
    box-shadow: 0 0 20px rgba(56,189,248,0.35);
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}

.payment-badge.payment-oab {
    border-color: #22c55e;
    box-shadow: 0 0 24px rgba(34,197,94,0.5);
}

.payment-badge.payment-cod {
    border-color: #f97316;
    box-shadow: 0 0 18px rgba(249,115,22,0.45);
}

.payment-logo-wrap {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(15,23,42,0.6);
}

.payment-logo {
    max-width: 24px;
    max-height: 24px;
    display: block;
}

.payment-emoji {
    font-size: 16px;
}


/* Big NEW ORDER notification layout (full card) */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(145deg, #ec4899 0%, #6366f1 100%);
    border-radius: 32px;
    padding: 40px 48px;
    min-width: 520px;
    max-width: 620px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    color: #f9fafb;
    z-index: 9999;
}

.notification.active {
    transform: translate(-50%, -50%) scale(1);
    animation: bounce 0.5s;
}

.notification-icon {
    font-size: 56px;
    margin-bottom: 8px;
    animation: ring 2s infinite;
}

.notification-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.notification-title {
    display: none; /* title kept only for accessibility */
}

.notification-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Inner layout */
.notif-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.notif-customer {
    font-size: 28px;
    font-weight: 800;
    text-transform: lowercase;
}

.notif-order-id {
    font-size: 13px;
    opacity: 0.9;
}

.notif-product-box {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.22);
    font-size: 13px;
    line-height: 1.6;
}

.notif-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.8;
    margin-bottom: 4px;
}

.notif-product-text {
    font-size: 13px;
}

.notif-footer-row {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.notif-chip {
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-chip-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.85;
}

.notif-chip-value {
    font-size: 14px;
    font-weight: 700;
}

.notif-hint {
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.85;
}

.notification-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #f9fafb;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.notification-close:hover {
    opacity: 1;
    transform: scale(1.05);
}
