body {
    margin: unset;
}

/* ============================================================
   TOP NAV BAR
   ============================================================ */
.profile-page-nav {
    border-bottom: 1px solid #F4F4F4;
    display: flex;
    align-items: center;
    padding: 0.5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 200;
    height: 57px;
}

.back-to-map {
    font-size: 18px;
    line-height: 22px;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.back-to-map a {
    font-family: SFProText;
    text-decoration: none;
    color: #757575;
    display: flex;
    width: 100%;
    align-items: center;
}

.back-to-map a img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.profile-page-logo {
    margin: 0 auto;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.profile-layout {
    display: flex;
    flex-direction: row;
    margin-top: 57px;
    min-height: calc(100vh - 57px);
    background: #F7F7F7;
}

/* ============================================================
   DESKTOP SIDEBAR
   ============================================================ */
.profile-sidebar {
    width: 264px;
    min-width: 264px;
    border-right: 1px solid #EBEBEB;
    position: sticky;
    top: 57px;
    height: calc(100vh - 57px);
    overflow-y: auto;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #DEDEDE transparent;
}

.profile-sidebar::-webkit-scrollbar {
    width: 4px;
}

.profile-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.profile-sidebar::-webkit-scrollbar-thumb {
    background: #DEDEDE;
    border-radius: 4px;
}

/* Sidebar Profile Card */
.sidebar-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px 18px;
    background: #FAFAFA;
    border-radius: 16px;
    margin-bottom: 10px;
    border: 1px solid #F0F0F0;
}

.sidebar-personal-img {
    position: relative;
    margin-bottom: 0;
}

.sidebar-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #EA794C;
    background-size: cover;
    background-position: center;
    background-color: #F4F4F4;
}

.sidebar-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #EA794C;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.15s;
}

.avatar-camera-btn:hover {
    background: #c9622e;
}

.avatar-camera-btn-sm {
    width: 20px;
    height: 20px;
    bottom: -2px;
    right: -2px;
}

.sidebar-user-name {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 15px;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 3px;
    word-break: break-word;
}

.sidebar-user-email {
    font-family: 'SFProText';
    font-size: 12px;
    color: #888;
    text-align: center;
    word-break: break-all;
}

.sidebar-user-bio {
    font-family: 'SFProText';
    font-size: 12px;
    color: #757575;
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.side-tab {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 10px;
    font-family: 'SFProText';
    font-weight: 500;
    font-size: 14px;
    gap: 10px;
    transition: background 0.15s, color 0.15s;
}

.side-tab:hover {
    background: #FFF0EB;
    color: #EA794C;
    text-decoration: none;
}

.side-tab-icon {
    font-size: 20px;
    flex-shrink: 0;
    color: inherit;
}

.side-tab.side-tab-active {
    background: #FFF0EB;
    color: #EA794C;
    font-weight: 600;
}

/* Sidebar Logout */
.sidebar-logout {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F4F4F4;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    transition: background 0.15s;
    text-align: left;
}

.sidebar-logout-btn:hover {
    background: #FFF5F5;
}

/* ============================================================
   MOBILE: Profile Banner + Tab Bar
   ============================================================ */
.mobile-profile-section {
    display: none;
    background: #fff;
    border-bottom: 1px solid #EBEBEB;
}

.mobile-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.mobile-personal-img {
    flex-shrink: 0;
}

.mobile-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
}

.mobile-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50%;
    border: 2px solid #EA794C;
    background-size: cover;
    background-position: center;
    background-color: #F4F4F4;
}

.mobile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-profile-info {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 15px;
    color: #1A1A1A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-email {
    font-family: 'SFProText';
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Mobile Tab Bar */
.mobile-tab-bar {
    background: #fff;
    border-top: 1px solid #F4F4F4;
    overflow: hidden;
}

.mobile-tabs-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
}

.mobile-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    text-decoration: none;
    color: #888;
    font-family: 'SFProText';
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color 0.15s;
    flex-shrink: 0;
}

.mobile-tab:hover {
    color: #EA794C;
    text-decoration: none;
}

.mobile-tab.mobile-tab-active {
    color: #EA794C;
    border-bottom-color: #EA794C;
    font-weight: 600;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.profile-content-area {
    flex: 1;
    min-width: 0;
    padding: 32px;
    max-width: calc(100% - 264px);
    background: #F7F7F7;
}

/* ============================================================
   TAB PANELS (content sections)
   ============================================================ */
.tab {
    display: none;
    width: 100%;
}

.tab.active {
    display: block;
}

/* ============================================================
   CONTENT SECTION HEADER
   ============================================================ */
.content-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F0F0F0;
}

.content-section-title {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 22px;
    color: #1A1A1A;
    margin: 0;
}

/* ============================================================
   SETTINGS CARDS
   ============================================================ */
