/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1e1e24;
    color: white;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #1e1e24;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto;
    max-width: 100%;
}

header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin-bottom: 40px;
    padding-top: 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-image {
    width: 80px;
    height: auto;
    max-width: 80px;
    cursor: default;
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 50%;
    z-index: 1;
    display: block;
    overflow: visible;
    object-fit: contain;
    /* Prevent movement when glow is applied */
    margin: 0 auto;
    flex-shrink: 0;
    /* Ensure position stays fixed - no positioning that could cause movement */
    /* Prevent any layout shifts */
    box-sizing: border-box;
    /* Prevent movement from pseudo-elements */
    contain: layout style paint;
    /* Ensure image maintains aspect ratio */
    aspect-ratio: 1 / 1;
}

.logo-image[style*="cursor: pointer"] {
    cursor: pointer;
}

.logo-text {
    font-size: 20px;
    margin-top: 8px;
    font-weight: bold;
    color: white;
}

/* Styles for Lamp Image and Container */
.lamp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0; /* Adjusted margin */
}

.lamp-image {
    width: 200px; /* Control the size of the lamp */
    max-width: 100%;
    height: auto;   /* Maintain aspect ratio */
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.lamp-image:hover {
    transform: scale(1.05);
}

.lamp-container.lamp-disabled .lamp-image { /* Target .lamp-image inside .lamp-container.lamp-disabled */
    cursor: not-allowed;
    opacity: 0.6;
    transform: none; /* Remove hover effect when disabled */
}

/* UX Improvement: Loading state for lamp */
.lamp-container.loading .lamp-image {
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
}

/* UX Improvement: Processing and error states for response text */
.response-text.processing {
    color: #8a2be2;
    font-style: italic;
    opacity: 0.8;
}

.response-text.error {
    color: #ff6b6b;
    border-left: 3px solid rgba(255, 107, 107, 0.5);
    padding-left: 12px;
}

.tap-lamp-text {
    text-align: center;
    margin-top: 5px;  /* Reduced margin-top for closer positioning */
    margin-bottom: 20px; /* Add some space before the next element */
    font-size: 16px;
    color: #ccc;
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
}

.login-dropdown-content {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #2a2a30;
    border: 1px solid #3a3a44;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 1002;
    width: 90%;
    max-width: 400px;
    pointer-events: auto;
    color: #ddd;
}

.login-dropdown-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    pointer-events: auto;
}

.login-dropdown-overlay.show {
    display: block;
}

.login-dropdown-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Login dropdown header and close button */
.login-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a44;
}

.login-dropdown-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.login-dropdown-close {
    appearance: none;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.login-dropdown-close:hover {
    color: #fff;
    background: rgba(138, 43, 226, 0.15);
}

/* Levels Overlay - Styled like overlay cards */
.levels-option {
    background: #2a2a30;
    border: 1px solid #3a3a44;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.levels-option:hover {
    background: #323238;
    border-color: #4a4a54;
    transform: translateY(-1px);
}

.levels-option.selected {
    background: #2a1f3a;
    border-color: #8a2be2;
    box-shadow: 
        0 0 12px rgba(138, 43, 226, 0.4),
        0 0 24px rgba(138, 43, 226, 0.2),
        inset 0 0 8px rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
}

.levels-option:last-child {
    margin-bottom: 0;
}

.levels-option-title {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}

.levels-option-subtitle {
    font-size: 14px;
    color: #8a2be2;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

.levels-option-description {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
}

#levelsButton {
    color: white !important;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #3a3a44;
    padding-bottom: 10px;
}

.toggle-option {
    padding: 5px 15px;
    cursor: pointer;
    margin: 0 5px;
    color: #aaa;
}

.toggle-active {
    font-weight: bold;
    color: #8a2be2;
    border-bottom: 2px solid #8a2be2;
}

.auth-form {
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

.form-group {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ddd;
}

.auth-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #3a3a44;
    border-radius: 5px;
    font-size: 14px;
    color: #ddd;
    background: #1a1a20;
}

/* Buttons */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
}

.btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7b27c7, #8a2be2);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #7b27c7, #8a2be2);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-1px);
}

/* Bottom Buttons */
.bottom-buttons {
    width: 100%;
    max-width: 600px;
    margin: 30px auto 20px;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Login Button */
.login-dropdown-btn {
    cursor: pointer;
    position: relative;
}

/* Force white text on the main login button in the bottom bar */
#loginDropdownBtn {
    color: white !important; 
}

