@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===============================
   VARS (Default = Dark Mode)
   =============================== */
:root {
  --bg-dark: #050508;
  --glass-panel: rgba(13, 13, 20, 0.92);
  --glass-border: rgba(255, 255, 255, 0.08);

  --text-primary: #f0f0f8;
  --text-secondary: rgba(240,240,248,0.5);

  --accent-primary: #7c6af7;
  --accent-2: #a78bfa;
  --accent-3: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #7c6af7, #06b6d4);
  --bot-bubble: rgba(255, 255, 255, 0.06);
  --online: #22c55e;
  --offline: #f87171;
  --header-height: 60px;
  --trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================
   GLOBAL RESET
   =============================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  background: var(--bg-dark);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary); 
  position: fixed; 
  inset: 0; 
  overflow: hidden;
}

/* ===============================
   APP LAYOUT
   =============================== */
#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; 
  max-width: 500px;
  margin: 0 auto;
  background: var(--glass-panel);
  position: relative;
}

/* ===============================
   HEADER
   =============================== */
header {
  flex: 0 0 auto;
  height: var(--header-height);
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(15, 15, 25, 0.95);
  z-index: 100;
}

.profile-group { display: flex; align-items: center; gap: 12px; flex: 1; }
.back-btn { background: none; border: none; color: white; padding: 8px; margin-left: -8px; cursor: pointer; }
.avatar-wrapper { display: flex; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); object-fit: cover; }
.info h1 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 4px; }
.verified-badge { width: 15px; height: 15px; }
.status { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); transition: 0.3s; }
.active .status::before { background: var(--online); box-shadow: 0 0 8px var(--online); }
.active .status { color: var(--online); }

/* ===============================
   USER AUTH SLOT (top-right header)
   =============================== */
.ani-user-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 10px;
}

.ani-user-info {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ani-chatting-as {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.ani-chatting-as strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.ani-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,106,247,0.5);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.ani-user-avatar:hover {
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

.ani-user-initials {
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.ani-signin-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  background: none;
  padding: 5px 10px;
  border: 1px solid rgba(124,106,247,0.35);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background var(--trans), border-color var(--trans);
  white-space: nowrap;
}

.ani-signin-link:hover {
  background: rgba(124,106,247,0.12);
  border-color: var(--accent-primary);
}

/* ===============================
   ANI AUTH MODAL
   =============================== */
.ani-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ani-auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.ani-auth-modal {
  background: #131318;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 32px 28px 26px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.ani-auth-overlay.open .ani-auth-modal {
  transform: translateY(0) scale(1);
}

.ani-auth-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.ani-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: rgba(255,255,255,0.4);
  font-size: 15px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: absolute;
}

.ani-auth-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.ani-auth-overlay.gated .ani-auth-close { display: none; }
.ani-auth-overlay.gated { cursor: default; }

.ani-auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
}

.ani-auth-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.ani-auth-sub strong { color: rgba(255,255,255,0.65); }

.ani-auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 18px;
  position: relative;
}

.ani-auth-tab {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.38);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.ani-auth-tab.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.ani-auth-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
  color: #fca5a5;
  margin-bottom: 12px;
  display: none;
  position: relative;
}

.ani-auth-error.visible { display: block; }

.ani-auth-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.ani-auth-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ani-auth-icon-btn:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-2px);
}

.ani-auth-or {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-bottom: 14px;
  position: relative;
}

.ani-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.ani-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(255,255,255,0.28);
  pointer-events: none;
}

.ani-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 11px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.ani-input-wrap input::placeholder { color: rgba(255,255,255,0.25); }

.ani-input-wrap input:focus {
  border-color: rgba(124,106,247,0.6);
  background: rgba(124,106,247,0.05);
}

.ani-name-row { display: none; }
.ani-name-row.visible { display: block; }

.ani-auth-submit {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #0a0a10;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: background 0.2s, transform 0.2s;
}

