/* Account area (account.php views).
 *
 * These views are included by account.php AFTER <head> has been rendered, so
 * they cannot declare their own $page['styles']. Their inline <style> blocks
 * are collected here and loaded once by account.php. Only one view renders per
 * request, so the rules do not compete at runtime.
 *
 * Extracted verbatim; sections are labelled with their source file.
 */


/* ---- from inc/signup.inc.php ---- */

    /* Modern Signup Styles */
    .signup-page-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
    }

    .signup-form-wrapper {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        padding: 3rem;
        width: 100%;
        max-width: 600px;
        position: relative;
        overflow: hidden;
    }

    .signup-form-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--gold-alt), #ffd700);
    }

    .signup-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .signup-header h1 {
        color: #2c3e50;
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .signup-subtitle {
        color: #7f8c8d;
        font-size: 1rem;
        margin: 0;
    }

    /* Progress Indicator */
    .signup-progress {
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
        position: relative;
    }

    .signup-progress::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20%;
        right: 20%;
        height: 2px;
        background: var(--grey-150);
        z-index: 1;
    }

    .progress-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 2;
        flex: 1;
        max-width: 120px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--grey-150);
        color: var(--grey-600);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }

    .progress-step.active .step-number {
        background: var(--gold-alt);
        color: white;
    }

    .progress-step.completed .step-number {
        background: var(--green-alt);
        color: white;
    }

    .step-label {
        font-size: 0.875rem;
        color: var(--grey-600);
        text-align: center;
    }

    .progress-step.active .step-label {
        color: var(--gold-alt);
        font-weight: 500;
    }

    /* Form Styles */
    .modern-signup-form {
        position: relative;
    }

    .signup-step {
        animation: fadeIn 0.3s ease-in-out;
    }

    .signup-step.hidden {
        display: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        color: #2c3e50;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .required {
        color: #e74c3c;
    }

    .form-control {
        width: 100%;
        padding: 0.875rem 1rem;
        border: 2px solid var(--grey-150);
        border-radius: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: var(--grey-50);
        color: var(--text);
    }

    .form-control:focus {
        outline: none;
        border-color: var(--gold-alt);
        background: white;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    }

    .form-control.error {
        border-color: #e74c3c;
        background: #fdf2f2;
    }

    .form-control.success {
        border-color: var(--green-alt);
        background: #f2f8f2;
    }

    /* Radio Buttons */
    .radio-group {
        display: flex;
        gap: 1.5rem;
    }

    .radio-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 0.95rem;
        color: #495057;
    }

    .radio-label input[type="radio"] {
        display: none;
    }

    .radio-custom {
        width: 20px;
        height: 20px;
        border: 2px solid #dee2e6;
        border-radius: 50%;
        margin-right: 0.5rem;
        position: relative;
        transition: all 0.3s ease;
    }

    .radio-label input[type="radio"]:checked+.radio-custom {
        border-color: var(--gold-alt);
    }

    .radio-label input[type="radio"]:checked+.radio-custom::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        background: var(--gold-alt);
        border-radius: 50%;
    }

    /* Checkbox Styles */
    .checkbox-wrapper {
        margin-bottom: 1rem;
    }

    .checkbox-label {
        display: flex;
        align-items: flex-start;
        cursor: pointer;
        line-height: 1.5;
    }

    .checkbox-label input[type="checkbox"] {
        display: none;
    }

    .checkbox-custom {
        width: 20px;
        height: 20px;
        border: 2px solid #dee2e6;
        border-radius: 4px;
        margin-right: 0.75rem;
        margin-top: 2px;
        position: relative;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
        background: var(--gold-alt);
        border-color: var(--gold-alt);
    }

    .checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

    .checkbox-text {
        color: #495057;
        font-size: 0.95rem;
    }

    .terms-link {
        color: var(--gold-alt);
        text-decoration: none;
        font-weight: 500;
    }

    .terms-link:hover {
        text-decoration: underline;
    }

    /* Password Input */
    .password-input-wrapper {
        position: relative;
    }

    .password-toggle {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--grey-600);
        cursor: pointer;
        padding: 0.25rem;
        transition: color 0.3s ease;
    }

    .password-toggle:hover {
        color: var(--gold-alt);
    }

    /* Password Validation Status */
    .password-validation-status {
        margin-top: 0.5rem;
        padding: 0.5rem;
        border-radius: 8px;
        background: var(--grey-50);
        border: 1px solid #dee2e6;
    }

    .validation-loading {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--grey-600);
        font-size: 0.9rem;
    }

    .validation-loading i {
        color: var(--gold-alt);
    }

    /* Password Strength */
    .password-strength {
        margin-top: 0.5rem;
    }

    .strength-bar {
        height: 4px;
        background: var(--grey-150);
        border-radius: 2px;
        overflow: hidden;
        margin-bottom: 0.25rem;
    }

    .strength-fill {
        height: 100%;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .strength-text {
        font-size: 0.8rem;
        color: var(--grey-600);
    }

    .password-requirements {
        margin-top: 0.75rem;
        display: grid;
        gap: 0.25rem;
    }

    .requirement {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        color: var(--grey-600);
        transition: all 0.3s ease;
    }

    .requirement i {
        margin-right: 0.5rem;
        color: #dee2e6;
        transition: color 0.3s ease;
    }

    .requirement.met {
        color: var(--green-alt);
    }

    .requirement.met i {
        color: var(--green-alt);
    }

    .requirement.checking {
        color: var(--gold-alt);
    }

    .requirement.checking i {
        color: var(--gold-alt);
        animation: pulse 1s infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    /* Error Messages */
    .error-message {
        color: #e74c3c;
        font-size: 0.8rem;
        margin-top: 0.25rem;
        display: block;
        min-height: 1rem;
    }

    /* Form Actions */
    .form-actions {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        justify-content: flex-end;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        border: none;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-primary {
        background: var(--gold-alt);
        color: white;
    }

    .btn-primary:hover:not(:disabled) {
        background: #b8941f;
        transform: translateY(-2px);
    }

    .btn-secondary {
        background: var(--grey-600);
        color: white;
    }

    .btn-secondary:hover:not(:disabled) {
        background: #545b62;
    }

    .btn-success {
        background: var(--green-alt);
        color: white;
    }

    .btn-success:hover:not(:disabled) {
        background: #218838;
        transform: translateY(-2px);
    }

    .btn.hidden {
        display: none;
    }

    .btn-loading.hidden {
        display: none;
    }

    /* Footer */
    .signup-footer {
        text-align: center;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--grey-150);
    }

    .login-link {
        margin: 0;
        color: var(--grey-600);
    }

    .link-primary {
        color: var(--gold-alt);
        text-decoration: none;
        font-weight: 500;
    }

    .link-primary:hover {
        text-decoration: underline;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .signup-page-container {
            padding: 1rem;
        }

        .signup-form-wrapper {
            padding: 2rem 1.5rem;
        }

        .form-row {
            grid-template-columns: 1fr;
        }

        .signup-progress {
            flex-direction: column;
            gap: 1rem;
        }

        .signup-progress::before {
            display: none;
        }

        .progress-step {
            flex-direction: row;
            max-width: none;
        }

        .step-number {
            margin-bottom: 0;
            margin-right: 0.75rem;
        }

        .form-actions {
            flex-direction: column;
        }
    }

    /* International Phone Input Styling */
    .iti {
        width: 100%;
    }

    .iti__country-list {
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .iti__selected-country {
        padding: 0.875rem 1rem;
    }

/* ---- from inc/profile-privacy-settings.inc.php ---- */

/* ===== Privacy settings page ===== */
.privacy-settings-box {
    max-width: 700px;
    margin: 0 auto;
}

.text-gold { color: var(--brand-gold); }

.privacy-status,
.data-rights {
    margin-bottom: var(--space-5);
    padding: var(--space-5);
    background: var(--surface-alt);
    border-radius: var(--radius);
}

.data-rights { background: var(--info-bg); }

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-top: var(--space-4);
}

.status-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    margin-left: var(--space-3);
    color: var(--text-inverse);
    background: var(--border-strong);
}

.status-badge--accepted   { background: var(--success); }
.status-badge--rejected   { background: var(--danger); }
.status-badge--customized { background: var(--warning); }

.status-date { margin-left: var(--space-3); }

.quick-actions,
.cookie-details { margin-bottom: var(--space-5); }

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.action-buttons .btn { text-decoration: none; }

.cookie-detail-item {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.cookie-detail-item h4 {
    margin-bottom: var(--space-3);
}

.cookie-detail-item--ok   h4 { color: var(--success); }
.cookie-detail-item--warn h4 { color: var(--warning); }

.cookie-status-pill {
    float: right;
    background: var(--border-strong);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
}

.cookie-status-pill--on  { background: var(--success); }
.cookie-status-pill--off { background: var(--danger); }

.cookie-detail-item small { color: var(--text-muted); }

.rights-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.rights-summary-grid p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.privacy-contact {
    padding: var(--space-5);
    background: var(--warning-bg);
    border-radius: var(--radius);
    border: 1px solid var(--warning);
}

.privacy-actions-footer {
    text-align: center;
    margin-top: var(--space-5);
}

/* Semantic button color variants */
.btn--primary   { background: var(--brand-gold); color: var(--text-inverse); }
.btn--secondary { background: var(--brand-black); color: var(--text-inverse); }
.btn--info      { background: var(--info); color: var(--text-inverse); }
.btn--success   { background: var(--success); color: var(--text-inverse); }
.btn--danger    { background: var(--danger); color: var(--text-inverse); }

@media (max-width: 767px) {
    .status-grid { grid-template-columns: 1fr; }
}

/* ---- from inc/profile-delete-account.inc.php ---- */

/* ===== Delete account page ===== */
.delete-account-container .warning-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--warning-bg);
    border: 1px solid var(--warning);
}