.settings-card {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.settings-card-title {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 15px;
    color: #1A1A1A;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card-hint {
    font-family: 'SFProText';
    font-size: 13px;
    color: #888;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.settings-card-danger {
    border-color: #FFE8E8;
    background: #FFFAFA;
}

.settings-field {
    margin-bottom: 20px;
}

.settings-field:last-child {
    margin-bottom: 0;
}

.settings-label {
    display: block;
    font-family: 'SFProText';
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.settings-input {
    width: 100%;
    max-width: 400px;
}

.settings-value {
    font-family: 'SFProText';
    font-size: 16px;
    color: #1A1A1A;
    margin: 0;
}

.settings-link-action {
    font-family: 'SFProText';
    font-size: 13px;
    color: #f37442;
    margin-top: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.settings-link-action:hover {
    text-decoration: underline;
}

/* ============================================================
   PROFILE PIC PREVIEW
   ============================================================ */
.profile-pic-preview-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-pic-preview {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    border: 3px solid #EA794C;
    background-size: cover;
    background-position: center;
    background-color: #F4F4F4;
    flex-shrink: 0;
}

.profile-pic-upload-btn {
    display: inline-flex;
    align-items: center;
}

/* ============================================================
   TWO-FACTOR BADGE
   ============================================================ */
.tfa-badge {
    font-family: 'SFProText';
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.tfa-on {
    background: #E8F5E9;
    color: #2E7D32;
}

.tfa-off {
    background: #FBE9E7;
    color: #BF360C;
}

/* ============================================================
   CONNECTED ACCOUNTS
   ============================================================ */
.connected-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'SFProText';
    font-size: 14px;
    color: #333;
    padding: 8px 0;
}

.connected-badge {
    margin-left: auto;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: #f37442;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: #e0622e;
}

.btn-outline {
    background: transparent;
    color: #f37442;
    border: 1.5px solid #f37442;
    border-radius: 8px;
    padding: 11px 22px;
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: #FFF0EB;
}

.btn-outline-danger {
    background: transparent;
    color: #DF361F;
    border: 1.5px solid #DF361F;
    border-radius: 8px;
    padding: 11px 22px;
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-danger:hover {
    background: #FFF5F5;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-secondary {
    background: #757575;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #5a5a5a;
}

.btn-success {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-success:hover {
    background: #388E3C;
}

/* ============================================================
   NOTIFICATION PREFERENCES
   ============================================================ */
.settings-subsection {
    margin-top: 24px;
}

.settings-subsection:first-child {
    margin-top: 0;
}

.settings-subsection-title {
    font-family: 'SFProText';
    font-size: 11px;
    font-weight: 700;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #F4F4F4;
}

.pref-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #FAFAFA;
    border-radius: 10px;
    gap: 14px;
    border: 1px solid transparent;
    transition: border-color 0.15s;
}

.pref-item:hover {
    border-color: #F0F0F0;
}

.pref-item-highlight {
    background: #FFF8F4;
    border-color: #F0E0D4 !important;
}

.pref-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.pref-name {
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.pref-desc {
    font-family: 'SFProText';
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.pref-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.settings-form-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #F4F4F4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.25s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #f37442;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.profile-toast {
    position: fixed;
    top: 76px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.profile-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.profile-toast-success {
    background: #4CAF50;
}

.profile-toast-error {
    background: #f44336;
}

/* ============================================================
   EXISTING CONTENT CLASSES (Assets / Blox)
   ============================================================ */
.user-subtitle {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #1A1A1A;
    margin-top: 24px;
    margin-bottom: 12px;
}

.user-area-title {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #000000;
}

.personal-img {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #EA794C;
    background-size: cover;
    background-position: center;
    background-color: #F4F4F4;
}

.input-label-group {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 5%;
}

.input-label-group label {
    font-family: SFProText;
    font-size: 14px;
    color: #757575;
    margin-bottom: 8px;
}

.metablox-input {
    background: #FFFFFF;
    border: 1px solid #DEDEDE;
    box-sizing: border-box;
    border-radius: 8px;
    width: 327px;
    height: 48px;
}

.metablox-input[type=text] {
    font-family: SFProText;
    font-size: 16px;
    line-height: 16px;
    color: #000000;
    padding: 16px;
}

#profile-username-update-err-msg, #profile-email-update-err-msg {
    color: red;
    margin-block: unset;
}

.metablox-edit {
    background-image: url("/static/influencers/assets/mode_24px.png");
    background-size: 15px;
    width: 15px;
    height: 15px;
    position: absolute;
    right: 15px;
    bottom: 15px;
    cursor: pointer;
    background-repeat: no-repeat;
}

.two-factor-notify-words, .upload-picture-notify-words {
    font-family: SFProText;
    font-size: 16px;
    line-height: 20px;
    color: #757575;
}

.two-factor-button {
    padding: 16px;
    background: #F37442;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 600;
    width: 100%;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
}

.two-factor-disabled {
    margin-top: 2%;
    background: white;
    color: #F37442;
    border: 1px solid #F37442;
}

.my-tokens {
    display: flex;
    flex-direction: row;
    max-width: -webkit-fill-available;
    padding: 16px;
    border: 1px solid #DEDEDE;
    box-sizing: border-box;
    border-radius: 16px;
    align-items: baseline;
    background: white;
}

.my-tokens-header {
    font-family: SFProText;
    color: #757575;
    margin-block: unset;
}

.my-tokens-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 16px;
}

.my-metarent {
    width: -webkit-fill-available;
    padding-left: 16px;
    border-right: 1px solid #DEDEDE;
    box-sizing: border-box;
}

.my-metacoin {
    width: -webkit-fill-available;
    padding-left: unset;
    box-sizing: border-box;
    border-right: 1px solid #DEDEDE;
}

.my-credit {
    width: -webkit-fill-available;
    padding-left: 16px;
    box-sizing: border-box;
}

span.my-amount, span.my-address {
    color: #000000;
    font-family: SFProText;
    font-weight: 500;
    font-size: 24px;
    margin-left: 1%;
}

span.my-address {
    font-size: 20px;
    padding-right: 3%;
}

span.my-amount.coming-soon {
    color: #DEDEDE;
}

.blox-gallery-for-user {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
}

/* blox-card-panel, blox-card-header redefined below in BLOX CARD — REVAMPED section */

/* Overwrite tier-level.css */
.tier-label {
    width: 30px !important;
}

.tier-label .level {
    font-size: 14px !important;
}

/* blox-info-wrap no longer used in profile (replaced by bc-identity-row) */
.blox-info-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.blox-number {
    width: auto;
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    margin: unset;
    font-family: SFProText;
    padding-right: 5%;
    cursor: pointer;
}

.blox-tier-level {
    width: 15%;
}

.metarent-info {
    width: 100%;
}

.blox-received-type-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    font-size: 14px;
}

.blox-received-type {
    font-family: SFProText;
    color: #757575;
    padding-left: 3%;
}

.action-items-button {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
    color: #F37442;
    text-align: center;
    cursor: pointer;
}

.error-message {
    font-family: Montserrat;
    display: flex;
    justify-content: center;
    padding: 1%;
    background: red;
    color: white;
}

.change-data-layout {
    width: 40%;
    margin: 0 auto;
    margin-top: 56px;
    padding-top: 48px;
}

.cancel-button {
    margin: 8px 0;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 18px;
    color: #f37442;
    display: flex;
    padding: 16px 0;
    cursor: pointer;
}

#update-username-submit-btn, #update-email-submit-btn {
    border: none;
}

.modal.email-modal, .modal.edit-account-modal {
    width: 560px;
    height: 280px;
}

.modal.edit-account-modal {
    height: 340px;
}

.modal.twofa-backup-modal-inner {
    width: 520px;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
}

.send-email-wording {
    font-family: Montserrat;
    font-size: 25px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.enable-2fa, .proceed-checkout {
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    width: 100%;
    display: none;
}

.enable-2fa.active, .proceed-checkout.active {
    display: flex;
}

.twofa-wording, .checkout-wording {
    font-family: SFProText;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.twofa-success-wording {
    font-family: Montserrat;
    font-size: 28px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
}

.otp {
    position: relative;
}

.otp fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.otp fieldset div {
    display: flex;
    align-items: center;
}

.otp legend {
    margin: 0 auto 1em;
    color: #5555FF;
}

.otp-input {
    width: .82em;
    line-height: 1;
    font-size: 24px;
    margin: 10px;
    padding: 16px;
    text-align: center;
    appearance: textfield;
    -webkit-appearance: textfield;
    border: 1px solid #DEDEDE;
    color: black;
    border-radius: 4px;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp::placeholder {
    color: #DEDEDE;
    font-size: 24px;
}

.otp-input:nth-child(n+4) {
    order: 2;
}

.otp div::before {
    content: '';
    height: 2px;
    width: 24px;
    margin: 0 .25em;
    order: 1;
    background: #e0e0e0;
}

.otp label {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

#twofa-error {
    font-family: SFProText;
    font-size: 12px;
    color: red;
}

#two-factor-off {
    color: #757575;
}

#two-factor-on {
    color: #6BBA1C;
}

.force-hide {
    display: none !important;
}

.metarent-info-numeric {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.metarent-info-title {
    font-family: 'SFPROTEXT';
    font-weight: 600;
    font-size: 14px;
    margin-block: unset;
    margin-top: 24px;
}

.metarent-info-now {
    margin-top: 12px;
    font-family: 'SFPROTEXT';
    font-size: 20px;
    font-weight: 500;
    color: black;
    margin-bottom: 12px;
}

.metarent-info-earn-per-day {
    color: #757575;
    font-family: 'SFPROTEXT';
    font-size: 14px;
}

.is-full {
    color: #DF361F;
}

.my-wallet {
    width: 50%;
    border-right: 1px solid #DEDEDE;
}

.external-wallet {
    width: 50%;
    padding-left: 16px;
}

.connect-to-external {
    color: #F37442;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 18px;
    padding-right: 2%;
    margin-block: unset;
    cursor: pointer;
}

.copy-to-clipboard {
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
}

.modal.edit-wallet-modal {
    width: 500px;
    height: 300px;
}

.choose-wallet-title {
    font-family: SFPROTEXT;
    font-weight: 400;
    font-size: 20px;
    padding-top: 30px;
}

.select-wallet-button {
    width: 100%;
    padding: 10px;
    background: #FFFFFF;
    margin: 10px;
    border: 1px solid #DEDEDE;
    cursor: pointer;
}

#connected-external-address {
    display: none;
}

.my-checkout {
    width: 100%;
}

.checkout-wording-btn {
    width: 82%;
    cursor: pointer;
    color: #F37442 !important;
}

.ticket-ui {
    width: 40%;
    max-width: 345px;
}

.miami-call-to-action {
    margin-top: 2%;
    background: transparent;
    color: #F37442;
    border-style: unset;
    font-size: 20pt;
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE — MOBILE (≤812px)
   ============================================================ */
@media screen and (max-width: 812px) {
    body {
        overflow-y: unset !important;
    }

    .profile-layout {
        flex-direction: column;
        background: #F7F7F7;
    }

    /* Hide desktop sidebar, show mobile section */
    .profile-sidebar {
        display: none !important;
    }

    .mobile-profile-section {
        display: block;
    }

    .mobile-tab-bar {
        position: sticky;
        top: 57px;
        z-index: 101;
    }

    /* Content area full width */
    .profile-content-area {
        padding: 16px;
        max-width: 100%;
    }

    .content-section-title {
        font-size: 18px;
    }

    .settings-input {
        max-width: 100%;
    }

    .settings-card {
        padding: 18px;
        border-radius: 12px;
    }

    /* Blox cards */
    .blox-card-panel {
        width: 100%;
        margin-bottom: 0;
    }

    .blox-gallery-for-user {
        gap: 12px;
    }

    /* Token display */
    .my-metarent {
        width: 100%;
        border: none;
    }

    .my-metacoin, .my-credit {
        width: 50%;
    }

    .my-credit {
        padding-left: 16px;
    }

    .my-tokens {
        max-width: 100%;
    }

    .change-data-layout {
        width: 90%;
    }

    .modal.edit-wallet-modal {
        width: 400px;
        height: 300px;
    }

    .modal.email-modal, .modal.edit-account-modal {
        width: 300px;
        height: 350px;
    }

    .modal.twofa-backup-modal-inner {
        width: calc(100vw - 32px);
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .otp-input {
        font-size: 14pt;
        width: 10px;
        padding: 8px;
    }

    .ticket-ui {
        width: 95%;
    }

    /* Notification prefs on mobile */
    .pref-item {
        gap: 10px;
    }

    /* Profile pic row */
    .profile-pic-preview-row {
        gap: 14px;
    }

    .profile-pic-preview {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ============================================================
   RESPONSIVE — DESKTOP (>812px)
   ============================================================ */
@media screen and (min-width: 813px) {
    .mobile-profile-section {
        display: none !important;
    }

    /* On desktop, tab sections fill the content area properly */
    .tab.active {
        display: block;
    }
}

/* ============================================================
   COLLECTIONS TAB
   ============================================================ */
.collections-panel {
    width: 100%;
    max-width: 600px;
}

/* Row */
.coll-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 4px;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.14s;
}

.coll-row:hover {
    background: #FFF4EF;
}

.coll-row:focus-visible {
    outline: 2px solid #f37442;
    outline-offset: 2px;
}

/* Thumbnail */
.coll-thumb {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* New-row thumbnail: orange tinted */
.coll-thumb--new {
    background-color: #fee8df;
}

/* Text block */
.coll-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coll-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coll-name--new {
    color: #f37442;
}

.coll-sub {
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    color: #999;
}

/* Trailing chevron */
.coll-arrow {
    font-size: 22px;
    color: #ccc;
    flex-shrink: 0;
}

/* Divider between "New" row and collection list */
.coll-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 4px 0;
}

/* Empty-state hint */
.coll-empty-hint {
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    color: #ABABAB;
    margin: 12px 4px 0;
    line-height: 1.6;
}

@media screen and (max-width: 812px) {
    .collections-panel {
        max-width: 100%;
    }

    .coll-thumb {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .coll-name {
        font-size: 14px;
    }
}

/* ============================================================
   DESKTOP "NEW COLLECTION" DIALOG
   ============================================================ */
.coll-desktop-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.coll-desktop-dialog {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.coll-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #F0F0F0;
}

.coll-dialog-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coll-dialog-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fee8df;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coll-dialog-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #1a1a1a;
}

.coll-dialog-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.coll-dialog-close:hover {
    background: #F4F4F4;
    color: #333;
}

.coll-dialog-close span {
    font-size: 20px;
}

/* Body */
.coll-dialog-body {
    padding: 20px;
}

.coll-dialog-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #757575;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.coll-dialog-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.18s;
}

.coll-dialog-input::placeholder {
    font-weight: 400;
    color: #BDBDBD;
}

.coll-dialog-input:focus {
    border-color: #f37442;
}

.coll-dialog-error {
    margin: 8px 0 0;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    color: #df361f;
}

/* Footer */
.coll-dialog-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px 20px;
    border-top: 1px solid #F0F0F0;
}

.coll-dialog-btn-cancel {
    flex: 1;
    padding: 12px;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #757575;
    cursor: pointer;
    transition: background 0.15s;
}

.coll-dialog-btn-cancel:hover {
    background: #F4F4F4;
}

.coll-dialog-btn-create {
    flex: 2;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f37442;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.coll-dialog-btn-create:hover:not(:disabled) {
    background: #e0622e;
}

.coll-dialog-btn-create:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Spinner inside create button */
.coll-dialog-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: collSpinnerSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes collSpinnerSpin {
    to { transform: rotate(360deg); }
}

/* Only show desktop dialog on desktop; hide on mobile */
@media screen and (max-width: 812px) {
    .coll-desktop-backdrop {
        display: none !important;
    }
}

/* ============================================================
   2FA IMPROVEMENTS
   ============================================================ */

/* Avatar upload spinner */
.avatar-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpinnerSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.avatar-spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

/* Button loading spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpinnerSpin 0.7s linear infinite;
    vertical-align: middle;
}

.btn-spinner--danger {
    border-color: rgba(211, 47, 47, 0.3);
    border-top-color: #d32f2f;
}

@keyframes btnSpinnerSpin {
    to { transform: rotate(360deg); }
}

/* Step indicators for 2FA enable flow */
.tfa-steps {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
    max-width: 180px;
}

.tfa-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.tfa-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    font-family: SFProText, sans-serif;
    transition: background 0.2s, color 0.2s;
}

.tfa-step--active .tfa-step-num {
    background: #F37442;
    color: #fff;
}

.tfa-step-label {
    font-size: 10px;
    color: #aaa;
    font-family: SFProText, sans-serif;
    letter-spacing: 0.3px;
}

.tfa-step--active .tfa-step-label {
    color: #F37442;
    font-weight: 600;
}

.tfa-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px 14px;
}

/* 2FA enable modal — auto height so QR code + steps never clip */
.modal.twofa-enable-modal-inner {
    width: 420px;
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 28px 24px;
}

/* Constrain step containers and scale OTP inputs to fit the modal */
.twofa-enable-modal-inner .enable-2fa {
    width: 100%;
    box-sizing: border-box;
}

.twofa-enable-modal-inner .otp {
    width: 100%;
}

.twofa-enable-modal-inner .otp fieldset {
    width: 100%;
}

.twofa-enable-modal-inner .otp fieldset div {
    justify-content: center;
    gap: 4px;
}

.twofa-enable-modal-inner .otp-input {
    font-size: 20px;
    padding: 12px 8px;
    width: 1em;
}

/* Disable 2FA confirmation modal */
.modal.twofa-disable-modal-inner {
    width: 420px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* OTP inputs for disable modal (same visual as .otp-input, separate class) */
.dis-otp-input {
    width: .82em;
    line-height: 1;
    font-size: 24px;
    padding: 16px;
    text-align: center;
    border: 1px solid #DEDEDE;
    border-radius: 4px;
    -moz-appearance: textfield;
    transition: border-color 0.15s;
}

.dis-otp-input::-webkit-outer-spin-button,
.dis-otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dis-otp-input:nth-child(n+4) {
    order: 2;
}

/* Backup code items in the modal grid */
.backup-code-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    text-align: center;
    letter-spacing: 2px;
    font-family: monospace;
    font-size: 14px;
    color: #1a1a1a;
}

/* Attempts-remaining warning */
.tfa-attempts-warning {
    color: #e65100;
    font-size: 12px;
    font-family: SFProText, sans-serif;
    margin-top: 4px;
    text-align: center;
}

/* Rate-limit lockout box */
.tfa-rate-limit-box {
    background: #fbe9e7;
    border: 1px solid #ffccbc;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    max-width: 360px;
    margin: 0 auto;
}

.tfa-rate-limit-box p {
    font-family: SFProText, sans-serif;
    color: #bf360c;
    margin: 0 0 4px;
    line-height: 1.5;
}

/* Verify page layout (full-page) */
.tfa-verify-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: #fafafa;
    box-sizing: border-box;
}

/* Verify card */
.tfa-verify-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 400px;
}

@media screen and (max-width: 812px) {
    .modal.twofa-enable-modal-inner {
        width: calc(100vw - 32px);
        padding: 24px 16px 20px;
    }

    .twofa-enable-modal-inner .otp-input {
        font-size: 18px;
        padding: 10px 6px;
        width: 1em;
    }

    .modal.twofa-disable-modal-inner {
        width: calc(100vw - 32px);
    }

    .dis-otp-input {
        font-size: 14pt;
        width: 10px;
        padding: 8px;
    }

    .tfa-verify-card {
        padding: 24px 16px 20px;
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    }
}

/* ============================================================
   GROUP TO MEMORY (GTM)
   ============================================================ */

/* Expiring soon banner */
.gtm-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff4ee;
    border: 1px solid #f0c4a8;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    color: #6b3a1f;
    flex-wrap: wrap;
}

