/* Cert Pricing Page - Dark Theme */

.cert-page {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 100px 0 60px 0;
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e4e4e7;
}

.cert-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.cert-header {
    text-align: center;
    margin-bottom: 48px;
}

.cert-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cert-header p {
    color: #a1a1aa;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pricing Grid */
.cert-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

/* Pricing Card */
.cert-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    border-color: #3f3f46;
    transform: translateY(-2px);
}

.cert-card.popular {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.cert-card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.cert-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

/* Price */
.cert-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.cert-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3b82f6;
}

.cert-price-original {
    font-size: 1rem;
    color: #71717a;
    text-decoration: line-through;
}

.cert-price-unit {
    font-size: 0.85rem;
    color: #71717a;
}

/* Duration & Warranty */
.cert-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a1a1aa;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.cert-meta i {
    font-size: 0.75rem;
}

.cert-meta-sep {
    width: 4px;
    height: 4px;
    background: #3f3f46;
    border-radius: 50%;
}

/* Description */
.cert-desc {
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Features */
.cert-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.cert-features li {
    padding: 6px 0;
    color: #d4d4d8;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cert-features li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* CTA Button */
.cert-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    -webkit-font-smoothing: antialiased;
    margin-top: auto;
}

.cert-cta-btn.primary {
    background: #3b82f6;
    color: #ffffff !important;
}

.cert-cta-btn.primary:hover {
    background: #2563eb;
    color: #ffffff !important;
}

.cert-cta-btn.secondary {
    background: #27272a;
    color: #d4d4d8 !important;
    border: 1px solid #3f3f46;
}

.cert-cta-btn.secondary:hover {
    background: #3f3f46;
    color: #ffffff !important;
}

/* Features Section */
.cert-features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.cert-feature-item {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.15s ease;
}

.cert-feature-item:hover {
    border-color: #3f3f46;
}

.cert-feature-icon {
    width: 48px;
    height: 48px;
    background: #27272a;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.cert-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.cert-feature-item p {
    color: #a1a1aa;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

/* FAQ Section */
.cert-faq-section {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
}

.cert-faq-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-faq-item {
    border-bottom: 1px solid #27272a;
    padding: 16px 0;
    cursor: pointer;
}

.cert-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cert-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    color: #e4e4e7;
    font-size: 0.92rem;
}

.cert-faq-question i {
    color: #71717a;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cert-faq-item.active .cert-faq-question i {
    transform: rotate(180deg);
    color: #3b82f6;
}

.cert-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #a1a1aa;
    font-size: 0.85rem;
    line-height: 1.7;
}

.cert-faq-item.active .cert-faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

/* Contact Section */
.cert-contact {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.cert-contact h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.cert-contact p {
    color: #a1a1aa;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.cert-contact-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cert-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cert-contact-btn.telegram {
    background: #0088cc;
    color: #ffffff !important;
}

.cert-contact-btn.telegram:hover {
    background: #006fa8;
}

.cert-contact-btn.zalo {
    background: #0068ff;
    color: #ffffff !important;
}

.cert-contact-btn.zalo:hover {
    background: #0050cc;
}

.cert-contact-btn.facebook {
    background: #1877f2;
    color: #ffffff !important;
}

.cert-contact-btn.facebook:hover {
    background: #1466d2;
}

/* Footer */
.cert-footer {
    text-align: center;
    padding: 30px 0;
    color: #71717a;
    font-size: 0.85rem;
}

.cert-footer a {
    color: #3b82f6 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.cert-footer a:hover {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cert-page {
        padding: 80px 0 40px 0;
    }

    .cert-container {
        padding: 0 12px;
    }

    .cert-header h1 {
        font-size: 1.6rem;
    }

    .cert-pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cert-card {
        padding: 22px;
    }

    .cert-price {
        font-size: 1.5rem;
    }

    .cert-faq-section {
        padding: 22px;
    }

    .cert-contact {
        padding: 22px;
    }

    .cert-features-section {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cert-feature-item {
        padding: 18px;
    }
}

@media (max-width: 400px) {
    .cert-header h1 {
        font-size: 1.3rem;
    }

    .cert-card {
        padding: 18px;
    }

    .cert-features-section {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* Purchase UI - Balance, Alerts, Modal, Orders */
/* ============================================ */

/* User Balance Badge */
.cert-user-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 18px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    font-size: 0.9rem;
}
.cert-user-balance strong {
    color: #10b981;
}
.cert-topup-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.cert-topup-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Alerts */
.cert-alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: certSlideIn 0.3s ease;
}
.cert-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.cert-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

@keyframes certSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Overlay */
.cert-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: certFadeIn 0.2s ease;
}
@keyframes certFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cert-modal {
    background: #1a1a2e;
    border: 1px solid #334155;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: certModalIn 0.3s ease;
}
.cert-modal-lg {
    max-width: 600px;
}
@keyframes certModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #334155;
}
.cert-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
}
.cert-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.cert-modal-close:hover {
    color: #f87171;
}

