﻿.scdev-profile-page,
.scdev-public-profile {
    width: min(100%, 1180px);
    margin: 0 auto;
    color: #1f2937;
    font-family: inherit;
}

.scdev-profile-page *,
.scdev-public-profile * {
    box-sizing: border-box;
}

.profile-banner,
.pub-profile-banner {
    position: relative;
    min-height: 70px;
    border-radius: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.banner-user-info,
.pub-profile-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 4px 8px;
    min-height: 70px;
    background: linear-gradient(135deg, rgba(108, 123, 237, 0.92), rgba(121, 67, 160, 0.92));
    text-align: left;
}

.banner-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner-avatar,
.pub-profile-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.95);
    background: #fff;
    flex: 0 0 auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.banner-name,
.pub-profile-name {
    margin: 0;
    color: #fff !important;
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-upload-avatar {
    background: #1da1f2;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 4px 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.profile-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    background: #1f1f1f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-public-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    background: #667eea;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 4px 8px;
    background: #fff;
    border-bottom: 1px solid #dbe0ea;
}

.tab-btn {
    border: 0;
    background: transparent;
    color: #4b5563;
    border-radius: 0;
    padding: 4px 8px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: transparent;
    color: #1990ff;
    border-bottom-color: #1990ff;
    margin-bottom: -1px;
}

.tab-content {
    display: none;
    background: #fff;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-top: 0;
}

.tab-content.active {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.info-item,
.settings-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 4px 8px;
}

.info-item strong,
.settings-section h4,
.tab-content h3 {
    display: block;
    margin: 0 0 8px;
    color: #111827;
}

.info-item span,
.info-item a {
    color: #374151;
    word-break: break-word;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.info-item strong {
    display: inline-block;
    flex: 0 0 120px;
    margin: 0;
}

.info-item span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label,
.settings-section label {
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 4px 8px;
    background: #fff;
    color: #111827;
}

.btn-submit,
.btn-logout,
.user-profile-btn.logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 0;
    background: #667eea;
    color: #fff !important;
    padding: 4px 8px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.scdev-login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scdev-login-wrapper > .scdev-login-form {
    display: none;
    width: min(100%, 240px);
    margin: 18px auto 0;
    padding: 10px 12px 12px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 12px;
}

.scdev-login-form .btn-google-login,
.scdev-login-form .btn-facebook-login,
.scdev-login-form .divider,
.scdev-login-form .form-group,
.scdev-login-form .btn-submit,
.scdev-login-form .form-links,
.scdev-login-form .form-message {
    width: 100%;
}

.scdev-login-form .divider {
    text-align: center;
    margin: 4px 0 2px;
}

.scdev-login-form .divider span {
    display: inline-block;
    margin: 0 auto;
}

.scdev-login-form .btn-google-login {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    overflow: hidden;
    box-shadow: none !important;
    background: rgba(39, 111, 62, 0.58) !important;
}

.scdev-login-form .btn-facebook-login {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    overflow: hidden;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.58) !important;
}

.scdev-login-form .btn-google-login svg,
.scdev-login-form .btn-facebook-login svg {
    flex: 0 0 auto;
}

.scdev-login-form .form-group {
    gap: 2px;
    margin-bottom: 4px;
}

.scdev-login-form .scdev-login-input-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.scdev-login-form .scdev-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #53595b;
    flex: 0 0 auto;
    line-height: 1;
}

.scdev-login-form .scdev-login-input-row input[type="text"],
.scdev-login-form .scdev-login-input-row input[type="password"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.65);
}

.scdev-login-form .scdev-login-input-row input[type="text"],
.scdev-login-form .scdev-login-input-row input[type="password"],
.scdev-register-form .form-group select,
.scdev-login-form select {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.scdev-register-form {
    font-size: 14px;
}

.scdev-register-form .scdev-form-title {
    font-size: 24px;
    margin: 0 0 16px;
    text-align: center;
    color: #1f2937;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.3;
}

.scdev-register-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: start;
}

/* Gender row &mdash; single field, inline label + input */
.scdev-register-form .gender-row {
    display: block;
}

.scdev-register-form .gender-row .field-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.scdev-register-form .gender-row .field-inline > label {
    flex: 0 0 80px;
    white-space: nowrap;
    margin: 0;
}

