/* ========================================
   TOPIKO LEAD FORM - COMPREHENSIVE LIGHT PINK + PURPLE THEME WITH FIXED PRICE DISPLAY
   ======================================== */

/* ========================================
   1. BASE STYLES & RESETS
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f3e8ff;
    min-height: 100vh;
}

/* ========================================
   2. LAYOUT COMPONENTS
   ======================================== */

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
    margin-bottom: 2rem;
}

.content-card h2 {
    color: #6b46c1;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.content-card p {
    color: #553c9a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ========================================
   3. NAVIGATION COMPONENTS
   ======================================== */

/* Back Button */
.back-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1010;
    color: #6b46c1;
    font-size: 1.5rem;
    font-weight: 700;
}

.back-button:hover {
    background: white;
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.back-button.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    padding: 1rem;
    box-shadow: 0 2px 20px rgba(168, 85, 247, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 2rem;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.progress-step:hover {
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 60px;
    width: 30px;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.completed:not(:last-child)::after {
    background: linear-gradient(90deg, #a855f7, #9333ea);
}

.progress-step.in-progress:not(:last-child)::after {
    background: linear-gradient(90deg, #a855f7 50%, #e5e7eb 50%);
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    margin-bottom: 0.5rem;
}

.progress-step.completed .progress-circle {
    background: #8b5cf6;
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.progress-step.active .progress-circle {
    background: #8b5cf6;
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
    transform: scale(1.1);
}

.progress-label {
    font-size: 0.75rem;
    color: #6b46c1;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

.progress-step.completed .progress-label,
.progress-step.active .progress-label {
    color: #374151;
    font-weight: 700;
}

/* ========================================
   4. WIDGET STYLES
   ======================================== */

/* Lead Score Widget - HIDDEN */
.lead-score-widget {
    display: none !important;
}

.lead-score-widget:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.score-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.score-circle.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: #ef4444;
}

.score-circle.warm {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    color: #f59e0b;
}

.score-circle.cold {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-color: #10b981;
    color: #10b981;
}

.score-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Error Display */
.error-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fee2e2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.error-display.show {
    opacity: 1;
    visibility: visible;
}

/* Debug Panel */
.debug-panel {
    position: fixed;
    bottom: 70px;
    left: 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    font-size: 0.8rem;
    line-height: 1.4;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.debug-panel.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.debug-panel h4 {
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.debug-toggle {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
}

.debug-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

/* ========================================
   5. WELCOME SCREEN
   ======================================== */

.welcome-screen {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(219, 39, 119, 0.08);
}

.topiko-logo {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

/* ========================================
   6. BUTTON STYLES
   ======================================== */

.try-free-button, .submit-button {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.try-free-button:hover, .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}

.try-free-button:active, .submit-button:active {
    transform: translateY(-1px);
}

.submit-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    margin-top: 1rem;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #6b46c1;
    border: 2px solid rgba(168, 85, 247, 0.2);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.flex-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.flex-buttons .btn-secondary,
.flex-buttons .submit-button {
    flex: 1;
    margin-top: 0;
}

/* ========================================
   7. FORM COMPONENTS
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6b46c1;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #374151;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a855f7;
    background: white;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   8. LANGUAGE SELECTION
   ======================================== */

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.language-option:hover,
.language-option.selected {
    background: rgba(168, 85, 247, 0.05);
    border-color: #a855f7;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
}

.language-flag {
    font-size: 2rem;
    flex-shrink: 0;
}

.language-content h3 {
    color: #6b46c1;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.language-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   9. GOALS SELECTION
   ======================================== */

.goals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.goal-option {
    position: relative;
}

.goal-checkbox {
    display: none;
}

.goal-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.goal-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);
}

.goal-checkbox:checked + .goal-card {
    background: rgba(168, 85, 247, 0.05);
    border-color: #a855f7;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.goal-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.goal-content {
    flex: 1;
}

.goal-content h3 {
    color: #6b46c1;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.goal-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.goal-checkmark {
    font-size: 1.5rem;
    color: #10b981;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.goal-checkbox:checked + .goal-card .goal-checkmark {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   10. QUALIFYING QUESTIONS
   ======================================== */

.qualifying-question {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.qualifying-question h3 {
    color: #6b46c1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.radio-options {
    display: grid;
    gap: 0.8rem;
}

.radio-option {
    position: relative;
}

.radio-input {
    display: none;
}

.radio-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #374151;
    gap: 1rem;
}

.radio-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
}

.radio-input:checked + .radio-card {
    background: rgba(168, 85, 247, 0.05);
    border-color: #a855f7;
    color: #6b46c1;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.2);
}

.radio-icon {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    background: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-input:checked + .radio-card .radio-icon {
    border-color: #a855f7;
    background: #a855f7;
}

.radio-input:checked + .radio-card .radio-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* ========================================
   11. CATEGORIES
   ======================================== */

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-item {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);
}

.category-checkbox {
    display: none;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b46c1;
    margin-bottom: 1rem;
}

.category-checkbox:checked + .category-label {
    color: #059669;
}

.category-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-checkmark {
    font-size: 1.2rem;
    color: #10b981;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    margin-left: auto;
}

.category-checkbox:checked + .category-label .category-checkmark {
    opacity: 1;
    transform: scale(1);
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    padding-left: 2.5rem;
}

.subcategory-item {
    position: relative;
}

.subcategory-checkbox {
    display: none;
}

.subcategory-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #553c9a;
}

.subcategory-label:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(168, 85, 247, 0.3);
}

.subcategory-checkbox:checked + .subcategory-label {
    background: rgba(34, 197, 94, 0.05);
    border-color: #22c55e;
    color: #059669;
    font-weight: 600;
}

.subcategory-checkmark {
    font-size: 1rem;
    color: #10b981;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.subcategory-checkbox:checked + .subcategory-label .subcategory-checkmark {
    opacity: 1;
    transform: scale(1);
}

/* Dynamic Motivational Messages */
.category-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 2rem;
}

.motivational-messages {
    text-align: right;
    max-width: 400px;
    min-width: 300px;
    position: relative;
    height: 100px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motivational-message {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #22c55e;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    border-radius: 8px;
    color: #059669;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    position: absolute;
    width: calc(100% - 2rem);
    left: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
    text-align: left;
    z-index: 10;
}

.motivational-message.active {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.motivational-message.exit {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
}

.motivational-message.loading {
    opacity: 0.8;
    font-style: italic;
    color: #6b46c1;
    background: rgba(168, 85, 247, 0.1);
    border-color: #6b46c1;
}

/* Selection Summary */
.selection-summary {
    background: rgba(34, 197, 94, 0.05);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.summary-title {
    color: #059669;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.summary-content {
    display: flex;
    gap: 2rem;
}

.summary-item {
    color: #064e3b;
    font-size: 0.9rem;
}

.summary-count {
    font-weight: 700;
    color: #059669;
}

/* ========================================
   12. PRODUCTS SCREEN - COMPREHENSIVE
   ======================================== */

/* Products Help Section */
.products-help-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clear: both;
}

.products-help-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.products-help-section.urgent {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.products-help-section.urgent:hover {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.help-title {
    color: #d97706;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.products-help-section.urgent .help-title {
    color: #dc2626;
}

.help-progress {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.help-progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.products-help-section.urgent .help-progress-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.help-text {
    color: #92400e;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}

.products-help-section.urgent .help-text {
    color: #991b1b;
}

.urgent-text {
    color: #dc2626;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Product Form */
.product-form {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

/* Product Mode Toggle */
.product-mode-toggle {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(168, 85, 247, 0.1);
}

.toggle-options {
    display: flex;
    gap: 0.5rem;
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toggle-option:hover {
    background: rgba(168, 85, 247, 0.05);
    color: #6b46c1;
}

.toggle-option.active {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.toggle-icon {
    font-size: 1.1rem;
}

/* Product Controls */
.product-helpers {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.helper-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.helper-btn:not(.secondary) {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

.helper-btn:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
}

.helper-btn.secondary {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.helper-btn.secondary:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.quick-filter {
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #6b46c1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.quick-filter:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.quick-filter.active {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.product-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1rem;
}

.filter-select, .sort-select {
    padding: 0.8rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #6b46c1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-select:focus, .sort-select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.products-count {
    color: #6b46c1;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.price-range {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(168, 85, 247, 0.1);
}

.price-range label {
    color: #6b46c1;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
    font-size: 0.9rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-inputs input {
    padding: 0.6rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: #6b46c1;
}

.price-inputs span {
    color: #6b7280;
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card-selector {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
}

.product-card-selector:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
}

.product-card-selector.selected {
    border-color: #a855f7;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.product-selector-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f8fafc;
}

/* ========================================
   FIXED PRICE TAG STYLES - CONSOLIDATED
   ======================================== */

.product-price-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #059669;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Price update animation */
.price-updating {
    animation: priceUpdate 0.3s ease !important;
    background: rgba(99, 102, 241, 0.95) !important;
    color: white !important;
    transform: scale(1.1);
}

@keyframes priceUpdate {
    0% { 
        transform: scale(1); 
        background: rgba(255, 255, 255, 0.95);
    }
    50% { 
        transform: scale(1.15); 
        background: rgba(99, 102, 241, 0.95);
        color: white;
    }
    100% { 
        transform: scale(1.1); 
        background: rgba(99, 102, 241, 0.95);
        color: white;
    }
}

/* Enhanced visibility for mobile and small screens */
@media (max-width: 768px) {
    .product-price-tag {
        top: 6px;
        right: 6px;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 700;
    }
}

/* ========================================
   PRODUCT SELECTION OVERLAY & OTHER ELEMENTS
   ======================================== */

.product-selection-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.selection-checkmark {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.popular-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-selector-content {
    padding: 1.2rem;
}

.product-selector-title {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-selector-description {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.variant-tag {
    background: rgba(168, 85, 247, 0.1);
    color: #6b46c1;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.select-product-btn {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.select-product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.select-product-btn.remove-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.select-product-btn.remove-btn:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.edit-product-btn {
    padding: 0.7rem 1rem;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.1);
    color: #6b46c1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.edit-product-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

/* Original product card styles for list view */
.product-card {
    background: white;
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

.product-content {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: flex-start;
}

.product-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.product-name {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.product-price {
    color: #059669;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
}

.product-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.product-category {
    background: rgba(168, 85, 247, 0.1);
    color: #6b46c1;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.product-sizes {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-actions-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.product-select-btn {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.product-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-popular {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

/* No Products Message */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 2px dashed rgba(168, 85, 247, 0.3);
}

.no-products-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-products-message h3 {
    color: #6b46c1;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.no-products-message p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Selected Products Section */
.selected-products-summary {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.selected-products-summary h3 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.selected-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.selected-product-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
}

.selected-product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}

.selected-product-info {
    flex: 1;
}

.selected-product-info h5 {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.selected-product-price {
    color: #059669;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

.remove-selected-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.remove-selected-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Product Edit Modal */
.product-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.edit-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.edit-modal-content h3 {
    color: #6b46c1;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.edit-form-group {
    margin-bottom: 1.5rem;
}

.edit-form-group label {
    display: block;
    color: #6b46c1;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.edit-form-group input,
.edit-form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-form-group input:focus,
.edit-form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.edit-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.save-edit-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.3);
}

.cancel-edit-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    color: #6b46c1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-edit-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

/* ========================================
   VARIANT SELECTION STYLING - UPDATED & FIXED
   ======================================== */

.variant-selector {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(107, 70, 193, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(107, 70, 193, 0.1);
}

.variant-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b46c1;
    margin-bottom: 0.5rem;
}

.variant-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.variant-btn:hover {
    border-color: #6b46c1;
    color: #6b46c1;
    transform: translateY(-1px);
}

.variant-btn.active {
    border-color: #6b46c1;
    background: #6b46c1;
    color: white;
    font-weight: 600;
}

/* Product grid with variants - increased height */
.products-grid.with-variants .product-card-selector {
    min-height: 420px; /* Increased from default for variant selector */
}

/* Enhanced product selection overlay for variants */
.product-card-selector.selected .variant-selector {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.product-card-selector.selected .variant-btn.active {
    background: #10b981;
    border-color: #10b981;
}

/* Loading state for price updates */
.variant-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessibility improvements */
.variant-btn:focus {
    outline: 2px solid #6b46c1;
    outline-offset: 2px;
}

.variant-btn:focus-visible {
    outline: 2px solid #6b46c1;
    outline-offset: 2px;
}

/* Mobile responsive variants */
@media (max-width: 768px) {
    .variant-options {
        flex-direction: column;
    }
    
    .variant-btn {
        width: 100%;
        padding: 0.6rem;
    }
    
    .variant-selector {
        margin: 0.75rem 0;
        padding: 0.5rem;
    }
    
    .products-grid.with-variants .product-card-selector {
        min-height: 450px; /* Even more height on mobile */
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .variant-options {
        gap: 0.3rem;
    }
    
    .variant-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .variant-btn {
        border-width: 3px;
    }
    
    .variant-btn.active {
        border-width: 3px;
        font-weight: 700;
    }
    
    .product-price-tag {
        border-width: 2px;
        border-color: #059669;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .variant-btn {
        transition: none;
    }
    
    .price-updating {
        animation: none;
    }
    
    .product-price-tag {
        transition: none;
    }
}

/* ========================================
   13. THEMES SCREEN
   ======================================== */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.theme-option {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.theme-option.selected {
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.25);
}

.theme-header h3 {
    color: #6b46c1;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.theme-header p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.theme-preview {
    background: none;
    border-radius: 12px;
    padding: 0;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.theme-preview-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.theme-preview-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.theme-preview-price {
    color: #059669;
    font-weight: 700;
    font-size: 0.85rem;
}
/* ========================================
   THEME IMAGES - PHASE 1 IMPLEMENTATION
   ======================================== */

.theme-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.theme-option:hover .theme-image {
    transform: scale(1.02);
}

.theme-option.selected .theme-image {
    border: 3px solid #a855f7;
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.2);
}
/* ========================================
   14. NOTIFICATIONS & FOMO
   ======================================== */

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(400px);
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification.info {
    border-left-color: #3b82f6;
}

/* FOMO Notifications */
.fomo-notification {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
    transform: translateX(-400px);
    transition: all 0.5s ease;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.fomo-notification.show {
    transform: translateX(0);
}

.fomo-notification.hide {
    transform: translateX(-400px);
    opacity: 0;
}

.fomo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.fomo-icon {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.fomo-status {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
}

.fomo-content {
    color: #374151;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.business-name {
    font-weight: 700;
    color: #6b46c1;
}

.business-location {
    font-weight: 600;
    color: #059669;
}

.fomo-time {
    color: #6b7280;
    font-size: 0.75rem;
}

.fomo-counter {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    z-index: 1000;
    min-width: 120px;
    transform: translateY(200px);
    transition: all 0.5s ease;
}

.fomo-counter.show {
    transform: translateY(0);
}

.counter-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.counter-text {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.2;
}

/* ========================================
   15. MODAL STYLES (INCLUDING PREVIEW MODAL)
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    color: #374151;
}

.goal-pill {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Modal Enhancements */
.modal-content h3 {
    color: #6b46c1;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-content button {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-content button:hover:not(:disabled) {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

.modal-content button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-content button:nth-child(2) {
    background: #64748b;
    margin-left: 1rem;
}

.modal-content button:nth-child(2):hover {
    background: #475569;
}

/* OTP Modal Styles */
.otp-input-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #6b46c1;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.otp-input.filled {
    background: rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
}

/* ========================================
   PREVIEW MODAL STYLES - ENHANCED WITH API RESPONSE
   ======================================== */

/* Preview Modal Specific Styles */
#previewModal .modal-content {
    max-width: 800px;
    max-height: 90vh;
}

#previewModal .modal-content h3 {
    color: #6b46c1;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* JSON Display Container */
#previewModal .json-display-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

#previewModal pre {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #374151;
    background: transparent;
}

/* API Response Section */
#apiResponseSection {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

#apiResponseSection h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

#apiResponseContent {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.4;
    border: 1px solid #e2e8f0;
}

#apiResponseContent pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* API Button Styles */
#callApiBtn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
}

#callApiBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

#callApiBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* JSON Syntax Highlighting */
#previewModal pre .json-key {
    color: #7c3aed;
    font-weight: 600;
}

#previewModal pre .json-string {
    color: #059669;
}

#previewModal pre .json-number {
    color: #dc2626;
}

#previewModal pre .json-boolean {
    color: #ea580c;
    font-weight: 600;
}

#previewModal pre .json-null {
    color: #6b7280;
    font-style: italic;
}

/* Action Buttons Container */
#previewModal .preview-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#previewModal .preview-actions button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 140px;
    justify-content: center;
}

#previewModal .preview-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Copy Button */
#previewModal .copy-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

#previewModal .copy-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Download Button */
#previewModal .download-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

#previewModal .download-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Console Button */
#previewModal .console-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

#previewModal .console-btn:hover {
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

/* Preview Modal Animation */
#previewModal.show .modal-content {
    animation: modalSlideIn 0.4s ease;
}

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

/* Scrollbar Styling for JSON Display */
#previewModal .json-display-container::-webkit-scrollbar,
#apiResponseContent::-webkit-scrollbar {
    width: 6px;
}

#previewModal .json-display-container::-webkit-scrollbar-track,
#apiResponseContent::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#previewModal .json-display-container::-webkit-scrollbar-thumb,
#apiResponseContent::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#previewModal .json-display-container::-webkit-scrollbar-thumb:hover,
#apiResponseContent::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading State for Preview */
#previewModal .loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b46c1;
    font-weight: 600;
    padding: 2rem;
}

#previewModal .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6b46c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Responsive API Response */
@media (max-width: 768px) {
    #previewModal .preview-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    #previewModal .preview-actions button {
        min-width: auto;
        width: 100%;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    #apiResponseContent {
        font-size: 0.7rem;
        max-height: 150px;
    }
    
    #apiResponseSection h4 {
        font-size: 0.9rem;
    }
}
#previewModal .console-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

#previewModal .console-btn:hover {
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

/* Preview Modal Animation */
#previewModal.show .modal-content {
    animation: modalSlideIn 0.4s ease;
}

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

/* Scrollbar Styling for JSON Display */
#previewModal .json-display-container::-webkit-scrollbar {
    width: 6px;
}

#previewModal .json-display-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#previewModal .json-display-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#previewModal .json-display-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading State for Preview */
#previewModal .loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b46c1;
    font-weight: 600;
    padding: 2rem;
}

#previewModal .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6b46c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   SPECIAL OFFERS & CONNECTION SYSTEM STYLES
   ======================================== */

/* Special Offers Grid */
.offer-option {
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.offer-option:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.offer-option.selected {
    border-color: #d97706;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.25);
}

.offer-option.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #d97706;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Connection Section */
#connectionSection {
    background: rgba(168, 85, 247, 0.05);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    animation: slideInUp 0.5s ease-out;
}

#connectionSection h3 {
    color: #6b46c1;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

#connectionSection button {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

#connectionSection button:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25);
}

#connectionSection button:nth-child(2) {
    background: #64748b;
}

#connectionSection button:nth-child(2):hover {
    background: #475569;
}

/* Date Time Modal */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.time-slot {
    background: #fdf2f8;
    border: 2px solid #f3e8ff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #a855f7;
    background: #f8faff;
}

.time-slot.selected {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    color: #6b46c1;
}

.slot-date {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.slot-time {
    font-size: 0.8rem;
    color: #64748b;
}

.time-slot.selected .slot-time {
    color: #553c9a;
}

/* Reason Modal */
.reason-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.reason-option {
    background: #fdf2f8;
    border: 2px solid #f3e8ff;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reason-option:hover {
    border-color: #a855f7;
    background: #f8faff;
}

.reason-option.selected {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    color: #6b46c1;
}

.reason-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reason-text {
    font-weight: 600;
    font-size: 1rem;
}

#reasonComments {
    background: #fdf2f8;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

#reasonComments label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

#reasonComments textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #f3e8ff;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#reasonComments textarea:focus {
    outline: none;
    border-color: #a855f7;
}

/* Thank You Message Styling */
.thank-you-section {
    text-align: center;
    background: rgba(34, 197, 94, 0.05);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-out;
}

.thank-you-section h3 {
    color: #059669;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.thank-you-section p {
    color: #064e3b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Completion Summary Enhancements */
.completion-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.completion-stat {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.completion-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.completion-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #059669;
    display: block;
}

.completion-stat-label {
    color: #064e3b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Offer Selection Styles */
.offer-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-option label {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    color: #92400e;
    text-align: center;
}

.offer-option:hover label {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
}

.offer-option.selected label {
    background: rgba(255, 165, 0, 0.2) !important;
    border-color: #f59e0b !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

/* Reason Button Styles */
.reason-btn {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.05);
    color: #6b46c1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: left;
}

.reason-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.reason-btn.selected {
    background: rgba(168, 85, 247, 0.15) !important;
    border-color: #a855f7 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

/* ========================================
   COMPLETION SCREEN SPECIAL OFFERS STYLES
   ======================================== */

/* Special Offers Container */
#specialOffersContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Individual Offer Items */
.special-offer-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.special-offer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.special-offer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.special-offer-item:hover::before {
    left: 100%;
}

/* Offer Title */
.offer-title {
    font-weight: 700;
    color: #d97706;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Offer Description */
.offer-description {
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* FREE Value Badge */
.offer-value {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
    animation: pulse-value 2s infinite;
}

@keyframes pulse-value {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Offer Timer Styling */
#offerTimer {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc2626;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: timer-blink 1s infinite;
}

@keyframes timer-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Enhanced Completion Choice Buttons */
.offer-option {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.offer-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.offer-option.selected {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.offer-option.selected label {
    border-color: #6366f1 !important;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    color: #3730a3 !important;
}

/* Completion Button Enhanced */
#completionChoiceBtn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#completionChoiceBtn:not(:disabled):hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

#completionChoiceBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   INTERACTIVE COMPLETION SCREEN STYLES
   ======================================== */

/* Enhanced Action Buttons */
.action-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-button:active {
    transform: translateY(-1px);
}

/* Selectable Offers Enhancement */
.special-offer-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.special-offer-item.selected {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.special-offer-item.selected .offer-title {
    color: #047857 !important;
}

.special-offer-item.selected .offer-description {
    color: #065f46 !important;
}

/* Enhanced Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.time-slot {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #6366f1;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.time-slot.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.slot-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-time {
    font-weight: 600;
    color: #1e293b;
}

.time-slot.selected .slot-date,
.time-slot.selected .slot-time {
    color: #047857;
}

/* Enhanced Reason Options Grid */
.reason-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.reason-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.reason-option:hover {
    border-color: #6366f1;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.reason-option.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.reason-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.reason-option:hover .reason-icon {
    transform: scale(1.1);
}

.reason-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    transition: color 0.3s ease;
}

.reason-option.selected .reason-text {
    color: #047857;
}

/* Enhanced Selected Offer Display */
#selectedOfferDisplay {
    animation: slideDown 0.3s ease;
}

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

/* Enhanced Modal Buttons */
.modal-content button:not(.modal-close) {
    transition: all 0.3s ease;
}

.modal-content button:not(.modal-close):hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Confirm Buttons */
#confirmScheduleBtn:not(:disabled) {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

#confirmScheduleBtn:not(:disabled):hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

#submitReasonBtn {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
}

#submitReasonBtn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
}

/* Enhanced Completion Success Animation */
.completion-success-enter {
    animation: successFadeIn 0.6s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   16. ANIMATIONS
   ======================================== */

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

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

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* Success States */
.success-checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #059669;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Error States */
.error-message {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

/* Info States */
.info-message {
    background: rgba(168, 85, 247, 0.05);
    border: 2px solid rgba(168, 85, 247, 0.2);
    color: #6b46c1;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

/* ========================================
   17. RESPONSIVE BREAKPOINTS
   ======================================== */

@media (min-width: 480px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .content-card {
        padding: 3rem;
    }
    
    .content-card h2 {
        font-size: 2.5rem;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-content {
        padding: 2rem;
    }
    
    .progress-bar {
        justify-content: center;
    }
    
    .progress-step {
        min-width: 90px;
    }
    
    .progress-step:not(:last-child)::after {
        width: 40px;
        left: 65px;
    }
    
    .fomo-notification {
        left: 2rem;
        right: auto;
        max-width: 350px;
    }
    
    .notification {
        right: 2rem;
        left: auto;
        max-width: 400px;
    }

    .category-footer {
        flex-direction: row;
    }

    .motivational-messages {
        text-align: right;
    }
    
    /* Preview Modal Desktop Enhancements */
    #previewModal .preview-actions {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    #previewModal .preview-actions button {
        min-width: 160px;
    }
}

@media (min-width: 1024px) {
    .progress-step {
        min-width: 110px;
    }
    
    .progress-step:not(:last-child)::after {
        width: 50px;
        left: 80px;
    }
}

/* Mobile Specific Fixes */
@media (max-width: 767px) {
    .app-container {
        padding: 0 0.5rem;
    }

    /* Enhanced mobile content spacing to avoid FOMO overlap */
    .main-content {
        padding: 1rem 0;
        margin-bottom: 8rem; /* Extra space for FOMO elements */
    }

    .content-card {
        padding: 1.5rem;
        border-radius: 16px;
        margin-bottom: 1rem;
    }

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

    .try-free-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .progress-bar {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .progress-bar::-webkit-scrollbar {
        display: none;
    }

    .progress-step {
        min-width: 60px;
        padding: 0.3rem;
    }

    .progress-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .progress-label {
        font-size: 0.65rem;
    }

    .language-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .language-option {
        padding: 1rem;
    }

    .language-flag {
        font-size: 1.5rem;
    }

    .language-content h3 {
        font-size: 1rem;
    }

    .language-content p {
        font-size: 0.8rem;
    }

    .goals-grid {
        gap: 0.8rem;
    }

    .goal-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .goal-icon {
        font-size: 2rem;
    }

    .goal-content h3 {
        font-size: 1rem;
    }

    .goal-content p {
        font-size: 0.85rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .qualifying-question {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .radio-card {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .subcategory-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 1rem;
    }

    .subcategory-label {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .theme-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .theme-option {
        padding: 1rem;
    }

    .theme-preview {
        min-height: 120px;
        padding: 0.8rem;
    }

    .flex-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: none;
        width: calc(100% - 2rem);
    }

    .otp-input-group {
        gap: 0.5rem;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(-100px);
        z-index: 1002;
    }

    .notification.show {
        transform: translateY(0);
    }

    .fomo-notification {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        transform: translateY(200px);
        z-index: 997;
    }

    .fomo-notification.show {
        transform: translateY(0);
    }

    .fomo-counter {
        position: fixed;
        bottom: 2rem;
        right: 1rem;
        left: auto;
        top: auto;
        transform: none;
        padding: 0.8rem;
        min-width: 100px;
        font-size: 0.9rem;
        z-index: 998;
    }
    
    .fomo-counter.show {
        transform: none;
    }
    
    .counter-number {
        font-size: 1.2rem;
    }

    .counter-text {
        font-size: 0.7rem;
    }

    .back-button {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .summary-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .motivational-messages {
        text-align: left;
        max-width: 100%;
        min-width: 100%;
    }
    
    .debug-toggle {
        bottom: 0.5rem;
        left: 0.5rem;
        width: 35px;
        height: 35px;
    }
    
    .debug-panel {
        bottom: 50px;
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
        max-height: 200px;
    }

    /* Enhanced Grid Layouts for Mobile */
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .offer-option {
        padding: 0.75rem;
    }
    
    #connectionSection {
        padding: 1.5rem;
    }
    
    #connectionSection button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    /* Completion Flow Mobile Styles */
    .offer-option label {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .reason-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .completion-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Product Selector Mobile Styles */
    .product-controls {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .helper-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .quick-filters {
        gap: 0.3rem;
    }
    
    .quick-filter {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .toggle-options {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .price-inputs input {
        width: 100%;
    }
    
    .selected-product-item {
        padding: 0.6rem;
        gap: 0.8rem;
    }
    
    .selected-product-image {
        width: 40px;
        height: 40px;
    }
    
    .edit-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .edit-modal-actions {
        flex-direction: column;
    }

    /* Original product card mobile adjustments */
    .product-content {
        flex-direction: column;
        gap: 1rem;
    }

    .product-image-container {
        width: 100%;
        height: 200px;
        align-self: center;
    }

    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-meta {
        gap: 0.5rem;
    }

    .product-actions-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .product-select-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Preview Modal Mobile Styles */
    #previewModal .modal-content {
        max-width: none;
        width: calc(100% - 1rem);
        margin: 0.5rem;
        padding: 1rem;
        max-height: 85vh;
    }
    
    #previewModal h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    #previewModal .json-display-container {
        max-height: 250px;
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    #previewModal pre {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    #previewModal .preview-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    #previewModal .preview-actions button {
        min-width: auto;
        width: 100%;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    /* Mobile Responsive Enhancements */
    .reason-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .reason-option {
        padding: 0.75rem;
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
    }
    
    .reason-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .reason-text {
        font-size: 0.85rem;
    }
    
    .action-button {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 1rem;
    }

    .topiko-logo {
        font-size: 2rem;
    }

    .progress-step {
        min-width: 50px;
    }

    .progress-circle {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }

    .progress-label {
        font-size: 0.6rem;
    }

    .goal-icon {
        font-size: 1.8rem;
    }

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

    .theme-preview {
        min-height: 100px;
        padding: 0.6rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .otp-input {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .time-slots-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-selector {
        max-width: 100%;
    }
    
    .helper-btn {
        width: 100%;
        text-align: center;
    }
    
    .product-helpers {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Enhanced FOMO positioning for very small screens */
    .fomo-counter {
        bottom: 1.5rem;
        right: 0.5rem;
        padding: 0.6rem;
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .counter-number {
        font-size: 1rem;
    }

    .counter-text {
        font-size: 0.65rem;
    }
    
    .fomo-notification {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        margin-bottom: 10rem; /* More space for FOMO elements on very small screens */
    }
    
    /* Preview Modal Very Small Screens */
    #previewModal .modal-content {
        width: calc(100% - 0.5rem);
        margin: 0.25rem;
        padding: 0.8rem;
        max-height: 90vh;
    }
    
    #previewModal h3 {
        font-size: 1rem;
    }
    
    #previewModal .json-display-container {
        max-height: 200px;
        padding: 0.6rem;
    }
    
    #previewModal pre {
        font-size: 0.65rem;
    }
    
    #previewModal .preview-actions button {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* ========================================
   18. PRINT STYLES
   ======================================== */

@media print {
    .back-button,
    .lead-score-widget,
    .debug-toggle,
    .debug-panel,
    .notification,
    .fomo-notification,
    .fomo-counter,
    #previewModal {
        display: none !important;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    body {
        background: white;
        color: black;
    }
    
    .main-content {
        margin-bottom: 0; /* Remove extra spacing for print */
    }
}
.image-loading {
    opacity: 0.7;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.image-loaded {
    opacity: 1;
    filter: none;
    transition: all 0.3s ease;
}

.product-price-tag.price-updating {
    animation: priceUpdate 0.3s ease;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: #10b981; color: white; }
    100% { transform: scale(1); }
}

.product-selector-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

/* Enhanced Category Selection Styles */
.category-main-selector {
    margin-bottom: 1rem;
}

.category-visual-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    background: white;
    transition: all 0.3s ease;
}

.category-checkbox:checked + .category-label .category-visual-checkbox {
    background: #6b46c1;
    border-color: #6b46c1;
}

.category-checkbox:checked + .category-label .category-visual-checkbox .checkbox-icon {
    color: white;
    opacity: 1;
}

.checkbox-icon {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-label:hover {
    background: rgba(107, 70, 193, 0.05);
}
/* FIXED THEME BUTTONS CSS */
.flex-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.flex-buttons .btn-secondary,
.flex-buttons .submit-button {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.flex-buttons .btn-secondary {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.flex-buttons .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.flex-buttons .submit-button {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    border: none;
    color: white;
}

.flex-buttons .submit-button:hover {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    transform: translateY(-1px);
}

.flex-buttons .submit-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsiveness for theme buttons */
@media (max-width: 768px) {
    .flex-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .flex-buttons .btn-secondary,
    .flex-buttons .submit-button {
        flex: none;
        width: 100%;
    }
}
/*
console.log('✅ Enhanced Unsplash image system functions ready!');
console.log('🖼️ 4-layer fallback system implemented');
console.log('🔄 Automatic retry logic active');
console.log('🎯 Category-specific search terms loaded');
console.log('🔍 Image quality validation tools ready');
*/

/* ========================================
   END OF STYLES
   ======================================== */
    