.cert-modal-body {
    padding: 24px;
}

/* Modal Package Info */
.cert-modal-pkg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}
.cert-modal-pkg-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
}
.cert-modal-pkg-price {
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.1rem;
}

/* Form */
.cert-form-group {
    margin-bottom: 18px;
}
.cert-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.cert-form-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.2s;
}
.cert-form-group input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.cert-form-hint {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 4px;
}
.cert-udid-help {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: auto;
}
.cert-udid-help:hover {
    text-decoration: underline;
}

/* Payment Info */
.cert-payment-info {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 14px;
}
.cert-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #94a3b8;
    font-size: 0.9rem;
}
.cert-payment-row span:last-child {
    font-weight: 600;
    color: #e2e8f0;
}
.cert-payment-after {
    border-top: 1px solid #1e293b;
    margin-top: 6px;
    padding-top: 8px;
}

/* Form Warning */
.cert-form-warning {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.cert-form-warning a {
    color: #60a5fa;
}

/* Submit Button */
.cert-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.cert-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}
.cert-submit-btn.disabled,
.cert-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cert Orders Section */
.cert-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.cert-orders-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.cert-orders-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #1e293b;
}

.cert-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.cert-orders-table thead {
    background: #0f172a;
}
.cert-orders-table th {
    padding: 10px 14px;
    color: #94a3b8;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}
.cert-orders-table td {
    padding: 10px 14px;
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
}
.cert-orders-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.06);
}

.cert-order-udid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #64748b;
}

