:root {
    --primary-color: #0ad593;
    --secondary-color: #00ced1;
    --primary-gradient: linear-gradient(135deg, #0ad593 0%, #00ced1 100%);
    --sidebar-gradient: linear-gradient(180deg, #0ad593 0%, #00a8a8 100%);
    --primary-hover: #08b981;
    --bg-light: #eafff7;
    --sidebar-width: 240px;
    --cart-width: 440px;
    --white: #f0fffb;
    --border-soft: #e0e6ed;
    --text-dark: #1a1e21;
    --text-muted: #9aa8b6;
    --border-soft: #f1f4f6;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);

    /* Product Card Pastels */
    --pastel-pink: #fff0f3;
    --pastel-yellow: #fff9eb;
    --pastel-blue: #f0f7ff;
    --pastel-purple: #f8f0ff;
    --pastel-green: #f0fff4;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.ms-pos-dashboard-wrapper {
    display: flex;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 99998;
    background: #f0f2f8;
}

#printable-receipt {
    display: none;
}

/* Sidebar Styling */
.pos-sidebar {
    width: var(--sidebar-width);
    background: var(--primary-gradient);
    color: var(--white);
    padding: 40px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 50px;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
}

.pos-sidebar nav ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.pos-sidebar nav ul li {
    margin-bottom: 10px;
}

.pos-sidebar nav ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.pos-sidebar nav ul li a.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
    font-weight: 700;
}

.pos-sidebar nav ul li a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateX(3px);
}

/* Center Content */
.pos-main-content {
    flex-grow: 1;
    background-color: var(--bg-light);
    padding: 40px;
    overflow-y: auto;
    color: var(--text-dark);
    /* Ensure it doesn't inherit white */
    border-radius: 40px 0 0 40px;
    margin-left: -20px;
    position: relative;
    z-index: 1;
}

.top-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 30px;
    background: linear-gradient(135deg, #0ad593 0%, #06b27d 100%);
    padding: 15px 35px;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(10, 213, 147, 0.2);
    min-height: 90px;
    box-sizing: border-box;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-logo {
    height: 55px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.header-logo-placeholder {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.6rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-company-name {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
    color: white !important;
    white-space: nowrap;
    letter-spacing: -0.03em;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.search-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    font-size: 0.95rem;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.filter-btn {
    background: #f4f7f9;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Filter Pills */
.filter-sections {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

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

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f4f7f9;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.pill.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Product Grid */
.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--pastel-blue);
    /* Default */
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.product-card:nth-child(even) {
    background: var(--pastel-pink);
}

.product-card:nth-child(3n) {
    background: var(--pastel-yellow);
}

.product-card:nth-child(4n) {
    background: var(--pastel-green);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rating-badge {
    background: #1a1e21;
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wishlist-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    font-size: 0.8rem;
    color: #ed4956;
}

.product-img-centered {
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.product-meta {
    text-align: left;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.product-weight {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Right Sidebar (Cart) */
.pos-cart-section {
    width: var(--cart-width);
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-soft);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: hidden;
    /* We handle scrolling inside children */
    transition: all 0.3s ease;
}

.pos-cart-section.drag-over {
    background: rgba(10, 213, 147, 0.05);
    border-left: 3px dashed var(--primary-color);
    box-shadow: inset 0 0 50px rgba(10, 213, 147, 0.1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    /* Reduced from 15px */
}

.cart-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.order-info-mini {
    background: #dffbf3;
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 10px;
}

.order-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-info-row span {
    color: var(--text-dark);
    font-weight: 500;
}

.customer-section select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa8b6' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.customer-section select:hover {
    border-color: var(--primary-color);
}

.modal-overlay {
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

.pay-method-btn {
    transition: all 0.2s ease;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text-muted);
    padding: 0 !important;
    /* Managed by style attribute in HTML */
}

.pay-method-btn.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(10, 213, 147, 0.2);
}

.pay-method-btn:hover:not(.active) {
    background: #edf2f7 !important;
    border-color: var(--primary-color) !important;
    color: var(--text-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#customers-table th {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 15px;
    background: var(--bg-light);
}

#customers-table td {
    padding: 15px;
    vertical-align: middle;
}

#customers-table tr:hover {
    background: #fcfdfe;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    height: 480px;
    /* Reduced for 5 compact horizontal items (~95px each) */
    padding-right: 5px;
}

/* Custom scrollbar for cart */
.cart-items-list::-webkit-scrollbar {
    width: 5px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.cart-item {
    display: flex !important;
    /* Ensure flex is active */
    align-items: center;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-soft);
}

.cart-item-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    background: #f4f7f9;
    border-radius: 15px;
    padding: 2px;
}

.cart-item-info h4 {
    /* Added */
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    font-weight: 700;
}

.cart-item-info p {
    /* Added */
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted) !important;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: auto;
    color: var(--text-dark) !important;
    /* Modified */
}

/* Modals & Forms */
#add-product-modal h3 {
    color: var(--primary-color) !important;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    color: var(--text-dark);
}

.drag-drop-zone {
    border: 2px dashed #e1e8ed;
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.cart-footer {
    border-top: 1px solid var(--border-soft);
    padding-top: 25px;
}

.total-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.total-display span:first-child {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.total-display span:last-child {
    font-size: 1.4rem;
    font-weight: 800;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: none;
    padding: 18px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(10, 213, 147, 0.3);
    transition: all 0.3s;
    display: block !important;
    visibility: visible !important;
}

.checkout-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    opacity: 0.6;
}

/* Modal Overlay */
#add-product-modal::before {
    content: "";
    position: fixed;
    top: -500%;
    left: -500%;
    width: 1000%;
    height: 1000%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(10, 213, 147, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 213, 147, 0.15) transparent;
}

/* Premium Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    color: var(--text-dark) !important;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group select {
    color: #1a1e21 !important;
    background-color: #ffffff !important;
}

.form-group select option {
    color: #1a1e21 !important;
    background-color: #ffffff !important;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%231a1e21' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background-color: #ffffff !important;
    color: #1a1e21 !important;
    box-shadow: 0 0 0 4px rgba(10, 213, 147, 0.1);
}

/* Offer Popup Menu */
.offer-popup {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 2000;
    width: 150px;
    border: 1px solid var(--border-soft);
    display: none;
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.offer-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.offer-tabs button {
    flex: 1;
    border: none;
    background: none;
    padding: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.offer-tabs button.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.offer-popup input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: right;
    box-sizing: border-box;
    outline: none;
}

.offer-popup input:focus {
    border-color: var(--primary-color);
}

.offer-apply-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.offer-apply-btn:hover {
    background: var(--primary-hover);
}

/* Customer Search Results */
#customer-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-soft);
    margin-top: 5px;
    display: none;
}

.customer-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.customer-result-item:hover {
    background: var(--bg-light);
}

.customer-result-item .name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.customer-result-item .phone {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Settings View Styles */
.settings-container {
    animation: fadeIn 0.4s ease-out;
}

#settings-form {
    transition: all 0.3s ease;
}

#company-logo-preview {
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#settings-form .form-group input,
#settings-form .form-group textarea {
    transition: all 0.2s ease;
}

#settings-form .form-group input:focus,
#settings-form .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(10, 213, 147, 0.1);
}

#settings-form .btn-primary:active {
    transform: scale(0.98);
}

