/* ==========================================================================
   Screen Warranty Portal - Mobile First Modern Aesthetics
   ========================================================================== */

:root {
    --w-primary: #3b82f6;
    --w-primary-dark: #1d4ed8;
    --w-primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --w-success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --w-warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --w-danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --w-card-bg: rgba(255, 255, 255, 0.96);
    --w-card-border: rgba(226, 232, 240, 0.8);
    --w-bg-main: #f1f5f9;
    --w-text-main: #0f172a;
    --w-text-muted: #64748b;
    --w-radius: 20px;
    --w-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --w-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] {
    --w-card-bg: rgba(30, 41, 59, 0.95);
    --w-card-border: rgba(51, 65, 85, 0.8);
    --w-bg-main: #0b0f19;
    --w-text-main: #f8fafc;
    --w-text-muted: #94a3b8;
    --w-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --w-shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

body.warranty-page-body {
    background-color: var(--w-bg-main);
    background-image: radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
                      radial-gradient(at 90% 90%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--w-text-main);
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

.warranty-wrapper {
    max-width: 620px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3.5rem;
}

/* Header & Brand */
.warranty-brand-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.warranty-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

[data-theme="dark"] .warranty-brand-pill {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.warranty-main-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0.25rem 0 0.5rem;
    background: var(--w-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.warranty-sub-title {
    font-size: 0.92rem;
    color: var(--w-text-muted);
    margin: 0;
}

/* Glass Card */
.w-card {
    background: var(--w-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--w-card-border);
    border-radius: var(--w-radius);
    padding: 1.5rem;
    box-shadow: var(--w-shadow);
    margin-bottom: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.w-card:hover {
    box-shadow: var(--w-shadow-lg);
}

/* Verified Badge Box */
.verified-product-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.verified-product-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #2563eb;
}

.verified-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 700;
    font-size: 0.85rem;
}

.product-tv-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--w-text-main);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.spec-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .spec-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.spec-label {
    font-size: 0.75rem;
    color: var(--w-text-muted);
    display: block;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--w-text-main);
    font-family: monospace, sans-serif;
}

/* Status Cards & Banners */
.status-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1.5px solid rgba(16, 185, 129, 0.3);
}

.status-expiring-soon {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1.5px solid rgba(245, 158, 11, 0.3);
}

.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
}

.status-not-activated {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1.5px solid rgba(59, 130, 246, 0.3);
}

.status-suspended, .status-cancelled {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
    border: 1.5px solid rgba(100, 116, 139, 0.3);
}

/* Progress Bar Container */
.warranty-progress-box {
    margin: 1.5rem 0 1rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .warranty-progress-box {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.05);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.custom-progress-track {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .custom-progress-track {
    background: #334155;
}

.custom-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-active { background: var(--w-success-gradient); }
.fill-warning { background: var(--w-warning-gradient); }
.fill-danger { background: var(--w-danger-gradient); }

.days-counter-card {
    text-align: center;
    background: var(--w-primary-gradient);
    color: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    margin: 1rem 0;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.days-count-num {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin: 0.2rem 0;
    font-family: monospace, sans-serif;
}

/* Forms */
.w-form-group {
    margin-bottom: 1.1rem;
}

.w-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--w-text-main);
}

.w-form-label .req {
    color: #ef4444;
}

.w-input, .w-select, .w-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--w-card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--w-text-main);
    transition: all 0.2s ease;
}

[data-theme="dark"] .w-input, [data-theme="dark"] .w-select, [data-theme="dark"] .w-textarea {
    background: rgba(15, 23, 42, 0.6);
    border-color: #334155;
    color: #f8fafc;
}

.w-input:focus, .w-select:focus, .w-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

[data-theme="dark"] .w-input:focus, [data-theme="dark"] .w-select:focus, [data-theme="dark"] .w-textarea:focus {
    background: #0f172a;
}

/* Buttons */
.w-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.w-btn-primary {
    background: var(--w-primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.w-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.w-btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3);
}

.w-btn-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-2px);
}

.w-btn-outline {
    background: transparent;
    color: var(--w-text-main);
    border: 1.5px solid var(--w-card-border);
}

.w-btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Success Celebration Animation */
@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

.success-icon-animated {
    width: 80px;
    height: 80px;
    background: var(--w-success-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin: 0 auto 1rem;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

/* Alert Boxes */
.w-alert {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.w-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

[data-theme="dark"] .w-alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

.w-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.w-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Responsive Grid */
@media (max-width: 480px) {
    .warranty-wrapper {
        padding: 0.75rem 0.6rem 3rem;
    }
    .w-card {
        padding: 1.1rem;
        border-radius: 16px;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
}
