/* ============================================
   WALLHACK SP-004 STOCK MONITOR - STYLES
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 28, 0.7);
    --bg-card-hover: rgba(24, 24, 38, 0.8);
    
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    
    --accent-primary: #6c5ce7;
    --accent-secondary: #a855f7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.3);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --info: #3b82f6;
    --info-glow: rgba(59, 130, 246, 0.3);
    
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.app {
    position: relative;
    min-height: 100vh;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.08;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo svg {
    color: var(--accent-primary);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid var(--border);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.offline {
    background: var(--text-muted);
}

.status-dot.monitoring {
    background: var(--success);
    box-shadow: 0 0 8px var(--success-glow);
    animation: blink 1.5s infinite;
}

.status-dot.found {
    background: var(--warning);
    box-shadow: 0 0 12px var(--warning-glow);
    animation: blink 0.4s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Main */
.main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* URL Input Section */
.url-input-section {
    padding: 20px 24px;
}

.url-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.url-input-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.url-input-header h2 svg {
    color: var(--accent-primary);
}

.url-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.url-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

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

.url-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.url-input-wrapper input[type="url"] {
    width: 100%;
    padding: 12px 40px 12px 42px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition-fast);
}

.url-input-wrapper input[type="url"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.06);
}

.url-input-wrapper input[type="url"]::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-clear-url {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 1;
}

.btn-clear-url:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-load {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
    flex-shrink: 0;
}

.btn-load:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.35);
}

.btn-load:active:not(:disabled) {
    transform: translateY(0);
}

.btn-load.loading {
    pointer-events: none;
    opacity: 0.7;
}

.url-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.url-presets-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.url-preset-btn {
    padding: 4px 12px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.url-preset-btn:hover {
    background: rgba(108, 92, 231, 0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.url-preset-btn.active {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Product Card */
.product-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    padding: 24px;
    overflow: hidden;
}

.product-image-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    backdrop-filter: blur(8px);
}

.product-badge.in-stock {
    background: rgba(34, 197, 94, 0.85);
    animation: pulseGreen 1s infinite;
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 20px 5px rgba(34, 197, 94, 0.3); }
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.product-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.spec-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 4px;
}

.price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Monitor Panel */
.monitor-panel {
    padding: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-header h2 svg {
    color: var(--accent-primary);
}

.check-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid var(--border);
}

/* Status Display */
.status-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.status-icon-container {
    position: relative;
    flex-shrink: 0;
}

.status-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.status-icon.offline {
    background: rgba(85, 85, 112, 0.15);
    color: var(--text-muted);
}

.status-icon.monitoring {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.status-icon.found {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    box-shadow: 0 0 40px var(--success-glow);
    animation: celebrate 0.5s ease-in-out;
}

.status-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}

.pulse-ring.active {
    animation: pulseRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    border-color: var(--accent-primary);
}

.pulse-ring.found {
    animation: pulseRing 0.7s cubic-bezier(0, 0, 0.2, 1) infinite;
    border-color: var(--success);
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Settings */
.settings-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.setting-item label svg {
    color: var(--text-muted);
}

.setting-item input[type="number"] {
    width: 60px;
    padding: 6px 10px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    outline: none;
    transition: border-color var(--transition-fast);
}

.setting-item input[type="number"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    top: 3px;
    left: 3px;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

/* Controls */
.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-start {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    flex: 1;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-start:active:not(:disabled) {
    transform: translateY(0);
}

.btn-stop {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 20px;
}

.btn-stop:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.btn-checkout {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 12px 20px;
}

.btn-checkout:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-1px);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Checkout Info Panel */
.checkout-panel {
    padding: 0;
    overflow: hidden;
}

.checkout-header {
    cursor: pointer;
    padding: 20px 24px;
    margin-bottom: 0;
    user-select: none;
    transition: background var(--transition-fast);
}

.checkout-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.chevron-icon {
    color: var(--text-muted);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.chevron-icon.open {
    transform: rotate(180deg);
}

.checkout-saved-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 8px;
    vertical-align: middle;
}

.checkout-body {
    padding: 0 24px 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
}

.checkout-body.open {
    max-height: 800px;
    opacity: 1;
    padding: 0 24px 24px;
}

.checkout-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.checkout-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.checkout-section-label:first-of-type {
    margin-top: 0;
}

.checkout-section-label svg {
    color: var(--accent-primary);
    opacity: 0.7;
}

.checkout-fields-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-field.full { flex: 1; }
.checkout-field.half { flex: 1; }
.checkout-field.third { flex: 1; }

.checkout-field label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.checkout-field input,
.checkout-field select {
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition-fast);
    width: 100%;
}

.checkout-field input:focus,
.checkout-field select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.06);
}

.checkout-field input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.checkout-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.checkout-field select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.checkout-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-save-checkout {
    flex: 1;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.btn-save-checkout:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.35);
}

.btn-clear-checkout {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 10px 16px;
}

.btn-clear-checkout:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}

/* Payment Section */
.payment-secure-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.payment-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Card Quick-Copy Popup */
.card-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.card-popup {
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.card-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-popup-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-popup-header h3 svg {
    color: var(--warning);
}

.card-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.card-popup-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-popup-field:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
}

.card-popup-field-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-popup-field-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.card-popup-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-popup-copy-btn:hover {
    background: rgba(108, 92, 231, 0.2);
}

.card-popup-copy-btn.copied {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.card-popup-tip {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Log Panel */
.log-panel {
    padding: 20px 24px;
}

.log-container {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 8px;
}

.log-container::-webkit-scrollbar {
    width: 4px;
}

.log-container::-webkit-scrollbar-track {
    background: transparent;
}

.log-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.5;
    animation: fadeSlideIn 0.3s ease-out;
    border-left: 2px solid transparent;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.log-entry.info { border-left-color: var(--info); }
.log-entry.success { border-left-color: var(--success); }
.log-entry.warning { border-left-color: var(--warning); }
.log-entry.error { border-left-color: var(--danger); }
.log-entry.check { border-left-color: var(--accent-primary); }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-time {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 1px;
}

.log-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 2px;
}

.log-badge.info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.log-badge.success { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.log-badge.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.log-badge.error { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.log-badge.check { background: rgba(108, 92, 231, 0.15); color: var(--accent-primary); }

.log-message {
    color: var(--text-secondary);
    word-break: break-word;
}

.log-entry.success .log-message {
    color: var(--success);
    font-weight: 600;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    padding: 16px 20px;
    text-align: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    
    .main {
        padding: 16px 12px;
    }
    
    .product-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .product-image-container {
        aspect-ratio: 16/9;
    }
    
    .settings-group {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-display {
        flex-direction: column;
        text-align: center;
    }
    
    .url-input-row {
        flex-direction: column;
    }
    
    .url-input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* In-stock celebration overlay */
.celebration-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 197, 94, 0.05);
    pointer-events: none;
    z-index: 200;
    animation: flashGreen 1s ease-out forwards;
}

@keyframes flashGreen {
    0% { background: rgba(34, 197, 94, 0.15); }
    100% { background: rgba(34, 197, 94, 0); }
}

/* Sound test animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}
