*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --green-50: #f0fdf4;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 100%);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-logo svg {
    width: 28px;
    height: 28px;
}

.header-title {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-subtitle {
    color: var(--blue-100);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
}

/* Block 1 - Scanner Section */
.scanner-section {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.scanner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,0.06) 0%, transparent 60%),
radial-gradient(ellipse at 70% 80%, rgba(34,197,94,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.scanner-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.card-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.7;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    color: var(--gray-800);
    transition: all 0.25s ease;
    outline: none;
}

.input-field::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.input-field:focus {
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.input-field.success {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.1);
}

.scan-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: 2px dashed var(--blue-300);
    border-radius: var(--radius);
    background: var(--blue-50);
    color: var(--blue-700);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.scan-btn:hover {
    background: var(--blue-100);
    border-color: var(--blue-500);
    transform: translateY(-1px);
}

.scan-btn:active {
    transform: translateY(0);
}

.scan-btn svg {
    width: 20px;
    height: 20px;
}

.check-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-700) 100%);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.45);
}

.check-btn:active {
    transform: translateY(0);
}

.check-btn svg {
    width: 20px;
    height: 20px;
}

.check-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Scanner Modal */
.scanner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.scanner-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scanner-modal {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.scanner-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.scanner-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.close-scanner-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-scanner-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.close-scanner-btn svg {
    width: 20px;
    height: 20px;
}

#qr-reader-container {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-900);
    min-height: 280px;
    position: relative;
}

#qr-reader-container video {
    border-radius: var(--radius);
}

/* Override html5-qrcode styles */
#qr-reader {
    border: none !important;
}

#qr-reader__scan_region {
    min-height: 250px;
}

#qr-reader__dashboard {
    display: none !important;
}

/* Block 2 - Product Info */
.product-section {
    min-height: 100vh;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.product-section-inner {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(22,163,74,0.2);
}

.section-badge svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.product-card-header {
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.product-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.product-image-wrapper svg {
    width: 60px;
    height: 60px;
    color: var(--blue-500);
}

.product-header-info {
    color: var(--white);
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

.authenticity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /*background: rgba(255,255,255,0.2);*/
    background: green;
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 12px;
    color: #fff;
}

.authenticity-badge svg {
    width: 16px;
    height: 16px;
}

.product-card-body {
    padding: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.info-item {
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.product-details {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}

.product-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-key {
    color: var(--gray-500);
    font-weight: 500;
}

.detail-val {
    color: var(--gray-800);
    font-weight: 600;
    text-align: right;
}

.verification-timeline {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-dot.green {
    background: var(--green-50);
    color: var(--green-600);
}

.timeline-dot.blue {
    background: var(--blue-50);
    color: var(--blue-600);
}

.timeline-dot svg {
    width: 18px;
    height: 18px;
}

.timeline-content {
    flex: 1;
}

.timeline-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
padding: 16px 20px;
    }

    .header-title {
font-size: 1.2rem;
    }

    .scanner-card {
padding: 32px 24px;
    }

    .card-title {
font-size: 1.5rem;
    }

    .product-card-header {
flex-direction: column;
text-align: center;
padding: 24px;
    }

    .product-image-wrapper {
width: 100px;
height: 100px;
    }

    .product-card-body {
padding: 24px;
    }

    .info-grid {
grid-template-columns: 1fr;
    }

    .section-title {
font-size: 1.5rem;
    }

    .product-name {
font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .scanner-card {
padding: 24px 20px;
border-radius: 16px;
    }

    .card-icon {
width: 52px;
height: 52px;
border-radius: 12px;
    }

    .card-title {
font-size: 1.3rem;
    }

    .card-description {
font-size: 0.88rem;
    }

    .scanner-modal {
padding: 20px;
    }

    .product-section {
padding: 40px 16px 32px;
    }

    .product-card-body {
padding: 20px;
    }
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-900);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success {
    background: var(--green-700);
}

.toast.error {
    background: #dc2626;
}

.img_icon_bl1{
	margin:0px 0px 0px 0px;
	width: 100px;
    height: 50px;
}

.yellow{
	background: yellow;
	color:#777;
}
.red{
	background: red;
}

.product-card{
	display:none;
}