/* Guest prompt */
.guest-prompt {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #2a2a30;
    border-radius: 8px;
    text-align: center;
}

.guest-prompt p {
    margin-bottom: 15px;
}

.guest-prompt .form-group label {
    color: #ccc;
    text-align: left;
}

.guest-prompt .form-group input {
    background-color: #eee;
    color: #333;
}

/* Response Input Area Styles */
.response-input-container {
    display: flex;
    flex-direction: column; /* Stack input and button vertically */
    align-items: center; /* Center items horizontally */
    width: 100%;
    max-width: 500px; /* Match guest-prompt width */
    margin: 20px auto 30px; /* Increased bottom margin for more space below */
    background-color: #2a2a30; /* Dark background for the container */
    border-radius: 25px; /* Rounded container */
    padding: 10px; /* Increased padding within the container */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease; /* Add transition here for the glow */
}

/* Apply glow to container when input within is focused */
.response-input-container:focus-within {
    box-shadow: 0 0 15px 2px rgba(138, 43, 226, 0.7), 0 2px 5px rgba(0,0,0,0.2); /* Combine glow with existing shadow */
}

.response-input {
    flex-grow: 1;
    width: 100%; /* Make input take full width of container */
    padding: 10px 15px;
    border: none;
    background-color: transparent; /* Transparent to use container's bg */
    color: #e0e0e0; /* Light text color */
    font-size: 16px;
    outline: none; /* Remove default outline */
    /* transition: box-shadow 0.3s ease; */ /* Remove transition from here */
}

/* .response-input:focus { */
    /* box-shadow: 0 0 15px 2px rgba(138, 43, 226, 0.7); */ /* Remove glow from here */
/* } */

.response-input::placeholder {
    color: #777; /* Lighter placeholder text */
}

.submit-button {
    background-color: #8a2be2; /* Vibrant purple */
    color: white;
    border: none;
    padding: 10px 25px; /* Adjusted padding for better proportions */
    border-radius: 20px; /* Rounded button */
    font-size: 15px; /* Slightly reduced font size */
    font-weight: bold;
    cursor: pointer;
    margin-top: 12px; /* Adjusted top margin */
    width: auto; /* Allow button to size based on content and padding */
    min-width: 130px; /* Ensure a minimum clickable area */
    max-width: 200px; /* Constrain max width if text is very long */
    transition: background-color 0.3s ease;
    text-align: center;
}

.submit-button:hover {
    background-color: #7b27c7; /* Darker purple on hover */
}

.submit-button:disabled {
    background-color: #555;
    opacity: 0.7;
    cursor: not-allowed;
}

.guest-message {
    margin-top: 15px;
    font-size: 14px;
    color: #ffdddd;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo-image {
        width: 70px;
    }

    .main-content {
        gap: 15px;
        padding: 0 15px;
    }

    .bottom-buttons {
        gap: 10px;
        padding: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        font-size: 13px;
        padding: 8px 12px;
        min-width: 90px;
    }

    .login-dropdown-content {
        width: 90%;
        max-width: 350px;
    }
    
    /* UX Improvement: Better touch targets on mobile */
    .btn {
        min-height: 44px; /* iOS recommended minimum touch target */
        min-width: 44px;
    }
    
    .submit-button {
        min-height: 44px;
        padding: 12px 25px;
    }
    
    .response-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .lamp-image {
        min-width: 200px;
        min-height: 200px;
    }
    
    .overlay-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Question Display Text */
.question-text {
    text-align: center;
    margin-bottom: 20px; /* Add some space below the question */
    font-size: 18px; /* Slightly larger font for the question */
    padding: 0 10px; /* Add some padding in case text is long */
}

/* Visual Reflection Loading Indicator Styles */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #ccc;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left-color: #8a2be2; /* Purple accent for the spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles for generated image and caption */
.image-container {
    margin-top: 15px;
    text-align: center;
}

.generated-image {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2a2a30; /* Placeholder bg while image loads */
    min-height: 200px; /* Give some space before image loads if container is visible */
}

.image-caption {
    font-style: italic;
    color: #aaa;
    margin-top: 10px;
    font-size: 14px;
}

.image-summary {
    margin-top: 15px;
    color: #ddd;
    font-size: 15px;
    padding: 0 10px;
}

/* Wallet Info Container Styles */
.wallet-info-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #2a2a30;
    border-radius: 8px;
    border: 1px solid #444;
}