.delete-account-container .warning-box h3 {
    color: #856404;
}

.delete-account-container .section { margin-bottom: var(--space-5); }

.delete-account-container .notice {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border-radius: var(--radius-sm);
}
.delete-account-container .notice--muted { background-color: var(--surface-alt); }
.delete-account-container .notice--info  { background-color: var(--info-bg); }

.delete-account-container .bullet-list {
    margin-left: var(--space-5);
    list-style: disc;
}

.delete-account-form {
    max-width: 400px;
    margin: var(--space-5) auto;
}

.delete-account-actions {
    text-align: center;
    margin-top: var(--space-5);
}

.delete-account-actions .btn + .btn { margin-left: var(--space-3); }

.text-danger { color: var(--danger); }
.btn--danger  { background-color: var(--danger); color: var(--text-inverse); }
.btn--info    { background-color: var(--info); color: var(--text-inverse); }
.btn--neutral { background-color: var(--text-muted); color: var(--text-inverse); }

/* ---- from inc/profile-data-export.inc.php ---- */

/* ===== Data export page (GDPR Art. 20) ===== */
.data-export-container .box {
    max-width: 700px;
    margin: 0 auto;
}

.data-export-container .notice {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border-radius: var(--radius-sm);
}
.data-export-container .notice--info      { background-color: var(--info-bg); }
.data-export-container .notice--muted     { background-color: var(--surface-alt); }
.data-export-container .notice--warning   { background-color: var(--warning-bg); }
.data-export-container .notice--highlight { background-color: #d1ecf1; }

.data-export-container .export-details { margin-bottom: var(--space-5); }

.data-export-container .bullet-list {
    margin-left: var(--space-5);
    list-style: disc;
}

.data-export-container .form-centered  { text-align: center; }
.data-export-container .actions-footer { text-align: center; margin-top: var(--space-5); }

.data-export-container .btn--lg {
    font-size: var(--fs-md);
    padding: var(--space-4) var(--space-6);
}

.text-info    { color: var(--info); }
.btn--neutral { background-color: var(--text-muted); color: var(--text-inverse); }

/* ---- from inc/profile-customer-data.inc.php ---- */

    .customer-box {
        margin-bottom: 20px;
        position: relative;
    }

    .box-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .box-header h4 {
        font-size: 1.2rem;
        margin: 0;
    }

    .modify-link {
        font-size: 0.9rem;
        text-decoration: none;
    }

    .box-content p {
        margin: 5px 0;
    }

    .box-content p:first-child {
        margin-top: 10px;
    }

/* ---- from inc/profile-security-logins.inc.php ---- */

    .history-login-mobile-table {
        display: none;
    }

    .history-login-mobile-table .box {
        margin-bottom: 1rem;
    }

    /* Responsive Styles */
    @media (max-width: 768px) {

        /* Hide the desktop table on smaller screens */
        .data-table {
            display: none;
        }

        /* Show the mobile-friendly version on smaller screens */
        .history-login-mobile-table {
            display: block;
        }
    }

/* ---- from inc/profile-security-password.inc.php ---- */

    .password-wrapper {
        position: relative;
    }

    .toggle-password {
        position: absolute;
        right: 10px;
        top: 60%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .toggle-password i {
        color: white;
        opacity: 50%;
    }

/* ---- from inc/profile-security.inc.php ---- */

    .security-options {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
