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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e1e4e8;
    position: relative;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.back-link {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #2980b9;
}

/* Product Cards */
.products-container {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding-bottom: 20px;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: fit-content;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card h2 {
    padding: 15px 20px 5px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.product-description {
    padding: 0 20px 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.view-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 80%;
}

.view-btn:hover {
    background-color: #2980b9;
}

/* Session Info Styles */
.session-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    background-color: #e8f4f8;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
    gap: 15px;
    min-height: 50px;
}

.session-info.hidden {
    display: none !important;
}

.session-badge {
    display: flex;
    align-items: center;
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}

.checkmark {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: #2ecc71;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    margin-right: 10px;
    font-weight: bold;
}

.session-expiry {
    margin-left: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background-color: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

.logout-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* Product Page Styles */
.product-page {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.product-image-large {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
}

/* New styles for warranty badge and button */
.warranty-badge {
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.upgrade-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.upgrade-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.upgrade-button:hover::before {
    left: 100%;
}

.upgrade-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Attention-grabbing animation that starts after 4-5 seconds */
.upgrade-button.attention-animation {
    animation: upgradeButtonAttention 2s ease-in-out infinite;
}

@keyframes upgradeButtonAttention {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    25% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    }
    75% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
}

/* Pulse glow effect */
.upgrade-button.pulse-glow {
    animation: upgradeButtonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes upgradeButtonPulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5), 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

/* Shake animation for extra attention */
.upgrade-button.shake {
    animation: upgradeButtonShake 0.6s ease-in-out;
}

@keyframes upgradeButtonShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.product-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.auth-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.auth-form h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Email domain check (warn if not a listed common provider) */
.email-domain-warning {
    margin-top: 10px;
    padding: 10px 12px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #e57373;
    border-radius: 6px;
    color: #7f1d1d;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(127, 29, 29, 0.06);
}

.email-domain-warning p {
    margin: 0 0 8px 0;
}

input[type="email"].email-domain-warn-input {
    border-color: #e57373;
    box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.18);
}

.email-domain-confirm-btn {
    margin-top: 2px;
    padding: 7px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #991b1b;
    background: #fff;
    border: 1px solid #f87171;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.email-domain-confirm-btn:hover {
    background: #fff5f5;
    border-color: #ef4444;
}

/* Phone field: numbers only (enforced by HTML inputmode, pattern, maxlength, oninput) */
#phone {
    font-variant-numeric: tabular-nums;
}

small {
    color: #6c757d;
    font-size: 0.875rem;
}

.submit-btn {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Phone-step button: gray when disabled, blue when 10 digits entered */
#phone-check-btn {
    transition: background-color 0.2s, color 0.2s;
}
#phone-check-btn:disabled {
    background-color: #adb5bd;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.9;
}
#phone-check-btn:not(:disabled) {
    background-color: #3498db;
    color: white;
    cursor: pointer;
}
#phone-check-btn:not(:disabled):hover {
    background-color: #2980b9;
}

#instructions-container {
    display: none;
}

#instructions-container.show {
    display: block !important;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #c3e6cb;
}

.accordion-container {
    margin-bottom: 30px;
}

.accordion-section {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    width: 100%;
    background-color: #f8f9fa;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: background-color 0.3s;
    position: relative;
    outline: none;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header.active {
    background-color: #3498db;
    color: white;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    scroll-margin-top: 20px;
}

.accordion-content.active {
    max-height: none;
    height: auto;
}

.accordion-inner {
    padding: 20px;
}

.instruction-step {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.instruction-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.instruction-step h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.section {
    margin-bottom: 30px;
}

.section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.step {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.step h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step p {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.step-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.step-images .step-image {
    flex: 1 1 calc(50% - 5px);
    min-width: 200px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #ddd;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hidden {
    display: none !important;
}

#form-container {
    display: block;
}

#form-container.hidden {
    display: none !important;
}

.product-documents {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-documents h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-documents ul {
    list-style: none;
}

.product-documents li {
    margin-bottom: 8px;
}

.product-documents a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    target: _blank;
}

.product-documents a:hover {
    text-decoration: underline;
}

.warranty-badge {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.warranty-period {
    font-size: 0.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.warranty-details {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.warranty-note {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.warranty-info {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid #3498db;
}

.warranty-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.warranty-info h4 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
}

.warranty-info ul {
    margin-bottom: 15px;
}

.warranty-info li {
    margin-bottom: 5px;
}

.whatsapp-link-inline {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-link-inline:hover {
    text-decoration: underline;
}

.registration-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.video-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.video-timestamps p {
    margin: 0;
}

.video-timestamps a {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.video-timestamps a:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.video-timestamps a:active {
    background-color: #1f5f8b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 15px 0;
    }
    
    .product-card h2 {
        font-size: 1.2rem;
    }
    
    .product-page {
        padding: 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .back-link {
        position: static;
        transform: none;
        display: block;
        margin-bottom: 10px;
    }
    
    .product-header h2 {
        font-size: 1.5rem;
    }
    
    .session-info {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
    }
    
    .session-badge {
        min-width: auto;
        flex: 1 1 auto;
        flex-wrap: wrap;
    }
    
    .session-expiry {
        margin-left: 0;
        margin-top: 5px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .logout-btn {
        margin-top: 5px;
        flex-shrink: 0;
    }
    
    .video-timestamps {
        flex-direction: column;
    }
    
    .video-timestamps a {
        text-align: center;
        margin-bottom: 5px;
    }
}

/* OTP Form Styles */
#otp-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

#otp-form h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

#otp-form p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

#otp {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.resend-btn {
    width: 100%;
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.resend-btn:hover {
    background-color: #3498db;
    color: white;
}

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

/* Message Styles */
.message {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

/* Video Timestamps Styling - Original from old CSS */
.video-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.video-timestamps p {
    margin: 0;
}

.video-timestamps a {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.video-timestamps a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.video-timestamps a:active {
    transform: translateY(0);
}

 