/* Variables and Setup */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --bg-color: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-border: rgba(255, 255, 255, 0.1);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-blur: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface-border);
}

.section-title i {
    color: var(--primary);
}

/* Form Styles */
.product-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.input-wrapper input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 0.8rem 1rem 0.8rem 3rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-wrapper input::placeholder {
    color: #475569;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

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

.btn-success {
    background: var(--success);
    color: white;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-success:hover:not(:disabled) {
    background: var(--success-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 100%;
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger);
    color: white;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Cart Table */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-count {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th {
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    background: var(--surface);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-table tbody tr {
    transition: background 0.2s;
    animation: slideIn 0.3s ease-out;
}

.cart-table tbody tr:hover:not(.empty-state) {
    background: rgba(255, 255, 255, 0.03);
}

.empty-state td {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

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

.delete-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 8px;
}

.delete-btn:hover {
    background: var(--danger);
    color: white;
}

/* Summary Section */
.summary-details {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.summary-row:last-child {
    margin-bottom: 0;
}

.total-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--surface-border);
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
}

.total-row span:last-child {
    color: var(--success);
}

/* QR Code Section */
.qr-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-instruction {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.qr-box {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
    min-width: 220px;
    min-height: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.qr-box img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: zoomIn 0.4s ease-out;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 8px;
    gap: 1rem;
}

.qr-placeholder i {
    font-size: 3rem;
}

.qr-placeholder span {
    font-size: 0.9rem;
}

/* Loading Overlay for QR */
.qr-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

/* --- Buttons Extension --- */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* --- Product Preview --- */
.product-preview {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.preview-img-container {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info {
    text-align: center;
}

.preview-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.preview-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success);
}

.hidden {
    display: none !important;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--bg-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-lg {
    max-width: 950px;
}

.modal-body-split {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.modal-col-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--surface-border);
    padding-right: 2rem;
}

.modal-col-form h3, .modal-col-list h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-col-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-count-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.db-table-container {
    overflow-y: auto;
    max-height: 450px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
}

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

.db-table th {
    background: rgba(30, 41, 59, 0.9);
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.db-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    vertical-align: middle;
}

.db-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.db-img-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #1e293b;
}

/* Excel Collapsible */
.excel-import-section {
    border-top: 1px dashed var(--surface-border);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.excel-import-section h4 {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    user-select: none;
}

.excel-import-section h4:hover {
    color: var(--primary);
}

.excel-import-body {
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.excel-import-body .upload-zone {
    padding: 1.5rem 1rem;
    margin-bottom: 0;
}

.excel-import-body .upload-zone i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.excel-import-body .upload-zone p {
    font-size: 0.85rem;
}

/* --- Reports Modal Styles --- */
.report-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-summary-cards .card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.report-summary-cards .card i {
    font-size: 2.25rem;
    color: var(--primary);
}

.report-summary-cards .card span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.report-summary-cards .card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-body-full {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- Report Tabs --- */
.report-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    width: auto;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 2px solid var(--primary);
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1rem;
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.close-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0.2rem;
    width: auto;
    box-shadow: none;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-instruction {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.upload-zone {
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(99, 102, 241, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1.5rem;
}

.upload-zone:hover, .upload-zone.dragover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #818cf8;
}

.upload-zone i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-zone p {
    color: var(--text-main);
    font-weight: 500;
}

.hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.database-status {
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Responsive */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr 300px;
    }
    .input-section {
        grid-column: 1 / -1;
    }
    .cart-section {
        grid-column: 1;
    }
    .summary-section {
        grid-column: 2;
    }
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .cart-section, .summary-section {
        grid-column: 1 / -1;
    }
}

/* Smart Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.search-suggestions::-webkit-scrollbar {
    width: 4px;
}
.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}
.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.suggestion-item:hover, .suggestion-item.active {
    background: rgba(99, 102, 241, 0.15);
}

.suggestion-img {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    object-fit: cover;
    background: #1e293b;
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.suggestion-code {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.suggestion-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
}

/* Quick Products List */
.quick-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-top: 0.5rem;
}

.quick-products-list::-webkit-scrollbar {
    width: 4px;
}
.quick-products-list::-webkit-scrollbar-track {
    background: transparent;
}
.quick-products-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.quick-product-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.quick-product-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.quick-product-card img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #1e293b;
}

.quick-product-card .qp-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.2rem;
    line-height: 1.1rem;
}

.quick-product-card .qp-code {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 0.1rem;
}

.quick-product-card .qp-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

/* Account Settings Modal Styles */
#settingsModal .modal-content {
    max-width: 600px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.settings-qr-preview-box {
    border: 1px solid var(--surface-border);
    transition: all 0.3s ease;
}

.settings-qr-preview-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

#settingsModal .upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

#settingsModal .upload-zone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

#settingsModal .btn-danger {
    transition: all 0.2s ease;
}

#settingsModal .btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* Live Store Card Preview Styles */
.store-card-preview-container {
    perspective: 1000px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.store-card-preview {
    width: 100%;
    min-height: 170px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.store-card-preview:hover {
    transform: translateY(-4px) rotateX(1.5deg) rotateY(-1.5deg);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.store-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    transform: rotate(30deg);
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.store-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.store-card-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.store-card-badge.verified {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.store-card-badge.unverified {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.store-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    letter-spacing: 0.5px;
}

.store-card-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.35rem;
}

.store-card-info-row i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    width: 15px;
    text-align: center;
}

.store-card-info-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Enhanced Form Input Highlights */
.input-wrapper input:focus ~ i {
    color: var(--primary) !important;
}

.input-wrapper input {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.input-wrapper input:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(99, 102, 241, 0.1);
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
.animate-pulse {
    animation: pulse 1.5s infinite ease-in-out;
    display: inline-block;
}


/* --- CUSTOM PREMIUM TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    min-width: 400px;
    max-width: 600px;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #f8fafc;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.custom-toast.show {
    transform: scale(1);
    opacity: 1;
}

.custom-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.custom-toast-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.custom-toast.success::before {
    background: #10b981;
}
.custom-toast.success .custom-toast-icon {
    color: #10b981;
}
.custom-toast.success {
    border-color: rgba(16, 185, 129, 0.2);
}

.custom-toast.info::before {
    background: #6366f1;
}
.custom-toast.info .custom-toast-icon {
    color: #6366f1;
}
.custom-toast.info {
    border-color: rgba(99, 102, 241, 0.2);
}

.custom-toast.warning::before {
    background: #f59e0b;
}
.custom-toast.warning .custom-toast-icon {
    color: #f59e0b;
}
.custom-toast.warning {
    border-color: rgba(245, 158, 11, 0.2);
}

.custom-toast.error::before {
    background: #ef4444;
}
.custom-toast.error .custom-toast-icon {
    color: #ef4444;
}
.custom-toast.error {
    border-color: rgba(239, 68, 68, 0.2);
}

.custom-toast-content {
    flex-grow: 1;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
}

.custom-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.custom-toast-close:hover {
    color: #f1f5f9;
}

/* --- CUSTOM PREMIUM CONFIRM/ALERT DIALOGS --- */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    pointer-events: none;
}

.custom-confirm-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-confirm-modal {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 2rem;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-confirm-overlay.show .custom-confirm-modal {
    transform: scale(1) translateY(0);
}

.custom-confirm-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.custom-confirm-header i {
    font-size: 1.75rem;
    color: #fbbf24;
}

.custom-confirm-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.custom-confirm-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 1.75rem;
}

.custom-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.custom-confirm-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin: 0;
    width: auto;
}

.custom-confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.custom-confirm-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.custom-confirm-btn.confirm {
    background: #6366f1;
    color: #ffffff;
}

.custom-confirm-btn.confirm:hover {
    background: #4f46e5;
}

.custom-confirm-btn.confirm.danger {
    background: #ef4444;
}

.custom-confirm-btn.confirm.danger:hover {
    background: #dc2626;
}

/* --- Trạng thái hoạt động & Hoạt họa --- */
@keyframes pulse-emerald {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

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

.badge-status.offline {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    display: inline-block;
}

.pulse-dot.pulsing {
    animation: pulse-emerald 2s infinite;
}
