/* Base wrapper for all REWARIS forms & blocks */
.rewaris-profile-block,
.rewaris-login-form,
.rewaris-register-form {
    max-width: 420px;
    margin: 40px auto;
    padding: 24px 22px;
    border-radius: 16px;
     border: 2px solid rgba(255, 121, 0, 0.5);
    background: var(--gradient4);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Optional darker background for the page */
body.page .rewaris-form-wrapper,
body.page .rewaris-profile-block {
    /* Uncomment if you want soft background on pages with forms
    background-color: #ffffff;
    */
}

.rewaris-form-wrapper h2,
.rewaris-profile-block h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

/* Messages */
.rewaris-message {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.rewaris-message.rewaris-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.rewaris-message.rewaris-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Form fields */
.rewaris-form-wrapper form p {
    margin: 0 0 14px;
}

.rewaris-form-wrapper label {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.rewaris-form-wrapper input[type="text"],
.rewaris-form-wrapper input[type="email"],
.rewaris-form-wrapper input[type="password"],
.rewaris-form-wrapper input[type="url"] {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rewaris-form-wrapper input[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.rewaris-form-wrapper input[type="text"]:focus,
.rewaris-form-wrapper input[type="email"]:focus,
.rewaris-form-wrapper input[type="password"]:focus,
.rewaris-form-wrapper input[type="url"]:focus {
    outline: none;
    border-color: #ffa200;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

/* Submit buttons */
.rewaris-form-wrapper input[type="submit"] {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #fc9f35, #ffa200);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rewaris-form-wrapper input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.rewaris-form-wrapper input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

/* Small helper text / links */
.rewaris-form-wrapper .rewaris-helper {
    margin-top: 10px;
    font-size: 13px;
    color: #fff;
}

.rewaris-form-wrapper .rewaris-helper a {
    color: #fff;
    text-decoration: none;
}

.rewaris-form-wrapper .rewaris-helper a:hover {
    text-decoration: underline;
}

/* Profile block */
.rewaris-profile-block p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #fff;
}

.rewaris-profile-block strong {
    font-weight: 600;
}

.rewaris-profile-block a {
    color: #ff8400;
    text-decoration: none;
}

.rewaris-profile-block a:hover {
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .rewaris-form-wrapper,
    .rewaris-profile-block {
        margin: 24px 16px;
        padding: 18px 16px;
    }
}

/* Full-width forms: edit profile + edit avatar */
.rewaris-edit-profile-form,
.rewaris-edit-avatar-form {
    max-width: 100%;
    margin: 24px 0;
}

/* Base style (desktop + general) */
.rewaris-profile-block {
    box-sizing: border-box;
    max-width: 100%;
    margin: 10px 0;
    padding: 12px 14px;
    border: 1px solid #f97316; /* your orange border */
    border-radius: 10px;
    background: transparent;   /* no background */
}

/* Make sure it's visible and full-width inside mobile menu */
@media (max-width: 768px) {
    .rewaris-profile-block {
        display: block !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        padding: 12px 16px !important;
    }

    /* Ensure inner content doesn't get crushed */
    .rewaris-profile-block .rewaris-profile-container {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .rewaris-profile-block .rewaris-profile-info {
        min-width: 0; /* allow text to wrap nicely */
    }

    .rewaris-profile-block p {
        margin: 2px 0;
        font-size: 14px;
        color: #000; /* you wanted black text */
    }

    .rewaris-wager-progress {
        margin-top: 8px;
    }
}
/* Mobile: hide sidebar-me (desktop position), show only the dropdown copy */
@media (max-width: 991px) {

    .sticky-sidebar .sidebar-top .sidebar-me {
        display: none;
    }

    .sticky-sidebar .sidebar-me-mobile .rewaris-profile-block {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 14px;
        border: 1px solid #f97316; /* keeps your border-only look */
        border-radius: 10px;
        background: transparent;
    }
}
@media (max-width: 767px) {
    .sticky-sidebar .responsive-mode.sidebar-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;   /* so icons don’t center weirdly */
        gap: 10px;                 /* space between profile and icons */
    }

    .sticky-sidebar .mobile-profile-block {
        width: 100%;
    }
}
/* Default: desktop */
.sidebar-me {
    display: block;
}
.mobile-profile-block {
    display: none;
}

/* Mobile: hide desktop version, show mobile version above menu */
@media (max-width: 767px) {
    .sidebar-me {
        display: none;
    }

    .mobile-profile-block {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}

