/* 1. CẤU TRÚC CHUNG */
.akira-warranty-lookup, 
.akira-activation-wrapper { 
    max-width: 850px; 
    margin: 40px auto; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    color: #333; 
    line-height: 1.6;
}

.ak-title { 
    text-align: center; 
    color: #2c3e50; 
    margin-bottom: 30px; 
    font-size: 26px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* 2. BANNER KÍCH HOẠT */
.ak-activation-banner { 
    background: linear-gradient(135deg, #1e2024 0%, #232741 100%);
    border-radius: 16px; 
    padding: 40px; 
    display: flex; 
    align-items: center; 
    color: white; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
    position: relative;
    overflow: hidden;
}

.ak-activation-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    transform: rotate(45deg);
    pointer-events: none;
}

.ak-badge-container { 
    width: 130px; 
    margin-right: 30px; 
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ak-badge-circle { 
    width: 100px; 
    height: 100px; 
    background: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    border-radius: 50%; 
    border: 4px solid rgba(255,255,255,0.2); 
    box-shadow: 0 0 20px rgba(243, 129, 129, 0.4);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 900; 
    color: #5c4206; 
    text-align: center; 
    font-size: 13px; 
    transform: rotate(-10deg); 
    margin: 0 auto;
}

.ak-banner-content { 
    flex: 1; 
    position: relative;
    z-index: 2;
}

.ak-banner-content h2 { 
    color: #fff; 
    margin: 0 0 8px 0; 
    font-size: 28px;
    font-weight: 700;
}

.ak-banner-content p {
    color: #aeb4c6;
    margin: 0 0 25px 0;
    font-size: 15px;
}

/* 3. SEARCH BOX (Fixed Flatsome Conflict) */
.ak-imei-search-box { 
    display: flex; 
    align-items: center;
    background: #fff !important; 
    border-radius: 50px !important; 
    padding: 5px !important; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important; 
    transition: transform 0.3s;
    max-width: 500px; 
    margin: 0 auto;
    border: none !important;
}

.ak-imei-search-box:hover {
    transform: translateY(-2px);
}

.ak-imei-search-box input { 
    flex: 1; 
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 20px !important; 
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    height: 50px !important;
    min-height: 50px !important;
    outline: none !important;
    margin: 0 !important;
}

.ak-imei-search-box input:focus {
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
}

.ak-imei-search-box button { 
    background: linear-gradient(90deg, #00c853 0%, #009624 100%) !important;
    color: white !important; 
    border: none !important; 
    padding: 0 30px !important; 
    border-radius: 40px !important; 
    font-weight: 700 !important; 
    font-size: 14px !important;
    cursor: pointer; 
    height: 50px !important; 
    min-height: 50px !important;
    line-height: 50px !important;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3) !important;
    transition: all 0.3s;
    white-space: nowrap;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    opacity: 1 !important;
}

.ak-imei-search-box button:hover {
    background: linear-gradient(90deg, #00e676 0%, #00c853 100%) !important;
    box-shadow: 0 6px 15px rgba(0, 200, 83, 0.5) !important;
    transform: scale(1.02);
}

/* 4. FORM ĐIỀN THÔNG TIN (STEP 2) */
.ak-activation-form { 
    background: #fff; 
    padding: 40px; 
    border: 1px solid #e1e1e1; 
    border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ak-form-header { 
    text-align: center; 
    margin-bottom: 30px; 
    border-bottom: 2px dashed #f0f0f0; 
    padding-bottom: 20px; 
}

.ak-form-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    text-transform: uppercase;
}

.ak-grid-form { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.ak-form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 14px; 
    color: #555;
}

.ak-form-group input, 
.ak-form-group select { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    height: 48px; 
    font-size: 15px;
    box-sizing: border-box;
    transition: border 0.3s;
}

.ak-form-group input:focus,
.ak-form-group select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.ak-btn-submit { 
    width: 100%; 
    margin-top: 30px; 
    padding: 16px; 
    background: #232741; 
    color: white; 
    font-size: 16px; 
    font-weight: 700; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ak-btn-submit:hover { 
    background: #343a40; 
}

/* 5. TRA CỨU & KẾT QUẢ */
.ak-form { display: flex; gap: 10px; margin-bottom: 30px; }
.ak-form input { flex: 1; padding: 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
.ak-form button { padding: 0 30px; background: #007bff; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.ak-form button:hover { background: #0056b3; }

.ak-card { 
    display: flex; 
    border: 1px solid #eef0f2; 
    border-radius: 12px; 
    padding: 25px; 
    margin-bottom: 20px; 
    background: #fff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    transition: transform 0.2s;
}
.ak-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.ak-img { width: 150px; margin-right: 30px; flex-shrink: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ak-img img { width: 100%; max-height: 140px; object-fit: contain; margin-bottom: 10px; }

.ak-brand-logo { width: auto; height: 35px; object-fit: contain; }
.ak-brand-text { font-size: 12px; background: #eee; padding: 4px 8px; border-radius: 4px; font-weight: 600; color: #666; }

.ak-info { flex: 1; }
.ak-prod-name { margin: 0 0 15px 0; font-size: 20px; font-weight: 700; color: #2c3e50; }
.ak-prod-name a { color: #2c3e50; text-decoration: none; }
.ak-prod-name a:hover { color: #007bff; }

.ak-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px; border-bottom: 1px dashed #f5f5f5; padding-bottom: 5px; }
.ak-row:last-child { border-bottom: none; }
.ak-row span:first-child { color: #7f8c8d; font-weight: 500; }
.ak-badge { padding: 5px 15px; border-radius: 20px; font-size: 12px; color: white; font-weight: 700; text-transform: uppercase; }
.ak-badge.valid { background: #28a745; box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3); } 
.ak-badge.expired { background: #dc3545; box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3); }

.ak-error { text-align: center; color: #721c24; padding: 25px; background: #fff3cd; border-left: 5px solid #ffc107; border-radius: 4px; font-weight: 500;}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .ak-activation-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
    .ak-badge-container { margin: 0 0 20px 0; }
    .ak-imei-search-box { margin: 0 auto; width: 100%; box-sizing: border-box; }
    .ak-imei-search-box input { width: 100%; text-align: center; padding: 0 10px !important; }
    
    .ak-card { flex-direction: column; }
    .ak-img { width: 100%; margin: 0 0 20px 0; border-bottom: 1px solid #eee; padding-bottom: 15px; }
    
    .ak-grid-form { grid-template-columns: 1fr; }
    .ak-form { flex-direction: column; }
    .ak-form button { width: 100%; padding: 15px; }
}