.cert-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}
.cert-order-status.pending { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.cert-order-status.processing { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.cert-order-status.completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.cert-order-status.failed { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.cert-order-status.refunded { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }

.cert-view-btn {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #60a5fa;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.cert-view-btn:hover {
    background: rgba(59, 130, 246, 0.25);
}
.cert-view-btn.check {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}
.cert-view-btn.check:hover {
    background: rgba(251, 191, 36, 0.22);
}

/* Cert Data Display (inside modal) */
.cert-data-display {
    color: #cbd5e1;
}
.cert-data-display h4 {
    color: #e2e8f0;
    margin: 16px 0 10px;
    font-size: 1rem;
}
.cert-data-display hr {
    border-color: #334155;
    margin: 14px 0;
}
.cert-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 10px;
    font-size: 0.9rem;
}
.cert-data-row strong {
    color: #94a3b8;
    font-weight: 500;
    min-width: 100px;
}
.cert-data-row code {
    background: #0f172a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #60a5fa;
    word-break: break-all;
}
.cert-download-link {
    color: #34d399;
    text-decoration: none;
    font-weight: 500;
}
.cert-download-link:hover {
    text-decoration: underline;
}

.cert-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 1rem;
}

.text-warning { color: #fbbf24 !important; }

/* Mobile responsive for new elements */
@media (max-width: 768px) {
    .cert-modal {
        max-width: 100%;
        margin: 10px;
        border-radius: 12px;
    }
    .cert-modal-body {
        padding: 16px;
    }
    .cert-orders-table {
        font-size: 0.8rem;
    }
    .cert-orders-table th,
    .cert-orders-table td {
        padding: 8px 10px;
    }
    .cert-user-balance {
        font-size: 0.82rem;
        padding: 6px 14px;
    }
    .cert-data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .cert-qr-image {
        max-width: 200px !important;
    }
}

/* ============ QR Payment Modal ============ */
.cert-qr-center {
    text-align: center;
    margin: 16px 0;
}

.cert-qr-image {
    max-width: 240px;
    width: 100%;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.cert-bank-info {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.cert-bank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    color: #e2e8f0;
    flex-wrap: wrap;
}
.cert-bank-row:last-child {
    border-bottom: none;
}
.cert-bank-row span:first-child {
    min-width: 120px;
    color: #94a3b8;
}
.cert-bank-row strong {
    color: #e2e8f0;
}
.cert-bank-row .text-danger {
    color: #f87171 !important;
}
.cert-bank-row .text-warning {
    color: #fbbf24 !important;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.cert-copy-btn {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.cert-copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.cert-qr-notice {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fbbf24;
    font-size: 0.88rem;
    text-align: center;
    margin: 12px 0;
}
.cert-qr-notice i {
    margin-right: 6px;
}

.cert-qr-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cert-qr-contact > span {
    color: #94a3b8;
    font-size: 0.85rem;
}

.cert-qr-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.cert-qr-contact-link.tele {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.3);
}
.cert-qr-contact-link.tele:hover {
    background: rgba(0, 136, 204, 0.3);
}
.cert-qr-contact-link.zalo {
    background: rgba(0, 106, 255, 0.15);
    color: #006aff;
    border: 1px solid rgba(0, 106, 255, 0.3);
}
.cert-qr-contact-link.zalo:hover {
    background: rgba(0, 106, 255, 0.3);
}
.cert-qr-contact-link.fb {
    background: rgba(0, 132, 255, 0.15);
    color: #0084ff;
    border: 1px solid rgba(0, 132, 255, 0.3);
}
.cert-qr-contact-link.fb:hover {
    background: rgba(0, 132, 255, 0.3);
}

/* ============ QR Success/Fail Steps ============ */
.cert-qr-success-icon {
    text-align: center;
    font-size: 64px;
    color: #10b981;
    margin: 16px 0 8px;
    animation: certBounce 0.5s ease;
}
.cert-qr-success-title {
    text-align: center;
    color: #10b981;
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.cert-qr-success-sub {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.cert-qr-fail-icon {
    text-align: center;
    font-size: 64px;
    color: #ef4444;
    margin: 16px 0 8px;
}
.cert-qr-fail-title {
    text-align: center;
    color: #ef4444;
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.cert-qr-fail-sub {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

@keyframes certBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Cert data display after purchase */
.cert-data-display {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0 16px;
    text-align: left;
}
.cert-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}
.cert-data-row:last-child {
    border-bottom: none;
}
.cert-data-row strong {
    color: #94a3b8;
    flex-shrink: 0;
    margin-right: 12px;
}
.cert-data-row span,
.cert-data-row a {
    color: #e2e8f0;
    word-break: break-all;
    text-align: right;
}
.cert-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 8px;
}
.cert-download-link:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.cert-download-link i {
    font-size: 1.1rem;
}

/* Empty order history */
.cert-orders-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}
.cert-orders-empty i {
    font-size: 48px;
    color: #334155;
    margin-bottom: 12px;
    display: block;
}
.cert-orders-empty p {
    font-size: 0.95rem;
    margin: 0;
}

/* ============ UDID & Purchase Guide ============ */
.cert-guide-section {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    margin-bottom: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.cert-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}
.cert-guide-header:hover {
    background: rgba(59, 130, 246, 0.06);
}
.cert-guide-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cert-guide-header h2 i {
    color: #3b82f6;
}
.cert-guide-toggle {
    color: #64748b;
    transition: transform 0.3s ease;
}
.cert-guide-section.collapsed .cert-guide-toggle {
    transform: rotate(-90deg);
}
.cert-guide-content {
    padding: 0 24px 24px;
    transition: all 0.3s ease;
}
.cert-guide-section.collapsed .cert-guide-content {
    display: none;
}

/* Steps */
.cert-guide-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}
.cert-guide-step:last-child {
    margin-bottom: 0;
}
.cert-guide-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.05));
}
.cert-guide-step:last-child::before {
    display: none;
}
.cert-guide-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    z-index: 1;
}
.cert-guide-step-body {
    flex: 1;
    padding-top: 6px;
}
.cert-guide-step-body h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.cert-guide-step-body > p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

/* Methods (Cách 1, Cách 2) */
.cert-guide-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.cert-guide-method {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}
.cert-guide-method h4 {
    color: #e2e8f0;
    font-size: 0.92rem;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cert-guide-method h4 i {
    color: #3b82f6;
    width: 18px;
    text-align: center;
}
.cert-guide-method ol {
    padding-left: 20px;
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.8;
}
.cert-guide-method ol li {
    margin-bottom: 2px;
}

/* Guide list */
.cert-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cert-guide-list li {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}
.cert-guide-list li i {
    color: #10b981;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Guide notes */
.cert-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 10px;
}
.cert-guide-note i {
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}
.cert-guide-note code {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
}
.cert-guide-note.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}
.cert-guide-note.warning i {
    color: #f59e0b;
}
.cert-guide-note.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}
.cert-guide-note.success i {
    color: #10b981;
}

/* Guide link */
.cert-guide-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.cert-guide-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cert-guide-methods {
        grid-template-columns: 1fr;
    }
    .cert-guide-header {
        padding: 16px;
    }
    .cert-guide-content {
        padding: 0 16px 16px;
    }
    .cert-guide-step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.9rem;
    }
    .cert-guide-step::before {
        left: 15px;
        top: 36px;
    }
}