/* Header Branding Styles */
.header-branding img {
    max-height: 65px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header-branding:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .header-branding span {
        display: none;
    }
}

/* Pending Review Overlay */
.pending-overlay {
    position: fixed;
    top: 0;
    left: 260px;
    /* Sidebar width */
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.pending-card {
    background: white;
    padding: 60px 40px;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
}

.pending-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.pending-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.pending-text {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

@media (max-width: 1024px) {
    .pending-overlay {
        left: 0;
    }
}

/* ============================================
   AUTH PAGES — Premium Login & Register
   ============================================ */

.pos-auth-page {
    position: fixed;
    inset: 0;
    display: flex;
    z-index: 99999;
    font-family: 'Outfit', 'Inter', sans-serif;
    background: #f0f2f8;
}

/* ---- LEFT PANEL (dark purple illustration) ---- */
.auth-left-panel {
    width: 42%;
    background: linear-gradient(160deg, #5E35B1 0%, #3949AB 50%, #6A1B9A 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 50px 44px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Big blurred orb top-left */
.auth-left-panel::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -160px;
    left: -100px;
}

/* Soft orb bottom-right */
.auth-left-panel::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(100, 60, 200, 0.4);
    border-radius: 50%;
    bottom: -80px;
    right: -80px;
}

/* CSS Illustration: Computer / POS screen */
.auth-illustration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.auth-illus-monitor {
    width: 240px;
    height: 160px;
    background: linear-gradient(135deg, #7C4DFF 0%, #448AFF 100%);
    border-radius: 18px;
    border: 6px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.auth-illus-monitor::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.auth-illus-bar {
    height: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
}

.auth-illus-bar:nth-child(1) {
    width: 60%;
    background: rgba(255, 255, 255, 0.5);
}

.auth-illus-bar:nth-child(2) {
    width: 80%;
}

.auth-illus-bar:nth-child(3) {
    width: 45%;
}

.auth-illus-bar:nth-child(4) {
    width: 70%;
}

/* Person silhouette */
.auth-illus-person {
    position: absolute;
    right: -30px;
    bottom: -10px;
    width: 110px;
    height: 180px;
}

/* Head */
.auth-illus-person::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF8A65 0%, #FF5252 100%);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Body */
.auth-illus-person::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 100px;
    background: linear-gradient(135deg, #5C6BC0 0%, #42A5F5 100%);
    border-radius: 35px 35px 10px 10px;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
}

/* Branding text bottom-left */
.auth-brand {
    position: relative;
    z-index: 3;
}

.auth-brand-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.auth-brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

.auth-brand-tagline {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0;
}

/* Hide features list in new design */
.auth-features {
    display: none;
}

/* ---- RIGHT PANEL (light bg + floating card + dots) ---- */
.auth-right-panel {
    flex: 1;
    background: #f0f2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    position: relative;
    overflow: hidden;
}

/* Decorative floating dots */
.auth-right-panel::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #E040FB;
    border-radius: 50%;
    top: 60px;
    right: 100px;
}

.auth-right-panel::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #FFEA00;
    border-radius: 50%;
    top: 120px;
    right: 60px;
}

/* Floating white card */
.auth-form-card {
    background: #fff;
    border-radius: 28px;
    padding: 50px 44px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(60, 60, 120, 0.12);
    position: relative;
    animation: authSlideUp 0.5s cubic-bezier(.16, 1, .3, 1);
    z-index: 2;
}

/* Extra decorative dots as pseudo-elements won't work on the card
   so we handle them via HTML span.auth-dot elements */

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dot decoration built from HTML */
.auth-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Form Header */
.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1e2e;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

/* Blue underline accent matching reference */
.auth-form-header .auth-accent-line {
    display: block;
    width: 42px;
    height: 4px;
    background: #2979FF;
    border-radius: 4px;
    margin-top: 4px;
}

.auth-form-header p {
    color: #8896AB;
    font-size: 0.95rem;
    margin: 10px 0 0;
}

/* Error message */
.auth-error-msg {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #C53030;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* Form rows — two columns on register page */
.auth-form {
    display: block;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-input-group {
    margin-bottom: 16px;
}

.auth-input-group.span-full {
    grid-column: 1 / -1;
}

.auth-input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.auth-input-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    background: #FAFBFD;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.auth-input-group input::placeholder {
    color: #CBD5E1;
}

.auth-input-group input:focus {
    border-color: #2979FF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.1);
}

/* Submit Button — bold blue matching reference */
.auth-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: #2979FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(41, 121, 255, 0.35);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.auth-submit-btn:hover {
    background: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(41, 121, 255, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Switch link */
.auth-switch-link {
    text-align: center;
    margin-top: 22px;
    font-size: 0.9rem;
    color: #8896AB;
}

.auth-switch-link a {
    color: #2979FF;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 860px) {
    .pos-auth-page {
        flex-direction: column;
    }

    .auth-left-panel {
        width: 100%;
        min-height: 220px;
        padding: 30px;
    }

    .auth-illustration {
        height: 220px;
    }

    .auth-right-panel {
        padding: 24px 16px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-form-card {
        padding: 36px 24px;
    }
}


/* --- Left Branding Panel --- */
.auth-left-panel {
    width: 45%;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.auth-left-panel::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

.auth-brand {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.auth-brand-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.auth-brand-name {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -0.5px;
}

.auth-brand-tagline {
    font-size: 1.1rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.auth-feature-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
}

/* --- Right Form Panel --- */
.auth-right-panel {
    flex: 1;
    background: #f8fffe;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    overflow-y: auto;
}

.auth-form-card {
    width: 100%;
    max-width: 440px;
    animation: authSlideUp 0.5s ease;
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
}

.auth-form-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.auth-error-msg {
    background: #fff1f1;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-input-group {
    margin-bottom: 18px;
}

.auth-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.auth-input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(10, 213, 147, 0.12);
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(10, 213, 147, 0.35);
    margin-top: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 213, 147, 0.45);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-switch-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-switch-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pos-auth-page {
        flex-direction: column;
    }

    .auth-left-panel {
        width: 100%;
        padding: 40px 30px 30px;
    }

    .auth-features {
        display: none;
    }

    .auth-right-panel {
        padding: 30px 20px;
    }
}

/* ============================================
   PRINT STYLES - Isolate the Receipt
   ============================================ */
@media print {
    @page {
        size: auto;
        margin: 5mm;
        /* Small margin for printers */
    }

    /* Reset background and layout for a clean white page */
    body,
    html {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* 
       AGGRESSIVE ISOLATION: 
       Hide every direct child of the body EXCEPT the printable receipt.
       This kills theme headers, footers, sidebars, and admin bars in one go.
    */
    body>*:not(#printable-receipt) {
        display: none !important;
    }

    /* Show only the printable receipt */
    #printable-receipt {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* Ensure all receipt content is visible */
    #printable-receipt * {
        visibility: visible !important;
    }

    /* Remove any transitions, animations, or shadows */
    * {
        transition: none !important;
        animation: none !important;
        box-shadow: none !important;
    }
}