.wallet-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.wallet-info-header h3 {
    margin: 0;
    color: #8a2be2;
    font-size: 18px;
}

.wallet-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.wallet-label {
    font-weight: bold;
    color: #ccc;
    font-size: 14px;
}

.wallet-value {
    color: #fff;
    font-size: 14px;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
    font-family: 'Courier New', monospace;
}

.wallet-button {
    background: #8a2be2;
    color: white;
}

.wallet-button:hover:not(:disabled) {
    background: #7b27c7;
}
/* =========================
   Profile Overlay (FIXED)
   ========================= */

   .overlay.hidden { display: none; }

   .overlay {
     position: fixed;
     inset: 0;
     z-index: 1100;
   }
   
   .overlay-backdrop {
     position: absolute;
     inset: 0;
     background: rgba(0, 0, 0, 0.6);
   }
   
   /* Centered modal panel */
   .overlay-panel {
     position: absolute;
     left: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
   
     width: min(560px, calc(100vw - 24px));
     height: min(560px, calc(100vh - 24px));
     max-height: calc(100vh - 24px);
   
     background: #1e1e24;
     border: 1px solid #3a3a44;
     border-radius: 18px;
   
     display: flex;
     flex-direction: column;
     overflow: hidden; /* header stays put, body scrolls */
   }
   
   /* Header stays fixed */
   .overlay-header {
     flex: 0 0 auto;
     display: flex;
     align-items: center;
     justify-content: space-between;
   
     padding: 14px 16px;
     border-bottom: 1px solid #3a3a44;
   }
   
   .overlay-title {
     font-size: 16px;
     font-weight: 700;
     color: #fff;
     margin: 0;
     text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
   }
   
   .overlay-close {
     appearance: none;
     border: none;
     background: transparent;
     color: #fff;
     font-size: 18px;
     cursor: pointer;
     width: 34px;
     height: 34px;
     border-radius: 10px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     transition: background 0.2s ease;
   }
   
   .overlay-close:hover {
     background: rgba(138, 43, 226, 0.15);
     box-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
   } 
   
   .overlay-card-title {
     font-size: 14px;
     font-weight: 700;
     color: #8a2be2;
     margin-bottom: 8px;
     text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
   }
   
   .overlay-card-body {
     color: #ddd;
     font-size: 14px;
     line-height: 1.35;
   }
   
   .overlay-muted {
     color: #aaa;
     margin: 0 0 10px 0;
   }
   
   /* Anchors card: fixed height, list scrolls inside */
   .anchor-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: #2a2a30;
     border: 1px solid #3a3a44;
     border-radius: 12px;
     padding: 10px 12px;
   }
   /* ===== Profile Hero Card ===== */
