/* ============================================
   Subscription Offer Box (Style 13)
   Modern, Attractive Design for Landing Pages
   All classes prefixed with box13- for namespacing
   ============================================ */

:root {
    --box13-primary: #6366f1;
    --box13-primary-dark: #4f46e5;
    --box13-secondary: #ec4899;
    --box13-accent: #f59e0b;
    --box13-success: #10b981;
    --box13-danger: #ef4444;
    --box13-dark: #1e293b;
    --box13-light: #f8fafc;
    --box13-border: #e2e8f0;
    --box13-shadow: rgba(99, 102, 241, 0.1);
    --box13-shadow-hover: rgba(99, 102, 241, 0.2);
}

.box13-subscription-offer-box {
    position: relative;
    padding: 30px 15px;
    /* background: #0099ff; */
    overflow: hidden;
    margin: 20px 0;
}

.box13-subscription-offer-box .box13-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.box13-offer-wrapper {
    background: white;
    /* border-radius: 16px; */
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    position: relative;
    animation: box13-slideUp 0.6s ease-out;
}

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

/* Badge */
.box13-offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--box13-danger) 0%, var(--box13-secondary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: box13-pulse 2s infinite;
    z-index: 10;
}

.box13-offer-badge i {
    margin-right: 6px;
    animation: box13-flicker 1.5s infinite;
}

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

@keyframes box13-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Main Content Layout */
.box13-offer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

/* Left Section - Text Content */
.box13-offer-text-section {
    padding-right: 10px;
}

.box13-offer-header {
    margin-bottom: 15px;
}

.box13-offer-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--box13-dark);
    line-height: 1.2;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--box13-primary) 0%, var(--box13-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.box13-offer-subtitle {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.box13-offer-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Pricing Section */
.box13-pricing-section {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid var(--box13-accent);
}

.box13-price-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.box13-old-price {
    font-size: 32px;
    color: #5f5f5f;
    text-decoration: line-through;
    font-weight: 500;
    opacity: 0.7;
}

.box13-new-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    position: relative;
}

.box13-new-price .box13-currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--box13-dark);
}

.box13-new-price .box13-amount {
    font-size: 42px;
    font-weight: 900;
    color: var(--box13-primary);
    line-height: 1;
}

/* Decimal cents styling - smaller and positioned higher */
.box13-price-cents {
    font-size: 0.45em; /* 45% of parent font size */
    vertical-align: super;
    font-weight: 700;
    position: relative;
    top: -0.15em;
}

.box13-old-price .box13-price-cents {
    font-size: 0.5em; /* Slightly larger for old price */
}

.box13-discount-badge {
    position: absolute;
    top: -12px;
    left: 100%;
    margin-left: 8px;
    background: var(--box13-danger);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: box13-bounce 1s infinite;
}

@keyframes box13-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Promo Code Section */
.box13-promo-code-section {
    margin: 15px 0;
}

.box13-promo-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--box13-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box13-promo-label i {
    color: var(--box13-accent);
}

.box13-promo-code-container {
    display: flex;
    gap: 8px;
}

.box13-promo-code-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px dashed var(--box13-primary);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--box13-primary);
    background: #f1f5f9;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.box13-promo-code-input:hover {
    background: #e0e7ff;
    transform: scale(1.02);
}

.box13-copy-btn {
    padding: 10px 18px;
    background: var(--box13-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.box13-copy-btn:hover {
    background: var(--box13-primary-dark);
}

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

.box13-copy-btn.box13-copied {
    background: var(--box13-success);
}

/* Features Section */
.box13-features-section {
    margin: 15px 0;
}

.box13-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box13-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--box13-dark);
    border-bottom: 1px solid var(--box13-border);
}

.box13-features-list li:last-child {
    border-bottom: none;
}

.box13-features-list li i {
    color: var(--box13-success);
    font-size: 16px;
    flex-shrink: 0;
}

/* CTA Button */
.box13-cta-section {
    margin-top: 20px;
}

.box13-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--box13-primary) 0%, var(--box13-secondary) 100%);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box13-cta-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.5s ease;
}

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

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

.box13-cta-button i {
    transition: transform 0.3s ease;
}

.box13-cta-button:hover i {
    transform: translateX(5px);
}

/* Right Section - Visual & Timer */
.box13-offer-visual-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Countdown Timer */
.box13-countdown-timer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.box13-countdown-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--box13-primary), var(--box13-secondary), var(--box13-accent));
    animation: box13-shimmer 2s infinite;
}