.scdev-register-form .gender-row .field-inline > select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.scdev-register-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.scdev-register-form .form-row > .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

/* Email field &mdash; add top gap to separate from the name row above */
.scdev-register-form .email-field {
    margin-top: 14px;
}

.scdev-register-form .form-group label {
    white-space: normal;
    margin: 0;
}

.scdev-register-form .form-group input,
.scdev-register-form .form-group select {
    min-width: 0;
}

.scdev-register-form .form-row > .form-group > label {
    margin: 0;
    text-align: left;
}

.scdev-register-form .field-inline,
.scdev-reset-form .field-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.scdev-register-form .field-inline > label,
.scdev-reset-form .field-inline > label {
    flex: 0 0 80px;
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
}

.scdev-register-form .form-row .form-group:last-child label {
    white-space: normal;
}

.scdev-register-form .field-inline > input,
.scdev-register-form .field-inline > .password-wrapper,
.scdev-reset-form .field-inline > input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.scdev-register-form .form-group label,
.scdev-register-form .checkbox-label,
.scdev-register-form .checkbox-label span,
.scdev-register-form .form-group input,
.scdev-register-form .form-group select,
.scdev-register-form .form-group textarea,
.scdev-register-form .form-links {
    font-size: 14px;
}

.scdev-register-form .form-group input,
.scdev-register-form .form-group select,
.scdev-register-form .form-group textarea {
    padding: 4px 8px;
}

.scdev-register-form .password-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    width: 100%;
}

.scdev-register-form .password-wrapper input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.scdev-register-form .password-wrapper .toggle-password {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 4px 8px;
}

.scdev-register-form .terms-group {
    margin-top: 0;
    width: 100%;
}

.scdev-register-form .checkbox-label {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start !important;
    column-gap: 10px;
    width: 100%;
    margin: 0;
    padding: 4px 8px;
    line-height: 1.35;
    text-align: left;
}

.scdev-register-form .checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    align-self: start;
}