.gtm-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gtm-banner-icon {
    font-size: 20px;
    color: #EA794C;
}

.gtm-banner-btn {
    background: #EA794C;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.gtm-banner-btn:hover {
    background: #d96b3e;
}

/* CTA button in controls row */
.gtm-cta-btn {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid #EA794C;
    color: #EA794C;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.gtm-cta-btn:hover {
    background: #fff4ee;
}

/* Selection mode header */
.gtm-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #EA794C;
    color: white;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.gtm-cancel-btn {
    background: transparent;
    border: none;
    color: white;
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

/* Instructions */
.gtm-instructions {
    text-align: center;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    color: #757575;
    margin-bottom: 16px;
}

/* Selection mode — card styles */
.lifetime-moment-list-container.gtm-mode .moment-card {
    cursor: pointer;
}

.lifetime-moment-list-container.gtm-mode .moment-card:hover {
    border-color: #EA794C;
    box-shadow: 0 4px 16px rgba(234, 121, 76, 0.15);
}

.lifetime-moment-list-container.gtm-mode .moment-card.gtm-selected {
    border: 2px solid #EA794C;
    background: rgba(234, 121, 76, 0.04);
}

/* Hide View button in selection mode */
.lifetime-moment-list-container.gtm-mode .gtm-hide-in-select {
    display: none !important;
}

/* Order badge */
.gtm-order-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 26px;
    height: 26px;
    background: #EA794C;
    color: white;
    border-radius: 50%;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selection footer */
.gtm-select-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: white;
    border-top: 1px solid #DEDEDE;
    padding: 12px 20px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.gtm-continue-btn {
    width: 100%;
    max-width: 480px;
    display: block;
    margin: 0 auto;
    background: #EA794C;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: 'SFProText', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.gtm-continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gtm-continue-btn:not(:disabled):hover {
    background: #d96b3e;
}

/* Modal overlay */
.gtm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 813px) {
    .gtm-modal-overlay {
        align-items: center;
    }
}