@keyframes box13-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.box13-timer-header {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.box13-timer-header i {
    color: var(--box13-danger);
    font-size: 20px;
    animation: box13-rotate 2s linear infinite;
}

@keyframes box13-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.box13-timer-header span {
    font-size: 14px;
    font-weight: 700;
    color: var(--box13-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.box13-timer-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.box13-time-unit {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.box13-time-unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.box13-time-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--box13-primary);
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.box13-time-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.box13-time-separator {
    font-size: 24px;
    font-weight: 700;
    color: var(--box13-primary);
    margin: 0 -3px;
}

.box13-urgency-text {
    margin-top: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    background: #fee2e2;
    border-radius: 50px;
    color: var(--box13-danger);
    font-weight: 600;
    font-size: 13px;
}

.box13-urgency-text i {
    animation: box13-blink 1s infinite;
}

@keyframes box13-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Offer Image */
.box13-offer-image {
    border-radius: 16px;
    overflow: hidden;
}

.box13-offer-image img {
    width: 100%;
    height: auto;
    display: block;
}



/* Decorative Circles */
.box13-decorative-circles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.box13-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.box13-circle-1 {
    width: 200px;
    height: 200px;
    background: var(--box13-primary);
    top: -50px;
    right: -50px;
    animation: box13-float 6s ease-in-out infinite;
}

.box13-circle-2 {
    width: 150px;
    height: 150px;
    background: var(--box13-secondary);
    bottom: -30px;
    left: -30px;
    animation: box13-float 8s ease-in-out infinite reverse;
}

.box13-circle-3 {
    width: 100px;
    height: 100px;
    background: var(--box13-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: box13-float 10s ease-in-out infinite;
}

@keyframes box13-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Expired State */
.box13-subscription-offer-box.box13-expired {
    display: none;
}

/* Urgency effects */
.box13-countdown-timer.box13-urgent-24h {
    animation: box13-pulse-soft 2s infinite;
}

.box13-countdown-timer.box13-urgent-1h {
    animation: box13-pulse-medium 1s infinite;
}

.box13-countdown-timer.box13-urgent-final {
    animation: box13-pulse-hard 0.5s infinite;
    border: 2px solid #ef4444;
}

.box13-countdown-timer.box13-urgent-final .box13-time-value {
    color: #ef4444;
}

@keyframes box13-pulse-soft {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    }
}

@keyframes box13-pulse-medium {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
    }
}

@keyframes box13-pulse-hard {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(239, 68, 68, 0.6);
    }
}

.box13-expired-message {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

.box13-expired-message i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.box13-expired-message p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .box13-offer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .box13-offer-text-section {
        padding-right: 0;
    }
    
    .box13-offer-title {
        font-size: 26px;
    }
    
    .box13-new-price .box13-amount {
        font-size: 36px;
    }
    
    .box13-offer-badge {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .box13-subscription-offer-box {
        padding: 20px 10px;
    }
    
    .box13-offer-content {
        padding: 20px 15px;
    }
    
    .box13-offer-title {
        font-size: 24px;
    }
    
    .box13-new-price .box13-amount {
        font-size: 32px;
    }
    
    .box13-old-price {
        font-size: 16px;
    }
    
    .box13-time-unit {
        padding: 10px 4px;
    }
    
    .box13-time-value {
        font-size: 22px;
    }
    
    .box13-time-label {
        font-size: 8px;
    }
    
    .box13-time-separator {
        font-size: 20px;
    }
    
    .box13-cta-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .box13-promo-code-container {
        flex-direction: column;
    }
    
    .box13-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .box13-offer-title {
        font-size: 22px;
    }
    
    .box13-new-price .box13-amount {
        font-size: 28px;
    }
    
    .box13-new-price .box13-currency {
        font-size: 20px;
    }
    
    .box13-time-value {
        font-size: 20px;
    }
    
    .box13-pricing-section {
        padding: 15px;
    }
    
    .box13-price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Print Styles */
@media print {
    .box13-subscription-offer-box {
        background: white;
        padding: 20px;
    }
    
    .box13-offer-badge,
    .box13-decorative-circles,
    .box13-countdown-timer {
        display: none;
    }
}

/* ============================================
   Usage Tracking Styles
   ============================================ */

/* Usage Section */
.box13-usage-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border: 2px solid var(--box13-border);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.box13-usage-section.box13-usage-urgent {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: var(--box13-accent);
    animation: box13-pulseGlow 2s infinite;
}

.box13-usage-section.box13-usage-critical {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: var(--box13-danger);
    animation: box13-pulseGlow 1s infinite;
}

@keyframes box13-pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.2);
    }
}

/* Usage Header */
.box13-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.box13-usage-header i {
    color: var(--box13-primary);
    font-size: 20px;
    margin-right: 8px;
}

.box13-usage-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--box13-dark);
    flex: 1;
}

.box13-usage-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.box13-remaining-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--box13-primary);
    animation: box13-countPulse 1s ease;
}

.box13-usage-urgent .box13-remaining-count {
    color: var(--box13-accent);
}

.box13-usage-critical .box13-remaining-count {
    color: var(--box13-danger);
}

.box13-usage-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

@keyframes box13-countPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress Bar Container */
.box13-progress-bar-container {
    margin-top: 10px;
    animation: box13-slideDown 0.5s ease;
}

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

.box13-progress-bar {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box13-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--box13-primary) 0%, var(--box13-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 0.5s ease;
    overflow: hidden;
}

.box13-usage-urgent .box13-progress-fill {
    background: linear-gradient(90deg, var(--box13-accent) 0%, var(--box13-danger) 100%);
}

.box13-usage-critical .box13-progress-fill {
    background: linear-gradient(90deg, var(--box13-danger) 0%, #dc2626 100%);
    animation: box13-progressPulse 1.5s infinite;
}

@keyframes box13-progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Animated progress bar stripes */
.box13-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: box13-progressStripes 1s linear infinite;
}

@keyframes box13-progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 28px 0;
    }
}

.box13-progress-text {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.box13-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.box13-progress-start,
.box13-progress-end {
    padding: 0 4px;
}

/* Responsive Usage Styles */
@media (max-width: 768px) {
    .box13-usage-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .box13-usage-counter {
        width: 100%;
        justify-content: center;
    }
    
    .box13-remaining-count {
        font-size: 20px;
    }
    
    .box13-progress-bar {
        height: 24px;
    }
    
    .box13-progress-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .box13-usage-section {
        padding: 15px;
    }
    
    .box13-usage-header i {
        font-size: 20px;
    }
    
    .box13-usage-label {
        font-size: 14px;
    }
    
    .box13-remaining-count {
        font-size: 18px;
    }
    
    .box13-progress-bar {
        height: 20px;
    }
}