.scdev-register-form .checkbox-label span {
    display: block;
    min-width: 0;
    width: auto;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.scdev-register-form .required-field {
    color: #dc2626;
    font-weight: 700;
    margin-left: 3px;
}

.scdev-register-form .optional-field {
    color: #6b7280;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 4px;
}

.scdev-profile-page .form-message {
    display: none;
    width: 100%;
    margin-top: 12px;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.35;
}

.scdev-profile-page .form-message.success {
    display: block;
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.scdev-profile-page .form-message.error {
    display: block;
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.scdev-profile-page .form-message.warning {
    display: block;
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.scdev-profile-page .form-message.info {
    display: block;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.scdev-login-form .form-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 8px;
    font-size: 12px;
}

.scdev-login-form .form-links a {
    white-space: nowrap;
}

.scdev-login-form .form-message {
    display: none;
    margin-top: 10px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.3;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(107, 114, 128, 0.18);
}

.scdev-login-form .form-message.success {
    display: block;
    background: rgba(236, 253, 245, 0.9);
    border-color: rgba(16, 185, 129, 0.28);
    color: #166534;
}

.scdev-login-form .form-message.error {
    display: block;
    background: rgba(254, 242, 242, 0.92);
    border-color: rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

.scdev-register-form .form-links {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.scdev-register-form .btn-submit {
    display: block;
    margin: 0 auto;
    background: transparent !important;
    color: #3b82f6 !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 999px !important;
    padding: 4px 8px !important;
    font-weight: 700;
    cursor: pointer;
}

.scdev-register-form .btn-submit:disabled {
    opacity: 0.75;
    cursor: default;
}

.scdev-login-get-started {
    border-radius: 999px !important;
    min-width: 120px;
    padding: 4px 8px;
    cursor: pointer !important;
    background: rgba(130, 165, 232, 0.35) !important;
    border: 2px solid rgba(43, 46, 45, 0.9) !important;
    color: #cdefd7 !important;
    box-shadow: 0 0 6px rgba(255, 220, 50, 0.6), inset 0 0 4px rgba(255, 220, 50, 0.35) !important;
}

.scdev-profile-page .btn-submit,
.scdev-profile-page .btn-logout,
.scdev-profile-page .user-profile-btn.logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #667eea !important;
    color: #fff !important;
    border: 0 !important;
    padding: 4px 8px;
    min-height: 44px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.18);
}

.scdev-profile-page .btn-submit:hover,
.scdev-profile-page .btn-logout:hover,
.scdev-profile-page .user-profile-btn.logout:hover {
    background: #5568d3 !important;
    color: #fff !important;
}

.scdev-profile-page .btn-submit {
    margin-top: 14px;
}

.scdev-profile-page #profileSettingsForm .btn-submit {
    display: block !important;
    margin: 18px auto 0 !important;
    border: 1px solid #667eea !important;
    border-radius: 12px !important;
    min-width: 160px;
}

.scdev-profile-page .form-row {
    margin-bottom: 10px;
}

.scdev-profile-page #privacySettingsForm .btn-submit,
.scdev-profile-page .logout-wrapper {
    display: flex !important;
    justify-content: center !important;
}

.scdev-profile-page #privacySettingsForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scdev-profile-page #privacySettingsForm .btn-submit,
.scdev-profile-page .user-profile-btn.logout {
    border-radius: 12px !important;
    border: 1px solid #667eea !important;
}

.scdev-profile-page #privacySettingsForm .btn-submit {
    align-self: center;
    width: fit-content;
    min-width: 160px;
}

.scdev-profile-page .logout-wrapper {
    margin-top: 20px;
}

.logout-wrapper {
    display: flex;
    justify-content: flex-start;
}

.scdev-follows-modal,
.scdev-follows-modal[style*="display: none"] {
    display: none;
}

.scdev-follows-modal.is-open {
    display: flex;
}

.scdev-follows-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
}

.scdev-follows-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.scdev-follows-modal-box {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: 80vh;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.scdev-follows-modal-body {
    overflow: auto;
    padding: 4px 8px;
}

.scdev-auth-modal {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
}

.scdev-auth-modal.is-open {
    display: flex !important;
}

.scdev-auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.scdev-auth-modal-box {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.75) !important;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    padding: 4px 8px;
}

.scdev-auth-modal-box.is-reset-mode {
    width: min(100%, 340px);
    max-width: 340px;
    padding: 4px 8px;
}

.scdev-auth-modal-box.is-reset-mode .scdev-reset-form {
    padding-inline: 0;
}

.scdev-auth-modal-box.is-reset-mode .scdev-reset-form > p {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0 0 14px;
    padding-bottom: 6px;
}

.scdev-auth-modal-box.is-reset-mode .scdev-reset-form .form-group label {
    color: #4b5563;
    font-size: 0.92rem;
}

.scdev-auth-modal-box.is-reset-mode .scdev-reset-form .btn-submit {
    margin-top: 14px;
    margin-bottom: 8px;
    color: #374151 !important;
    border: 1px solid #374151 !important;
}

.scdev-auth-modal-box.is-reset-mode .scdev-reset-form .form-links {
    margin-top: 10px;
    margin-bottom: 4px;
}

/* Reset form &mdash; center button and back link */
.scdev-reset-form .scdev-form-title,
.scdev-auth-modal-box.is-reset-mode .scdev-reset-form .scdev-form-title {
    font-size: 24px;
    margin: 0 0 10px;
    padding-bottom: 4px;
    text-align: center;
    color: #1f2937;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.3;
}

.scdev-reset-form .btn-submit {
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

.scdev-reset-form .form-links {
    text-align: center;
}

.scdev-auth-modal-pane {
    display: none;
}

.scdev-auth-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.scdev-profile-page .profile-banner,
.scdev-public-profile .pub-profile-banner {
    min-height: 70px !important;
}

.scdev-profile-page .banner-user-info,
.scdev-public-profile .pub-profile-banner-inner {
    justify-content: center !important;
    padding: 4px 8px;
    min-height: 70px !important;
    background: linear-gradient(135deg, rgba(108, 123, 237, 0.92), rgba(121, 67, 160, 0.92)) !important;
}

.scdev-profile-page .banner-name,
.scdev-public-profile .pub-profile-name {
    color: #fff !important;
}

.scdev-profile-page .profile-tabs {
    justify-content: center !important;
    gap: 28px !important;
    padding: 4px 8px;
    background: #fff !important;
    border-bottom: 1px solid #dbe0ea !important;
}

.scdev-profile-page .tab-btn {
    color: #4b5563 !important;
    border-bottom: 3px solid transparent !important;
}

.scdev-profile-page .tab-btn.active {
    color: #1990ff !important;
    border-bottom-color: #1990ff !important;
}

@media (max-width: 780px) {
    .banner-user-info,
    .pub-profile-banner-inner,
    .profile-tabs,
    .tab-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .banner-user-info,
    .pub-profile-banner-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .info-item {
        gap: 10px;
    }

    .info-item strong {
        flex-basis: 104px;
    }

    .banner-avatar,
    .pub-profile-avatar {
        width: 90px;
        height: 90px;
    }

    .banner-name,
    .pub-profile-name {
        font-size: 1.5rem;
    }

    .profile-tabs {
        gap: 18px;
    }

    .scdev-auth-modal {
        padding: 4px 8px;
    }

    .scdev-auth-modal-box {
        width: min(100%, 100%);
        padding: 4px 8px;
    }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* DARK MODE / NIGHT MODE STYLING                                             */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Main containers - Night mode background & text */
body.night-mode .scdev-profile-page,
body.night-mode .scdev-public-profile {
    background: #0f172a !important;
    color: #cbd5e1 !important;
}

/* Banner section - Dark mode */
body.night-mode .scdev-profile-page .profile-banner,
body.night-mode .scdev-profile-page .pub-profile-banner,
body.night-mode .scdev-public-profile .pub-profile-banner {
    background-color: #1e293b !important;
}

body.night-mode .scdev-profile-page .banner-user-info,
body.night-mode .scdev-profile-page .pub-profile-banner-inner,
body.night-mode .scdev-public-profile .pub-profile-banner-inner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(139, 92, 246, 0.85)) !important;
}

body.night-mode .scdev-profile-page .banner-name,
body.night-mode .scdev-profile-page .pub-profile-name,
body.night-mode .scdev-public-profile .pub-profile-name {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

body.night-mode .scdev-profile-page .banner-avatar,
body.night-mode .scdev-profile-page .pub-profile-avatar,
body.night-mode .scdev-public-profile .pub-profile-avatar {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: #1e293b !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .scdev-profile-page .btn-upload-avatar {
    background: #3b82f6 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Stats bar - Dark mode */
body.night-mode .scdev-profile-page .profile-stats-bar {
    background: #1e293b !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .scdev-profile-page .btn-public-page {
    background: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.2s ease !important;
}

body.night-mode .scdev-profile-page .btn-public-page:hover {
    background: #2563eb !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

/* Tabs - Dark mode */
body.night-mode .scdev-profile-page .profile-tabs {
    background: #1e293b !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .scdev-profile-page .tab-btn {
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}

body.night-mode .scdev-profile-page .tab-btn:hover {
    color: #cbd5e1 !important;
}

body.night-mode .scdev-profile-page .tab-btn.active {
    color: #3b82f6 !important;
    border-bottom-color: #3b82f6 !important;
}

/* Tab content - Dark mode */
body.night-mode .scdev-profile-page .tab-content {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

body.night-mode .scdev-profile-page .tab-content h3,
body.night-mode .scdev-profile-page .tab-content h4,
body.night-mode .scdev-profile-page .tab-content h5 {
    color: #ffffff !important;
}

/* Info grid items - Dark mode */
body.night-mode .scdev-profile-page .info-grid {
    gap: 14px 18px;
}

body.night-mode .scdev-profile-page .info-item {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

body.night-mode .scdev-profile-page .info-item strong {
    color: #94a3b8 !important;
}

body.night-mode .scdev-profile-page .info-item span {
    color: #cbd5e1 !important;
}

body.night-mode .scdev-profile-page .info-item a {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

body.night-mode .scdev-profile-page .info-item a:hover {
    color: #60a5fa !important;
}

/* Settings sections - Dark mode */
body.night-mode .scdev-profile-page .settings-section {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

body.night-mode .scdev-profile-page .settings-section h4,
body.night-mode .scdev-profile-page .settings-section > p {
    color: #ffffff !important;
}

body.night-mode .scdev-profile-page .settings-section label {
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

body.night-mode .scdev-profile-page .settings-section p {
    color: #94a3b8 !important;
}

/* Form elements - Dark mode */
body.night-mode .scdev-profile-page .form-group label {
    color: #cbd5e1 !important;
}

body.night-mode .scdev-profile-page .form-group input,
body.night-mode .scdev-profile-page .form-group select,
body.night-mode .scdev-profile-page .form-group textarea,
body.night-mode .scdev-profile-page .scdev-privacy-select {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transition: all 0.2s ease !important;
}

body.night-mode .scdev-profile-page .form-group input:focus,
body.night-mode .scdev-profile-page .form-group select:focus,
body.night-mode .scdev-profile-page .form-group textarea:focus,
body.night-mode .scdev-profile-page .scdev-privacy-select:focus {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

body.night-mode .scdev-profile-page .form-group input::placeholder,
body.night-mode .scdev-profile-page .form-group textarea::placeholder {
    color: #64748b !important;
}

body.night-mode .scdev-profile-page .form-group input:disabled,
body.night-mode .scdev-profile-page .form-group select:disabled,
body.night-mode .scdev-profile-page .form-group textarea:disabled {
    background: #0f172a !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    opacity: 0.6 !important;
}

/* Checkboxes and radio buttons - Dark mode */
body.night-mode .scdev-profile-page .checkbox-label {
    color: #cbd5e1 !important;
    cursor: pointer !important;
}

body.night-mode .scdev-profile-page .checkbox-label input[type="checkbox"],
body.night-mode .scdev-profile-page .checkbox-label input[type="radio"] {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Buttons - Dark mode */
body.night-mode .scdev-profile-page .btn-submit,
body.night-mode .scdev-profile-page .btn-logout,
body.night-mode .scdev-profile-page .user-profile-btn.logout,
body.night-mode .scdev-profile-page .btn-download {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.2s ease !important;
}

body.night-mode .scdev-profile-page .btn-submit:hover,
body.night-mode .scdev-profile-page .btn-logout:hover,
body.night-mode .scdev-profile-page .user-profile-btn.logout:hover,
body.night-mode .scdev-profile-page .btn-download:hover {
    background: #2563eb !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

body.night-mode .scdev-profile-page .btn-submit:active,
body.night-mode .scdev-profile-page .btn-logout:active,
body.night-mode .scdev-profile-page .user-profile-btn.logout:active,
body.night-mode .scdev-profile-page .btn-download:active {
    background: #1d4ed8 !important;
}

/* Modals - Dark mode */
body.night-mode .scdev-profile-page .scdev-follows-modal-backdrop,
body.night-mode .scdev-profile-page .scdev-auth-modal-backdrop {
    background: rgba(0, 0, 0, 0.7) !important;
}

body.night-mode .scdev-profile-page .scdev-follows-modal-box,
body.night-mode .scdev-profile-page .scdev-auth-modal-box {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6) !important;
    color: #cbd5e1 !important;
}

body.night-mode .scdev-profile-page .scdev-follows-modal-header,
body.night-mode .scdev-profile-page .scdev-auth-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .scdev-profile-page .scdev-follows-modal-header h3,
body.night-mode .scdev-profile-page .scdev-auth-modal-header h3 {
    color: #ffffff !important;
}

body.night-mode .scdev-profile-page .scdev-follows-modal-close,
body.night-mode .scdev-profile-page .scdev-auth-modal-close {
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    transition: color 0.2s ease !important;
}

body.night-mode .scdev-profile-page .scdev-follows-modal-close:hover,
body.night-mode .scdev-profile-page .scdev-auth-modal-close:hover {
    color: #ffffff !important;
}

body.night-mode .scdev-profile-page .scdev-follows-modal-content,
body.night-mode .scdev-profile-page .scdev-auth-modal-content {
    color: #cbd5e1 !important;
}

/* Orders and Subscriptions - Dark mode */
body.night-mode .scdev-profile-page .orders-list,
body.night-mode .scdev-profile-page .profile-subscriptions-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

body.night-mode .scdev-profile-page .order-card,
body.night-mode .scdev-profile-page .profile-subscription-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 4px 8px;
    color: #cbd5e1 !important;
    transition: all 0.2s ease !important;
}

body.night-mode .scdev-profile-page .order-card:hover,
body.night-mode .scdev-profile-page .profile-subscription-card:hover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.night-mode .scdev-profile-page .order-header,
body.night-mode .scdev-profile-page .order-total,
body.night-mode .scdev-profile-page .profile-subscription-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    gap: 12px !important;
}

body.night-mode .scdev-profile-page .order-header strong,
body.night-mode .scdev-profile-page .order-total strong,
body.night-mode .scdev-profile-page .profile-subscription-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

body.night-mode .scdev-profile-page .order-date {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
}

body.night-mode .scdev-profile-page .order-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .scdev-profile-page .order-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 4px 8px;
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
}

body.night-mode .scdev-profile-page .order-item a {
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    padding: 4px 8px;
    border-radius: 6px !important;
    background: rgba(59, 130, 246, 0.1) !important;
    transition: all 0.2s ease !important;
}

body.night-mode .scdev-profile-page .order-item a:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}

body.night-mode .scdev-profile-page .order-status {
    display: inline-block !important;
    padding: 4px 8px;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

body.night-mode .scdev-profile-page .order-status.status-completed,
body.night-mode .scdev-profile-page .order-status.status-active {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #86efac !important;
}

body.night-mode .scdev-profile-page .order-status.status-pending {
    background: rgba(251, 146, 60, 0.2) !important;
    color: #fed7aa !important;
}

body.night-mode .scdev-profile-page .order-status.status-cancelled {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

/* Subscription cards - Dark mode */
body.night-mode .scdev-profile-page .profile-subscription-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 12px !important;
}

body.night-mode .scdev-profile-page .profile-subscription-item {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 8px !important;
    padding: 4px 8px;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

body.night-mode .scdev-profile-page .profile-subscription-label {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

body.night-mode .scdev-profile-page .profile-subscription-value {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

body.night-mode .scdev-profile-page .profile-subscription-status {
    display: inline-block !important;
    padding: 4px 8px;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

body.night-mode .scdev-profile-page .profile-subscription-status.is-active {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #86efac !important;
}

body.night-mode .scdev-profile-page .profile-subscription-status.is-expired {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

body.night-mode .scdev-profile-page .profile-subscriptions-empty {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 4px 8px;
    text-align: center !important;
    color: #94a3b8 !important;
}

/* Public Profile - Stats section - Dark mode */
body.night-mode .scdev-public-profile .pub-profile-stats {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 4px 8px;
    background: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .scdev-public-profile .pub-stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 4px 8px;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
}

body.night-mode .scdev-public-profile .pub-stat:hover,
body.night-mode .scdev-public-profile .pub-stat-btn:hover {
    color: #ffffff !important;
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

body.night-mode .scdev-public-profile .pub-stat-count {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #ffffff !important;
}

body.night-mode .scdev-public-profile .pub-stat-label {
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
}

/* Public Profile - About section - Dark mode */
body.night-mode .scdev-public-profile .pub-profile-about {
    padding: 4px 8px;
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .scdev-public-profile .pub-profile-bio {
    color: #cbd5e1 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

body.night-mode .scdev-public-profile .pub-profile-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
}

body.night-mode .scdev-public-profile .pub-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 4px 8px;
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #cbd5e1 !important;
    transition: all 0.2s ease !important;
}

body.night-mode .scdev-public-profile .pub-meta-item:hover {
    background: #334155 !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

body.night-mode .scdev-public-profile .pub-meta-icon {
    font-size: 1.2rem !important;
    flex: 0 0 auto !important;
}

body.night-mode .scdev-public-profile .pub-meta-text {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
}

body.night-mode .scdev-public-profile .pub-meta-text a {
    color: #3b82f6 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

body.night-mode .scdev-public-profile .pub-meta-text a:hover {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

/* Form message styling - Dark mode */
body.night-mode .scdev-profile-page .form-message {
    background: rgba(17, 24, 39, 0.06) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    color: #64748b !important;
}

body.night-mode .scdev-profile-page .form-message.success {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(34, 197, 94, 0.28) !important;
}

body.night-mode .scdev-profile-page .form-message.error {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
}

body.night-mode .scdev-profile-page .form-message.warning {
    background: rgba(251, 146, 60, 0.12) !important;
    color: #fed7aa !important;
    border-color: rgba(251, 146, 60, 0.28) !important;
}

body.night-mode .scdev-profile-page .form-message.info {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
}

/* HR dividers - Dark mode */
body.night-mode .scdev-profile-page hr {
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 20px 0 !important;
}

/* Field hint text - Dark mode */
body.night-mode .scdev-profile-page .field-hint {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: normal !important;
    display: block !important;
    margin-top: 4px !important;
}