/* Modal panel */
.gtm-modal {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 20px 32px;
    box-sizing: border-box;
}

@media (min-width: 813px) {
    .gtm-modal {
        border-radius: 16px;
        max-height: 85vh;
    }
}

.gtm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gtm-back-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    display: flex;
    align-items: center;
}

.gtm-modal-title {
    font-family: 'SFProText', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Image strip */
.gtm-image-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 14px;
    padding-bottom: 4px;
}

.gtm-strip-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.gtm-strip-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #F4F4F4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Meta chips */
.gtm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gtm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F4F4F4;
    border-radius: 20px;
    padding: 5px 12px;
    font-family: 'SFProText', sans-serif;
    font-size: 12px;
    color: #555;
}

/* Form fields */
.gtm-field-group {
    margin-bottom: 14px;
}

.gtm-label {
    display: block;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.gtm-input,
.gtm-textarea,
.gtm-select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #DEDEDE;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.gtm-input:focus,
.gtm-textarea:focus,
.gtm-select:focus {
    border-color: #EA794C;
}

.gtm-textarea {
    resize: vertical;
}

.gtm-field-error {
    font-family: 'SFProText', sans-serif;
    font-size: 12px;
    color: #df361f;
    margin-top: 4px;
}

/* Submit button */
.gtm-submit-btn {
    width: 100%;
    background: #EA794C;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: 'SFProText', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s, opacity 0.15s;
}

.gtm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gtm-submit-btn:not(:disabled):hover {
    background: #d96b3e;
}

/* Success modal */
.gtm-success-modal {
    text-align: center;
    padding: 40px 24px 36px;
}

.gtm-success-check {
    margin-bottom: 16px;
}

.gtm-success-title {
    font-family: 'SFProText', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.gtm-success-body {
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    color: #757575;
    margin: 0 0 24px;
}

.gtm-view-btn {
    display: block;
    background: #EA794C;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    padding: 13px;
    font-family: 'SFProText', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.gtm-view-btn:hover {
    background: #d96b3e;
    color: white;
}

.gtm-close-success-btn {
    width: 100%;
    background: transparent;
    border: 1.5px solid #DEDEDE;
    border-radius: 10px;
    padding: 13px;
    font-family: 'SFProText', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
}

.gtm-close-success-btn:hover {
    background: #F4F4F4;
}

/* ============================================================
   BLOX CARD — REVAMPED (bc-* prefix)
   ============================================================ */

/* Override base card: sharper borders, subtle shadow */
.blox-card-panel {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 10px);
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.blox-card-panel:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    border-color: #DDD;
}

/* Meta bar: ownership pill + tier badge in one compact row */
.bc-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #FAFAFA;
    border-bottom: 1px solid #F0F0F0;
}

.bc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px 3px 7px;
    border-radius: 20px;
    font-family: 'SFProText';
    font-size: 11px;
    font-weight: 600;
}

