 :root {    
      --bg-color: #0f172a;
      --glass-bg: rgba(255, 255, 255, 0.1);
      --glass-border: rgba(255, 255, 255, 0.15);
      --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
       
      --text-color: #ffffff;
      --text-muted: rgba(255, 255, 255, 0.7);
      --accent-color: #FFD700; /* Gold */
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
      font-family: 'Poppins', sans-serif;
    }

    body {
      width: 100%;
      height: 100vh;
      overflow: hidden;
      background-color: var(--bg-color);
      color: var(--text-color);
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }
    
    .animated-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;  
      overflow: hidden;
      background: #0f172a;
    }

    .blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.6;
      animation: moveBlobs 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    }

    .blob:nth-child(1) { top: 10%; left: 10%; width: 300px; height: 300px; background: #4f46e5; animation-delay: 0s; }
    .blob:nth-child(2) { top: 60%; right: 10%; width: 250px; height: 250px; background: #7c3aed; animation-delay: -5s; }
    .blob:nth-child(3) { bottom: 10%; left: 20%; width: 350px; height: 350px; background: #2563eb; animation-delay: -10s; }
    .blob:nth-child(4) { top: 30%; right: 30%; width: 200px; height: 200px; background: #06b6d4; animation-delay: -15s; }

    @keyframes moveBlobs {
      0% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(30px, -50px) scale(1.1); }
      66% { transform: translate(-20px, 20px) scale(0.9); }
      100% { transform: translate(0, 0) scale(1); }
    }
   
    #canvas-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0; 
      outline: none;
      pointer-events: none;  
    }
  
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .app-container {
      width: 100%;
      max-width: 480px;
      height: 100%;
      margin: 0 auto;
      position: relative;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      overflow-x: hidden;
      animation: fadeInUp 0.8s ease-out forwards;
      z-index: 2; /* Canvas'ın önünde */
    }
   
    @keyframes floatAvatar {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    @keyframes pulseGreen {
      0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
      100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }
    
    .header {
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }

    .header-btn {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-decoration: none;
      font-size: 18px;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .header-btn:hover { background: rgba(255,255,255,0.2); }
    .header-btn:active { transform: scale(0.96); }

    .brand { text-align: center; }
    .brand h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; margin: 0; }
    .brand .badge {
      font-size: 11px;
      background: linear-gradient(90deg, #FFD700, #FFA500);
      color: #000;
      padding: 3px 8px;
      border-radius: 6px;
      font-weight: 700;
      margin-left: 6px;
      vertical-align: middle;
      box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    }
    
    .main-content {
      padding: 10px 24px 140px 24px;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
   
    .profile-card {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 24px;
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid var(--glass-border);
      gap: 15px;
    }

    .profile-left { display: flex; align-items: center; gap: 15px; }
     
    .avatar-wrapper {
      position: relative;
      animation: floatAvatar 4s ease-in-out infinite;
    }
    .avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.2);
      object-fit: cover;
      display: block;
    }
    .status-dot {
      position: absolute;
      bottom: 2px;
      right: 2px;
      width: 12px;
      height: 12px;
      background: #10b981;
      border: 2px solid #1e293b;
      border-radius: 50%;
      animation: pulseGreen 2s infinite;
    }
    .profile-info h2 { font-size: 15px; font-weight: 600; color: #fff; margin: 0; }
    .profile-info p { font-size: 11px; color: var(--text-muted); margin: 2px 0 0 0; }

    .ask-btn-compact {
      background: #fff;
      color: #0f172a;
      border: none;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      box-shadow: 0 4px 15px rgba(255,255,255,0.15);
    }
    .ask-btn-compact:active { transform: scale(0.9); }
   
    .gifts-container {
      background: var(--glass-bg);
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      border-radius: 24px;
      border: 1px solid var(--glass-border);
      box-shadow: var(--glass-shadow);
      overflow: hidden;
      width: 100%;
    }

    .gifts-header {
      background: rgba(255,255,255,0.05);
      padding: 15px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .gifts-title {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .gifts-title i { color: var(--accent-color); font-size: 16px; }
    .gifts-subtitle { font-size: 11px; opacity: 0.6; font-weight: 400; margin-left: 5px; }

    .menu-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      padding: 20px;
    }

    .menu-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: #fff;
      gap: 8px;
      transition: transform 0.2s;
      width: 100%;
    }
    .menu-item:active { transform: scale(0.95); opacity: 0.8; }

    .icon-box {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      border: 1px solid rgba(255,255,255,0.05);
      transition: all 0.3s;
    }
    .menu-item:hover .icon-box { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

    .menu-text {
      font-size: 10px;
      font-weight: 500;
      text-align: center;
      color: rgba(255,255,255,0.9);
      letter-spacing: 0.2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
    }

    .bottom-dock {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 48px);
      max-width: 440px;
      background: #ffffff;
      border-radius: 20px;
      padding: 14px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 20px 40px rgba(0,0,0,0.4);
      z-index: 999;
    }

    .dock-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: #94a3b8;
      gap: 5px;
      flex: 1;
      transition: color 0.3s;
    }
    .dock-item i { font-size: 22px; transition: transform 0.3s; }
    .dock-item span { font-size: 10px; font-weight: 600; }
    .dock-item:hover, .dock-item.active { color: #2563eb; }
    .dock-item:hover i { transform: translateY(-3px); }
    .dock-item.highlight { color: #db2777; }
    .dock-item.highlight:hover { color: #be185d; }

    #overlay {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    #overlay.active { opacity: 1; visibility: visible; }   
 
#chatModal {
  position: fixed;
  top: 0; 
  bottom: 0; 
  right: 0;
  width: 800px; 
  background: #fff;
  border-left: 2px solid #ccc;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow: hidden;
  border-radius: 12px 0 0 12px;  
  transform: translate3d(100%, 0, 0);   
  will-change: transform;   
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  display: flex;
  flex-direction: column;
}

#chatModal.open {  
  transform: translate3d(0, 0, 0); 
  opacity: 1;
}

#chatModal iframe { 
  width: 100%; 
  height: 100%; 
  border: none; 
  background: #fff; 
}
     
     

    ::-webkit-scrollbar { display: none; }

    @media (min-width: 768px) {
      .app-container {
        height: 92vh; 
        margin-top: 4vh;
        border-radius: 36px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow: hidden;
        overflow-y: auto;
        background-color: transparent; 
      }
       
      .bottom-dock {
        bottom: calc(4vh + 24px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
      }

      .animated-bg {
        width: 100%;
        max-width: 700px;
        left: 50%;
        transform: translateX(-50%);
        background: transparent;
        overflow: visible;
      }
    }