.ani-auth-submit:hover {
  background: #f0f0f5;
  transform: translateY(-1px);
}

.ani-auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.ani-github-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: #24292f;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 8px;
}
.ani-github-btn:hover {
  background: #32383f;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.ani-github-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── OTP / Verify step ──────────────────────────── */
.ani-auth-verify,
.auth-verify {
  display: none;
}

.auth-verify-info {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin: 0 0 4px;
  font-family: 'Inter', sans-serif;
}

.auth-verify-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  text-align: center;
  margin: 0 0 18px;
  word-break: break-all;
  font-family: 'Inter', sans-serif;
}

.auth-otp-single {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block;
  width: 100%;
  padding: 16px 12px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 10px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.06) !important;
  background-color: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 14px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline: none !important;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-otp-single::placeholder {
  color: rgba(255,255,255,0.2) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.2) !important;
  letter-spacing: 10px;
}

.auth-otp-single:focus {
  border-color: rgba(124,106,247,0.8) !important;
  background: rgba(124,106,247,0.08) !important;
  background-color: rgba(124,106,247,0.08) !important;
  box-shadow: 0 0 0 3px rgba(124,106,247,0.18);
}

.auth-resend-btn {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
  margin-top: 2px;
}

.auth-resend-btn:hover:not(:disabled) {
  color: rgba(255,255,255,0.7);
}

.auth-resend-btn:disabled {
  cursor: default;
  opacity: 0.4;
}

/* ===============================
   CHAT BOX
   =============================== */
#chat-box {
  flex: 1 1 auto; 
  overflow-y: auto; 
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#chat-box::-webkit-scrollbar { width: 4px; }
#chat-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.msg { max-width: 85%; padding: 10px 16px; font-size: 15px; border-radius: 20px; line-height: 1.5; word-wrap: break-word; animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.bot { align-self: flex-start; background: var(--bot-bubble); color: inherit; border: 1px solid var(--glass-border); border-bottom-left-radius: 4px; }
.user { align-self: flex-end; background: var(--accent-gradient); color: white; border-bottom-right-radius: 4px; }

/* --- MARKDOWN ELEMENTS (ADDED THIS SECTION) --- */
/* This makes the links clickable and purple */
.clean-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(124, 106, 247, 0.3);
    transition: all 0.2s;
}

.clean-link:hover {
    background: rgba(124, 106, 247, 0.15);
    border-bottom-color: var(--accent-primary);
    border-radius: 4px;
    padding: 0 3px;
    margin: 0 -3px;
}

/* Fix lists inside bot messages */
.bot ul { margin: 5px 0; padding-left: 20px; }
.bot li { margin-bottom: 4px; }
.bot b { color: var(--accent-primary); font-weight: 700; }

/* --- CODE BLOCKS --- */
.code-block {
    background: #0d0d14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 8px 0;
    overflow: hidden;
    font-size: 13px;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 4px 12px;
    background: rgba(124, 106, 247, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
}

.code-lang {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-primary);
    flex: 1;
}

.code-tabs {
    display: flex;
    gap: 2px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 2px;
}

.toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.toggle-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