.overlay-hero {
    border: 1px solid rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.18);
  }
  
  .psyk-balance-hero {
    padding: 14px 12px 10px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 0%, rgba(168,85,247,0.18), transparent 60%);
    text-align: center;
  }
  
  .psyk-balance-big {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
  }
  
  .psyk-balance-unit {
    margin-top: 6px;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 2px;
  }
  
  .psyk-hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
  }
  
  .btn-outline-gold,
  .btn-outline-cyan {
    padding: 10px 14px;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
  }
  
  .btn-outline-gold {
    border: 1px solid rgba(245, 158, 11, 0.75);
  }
  
  .btn-outline-cyan {
    border: 1px solid rgba(34, 211, 238, 0.75);
  }
  
   
   .anchor-left { display: flex; flex-direction: column; gap: 2px; }
   .anchor-rank { font-weight: 800; color: #8a2be2; font-size: 13px; }
   .anchor-addr { font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 12px; color: #ddd; }
   
   .anchor-right { text-align: right; display: flex; flex-direction: column; gap: 2px; }
   .anchor-amt { font-weight: 800; font-size: 13px; color: #fff; }
   .anchor-meta { font-size: 12px; color: #aaa; }
   /* =========================
   Profile Overlay: Coherent Layout Overrides
   ========================= */

/* Make overlay content a simple vertical stack */
.overlay-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  
  /* Remove the old margin-bottom spacing since we use gap now */
  .overlay-card {
    background: #2a2a30;
    border: 1px solid #3a3a44;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 0;   /* IMPORTANT: we use overlay-content gap */
  }
  /* Buttons inside overlay */
.btn-block{ width:100%; display:flex; justify-content:center; }
.btn-sm{ font-size:12px; padding:5px 10px; border-radius: 12px; }
/* --- PSYK row fixes --- */
.psyk-row {
    flex-direction: column;
    align-items: stretch;
  }  
  
  #psykBalance {
    white-space: nowrap;       /* prevents P / SYK line breaks */
    word-break: keep-all;
  }
  .psyk-balance .wallet-value{
    max-width: none;     /* override the 60% cap from .wallet-value */
  }
  /* --- Buy PSYK blocks --- */
.psyk-buy-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }
  
  .psyk-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
  }  
  
  
  /* Optional: if any wallet values wrap, prevent it */
  .wallet-info-item .wallet-value {
    white-space: nowrap;
  }  

/* Overlay card body spacing */
.overlay-card-body{ display:flex; flex-direction:column; gap:12px; }

/* Make Visual Reflection image area not add weird extra margins */
.overlay .image-container{ margin-top: 0; text-align:center; }  
  
  /* Normalize "main page" components when they appear inside the overlay */
  .overlay .wallet-info-container,
  .overlay .response-input-container,
  .overlay .guest-prompt,
  .overlay .image-container{
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Tighten padding so it fits the modal */
  .overlay .wallet-info-container{
    padding: 14px !important;
  }
  
  /* Visual Reflection button: make it full-width and not float weirdly */
  .overlay #createImageButton,
  .overlay .visual-reflection-button{
    width: 100%;
    min-width: 0;
  }
  
  /* Generated image: keep it contained */
  .overlay .generated-image{
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Anchors: keep the card compact and let ONLY the list scroll */
/* Anchors card: header stays, list scrolls, card stays compact */
#anchorsCard{
    max-height: 400px;          /* increased to show more items */
    display: flex;
    flex-direction: column;
    background: rgba(42, 42, 48, 0.95);
    border: 2px solid rgba(70, 130, 180, 0.35);
    box-shadow: 
      0 0 15px rgba(70, 130, 180, 0.25),
      0 0 30px rgba(105, 105, 105, 0.2),
      inset 0 0 15px rgba(70, 130, 180, 0.15);
    animation: anchorGlow 3s ease-in-out infinite alternate;
    transition: all 0.3s ease;
  }

@keyframes anchorGlow {
  0% {
    box-shadow: 
      0 0 15px rgba(70, 130, 180, 0.25),
      0 0 30px rgba(105, 105, 105, 0.2),
      inset 0 0 15px rgba(70, 130, 180, 0.15);
    border-color: rgba(70, 130, 180, 0.35);
  }
  100% {
    box-shadow: 
      0 0 20px rgba(70, 130, 180, 0.35),
      0 0 40px rgba(105, 105, 105, 0.3),
      inset 0 0 20px rgba(70, 130, 180, 0.2);
    border-color: rgba(70, 130, 180, 0.5);
  }
}

#anchorsCard:hover {
  box-shadow: 
    0 0 30px rgba(70, 130, 180, 0.5),
    0 0 60px rgba(105, 105, 105, 0.4),
    inset 0 0 30px rgba(70, 130, 180, 0.3);
  border-color: rgba(70, 130, 180, 0.7);
  transition: all 0.3s ease;
}
  
  /* Make the card body become a flex column too */
  #anchorsCard .overlay-card-body{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  
  /* The list is the scroll region */
  #anchorsCard .anchors-list{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
  }
/* =========================
   History (collapsible, scrollable, stable)
   ========================= */

   .history-area {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  
    margin-top: 0;
    padding: 0;
  
    border: 0;
    border-radius: 14px;
    background: transparent;
  
    transition:
      max-height 0.3s ease,
      opacity 0.25s ease,
      padding 0.25s ease,
      margin-top 0.25s ease,
      border-color 0.25s ease,
      border-width 0.25s ease;
  
    will-change: max-height, opacity;
  }
  
  .history-area.open {
    max-height: 600px;
    opacity: 1;
  
    margin-top: 14px;
    padding: 12px;
  
    border: 1px solid #3a3a44;
    background: rgba(42, 42, 48, 0.9);
  
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .history-item {
    background: #2a2a30;
    border: 1px solid #3a3a44;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #8a2be2, #9370db);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .history-item:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.2);
    transform: translateY(-1px);
  }

  .history-item:hover::before {
    opacity: 1;
  }
  
  .history-item:last-child {
    margin-bottom: 0;
  }

  .history-item-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
  }

  .history-item-time {
    font-size: 11px;
    color: #8a2be2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
  }

  .history-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .history-item-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .history-item-label {
    font-size: 11px;
    color: #8a2be2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .history-item-text {
    color: #ddd;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
  }

  .history-item-reply {
    color: #bbb;
    font-style: italic;
    padding-left: 8px;
    border-left: 2px solid rgba(138, 43, 226, 0.3);
  }

  .history-item-reflection {
    border-left: 3px solid rgba(138, 43, 226, 0.6);
  }

  .history-item-reflection-text {
    color: #ddd;
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
  }

  .history-show-more-btn {
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 6px;
    color: #8a2be2;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
  }

  .history-show-more-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.7);
  }

  .history-loading-state,
  .history-empty-state,
  .history-error-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
  }

  .history-loading-state p {
    color: #8a2be2;
    opacity: 0.8;
  }

  .history-empty-state p {
    color: #8a2be2;
    opacity: 0.7;
    font-style: italic;
  }

  .history-error-state p {
    color: #ff6b6b;
  }

