* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B46C1;
    --primary-dark: #553C9A;
    --success-color: #38A169;
    --danger-color: #E53E3E;
    --warning-color: #D69E2E;
    --bg-color: #F7FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --border-color: #E2E8F0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 30px 0;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header .subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

header .tagline {
    font-size: 0.95rem;
    opacity: 0.8;
}

main {
    flex: 1;
}

form {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.help-guide {
    margin-bottom: 20px;
}

.help-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.help-toggle:hover {
    opacity: 0.9;
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.toggle-arrow.open {
    transform: rotate(180deg);
}

.help-content {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.help-image {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.help-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

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

.upload-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.upload-option-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    min-height: 120px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.upload-option-btn:hover,
.upload-option-btn:active {
    border-color: var(--primary-color);
    background: #EDF2F7;
}

.upload-option-btn .btn-icon {
    font-size: 3rem;
}

@media (max-width: 480px) {
    .upload-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .upload-option-btn {
        padding: 24px;
        min-height: 100px;
        font-size: 1.2rem;
    }
    
    .upload-option-btn .btn-icon {
        font-size: 2.5rem;
    }
}

.multi-preview-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.preview-slot {
    position: relative;
    width: calc(33.33% - 8px);
    min-width: 90px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background: #f0f0f0;
}

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

.preview-slot .remove-slot-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.preview-slot .slot-number {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .preview-slot {
        width: calc(33.33% - 8px);
        min-width: 80px;
    }
}

.preview-container {
    position: relative;
}

.preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offline-mode-group {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: 10px;
    border: 1px solid #d0d9f0;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: var(--success-color);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(22px);
}

.toggle-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.scan-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scan-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.scan-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-section, .error-section {
    margin-top: 20px;
}

.result-card, .error-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.status-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 16px;
}

.status-badge.zombie {
    background: #FED7D7;
}

.status-badge.okay {
    background: #C6F6D5;
}

.status-badge.unknown {
    background: #FEEBC8;
}

.result-card h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.result-card h2.zombie {
    color: var(--danger-color);
}

.result-card h2.okay {
    color: var(--success-color);
}

.result-card h2.unknown {
    color: var(--warning-color);
}

.result-details {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 600;
}

.explanation {
    text-align: left;
    margin-bottom: 20px;
}

.explanation h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.explanation p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.unclear-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.unclear-warning p {
    font-size: 0.95rem;
    color: #92400E;
    margin: 0 0 12px 0;
}

.manual-batch-input {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.manual-batch-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #F59E0B;
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
}

.manual-batch-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.retry-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.retry-btn:hover {
    opacity: 0.9;
}

.retry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.disclaimer {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.disclaimer p {
    font-size: 0.85rem;
    color: #92400E;
    line-height: 1.5;
}

.customer-info-section {
    margin-bottom: 20px;
}

.customer-info-section h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.scan-again-btn, .try-again-btn, .view-history-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.scan-again-btn:hover, .try-again-btn:hover, .view-history-btn:hover {
    background: var(--primary-dark);
}

.view-history-btn {
    background: var(--success-color);
}

.view-history-btn:hover {
    background: #2F855A;
}

.history-section {
    margin-top: 20px;
}

.history-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.history-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.history-list {
    margin-bottom: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 12px;
}

.history-status {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.history-status.zombie {
    background: #FED7D7;
}

.history-status.okay {
    background: #C6F6D5;
}

.history-status.unknown {
    background: #FEEBC8;
}

.history-details {
    flex: 1;
}

.history-brand {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.history-age {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.history-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.no-history {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.error-card {
    background: #FFF5F5;
    border: 1px solid #FC8181;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .scan-again-btn, .view-history-btn {
        width: 100%;
    }
}

.error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.error-card h3 {
    color: var(--danger-color);
    margin-bottom: 10px;
}

.error-card p {
    color: #C53030;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: white;
}

.info-text {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.5;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    form {
        padding: 16px;
    }
    
    .upload-area {
        padding: 20px;
    }
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-cancel-btn {
    flex: 1;
    padding: 14px;
    background: var(--bg-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-cancel-btn:hover {
    background: var(--border-color);
}

.modal-submit-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Gamified Scanning Overlay */
.scanning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

.scanning-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 20px;
}

.scanner-animation {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.product-silhouette {
    width: 120px;
    height: 160px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border: 3px solid rgba(102, 126, 234, 0.6);
    border-radius: 20px 20px 10px 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.scan-beam {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00ff88, #00ffff, #00ff88, transparent);
    box-shadow: 0 0 20px #00ff88, 0 0 40px #00ffff;
    animation: scanBeam 2s ease-in-out infinite;
}

@keyframes scanBeam {
    0%, 100% { top: 10%; opacity: 1; }
    50% { top: 85%; opacity: 0.8; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff88;
}

.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 25%; animation-delay: 0.3s; }
.particles span:nth-child(3) { left: 40%; animation-delay: 0.6s; }
.particles span:nth-child(4) { left: 55%; animation-delay: 0.9s; }
.particles span:nth-child(5) { left: 70%; animation-delay: 1.2s; }
.particles span:nth-child(6) { left: 85%; animation-delay: 1.5s; }
.particles span:nth-child(7) { left: 15%; animation-delay: 0.4s; }
.particles span:nth-child(8) { left: 45%; animation-delay: 0.7s; }
.particles span:nth-child(9) { left: 65%; animation-delay: 1.0s; }
.particles span:nth-child(10) { left: 80%; animation-delay: 1.3s; }

@keyframes float {
    0%, 100% {
        top: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 0.8;
        transform: scale(0.8);
    }
    100% {
        top: -10%;
        opacity: 0;
    }
}

.scanning-text h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.scanning-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    min-height: 1.5em;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.progress-container {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2, #00ff88);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.stage.active {
    opacity: 1;
}

.stage.completed {
    opacity: 1;
}

.stage.completed .stage-dot {
    background: #00ff88;
    box-shadow: 0 0 15px #00ff88;
}

.stage-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.stage.active .stage-dot {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 15px #667eea;
    animation: stagePulse 1s ease-in-out infinite;
}

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

.stage-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.fun-facts {
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fun-fact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments for scanning overlay */
@media (max-width: 480px) {
    .scanner-animation {
        width: 140px;
        height: 140px;
    }
    
    .product-silhouette {
        width: 90px;
        height: 120px;
    }
    
    .scanning-text h2 {
        font-size: 1.3rem;
    }
    
    .stage-label {
        font-size: 0.65rem;
    }
}

/* Viral Sharing Section */
.shocking-fact {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    animation: shockPulse 2s ease-in-out infinite;
}

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

.shock-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.shock-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.viral-share-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.share-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: white;
}

.share-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 16px;
}

.share-cta {
    margin-bottom: 16px;
}

.share-prompt {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.share-icon {
    font-size: 1.2rem;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.twitter {
    background: #000000;
    color: white;
}

.share-btn.copy {
    background: white;
    color: #333;
}

.share-btn.native {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
}

.invite-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.invite-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invite-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .viral-share-section {
        padding: 20px 16px;
    }
}

/* Potency Graph Section */
.potency-graph-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.graph-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-align: center;
}

.graph-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
}

.graph-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.graph-container canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.graph-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.vitamin-c {
    background: #FF6B6B;
}

.legend-color.retinol {
    background: #4ECDC4;
}

.legend-color.niacinamide {
    background: #45B7D1;
}

.legend-color.ha {
    background: #96CEB4;
}

.product-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.marker-icon {
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .graph-legend {
        gap: 8px;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .potency-graph-section {
        padding: 16px;
    }
}

/* Unsupported Brand Warning */
.unsupported-brand-warning {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff0f5 100%);
    border: 2px dashed #9b59b6;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.unsupported-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.unsupported-title {
    font-size: 1.2rem;
    color: #6c3483;
    margin-bottom: 12px;
    font-weight: 600;
}

.unsupported-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.unsupported-cta {
    background: rgba(155, 89, 182, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
}

.unsupported-cta p {
    font-size: 0.85rem;
    color: #6c3483;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 480px) {
    .unsupported-brand-warning {
        padding: 20px 16px;
    }
    
    .unsupported-icon {
        font-size: 2.5rem;
    }
    
    .unsupported-title {
        font-size: 1.1rem;
    }
}

.report-inaccuracy-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 12px;
    display: block;
    transition: color 0.2s ease;
}

.report-inaccuracy-btn:hover {
    color: var(--primary-dark);
}

.readonly-input {
    background: #f0f0f0;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.terms-agreement {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 16px 0 12px 0;
    line-height: 1.4;
}

.terms-agreement a {
    color: var(--primary-color);
    text-decoration: underline;
}

.terms-agreement a:hover {
    color: var(--primary-dark);
}

.brand-owner-portal {
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
}

.brand-owner-portal a {
    color: #fff;
    text-decoration: underline;
}

.brand-owner-portal a:hover {
    color: var(--secondary-light);
}