.bc-status-pill .material-icons-outlined {
    font-size: 13px;
}

.bc-status-owned {
    background: #E8F5E9;
    color: #2E7D32;
}

.bc-status-giveaway {
    background: #FFF3E0;
    color: #E65100;
}

.bc-status-reserved {
    background: #E3F2FD;
    color: #1565C0;
}

/* Override tier-level width inside meta bar */
.bc-meta-bar .blox-tier-level {
    width: auto;
}

/* Card body */
.blox-card-header {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 10px;
    gap: 0;
}

/* Identity row: blox name + map shortcut */
.bc-identity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-bottom: 12px;
}

.blox-number {
    font-family: 'SFProText';
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    transition: color 0.15s;
}

.blox-number:hover {
    color: #EA794C;
}

.bc-map-btn {
    background: none;
    border: 1px solid #E0E0E0;
    cursor: pointer;
    color: #888;
    padding: 4px 8px 4px 6px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    font-family: 'SFProText', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.bc-map-btn:hover {
    color: #EA794C;
    background: #FFF0EB;
    border-color: #EA794C;
}

.bc-map-btn .material-icons-outlined {
    font-size: 16px;
}

/* Storage block (for non-owner reserved/giveaway blox) */
.bc-storage-block {
    background: #F9F9F9;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 2px;
}

.bc-storage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bc-storage-label {
    font-family: 'SFProText';
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bc-earn-rate {
    font-family: 'SFProText';
    font-size: 13px;
    font-weight: 700;
    color: #2E7D32;
}

.bc-earn-full {
    color: #DF361F;
}

.bc-storage-bar {
    height: 6px;
    background: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.bc-storage-fill {
    height: 100%;
    background: linear-gradient(90deg, #EA794C 0%, #F37442 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.bc-storage-fill--full {
    background: linear-gradient(90deg, #DF361F 0%, #f05f3c 100%);
}

.bc-storage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-storage-nums {
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.bc-storage-days {
    font-family: 'SFProText';
    font-size: 11px;
    color: #888;
}

.bc-storage-days--full {
    color: #DF361F;
    font-weight: 600;
}

/* Secondary action buttons */
.bc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-family: 'SFProText';
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.bc-action-btn .material-icons-outlined {
    font-size: 16px;
}

.bc-action-btn--outline {
    background: transparent;
    color: #EA794C;
    border: 1.5px solid #EA794C;
}

.bc-action-btn--outline:hover {
    background: #FFF0EB;
}

/* Card footer */
.bc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #F0F0F0;
    background: #FAFAFA;
    gap: 10px;
    min-height: 42px;
}

.bc-footer-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: 'SFProText';
    font-size: 13px;
    font-weight: 600;
    color: #EA794C;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.15s;
}

.bc-footer-map-btn:hover {
    opacity: 0.75;
}

.bc-footer-map-btn .material-icons-outlined {
    font-size: 15px;
}

.bc-storage-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'SFProText';
    font-size: 12px;
    font-weight: 500;
    color: #757575;
    margin-left: auto;
}

.bc-storage-location .material-icons-outlined {
    font-size: 14px;
    color: #AAA;
}

/* Mobile tweaks */
@media screen and (max-width: 812px) {
    .blox-card-panel {
        width: 100%;
    }

    .bc-meta-bar {
        padding: 7px 12px;
    }

    .blox-card-header {
        padding: 12px 12px 8px;
    }

    .bc-card-footer {
        padding: 8px 12px;
    }

    .bcd-accordion-trigger {
        padding: 10px 12px;
    }

    .bcd-accordion-body {
        padding: 0 12px 8px;
    }
}

/* ============================================================
   BLOX CARD DETAIL ACCORDION (bcd-* prefix)
   Shared styles for MetaRent Breakdown + Transaction History
   ============================================================ */

.bcd-accordion {
    border-top: 1px solid #F0F0F0;
}

.bcd-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.bcd-accordion-trigger:hover {
    background: #FAFAFA;
}

.bcd-accordion-label {
    font-family: 'SFProText';
    font-weight: 600;
    font-size: 13px;
    color: #555;
}

.bcd-accordion-chevron {
    font-size: 18px;
    color: #EA794C;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.bcd-accordion-body {
    padding: 0 14px 8px;
}

/* --- Detail rows (MetaRent breakdown) --- */
.bcd-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #F8F8F8;
}

.bcd-detail-row:last-of-type {
    border-bottom: none;
}

.bcd-detail-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bcd-detail-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.bcd-icon-base     { color: #AAA; }
.bcd-icon-community { color: #6BBA1C; }
.bcd-icon-attention { color: #EA794C; }
.bcd-icon-total    { color: #EA794C; }

.bcd-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bcd-detail-name {
    font-family: 'SFProText';
    font-size: 12px;
    color: #555;
}

.bcd-detail-sub {
    font-family: 'SFProText';
    font-size: 10px;
    color: #AAA;
}

.bcd-sub-community { color: #6BBA1C; }
.bcd-sub-attention { color: #EA794C; }

.bcd-detail-value {
    font-family: 'SFProText';
    font-size: 13px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.bcd-value-community { color: #6BBA1C; }
.bcd-value-attention { color: #EA794C; }

/* Total row highlight */
.bcd-detail-row--total {
    background: #FFF5F0;
    border-radius: 6px;
    padding: 7px 8px;
    margin-top: 4px;
    border-bottom: none;
}

.bcd-name-total {
    font-family: 'SFProText';
    font-size: 13px;
    font-weight: 600;
    color: #EA794C;
}

.bcd-value-total {
    font-size: 14px;
    font-weight: 700;
    color: #EA794C;
}

/* Storage mini-progress (inside breakdown) */
.bcd-storage-row {
    background: #F9F9F9;
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 8px;
}

.bcd-storage-header-row,
.bcd-storage-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bcd-storage-label {
    font-family: 'SFProText';
    font-size: 11px;
    color: #888;
}

.bcd-storage-count {
    font-family: 'SFProText';
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.bcd-storage-bar {
    height: 5px;
    background: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
}

.bcd-storage-fill {
    height: 100%;
    background: linear-gradient(90deg, #EA794C 0%, #F37442 100%);
    border-radius: 3px;
    transition: width 0.3s;
}

.bcd-storage-hint {
    font-family: 'SFProText';
    font-size: 10px;
    color: #AAA;
}

.bcd-storage-rate {
    font-family: 'SFProText';
    font-size: 10px;
    font-weight: 600;
    color: #6BBA1C;
}

/* --- Transaction items --- */
.bcd-tx-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 8px 8px 10px;
    margin-bottom: 6px;
    border-left: 3px solid #EA794C;
    border-radius: 0 6px 6px 0;
    background: #F9F9F9;
}

.bcd-tx-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.bcd-tx-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bcd-tx-type {
    font-family: 'SFProText';
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.bcd-tx-date {
    font-family: 'SFProText';
    font-size: 10px;
    color: #888;
}

.bcd-tx-desc {
    font-family: 'SFProText';
    font-size: 10px;
    color: #AAA;
}

.bcd-tx-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.bcd-tx-amount {
    font-family: 'SFProText';
    font-size: 13px;
    font-weight: 600;
}

.bcd-tx-status {
    font-family: 'SFProText';
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

.bcd-tx-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px;
    background: none;
    border: none;
    color: #EA794C;
    font-family: 'SFProText';
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.bcd-tx-more:hover { text-decoration: underline; }

.bcd-tx-empty {
    text-align: center;
    padding: 20px;
    color: #CCC;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bcd-tx-empty .material-icons-outlined {
    font-size: 28px;
    opacity: 0.5;
}

.bcd-tx-empty p {
    font-family: 'SFProText';
    font-size: 12px;
    margin: 0;
}

/* ============================================================
   ASSETS TAB — REVAMPED LAYOUT (at-* prefix)
   ============================================================ */

/* Sub-section labels */
.at-section-label {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 11px;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 24px 0 10px;
}

/* --- Wallets --- */
.at-wallets-row {
    display: flex;
    gap: 14px;
    margin-bottom: 4px;
}

.at-wallet-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 0;
}

.at-wallet-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #FFF0EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #EA794C;
}

.at-wallet-icon--ext {
    background: #F0F4FF;
    color: #5B7FDB;
}

.at-wallet-body {
    flex: 1;
    min-width: 0;
}

.at-wallet-name {
    font-family: 'SFProText';
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.at-wallet-addr {
    font-family: 'SFProText';
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-wallet-connect {
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 500;
    color: #EA794C;
    cursor: pointer;
}

.at-wallet-connect:hover {
    text-decoration: underline;
}

.at-wallet-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #AAA;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.at-wallet-copy-btn:hover {
    color: #EA794C;
    background: #FFF0EB;
}

.at-wallet-copy-btn .material-icons-outlined {
    font-size: 18px;
}

/* --- Tokens + History (desktop two-column) --- */
.at-tokens-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 4px;
}

.at-token-cards-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
    flex-shrink: 0;
}

.at-token-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #EBEBEB;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.at-token-card:hover {
    border-color: #f0b99a;
    background: #FFFAF8;
}

.at-token-card--active {
    border-color: #EA794C;
    background: #FFF5F0;
}

.at-token-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #F4F4F4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.at-token-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.at-token-icon--coin {
    background: #FFF0EB;
}

.at-token-icon--coin .material-icons-outlined {
    font-size: 22px;
    color: #EA794C;
}

.at-token-info {
    flex: 1;
    min-width: 0;
}

.at-token-label {
    font-family: 'SFProText';
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.at-token-value {
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
}

.at-token-arrow {
    font-size: 20px;
    color: #DDD;
    flex-shrink: 0;
    transition: color 0.15s;
}

.at-token-card--active .at-token-arrow,
.at-token-card:hover .at-token-arrow {
    color: #EA794C;
}

/* Transaction history panel */
.at-history-panel {
    flex: 1;
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 14px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.at-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #F4F4F4;
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.at-history-title {
    font-family: 'SFProText';
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.at-history-tabs {
    display: flex;
    gap: 4px;
}

.at-history-tab {
    background: none;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'SFProText';
    font-size: 12px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.15s;
}

.at-history-tab:hover {
    background: #F4F4F4;
    color: #1A1A1A;
}

.at-history-tab--active {
    background: #FFF0EB;
    color: #EA794C;
}

.at-history-body {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}

.at-history-body::-webkit-scrollbar {
    width: 4px;
}

.at-history-body::-webkit-scrollbar-thumb {
    background: #DEDEDE;
    border-radius: 4px;
}

.at-history-list {
    padding: 0;
}

.at-history-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid #F4F4F4;
    transition: background 0.1s;
}

.at-history-row:last-child {
    border-bottom: none;
}

.at-history-row:hover {
    background: #FAFAFA;
}

.at-history-ts {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    flex-shrink: 0;
}

.at-history-date {
    font-family: 'Montserrat';
    font-size: 11px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
}

.at-history-time {
    font-family: 'Montserrat';
    font-size: 9px;
    font-weight: 500;
    color: #AAA;
    white-space: nowrap;
}

.at-history-note {
    flex: 1;
    font-family: 'SFProText';
    font-size: 14px;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-history-amount {
    font-family: 'SFProText';
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.at-amount-pos { color: #2E7D32; }
.at-amount-neg { color: #DF361F; }

.at-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #CCC;
    gap: 8px;
}

.at-history-empty .material-icons-outlined {
    font-size: 32px;
}

.at-history-empty p {
    font-family: 'SFProText';
    font-size: 14px;
    margin: 0;
}

/* My Blox city header row */
.at-blox-city-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
}

.at-blox-city-name {
    font-family: 'SFProText';
    font-weight: 700;
    font-size: 16px;
    color: #757575;
    margin: 0;
}

.at-blox-transfer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'SFProText';
    color: #EA794C;
    background: transparent;
    border: 1px solid #EA794C;
    border-radius: 8px;
    padding: 5px 12px;
    font-weight: 510;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.at-blox-transfer-btn:hover {
    background: #FFF0EB;
}

/* --- Mobile responsive overrides --- */
@media screen and (max-width: 812px) {
    .at-wallets-row {
        flex-direction: column;
        gap: 10px;
    }

    .at-wallet-card {
        padding: 14px;
    }

    .at-tokens-layout {
        flex-direction: column;
    }

    .at-token-cards-col {
        width: 100%;
        flex-direction: row;
    }

    .at-token-card {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 10px;
    }

    .at-token-arrow {
        display: none;
    }

    .at-token-value {
        font-size: 15px;
    }

    .at-history-panel {
        min-height: 200px;
    }

    .at-blox-city-row {
        flex-wrap: wrap;
        gap: 6px;
    }
}