/* =========================
   Profile Hero Section (New Design)
   ========================= */

/* YOUR PSYK Banner with neon effect */
.psyk-banner {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  position: relative;
  text-align: center;
  box-shadow: 
    0 0 10px rgba(138, 43, 226, 0.5),
    0 0 20px rgba(147, 112, 219, 0.3),
    inset 0 0 10px rgba(138, 43, 226, 0.2);
  animation: purpleNeonGlow 2s ease-in-out infinite alternate;
}

.psyk-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(45deg, #8a2be2, #9370db, #8a2be2);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

.psyk-banner-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(138, 43, 226, 0.8),
    0 0 20px rgba(147, 112, 219, 0.6),
    0 0 30px rgba(138, 43, 226, 0.4);
}

@keyframes purpleNeonGlow {
  from {
    box-shadow: 
      0 0 8px rgba(138, 43, 226, 0.3),
      0 0 15px rgba(147, 112, 219, 0.2),
      inset 0 0 8px rgba(138, 43, 226, 0.15);
  }
  to {
    box-shadow: 
      0 0 12px rgba(138, 43, 226, 0.4),
      0 0 25px rgba(147, 112, 219, 0.3),
      inset 0 0 12px rgba(138, 43, 226, 0.2);
  }
}

.psyk-banner:hover {
  box-shadow: 
    0 0 20px rgba(138, 43, 226, 0.6),
    0 0 40px rgba(147, 112, 219, 0.4),
    inset 0 0 20px rgba(138, 43, 226, 0.3);
  transition: all 0.3s ease;
}

