.sa-layout {
    --sa-primary: #007bff;
    --sa-primary-hover: #0056b3;
    --sa-bg: #f4f6f9;
    --sa-text-dark: #2c3e50;
    --sa-text-muted: #6c757d;
    --sa-shadow: 0 10px 25px rgba(0,0,0,0.05);
    --sa-radius: 16px;

    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--sa-bg);
    color: var(--sa-text-dark);

    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
}

.sa-center-text {
    text-align: center;
}

.sa-panel, .sa-card-box {
    width: 100%;
    max-width: 450px;
    margin: 0;
    background: white;
    padding: 40px 30px;
    border-radius: var(--sa-radius);
    box-shadow: var(--sa-shadow);
    text-align: center;
}

.sa-layout h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--sa-text-dark);
    margin-top: 0;
}

.sa-layout h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin: 20px 0;
}

.sa-layout h5, .sa-layout h6 {
    margin: 0;
}

.sa-layout p {
    color: var(--sa-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sa-title-image {
    max-width: 150px;
    margin: 20px auto;
    display: block;
}

.sa-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.sa-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* BUTTONS */
.sa-btn-primary {
    background: var(--sa-primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.sa-btn-primary:hover {
    background: var(--sa-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.sa-btn-secondary {
    background: #e9ecef;
    color: var(--sa-text-dark);
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.sa-btn-secondary:hover {
    background: #dbe2e8;
}

.sa-text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: 0.3s;
    outline: none;
    background: white;
}

.sa-text-input:focus {
    border-color: var(--sa-primary);
}

/* QUESTION PAGE */
.sa-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    min-height: 48px;
    padding-left: 50px;
    padding-right: 50px;
}

.sa-header-back-btn {
    position: absolute !important;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--sa-text-muted);
    padding: 0;
}
.sa-header-back-btn i { font-size: 24px; }

.sa-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sa-primary);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.sa-header-total {
    color: #ced4da;
    font-weight: 400;
    font-size: 18px;
    margin-left: 5px;
}

.sa-subtitle {
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--sa-text-muted);
}

.sa-choice-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.sa-choice-btn {
    flex: 1;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--sa-text-muted);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sa-choice-btn input {
    display: none;
}

.sa-choice-btn:hover {
    border-color: #d1d9e6;
    background: #f8f9fa;
}

.sa-choice-btn.active {
    background: #e7f1ff;
    border-color: var(--sa-primary);
    color: var(--sa-primary);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
}

/* MODALS*/
.sa-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: saFadeIn 0.3s ease;
}

.sa-popup-box {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sa-popup-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

.sa-popup-footer button {
    flex: 1;
}

.sa-popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 24px; color: #999;
    cursor: pointer;
    padding: 0;
}

@keyframes saFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}