.ecu-auth-wrap {
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background: #262624d1;
}
.re-login-entry {
    width: 260px;
    padding: 14px 16px;
    font-size: 18px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    outline: none;
    background: #1e1e1e;
    color: #e6e6e6;
    transition: 0.25s ease;
    float: right;
}

.re-login-entry:focus {
    border-color: #6b8aff;
    box-shadow: 0 0 0 3px rgba(107, 138, 255, 0.25);
    background: #232323;
}

.re-login-entry::placeholder {
    color: #7c7c7c;
}
.ecu-auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.ecu-auth-tabs button {
    padding: 8px 20px;
    border: none;
    background: #999898;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
    color: black;
}
.ecu-auth-tabs .active {
    background: #8F4908;
    color: white;
}
.re-submit-button {
    background: #8F4908;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.re-submit-button:hover {
    background: #6F3906;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.re-submit-button:active {
    transform: translateY(0);
    background: #6F3906;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.ecu-auth-section { display: none; }
.ecu-auth-section.active { display: block; }

/* Page background */
body {
    color: #eee !important;
}

/* Main wizard + login panel */
#ecu-upload-container,
.ecu-login-required {
    background: rgba(20, 20, 20, 0.85); /* Semi-transparent */
    backdrop-filter: blur(6px);

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);

    /* Wide soft glow */
    box-shadow:
        0 0 40px rgba(255,255,255,0.10),
        0 0 90px rgba(255,255,255,0.07),
        0 0 160px rgba(255,255,255,0.05);

    min-width: 70%;
    max-width: 70%;
    margin: 60px auto;
    padding: 40px 45px;
}

#ecu-upload-container h3,
.ecu-login-required h3 {
    color: #fff;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Progress bar */
.ecu-progress-step {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    color: #888;
    border-bottom: 3px solid rgba(171,87,10,0.12);
    transition: .3s;
}
.ecu-progress-step.active {
    color: #8F4908;
    border-bottom-color: #8F4908;
}

/* Steps */
.ecu-step {
    display: none;
    animation: ecuSlideIn .45s ease;
}
.ecu-step.active {
    display: block;
}
@keyframes ecuSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Table layout */
.ecu-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}
.ecu-table td:first-child {
    width: 40%;
    font-weight: 500;
    font-size: 15px;
    color: #bbb;
}

/* Inputs + selects */
.ecu-table input,
.ecu-table select,
#readingToolOther,
#ecuFile {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);

    color: #eee;
    transition: 0.25s;
    font-size: 15px;
}

.ecu-table input:focus,
.ecu-table select:focus,
#readingToolOther:focus {
    border-color: #5b8dff;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(91,141,255,0.25);
    outline: none;
}

/* Buttons */
.ecu-next-btn,
.ecu-back-btn,
.ecu-submit-btn {
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border: none;
}

/* Back Button (grey) */
.ecu-back-btn {
    background: rgba(255,255,255,0.15);
    color: #ddd;
    float: left;
}

/* Next Button */
.ecu-next-btn {
    background: #8F4908;
    color: #fff;
    float: right;
}

.ecu-next-btn:hover {
    background: #6F3906;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Final Submit */
.ecu-submit-btn {
    background: #8F4908;
    color: #fff;
    width: 50%;
    float: right;
}

.ecu-submit-btn:hover {
    background: #6F3906;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Clear floats */
.ecu-step::after {
    content: "";
    display: block;
    clear: both;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: #4A7AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Product list */
.ecu-product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 80px;
    justify-content: center;
}

/* Product card (dark) */
.ecu-product {
    padding: 20px;
    background: rgba(30,30,30,0.85);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 200px;

    box-shadow:
        0 0 20px rgba(255,255,255,0.05),
        0 0 40px rgba(255,255,255,0.04);

    transition: 0.25s;
    text-align: center;
}
.ecu-product:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 30px rgba(255,255,255,0.07),
        0 0 60px rgba(255,255,255,0.05);
}
.ecu-product h4 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}
.ecu-product p {
    color: #ccc;
}
.ecu-product a.button {
    display: inline-block;
    padding: 10px 14px;
    background: #6F3906;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
}

/* Fade-in/out animations */
.ecu-fade-in {
    opacity: 0;
    animation: ecuFadeIn 0.4s forwards ease-out;
}
@keyframes ecuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ecu-fade-out {
    opacity: 1;
    animation: ecuFadeOut 0.35s forwards ease-in;
}
@keyframes ecuFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-4px); }
}

/* Terms error text */
#termsError {
    color: #ff6666 !important;
    margin-top: 8px;
}
