:root {
    --bg-color: #202020; /* Mica Dark Base */
    --surface-color: rgba(32, 32, 32, 0.7); /* Acrylic Layer */
    --surface-hover: rgba(45, 45, 45, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    --accent-color: #60cdff; /* System Accent (Blue) */
    --accent-hover: #74d8ff;
    --accent-pressed: #4cb3e6;
    
    --danger-color: #ff99a4;
    --success-color: #6ccb5f;
    --warning-color: #fce100;
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.14);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-neon: 0 0 10px rgba(96, 205, 255, 0.3);
    
    --font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    background-image: radial-gradient(circle at 50% 0%, #2d2d2d 0%, #202020 70%);
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 5px; 
    border: 2px solid var(--bg-color); 
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Common UI Elements */
.btn, .batch-btn {
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.btn:hover, .batch-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn:active, .batch-btn:active {
    transform: translateY(0);
    opacity: 0.8;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn.primary, .batch-btn-accent {
    border-color: var(--accent-color);
    background: rgba(96, 205, 255, 0.15);
    color: #9cdcfe;
    box-shadow: 0 0 10px rgba(96, 205, 255, 0.1);
}

.btn.primary:hover, .batch-btn-accent:hover {
    background: rgba(96, 205, 255, 0.25);
    box-shadow: 0 0 15px rgba(96, 205, 255, 0.25);
}

.btn.search {
    border-color: var(--warning-color);
    background: rgba(252, 225, 0, 0.15);
    color: #fffb8f;
}

.btn.search:hover {
    background: rgba(252, 225, 0, 0.25);
    box-shadow: 0 0 15px rgba(252, 225, 0, 0.25);
}

/* Toolbar & Search Panel */
.toolbar, .search-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.toolbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.search-primary-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.search-control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.search-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.search-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(96, 205, 255, 0.15);
}

.tabs {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.tab {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 0.9rem;
}

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

.tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Batch Bar */
.batch-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: rgba(32, 32, 32, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    position: sticky;
    top: 60px; /* Below header */
    z-index: 900;
}

.batch-bar-inactive {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(1);
}

.batch-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.batch-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    pointer-events: auto; /* Always clickable */
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.batch-group {
    display: flex;
    align-items: center;
}

.batch-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-right: none;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    height: 32px;
    box-sizing: border-box;
}

.batch-group .batch-btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    height: 32px;
    padding: 0 12px;
}

.batch-sep-vertical {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
}

.batch-em {
    color: var(--accent-color);
    font-weight: bold;
    margin: 0 4px;
}

/* Table */
.table-wrap, .table-wrapper {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden; /* Important for border-radius */
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

th {
    position: sticky;
    top: 0;
    background: rgba(32, 32, 32, 0.95); /* Slightly opaque for sticky */
    backdrop-filter: blur(10px);
    z-index: 2;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Order Page Specific Styles */
.col-select {
    width: 40px;
    text-align: center;
    padding: 10px 0;
}

.row-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

tr.row-selected td {
    background: rgba(96, 205, 255, 0.1) !important;
}

.rejected td {
    background: rgba(255, 77, 79, 0.1) !important;
}

.rejected-alert {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reject-reason {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-domain {
    background: rgba(96, 205, 255, 0.15);
    color: #9cdcfe;
    border: 1px solid rgba(96, 205, 255, 0.2);
}

.badge-audit {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.inline-edit {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inline-edit:hover {
    background: rgba(255, 255, 255, 0.08);
}

.inline-edit-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    outline: none;
    font-size: inherit;
    width: 100%;
    min-width: 80px;
}

.inline-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Goods Info in Table */
.goods-info-flat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.goods-jp-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.goods-zh-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.goods-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.goods-sn { color: var(--text-secondary); }
.goods-sku { color: var(--accent-color); }
.goods-quantity { color: var(--success-color); }
.goods-unit-price { color: var(--warning-color); font-weight: bold; }

.col-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
}

/* Img & Thumbs */
.img, .spec-thumb, .goods-image-cell {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.05);
    transition: transform 0.2s;
}

.img:hover, .spec-thumb:hover, .goods-image-cell:hover {
    transform: scale(1.5);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-color: var(--text-secondary);
}

.goods-image-placeholder {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--text-tertiary);
    font-size: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.muted { color: var(--text-tertiary); font-size: 0.85rem; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    margin-right: 4px;
    margin-bottom: 2px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* Order page pagination elements */
.page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.page-btn {
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Infinite Scroll Loader */
.infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    margin: 10px 0 6px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    border-radius: var(--radius-md);
}

.infinite-sentinel {
    height: 1px;
}

/* Spec Panel (Expand) */
.spec-row-tr td {
    padding: 0;
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid var(--border-color);
}

.spec-expand {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spec-expand.open {
    max-height: 1500px;
    opacity: 1;
    transform: translateY(0);
}

.spec-panel {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.2);
}

.spec-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.spec-grid:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
}

.spec-left {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.k {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Cart Floating UI */
.cart-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.cart-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(32, 32, 32, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.cart-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(96, 205, 255, 0.2), transparent 70%);
    opacity: 0.5;
}

.cart-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(96, 205, 255, 0.2);
    border-color: var(--accent-color);
    color: #fff;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 11px;
    font-weight: 800;
    background: var(--accent-color);
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cart-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    max-height: 600px;
    overflow: hidden;
    transform-origin: bottom right;
    animation: cartPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart-panel.open { display: flex; }

@keyframes cartPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cart-header {
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: background 0.2s;
}

.cart-item:hover {
    background: rgba(255,255,255,0.05);
}

.cart-item:last-child { margin-bottom: 0; }

.cart-item-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cart-item-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-remove:hover {
    color: var(--danger-color);
    background: rgba(255, 77, 79, 0.1);
}

/* Modals (Remark, Confirmation) */
.remark-modal-overlay, .confirmation-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 20000;
    padding: 20px;
}

/* Loading overlay - 右上角显示 */
.loading-overlay {
    display: none;
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: 30000 !important;
    padding: 0 !important;
    margin: 0 !important;
    inset: unset !important;
    transform: none !important;
}

.remark-modal, .confirmation-modal {
    width: min(700px, 90vw);
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.confirmation-modal { max-width: 800px; max-height: 85vh; }

.remark-modal-header, .confirmation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.remark-modal-title, .confirmation-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.remark-modal-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 180px;
    outline: none;
}

.remark-modal-actions, .confirmation-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.remark-modal-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
}

.remark-modal-btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.remark-modal-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.remark-modal-btn-ghost:active {
    transform: translateY(0);
}

.remark-modal-btn-primary {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.remark-modal-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

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

.remark-modal-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Confirmation Modal Specifics */
.confirmation-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.confirmation-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confirmation-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

.confirmation-card-header {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-card-customer { font-weight: bold; color: var(--text-primary); }
.confirmation-card-meta { font-size: 0.8rem; color: var(--text-secondary); margin-left: 8px; }

.confirmation-card-body { padding: 16px; }

.confirmation-content {
    white-space: pre-wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.6;
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.confirmation-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.confirmation-modal-close:hover { color: var(--text-primary); }

.glitch-loader {
    /* 使用和 toast 完全一样的样式 */
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    white-space: nowrap;

    /* 添加滑入动画 */
    animation: slideInFromRight 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 30000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    min-width: 200px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 3px solid var(--success-color);
}

.toast-error {
    border-left: 3px solid var(--danger-color);
}

.toast-warning {
    border-left: 3px solid var(--warning-color);
}
