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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.4;
}

.container {
    max-width: 393px; /* iPhone 15 Pro width */
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    position: relative;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 0;
    cursor: pointer;
    margin-right: 15px;
}

.title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.share-btn, .favorite-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 0;
    cursor: pointer;
}

/* Content Styles */
.content {
    flex: 1;
    padding: 0 0 100px 0;
}

.ad-id {
    padding: 10px 20px;
    color: #999;
    font-size: 14px;
    background-color: #fafafa;
}

/* Image Section */
.image-section {
    position: relative;
    background-color: white;
    padding: 0 20px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 20px 0;
}

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

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.anac-badge {
    position: absolute;
    bottom: -10px;
    left: 20px;
    background: #666;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* Breadcrumb & Location */
.breadcrumb {
    padding: 15px 20px 5px;
    font-size: 14px;
    color: #4a90e2;
}

.location {
    padding: 0 20px 15px;
    font-size: 14px;
    color: #666;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.btn-info {
    flex: 1;
    background: #ffa500;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-location {
    flex: 1;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Price Section */
.price-section {
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #4a90e2;
}

.price-icon {
    font-size: 20px;
    color: #999;
}

/* Product Title */
.product-title {
    padding: 0 20px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Description */
.description {
    padding: 0 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.more-details {
    padding: 0 20px;
    display: block;
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Details Table */
.details-table {
    padding: 0 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.detail-label {
    color: #666;
    font-size: 14px;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
}

.detail-value.highlight {
    color: #e74c3c;
}

/* Rating Section */
.rating-section {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.rating-label {
    color: #666;
    font-size: 14px;
}

.rating-value {
    font-size: 14px;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    margin: 0 20px 30px;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #333;
    width: 80%;
    border-radius: 2px;
}

/* Bottom Actions */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 393px;
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.btn-call, .btn-message {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-call {
    background: #4a90e2;
    color: white;
}

.btn-call:hover {
    background: #357abd;
}

.btn-message {
    background: #4a90e2;
    color: white;
}

.btn-message:hover {
    background: #357abd;
}

/* Responsive adjustments */
@media (max-width: 393px) {
    .container {
        max-width: 100%;
    }
    
    .bottom-actions {
        max-width: 100%;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch interactions */
button {
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: scale(0.98);
}

/* YEPY Nudge Section Styles */
.yepy-nudge-section {
    margin: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
    animation: slideInFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.yepy-nudge-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 200%;
    animation: shimmerNudge 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerNudge {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Nudge Container */
.nudge-container {
    position: relative;
    z-index: 2;
}

/* Nudge Header */
.nudge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nudge-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

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

.brand-text {
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Main Content */
.nudge-main-content {
    text-align: center;
}

.nudge-tagline {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px 0;
    opacity: 0.95;
}

/* Value Props */
.value-props {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.prop-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.prop-icon {
    font-size: 14px;
}

.prop-text {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* CTA Button */
.cta-button {
    background: white;
    color: #4f46e5;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    min-width: 140px;
}

.cta-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

.cta-text {
    font-size: 14px;
}

.cta-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(2px);
}

.nudge-timer {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.timer-icon {
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

.timer-text {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#timerCount {
    font-weight: 800;
    color: #ffeb3b;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.nudge-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.nudge-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg);
}

/* Nudge hidden state */
.yepy-nudge-section.hidden {
    transform: translateX(100%);
    opacity: 0;
    max-height: 0;
    margin: 0 20px;
    padding: 0 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Urgency pulse effect */
.nudge-container {
    animation: urgencyPulse 3s ease-in-out infinite;
}

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

/* YEPY Trade-in Module Styles */
.yepy-sticky-bar {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 393px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 20px rgba(255, 107, 53, 0.3);
    z-index: 999;
    animation: slideUpBounce 0.6s ease-out;
}

@keyframes slideUpBounce {
    0% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yepy-mini-logo {
    font-size: 18px;
    animation: bounce 2s infinite;
}

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

.sticky-text {
    display: flex;
    flex-direction: column;
}

.main-text {
    font-size: 14px;
    font-weight: 600;
}

.sub-text {
    font-size: 12px;
    opacity: 0.9;
}

.sticky-cta {
    background: white;
    color: #ff6b35;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sticky-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Trade-in Module Modal */
.yepy-tradein-module {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 393px;
    height: 100vh;
    background: white;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.yepy-tradein-module.active {
    opacity: 1;
    visibility: visible;
}

.tradein-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.yepy-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    margin-top: -2px;
}

.close-module {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-module:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tradein-content {
    padding: 20px;
}

.old-phone-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.phone-estimate {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.phone-estimate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff6b35);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.estimate-box {
    text-align: center;
    margin-bottom: 15px;
}

.estimate-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.estimate-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 5px;
}

.estimate-range {
    display: block;
    font-size: 12px;
    color: #888;
}

.discount-highlight {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discount-highlight::before {
    content: '🎉';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: celebrate 1s infinite alternate;
}

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

.discount-text {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.limited-time {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.benefit-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.benefit-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.benefit-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.social-proof {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #ff6b35;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
}

.recent-activity {
    text-align: center;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.activity-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.action-buttons-tradein {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-estimate, .btn-quick-sell {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-estimate {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.btn-quick-sell {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.btn-estimate:hover, .btn-quick-sell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 5px;
    z-index: 2;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.step-text {
    font-size: 11px;
    text-align: center;
    color: #666;
    max-width: 80px;
}

/* Pulse animation for CTA */
.sticky-cta {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3), 0 0 0 8px rgba(255, 107, 53, 0.1);
    }
    100% {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
}

/* Responsive adjustments for Yepy module */
@media (max-width: 393px) {
    .yepy-sticky-bar, .yepy-tradein-module {
        max-width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .process-steps::before {
        display: none;
    }
} 