.toggle-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.run-tab { color: #4ade80; }
.run-tab.active { background: #16a34a; color: #fff; }

.code-pane-code pre {
    margin: 0;
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-pane-code pre code {
    font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
    color: #e0e0ff;
    white-space: pre;
    line-height: 1.6;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

.code-pane-preview {
    background: #fff;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.preview-frame {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    border: none;
    display: block;
    background: #fff;
}

/* --- OUTPUT PANE --- */
.code-pane-output {
    background: #050a05;
    border-top: 1px solid rgba(74, 222, 128, 0.15);
    padding: 10px 14px;
    font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
    font-size: 13px;
    min-height: 48px;
    max-height: 300px;
    overflow-y: auto;
}

.output-line {
    color: #a3e6a3;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}

.output-empty {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    font-size: 12px;
}

.output-running {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-style: italic;
}

.run-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 1s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.7); }
}

/* --- INLINE CODE --- */
.inline-code {
    font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
    font-size: 0.88em;
    background: rgba(124, 106, 247, 0.12);
    color: #a78bfa;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(124, 106, 247, 0.2);
}

/* --- LOADING DOTS --- */
.typing-indicator { padding: 12px 16px; display: flex; gap: 4px; width: fit-content; }
.dot { width: 6px; height: 6px; background: #aaa; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ===============================
   INPUT AREA
   =============================== */
#input-area {
  flex: 0 0 auto;
  background: #0b0b10;
  border-top: 1px solid var(--glass-border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; gap: 10px;
  z-index: 100;
}

textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 10px 16px; 
  font-size: 16px;
  color: white; 
  resize: none;
  height: 42px; 
  max-height: 120px;
  overflow-y: hidden;
  font-family: inherit;
}

textarea:focus { background: rgba(255, 255, 255, 0.1); border-color: rgba(124, 106, 247, 0.6); }

#send-btn {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; border: none; background: var(--accent-gradient); color: white;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#send-btn:disabled { opacity: 0.5; background: #333; }
#send-btn svg { width: 20px; height: 20px; fill: white; margin-left: 2px; }

/* ===============================
   LIGHT MODE SUPPORT
   =============================== */
@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #ffffff;
    --glass-panel: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-primary: #000000;
    --text-secondary: #666666;
    --bot-bubble: #f0f0f5; 
  }

  header { background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
  .back-btn { color: #000; }
  #input-area { background: #ffffff; border-top: 1px solid rgba(0, 0, 0, 0.1); }
  
  textarea { background: #f0f0f5; color: #000000; border: 1px solid rgba(0, 0, 0, 0.1); }
  textarea:focus { background: #ffffff; border-color: var(--accent-primary); }
  
  /* Make bold text darker in light mode */
  .bot b { color: #5b48d9; }
}

/* ── Profile Panel ──────────────────────────────── */
.ani-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.ani-profile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ani-profile-panel {
  width: 100%;
  max-width: 500px;
  background: #13131c;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px 44px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 1.2, 0.64, 1);
}

.ani-profile-overlay.open .ani-profile-panel {
  transform: translateY(0);
}

.ani-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ani-profile-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.ani-profile-close {
  background: rgba(255,255,255,0.08);
  border: none !important;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.ani-profile-close:hover { background: rgba(255,255,255,0.13); color: #fff; }

.ani-profile-avatar-area {
  text-align: center;
  margin-bottom: 20px;
}

.ani-profile-big-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 10px;
  overflow: hidden;
  border: 3px solid rgba(124,106,247,0.45);
}

.ani-profile-big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ani-profile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.ani-profile-email-display {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

.ani-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.ani-profile-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.ani-profile-label-note {
  font-size: 11px;
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.ani-profile-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06) !important;
  background-color: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 15px;
  font-family: inherit;
  outline: none !important;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ani-profile-input:focus {
  border-color: rgba(124,106,247,0.7) !important;
}

.ani-profile-preview {
  margin-top: 10px;
  text-align: center;
}

.ani-profile-preview img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,106,247,0.4);
}

.ani-profile-save-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none !important;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-bottom: 10px;
  font-family: inherit;
}

.ani-profile-save-btn:hover   { opacity: 0.88; }
.ani-profile-save-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.ani-profile-msg {
  text-align: center;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 10px;
}

.ani-profile-msg.success { color: #4ade80; }
.ani-profile-msg.error   { color: #f87171; }

.ani-profile-signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(248,113,113,0.22) !important;
  border-radius: 14px;
  background: rgba(248,113,113,0.07) !important;
  color: #fca5a5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.ani-profile-signout-btn:hover { background: rgba(248,113,113,0.13) !important; }