/* Profile Hero Section Container */
.profile-hero-section {
  background: #2a2a30;
  border: 2px solid rgba(255, 255, 200, 0.6);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 
    0 0 15px rgba(255, 255, 200, 0.25),
    0 0 30px rgba(255, 255, 150, 0.15),
    inset 0 0 15px rgba(255, 255, 200, 0.1);
  animation: yellowNeonGlow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

@keyframes yellowNeonGlow {
  0% {
    box-shadow: 
      0 0 15px rgba(255, 255, 200, 0.25),
      0 0 30px rgba(255, 255, 150, 0.15),
      inset 0 0 15px rgba(255, 255, 200, 0.1);
    border-color: rgba(255, 255, 200, 0.4);
  }
  100% {
    box-shadow: 
      0 0 20px rgba(255, 255, 200, 0.35),
      0 0 40px rgba(255, 255, 150, 0.25),
      inset 0 0 20px rgba(255, 255, 200, 0.15);
    border-color: rgba(255, 255, 200, 0.6);
  }
}

.profile-hero-section:hover {
  box-shadow: 
    0 0 30px rgba(255, 255, 200, 0.5),
    0 0 60px rgba(255, 255, 150, 0.4),
    inset 0 0 30px rgba(255, 255, 200, 0.25);
  border-color: rgba(255, 255, 200, 0.8);
  transition: all 0.3s ease;
}

/* Account Info Header */
.account-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-address-text {
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}

.token-balances {
  display: flex;
  gap: 12px;
  align-items: center;
}

.token-balance-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.token-icon-sol {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.token-icon-sam {
  background: linear-gradient(135deg, #8a2be2, #9370db);
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

.token-balance-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.token-balance-number {
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.token-balance-label {
  font-size: 10px;
  color: #ffffff;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1;
}

/* Main PSYK Balance */
.psyk-main-balance {
  text-align: center;
  margin: 16px 0 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.psyk-balance-large {
  font-size: 28px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.6),
    0 0 20px rgba(255, 215, 0, 0.4);
  letter-spacing: 1px;
  white-space: nowrap;
  line-height: 1.2;
}

.psyk-balance-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 
    0 0 8px rgba(255, 215, 0, 0.5),
    0 0 15px rgba(255, 215, 0, 0.3);
  letter-spacing: 2px;
  opacity: 0.9;
}

/* Connect Wallet Section */
.connect-wallet-section {
  margin-top: 8px;
  text-align: center;
}

.wallet-subtext {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
  font-weight: 400;
  line-height: 1.4;
}

/* Buy PSYK Section */
.buy-psyk-section {
  margin-top: 8px;
}

.psyk-buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.psyk-buy-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.psyk-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psyk-icon-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.psyk-icon-dark {
  background: linear-gradient(135deg, #4a1a6b, #6b2a8a);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.psyk-icon-light {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  border: 2px solid rgba(138, 43, 226, 0.5);
}

.psyk-icon-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* Genie glow effects - for header logo (circular glow) */
.logo-image.genie-glow {
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.8), 0 0 50px rgba(138, 43, 226, 0.6), 0 0 75px rgba(138, 43, 226, 0.4) !important;
  animation: geniePulseImage 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.6));
}

.logo-image.genie-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, rgba(138, 43, 226, 0.3) 50%, transparent 80%);
  animation: geniePulseGlow 2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  /* Prevent layout shift - absolutely positioned, doesn't affect flow */
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.logo-image.genie-glow-bright {
  box-shadow: 0 0 40px rgba(138, 43, 226, 1), 0 0 80px rgba(138, 43, 226, 0.8), 0 0 120px rgba(138, 43, 226, 0.6) !important;
  animation: geniePulseBrightImage 1s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.9));
}

.logo-image.genie-glow-bright::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.9) 0%, rgba(138, 43, 226, 0.7) 50%, transparent 80%);
  animation: geniePulseBrightGlow 1s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  /* Prevent layout shift */
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

/* Animation for the image itself - no translate, only subtle scale pulse */
@keyframes geniePulseImage {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Animation for the glow pseudo-element - includes translate to stay centered */
@keyframes geniePulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Animation for the bright image itself - no translate, only subtle scale pulse */
@keyframes geniePulseBrightImage {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* Animation for the bright glow pseudo-element - includes translate to stay centered */
@keyframes geniePulseBrightGlow {
  0%, 100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* History search */
.history-search-container {
  margin-bottom: 12px;
  position: relative;
  display: flex !important;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
}

.history-search-container.hidden {
  display: none !important;
  visibility: hidden !important;
}

.history-search-input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  background: #2a2a30;
  border: 1px solid #3a3a44;
  border-radius: 8px;
  color: #ddd;
  font-size: 13px;
  transition: border-color 0.3s ease;
}

.history-search-input:focus {
  outline: none;
  border-color: rgba(138, 43, 226, 0.5);
}

.history-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(138, 43, 226, 0.2);
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
  line-height: 1;
}

.history-search-clear:hover {
  background: rgba(138, 43, 226, 0.4);
  color: #fff;
}

/* Reflect alert card */
/* Level suggestion popup */
.level-suggestion-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: linear-gradient(135deg, #2a1a3d, #3d2a4d);
  border: 2px solid rgba(138, 43, 226, 0.6);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
  animation: popupFadeIn 0.3s ease-out;
}

.level-suggestion-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.level-suggestion-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.level-suggestion-text {
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
}

.level-suggestion-close {
  background: linear-gradient(135deg, #8a2be2, #9370db);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.level-suggestion-close:hover {
  background: linear-gradient(135deg, #7b27c7, #8a2be2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.reflect-alert-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2a2a30;
  border: 2px solid rgba(138, 43, 226, 0.5);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.reflect-alert-content {
  text-align: center;
}

.reflect-alert-title {
  font-size: 20px;
  font-weight: 700;
  color: #8a2be2;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reflect-alert-message {
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 20px;
}

.reflect-alert-close {
  width: 100%;
}

/* Reflect card styling */
.reflect-card {
  margin-top: 16px;
}

.reflect-header {
  padding: 16px;
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.reflect-title {
  font-size: 18px;
  font-weight: 700;
  color: #8a2be2;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.reflect-subtitle {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
}

.reflect-synthesis {
  padding: 16px;
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  min-height: 60px;
  font-style: italic;
  border-left: 3px solid rgba(138, 43, 226, 0.5);
  padding-left: 20px;
  margin: 16px;
  background: rgba(138, 43, 226, 0.05);
  border-radius: 8px;
}

.buy-psyk-btn {
  width: 100%;
  background: linear-gradient(135deg, #8a2be2, #9370db);
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.buy-psyk-btn:hover {
  background: linear-gradient(135deg, #7b27c7, #8a5cb8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

/* Top Holders Section */
.top-holders-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.top-holders-title {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  width: 100%;
}

.top-holders-icon {
  color: #00bfff;
  font-size: 16px;
  font-weight: 900;
}

.top-holders-arrow {
  color: #ffffff;
  font-size: 14px;
}

.top-holders-text {
  color: #ffd700;
  letter-spacing: 2px;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.8),
    0 0 20px rgba(255, 165, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.4);
}

.refresh-btn {
  background: linear-gradient(135deg, #8a2be2, #9370db);
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 8px;
}

.refresh-btn:hover {
  background: linear-gradient(135deg, #7b27c7, #8a5cb8);
}

.anchors-status-text {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
  margin-bottom: 8px;
  text-align: center;
}

.anchors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anchor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2a30;
  border: 1px solid #3a3a44;
  border-radius: 12px;
  padding: 10px 12px;
}

.anchor-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anchor-rank {
  font-weight: 800;
  color: #8a2be2;
  font-size: 13px;
  text-shadow: 0 0 6px rgba(138, 43, 226, 0.5);
}

.anchor-addr {
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #ddd;
}

.anchor-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anchor-amt {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.anchor-meta {
  font-size: 12px;
  color: #aaa;
}

/* Visual Reflection Banner */
.visual-reflection-card {
  position: relative;
  background: rgba(42, 42, 48, 0.95);
  border: 2px solid rgba(138, 43, 226, 0.4);
  box-shadow: 
    0 0 15px rgba(138, 43, 226, 0.2),
    0 0 30px rgba(0, 191, 255, 0.15),
    inset 0 0 15px rgba(138, 43, 226, 0.08);
  animation: arcadeGlow 3s ease-in-out infinite alternate;
  padding: 12px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

@keyframes arcadeGlow {
  0% {
    box-shadow: 
      0 0 15px rgba(138, 43, 226, 0.2),
      0 0 30px rgba(0, 191, 255, 0.15),
      inset 0 0 15px rgba(138, 43, 226, 0.08);
    border-color: rgba(138, 43, 226, 0.3);
  }
  100% {
    box-shadow: 
      0 0 20px rgba(138, 43, 226, 0.35),
      0 0 40px rgba(0, 191, 255, 0.25),
      inset 0 0 20px rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.5);
  }
}

.visual-reflection-card:hover {
  box-shadow: 
    0 0 30px rgba(138, 43, 226, 0.5),
    0 0 60px rgba(0, 191, 255, 0.4),
    inset 0 0 30px rgba(138, 43, 226, 0.25);
  border-color: rgba(138, 43, 226, 0.7);
  transition: all 0.3s ease;
}

.unlock-hidden-powers-block {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 
    0 0 12px rgba(255, 215, 0, 0.35),
    0 0 25px rgba(255, 165, 0, 0.25),
    inset 0 0 12px rgba(255, 215, 0, 0.2);
  animation: goldNeonGlow 2s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.unlock-hidden-powers-block::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(45deg, #ffd700, #ff8c00, #ffd700);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

@keyframes goldNeonGlow {
  0% {
    box-shadow: 
      0 0 12px rgba(255, 215, 0, 0.35),
      0 0 25px rgba(255, 165, 0, 0.25),
      inset 0 0 12px rgba(255, 215, 0, 0.2);
  }
  100% {
    box-shadow: 
      0 0 18px rgba(255, 215, 0, 0.45),
      0 0 35px rgba(255, 165, 0, 0.35),
      inset 0 0 18px rgba(255, 215, 0, 0.3);
  }
}

.unlock-hidden-powers-block:hover {
  box-shadow: 
    0 0 25px rgba(255, 215, 0, 0.6),
    0 0 50px rgba(255, 165, 0, 0.5),
    inset 0 0 25px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.unlock-hidden-powers-text {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 20px rgba(255, 165, 0, 0.7),
    0 0 30px rgba(255, 215, 0, 0.5);
}

.unlock-hidden-powers-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffd700;
  text-shadow: 
    0 0 8px rgba(255, 215, 0, 0.8),
    0 0 15px rgba(255, 165, 0, 0.6);
  margin-top: 4px;
}

.visual-reflection-banner {
  width: 100%;
  padding: 12px 16px 16px 16px;
  margin-bottom: 16px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 
    0 0 12px rgba(64, 224, 208, 0.35),
    0 0 25px rgba(0, 191, 255, 0.25),
    inset 0 0 12px rgba(64, 224, 208, 0.2);
  animation: neonGlow 2s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.visual-reflection-banner:hover {
  box-shadow: 
    0 0 20px rgba(64, 224, 208, 0.6),
    0 0 40px rgba(0, 191, 255, 0.5),
    inset 0 0 20px rgba(64, 224, 208, 0.4);
  transition: all 0.3s ease;
}

.visual-reflection-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(45deg, #40e0d0, #00bfff, #40e0d0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

.visual-reflection-banner-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
  text-shadow: 
    0 0 15px rgba(64, 224, 208, 0.9),
    0 0 30px rgba(0, 191, 255, 0.7),
    0 0 45px rgba(64, 224, 208, 0.5),
    0 0 60px rgba(0, 191, 255, 0.3);
}

.visual-reflection-subtext {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  margin: 0;
  opacity: 0.85;
  font-style: italic;
}

.visual-reflection-description {
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.visual-reflection-requirement {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  margin: 0;
  opacity: 0.8;
}

.generate-btn {
  background: linear-gradient(135deg, #8a2be2, #9370db);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.generate-btn:hover {
  background: linear-gradient(135deg, #7b27c7, #8a5cb8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

/* Update wallet info container for new design */
.wallet-info-container {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* Hide disconnect button in new design (or style it differently) */
.wallet-info-header {
  display: none;
}

/* Legal & Use Notice */
.legal-notice-container {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(58, 58, 68, 0.5);
}

.legal-notice-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: #999;
  font-size: 10px;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
  font-family: Arial, sans-serif;
}

.legal-notice-toggle:hover {
  color: #ccc;
}

.legal-notice-arrow {
  font-size: 8px;
  transition: transform 0.2s ease;
  margin-left: 8px;
}

.legal-notice-toggle[aria-expanded="true"] .legal-notice-arrow {
  transform: rotate(180deg);
}

.legal-notice-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  padding: 0;
  opacity: 0;
}

.legal-notice-content:not(.hidden) {
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 0;
  opacity: 1;
  -webkit-overflow-scrolling: touch;
}

.legal-notice-text {
  font-size: 9px;
  line-height: 1.5;
  color: #aaa;
  font-family: Arial, sans-serif;
}

.legal-notice-text p {
  margin: 0 0 8px 0;
}

.legal-notice-text p:last-child {
  margin-bottom: 0;
}

.legal-notice-text h3 {
  font-size: 10px;
  color: #ccc;
  font-weight: 600;
  margin: 0;
}

.legal-notice-text strong {
  color: #ccc;
  font-weight: 600;
}

.language-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.language-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #aaa;
  font-size: 9px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.language-option:hover {
  color: #ccc;
}

.language-option input[type="radio"] {
  margin-right: 8px;
  cursor: pointer;
}

.language-option input[type="radio"]:checked + span {
  color: #ccc;
  font-weight: 600;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a30;
  border: 1px solid #8a2be2;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 
    0 0 20px rgba(138, 43, 226, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 90%;
  min-width: 280px;
  animation: slideUpToast 0.3s ease-out;
}

.notification-toast.hidden {
  display: none;
}

.notification-toast.error {
  border-color: #ff4444;
  box-shadow: 
    0 0 20px rgba(255, 68, 68, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-toast.success {
  border-color: #44ff44;
  box-shadow: 
    0 0 20px rgba(68, 255, 68, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-message {
  color: #fff;
  font-size: 14px;
  flex: 1;
  line-height: 1.4;
}

.notification-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
  .psyk-banner-text {
    font-size: 20px;
  }
  
  .psyk-balance-large {
    font-size: 22px;
  }
  
  .psyk-balance-label {
    font-size: 12px;
  }
  
  .psyk-icon-circle {
    width: 60px;
    height: 60px;
  }
  
  .psyk-icon-image {
    width: 50px;
    height: 50px;
  }
  
  .account-info-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
  